Rapyd.Services.Resource (rapyd v1.0.0)

Copy Markdown View Source

Rapyd Reference Data — countries, currencies, payment methods, FX rates.

Summary

Functions

List supported countries.

List supported currencies.

List POS terminal locations for a given country.

List supported UI languages.

Functions

get_fx_rate(client, buy_currency, sell_currency, amount, fixed_side \\ "buy")

@spec get_fx_rate(Rapyd.Client.t(), String.t(), String.t(), float(), String.t()) ::
  {:ok, map()} | {:error, Rapyd.Error.t()}

Get an FX exchange rate.

list_countries(client)

@spec list_countries(Rapyd.Client.t()) :: {:ok, list()} | {:error, Rapyd.Error.t()}

List supported countries.

list_currencies(client)

@spec list_currencies(Rapyd.Client.t()) :: {:ok, list()} | {:error, Rapyd.Error.t()}

List supported currencies.

list_daily_rates(client, params \\ %{})

@spec list_daily_rates(Rapyd.Client.t(), map()) ::
  {:ok, list()} | {:error, Rapyd.Error.t()}

List daily FX rates.

list_pos_locations(client, country \\ "")

@spec list_pos_locations(Rapyd.Client.t(), String.t()) ::
  {:ok, list()} | {:error, Rapyd.Error.t()}

List POS terminal locations for a given country.

list_supported_languages(client)

@spec list_supported_languages(Rapyd.Client.t()) ::
  {:ok, list()} | {:error, Rapyd.Error.t()}

List supported UI languages.