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_cityString

Returns the current value of bank_city.

Returns:

  • (String)

    the current value of bank_city



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

def bank_city
  @bank_city
end

#patronymic_nameString

Returns the current value of patronymic_name.

Returns:

  • (String)

    the current value of patronymic_name



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

def patronymic_name
  @patronymic_name
end

#swift_codeString

Returns the current value of swift_code.

Returns:

  • (String)

    the current value of swift_code



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_hHash

Returns:

  • (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