Class: OnlinePayments::SDK::Domain::ThreeDSecure
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::ThreeDSecure
- Defined in:
- lib/onlinepayments/sdk/domain/three_d_secure.rb
Instance Attribute Summary collapse
-
#authentication_amount ⇒ Integer
The current value of authentication_amount.
-
#challenge_canvas_size ⇒ String
The current value of challenge_canvas_size.
-
#challenge_indicator ⇒ String
The current value of challenge_indicator.
-
#device_channel ⇒ String
The current value of device_channel.
-
#exemption_request ⇒ String
The current value of exemption_request.
-
#external_cardholder_authentication_data ⇒ OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData
The current value of external_cardholder_authentication_data.
-
#merchant_fraud_rate ⇒ Integer
The current value of merchant_fraud_rate.
-
#prior_three_d_secure_data ⇒ OnlinePayments::SDK::Domain::ThreeDSecureData
The current value of prior_three_d_secure_data.
-
#redirection_data ⇒ OnlinePayments::SDK::Domain::RedirectionData
The current value of redirection_data.
-
#secure_corporate_payment ⇒ true/false
The current value of secure_corporate_payment.
-
#skip_authentication ⇒ true/false
The current value of skip_authentication.
-
#skip_soft_decline ⇒ true/false
The current value of skip_soft_decline.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#authentication_amount ⇒ Integer
Returns the current value of authentication_amount.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def authentication_amount @authentication_amount end |
#challenge_canvas_size ⇒ String
Returns the current value of challenge_canvas_size.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def challenge_canvas_size @challenge_canvas_size end |
#challenge_indicator ⇒ String
Returns the current value of challenge_indicator.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def challenge_indicator @challenge_indicator end |
#device_channel ⇒ String
Returns the current value of device_channel.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def device_channel @device_channel end |
#exemption_request ⇒ String
Returns the current value of exemption_request.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def exemption_request @exemption_request end |
#external_cardholder_authentication_data ⇒ OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData
Returns the current value of external_cardholder_authentication_data.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def external_cardholder_authentication_data @external_cardholder_authentication_data end |
#merchant_fraud_rate ⇒ Integer
Returns the current value of merchant_fraud_rate.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def merchant_fraud_rate @merchant_fraud_rate end |
#prior_three_d_secure_data ⇒ OnlinePayments::SDK::Domain::ThreeDSecureData
Returns the current value of prior_three_d_secure_data.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def prior_three_d_secure_data @prior_three_d_secure_data end |
#redirection_data ⇒ OnlinePayments::SDK::Domain::RedirectionData
Returns the current value of redirection_data.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def redirection_data @redirection_data end |
#secure_corporate_payment ⇒ true/false
Returns the current value of secure_corporate_payment.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def secure_corporate_payment @secure_corporate_payment end |
#skip_authentication ⇒ true/false
Returns the current value of skip_authentication.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def skip_authentication @skip_authentication end |
#skip_soft_decline ⇒ true/false
Returns the current value of skip_soft_decline.
24 25 26 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 24 def skip_soft_decline @skip_soft_decline end |
Instance Method Details
#from_hash(hash) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 68 def from_hash(hash) super if hash.has_key? 'authenticationAmount' @authentication_amount = hash['authenticationAmount'] end if hash.has_key? 'challengeCanvasSize' @challenge_canvas_size = hash['challengeCanvasSize'] end if hash.has_key? 'challengeIndicator' @challenge_indicator = hash['challengeIndicator'] end if hash.has_key? 'deviceChannel' @device_channel = hash['deviceChannel'] end if hash.has_key? 'exemptionRequest' @exemption_request = hash['exemptionRequest'] end 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 = OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData']) end if hash.has_key? 'merchantFraudRate' @merchant_fraud_rate = hash['merchantFraudRate'] end if hash.has_key? 'priorThreeDSecureData' raise TypeError, "value '%s' is not a Hash" % [hash['priorThreeDSecureData']] unless hash['priorThreeDSecureData'].is_a? Hash @prior_three_d_secure_data = OnlinePayments::SDK::Domain::ThreeDSecureData.new_from_hash(hash['priorThreeDSecureData']) end if hash.has_key? 'redirectionData' raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']] unless hash['redirectionData'].is_a? Hash @redirection_data = OnlinePayments::SDK::Domain::RedirectionData.new_from_hash(hash['redirectionData']) end if hash.has_key? 'secureCorporatePayment' @secure_corporate_payment = hash['secureCorporatePayment'] end if hash.has_key? 'skipAuthentication' @skip_authentication = hash['skipAuthentication'] end if hash.has_key? 'skipSoftDecline' @skip_soft_decline = hash['skipSoftDecline'] end end |
#to_h ⇒ Hash
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 51 def to_h hash = super hash['authenticationAmount'] = @authentication_amount unless @authentication_amount.nil? hash['challengeCanvasSize'] = @challenge_canvas_size unless @challenge_canvas_size.nil? hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil? hash['deviceChannel'] = @device_channel unless @device_channel.nil? hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil? hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h unless @external_cardholder_authentication_data.nil? hash['merchantFraudRate'] = @merchant_fraud_rate unless @merchant_fraud_rate.nil? hash['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h unless @prior_three_d_secure_data.nil? hash['redirectionData'] = @redirection_data.to_h unless @redirection_data.nil? hash['secureCorporatePayment'] = @secure_corporate_payment unless @secure_corporate_payment.nil? hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil? hash['skipSoftDecline'] = @skip_soft_decline unless @skip_soft_decline.nil? hash end |