Lithic.Resources.BookTransfers (Lithic v1.0.0)

Copy Markdown View Source

Book transfers — move funds between Lithic financial accounts instantly.

{:ok, transfer} = Lithic.BookTransfers.create(%{
  amount: 1000,
  financial_account_token_sender: "fa_token_a",
  financial_account_token_receiver: "fa_token_b",
  currency: "USD",
  subtype: "TRANSFER"
})

Summary

Functions

create(params, opts \\ [])

@spec create(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Lithic.Error.t()}

get(token, opts \\ [])

@spec get(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, Lithic.Error.t()}

list(opts \\ [])

@spec list(keyword()) :: {:ok, Lithic.Page.t(map())} | {:error, Lithic.Error.t()}

retry(token, opts \\ [])

@spec retry(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, Lithic.Error.t()}

reverse(token, params \\ %{}, opts \\ [])

@spec reverse(String.t(), map(), keyword()) ::
  {:ok, map()} | {:error, Lithic.Error.t()}

stream(opts \\ [])

@spec stream(keyword()) :: Enumerable.t()