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
@type list_opt() :: {:start, String.t()} | {:page_size, pos_integer()} | {:updated_after, DateTime.t()}
Functions
@spec get(Ramp.Client.t(), String.t()) :: {:ok, Ramp.SpendPrograms.SpendProgram.t()} | {:error, Ramp.Error.t()}
Fetches a single spend program by ID.
@spec list(Ramp.Client.t(), [list_opt()]) :: Enumerable.t(Ramp.SpendPrograms.SpendProgram.t())
Returns a lazily auto-paginating Stream of Ramp.SpendPrograms.SpendPrograms.
@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.