Amount
Associates an amount in micros with a currency code.
JSON representation |
{
"amountMicros": string,
"currencyCode": string
} |
Fields |
amountMicros |
string (Int64Value format)
REQUIRED: An amount in micros.
|
currencyCode |
string
REQUIRED: ISO 4217 3-letter currency code
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["Micros are used to represent an amount of currency with the smallest unit, for instance, 1000000 micros equals 1 USD."],["The `currencyCode` field follows the ISO 4217 standard and uses a 3-letter code to specify the currency, such as USD for US dollars."],["The JSON representation for specifying an amount with its currency involves using an object with `amountMicros` and `currencyCode` fields."]]],["The provided content describes a JSON structure for representing monetary amounts. It requires two fields: `amountMicros`, a string representing the amount in micros (a unit explained elsewhere), and `currencyCode`, a string using the ISO 4217 3-letter currency code. Both fields are mandatory for representing the amount associated with its corresponding currency.\n"]]