{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/publiq/json-schema/publiq-event-card-system-schema.json",
  "title": "EventCardSystem",
  "description": "CardSystem in an event context, optionally including manual distributionKeys.\n\nThis model is only used in the GET and PUT `/events/{eventId}/card-systems` to configure the card systems and distribution keys for an event.\n\n<!-- theme: warning -->\n\n> **This model and corresponding endpoints are only needed for exceptional cases.** In most cases card systems and distribution keys are set automatically on events, so you don't need to retrieve or change them.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/publiq-events-api-openapi.yml#/components/schemas/EventCardSystem",
  "type": "object",
  "x-tags": [
    "Models"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "description": "ID of the card system"
    },
    "name": {
      "type": "string",
      "description": "Name of the card system"
    },
    "enabled": {
      "type": "boolean",
      "description": "State of this card system for the event."
    },
    "manualDistributionKeys": {
      "type": "array",
      "description": "List of distribution keys, used to determine the price of discounted UiTPAS tariffs, which can be enabled or disabled manually for the event.",
      "items": {
        "type": "object",
        "description": "Distribution key that can be enabled or disabled manually for the related event.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique ID of the manual distribution key."
          },
          "name": {
            "type": "string",
            "description": "Human-readable name of the distribution key."
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the distribution key is enabled or not for this specific event."
          }
        },
        "required": [
          "id",
          "enabled"
        ]
      }
    }
  },
  "required": [
    "id",
    "enabled"
  ]
}