Packages

BeamLabCountries is a collection of all sorts of useful information for every country in the [ISO 3166](https://wikipedia.org/wiki/ISO_3166) standard. It includes country data, subdivisions (states/provinces), international organizations, language information, and country name translations.

Current section

Files

Jump to
beamlab_countries lib currency.ex
Raw

lib/currency.ex

defmodule BeamLabCountries.Currency do
@moduledoc """
Currency struct representing ISO 4217 currency data.
"""
@type t :: %__MODULE__{
code: String.t() | nil,
name: String.t() | nil,
name_plural: String.t() | nil,
symbol: String.t() | nil,
symbol_native: String.t() | nil,
decimal_digits: non_neg_integer() | nil
}
defstruct [
:code,
:name,
:name_plural,
:symbol,
:symbol_native,
:decimal_digits
]
end