Class: Ingenico::Direct::SDK::Domain::ThreeDSecureBase
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::ThreeDSecureBase
- Defined in:
- lib/ingenico/direct/sdk/domain/three_d_secure_base.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.
-
#merchant_fraud_rate ⇒ Integer
The current value of merchant_fraud_rate.
-
#prior_three_d_secure_data ⇒ Ingenico::Direct::SDK::Domain::ThreeDSecureData
The current value of prior_three_d_secure_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 Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#challenge_canvas_size ⇒ String
Returns the current value of challenge_canvas_size.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def challenge_canvas_size @challenge_canvas_size end |
#challenge_indicator ⇒ String
Returns the current value of challenge_indicator.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def challenge_indicator @challenge_indicator end |
#exemption_request ⇒ String
Returns the current value of exemption_request.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def exemption_request @exemption_request end |
#merchant_fraud_rate ⇒ Integer
Returns the current value of merchant_fraud_rate.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def merchant_fraud_rate @merchant_fraud_rate end |
#prior_three_d_secure_data ⇒ Ingenico::Direct::SDK::Domain::ThreeDSecureData
Returns the current value of prior_three_d_secure_data.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def prior_three_d_secure_data @prior_three_d_secure_data end |
#secure_corporate_payment ⇒ true/false
Returns the current value of secure_corporate_payment.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def secure_corporate_payment @secure_corporate_payment end |
#skip_authentication ⇒ true/false
Returns the current value of skip_authentication.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def skip_authentication @skip_authentication end |
#skip_soft_decline ⇒ true/false
Returns the current value of skip_soft_decline.
19 20 21 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 19 def skip_soft_decline @skip_soft_decline end |
Instance Method Details
#from_hash(hash) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.rb', line 43 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' @merchant_fraud_rate = hash['merchantFraudRate'] if hash.key? 'merchantFraudRate' 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 @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' end |
#to_h ⇒ Hash
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ingenico/direct/sdk/domain/three_d_secure_base.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['merchantFraudRate'] = @merchant_fraud_rate unless @merchant_fraud_rate.nil? hash['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h if @prior_three_d_secure_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 end |