Class: Ingenico::Direct::SDK::Domain::ThreeDSecure
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::ThreeDSecure
- Defined in:
- lib/ingenico/direct/sdk/domain/three_d_secure.rb
Instance Attribute Summary collapse
-
#challenge_canvas_size ⇒ String
The current value of challenge_canvas_size.
-
#challenge_indicator ⇒ String
The current value of challenge_indicator.
-
#exemption_request ⇒ String
The current value of exemption_request.
-
#external_cardholder_authentication_data ⇒ Ingenico::Direct::SDK::Domain::ExternalCardholderAuthenticationData
The current value of external_cardholder_authentication_data.
-
#prior_three_d_secure_data ⇒ Ingenico::Direct::SDK::Domain::ThreeDSecureData
The current value of prior_three_d_secure_data.
-
#redirection_data ⇒ Ingenico::Direct::SDK::Domain::RedirectionData
The current value of redirection_data.
-
#skip_authentication ⇒ true/false
The current value of skip_authentication.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#challenge_canvas_size ⇒ String
Returns the current value of challenge_canvas_size.
20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 20 def challenge_canvas_size @challenge_canvas_size end |
#challenge_indicator ⇒ String
Returns the current value of challenge_indicator.
20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 20 def challenge_indicator @challenge_indicator end |
#exemption_request ⇒ String
Returns the current value of exemption_request.
20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 20 def exemption_request @exemption_request end |
#external_cardholder_authentication_data ⇒ Ingenico::Direct::SDK::Domain::ExternalCardholderAuthenticationData
Returns the current value of external_cardholder_authentication_data.
20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 20 def external_cardholder_authentication_data @external_cardholder_authentication_data end |
#prior_three_d_secure_data ⇒ Ingenico::Direct::SDK::Domain::ThreeDSecureData
Returns the current value of prior_three_d_secure_data.
20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 20 def prior_three_d_secure_data @prior_three_d_secure_data end |
#redirection_data ⇒ Ingenico::Direct::SDK::Domain::RedirectionData
Returns the current value of redirection_data.
20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 20 def redirection_data @redirection_data end |
#skip_authentication ⇒ true/false
Returns the current value of skip_authentication.
20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 20 def skip_authentication @skip_authentication end |
Instance Method Details
#from_hash(hash) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 42 def from_hash(hash) super @challenge_canvas_size = hash['challengeCanvasSize'] if hash.key? 'challengeCanvasSize' @challenge_indicator = hash['challengeIndicator'] if hash.key? 'challengeIndicator' @exemption_request = hash['exemptionRequest'] if hash.key? 'exemptionRequest' if hash.key? 'externalCardholderAuthenticationData' raise TypeError, "value '%s' is not a Hash" % [hash['externalCardholderAuthenticationData']] unless hash['externalCardholderAuthenticationData'].is_a? Hash @external_cardholder_authentication_data = Ingenico::Direct::SDK::Domain::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData']) end if hash.key? 'priorThreeDSecureData' raise TypeError, "value '%s' is not a Hash" % [hash['priorThreeDSecureData']] unless hash['priorThreeDSecureData'].is_a? Hash @prior_three_d_secure_data = Ingenico::Direct::SDK::Domain::ThreeDSecureData.new_from_hash(hash['priorThreeDSecureData']) end if hash.key? 'redirectionData' raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']] unless hash['redirectionData'].is_a? Hash @redirection_data = Ingenico::Direct::SDK::Domain::RedirectionData.new_from_hash(hash['redirectionData']) end @skip_authentication = hash['skipAuthentication'] if hash.key? 'skipAuthentication' end |
#to_h ⇒ Hash
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure.rb', line 30 def to_h hash = super hash['challengeCanvasSize'] = @challenge_canvas_size unless @challenge_canvas_size.nil? hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil? hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil? hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h if @external_cardholder_authentication_data hash['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h if @prior_three_d_secure_data hash['redirectionData'] = @redirection_data.to_h if @redirection_data hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil? hash end |