{
  "synthetic": true,
  "currentCases": 15,
  "inherited": 12,
  "new": 3,
  "providerCalls": 0,
  "cases": [
    {
      "id": "missing",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "UNKNOWN_MERCHANT_DEBIT",
      "actual": "UNKNOWN_MERCHANT_DEBIT",
      "interpretation": {
        "en": "USD60 order; original AUD90 payout; approved USD20 refund. Merchant debit remains unknown, not AUD30.",
        "zh": "订单USD60、原结算AUD90、批准退款USD20。商家扣款仍未知，不能用原比例推成AUD30。"
      },
      "passed": true
    },
    {
      "id": "declared",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "DECLARED_RECORDS_MATCH_NOT_AUTHENTICATED",
      "actual": "DECLARED_RECORDS_MATCH_NOT_AUTHENTICATED",
      "interpretation": {
        "en": "A fictional AUD31 debit record accompanies USD20. Preserve both; do not call their numeric difference a fee.",
        "zh": "补入虚构AUD31扣款记录，保留USD20与AUD31双列，数字之差不能当手续费。"
      },
      "passed": true
    },
    {
      "id": "wrong-customer-currency",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "AUD",
        "refund_minor": 2000,
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_CUSTOMER_CURRENCY",
      "actual": "HOLD_CUSTOMER_CURRENCY",
      "interpretation": {
        "en": "Changing the refund label to AUD does not establish an original-currency refund.",
        "zh": "将客户退款标签改成AUD，不能证明按原支付币种退款。"
      },
      "passed": true
    },
    {
      "id": "missing-reference",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "UNKNOWN_MERCHANT_DEBIT",
      "actual": "UNKNOWN_MERCHANT_DEBIT",
      "interpretation": {
        "en": "An amount without a record reference is insufficient.",
        "zh": "只有金额、没有记录引用，证据不足。"
      },
      "passed": true
    },
    {
      "id": "different-provider",
      "input": {
        "scope": "unknown-gateway",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_PROVIDER_SCOPE",
      "actual": "HOLD_PROVIDER_SCOPE",
      "interpretation": {
        "en": "Do not apply these provider-specific rules to an unidentified gateway.",
        "zh": "网关不明时不得套用本平台规则。"
      },
      "passed": true
    },
    {
      "id": "wrong-debit-currency",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "EUR",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-X",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_DEBIT_CURRENCY",
      "actual": "HOLD_DEBIT_CURRENCY",
      "interpretation": {
        "en": "The supplied debit does not match the declared payout-currency ledger.",
        "zh": "所填扣款币种与声明结算账本不一致。"
      },
      "passed": true
    },
    {
      "id": "malformed-amount",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": "31.00",
          "reference": "SYNTHETIC-X",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_DEBIT_AMOUNT",
      "actual": "HOLD_DEBIT_AMOUNT",
      "interpretation": {
        "en": "This finite fixture expects positive integer minor units; no silent parsing.",
        "zh": "本有限例子要求正整数最小单位，不静默转换字符串。"
      },
      "passed": true
    },
    {
      "id": "wrong-order",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-OTHER",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_RECORD_IDENTITY",
      "interpretation": {
        "en": "Reject another order record.",
        "zh": "拒绝其他订单凭证。"
      },
      "newThisVersion": true,
      "actual": "HOLD_RECORD_IDENTITY",
      "passed": true
    },
    {
      "id": "wrong-refund",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R8",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_RECORD_IDENTITY",
      "interpretation": {
        "en": "Reject another refund record.",
        "zh": "拒绝其他退款凭证。"
      },
      "newThisVersion": true,
      "actual": "HOLD_RECORD_IDENTITY",
      "passed": true
    },
    {
      "id": "earlier-debit",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-19"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_RECORD_TIME",
      "interpretation": {
        "en": "An earlier debit is not this declared refund event.",
        "zh": "更早扣款不能对应本例退款事件。"
      },
      "newThisVersion": true,
      "actual": "HOLD_RECORD_TIME",
      "passed": true
    },
    {
      "id": "negative-refund",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": -2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_REFUND_AMOUNT",
      "interpretation": {
        "en": "This fixture accepts only positive refund input.",
        "zh": "本例只接受正退款输入。"
      },
      "newThisVersion": true,
      "actual": "HOLD_REFUND_AMOUNT",
      "passed": true
    },
    {
      "id": "excess-refund",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 7000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_REFUND_AMOUNT",
      "interpretation": {
        "en": "Reject above the declared single original payment; prior partial refunds are outside scope.",
        "zh": "超过声明原单笔支付则拒绝；不覆盖先前部分退款。"
      },
      "newThisVersion": true,
      "actual": "HOLD_REFUND_AMOUNT",
      "passed": true
    },
    {
      "id": "both-identities-missing",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "date": "2026-10-20"
        },
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_RECORD_IDENTITY",
      "interpretation": {
        "en": "Both records missing IDs must not match.",
        "zh": "两边都缺ID，不能当成身份一致。"
      },
      "newIn1700": true,
      "actual": "HOLD_RECORD_IDENTITY",
      "passed": true
    },
    {
      "id": "outside-currency-fixture",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "JPY",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "JPY",
        "refund_currency": "JPY",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "JPY",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-15",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_CURRENCY_SCOPE",
      "interpretation": {
        "en": "Do not apply two-decimal USD/AUD fixture to JPY.",
        "zh": "不能把USD/AUD两位小数例子套给JPY。"
      },
      "newIn1700": true,
      "actual": "HOLD_CURRENCY_SCOPE",
      "passed": true
    },
    {
      "id": "refund-before-payment",
      "input": {
        "scope": "declared-shopify-payments",
        "payment_currency": "USD",
        "payment_minor": 6000,
        "original_payout_minor": 9000,
        "payout_currency": "AUD",
        "refund_currency": "USD",
        "refund_minor": 2000,
        "refund_debit": {
          "currency": "AUD",
          "amount_minor": 3100,
          "reference": "SYNTHETIC-R-DEBIT-1",
          "order_id": "DEMO-O42",
          "refund_id": "DEMO-R7",
          "date": "2026-10-20"
        },
        "order_id": "DEMO-O42",
        "refund_id": "DEMO-R7",
        "payment_date": "2026-10-21",
        "refund_date": "2026-10-20"
      },
      "expected": "HOLD_RECORD_TIME",
      "interpretation": {
        "en": "Refund cannot precede the declared payment event.",
        "zh": "本例退款日期不能早于声明支付事件。"
      },
      "newIn1700": true,
      "actual": "HOLD_RECORD_TIME",
      "passed": true
    }
  ]
}
