Full lifecycle management for deposit (checking/savings) accounts. Distinct from GPA — deposit accounts support direct deposit and ACH.
Summary
Functions
Creates a new deposit account.
Creates a new deposit account. Raises Marqeta.Error on failure.
Retrieves a deposit account by token.
Retrieves a deposit account by token. Raises Marqeta.Error on failure.
Lists deposit account resources.
Lists deposit account resources. Raises Marqeta.Error on failure.
Lists transitions for a deposit account.
Returns a lazy Stream that auto-paginates deposit account resources.
Lists transactions for a deposit account.
Transitions a deposit account to a new state.
Updates an existing deposit account.
Updates an existing deposit account. Raises Marqeta.Error on failure.
Functions
@spec create( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Creates a new deposit account.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Creates a new deposit account. Raises Marqeta.Error on failure.
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Retrieves a deposit account by token.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Retrieves a deposit account by token. Raises Marqeta.Error on failure.
@spec list( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists deposit account resources.
Accepts standard Marqeta pagination params:
count, start_index, sort_by, sort_order, fields.
Use stream/2 to lazily iterate all pages automatically.
Lists deposit account resources. Raises Marqeta.Error on failure.
@spec list_transitions(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists transitions for a deposit account.
@spec stream( map(), keyword() ) :: Enumerable.t()
Returns a lazy Stream that auto-paginates deposit account resources.
@spec transactions(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists transactions for a deposit account.
@spec transition(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Transitions a deposit account to a new state.
@spec update(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Updates an existing deposit account.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Updates an existing deposit account. Raises Marqeta.Error on failure.