Class: Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase
- Inherits:
-
AbstractCardPaymentMethodSpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- AbstractCardPaymentMethodSpecificInput
- Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb
Instance Attribute Summary collapse
-
#three_d_secure ⇒ Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureBase
The current value of three_d_secure.
Attributes inherited from AbstractCardPaymentMethodSpecificInput
#acquirer_promotion_code, #authorization_mode, #customer_reference, #initial_scheme_transaction_id, #recurring, #recurring_payment_sequence_indicator, #requires_approval, #skip_authentication, #skip_fraud_service, #token, #tokenize, #transaction_channel, #unscheduled_card_on_file_indicator, #unscheduled_card_on_file_requestor, #unscheduled_card_on_file_sequence_indicator
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#three_d_secure ⇒ Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureBase
Returns the current value of three_d_secure.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 14 def three_d_secure @three_d_secure end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 25 def from_hash(hash) super if hash.has_key? 'threeDSecure' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash @three_d_secure = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureBase.new_from_hash(hash['threeDSecure']) end end |
#to_h ⇒ Hash
19 20 21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 19 def to_h hash = super hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil? hash end |