{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ZuordnungBeendet",
  "description": "The `data` of `de.mako.vertrag.zuordnung.beendet`.",
  "type": "object",
  "properties": {
    "vertrag_id": {
      "type": "string",
      "format": "uuid"
    },
    "vertrags_nr": {
      "type": "string"
    },
    "customer_id": {
      "description": "The Kunde the contract is with — the customer number of the portfolio\nroute.",
      "type": "string",
      "format": "uuid"
    },
    "erp_contract_id": {
      "description": "The caller's contract reference, where the contract was created with one.",
      "type": [
        "string",
        "null"
      ]
    },
    "bestellreferenz": {
      "description": "The front end's order reference, where the contract came from an order.",
      "type": [
        "string",
        "null"
      ]
    },
    "komp_id": {
      "type": "string",
      "format": "uuid"
    },
    "sparte": {
      "type": "string"
    },
    "malo_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "lieferbeginn": {
      "description": "The day supply begins, as the contract holds it.",
      "type": "string",
      "format": "date"
    },
    "zuordnungsende": {
      "description": "The Zuordnungsende the Netzbetreiber stated (`DTM+93`), now the\ncomponent's Lieferende.",
      "type": "string",
      "format": "date"
    },
    "grund": {
      "description": "`SG4 STS+7` — why the Zuordnung ended.",
      "type": "string"
    },
    "wechsel": {
      "description": "`true` when another supplier takes the Marktlokation (`E03` Wechsel).",
      "type": "boolean"
    },
    "netzbetreiber": {
      "description": "The Netzbetreiber that sent the 55037 / 44037.",
      "type": "string"
    }
  },
  "required": [
    "vertrag_id",
    "vertrags_nr",
    "customer_id",
    "komp_id",
    "sparte",
    "lieferbeginn",
    "zuordnungsende",
    "grund",
    "wechsel",
    "netzbetreiber"
  ],
  "$id": "https://hupe1980.github.io/mako/schemas/events/de.mako.vertrag.zuordnung.beendet.json"
}
