{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/contract_notice/v1.json",
  "title": "contract_notice contract v1",
  "type": "object",
  "required": [
    "direction",
    "external_id",
    "notice_kind",
    "project",
    "served_on"
  ],
  "properties": {
    "amount": {
      "type": "number",
      "description": "the amount the notice claims or concerns, where it states one",
      "x-demiton-requiredness": "optional",
      "x-demiton-type": "money"
    },
    "project": {
      "type": "string",
      "description": "the project the notice is on",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "subject": {
      "type": "string",
      "description": "what the notice is about, in a short phrase",
      "x-demiton-requiredness": "optional"
    },
    "currency": {
      "type": "currency",
      "description": "the currency of `amount`",
      "x-demiton-requiredness": "optional"
    },
    "to_party": {
      "type": "string",
      "description": "who received it",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "direction": {
      "type": "string",
      "description": "whether the org gave the notice or received it",
      "enum": [
        "given",
        "received"
      ],
      "x-demiton-requiredness": "required"
    },
    "served_on": {
      "type": "string",
      "description": "when the notice was served or received; the date a window is measured to",
      "x-demiton-requiredness": "required",
      "format": "date",
      "x-demiton-type": "date"
    },
    "from_party": {
      "type": "string",
      "description": "who gave the notice",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "external_id": {
      "type": "string",
      "description": "the source system's own id for the notice, or the document id it was extracted from",
      "x-demiton-requiredness": "required"
    },
    "notice_kind": {
      "type": "string",
      "description": "which notice this is",
      "enum": [
        "latent_condition",
        "contamination",
        "delay",
        "eot_claim",
        "direction",
        "variation_notice",
        "claim_notice",
        "early_warning",
        "security_recourse",
        "set_off",
        "dlp_end",
        "retention_trust_deposit",
        "retention_report",
        "notice_of_intention",
        "suspension",
        "adjudication_application",
        "adjudication_response",
        "other"
      ],
      "x-demiton-requiredness": "required"
    },
    "jurisdiction": {
      "type": "jurisdiction",
      "description": "the jurisdiction whose rules govern the notice",
      "x-demiton-requiredness": "optional"
    },
    "related_record": {
      "type": "string",
      "description": "the record the notice concerns (a variation, progress claim, payment schedule or security)",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "response_due_on": {
      "type": "string",
      "description": "when a response or the next step is due, where the notice or the rule sets one",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "source_document": {
      "type": "string",
      "description": "the document or message the notice was extracted from, as a stable reference",
      "x-demiton-requiredness": "optional"
    },
    "clause_reference": {
      "type": "string",
      "description": "the contract clause or statutory section the notice is given under",
      "x-demiton-requiredness": "optional"
    },
    "event_occurred_on": {
      "type": "string",
      "description": "when the event the notice is about happened or was discovered; the date a window is measured from",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    }
  },
  "x-demiton-register-type": "contract_notice",
  "x-demiton-contract-version": "1.0.2",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "project",
      "requirement": "required",
      "role": "subject"
    }
  ],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": []
  },
  "description": "The Contract notice register contract, version 1. JSON Schema (draft 2020-12); x-demiton-* keywords carry Demiton's own meaning and standard validators ignore them.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/contract_notice/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}