class Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct816SpecificInput

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

Attributes

bank_account_iban[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb, line 24
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
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/redirect_payment_product816_specific_input.rb, line 18
def to_h
  hash = super
  hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil?
  hash
end