{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/call2me-app/json-schema/call2me-app-eligibility-response-schema.json",
  "title": "EligibilityResponse",
  "description": "Whether the user can reserve a demo.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/call2me-app-demo-numbers-api-openapi.yml#/components/schemas/EligibilityResponse",
  "properties": {
    "eligible": {
      "type": "boolean",
      "title": "Eligible"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reason"
    },
    "has_paid_topup": {
      "type": "boolean",
      "title": "Has Paid Topup"
    },
    "has_used_demo": {
      "type": "boolean",
      "title": "Has Used Demo"
    },
    "active_reservation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Active Reservation Id"
    }
  },
  "type": "object",
  "required": [
    "eligible",
    "has_paid_topup",
    "has_used_demo"
  ]
}