{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Victoroff reviewed intake draft",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "status",
    "payment_status",
    "human_review_required",
    "offer",
    "offer_name",
    "amount_minor",
    "currency",
    "nonconfidential_confirmed",
    "organization",
    "workflow",
    "outcome",
    "systems",
    "timing",
    "price_label",
    "billing"
  ],
  "properties": {
    "schema_version": {
      "const": "1.1"
    },
    "status": {
      "const": "draft_not_submitted"
    },
    "payment_status": {
      "const": "not_verified"
    },
    "human_review_required": {
      "const": true
    },
    "offer": {
      "enum": [
        "clarity",
        "clarity_monthly",
        "reconstruction",
        "reconstruction_monthly",
        "assessment",
        "institutional"
      ]
    },
    "offer_name": {
      "type": "string"
    },
    "amount_minor": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "currency": {
      "const": "usd"
    },
    "nonconfidential_confirmed": {
      "const": true
    },
    "organization": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "workflow": {
      "type": "string",
      "minLength": 5,
      "maxLength": 255
    },
    "outcome": {
      "type": "string",
      "minLength": 5,
      "maxLength": 600
    },
    "systems": {
      "type": "string",
      "minLength": 0,
      "maxLength": 250
    },
    "timing": {
      "type": "string",
      "minLength": 0,
      "maxLength": 120
    },
    "price_label": {
      "type": "string"
    },
    "billing": {
      "enum": [
        "one_time",
        "monthly",
        "agreement"
      ]
    }
  }
}
