{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SubscriptionBalanceContract",
  "title": "SubscriptionBalanceContract",
  "required": [
    "creditsRemaining",
    "lastDeductedUtc",
    "lastRefilledUtc"
  ],
  "type": "object",
  "properties": {
    "creditsRemaining": {
      "type": "integer",
      "description": "Alert credits remaining for the account.",
      "format": "int64"
    },
    "lastRefilledUtc": {
      "type": "string",
      "description": "The datetime when the balance was last re-filled, in UTC.",
      "format": "date-time"
    },
    "lastDeductedUtc": {
      "type": "string",
      "description": "The datetime when the balance was last deducated, in UTC.\r\nDeduction typically occurs when an alert notification was dispatched\r\nfor one of the alert subscriptions associated with the user account.",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "description": "Represents the balance for all alert subscriptions associated with the user acount, including remaining credits and timestamps\r\nfor the most recent refill and deduction operations."
}