Class: Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase
Instance Attribute Summary collapse
#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
#payment_product_id
Instance Method Summary
collapse
new_from_hash
Instance Attribute Details
13
14
15
|
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 13
def three_d_secure
@three_d_secure
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 24
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
18
19
20
21
22
|
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 18
def to_h
hash = super
hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
hash
end
|