{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loadsmart/json-schema/loadsmart-create-asset-visit-dto-schema.json",
  "title": "CreateAssetVisitDto",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loadsmart-asset-visit-api-openapi.yml#/components/schemas/CreateAssetVisitDto",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object"
    },
    "warehouseId": {
      "type": "string",
      "format": "uuid"
    },
    "appointmentId": {
      "type": "string",
      "format": "uuid"
    },
    "licensePlate": {
      "type": "object"
    },
    "dotNumber": {
      "type": "object"
    },
    "companyId": {
      "type": "string",
      "format": "uuid"
    },
    "phone": {
      "type": "string",
      "description": "Driver Phone number in E.164 format"
    },
    "useWhatsApp": {
      "type": "boolean",
      "description": "Whether to communicate via WhatsApp"
    },
    "isPlanned": {
      "type": "boolean"
    },
    "companyHint": {
      "type": "string",
      "description": "Company name"
    },
    "visitType": {
      "$ref": "#/$defs/AssetVisitType"
    },
    "driverNotes": {
      "type": "string",
      "description": "Driver notes for check-in"
    },
    "driverAppointmentIdentifier": {
      "type": "string",
      "description": "Appointment identifier entered by the driver for check-in"
    },
    "hasArrived": {
      "type": "boolean"
    },
    "assetContainerDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssetContainerDetailsDto"
      }
    }
  },
  "required": [
    "warehouseId",
    "phone",
    "useWhatsApp"
  ],
  "$defs": {
    "AssetContainerDetailsDto": {
      "type": "object",
      "properties": {}
    },
    "AssetVisitType": {
      "type": "string",
      "description": "The type of the asset visit",
      "enum": [
        "LiveUnload",
        "LiveLoad",
        "Live",
        "Drop",
        "PickUp",
        "DropHook",
        "Unknown"
      ]
    }
  }
}