UNPKG

stripe

Version:
25 lines 1.17 kB
// File generated from our OpenAPI spec import { StripeResource } from '../StripeResource.js'; export class ExchangeRateResource extends StripeResource { /** * [Deprecated] The ExchangeRate APIs are deprecated. Please use the [FX Quotes API](https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api) instead. * * Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports. * @deprecated */ list(params, options) { return this._makeRequest('GET', '/v1/exchange_rates', params, options, { methodType: 'list', }); } /** * [Deprecated] The ExchangeRate APIs are deprecated. Please use the [FX Quotes API](https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api) instead. * * Retrieves the exchange rates from the given currency to every supported currency. * @deprecated */ retrieve(id, params, options) { return this._makeRequest('GET', `/v1/exchange_rates/${id}`, params, options); } } //# sourceMappingURL=ExchangeRates.js.map