Assess fees from account holder GPAs to the program fee account.
References a fee template created via Marqeta.Fees.
Summary
Functions
Creates a new fee charge.
Creates a new fee charge. Raises Marqeta.Error on failure.
Retrieves a fee charge by token.
Retrieves a fee charge by token. Raises Marqeta.Error on failure.
Lists fee charge resources.
Lists fee charge resources. Raises Marqeta.Error on failure.
Returns a lazy Stream that auto-paginates fee charge resources.
Functions
@spec create( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Creates a new fee charge.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Creates a new fee charge. Raises Marqeta.Error on failure.
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Retrieves a fee charge by token.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Retrieves a fee charge by token. Raises Marqeta.Error on failure.
@spec list( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists fee charge resources.
Accepts standard Marqeta pagination params:
count, start_index, sort_by, sort_order, fields.
Use stream/2 to lazily iterate all pages automatically.
Lists fee charge resources. Raises Marqeta.Error on failure.
@spec stream( map(), keyword() ) :: Enumerable.t()
Returns a lazy Stream that auto-paginates fee charge resources.