Class: OnlinePayments::SDK::Domain::ThreeDSecure
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::ThreeDSecure
- Defined in:
- lib/onlinepayments/sdk/domain/three_d_secure.rb
Instance Attribute Summary collapse
-
#authentication_amount ⇒ Long
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.
-
#decoupled_indicator ⇒ true/false
The current value of decoupled_indicator.
-
#decoupled_max_time ⇒ String
The current value of decoupled_max_time.
-
#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.
-
#payment_token_source ⇒ String
The current value of payment_token_source.
-
#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.
-
#three_ri_indicator ⇒ String
The current value of three_ri_indicator.
-
#whitelist ⇒ OnlinePayments::SDK::Domain::ThreeDSWhitelist
The current value of whitelist.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#authentication_amount ⇒ Long
Returns the current value of authentication_amount.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def authentication_amount @authentication_amount end |
#challenge_canvas_size ⇒ String
Returns the current value of challenge_canvas_size.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def challenge_canvas_size @challenge_canvas_size end |
#challenge_indicator ⇒ String
Returns the current value of challenge_indicator.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def challenge_indicator @challenge_indicator end |
#decoupled_indicator ⇒ true/false
Returns the current value of decoupled_indicator.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def decoupled_indicator @decoupled_indicator end |
#decoupled_max_time ⇒ String
Returns the current value of decoupled_max_time.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def decoupled_max_time @decoupled_max_time end |
#exemption_request ⇒ String
Returns the current value of exemption_request.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def exemption_request @exemption_request end |
#external_cardholder_authentication_data ⇒ OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData
Returns the current value of external_cardholder_authentication_data.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def external_cardholder_authentication_data @external_cardholder_authentication_data end |
#merchant_fraud_rate ⇒ Integer
Returns the current value of merchant_fraud_rate.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def merchant_fraud_rate @merchant_fraud_rate end |
#payment_token_source ⇒ String
Returns the current value of payment_token_source.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def payment_token_source @payment_token_source end |
#prior_three_d_secure_data ⇒ OnlinePayments::SDK::Domain::ThreeDSecureData
Returns the current value of prior_three_d_secure_data.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 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.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def redirection_data @redirection_data end |
#secure_corporate_payment ⇒ true/false
Returns the current value of secure_corporate_payment.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def secure_corporate_payment @secure_corporate_payment end |
#skip_authentication ⇒ true/false
Returns the current value of skip_authentication.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def skip_authentication @skip_authentication end |
#skip_soft_decline ⇒ true/false
Returns the current value of skip_soft_decline.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def skip_soft_decline @skip_soft_decline end |
#three_ri_indicator ⇒ String
Returns the current value of three_ri_indicator.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def three_ri_indicator @three_ri_indicator end |
#whitelist ⇒ OnlinePayments::SDK::Domain::ThreeDSWhitelist
Returns the current value of whitelist.
29 30 31 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 29 def whitelist @whitelist end |
Instance Method Details
#from_hash(hash) ⇒ Object
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 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 69 def from_hash(hash) super @authentication_amount = hash['authenticationAmount'] if hash.key? 'authenticationAmount' @challenge_canvas_size = hash['challengeCanvasSize'] if hash.key? 'challengeCanvasSize' @challenge_indicator = hash['challengeIndicator'] if hash.key? 'challengeIndicator' @decoupled_indicator = hash['decoupledIndicator'] if hash.key? 'decoupledIndicator' @decoupled_max_time = hash['decoupledMaxTime'] if hash.key? 'decoupledMaxTime' @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 = OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData']) end @merchant_fraud_rate = hash['merchantFraudRate'] if hash.key? 'merchantFraudRate' @payment_token_source = hash['paymentTokenSource'] if hash.key? 'paymentTokenSource' 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 = OnlinePayments::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 = OnlinePayments::SDK::Domain::RedirectionData.new_from_hash(hash['redirectionData']) end @secure_corporate_payment = hash['secureCorporatePayment'] if hash.key? 'secureCorporatePayment' @skip_authentication = hash['skipAuthentication'] if hash.key? 'skipAuthentication' @skip_soft_decline = hash['skipSoftDecline'] if hash.key? 'skipSoftDecline' @three_ri_indicator = hash['threeRIIndicator'] if hash.key? 'threeRIIndicator' if hash.key? 'whitelist' raise TypeError, "value '%s' is not a Hash" % [hash['whitelist']] unless hash['whitelist'].is_a? Hash @whitelist = OnlinePayments::SDK::Domain::ThreeDSWhitelist.new_from_hash(hash['whitelist']) end end |
#to_h ⇒ Hash
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/onlinepayments/sdk/domain/three_d_secure.rb', line 48 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['decoupledIndicator'] = @decoupled_indicator unless @decoupled_indicator.nil? hash['decoupledMaxTime'] = @decoupled_max_time unless @decoupled_max_time.nil? hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil? hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h if @external_cardholder_authentication_data hash['merchantFraudRate'] = @merchant_fraud_rate unless @merchant_fraud_rate.nil? hash['paymentTokenSource'] = @payment_token_source unless @payment_token_source.nil? 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['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['threeRIIndicator'] = @three_ri_indicator unless @three_ri_indicator.nil? hash['whitelist'] = @whitelist.to_h if @whitelist hash end |