Class: Ingenico::Connect::SDK::Domain::Payment::MobilePaymentProduct320SpecificInput
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::MobilePaymentProduct320SpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb
Instance Attribute Summary collapse
-
#cardholder_name ⇒ String
The current value of cardholder_name.
-
#three_d_secure ⇒ Ingenico::Connect::SDK::Domain::Payment::GPayThreeDSecure
The current value of three_d_secure.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#cardholder_name ⇒ String
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb', line 15 def cardholder_name @cardholder_name end |
#three_d_secure ⇒ Ingenico::Connect::SDK::Domain::Payment::GPayThreeDSecure
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb', line 15 def three_d_secure @three_d_secure end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb', line 29 def from_hash(hash) super if hash.has_key? 'cardholderName' @cardholder_name = hash['cardholderName'] end if hash.has_key? 'threeDSecure' raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash @three_d_secure = Ingenico::Connect::SDK::Domain::Payment::GPayThreeDSecure.new_from_hash(hash['threeDSecure']) end end |
#to_h ⇒ Hash
22 23 24 25 26 27 |
# File 'lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb', line 22 def to_h hash = super hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil? hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil? hash end |