Class: Worldline::Connect::SDK::V1::Domain::ThreeDSecure
- Inherits:
-
AbstractThreeDSecure
- Object
- Domain::DataObject
- AbstractThreeDSecure
- Worldline::Connect::SDK::V1::Domain::ThreeDSecure
- Defined in:
- lib/worldline/connect/sdk/v1/domain/three_d_secure.rb
Instance Attribute Summary collapse
-
#external_cardholder_authentication_data ⇒ Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData
The current value of external_cardholder_authentication_data.
-
#redirection_data ⇒ Worldline::Connect::SDK::V1::Domain::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 Domain::DataObject
Instance Attribute Details
#external_cardholder_authentication_data ⇒ Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData
Returns the current value of external_cardholder_authentication_data.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure.rb', line 16 def external_cardholder_authentication_data @external_cardholder_authentication_data end |
#redirection_data ⇒ Worldline::Connect::SDK::V1::Domain::RedirectionData
Returns the current value of redirection_data.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure.rb', line 16 def redirection_data @redirection_data end |
Instance Method Details
#from_hash(hash) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure.rb', line 30 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 = Worldline::Connect::SDK::V1::Domain::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 = Worldline::Connect::SDK::V1::Domain::RedirectionData.new_from_hash(hash['redirectionData']) end end |
#to_h ⇒ Hash
23 24 25 26 27 28 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure.rb', line 23 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 |