GoCardless Tax Rates API.
Tax rates applied to GoCardless fees for VAT/GST accounting in applicable jurisdictions. Read-only — managed by GoCardless.
Example
{:ok, %{items: rates}} = GoCardlessClient.Resources.TaxRates.list(client)
current = Enum.find(rates, &is_nil(&1["end_date"]))
Summary
Functions
@spec collect_all(GoCardlessClient.Client.t(), map(), keyword()) :: {:ok, [map()]} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Eagerly collects all tax rates into a list.
@spec get(GoCardlessClient.Client.t(), String.t(), keyword()) :: {:ok, map()} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Retrieves a single tax rate by ID.
@spec list(GoCardlessClient.Client.t(), map(), keyword()) :: {:ok, %{items: [map()], meta: map()}} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Returns a page of tax rates.
@spec stream(GoCardlessClient.Client.t(), map(), keyword()) :: Enumerable.t()
Returns a lazy Stream over all pages of tax rates.