class Ingenico::Connect::SDK::Domain::Payment::EInvoicePaymentProduct9000SpecificInput

@attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban] bank_account_iban @attr [String] installment_id

Attributes

bank_account_iban[RW]
installment_id[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_input.rb, line 28
def from_hash(hash)
  super
  if hash.has_key? 'bankAccountIban'
    raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash
    @bank_account_iban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban.new_from_hash(hash['bankAccountIban'])
  end
  if hash.has_key? 'installmentId'
    @installment_id = hash['installmentId']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_input.rb, line 21
def to_h
  hash = super
  hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil?
  hash['installmentId'] = @installment_id unless @installment_id.nil?
  hash
end