Marqeta.Credit.Adjustments (marqeta v1.0.0)

Copy Markdown View Source

Manually adjust the amount of a journal entry or account balance.

Summary

Functions

Creates a credit adjustment on a credit account.

Creates a credit adjustment. Raises on error.

Retrieves a credit adjustment by token.

Retrieves a credit adjustment. Raises on error.

Lists credit adjustment records on a credit account.

Lists credit adjustment records. Raises on error.

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

Functions

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

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

Creates a credit adjustment on a credit account.

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

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

Creates a credit adjustment. Raises on error.

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

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

Retrieves a credit adjustment by token.

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

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

Retrieves a credit adjustment. Raises on error.

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

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

Lists credit adjustment records on a credit account.

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

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

Lists credit adjustment records. Raises on error.

stream(account_token, params \\ %{})

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

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