Class: Inttegro::Shared::CountryBank

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

Overview

A banking institution available in a country

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

#branches ⇒ Array<Inttegro::Shared::CountryBankBranch> (readonly)

Branches available for this bank

Required in the API payload. Wire name: branches.



48
49
50
51
52
53
54
# File 'lib/inttegro/shared/country_bank.rb', line 48

class CountryBank < T::Struct
  const :id, String
  const :name, String
  const :swift_code, T.nilable(String), default: nil
  const :sort_code_prefix, T.nilable(String), default: nil
  const :branches, T::Array[Inttegro::Shared::CountryBankBranch]
end

#id ⇒ String (readonly)

Stable bank identifier

Required in the API payload. Wire name: id.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/country_bank.rb', line 48

class CountryBank < T::Struct
  const :id, String
  const :name, String
  const :swift_code, T.nilable(String), default: nil
  const :sort_code_prefix, T.nilable(String), default: nil
  const :branches, T::Array[Inttegro::Shared::CountryBankBranch]
end

#name ⇒ String (readonly)

Bank display name

Required in the API payload. Wire name: name.

Returns:

  • (String)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/country_bank.rb', line 48

class CountryBank < T::Struct
  const :id, String
  const :name, String
  const :swift_code, T.nilable(String), default: nil
  const :sort_code_prefix, T.nilable(String), default: nil
  const :branches, T::Array[Inttegro::Shared::CountryBankBranch]
end

#sort_code_prefix ⇒ String? (readonly)

Ghana sort code prefix for the bank

Optional in the API payload; omitted values default to nil. Wire name: sort_code_prefix.

Returns:

  • (String, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/country_bank.rb', line 48

class CountryBank < T::Struct
  const :id, String
  const :name, String
  const :swift_code, T.nilable(String), default: nil
  const :sort_code_prefix, T.nilable(String), default: nil
  const :branches, T::Array[Inttegro::Shared::CountryBankBranch]
end

#swift_code ⇒ String? (readonly)

SWIFT/BIC code for the bank, when available

Optional in the API payload; omitted values default to nil. Wire name: swift_code.

Returns:

  • (String, nil)


48
49
50
51
52
53
54
# File 'lib/inttegro/shared/country_bank.rb', line 48

class CountryBank < T::Struct
  const :id, String
  const :name, String
  const :swift_code, T.nilable(String), default: nil
  const :sort_code_prefix, T.nilable(String), default: nil
  const :branches, T::Array[Inttegro::Shared::CountryBankBranch]
end