{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BalanceDetails",
  "title": "BalanceDetails",
  "description": "An array to specify multiple currency balances of an account",
  "properties": {
    "Balance": {
      "description": "The opening balances of the account. Debits are positive, credits are negative values",
      "type": "number",
      "format": "double"
    },
    "CurrencyCode": {
      "description": "The currency of the balance (Not required for base currency)",
      "type": "string"
    },
    "CurrencyRate": {
      "description": "(Optional) Exchange rate to base currency when money is spent or received. If not specified, XE rate for the day is applied",
      "type": "number",
      "format": "double",
      "x-is-money": true
    }
  },
  "type": "object"
}