View Source AshMoney.Types.Money (ash_money v0.1.6-rc.2)
A money type for Ash that uses the ex_money
library.
When constructing a composite type, use a tuple in the following structure:
composite_type(%{currency: "USD", amount: Decimal.new("0")}}, AshMoney.Types.Money)
If you've added a custom type, like :money
:
composite_type(%{currency: "USD", amount: Decimal.new("0")}}, :money)