-
Notifications
You must be signed in to change notification settings - Fork 0
Type: Currency
JannThomas edited this page Feb 10, 2019
·
7 revisions
A currency can be represented in 2 ways:
- An ISO 4217 String, if it is representable by it (mandatory)
- The following structure, in the case it's not:
Key | Type | Description | Optional |
---|---|---|---|
name | String | The name. | no |
symbol | String | The symbol. | no |
decimalPlaces | Int | The number of decimal places of the currency. | no |
baseCurrency | Currency | The basis for the conversion. | yes |
conversionRate | Double | The rate for the conversion. As with MoneyAmount, this represents the smallest possible unit in the baseCurrency. | yes |