Class: Worldline::Connect::SDK::V1::Domain::DecryptedPaymentData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::DecryptedPaymentData
- Defined in:
- lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb
Instance Attribute Summary collapse
-
#auth_method ⇒ Object
deprecated
Deprecated.
Use decryptedPaymentData.paymentMethod instead
-
#cardholder_name ⇒ String
The current value of cardholder_name.
-
#cryptogram ⇒ String
The current value of cryptogram.
-
#dpan ⇒ String
The current value of dpan.
-
#eci ⇒ Integer
The current value of eci.
-
#expiry_date ⇒ String
The current value of expiry_date.
-
#pan ⇒ String
The current value of pan.
-
#payment_method ⇒ String
The current value of payment_method.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#auth_method ⇒ Object
Deprecated.
Use decryptedPaymentData.paymentMethod instead
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def auth_method @auth_method end |
#cardholder_name ⇒ String
Returns the current value of cardholder_name.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def cardholder_name @cardholder_name end |
#cryptogram ⇒ String
Returns the current value of cryptogram.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def cryptogram @cryptogram end |
#dpan ⇒ String
Returns the current value of dpan.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def dpan @dpan end |
#eci ⇒ Integer
Returns the current value of eci.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def eci @eci end |
#expiry_date ⇒ String
Returns the current value of expiry_date.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def expiry_date @expiry_date end |
#pan ⇒ String
Returns the current value of pan.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def pan @pan end |
#payment_method ⇒ String
Returns the current value of payment_method.
20 21 22 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 20 def payment_method @payment_method 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 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 53 def from_hash(hash) super if hash.has_key? 'authMethod' @auth_method = hash['authMethod'] end if hash.has_key? 'cardholderName' @cardholder_name = hash['cardholderName'] end if hash.has_key? 'cryptogram' @cryptogram = hash['cryptogram'] end if hash.has_key? 'dpan' @dpan = hash['dpan'] end if hash.has_key? 'eci' @eci = hash['eci'] end if hash.has_key? 'expiryDate' @expiry_date = hash['expiryDate'] end if hash.has_key? 'pan' @pan = hash['pan'] end if hash.has_key? 'paymentMethod' @payment_method = hash['paymentMethod'] end end |
#to_h ⇒ Hash
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb', line 40 def to_h hash = super hash['authMethod'] = @auth_method unless @auth_method.nil? hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil? hash['cryptogram'] = @cryptogram unless @cryptogram.nil? hash['dpan'] = @dpan unless @dpan.nil? hash['eci'] = @eci unless @eci.nil? hash['expiryDate'] = @expiry_date unless @expiry_date.nil? hash['pan'] = @pan unless @pan.nil? hash['paymentMethod'] = @payment_method unless @payment_method.nil? hash end |