Ramp.SpendPrograms (ramp v1.0.0)

Copy Markdown View Source

The Spend Programs resource: read-only access to spend program templates applied to card limits.

Summary

Functions

Fetches a single spend program by ID.

Returns a lazily auto-paginating Stream of Ramp.SpendPrograms.SpendPrograms.

Fetches a single page of spend programs. See Ramp.Page.

Types

list_opt()

@type list_opt() ::
  {:start, String.t()}
  | {:page_size, pos_integer()}
  | {:updated_after, DateTime.t()}

Functions

get(client, id)

@spec get(Ramp.Client.t(), String.t()) ::
  {:ok, Ramp.SpendPrograms.SpendProgram.t()} | {:error, Ramp.Error.t()}

Fetches a single spend program by ID.

list(client, opts \\ [])

Returns a lazily auto-paginating Stream of Ramp.SpendPrograms.SpendPrograms.

list_page(client, opts \\ [])

@spec list_page(Ramp.Client.t(), [list_opt()]) ::
  {:ok, Ramp.Page.t(Ramp.SpendPrograms.SpendProgram.t())}
  | {:error, Ramp.Error.t()}

Fetches a single page of spend programs. See Ramp.Page.