Class: OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#payment_option ⇒ String?
The current value of payment_option.
-
#payment_product11_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput?
The current value of payment_product11_specific_input.
-
#payment_product3103_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3103SpecificInput?
The current value of payment_product3103_specific_input.
-
#payment_product3112_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3112SpecificInput?
The current value of payment_product3112_specific_input.
-
#payment_product3116_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3116SpecificInput?
The current value of payment_product3116_specific_input.
-
#payment_product3203_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput?
The current value of payment_product3203_specific_input.
-
#payment_product3204_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput?
The current value of payment_product3204_specific_input.
-
#payment_product3302_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput?
The current value of payment_product3302_specific_input.
-
#payment_product3306_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput?
The current value of payment_product3306_specific_input.
-
#payment_product3307_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput?
The current value of payment_product3307_specific_input.
-
#payment_product5001_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput?
The current value of payment_product5001_specific_input.
-
#payment_product5300_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput?
The current value of payment_product5300_specific_input.
-
#payment_product5301_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput?
The current value of payment_product5301_specific_input.
-
#payment_product5402_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput?
The current value of payment_product5402_specific_input.
-
#payment_product5403_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput?
The current value of payment_product5403_specific_input.
-
#payment_product5406_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput?
The current value of payment_product5406_specific_input.
-
#payment_product5407_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput?
The current value of payment_product5407_specific_input.
-
#payment_product5408_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput?
The current value of payment_product5408_specific_input.
-
#payment_product5410_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput?
The current value of payment_product5410_specific_input.
-
#payment_product5412_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput?
The current value of payment_product5412_specific_input.
-
#payment_product5601_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5601SpecificInput?
The current value of payment_product5601_specific_input.
-
#payment_product809_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput?
The current value of payment_product809_specific_input.
-
#payment_product840_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput?
The current value of payment_product840_specific_input.
-
#payment_product900_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct900SpecificInput?
The current value of payment_product900_specific_input.
-
#payment_product_id ⇒ Integer?
The current value of payment_product_id.
-
#redirection_data ⇒ OnlinePayments::SDK::Domain::RedirectionData?
The current value of redirection_data.
-
#requires_approval ⇒ true/false?
The current value of requires_approval.
-
#token ⇒ String?
The current value of token.
-
#tokenize ⇒ true/false?
The current value of tokenize.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#payment_option ⇒ String?
Returns the current value of payment_option.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_option @payment_option end |
#payment_product11_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput?
Returns the current value of payment_product11_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product11_specific_input @payment_product11_specific_input end |
#payment_product3103_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3103SpecificInput?
Returns the current value of payment_product3103_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3103_specific_input @payment_product3103_specific_input end |
#payment_product3112_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3112SpecificInput?
Returns the current value of payment_product3112_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3112_specific_input @payment_product3112_specific_input end |
#payment_product3116_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3116SpecificInput?
Returns the current value of payment_product3116_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3116_specific_input @payment_product3116_specific_input end |
#payment_product3203_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput?
Returns the current value of payment_product3203_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3203_specific_input @payment_product3203_specific_input end |
#payment_product3204_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput?
Returns the current value of payment_product3204_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3204_specific_input @payment_product3204_specific_input end |
#payment_product3302_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput?
Returns the current value of payment_product3302_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3302_specific_input @payment_product3302_specific_input end |
#payment_product3306_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput?
Returns the current value of payment_product3306_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3306_specific_input @payment_product3306_specific_input end |
#payment_product3307_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput?
Returns the current value of payment_product3307_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product3307_specific_input @payment_product3307_specific_input end |
#payment_product5001_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput?
Returns the current value of payment_product5001_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5001_specific_input @payment_product5001_specific_input end |
#payment_product5300_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput?
Returns the current value of payment_product5300_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5300_specific_input @payment_product5300_specific_input end |
#payment_product5301_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput?
Returns the current value of payment_product5301_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5301_specific_input @payment_product5301_specific_input end |
#payment_product5402_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput?
Returns the current value of payment_product5402_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5402_specific_input @payment_product5402_specific_input end |
#payment_product5403_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput?
Returns the current value of payment_product5403_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5403_specific_input @payment_product5403_specific_input end |
#payment_product5406_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput?
Returns the current value of payment_product5406_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5406_specific_input @payment_product5406_specific_input end |
#payment_product5407_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput?
Returns the current value of payment_product5407_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5407_specific_input @payment_product5407_specific_input end |
#payment_product5408_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput?
Returns the current value of payment_product5408_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5408_specific_input @payment_product5408_specific_input end |
#payment_product5410_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput?
Returns the current value of payment_product5410_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5410_specific_input @payment_product5410_specific_input end |
#payment_product5412_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput?
Returns the current value of payment_product5412_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5412_specific_input @payment_product5412_specific_input end |
#payment_product5601_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct5601SpecificInput?
Returns the current value of payment_product5601_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product5601_specific_input @payment_product5601_specific_input end |
#payment_product809_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput?
Returns the current value of payment_product809_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product809_specific_input @payment_product809_specific_input end |
#payment_product840_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput?
Returns the current value of payment_product840_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product840_specific_input @payment_product840_specific_input end |
#payment_product900_specific_input ⇒ OnlinePayments::SDK::Domain::RedirectPaymentProduct900SpecificInput?
Returns the current value of payment_product900_specific_input.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product900_specific_input @payment_product900_specific_input end |
#payment_product_id ⇒ Integer?
Returns the current value of payment_product_id.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def payment_product_id @payment_product_id end |
#redirection_data ⇒ OnlinePayments::SDK::Domain::RedirectionData?
Returns the current value of redirection_data.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def redirection_data @redirection_data end |
#requires_approval ⇒ true/false?
Returns the current value of requires_approval.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def requires_approval @requires_approval end |
#token ⇒ String?
Returns the current value of token.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def token @token end |
#tokenize ⇒ true/false?
Returns the current value of tokenize.
62 63 64 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 62 def tokenize @tokenize end |
Instance Method Details
#from_hash(hash) ⇒ Object
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 157 def from_hash(hash) super if hash.has_key? 'paymentOption' @payment_option = hash['paymentOption'] end if hash.has_key? 'paymentProduct11SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct11SpecificInput']] unless hash['paymentProduct11SpecificInput'].is_a? Hash @payment_product11_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput.new_from_hash(hash['paymentProduct11SpecificInput']) end if hash.has_key? 'paymentProduct3103SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3103SpecificInput']] unless hash['paymentProduct3103SpecificInput'].is_a? Hash @payment_product3103_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3103SpecificInput.new_from_hash(hash['paymentProduct3103SpecificInput']) end if hash.has_key? 'paymentProduct3112SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3112SpecificInput']] unless hash['paymentProduct3112SpecificInput'].is_a? Hash @payment_product3112_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3112SpecificInput.new_from_hash(hash['paymentProduct3112SpecificInput']) end if hash.has_key? 'paymentProduct3116SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3116SpecificInput']] unless hash['paymentProduct3116SpecificInput'].is_a? Hash @payment_product3116_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3116SpecificInput.new_from_hash(hash['paymentProduct3116SpecificInput']) end if hash.has_key? 'paymentProduct3203SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3203SpecificInput']] unless hash['paymentProduct3203SpecificInput'].is_a? Hash @payment_product3203_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput.new_from_hash(hash['paymentProduct3203SpecificInput']) end if hash.has_key? 'paymentProduct3204SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3204SpecificInput']] unless hash['paymentProduct3204SpecificInput'].is_a? Hash @payment_product3204_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput.new_from_hash(hash['paymentProduct3204SpecificInput']) end if hash.has_key? 'paymentProduct3302SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3302SpecificInput']] unless hash['paymentProduct3302SpecificInput'].is_a? Hash @payment_product3302_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput.new_from_hash(hash['paymentProduct3302SpecificInput']) end if hash.has_key? 'paymentProduct3306SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3306SpecificInput']] unless hash['paymentProduct3306SpecificInput'].is_a? Hash @payment_product3306_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput.new_from_hash(hash['paymentProduct3306SpecificInput']) end if hash.has_key? 'paymentProduct3307SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3307SpecificInput']] unless hash['paymentProduct3307SpecificInput'].is_a? Hash @payment_product3307_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput.new_from_hash(hash['paymentProduct3307SpecificInput']) end if hash.has_key? 'paymentProduct5001SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5001SpecificInput']] unless hash['paymentProduct5001SpecificInput'].is_a? Hash @payment_product5001_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput.new_from_hash(hash['paymentProduct5001SpecificInput']) end if hash.has_key? 'paymentProduct5300SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5300SpecificInput']] unless hash['paymentProduct5300SpecificInput'].is_a? Hash @payment_product5300_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput.new_from_hash(hash['paymentProduct5300SpecificInput']) end if hash.has_key? 'paymentProduct5301SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5301SpecificInput']] unless hash['paymentProduct5301SpecificInput'].is_a? Hash @payment_product5301_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput.new_from_hash(hash['paymentProduct5301SpecificInput']) end if hash.has_key? 'paymentProduct5402SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5402SpecificInput']] unless hash['paymentProduct5402SpecificInput'].is_a? Hash @payment_product5402_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput.new_from_hash(hash['paymentProduct5402SpecificInput']) end if hash.has_key? 'paymentProduct5403SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5403SpecificInput']] unless hash['paymentProduct5403SpecificInput'].is_a? Hash @payment_product5403_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput.new_from_hash(hash['paymentProduct5403SpecificInput']) end if hash.has_key? 'paymentProduct5406SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5406SpecificInput']] unless hash['paymentProduct5406SpecificInput'].is_a? Hash @payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput']) end if hash.has_key? 'paymentProduct5407SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407SpecificInput']] unless hash['paymentProduct5407SpecificInput'].is_a? Hash @payment_product5407_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput.new_from_hash(hash['paymentProduct5407SpecificInput']) end if hash.has_key? 'paymentProduct5408SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5408SpecificInput']] unless hash['paymentProduct5408SpecificInput'].is_a? Hash @payment_product5408_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput.new_from_hash(hash['paymentProduct5408SpecificInput']) end if hash.has_key? 'paymentProduct5410SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5410SpecificInput']] unless hash['paymentProduct5410SpecificInput'].is_a? Hash @payment_product5410_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput.new_from_hash(hash['paymentProduct5410SpecificInput']) end if hash.has_key? 'paymentProduct5412SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5412SpecificInput']] unless hash['paymentProduct5412SpecificInput'].is_a? Hash @payment_product5412_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput.new_from_hash(hash['paymentProduct5412SpecificInput']) end if hash.has_key? 'paymentProduct5601SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5601SpecificInput']] unless hash['paymentProduct5601SpecificInput'].is_a? Hash @payment_product5601_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5601SpecificInput.new_from_hash(hash['paymentProduct5601SpecificInput']) end if hash.has_key? 'paymentProduct809SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash @payment_product809_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput']) end if hash.has_key? 'paymentProduct840SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash @payment_product840_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct840SpecificInput.new_from_hash(hash['paymentProduct840SpecificInput']) end if hash.has_key? 'paymentProduct900SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct900SpecificInput']] unless hash['paymentProduct900SpecificInput'].is_a? Hash @payment_product900_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct900SpecificInput.new_from_hash(hash['paymentProduct900SpecificInput']) end if hash.has_key? 'paymentProductId' @payment_product_id = hash['paymentProductId'] end if hash.has_key? 'redirectionData' raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']] unless hash['redirectionData'].is_a? Hash @redirection_data = OnlinePayments::SDK::Domain::RedirectionData.new_from_hash(hash['redirectionData']) end if hash.has_key? 'requiresApproval' @requires_approval = hash['requiresApproval'] end if hash.has_key? 'token' @token = hash['token'] end if hash.has_key? 'tokenize' @tokenize = hash['tokenize'] end end |
#to_h ⇒ Hash
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb', line 123 def to_h hash = super hash['paymentOption'] = @payment_option unless @payment_option.nil? hash['paymentProduct11SpecificInput'] = @payment_product11_specific_input.to_h unless @payment_product11_specific_input.nil? hash['paymentProduct3103SpecificInput'] = @payment_product3103_specific_input.to_h unless @payment_product3103_specific_input.nil? hash['paymentProduct3112SpecificInput'] = @payment_product3112_specific_input.to_h unless @payment_product3112_specific_input.nil? hash['paymentProduct3116SpecificInput'] = @payment_product3116_specific_input.to_h unless @payment_product3116_specific_input.nil? hash['paymentProduct3203SpecificInput'] = @payment_product3203_specific_input.to_h unless @payment_product3203_specific_input.nil? hash['paymentProduct3204SpecificInput'] = @payment_product3204_specific_input.to_h unless @payment_product3204_specific_input.nil? hash['paymentProduct3302SpecificInput'] = @payment_product3302_specific_input.to_h unless @payment_product3302_specific_input.nil? hash['paymentProduct3306SpecificInput'] = @payment_product3306_specific_input.to_h unless @payment_product3306_specific_input.nil? hash['paymentProduct3307SpecificInput'] = @payment_product3307_specific_input.to_h unless @payment_product3307_specific_input.nil? hash['paymentProduct5001SpecificInput'] = @payment_product5001_specific_input.to_h unless @payment_product5001_specific_input.nil? hash['paymentProduct5300SpecificInput'] = @payment_product5300_specific_input.to_h unless @payment_product5300_specific_input.nil? hash['paymentProduct5301SpecificInput'] = @payment_product5301_specific_input.to_h unless @payment_product5301_specific_input.nil? hash['paymentProduct5402SpecificInput'] = @payment_product5402_specific_input.to_h unless @payment_product5402_specific_input.nil? hash['paymentProduct5403SpecificInput'] = @payment_product5403_specific_input.to_h unless @payment_product5403_specific_input.nil? hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h unless @payment_product5406_specific_input.nil? hash['paymentProduct5407SpecificInput'] = @payment_product5407_specific_input.to_h unless @payment_product5407_specific_input.nil? hash['paymentProduct5408SpecificInput'] = @payment_product5408_specific_input.to_h unless @payment_product5408_specific_input.nil? hash['paymentProduct5410SpecificInput'] = @payment_product5410_specific_input.to_h unless @payment_product5410_specific_input.nil? hash['paymentProduct5412SpecificInput'] = @payment_product5412_specific_input.to_h unless @payment_product5412_specific_input.nil? hash['paymentProduct5601SpecificInput'] = @payment_product5601_specific_input.to_h unless @payment_product5601_specific_input.nil? hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h unless @payment_product809_specific_input.nil? hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil? hash['paymentProduct900SpecificInput'] = @payment_product900_specific_input.to_h unless @payment_product900_specific_input.nil? hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil? hash['redirectionData'] = @redirection_data.to_h unless @redirection_data.nil? hash['requiresApproval'] = @requires_approval unless @requires_approval.nil? hash['token'] = @token unless @token.nil? hash['tokenize'] = @tokenize unless @tokenize.nil? hash end |