Ramp.Merchants (ramp v1.0.0)

Copy Markdown View Source

The Merchants resource: read-only access to card-network merchants where Ramp transactions occur.

Summary

Functions

Fetches a single merchant by ID.

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

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

Types

list_opt()

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

Functions

get(client, id)

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

Fetches a single merchant by ID.

list(client, opts \\ [])

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

list_page(client, opts \\ [])

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

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