{
  "version": 1,
  "fictional": true,
  "software": "Chase checking and cards",
  "title": "A card payment changes liability, not the purchase total",
  "canonicalPage": "https://levelcfo.com/guides/software-integration/chase/",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "fields": [
    "All rows are fictional teaching data in USD, not a customer statement or native Chase schema.",
    "liability_delta increases amounts owed when positive and reduces amounts owed when negative. opening_liability is 1,000.",
    "operating_cost_candidate is a teaching classification for purchases and fees only; it does not decide capitalization, business purpose or tax treatment. Checking settlement is supplied separately."
  ],
  "calculation": "Card movement is 600 + 20 - 800 = -180, so closing liability is 1,000 - 180 = 820. Purchase/fee candidates total 620. Adding the 800 settlement again would turn 620 into an unsupported 1,420 cost figure.",
  "files": [
    {
      "filename": "card-bridge.csv",
      "sha256": "b28479724ed1672f51396f162f7f78df028cc7ec78f0836bfb9ab7757f5c1772"
    },
    {
      "filename": "checking.csv",
      "sha256": "e4ae8fd8594b80d3db5aea004ebcd12936e26bba794af90f37c5132054b5dfbc"
    },
    {
      "filename": "controls.csv",
      "sha256": "279faaa682c2ad50c300c25c3bd4e63f2fdbfaf198805aef30fc8ec766d3c1fe"
    }
  ],
  "checks": [
    {
      "id": "card_movement",
      "operation": "sum",
      "expected": -180,
      "file": "card-bridge.csv",
      "field": "liability_delta"
    },
    {
      "id": "purchase_fee_candidates",
      "operation": "sum",
      "expected": 620,
      "file": "card-bridge.csv",
      "field": "operating_cost_candidate"
    },
    {
      "id": "checking_payment",
      "operation": "sum",
      "expected": -800,
      "file": "checking.csv",
      "field": "amount"
    },
    {
      "id": "card_payment",
      "operation": "sum",
      "expected": -800,
      "file": "card-bridge.csv",
      "field": "liability_delta",
      "filter": {
        "field": "event_kind",
        "equals": "payment"
      }
    },
    {
      "id": "payment_difference",
      "operation": "difference",
      "expected": 0,
      "operands": [
        "checking_payment",
        "card_payment"
      ]
    },
    {
      "id": "opening_liability",
      "operation": "sum",
      "file": "controls.csv",
      "field": "value",
      "expected": 1000
    },
    {
      "id": "closing_liability",
      "operation": "sumMetrics",
      "operands": [
        "opening_liability",
        "card_movement"
      ],
      "expected": 820
    }
  ],
  "expectedResults": [
    {
      "label": "Card liability movement",
      "value": -180,
      "unit": "USD",
      "meaning": "Closing liability falls by 180.",
      "checkId": "card_movement"
    },
    {
      "label": "Closing liability",
      "value": 820,
      "unit": "USD",
      "meaning": "Opening 1,000 plus movement -180.",
      "checkId": "closing_liability"
    },
    {
      "label": "Purchase and fee candidates",
      "value": 620,
      "unit": "USD",
      "meaning": "Still subject to accounting classification.",
      "checkId": "purchase_fee_candidates"
    },
    {
      "label": "Checking payment",
      "value": -800,
      "unit": "USD",
      "meaning": "Linked settlement reduces card liability, not another purchase.",
      "checkId": "checking_payment"
    }
  ],
  "nextDecision": "Review the classification of purchases and fees, and validate the supplied payment link with original evidence in a real case. A zero payment difference alone would not establish that link."
}
