{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brm-chronographes-com/json-schema/brm-chronographes-com-colissimo-manual-request-schema.json",
  "title": "ColissimoManualRequest",
  "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/ColissimoManualRequest",
  "properties": {
    "recipient": {
      "$ref": "#/$defs/ManualRecipient"
    },
    "weight": {
      "type": "number",
      "title": "Weight"
    },
    "product_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Code"
    },
    "goods_value": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Goods Value"
    },
    "signature": {
      "type": "boolean",
      "title": "Signature",
      "default": true
    },
    "non_machinable": {
      "type": "boolean",
      "title": "Non Machinable",
      "default": false
    },
    "insurance": {
      "type": "boolean",
      "title": "Insurance",
      "default": false
    },
    "tariff_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tariff Number"
    },
    "deposit_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deposit Date"
    },
    "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"
  ],
  "$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"
    }
  }
}