{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ctlsurf-com/json-schema/ctlsurf-com-billing-status-response-schema.json",
  "title": "BillingStatusResponse",
  "description": "Response for billing status check.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ctlsurf-com-billing-api-openapi.yml#/components/schemas/BillingStatusResponse",
  "properties": {
    "stripe_enabled": {
      "type": "boolean",
      "title": "Stripe Enabled"
    },
    "publishable_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Publishable Key"
    },
    "current_tier": {
      "type": "string",
      "title": "Current Tier"
    },
    "has_subscription": {
      "type": "boolean",
      "title": "Has Subscription"
    },
    "subscription_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subscription Status"
    },
    "subscription_ends_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subscription Ends At"
    },
    "can_manage_subscription": {
      "type": "boolean",
      "title": "Can Manage Subscription"
    }
  },
  "type": "object",
  "required": [
    "stripe_enabled",
    "current_tier",
    "has_subscription",
    "can_manage_subscription"
  ]
}