{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hunchsheet-app/json-schema/hunchsheet-app-payment-offer-schema.json",
  "title": "PaymentOffer",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hunchsheet-app-openapi.json#/components/schemas/PaymentOffer",
  "type": "object",
  "required": [
    "plan",
    "url",
    "price_usd",
    "credits_added"
  ],
  "properties": {
    "plan": {
      "type": "string",
      "enum": [
        "starter",
        "topup"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Checkout page for the person to open."
    },
    "price_usd": {
      "type": "number"
    },
    "currency": {
      "type": "string"
    },
    "credits_added": {
      "type": "integer"
    },
    "applies_to": {
      "type": "string"
    },
    "expires_in_seconds": {
      "type": [
        "integer",
        "null"
      ]
    },
    "human_approval_required": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    }
  }
}