View Source ExOAPI.Stripe.Schemas.ExchangeRate (exoapi_stripe v0.1.4)

description: Exchange Rate objects allow you to determine the rates that Stripe is currently using to convert from one currency to another. Since this number is variable throughout the day, there are various reasons why you might want to know the current rate (for example, to dynamically price an item for a user with a default payment in a foreign currency).

If you want a guarantee that the charge is made with a certain exchange rate you expect is current, you can pass in exchange_rate to charges endpoints. If the value is no longer up to date, the charge won't go through. Please refer to our Exchange Rates API guide for more details.

:id :: :string

Unique identifier for the object. Represented as the three-letter ISO currency code in lowercase.

:object :: :string

String representing the object's type. Objects of the same type share the same value.

:rates :: :map

Hash where the keys are supported currencies and the values are the exchange rate at which the base id currency converts to the key currency.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.ExchangeRate{
  id: String.t() | nil,
  object: :exchange_rate | nil,
  rates: map() | nil
}

Link to this section Functions

Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source
@spec changeset(t(), params()) :: Ecto.Changeset.t()