{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brm-chronographes-com/json-schema/brm-chronographes-com-manual-create-request-schema.json",
  "title": "ManualCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brm-chronographes-com-shipments-api-openapi.yml#/components/schemas/ManualCreateRequest",
  "properties": {
    "recipient": {
      "$ref": "#/$defs/ManualRecipient"
    },
    "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": "integer"
        },
        {
          "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"
    },
    "service": {
      "$ref": "#/$defs/ManualServiceChoice"
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content",
      "default": "Colis BRM"
    },
    "reference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reference"
    },
    "notify_recipient": {
      "type": "boolean",
      "title": "Notify Recipient",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "recipient",
    "weight",
    "service"
  ],
  "$defs": {
    "ManualRecipient": {
      "properties": {
        "company": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company",
          "default": ""
        },
        "firstname": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Firstname",
          "default": ""
        },
        "lastname": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lastname",
          "default": ""
        },
        "address_line1": {
          "type": "string",
          "title": "Address Line1"
        },
        "postal_code": {
          "type": "string",
          "title": "Postal Code"
        },
        "city": {
          "type": "string",
          "title": "City"
        },
        "country": {
          "type": "string",
          "title": "Country",
          "default": "France"
        },
        "state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "State",
          "default": ""
        },
        "phone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Phone",
          "default": ""
        },
        "email": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "address_line1",
        "postal_code",
        "city"
      ],
      "title": "ManualRecipient"
    },
    "ManualServiceChoice": {
      "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": "ManualServiceChoice"
    }
  }
}