TigerBeetlex.Transfer (tigerbeetlex v0.16.50)

View Source

See Transfer.

Summary

Functions

The maximum amount for a transfer. Used in Two-Phase transfers to post the full pending amount.

Creates a TigerBeetlex.Transfer struct from its binary representation.

Converts a TigerBeetlex.Transfer struct to its binary representation.

Types

t()

@type t() :: %TigerBeetlex.Transfer{
  amount: non_neg_integer(),
  code: non_neg_integer(),
  credit_account_id: <<_::128>>,
  debit_account_id: <<_::128>>,
  flags: TigerBeetlex.TransferFlags.t(),
  id: <<_::128>>,
  ledger: non_neg_integer(),
  pending_id: <<_::128>>,
  timeout: non_neg_integer(),
  timestamp: non_neg_integer(),
  user_data_128: <<_::128>>,
  user_data_32: non_neg_integer(),
  user_data_64: non_neg_integer()
}

Functions

amount_max()

The maximum amount for a transfer. Used in Two-Phase transfers to post the full pending amount.

from_binary(bin)

@spec from_binary(binary :: <<_::1024>>) :: t()

Creates a TigerBeetlex.Transfer struct from its binary representation.

to_binary(struct)

@spec to_binary(struct :: t()) :: <<_::1024>>

Converts a TigerBeetlex.Transfer struct to its binary representation.