Money
A monetary amount and the currency in which it is denominated.
Property | Type | Required | Description |
---|---|---|---|
amount | decimalString | Yes | The amount of money |
currency | string | Yes | The ISO 4217 currency code (e.g., “USD”, “EUR”) |
Formats
Section titled “Formats”A JSON example of this field is:
{ "amount": "1000000.00", "currency": "USD"}
The JSON schema for this field is:
$schema: https://json-schema.org/draft/2020-12/schema$id: Money.yamltype: objectproperties: amount: $ref: decimalString.yaml description: The amount of money currency: type: string description: The ISO 4217 currency code (e.g., "USD", "EUR")required: - amount - currencydescription: A monetary amount and the currency in which its denominated
The TypeSpec code for this field is:
/** A monetary amount and the currency in which its denominated */model Money { /** The amount of money */ amount: decimalString;
/** The ISO 4217 currency code in which the amount is denominated */ currency: string;}