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."],[[["The `Money` object associates a monetary amount with its corresponding currency code."],["It is represented in JSON format with `amountMicros` for the amount in micros and `currencyCode` for the 3-letter ISO 4217 currency code."],["Both `amountMicros` and `currencyCode` fields are required when using the `Money` object."]]],["The provided JSON schema represents a monetary value, requiring two fields: `amountMicros` and `currencyCode`. `amountMicros`, a string in Int64Value format, specifies the amount in micros. `currencyCode`, also a string, uses the ISO 4217 standard to indicate the currency. Both fields are mandatory to define a monetary value.\n"]]