Android · Schema

Money

Represents a monetary amount with currency.

AIAndroidAutomotiveGoogleMachine LearningMobile DevelopmentSDKTVWearables

Properties

Name Type Description
currencyCode string ISO 4217 three-letter currency code (e.g., USD, EUR).
units string The whole units of the amount.
nanos integer Number of nano units (10^-9) of the amount. Must be between -999,999,999 and +999,999,999.
View JSON Schema on GitHub

JSON Schema

android-money-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Money",
  "title": "Money",
  "type": "object",
  "description": "Represents a monetary amount with currency.",
  "properties": {
    "currencyCode": {
      "type": "string",
      "description": "ISO 4217 three-letter currency code (e.g., USD, EUR).",
      "example": "example_value"
    },
    "units": {
      "type": "string",
      "format": "int64",
      "description": "The whole units of the amount.",
      "example": "example_value"
    },
    "nanos": {
      "type": "integer",
      "description": "Number of nano units (10^-9) of the amount. Must be between -999,999,999 and +999,999,999.",
      "example": 10
    }
  }
}