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 ⇒ Object
String.
-
#eci ⇒ Object
String.
-
#xid ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#cavv ⇒ Object
String
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 14 def cavv @cavv end |
#eci ⇒ Object
String
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 17 def eci @eci end |
#xid ⇒ Object
String
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 20 def xid @xid end |
Instance Method Details
#from_hash(hash) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 30 def from_hash(hash) super if hash.has_key?('cavv') @cavv = hash['cavv'] end if hash.has_key?('eci') @eci = hash['eci'] end if hash.has_key?('xid') @xid = hash['xid'] end end |
#to_h ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb', line 22 def to_h hash = super add_to_hash(hash, 'cavv', @cavv) add_to_hash(hash, 'eci', @eci) add_to_hash(hash, 'xid', @xid) hash end |