{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reeldrop-io/json-schema/reeldrop-io-billing-status-response-schema.json",
  "title": "BillingStatusResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reeldrop-io-openapi.json#/components/schemas/BillingStatusResponse",
  "properties": {
    "plan": {
      "$ref": "#/$defs/WorkspacePlan"
    },
    "billing_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Billing Type"
    },
    "subscription_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subscription Status"
    },
    "subscription_current_period_end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subscription Current Period End"
    },
    "subscription_interval": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subscription Interval"
    },
    "cancel_at_period_end": {
      "type": "boolean",
      "title": "Cancel At Period End"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active"
    },
    "stripe_publishable_key": {
      "type": "string",
      "title": "Stripe Publishable Key"
    },
    "image_gen_used": {
      "type": "integer",
      "title": "Image Gen Used"
    },
    "image_gen_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Gen Limit"
    },
    "image_credits": {
      "type": "integer",
      "title": "Image Credits"
    },
    "referral_credit_months": {
      "type": "integer",
      "title": "Referral Credit Months",
      "default": 0
    },
    "referral_credit_cents": {
      "type": "integer",
      "title": "Referral Credit Cents",
      "default": 0
    },
    "referral_credit_currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referral Credit Currency"
    },
    "referral_comp_plan": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referral Comp Plan"
    },
    "referral_comp_ends_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referral Comp Ends At"
    },
    "referral_half_off_months": {
      "type": "integer",
      "title": "Referral Half Off Months",
      "default": 0
    },
    "referral_half_off_ends": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referral Half Off Ends"
    },
    "pending_plan": {
      "anyOf": [
        {
          "$ref": "#/$defs/WorkspacePlan"
        },
        {
          "type": "null"
        }
      ]
    },
    "pending_plan_effective_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pending Plan Effective At"
    }
  },
  "type": "object",
  "required": [
    "plan",
    "billing_type",
    "subscription_status",
    "subscription_current_period_end",
    "subscription_interval",
    "cancel_at_period_end",
    "is_active",
    "stripe_publishable_key",
    "image_gen_used",
    "image_gen_limit",
    "image_credits"
  ],
  "$defs": {
    "WorkspacePlan": {
      "type": "string",
      "enum": [
        "starter",
        "influencer",
        "creator"
      ],
      "title": "WorkspacePlan"
    }
  }
}