{
  "schemaVersion": 1,
  "synthetic": true,
  "title": "WorthBits API 对账合成演示 v1",
  "boundary": "全部数据、时间、编号和反馈均为本站虚构，不来自三个来源案例或真实客户；demo_credit/demo_token不是货币、真实厂商额度或价格。",
  "rules": {
    "oneBillPerRequest": true,
    "billOnlyDeliveredImage": true,
    "sameUnitQuantityMustMatch": true,
    "compareExplicitTimezoneInstants": true,
    "noUnitConversionInThisDemo": true,
    "refundNeedsSettledStatusAndTime": true,
    "feedbackNeedsRequestId": true
  },
  "cases": [
    {
      "id": "D01",
      "title": "同一请求与扣费一致",
      "request": {
        "id": "req-demo-01",
        "at": "2026-01-01T01:00:00Z",
        "expectedOutput": "image",
        "actualOutput": "image",
        "usage": {
          "unit": "demo_credit",
          "quantity": 10
        }
      },
      "bills": [
        {
          "id": "bill-demo-01",
          "requestId": "req-demo-01",
          "requestAt": "2026-01-01T01:00:00Z",
          "unit": "demo_credit",
          "quantity": 10
        }
      ],
      "feedback": [],
      "refunds": []
    },
    {
      "id": "D02",
      "title": "同一请求出现两条有效扣费",
      "request": {
        "id": "req-demo-02",
        "at": "2026-01-01T01:00:00Z",
        "expectedOutput": "image",
        "actualOutput": "image",
        "usage": {
          "unit": "demo_credit",
          "quantity": 10
        }
      },
      "bills": [
        {
          "id": "bill-demo-02a",
          "requestId": "req-demo-02",
          "requestAt": "2026-01-01T01:00:00Z",
          "unit": "demo_credit",
          "quantity": 10
        },
        {
          "id": "bill-demo-02b",
          "requestId": "req-demo-02",
          "requestAt": "2026-01-01T01:00:00Z",
          "unit": "demo_credit",
          "quantity": 10
        }
      ],
      "feedback": [],
      "refunds": []
    },
    {
      "id": "D03",
      "title": "无内容返回但仍有扣费",
      "request": {
        "id": "req-demo-03",
        "at": "2026-01-01T01:00:00Z",
        "expectedOutput": "image",
        "actualOutput": "none",
        "usage": {
          "unit": "demo_credit",
          "quantity": 10
        }
      },
      "bills": [
        {
          "id": "bill-demo-03",
          "requestId": "req-demo-03",
          "requestAt": "2026-01-01T01:00:00Z",
          "unit": "demo_credit",
          "quantity": 10
        }
      ],
      "feedback": [],
      "refunds": []
    },
    {
      "id": "D04",
      "title": "token与额度单位缺少换算规则",
      "request": {
        "id": "req-demo-04",
        "at": "2026-01-01T01:00:00Z",
        "expectedOutput": "image",
        "actualOutput": "image",
        "usage": {
          "unit": "demo_token",
          "quantity": 100
        }
      },
      "bills": [
        {
          "id": "bill-demo-04",
          "requestId": "req-demo-04",
          "requestAt": "2026-01-01T01:00:00Z",
          "unit": "demo_credit",
          "quantity": 10
        }
      ],
      "feedback": [],
      "refunds": []
    },
    {
      "id": "D05",
      "title": "不同带时区时间表示同一时刻",
      "request": {
        "id": "req-demo-05",
        "at": "2026-01-01T01:00:00Z",
        "expectedOutput": "image",
        "actualOutput": "image",
        "usage": {
          "unit": "demo_credit",
          "quantity": 10
        }
      },
      "bills": [
        {
          "id": "bill-demo-05",
          "requestId": "req-demo-05",
          "requestAt": "2026-01-01T09:00:00+08:00",
          "unit": "demo_credit",
          "quantity": 10
        }
      ],
      "feedback": [],
      "refunds": []
    },
    {
      "id": "D06",
      "title": "已发退款通知但缺少到账凭据",
      "request": {
        "id": "req-demo-06",
        "at": "2026-01-01T01:00:00Z",
        "expectedOutput": "image",
        "actualOutput": "image",
        "usage": {
          "unit": "demo_credit",
          "quantity": 10
        }
      },
      "bills": [
        {
          "id": "bill-demo-06",
          "requestId": "req-demo-06",
          "requestAt": "2026-01-01T01:00:00Z",
          "unit": "demo_credit",
          "quantity": 10
        }
      ],
      "feedback": [],
      "refunds": [
        {
          "id": "refund-demo-06",
          "billId": "bill-demo-06",
          "status": "notified",
          "unit": "demo_credit",
          "quantity": 10,
          "settledAt": null
        }
      ]
    },
    {
      "id": "D07",
      "title": "客户反馈缺少关联请求编号",
      "request": {
        "id": "req-demo-07",
        "at": "2026-01-01T01:00:00Z",
        "expectedOutput": "image",
        "actualOutput": "image",
        "usage": {
          "unit": "demo_credit",
          "quantity": 10
        }
      },
      "bills": [
        {
          "id": "bill-demo-07",
          "requestId": "req-demo-07",
          "requestAt": "2026-01-01T01:00:00Z",
          "unit": "demo_credit",
          "quantity": 10
        }
      ],
      "feedback": [
        {
          "id": "feedback-demo-07",
          "requestId": null,
          "issue": "charged_without_result"
        }
      ],
      "refunds": []
    }
  ]
}
