Marqeta.Credit.Transitions (marqeta v1.0.0)

Copy Markdown View Source

Transition a credit account to a new status (ACTIVE, SUSPENDED, CLOSED, etc.).

Summary

Functions

Creates a credit account state transition.

Retrieves a credit account state transition.

Lists transitions for a credit account.

Streams transitions for a credit account.

Functions

create(account_token, params, opts \\ [])

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

Creates a credit account state transition.

get(account_token, transition_token, opts \\ [])

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

Retrieves a credit account state transition.

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

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

Lists transitions for a credit account.

stream(account_token, params \\ %{})

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

Streams transitions for a credit account.