Inttegro.BankAccounts.GhanaAccount (inttegro v0.2.0)

Copy Markdown View Source

Represents Ghana Account data in the BankAccounts 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.

Bank-account ownership, address, and country-specific account values shared by financial accounts and payment methods. Account details are typed without exposing provider credentials or treating one country's format as universal.

Summary

Types

t()

The decoded ghana account value.

Functions

Builds a Inttegro.BankAccounts.GhanaAccount and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.BankAccounts.GhanaAccount{
  branch: String.t() | nil,
  holder: Inttegro.FinancialAccounts.Owner.t(),
  name: String.t() | nil,
  number: String.t(),
  sort_code: String.t() | nil,
  swift_code: String.t() | nil
}

The decoded ghana account value.

Functions

new!(attrs \\ %{})

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

Builds a Inttegro.BankAccounts.GhanaAccount and raises KeyError when a required field is missing.