{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-outcome-event-schema.json",
  "title": "OutcomeEvent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-governed-decisions-api-openapi.yml#/components/schemas/OutcomeEvent",
  "properties": {
    "invoice_ref": {
      "type": "string",
      "title": "Invoice Ref"
    },
    "outcome": {
      "type": "string",
      "title": "Outcome"
    },
    "outcome_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Outcome Date"
    },
    "amount_recovered": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Amount Recovered"
    },
    "source": {
      "type": "string",
      "title": "Source",
      "default": "manual"
    }
  },
  "type": "object",
  "required": [
    "invoice_ref",
    "outcome"
  ]
}