Sha256: 4c973815b311fc5726812e2672168f69fbbd63e766a5c0f5db97294033f0333d
Contents?: true
Size: 854 Bytes
Versions: 20
Compression:
Stored size: 854 Bytes
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe class ExchangeRateService < StripeService # 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. def list(params = {}, opts = {}) request( method: :get, path: "/v1/exchange_rates", params: params, opts: opts, base_address: :api ) end # Retrieves the exchange rates from the given currency to every supported currency. def retrieve(rate_id, params = {}, opts = {}) request( method: :get, path: format("/v1/exchange_rates/%<rate_id>s", { rate_id: CGI.escape(rate_id) }), params: params, opts: opts, base_address: :api ) end end end
Version data entries
20 entries across 20 versions & 1 rubygems