{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-auto-topup-schema.json",
  "title": "AutoTopup",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-billing-api-openapi.yml#/components/schemas/AutoTopup",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending_setup",
        "active",
        "disabled"
      ],
      "title": "Status"
    },
    "threshold_micro": {
      "type": "integer",
      "title": "Threshold Micro"
    },
    "amount_micro": {
      "type": "integer",
      "title": "Amount Micro"
    },
    "daily_cap_micro": {
      "type": "integer",
      "title": "Daily Cap Micro"
    },
    "payment_method_saved": {
      "type": "boolean",
      "title": "Payment Method Saved"
    },
    "setup_session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Setup Session Id"
    },
    "setup_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Setup Url",
      "description": "Where to save the card while status is pending_setup."
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    },
    "last_attempt_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Attempt At"
    },
    "disabled_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Disabled At"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "environment",
    "status",
    "threshold_micro",
    "amount_micro",
    "daily_cap_micro",
    "payment_method_saved",
    "setup_session_id",
    "created_at",
    "updated_at",
    "last_attempt_at",
    "disabled_at"
  ]
}