Class: Ingenico::Connect::SDK::Domain::Refund::BankAccountBbanRefund
Instance Attribute Summary collapse
#account_number, #bank_code, #bank_name, #branch_code, #check_digit, #country_code
#account_holder_name
Instance Method Summary
collapse
new_from_hash
Instance Attribute Details
#bank_city ⇒ String
14
15
16
|
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 14
def bank_city
@bank_city
end
|
#patronymic_name ⇒ String
14
15
16
|
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 14
def patronymic_name
@patronymic_name
end
|
#swift_code ⇒ String
14
15
16
|
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 14
def swift_code
@swift_code
end
|
Instance Method Details
#from_hash(hash) ⇒ Object
31
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 31
def from_hash(hash)
super
if hash.has_key? 'bankCity'
@bank_city = hash['bankCity']
end
if hash.has_key? 'patronymicName'
@patronymic_name = hash['patronymicName']
end
if hash.has_key? 'swiftCode'
@swift_code = hash['swiftCode']
end
end
|
#to_h ⇒ Hash
23
24
25
26
27
28
29
|
# File 'lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb', line 23
def to_h
hash = super
hash['bankCity'] = @bank_city unless @bank_city.nil?
hash['patronymicName'] = @patronymic_name unless @patronymic_name.nil?
hash['swiftCode'] = @swift_code unless @swift_code.nil?
hash
end
|