{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/totalparks-com-au/json-schema/totalparks-com-au-booking-request-create-schema.json",
  "title": "BookingRequestCreate",
  "description": "Payload submitted by an authenticated guest.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/totalparks-com-au-openapi.json#/components/schemas/BookingRequestCreate",
  "properties": {
    "property_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "title": "Property Id"
    },
    "room_type_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        {
          "type": "null"
        }
      ],
      "title": "Room Type Id"
    },
    "check_in": {
      "type": "string",
      "format": "date",
      "title": "Check In"
    },
    "check_out": {
      "type": "string",
      "format": "date",
      "title": "Check Out"
    },
    "adults": {
      "type": "integer",
      "maximum": 20,
      "minimum": 1,
      "title": "Adults",
      "default": 1
    },
    "children": {
      "type": "integer",
      "maximum": 20,
      "minimum": 0,
      "title": "Children",
      "default": 0
    },
    "accommodation_type": {
      "type": "string",
      "enum": [
        "cabin",
        "site"
      ],
      "title": "Accommodation Type"
    },
    "equipment_type": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "Equipment Type"
    },
    "equipment_length": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Equipment Length"
    },
    "equipment_details": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 250
        },
        {
          "type": "null"
        }
      ],
      "title": "Equipment Details"
    },
    "first_name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "First Name"
    },
    "last_name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Last Name"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "phone": {
      "type": "string",
      "maxLength": 20,
      "minLength": 5,
      "title": "Phone"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    },
    "source_channel": {
      "type": "string",
      "maxLength": 30,
      "title": "Source Channel",
      "default": "web"
    },
    "source_campaign": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Campaign"
    },
    "source_locale": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Locale"
    },
    "source_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Metadata"
    }
  },
  "type": "object",
  "required": [
    "property_id",
    "check_in",
    "check_out",
    "accommodation_type",
    "first_name",
    "last_name",
    "email",
    "phone"
  ]
}