Manage the credit card application lifecycle, including regulatory disclosure retrieval and status transitions.
Summary
Functions
Creates a new credit application.
Creates a new credit application. Raises Marqeta.Error on failure.
Retrieves regulatory disclosures for an application.
Retrieves a credit application by token.
Retrieves a credit application by token. Raises Marqeta.Error on failure.
Lists credit application resources.
Lists credit application resources. Raises Marqeta.Error on failure.
Lists application transitions.
Returns a lazy Stream that auto-paginates credit application resources.
Transitions an application to a new state.
Updates an existing credit application.
Updates an existing credit application. Raises Marqeta.Error on failure.
Functions
@spec create( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Creates a new credit application.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Creates a new credit application. Raises Marqeta.Error on failure.
@spec disclosures( String.t(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Retrieves regulatory disclosures for an application.
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Retrieves a credit application by token.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Retrieves a credit application by token. Raises Marqeta.Error on failure.
@spec list( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists credit application 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 application resources. Raises Marqeta.Error on failure.
@spec list_transitions(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists application transitions.
@spec stream( map(), keyword() ) :: Enumerable.t()
Returns a lazy Stream that auto-paginates credit application resources.
@spec transition(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Transitions an application to a new state.
@spec update(String.t(), map(), keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Updates an existing credit application.
Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.
Updates an existing credit application. Raises Marqeta.Error on failure.