Class: Ingenico::Connect::SDK::Domain::Payment::CardPaymentMethodSpecificInputBase
Instance Attribute Summary collapse
#authorization_mode, #customer_reference, #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
#three_d_secure ⇒ Object
15
16
17
|
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 15
def three_d_secure
@three_d_secure
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
23
24
25
26
27
28
29
30
31
|
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 23
def from_hash(hash)
super
if hash.has_key?('threeDSecure')
if !(hash['threeDSecure'].is_a? Hash)
raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']]
end
@three_d_secure = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureBase.new_from_hash(hash['threeDSecure'])
end
end
|
#to_h ⇒ Object
17
18
19
20
21
|
# File 'lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb', line 17
def to_h
hash = super
add_to_hash(hash, 'threeDSecure', @three_d_secure)
hash
end
|