ClearBank.Schemas.EmbeddedAccount (ClearBank v1.0.0)

Copy Markdown View Source

Typed struct for an Embedded Banking account.

Summary

Types

account_type()

@type account_type() :: :payment | :savings | :cash_isa | :hub

status()

@type status() :: :active | :suspended | :closed

t()

@type t() :: %ClearBank.Schemas.EmbeddedAccount{
  account_number: String.t() | nil,
  balance: String.t() | nil,
  created_at: String.t() | nil,
  currency: String.t(),
  customer_id: String.t() | nil,
  iban: String.t() | nil,
  id: String.t(),
  name: String.t(),
  sort_code: String.t() | nil,
  status: status(),
  type: account_type()
}

Functions

from_map(m)

@spec from_map(map()) :: t()