{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brm-chronographes-com/json-schema/brm-chronographes-com-create-shipment-request-schema.json",
  "title": "CreateShipmentRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brm-chronographes-com-openapi.json#/components/schemas/CreateShipmentRequest",
  "properties": {
    "service": {
      "$ref": "#/$defs/ServiceChoice"
    },
    "weight": {
      "type": "number",
      "title": "Weight"
    },
    "length": {
      "type": "integer",
      "title": "Length",
      "default": 25
    },
    "width": {
      "type": "integer",
      "title": "Width",
      "default": 20
    },
    "height": {
      "type": "integer",
      "title": "Height",
      "default": 12
    },
    "quantity": {
      "type": "integer",
      "title": "Quantity",
      "default": 1
    },
    "goods_value": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Goods Value"
    },
    "insurance": {
      "type": "boolean",
      "title": "Insurance",
      "default": false
    },
    "ddp": {
      "type": "boolean",
      "title": "Ddp",
      "default": false
    },
    "tariff_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tariff Number"
    },
    "saturday_delivery": {
      "type": "boolean",
      "title": "Saturday Delivery",
      "default": false
    },
    "holiday_delivery": {
      "type": "boolean",
      "title": "Holiday Delivery",
      "default": false
    },
    "pickup_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pickup Date"
    },
    "notify_recipient": {
      "type": "boolean",
      "title": "Notify Recipient",
      "default": true
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    },
    "production_order_ids": {
      "anyOf": [
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Production Order Ids"
    },
    "accessory_line_ids": {
      "anyOf": [
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accessory Line Ids"
    }
  },
  "type": "object",
  "required": [
    "service",
    "weight"
  ],
  "$defs": {
    "ServiceChoice": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "carrier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Carrier"
        },
        "total_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Price"
        }
      },
      "type": "object",
      "required": [
        "id"
      ],
      "title": "ServiceChoice"
    }
  }
}