Class: Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::ThreeDSecureResults
- Defined in:
- lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb
Instance Attribute Summary collapse
-
#acs_transaction_id ⇒ String
The current value of acs_transaction_id.
-
#applied_exemption ⇒ String
The current value of applied_exemption.
-
#authentication_amount ⇒ Worldline::Connect::SDK::V1::Domain::AmountOfMoney
The current value of authentication_amount.
-
#cavv ⇒ String
The current value of cavv.
-
#directory_server_transaction_id ⇒ String
The current value of directory_server_transaction_id.
-
#eci ⇒ String
The current value of eci.
-
#exemption_output ⇒ Worldline::Connect::SDK::V1::Domain::ExemptionOutput
The current value of exemption_output.
-
#scheme_risk_score ⇒ Integer
The current value of scheme_risk_score.
-
#sdk_data ⇒ Worldline::Connect::SDK::V1::Domain::SdkDataOutput
The current value of sdk_data.
-
#three_d_secure_data ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecureData
The current value of three_d_secure_data.
-
#three_d_secure_version ⇒ String
The current value of three_d_secure_version.
-
#three_d_server_transaction_id ⇒ String
The current value of three_d_server_transaction_id.
-
#xid ⇒ String
The current value of xid.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#acs_transaction_id ⇒ String
Returns the current value of acs_transaction_id.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def acs_transaction_id @acs_transaction_id end |
#applied_exemption ⇒ String
Returns the current value of applied_exemption.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def applied_exemption @applied_exemption end |
#authentication_amount ⇒ Worldline::Connect::SDK::V1::Domain::AmountOfMoney
Returns the current value of authentication_amount.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def authentication_amount @authentication_amount end |
#cavv ⇒ String
Returns the current value of cavv.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def cavv @cavv end |
#directory_server_transaction_id ⇒ String
Returns the current value of directory_server_transaction_id.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def directory_server_transaction_id @directory_server_transaction_id end |
#eci ⇒ String
Returns the current value of eci.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def eci @eci end |
#exemption_output ⇒ Worldline::Connect::SDK::V1::Domain::ExemptionOutput
Returns the current value of exemption_output.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def exemption_output @exemption_output end |
#scheme_risk_score ⇒ Integer
Returns the current value of scheme_risk_score.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def scheme_risk_score @scheme_risk_score end |
#sdk_data ⇒ Worldline::Connect::SDK::V1::Domain::SdkDataOutput
Returns the current value of sdk_data.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def sdk_data @sdk_data end |
#three_d_secure_data ⇒ Worldline::Connect::SDK::V1::Domain::ThreeDSecureData
Returns the current value of three_d_secure_data.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def three_d_secure_data @three_d_secure_data end |
#three_d_secure_version ⇒ String
Returns the current value of three_d_secure_version.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def three_d_secure_version @three_d_secure_version end |
#three_d_server_transaction_id ⇒ String
Returns the current value of three_d_server_transaction_id.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def three_d_server_transaction_id @three_d_server_transaction_id end |
#xid ⇒ String
Returns the current value of xid.
29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 29 def xid @xid end |
Instance Method Details
#from_hash(hash) ⇒ Object
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 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 76 def from_hash(hash) super if hash.has_key? 'acsTransactionId' @acs_transaction_id = hash['acsTransactionId'] end if hash.has_key? 'appliedExemption' @applied_exemption = hash['appliedExemption'] end 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? 'cavv' @cavv = hash['cavv'] end if hash.has_key? 'directoryServerTransactionId' @directory_server_transaction_id = hash['directoryServerTransactionId'] end if hash.has_key? 'eci' @eci = hash['eci'] end if hash.has_key? 'exemptionOutput' raise TypeError, "value '%s' is not a Hash" % [hash['exemptionOutput']] unless hash['exemptionOutput'].is_a? Hash @exemption_output = Worldline::Connect::SDK::V1::Domain::ExemptionOutput.new_from_hash(hash['exemptionOutput']) end if hash.has_key? 'schemeRiskScore' @scheme_risk_score = hash['schemeRiskScore'] 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::SdkDataOutput.new_from_hash(hash['sdkData']) end if hash.has_key? 'threeDSecureData' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecureData']] unless hash['threeDSecureData'].is_a? Hash @three_d_secure_data = Worldline::Connect::SDK::V1::Domain::ThreeDSecureData.new_from_hash(hash['threeDSecureData']) end if hash.has_key? 'threeDSecureVersion' @three_d_secure_version = hash['threeDSecureVersion'] end if hash.has_key? 'threeDServerTransactionId' @three_d_server_transaction_id = hash['threeDServerTransactionId'] end if hash.has_key? 'xid' @xid = hash['xid'] end end |
#to_h ⇒ Hash
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/worldline/connect/sdk/v1/domain/three_d_secure_results.rb', line 58 def to_h hash = super hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil? hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil? hash['authenticationAmount'] = @authentication_amount.to_h unless @authentication_amount.nil? hash['cavv'] = @cavv unless @cavv.nil? hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil? hash['eci'] = @eci unless @eci.nil? hash['exemptionOutput'] = @exemption_output.to_h unless @exemption_output.nil? hash['schemeRiskScore'] = @scheme_risk_score unless @scheme_risk_score.nil? hash['sdkData'] = @sdk_data.to_h unless @sdk_data.nil? hash['threeDSecureData'] = @three_d_secure_data.to_h unless @three_d_secure_data.nil? hash['threeDSecureVersion'] = @three_d_secure_version unless @three_d_secure_version.nil? hash['threeDServerTransactionId'] = @three_d_server_transaction_id unless @three_d_server_transaction_id.nil? hash['xid'] = @xid unless @xid.nil? hash end |