Class: Worldline::Connect::SDK::V1::Domain::BankAccountBbanRefund

Inherits:
BankAccountBban show all
Defined in:
lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb

Instance Attribute Summary collapse

Attributes inherited from BankAccountBban

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

Attributes inherited from BankAccount

#account_holder_name

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#bank_cityString

Returns the current value of bank_city.

Returns:

  • (String)

    the current value of bank_city



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 15

def bank_city
  @bank_city
end

#patronymic_nameString

Returns the current value of patronymic_name.

Returns:

  • (String)

    the current value of patronymic_name



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 15

def patronymic_name
  @patronymic_name
end

#swift_codeString

Returns the current value of swift_code.

Returns:

  • (String)

    the current value of swift_code



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 15

def swift_code
  @swift_code
end

Instance Method Details

#from_hash(hash) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 32

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)


24
25
26
27
28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/bank_account_bban_refund.rb', line 24

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