{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postbot-cz/json-schema/postbot-cz-preview-schema.json",
  "title": "Preview",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postbot-cz-openapi.json#/components/schemas/Preview",
  "type": "object",
  "required": [
    "pdfBase64",
    "sheets",
    "service",
    "chargeCzk",
    "payCzk"
  ],
  "properties": {
    "pdfBase64": {
      "type": "string",
      "contentEncoding": "base64",
      "contentMediaType": "application/pdf",
      "description": "The exact PDF that would be printed."
    },
    "sheets": {
      "type": "integer",
      "description": "Printed sheets."
    },
    "service": {
      "$ref": "#/$defs/Service"
    },
    "chargeCzk": {
      "type": "integer",
      "description": "Price on prepaid credit, CZK."
    },
    "payCzk": {
      "type": "integer",
      "description": "Price as a one-off card payment, CZK (one-off minimum applied)."
    }
  },
  "$defs": {
    "Service": {
      "type": "string",
      "enum": [
        "obycejne",
        "doporucene"
      ],
      "description": "obycejne = ordinary letter; doporucene = registered, with tracking."
    }
  }
}