{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-billing-notification-schema.json",
  "title": "BillingNotification",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-billing-api-openapi.yml#/components/schemas/BillingNotification",
  "properties": {
    "notification_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Notification Id"
    },
    "percentage": {
      "type": "integer",
      "enum": [
        50,
        80,
        100
      ],
      "title": "Percentage"
    },
    "threshold_cents": {
      "type": "number",
      "minimum": 0.0,
      "title": "Threshold Cents"
    },
    "current_spend_cents": {
      "type": "number",
      "minimum": 0.0,
      "title": "Current Spend Cents"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "notification_id",
    "percentage",
    "threshold_cents",
    "current_spend_cents",
    "created_at"
  ]
}