Class: Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificInputBase
- Inherits:
-
AbstractSepaDirectDebitPaymentMethodSpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- AbstractSepaDirectDebitPaymentMethodSpecificInput
- Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificInputBase
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb
Instance Attribute Summary collapse
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#payment_product771_specific_input ⇒ Object
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb', line 15 def payment_product771_specific_input @payment_product771_specific_input end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb', line 23 def from_hash(hash) super if hash.has_key?('paymentProduct771SpecificInput') if !(hash['paymentProduct771SpecificInput'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificInput']] end @payment_product771_specific_input = Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInputBase.new_from_hash(hash['paymentProduct771SpecificInput']) end end |
#to_h ⇒ Object
17 18 19 20 21 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb', line 17 def to_h hash = super add_to_hash(hash, 'paymentProduct771SpecificInput', @payment_product771_specific_input) hash end |