Class: Inttegro::Shared::CountryBankBranch

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/shared/country_bank_branch.rb

Overview

A bank branch in a country bank directory

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#id ⇒ String (readonly)

Stable branch identifier

Required in the API payload. Wire name: id.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/shared/country_bank_branch.rb', line 35

class CountryBankBranch < T::Struct
  const :id, String
  const :name, String
  const :sort_code, String
end

#name ⇒ String (readonly)

Branch display name

Required in the API payload. Wire name: name.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/shared/country_bank_branch.rb', line 35

class CountryBankBranch < T::Struct
  const :id, String
  const :name, String
  const :sort_code, String
end

#sort_code ⇒ String (readonly)

Ghana bank branch sort code

Required in the API payload. Wire name: sort_code.

Returns:

  • (String)


35
36
37
38
39
# File 'lib/inttegro/shared/country_bank_branch.rb', line 35

class CountryBankBranch < T::Struct
  const :id, String
  const :name, String
  const :sort_code, String
end