Skip to content

Type: Currency

JannThomas edited this page Feb 10, 2019 · 7 revisions

Structure

A currency can be represented in 2 ways:

  1. An ISO 4217 String, if it is representable by it (mandatory)
  2. 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
Clone this wiki locally