ClearBank.Schemas.Transaction (ClearBank v1.0.0)

Copy Markdown View Source

Typed struct for a GBP account transaction.

Summary

Types

direction()

@type direction() :: :inbound | :outbound

status()

@type status() :: :settled | :pending | :rejected | :returned

t()

@type t() :: %ClearBank.Schemas.Transaction{
  account_id: String.t(),
  amount: String.t(),
  counterpart_account_number: String.t() | nil,
  counterpart_name: String.t() | nil,
  counterpart_sort_code: String.t() | nil,
  created_at: String.t() | nil,
  currency: String.t(),
  direction: direction(),
  end_to_end_id: String.t() | nil,
  id: String.t(),
  reference: String.t() | nil,
  status: status(),
  type: String.t(),
  virtual_account_id: String.t() | nil
}

Functions

from_map(m)

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