{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentready-me/json-schema/agentready-me-checkout-availability-schema.json",
  "title": "CheckoutAvailability",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentready-me-commerce-api-openapi.yml#/components/schemas/CheckoutAvailability",
  "type": "object",
  "required": [
    "checkoutAvailable",
    "mode",
    "accountReady",
    "webhookReady",
    "plans",
    "checkedAt"
  ],
  "properties": {
    "checkoutAvailable": {
      "type": "boolean"
    },
    "mode": {
      "type": "string",
      "enum": [
        "live",
        "test",
        "unknown"
      ]
    },
    "accountReady": {
      "type": "boolean"
    },
    "webhookReady": {
      "type": "boolean"
    },
    "plans": {
      "type": "object",
      "required": [
        "pro",
        "pro_plus",
        "enterprise"
      ],
      "properties": {
        "pro": {
          "$ref": "#/$defs/CheckoutPlanAvailability"
        },
        "pro_plus": {
          "$ref": "#/$defs/CheckoutPlanAvailability"
        },
        "enterprise": {
          "$ref": "#/$defs/CheckoutPlanAvailability"
        }
      }
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    },
    "error": {
      "type": "string"
    }
  },
  "$defs": {
    "CheckoutPlanAvailability": {
      "type": "object",
      "required": [
        "available",
        "amount",
        "currency",
        "interval"
      ],
      "properties": {
        "available": {
          "type": "boolean"
        },
        "amount": {
          "type": "integer",
          "description": "Price in the currency's minor unit."
        },
        "currency": {
          "type": "string"
        },
        "interval": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}