Page Summary
-
The content defines a JSON representation for an amount of money, including its currency type.
-
The JSON object for money includes fields for
currencyCode,units, andnanos. -
currencyCodeis a three-letter ISO 4217 code for the currency. -
unitsrepresents the whole amount of money. -
nanosrepresents the fractional part of the amount in nano units.
Represents an amount of money with its currency type.
| JSON representation |
|---|
{ "currencyCode" : string , "units" : string , "nanos" : integer } |
| Fields | |
|---|---|
currencyCode
|
The three-letter currency code defined in ISO 4217. |
units
|
The whole units of the amount. For example if |
nanos
|
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |

