Class: Ingenico::Connect::SDK::Domain::Payment::ThreeDSecure
Instance Attribute Summary collapse
#authentication_amount, #authentication_flow, #challenge_canvas_size, #challenge_indicator, #exemption_request, #prior_three_d_secure_data, #sdk_data, #skip_authentication, #transaction_risk_level
Instance Method Summary
collapse
new_from_hash
Instance Attribute Details
15
16
17
|
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb', line 15
def external_cardholder_authentication_data
@external_cardholder_authentication_data
end
|
15
16
17
|
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb', line 15
def redirection_data
@redirection_data
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb', line 29
def from_hash(hash)
super
if hash.has_key? 'externalCardholderAuthenticationData'
raise TypeError, "value '%s' is not a Hash" % [hash['externalCardholderAuthenticationData']] unless hash['externalCardholderAuthenticationData'].is_a? Hash
@external_cardholder_authentication_data = Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData'])
end
if hash.has_key? 'redirectionData'
raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']] unless hash['redirectionData'].is_a? Hash
@redirection_data = Ingenico::Connect::SDK::Domain::Payment::RedirectionData.new_from_hash(hash['redirectionData'])
end
end
|
#to_h ⇒ Hash
22
23
24
25
26
27
|
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb', line 22
def to_h
hash = super
hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h unless @external_cardholder_authentication_data.nil?
hash['redirectionData'] = @redirection_data.to_h unless @redirection_data.nil?
hash
end
|