Marqeta.ProgramGatewayFundingSources (marqeta v1.0.0)

Copy Markdown View Source

Program gateway funding sources — used with Gateway JIT Funding.

A program gateway funding source points Marqeta at your JIT gateway endpoint. When an authorization occurs, Marqeta calls your gateway to approve or deny the funding in real time.

Summary

Functions

Creates a new program gateway funding source.

Creates a new program gateway funding source. Raises Marqeta.Error on failure.

Retrieves a program gateway funding source by token.

Retrieves a program gateway funding source by token. Raises Marqeta.Error on failure.

Lists program gateway funding source resources.

Lists program gateway funding source resources. Raises Marqeta.Error on failure.

Returns a lazy Stream that auto-paginates program gateway funding source resources.

Updates an existing program gateway funding source.

Updates an existing program gateway funding source. Raises Marqeta.Error on failure.

Functions

create(params \\ %{}, opts \\ [])

@spec create(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Marqeta.Error.t()}

Creates a new program gateway funding source.

Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.

create!(params \\ %{}, opts \\ [])

@spec create!(
  map(),
  keyword()
) :: map()

Creates a new program gateway funding source. Raises Marqeta.Error on failure.

get(token, opts \\ [])

@spec get(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, Marqeta.Error.t()}

Retrieves a program gateway funding source by token.

Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.

get!(token, opts \\ [])

@spec get!(
  String.t(),
  keyword()
) :: map()

Retrieves a program gateway funding source by token. Raises Marqeta.Error on failure.

list(params \\ %{}, opts \\ [])

@spec list(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Marqeta.Error.t()}

Lists program gateway funding source resources.

Accepts standard Marqeta pagination params: count, start_index, sort_by, sort_order, fields.

Use stream/2 to lazily iterate all pages automatically.

list!(params \\ %{}, opts \\ [])

@spec list!(
  map(),
  keyword()
) :: map()

Lists program gateway funding source resources. Raises Marqeta.Error on failure.

stream(params \\ %{}, opts \\ [])

@spec stream(
  map(),
  keyword()
) :: Enumerable.t()

Returns a lazy Stream that auto-paginates program gateway funding source resources.

update(token, params, opts \\ [])

@spec update(String.t(), map(), keyword()) ::
  {:ok, map()} | {:error, Marqeta.Error.t()}

Updates an existing program gateway funding source.

Returns {:ok, map()} on success, {:error, %Marqeta.Error{}} on failure.

update!(token, params, opts \\ [])

@spec update!(String.t(), map(), keyword()) :: map()

Updates an existing program gateway funding source. Raises Marqeta.Error on failure.