GoCardlessClient.Resources.CurrencyExchangeRates
(GoCardlessClient v2.0.0)
Copy Markdown
View Source
GoCardless Currency Exchange Rates API.
Returns current exchange rates used by GoCardless for FX collections and payouts. Read-only — there is no create or update endpoint.
Summary
Functions
@spec collect_all(GoCardlessClient.Client.t(), map(), keyword()) :: {:ok, [map()]} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Eagerly collects all exchange rates into a list.
@spec list(GoCardlessClient.Client.t(), map(), keyword()) :: {:ok, %{items: [map()], meta: map()}} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Returns a page of exchange rates. Filter by :source currency.
@spec stream(GoCardlessClient.Client.t(), map(), keyword()) :: Enumerable.t()
Returns a lazy Stream over all pages of exchange rates.