Inttegro.Specifications.CountryBank (inttegro v0.2.0)

Copy Markdown View Source

Represents Country Bank data in the Specifications API.

Inttegro decodes API responses into this struct. Required fields are always present; optional fields are nil when they do not apply or were not returned. Follow the linked types in t/0 for nested domain values.

Retrieves country-specific capabilities and financial institution directories.

Use specifications to populate supported-country, bank, branch, and provider choices. Treat the response as authoritative and refreshable rather than hard-coding a directory into an integration.

Summary

Types

t()

The decoded country bank value.

Functions

Builds a Inttegro.Specifications.CountryBank and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Specifications.CountryBank{
  branches: [Inttegro.Specifications.CountryBankBranch.t()],
  id: String.t(),
  name: String.t(),
  sort_code_prefix: String.t() | nil,
  swift_code: String.t() | nil
}

The decoded country bank value.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.Specifications.CountryBank and raises KeyError when a required field is missing.