Manage program gateways for credit platform integrations.
Summary
Functions
Creates a new credit program gateway.
Creates a new credit program gateway. Raises Marqeta.Error on failure.
Retrieves a credit program gateway by token.
Retrieves a credit program gateway by token. Raises Marqeta.Error on failure.
Lists credit program gateway resources.
Lists credit program gateway resources. Raises Marqeta.Error on failure.
Returns a lazy Stream that auto-paginates credit program gateway resources.
Updates an existing credit program gateway.
Updates an existing credit program gateway. Raises Marqeta.Error on failure.
Functions
@spec create( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Creates a new credit program gateway.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Creates a new credit program gateway. Raises Marqeta.Error on failure.
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Retrieves a credit program gateway by token.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Retrieves a credit program gateway by token. Raises Marqeta.Error on failure.
@spec list( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists credit program gateway resources.
Accepts standard Marqeta pagination params:
count, start_index, sort_by, sort_order, fields.
Use stream/2 to lazily iterate all pages automatically.
Lists credit program gateway resources. Raises Marqeta.Error on failure.
@spec stream( map(), keyword() ) :: Enumerable.t()
Returns a lazy Stream that auto-paginates credit program gateway resources.
@spec update(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Updates an existing credit program gateway.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Updates an existing credit program gateway. Raises Marqeta.Error on failure.