{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-topup-session-schema.json",
  "title": "TopupSession",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-billing-api-openapi.yml#/components/schemas/TopupSession",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment"
    },
    "kind": {
      "type": "string",
      "enum": [
        "manual",
        "auto",
        "setup"
      ],
      "title": "Kind"
    },
    "amount_micro": {
      "type": "integer",
      "title": "Amount Micro"
    },
    "currency": {
      "type": "string",
      "title": "Currency"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "completed",
        "expired",
        "canceled",
        "failed"
      ],
      "title": "Status"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url",
      "description": "The hosted Checkout page while the session is open."
    },
    "stripe_session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stripe Session Id"
    },
    "stripe_payment_intent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stripe Payment Intent Id"
    },
    "auto_topup_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Topup Id"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "environment",
    "kind",
    "amount_micro",
    "currency",
    "status",
    "stripe_session_id",
    "stripe_payment_intent_id",
    "auto_topup_id",
    "error",
    "created_at",
    "expires_at",
    "completed_at"
  ]
}