AI-generated Key Takeaways
-
Defines the structure for representing a price using JSON, specifying currency and units.
-
Employs
priceMicros
to denote the price in one-millionth of the currency's base unit, presented as a string. -
Utilizes ISO 4217 standard for the 3-letter
currency
code, ensuring consistency and clarity in representing different currencies.
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 |