{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BillingSchedule",
  "title": "BillingSchedule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Workday ID (WID) for the billing schedule"
    },
    "revenueContract": {
      "$ref": "#/components/schemas/ContractRef"
    },
    "billingDate": {
      "type": "string",
      "format": "date",
      "description": "Scheduled billing date"
    },
    "amount": {
      "type": "number",
      "format": "double",
      "description": "Billing amount"
    },
    "currency": {
      "$ref": "#/components/schemas/CurrencyRef"
    },
    "status": {
      "type": "string",
      "enum": [
        "Scheduled",
        "Invoiced",
        "Canceled"
      ],
      "description": "Billing schedule status"
    }
  }
}