Ramp.Cashbacks (ramp v1.0.0)

Copy Markdown View Source

The Cashbacks resource: read-only access to monthly cashback rewards.

Summary

Functions

Fetches a single cashback by ID.

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

Fetches a single page of cashbacks. See Ramp.Page.

Types

list_opt()

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

Functions

get(client, id)

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

Fetches a single cashback by ID.

list(client, opts \\ [])

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

list_page(client, opts \\ [])

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

Fetches a single page of cashbacks. See Ramp.Page.