{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-report-options-schema.json",
  "title": "ReportOptions",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-print-dhl-freight-openapi.yml#/components/schemas/ReportOptions",
  "type": "object",
  "properties": {
    "label": {
      "type": "boolean"
    },
    "shipmentList": {
      "type": "boolean"
    },
    "shipmentListType": {
      "type": "string",
      "enum": [
        "Consignee",
        "Delivery"
      ]
    },
    "waybill": {
      "type": "boolean"
    },
    "guarantee": {
      "type": "boolean"
    },
    "returnLabel": {
      "type": "boolean"
    },
    "licensePlateBarCode": {
      "$ref": "#/$defs/LicenseBarCodeEnum"
    },
    "pageOptions": {
      "$ref": "#/$defs/PageOptions"
    }
  },
  "$defs": {
    "LicenseBarCodeEnum": {
      "type": "string",
      "enum": [
        "GS1",
        "Code128"
      ]
    },
    "PageOptions": {
      "type": "object",
      "properties": {
        "pageType": {
          "$ref": "#/$defs/PageTypeEnum"
        },
        "marginLeft": {
          "format": "double",
          "type": "number"
        },
        "marginTop": {
          "format": "double",
          "type": "number"
        },
        "padding": {
          "format": "double",
          "type": "number"
        },
        "outputType": {
          "type": "string",
          "enum": [
            "PDF",
            "ZPL",
            "ZPL300",
            "ZPL600"
          ],
          "description": "PDF is suitable for all laser printers. For 203 DPI label printer support, please use ZPL."
        }
      }
    },
    "PageTypeEnum": {
      "type": "string",
      "enum": [
        "Label",
        "Label2xPortraitA4",
        "Label3xLandscapeA4",
        "LabelCompact"
      ],
      "description": "For ZPL outputs, only LabelCompact format is supported."
    }
  }
}