Marqeta.Credit.LedgerEntries (marqeta v1.0.0)

Copy Markdown View Source

Read ledger entries on a credit account with balance impact details.

Summary

Functions

Retrieves a ledger entry by token.

Retrieves a ledger entry. Raises on error.

Lists ledger entry records on a credit account.

Lists ledger entry records. Raises on error.

Returns a lazy stream of all ledger entry 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 ledger entry by token.

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

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

Retrieves a ledger entry. Raises on error.

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

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

Lists ledger entry records on a credit account.

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

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

Lists ledger entry records. Raises on error.

stream(account_token, params \\ %{})

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

Returns a lazy stream of all ledger entry records for an account.