AI-generated Key Takeaways
-
This document defines the structure of a price, which includes currency and units.
-
The JSON representation of a price includes
priceMicros
andcurrency
fields. -
priceMicros
is a string representing the price in 1/million of the currency base unit. -
currency
is a string representing the 3-letter currency code defined by ISO 4217.
Definition of a price, i.e. currency and units.
JSON representation |
---|
{ "priceMicros": string, "currency": string } |
Fields | |
---|---|
priceMicros |
Price in 1/million of the currency base unit, represented as a string. |
currency |
3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java |