class Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentMethodSpecificInput
@attr [true/false] accepted_terms_and_conditions
@attr [Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificInput] payment_product9000_specific_input
Attributes
accepted_terms_and_conditions[RW]
payment_product9000_specific_input[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::Domain::Payment::AbstractEInvoicePaymentMethodSpecificInput#from_hash
# 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::Domain::Payment::AbstractEInvoicePaymentMethodSpecificInput#to_h
# 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