Inttegro.Money.Currency (inttegro v0.2.0)

Copy Markdown View Source

Values accepted for Currency in the Money API.

Prefer the documented atoms returned by values/0. The type also accepts strings so a newer server value can be preserved by an older SDK instead of failing during decoding.

Currency and integer minor-unit amount values used throughout the Inttegro API.

Summary

Types

t()

A currency atom or an unknown wire value preserved as a string.

Functions

Returns the documented Inttegro.Money.Currency atoms known by this SDK version.

Types

t()

@type t() :: :ghs | :usd | :gbp | :eur | :cny | String.t()

A currency atom or an unknown wire value preserved as a string.

Functions

values()

@spec values() :: [t()]

Returns the documented Inttegro.Money.Currency atoms known by this SDK version.