{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pointifytravels-com/json-schema/pointifytravels-com-car-booking-request-schema.json",
  "title": "CarBookingRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pointifytravels-com-openapi.json#/components/schemas/CarBookingRequest",
  "properties": {
    "offer_token": {
      "type": "string",
      "title": "Offer Token"
    },
    "driver_first_name": {
      "type": "string",
      "title": "Driver First Name"
    },
    "driver_last_name": {
      "type": "string",
      "title": "Driver Last Name"
    },
    "driver_email": {
      "type": "string",
      "title": "Driver Email"
    },
    "driver_phone": {
      "type": "string",
      "title": "Driver Phone"
    },
    "driver_dob": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "title": "Driver Dob"
    },
    "driver_license": {
      "type": "string",
      "title": "Driver License"
    },
    "license_country": {
      "type": "string",
      "title": "License Country"
    },
    "stripe_payment_intent_id": {
      "type": "string",
      "title": "Stripe Payment Intent Id"
    },
    "add_insurance": {
      "type": "boolean",
      "title": "Add Insurance",
      "default": false
    },
    "add_gps": {
      "type": "boolean",
      "title": "Add Gps",
      "default": false
    },
    "add_price_protection": {
      "type": "boolean",
      "title": "Add Price Protection",
      "default": false
    },
    "provider": {
      "type": "string",
      "title": "Provider"
    },
    "vehicle_name": {
      "type": "string",
      "title": "Vehicle Name"
    },
    "pickup_location": {
      "type": "string",
      "title": "Pickup Location"
    },
    "dropoff_location": {
      "type": "string",
      "title": "Dropoff Location"
    },
    "pickup_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "title": "Pickup Date"
    },
    "dropoff_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "title": "Dropoff Date"
    },
    "total_price": {
      "type": "number",
      "title": "Total Price"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "USD"
    },
    "booking_url": {
      "type": "string",
      "title": "Booking Url"
    },
    "vehicle_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vehicle Type"
    },
    "nationality": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nationality"
    }
  },
  "type": "object",
  "required": [
    "offer_token",
    "driver_first_name",
    "driver_last_name",
    "driver_email",
    "driver_phone",
    "driver_dob",
    "driver_license",
    "license_country",
    "stripe_payment_intent_id",
    "provider",
    "vehicle_name",
    "pickup_location",
    "dropoff_location",
    "pickup_date",
    "dropoff_date",
    "total_price",
    "booking_url"
  ]
}