class Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban

@attr [String] account_number @attr [String] bank_code @attr [String] bank_name @attr [String] branch_code @attr [String] check_digit @attr [String] country_code

Attributes

account_number[RW]
bank_code[RW]
bank_name[RW]
branch_code[RW]
check_digit[RW]
country_code[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/definitions/bank_account_bban.rb, line 43
def from_hash(hash)
  super
  if hash.has_key? 'accountNumber'
    @account_number = hash['accountNumber']
  end
  if hash.has_key? 'bankCode'
    @bank_code = hash['bankCode']
  end
  if hash.has_key? 'bankName'
    @bank_name = hash['bankName']
  end
  if hash.has_key? 'branchCode'
    @branch_code = hash['branchCode']
  end
  if hash.has_key? 'checkDigit'
    @check_digit = hash['checkDigit']
  end
  if hash.has_key? 'countryCode'
    @country_code = hash['countryCode']
  end
end
to_h() click to toggle source

@return (Hash)

# File lib/ingenico/connect/sdk/domain/definitions/bank_account_bban.rb, line 32
def to_h
  hash = super
  hash['accountNumber'] = @account_number unless @account_number.nil?
  hash['bankCode'] = @bank_code unless @bank_code.nil?
  hash['bankName'] = @bank_name unless @bank_name.nil?
  hash['branchCode'] = @branch_code unless @branch_code.nil?
  hash['checkDigit'] = @check_digit unless @check_digit.nil?
  hash['countryCode'] = @country_code unless @country_code.nil?
  hash
end