Marqeta.IntraAccountTransfers (marqeta v1.0.0)

Copy Markdown View Source

Move funds between GPAs owned by the same account holder. Both source and destination must belong to the same user or business.

Summary

Functions

Creates a new intra-account transfer.

Creates a new intra-account transfer. Raises Marqeta.Error on failure.

Retrieves a intra-account transfer by token.

Retrieves a intra-account transfer by token. Raises Marqeta.Error on failure.

Functions

create(params \\ %{}, opts \\ [])

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

Creates a new intra-account transfer.

Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.

create!(params \\ %{}, opts \\ [])

@spec create!(
  map(),
  keyword()
) :: map()

Creates a new intra-account transfer. Raises Marqeta.Error on failure.

get(token, opts \\ [])

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

Retrieves a intra-account transfer by token.

Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.

get!(token, opts \\ [])

@spec get!(
  String.t(),
  keyword()
) :: map()

Retrieves a intra-account transfer by token. Raises Marqeta.Error on failure.