Create and retrieve payments to pay down credit account balances.
Summary
Functions
Creates a credit payment on a credit account.
Creates a credit payment. Raises on error.
Retrieves a credit payment by token.
Retrieves a credit payment. Raises on error.
Lists credit payment records on a credit account.
Lists credit payment records. Raises on error.
Returns a lazy stream of all credit payment records for an account.
Functions
@spec create(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Creates a credit payment on a credit account.
Creates a credit payment. Raises on error.
@spec get(String.t(), String.t(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Retrieves a credit payment by token.
Retrieves a credit payment. Raises on error.
@spec list(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists credit payment records on a credit account.
Lists credit payment records. Raises on error.
@spec stream(String.t(), map()) :: Enumerable.t()
Returns a lazy stream of all credit payment records for an account.