Bundles combine credit product policies into a single configurable template.
Summary
Functions
Creates a new credit bundle.
Creates a new credit bundle. Raises Marqeta.Error on failure.
Retrieves a credit bundle by token.
Retrieves a credit bundle by token. Raises Marqeta.Error on failure.
Lists credit bundle resources.
Lists credit bundle resources. Raises Marqeta.Error on failure.
Returns a lazy Stream that auto-paginates credit bundle resources.
Updates an existing credit bundle.
Updates an existing credit bundle. Raises Marqeta.Error on failure.
Functions
@spec create( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Creates a new credit bundle.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Creates a new credit bundle. Raises Marqeta.Error on failure.
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Retrieves a credit bundle by token.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Retrieves a credit bundle by token. Raises Marqeta.Error on failure.
@spec list( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists credit bundle 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 bundle resources. Raises Marqeta.Error on failure.
@spec stream( map(), keyword() ) :: Enumerable.t()
Returns a lazy Stream that auto-paginates credit bundle resources.
@spec update(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Updates an existing credit bundle.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Updates an existing credit bundle. Raises Marqeta.Error on failure.