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10
v0.0.9
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
Pages
Modules
API Reference
Modules
Introduction to Money
Prerequisities
Supervisor configuration and operation
Private Use Currencies
Exchange rates and currency conversion
Configuration
The Exchange rates service process supervision and startup
Using Ecto or other applications from within the callback module
API Usage Examples
Subscriptions
Serializing to a database with Ecto
Installation
Why yet another Money package?
Falsehoods programmers believe about prices
Changelog
Money v5.17.0
Money v5.16.1
Money v5.16.0
Money v5.15.4
Money v5.15.3
Money v5.15.2
Money v5.15.1
Money v5.15.0
Money v5.14.1
Money v5.14.0
Money v5.13.0
Money v5.12.4
Money v5.12.3
Money v5.12.2
Money v5.12.1
Money v5.12.0
Money v5.11.0
Money v5.10.0
Money v5.9.0
Money v5.8.0
Money v5.7.4
Money v5.7.3
Money v5.7.2
Money v5.7.1
Money v5.7.0
Money v5.6.0
Money v5.5.5
Money v5.5.4
Money v5.5.3
Money v5.5.2
Money v5.5.1
Money v5.5.0
Money v5.4.1
Money v5.4.0
Money v5.3.2
Money v5.3.1
Money v5.3.0
Money v5.2.1
Money v5.2.0
Money v5.1.0
Money v5.0.2
Money v5.0.1
Money v5.0.0
Money v4.4.2
Money v4.4.1
Money v4.4.0
Money v4.3.0
Money v4.2.2
Money v4.2.1
Money v4.2.0
Money v4.1.0
Money v4.0.0
Money v3.4.4
Money v3.4.3
Money v3.4.2
Money v3.4.1
Money v3.4.0
Money v3.3.1
Money v3.3.0
Money v3.2.4
Money v3.2.3
Money v3.2.2
Money v3.2.1
Money v3.2.0
Money v3.1.0
Money v3.0.0
LICENSE
License
Money
Summary
Types
amount/0
currency_code/0
t/0
Functions
abs/1
add/2
add!/2
cmp/2
cmp!/2
compare/2
compare!/2
cross_rate/3
cross_rate!/3
default_backend/0
div/2
div!/2
equal?/2
from_float/3
from_float!/3
from_integer/3
get_env/3
integer?/1
known_currencies/0
known_current_currencies/0
known_historic_currencies/0
known_tender_currencies/0
localize/2
mult/2
mult!/2
negative?/1
new/3
new!/3
normalize/1
parse/2
positive?/1
put_format_options/2
put_fraction/2
reduce/1
round/2
split/2
sub/2
sub!/2
sum/2
to_currency/3
to_currency!/3
to_currency_code/1
to_decimal/1
to_integer_exp/2
to_string/2
to_string!/2
zero/2
zero?/1
Money.Application
Summary
Functions
start/2
Money.Currency
Summary
Functions
currency_for_code/1
known_current_currencies/0
known_historic_currencies/0
known_tender_currencies/0
Money.Financial
Summary
Functions
future_value/2
future_value/3
interest_rate/3
internal_rate_of_return/1
net_present_value/2
net_present_value/3
net_present_value/4
payment/3
periods/3
present_value/2
present_value/3
Money.Sigil
Summary
Functions
sigil_M/2
validate_currency!/1
Exchange Rates
Money.ExchangeRates
Sections
Open Exchange Rates
Managing the configuration at runtime
Summary
Types
t/0
Callbacks
decode_rates/1
get_historic_rates/2
get_latest_rates/1
init/1
Functions
config/0
default_config/0
historic_rates/1
last_updated/0
latest_rates/0
latest_rates_available?/0
Money.ExchangeRates.Cache
Summary
Callbacks
historic_rates/1
init/0
latest_rates/0
store_historic_rates/2
store_latest_rates/2
terminate/0
Functions
cache/0
historic_rates/1
latest_rates/0
Money.ExchangeRates.Cache.Dets
Summary
Functions
get/1
historic_rates/1
init/0
last_updated/0
latest_rates/0
put/2
store_historic_rates/2
store_latest_rates/2
terminate/0
Money.ExchangeRates.Cache.Ets
Summary
Functions
get/1
historic_rates/1
init/0
last_updated/0
latest_rates/0
put/2
store_historic_rates/2
store_latest_rates/2
terminate/0
Money.ExchangeRates.Cache.EtsDets
Summary
Functions
define_common_functions/0
Money.ExchangeRates.Callback
Summary
Callbacks
historic_rates_retrieved/2
latest_rates_retrieved/2
Functions
historic_rates_retrieved/2
latest_rates_retrieved/2
Money.ExchangeRates.Config
Summary
Types
t/0
Money.ExchangeRates.OpenExchangeRates
Sections
Required configuration:
Summary
Functions
decode_rates/1
get_historic_rates/2
get_latest_rates/1
init/1
Money.ExchangeRates.Retriever
Summary
Functions
child_spec/1
config/0
delete/0
historic_rates/1
historic_rates/2
latest_rates/0
reconfigure/1
restart/0
retrieve_rates/2
start/1
stop/0
Money.ExchangeRates.Supervisor
Summary
Functions
child_spec/1
default_supervisor/0
delete_retriever/0
restart_retriever/0
retriever_running?/0
retriever_status/0
start_link/0
start_link/1
start_retriever/1
stop/1
stop_retriever/0
Subscriptions
Money.Subscription
Summary
Types
id/0
t/0
Functions
%Money.Subscription{}
cancel_pending_plan/2
change_plan/3
change_plan!/3
current_interval_start_date/2
current_plan/2
current_plan_start_date/1
days_remaining/4
latest_plan/1
new/3
new!/3
next_interval_starts/3
plan_days/3
plan_pending?/2
Money.Subscription.Change
Summary
Types
t/0
Functions
%Money.Subscription.Change{}
Money.Subscription.DateError
Money.Subscription.NoCurrentPlan
Money.Subscription.Plan
Summary
Types
interval/0
interval_count/0
t/0
Functions
%Money.Subscription.Plan{}
new/3
new!/3
Money.Subscription.PlanError
Money.Subscription.PlanPending
Exceptions
Money.ExchangeRateError
Money.Invalid
Money.InvalidAmountError
Money.InvalidDigitsError
Money.ParseError
Money.UnknownCurrencyError
Settings
View Source
Money.InvalidAmountError
exception
(Money v5.17.0)
×