Class: Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentMethodSpecificInput
- Inherits:
-
AbstractEInvoicePaymentMethodSpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- AbstractEInvoicePaymentMethodSpecificInput
- 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
-
#accepted_terms_and_conditions ⇒ true/false
The current value of accepted_terms_and_conditions.
-
#payment_product9000_specific_input ⇒ Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificInput
The current value of payment_product9000_specific_input.
Attributes inherited from AbstractEInvoicePaymentMethodSpecificInput
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#accepted_terms_and_conditions ⇒ true/false
Returns the current value of accepted_terms_and_conditions.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 14 def accepted_terms_and_conditions @accepted_terms_and_conditions end |
#payment_product9000_specific_input ⇒ Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificInput
Returns the current value of payment_product9000_specific_input.
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 14 def payment_product9000_specific_input @payment_product9000_specific_input end |
Instance Method Details
#from_hash(hash) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 28 def from_hash(hash) super if hash.has_key? 'acceptedTermsAndConditions' @accepted_terms_and_conditions = hash['acceptedTermsAndConditions'] end if hash.has_key? 'paymentProduct9000SpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct9000SpecificInput']] unless hash['paymentProduct9000SpecificInput'].is_a? Hash @payment_product9000_specific_input = Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificInput.new_from_hash(hash['paymentProduct9000SpecificInput']) end end |
#to_h ⇒ Hash
21 22 23 24 25 26 |
# File 'lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb', line 21 def to_h hash = super hash['acceptedTermsAndConditions'] = @accepted_terms_and_conditions unless @accepted_terms_and_conditions.nil? hash['paymentProduct9000SpecificInput'] = @payment_product9000_specific_input.to_h unless @payment_product9000_specific_input.nil? hash end |