{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-upgrade-preview-response-schema.json",
  "title": "UpgradePreviewResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-stripe-api-openapi.yml#/components/schemas/UpgradePreviewResponse",
  "properties": {
    "is_upgrade": {
      "type": "boolean",
      "title": "Is Upgrade"
    },
    "amount_due_now": {
      "type": "number",
      "title": "Amount Due Now"
    },
    "next_invoice_amount": {
      "type": "number",
      "title": "Next Invoice Amount"
    },
    "next_billing_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Billing Date"
    },
    "new_package_name": {
      "type": "string",
      "title": "New Package Name"
    },
    "new_monthly_credits": {
      "type": "integer",
      "title": "New Monthly Credits"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "usd"
    },
    "requires_card": {
      "type": "boolean",
      "title": "Requires Card",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "is_upgrade",
    "amount_due_now",
    "next_invoice_amount",
    "next_billing_date",
    "new_package_name",
    "new_monthly_credits"
  ]
}