class Ingenico::Connect::SDK::Domain::Services::BankDetailsResponse
@attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban] bank_account_bban
@attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban] bank_account_iban
@attr [Ingenico::Connect::SDK::Domain::Services::BankData] bank_data
@attr [Ingenico::Connect::SDK::Domain::Services::Swift] swift
Attributes
bank_account_bban[RW]
bank_account_iban[RW]
bank_data[RW]
swift[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/services/bank_details_response.rb, line 39 def from_hash(hash) super if hash.has_key? 'bankAccountBban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash @bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban.new_from_hash(hash['bankAccountBban']) end 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? 'bankData' raise TypeError, "value '%s' is not a Hash" % [hash['bankData']] unless hash['bankData'].is_a? Hash @bank_data = Ingenico::Connect::SDK::Domain::Services::BankData.new_from_hash(hash['bankData']) end if hash.has_key? 'swift' raise TypeError, "value '%s' is not a Hash" % [hash['swift']] unless hash['swift'].is_a? Hash @swift = Ingenico::Connect::SDK::Domain::Services::Swift.new_from_hash(hash['swift']) 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/services/bank_details_response.rb, line 30 def to_h hash = super hash['bankAccountBban'] = @bank_account_bban.to_h unless @bank_account_bban.nil? hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil? hash['bankData'] = @bank_data.to_h unless @bank_data.nil? hash['swift'] = @swift.to_h unless @swift.nil? hash end