Class: Ingenico::Connect::SDK::Domain::Payment::CashPaymentMethodSpecificInput
- Inherits:
-
CashPaymentMethodSpecificInputBase
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- CashPaymentMethodSpecificInputBase
- Ingenico::Connect::SDK::Domain::Payment::CashPaymentMethodSpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb
Overview
Instance Attribute Summary collapse
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#payment_product1503_specific_input ⇒ Object
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb', line 17 def payment_product1503_specific_input @payment_product1503_specific_input end |
#payment_product1504_specific_input ⇒ Object
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb', line 20 def payment_product1504_specific_input @payment_product1504_specific_input end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb', line 29 def from_hash(hash) super if hash.has_key?('paymentProduct1503SpecificInput') if !(hash['paymentProduct1503SpecificInput'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1503SpecificInput']] end @payment_product1503_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1503SpecificInput.new_from_hash(hash['paymentProduct1503SpecificInput']) end if hash.has_key?('paymentProduct1504SpecificInput') if !(hash['paymentProduct1504SpecificInput'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1504SpecificInput']] end @payment_product1504_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1504SpecificInput.new_from_hash(hash['paymentProduct1504SpecificInput']) end end |
#to_h ⇒ Object
22 23 24 25 26 27 |
# File 'lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb', line 22 def to_h hash = super add_to_hash(hash, 'paymentProduct1503SpecificInput', @payment_product1503_specific_input) add_to_hash(hash, 'paymentProduct1504SpecificInput', @payment_product1504_specific_input) hash end |