Marqeta.Credit.Statements (marqeta v1.0.0)

Copy Markdown View Source

Retrieve billing cycle statements for credit accounts.

Summary

Functions

Retrieves a credit statement by token.

Retrieves a credit statement. Raises on error.

Lists credit statement records on a credit account.

Lists credit statement records. Raises on error.

Retrieves payment info for a specific statement.

Returns a lazy stream of all credit statement records for an account.

Functions

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

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

Retrieves a credit statement by token.

get!(account_token, token, opts \\ [])

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

Retrieves a credit statement. Raises on error.

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

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

Lists line items for a specific statement.

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

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

Lists credit statement records on a credit account.

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

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

Lists credit statement records. Raises on error.

payment_info(account_token, statement_token, opts \\ [])

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

Retrieves payment info for a specific statement.

stream(account_token, params \\ %{})

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

Returns a lazy stream of all credit statement records for an account.