{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tier1-shop/json-schema/tier1-shop-checkout-intent-status-schema.json",
  "title": "CheckoutIntentStatus",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tier1-shop-openapi.json#/components/schemas/CheckoutIntentStatus",
  "type": "object",
  "required": [
    "intent_id",
    "state",
    "wc_order_id",
    "cabinet_order_ids"
  ],
  "properties": {
    "intent_id": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "awaiting_checkout",
        "expired",
        "checkout_opened",
        "awaiting_payment",
        "paid",
        "failed",
        "cancelled",
        "refunded",
        "review_required"
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "estimated_summary": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "wc_order_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "wc_order_status": {
      "type": [
        "string",
        "null"
      ]
    },
    "cabinet_order_ids": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "fulfilment_pending": {
      "type": "boolean"
    },
    "replacement_credits_fulfilled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "True only after verifying native replacement-credit receipts for this checkout. Null for ordinary placement-only checkouts. Replacement-only purchases do not create cabinet orders."
    },
    "cabinet_lookup_path": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}