{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nmi/json-schema/nmi-plan-response-schema.json",
  "title": "Plan Response",
  "description": "Plan response matching PlanRestSerializer structure",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nmi-plans-api-openapi.yml#/components/schemas/PlanResponse",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "plan"
      ],
      "description": "Resource type identifier"
    },
    "id": {
      "type": "string",
      "description": "Plan ID (SKU)"
    },
    "plan_name": {
      "type": "string",
      "description": "Plan name"
    },
    "plan_amount": {
      "type": "string",
      "description": "Plan amount"
    },
    "plan_payments": {
      "type": "string",
      "description": "Number of payments (0 = until canceled)"
    },
    "day_frequency": {
      "type": "string",
      "description": "Day frequency (0 if not applicable, empty if not set)"
    },
    "month_frequency": {
      "type": "string",
      "description": "Month frequency (0 if not applicable, empty if not set)"
    },
    "day_of_month": {
      "type": "string",
      "description": "Day of month (empty if not applicable)"
    }
  },
  "required": [
    "object",
    "id"
  ]
}