Class: Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb
Instance Attribute Summary collapse
-
#cavv ⇒ String
The current value of cavv.
-
#cavv_algorithm ⇒ String
The current value of cavv_algorithm.
-
#directory_server_transaction_id ⇒ String
The current value of directory_server_transaction_id.
-
#eci ⇒ Integer
The current value of eci.
-
#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.
-
#validation_result ⇒ String
The current value of validation_result.
-
#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.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 def cavv @cavv end |
#cavv_algorithm ⇒ String
Returns the current value of cavv_algorithm.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 def cavv_algorithm @cavv_algorithm end |
#directory_server_transaction_id ⇒ String
Returns the current value of directory_server_transaction_id.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 def directory_server_transaction_id @directory_server_transaction_id end |
#eci ⇒ Integer
Returns the current value of eci.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 def eci @eci end |
#three_d_secure_version ⇒ String
Returns the current value of three_d_secure_version.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 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.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 def three_d_server_transaction_id @three_d_server_transaction_id end |
#validation_result ⇒ String
Returns the current value of validation_result.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 def validation_result @validation_result end |
#xid ⇒ String
Returns the current value of xid.
19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 19 def xid @xid end |
Instance Method Details
#from_hash(hash) ⇒ Object
51 52 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 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 51 def from_hash(hash) super if hash.has_key? 'cavv' @cavv = hash['cavv'] end if hash.has_key? 'cavvAlgorithm' @cavv_algorithm = hash['cavvAlgorithm'] 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? '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? 'validationResult' @validation_result = hash['validationResult'] end if hash.has_key? 'xid' @xid = hash['xid'] end end |
#to_h ⇒ Hash
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb', line 38 def to_h hash = super hash['cavv'] = @cavv unless @cavv.nil? hash['cavvAlgorithm'] = @cavv_algorithm unless @cavv_algorithm.nil? hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil? hash['eci'] = @eci unless @eci.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['validationResult'] = @validation_result unless @validation_result.nil? hash['xid'] = @xid unless @xid.nil? hash end |