Class: Ingenico::Connect::SDK::Domain::Payment::ThreeDSecure
- Inherits:
-
AbstractThreeDSecure
- Object
- Ingenico::Connect::SDK::DataObject
- AbstractThreeDSecure
- Ingenico::Connect::SDK::Domain::Payment::ThreeDSecure
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb
Instance Attribute Summary collapse
-
#external_cardholder_authentication_data ⇒ Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData
The current value of external_cardholder_authentication_data.
-
#redirection_data ⇒ Ingenico::Connect::SDK::Domain::Payment::RedirectionData
The current value of redirection_data.
Attributes inherited from AbstractThreeDSecure
#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
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#external_cardholder_authentication_data ⇒ Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData
Returns the current value of external_cardholder_authentication_data.
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 |
#redirection_data ⇒ Ingenico::Connect::SDK::Domain::Payment::RedirectionData
Returns the current value of redirection_data.
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 |