Class: OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb
Instance Attribute Summary collapse
-
#force_authentication ⇒ true/false
The current value of force_authentication.
-
#is_deferred_payment ⇒ true/false
The current value of is_deferred_payment.
-
#is_wip_transaction ⇒ true/false
The current value of is_wip_transaction.
-
#wip_merchant_authentication_method ⇒ String
The current value of wip_merchant_authentication_method.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#force_authentication ⇒ true/false
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13 def force_authentication @force_authentication end |
#is_deferred_payment ⇒ true/false
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13 def is_deferred_payment @is_deferred_payment end |
#is_wip_transaction ⇒ true/false
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13 def is_wip_transaction @is_wip_transaction end |
#wip_merchant_authentication_method ⇒ String
13 14 15 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 13 def wip_merchant_authentication_method @wip_merchant_authentication_method end |
Instance Method Details
#from_hash(hash) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 33 def from_hash(hash) super if hash.has_key? 'forceAuthentication' @force_authentication = hash['forceAuthentication'] end if hash.has_key? 'isDeferredPayment' @is_deferred_payment = hash['isDeferredPayment'] end if hash.has_key? 'isWipTransaction' @is_wip_transaction = hash['isWipTransaction'] end if hash.has_key? 'wipMerchantAuthenticationMethod' @wip_merchant_authentication_method = hash['wipMerchantAuthenticationMethod'] end end |
#to_h ⇒ Hash
24 25 26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 24 def to_h hash = super hash['forceAuthentication'] = @force_authentication unless @force_authentication.nil? hash['isDeferredPayment'] = @is_deferred_payment unless @is_deferred_payment.nil? hash['isWipTransaction'] = @is_wip_transaction unless @is_wip_transaction.nil? hash['wipMerchantAuthenticationMethod'] = @wip_merchant_authentication_method unless @wip_merchant_authentication_method.nil? hash end |