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 model.
{ "amount": "1000000.00", "currency": "USD"}
The JSON Schema for this model.
$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 in which the amount is denominatedrequired: - amount - currencyexamples: - amount: "-50.50" currency: USD - amount: "5000" currency: EUR - amount: "10000.50" currency: USDdescription: A monetary amount and the currency in which it's denominated
The TypeSpec code for this model.
model Money { /** The amount of money */ amount: decimalString;
/** The ISO 4217 currency code in which the amount is denominated */ currency: string;}
The Python code for this model.
from common_grants_sdk.schemas.fields import Money
money = Money(amount="1000000.00", currency="USD")