{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dpd-group/main/json-schema/dpd-group-dropoff-codes-schema.json",
  "title": "DropoffCodes",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dpd-group-parcels-api-openapi.yml#/components/schemas/DropoffCodes",
  "properties": {
    "pin": {
      "$ref": "#/$defs/DropoffCodes_pin"
    },
    "aztec": {
      "$ref": "#/$defs/DropoffCodes_aztec"
    }
  },
  "required": [
    "expiresAt",
    "pin"
  ],
  "type": "object",
  "$defs": {
    "AztecFormats": {
      "enum": [
        "PDF",
        "PNG",
        "SVG"
      ],
      "type": "string"
    },
    "DateTime": {
      "description": "Represented in the ISO 8601 format",
      "type": "string"
    },
    "DropoffCodes_aztec": {
      "properties": {
        "value": {
          "description": "Base64 encoded aztec code in the selected format",
          "type": "string"
        },
        "format": {
          "$ref": "#/$defs/AztecFormats"
        }
      },
      "required": [
        "format",
        "value"
      ],
      "type": "object"
    },
    "DropoffCodes_pin": {
      "properties": {
        "value": {
          "type": "string"
        },
        "expiresAt": {
          "$ref": "#/$defs/DateTime"
        }
      },
      "required": [
        "expiresAt",
        "value"
      ],
      "type": "object"
    }
  }
}