class Ingenico::Connect::SDK::Domain::Payment::TrustlyBankAccount

@attr [String] account_last_digits @attr [String] bank_name @attr [String] clearinghouse @attr [String] person_identification_number

Attributes

account_last_digits[RW]
bank_name[RW]
clearinghouse[RW]
person_identification_number[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb, line 35
def from_hash(hash)
  super
  if hash.has_key? 'accountLastDigits'
    @account_last_digits = hash['accountLastDigits']
  end
  if hash.has_key? 'bankName'
    @bank_name = hash['bankName']
  end
  if hash.has_key? 'clearinghouse'
    @clearinghouse = hash['clearinghouse']
  end
  if hash.has_key? 'personIdentificationNumber'
    @person_identification_number = hash['personIdentificationNumber']
  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/trustly_bank_account.rb, line 26
def to_h
  hash = super
  hash['accountLastDigits'] = @account_last_digits unless @account_last_digits.nil?
  hash['bankName'] = @bank_name unless @bank_name.nil?
  hash['clearinghouse'] = @clearinghouse unless @clearinghouse.nil?
  hash['personIdentificationNumber'] = @person_identification_number unless @person_identification_number.nil?
  hash
end