AI-generated Key Takeaways
-
Money objects represent a monetary value amount with its currency using JSON.
-
The
kindfield is deprecated and should not be used. -
microsrepresents the monetary value in micros (e.g., 1 USD = 1000000 micros). -
currencyCodespecifies the currency used, such as USD or EUR.
| JSON representation |
|---|
{ "kind": string, "micros": string, "currencyCode": string } |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
micros |
The unit of money amount in micros. For example, $1 USD would be represented as 1000000 micros. |
currencyCode |
The currency code, such as "USD" or "EUR." |