API Reference Money v#6.1.1

Copy Markdown View Source

Modules

Money implements a set of functions to store, retrieve, convert and perform arithmetic on a Money.t/0 type that is composed of a currency code and a decimal currency amount.

Functions to manage currencies including ISO 4217 currencies and custom (private-use) currencies.

Persistent-term-backed store for custom currencies.

Implements a behaviour and functions to retrieve exchange rates from an exchange rate service.

Defines the cache behaviour for exchange rates.

Money.ExchangeRates.Cache implementation for :dets

Money.ExchangeRates.Cache implementation for :ets

Default exchange rates retrieval callback module.

The configuration struct for the exchange rates service.

Implements the Money.ExchangeRates for the Open Exchange Rates service.

A GenServer that retrieves exchange rates from a configured API module on a periodic or on-demand basis.

A set of financial functions, primarily related to discounted cash flows.

Implements the ~M sigil for constructing Money.t/0 values.

Provides functions to create, upgrade and downgrade subscriptions from one plan to another.

Defines the structure of a plan changeset.

Defines a standard subscription plan data structure.