{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/outcometick-com/json-schema/outcometick-com-plan-schema.json",
  "title": "Plan",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outcometick-com-openapi.json#/components/schemas/Plan",
  "type": "object",
  "properties": {
    "planId": {
      "type": "string"
    },
    "tier": {
      "type": "string"
    },
    "venue": {
      "type": "string",
      "enum": [
        "polymarket",
        "predict",
        "all"
      ]
    },
    "dateScope": {
      "type": "string",
      "description": "e.g. rolling-30, or full"
    },
    "usd": {
      "type": "number"
    },
    "amounts": {
      "$ref": "#/$defs/Amounts"
    },
    "hasPass": {
      "type": "boolean",
      "description": "A one-time pass (no auto-renewal) is sold for this plan"
    },
    "passUsd": {
      "type": [
        "number",
        "null"
      ]
    },
    "passAmounts": {
      "oneOf": [
        {
          "$ref": "#/$defs/Amounts"
        },
        {
          "type": "null"
        }
      ]
    },
    "interval": {
      "type": "string",
      "description": "Billing interval of the subscription"
    }
  },
  "$defs": {
    "Amounts": {
      "type": "object",
      "description": "Price in major units per currency the plan can be bought in.",
      "properties": {
        "usd": {
          "type": "number"
        },
        "cny": {
          "type": "number"
        }
      },
      "additionalProperties": false
    }
  }
}