Marqeta.FundingViaACH (marqeta v1.0.0)

Copy Markdown View Source

Initiate ACH transfers between a Marqeta funding source and an external bank. Supports peer transfers, program transfers, and fee transfers entirely within the Marqeta platform.

Summary

Functions

Creates a new ACH transfer.

Creates a new ACH transfer. Raises Marqeta.Error on failure.

Retrieves a ACH transfer by token.

Retrieves a ACH transfer by token. Raises Marqeta.Error on failure.

Lists ACH transfer resources.

Lists ACH transfer resources. Raises Marqeta.Error on failure.

Returns a lazy Stream that auto-paginates ACH transfer resources.

Functions

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

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

Creates a new ACH transfer.

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

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

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

Creates a new ACH transfer. Raises Marqeta.Error on failure.

get(token, opts \\ [])

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

Retrieves a ACH transfer by token.

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

get!(token, opts \\ [])

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

Retrieves a ACH transfer by token. Raises Marqeta.Error on failure.

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

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

Lists ACH transfer resources.

Accepts standard Marqeta pagination params: count, start_index, sort_by, sort_order, fields.

Use stream/2 to lazily iterate all pages automatically.

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

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

Lists ACH transfer resources. Raises Marqeta.Error on failure.

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

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

Returns a lazy Stream that auto-paginates ACH transfer resources.