lib/iso_20022/camt/053/account.ex

defmodule ISO20022.Camt053.Account do
  @moduledoc """
  Account identification from `<Acct>` within a statement.

  Either `iban` or `other_id` will be present; both may be nil for unusual account formats.
  """

  @type t :: %__MODULE__{
          iban: String.t() | nil,
          other_id: String.t() | nil,
          other_scheme: String.t() | nil,
          currency: String.t() | nil,
          servicer_bic: String.t() | nil,
          name: String.t() | nil
        }

  defstruct [:iban, :other_id, :other_scheme, :currency, :servicer_bic, :name]
end