Class: OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::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_wip_transaction ⇒ true/false
The current value of is_wip_transaction.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#force_authentication ⇒ true/false
Returns the current value of force_authentication.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 11 def force_authentication @force_authentication end |
#is_wip_transaction ⇒ true/false
Returns the current value of is_wip_transaction.
11 12 13 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 11 def is_wip_transaction @is_wip_transaction end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 23 def from_hash(hash) super @force_authentication = hash['forceAuthentication'] if hash.key? 'forceAuthentication' @is_wip_transaction = hash['isWipTransaction'] if hash.key? 'isWipTransaction' end |
#to_h ⇒ Hash
16 17 18 19 20 21 |
# File 'lib/onlinepayments/sdk/domain/payment_product3012_specific_input.rb', line 16 def to_h hash = super hash['forceAuthentication'] = @force_authentication unless @force_authentication.nil? hash['isWipTransaction'] = @is_wip_transaction unless @is_wip_transaction.nil? hash end |