Class: Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentMethodSpecificInput
- Inherits:
-
EInvoicePaymentMethodSpecificInputBase
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- EInvoicePaymentMethodSpecificInputBase
- Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentMethodSpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb
Instance Attribute Summary collapse
Attributes inherited from EInvoicePaymentMethodSpecificInputBase
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#accepted_terms_and_conditions ⇒ Object
true/false
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 15 def accepted_terms_and_conditions @accepted_terms_and_conditions end |
#payment_product9000_specific_input ⇒ Object
18 19 20 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 18 def payment_product9000_specific_input @payment_product9000_specific_input end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 27 def from_hash(hash) super if hash.has_key?('acceptedTermsAndConditions') @accepted_terms_and_conditions = hash['acceptedTermsAndConditions'] end if hash.has_key?('paymentProduct9000SpecificInput') if !(hash['paymentProduct9000SpecificInput'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct9000SpecificInput']] end @payment_product9000_specific_input = Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificInput.new_from_hash(hash['paymentProduct9000SpecificInput']) end end |
#to_h ⇒ Object
20 21 22 23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 20 def to_h hash = super add_to_hash(hash, 'acceptedTermsAndConditions', @accepted_terms_and_conditions) add_to_hash(hash, 'paymentProduct9000SpecificInput', @payment_product9000_specific_input) hash end |