Class: Ingenico::Connect::SDK::Domain::Refund::BankAccountBbanRefund

Inherits:
Definitions::BankAccountBban show all
Defined in:
lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb

Instance Attribute Summary collapse

Attributes inherited from Definitions::BankAccountBban

#account_number, #bank_code, #bank_name, #branch_code, #check_digit, #country_code

Attributes inherited from Definitions::BankAccount

#account_holder_name

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#bank_cityObject

String



14
15
16
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 14

def bank_city
  @bank_city
end

#swift_codeObject

String



17
18
19
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 17

def swift_code
  @swift_code
end

Instance Method Details

#from_hash(hash) ⇒ Object



26
27
28
29
30
31
32
33
34
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 26

def from_hash(hash)
  super
  if hash.has_key?('bankCity')
    @bank_city = hash['bankCity']
  end
  if hash.has_key?('swiftCode')
    @swift_code = hash['swiftCode']
  end
end

#to_hObject



19
20
21
22
23
24
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 19

def to_h
  hash = super
  add_to_hash(hash, 'bankCity', @bank_city)
  add_to_hash(hash, 'swiftCode', @swift_code)
  hash
end