Class: Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureResults
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureResults
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb
Instance Attribute Summary collapse
-
#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.
-
#sdk_data ⇒ Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput
The current value of sdk_data.
-
#three_d_secure_data ⇒ Ingenico::Connect::SDK::Domain::Payment::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 Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#cavv ⇒ String
Returns the current value of cavv.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 def cavv @cavv end |
#directory_server_transaction_id ⇒ String
Returns the current value of directory_server_transaction_id.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 def directory_server_transaction_id @directory_server_transaction_id end |
#eci ⇒ String
Returns the current value of eci.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 def eci @eci end |
#sdk_data ⇒ Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput
Returns the current value of sdk_data.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 def sdk_data @sdk_data end |
#three_d_secure_data ⇒ Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData
Returns the current value of three_d_secure_data.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 def three_d_secure_data @three_d_secure_data end |
#three_d_secure_version ⇒ String
Returns the current value of three_d_secure_version.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 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.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 def three_d_server_transaction_id @three_d_server_transaction_id end |
#xid ⇒ String
Returns the current value of xid.
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 21 def xid @xid end |
Instance Method Details
#from_hash(hash) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 53 def from_hash(hash) super 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? 'sdkData' raise TypeError, "value '%s' is not a Hash" % [hash['sdkData']] unless hash['sdkData'].is_a? Hash @sdk_data = Ingenico::Connect::SDK::Domain::Payment::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 = Ingenico::Connect::SDK::Domain::Payment::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
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 40 def to_h hash = super 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['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 |