{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-billing-upgrade-schema.json",
  "title": "BillingUpgrade",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-billing-api-openapi.yml#/components/schemas/BillingUpgrade",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "billing_upgrade"
      ]
    },
    "funding": {
      "$ref": "#/$defs/BillingHostedCheckoutFunding"
    },
    "status": {
      "type": "string",
      "enum": [
        "human_action_required"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "planKey": {
      "type": "string",
      "enum": [
        "starter",
        "basic",
        "grow",
        "advanced",
        "scale",
        "enterprise"
      ],
      "description": "Self-serve plan key. enterprise is not self-serve and returns plan_not_self_serve."
    }
  },
  "required": [
    "object",
    "funding",
    "status",
    "url",
    "planKey"
  ],
  "$defs": {
    "BillingHostedCheckoutFunding": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "hosted_checkout"
          ]
        }
      },
      "required": [
        "type"
      ]
    }
  }
}