Class: Worldline::Connect::SDK::V1::Domain::AbstractThreeDSecure
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::AbstractThreeDSecure
- Defined in:
- lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#authentication_amount ⇒ Worldline::Connect::SDK::V1::Domain::AmountOfMoney
The current value of authentication_amount.
-
#authentication_flow ⇒ String
The current value of authentication_flow.
-
#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.
-
#prior_three_d_secure_data ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecureData
The current value of prior_three_d_secure_data.
-
#sdk_data ⇒ Worldline::Connect::SDK::V1::Domain::SdkDataInput
The current value of sdk_data.
-
#skip_authentication ⇒ true/false
The current value of skip_authentication.
-
#transaction_risk_level ⇒ String
The current value of transaction_risk_level.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#authentication_amount ⇒ Worldline::Connect::SDK::V1::Domain::AmountOfMoney
Returns the current value of authentication_amount.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def authentication_amount @authentication_amount end |
#authentication_flow ⇒ String
Returns the current value of authentication_flow.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def authentication_flow @authentication_flow end |
#challenge_canvas_size ⇒ String
Returns the current value of challenge_canvas_size.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_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/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def challenge_indicator @challenge_indicator end |
#exemption_request ⇒ String
Returns the current value of exemption_request.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def exemption_request @exemption_request end |
#prior_three_d_secure_data ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecureData
Returns the current value of prior_three_d_secure_data.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def prior_three_d_secure_data @prior_three_d_secure_data end |
#sdk_data ⇒ Worldline::Connect::SDK::V1::Domain::SdkDataInput
Returns the current value of sdk_data.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def sdk_data @sdk_data end |
#skip_authentication ⇒ true/false
Returns the current value of skip_authentication.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def skip_authentication @skip_authentication end |
#transaction_risk_level ⇒ String
Returns the current value of transaction_risk_level.
24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 24 def transaction_risk_level @transaction_risk_level end |
Instance Method Details
#from_hash(hash) ⇒ Object
[View source]
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 59 def from_hash(hash) super if hash.has_key? 'authenticationAmount' raise TypeError, "value '%s' is not a Hash" % [hash['authenticationAmount']] unless hash['authenticationAmount'].is_a? Hash @authentication_amount = Worldline::Connect::SDK::V1::Domain::AmountOfMoney.new_from_hash(hash['authenticationAmount']) end if hash.has_key? 'authenticationFlow' @authentication_flow = hash['authenticationFlow'] 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? 'exemptionRequest' @exemption_request = hash['exemptionRequest'] 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 = Worldline::Connect::SDK::V1::Domain::ThreeDSecureData.new_from_hash(hash['priorThreeDSecureData']) end if hash.has_key? 'sdkData' raise TypeError, "value '%s' is not a Hash" % [hash['sdkData']] unless hash['sdkData'].is_a? Hash @sdk_data = Worldline::Connect::SDK::V1::Domain::SdkDataInput.new_from_hash(hash['sdkData']) end if hash.has_key? 'skipAuthentication' @skip_authentication = hash['skipAuthentication'] end if hash.has_key? 'transactionRiskLevel' @transaction_risk_level = hash['transactionRiskLevel'] end end |
#to_h ⇒ Hash
45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/worldline/connect/sdk/v1/domain/abstract_three_d_secure.rb', line 45 def to_h hash = super hash['authenticationAmount'] = @authentication_amount.to_h unless @authentication_amount.nil? hash['authenticationFlow'] = @authentication_flow unless @authentication_flow.nil? 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['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h unless @prior_three_d_secure_data.nil? hash['sdkData'] = @sdk_data.to_h unless @sdk_data.nil? hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil? hash['transactionRiskLevel'] = @transaction_risk_level unless @transaction_risk_level.nil? hash end |