{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/verifly-email/json-schema/verifly-email-stripe-checkout-result-schema.json",
  "title": "StripeCheckoutResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/verifly-email-billing-api-openapi.yml#/components/schemas/StripeCheckoutResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "method": {
      "type": "string",
      "const": "stripe"
    },
    "checkout_url": {
      "type": "string",
      "format": "uri"
    },
    "session_id": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "package": {
      "$ref": "#/$defs/PackageRef"
    }
  },
  "required": [
    "success",
    "checkout_url"
  ],
  "$defs": {
    "PackageRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "credits": {
          "type": "integer"
        },
        "price_usd": {
          "type": "string"
        }
      }
    }
  }
}