{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/claim_window_verdict/v2.json",
  "title": "claim_window_verdict contract v2",
  "type": "object",
  "required": [
    "detail",
    "due_date",
    "obligation",
    "status",
    "trigger_fact_id",
    "trigger_shelf_type"
  ],
  "properties": {
    "detail": {
      "type": "string",
      "description": "One line naming what was triggered, the clause, and the days left.",
      "x-demiton-requiredness": "required"
    },
    "status": {
      "type": "string",
      "description": "ARMED (the window is open), CLOSING (inside the last fifth of it), LODGED (a notice was written before the deadline), MISSED (the deadline passed with no notice), or CLOSED (the trigger was resolved so the watch was cancelled).",
      "x-demiton-requiredness": "required"
    },
    "currency": {
      "type": "currency",
      "description": "the currency of every amount on this record (`exposure`), an ISO 4217 alpha-3 code as the source states it. A record with no currency has no usable amount.",
      "x-demiton-requiredness": "optional"
    },
    "due_date": {
      "type": "string",
      "description": "The notice deadline the trigger opened, ISO date, computed from the trigger fact's own date plus the contract's notice period.",
      "x-demiton-requiredness": "required"
    },
    "exposure": {
      "type": "number",
      "description": "The claimable amount at stake, when the trigger fact carries one.",
      "x-demiton-requiredness": "optional"
    },
    "obligation": {
      "type": "string",
      "description": "The entitlement the window protects: delay_eot or variation.",
      "x-demiton-requiredness": "required"
    },
    "window_days": {
      "type": "number",
      "description": "The contract's notice period, in days.",
      "x-demiton-requiredness": "optional"
    },
    "window_unit": {
      "type": "string",
      "description": "business or calendar, as the contract states it.",
      "x-demiton-requiredness": "optional"
    },
    "source_clause": {
      "type": "string",
      "description": "The contract clause the window comes from.",
      "x-demiton-requiredness": "optional"
    },
    "cause_category": {
      "type": "string",
      "description": "The subcategory of the verdict's disease: the stage or control that failed. One of that disease's `causes[].key` in vocab/diseases.json, checked by `taxonomy.check_cause` before the write. Absent when the detector does not determine it.",
      "x-demiton-requiredness": "optional"
    },
    "notice_fact_id": {
      "type": "number",
      "description": "The contract_notice fact that closed the window, once the user lodged the notice.",
      "x-demiton-requiredness": "optional"
    },
    "unit_defaulted": {
      "type": "boolean",
      "description": "True when the contract stated no unit and business days were assumed (claim_window_arming_service._DEFAULT_UNIT).",
      "x-demiton-requiredness": "optional"
    },
    "trigger_fact_id": {
      "type": "number",
      "description": "That fact's id, so the verdict cites what opened the window.",
      "x-demiton-requiredness": "required"
    },
    "contract_fact_id": {
      "type": "number",
      "description": "The contract_terms fact the window was read from.",
      "x-demiton-requiredness": "optional"
    },
    "trigger_shelf_type": {
      "type": "string",
      "description": "The register holding the fact that opened the window: site_diary, day_works_docket or variations.",
      "x-demiton-requiredness": "required"
    }
  },
  "x-demiton-register-type": "claim_window_verdict",
  "x-demiton-contract-version": "2.1.0",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": []
  },
  "description": "The Claim window verdict register contract, version 2. 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/claim_window_verdict/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}