{
  "version": 2,
  "description": "Prepared canonicalization examples, not complete ingestion requests. Creditor repair remains version 2.",
  "cases": [
    {
      "name": "client_metadata", "table": "clients",
      "payload": {"client_id": "C-1", "name": "Alice", "is_company": false, "info": {"score": 1.25, "deleted": null, "labels": [null, "é"]}},
      "canonical_json": "{\"data\":{\"client_id\":\"C-1\",\"info\":{\"labels\":[null,\"é\"],\"score\":\"1.25\"},\"is_company\":false,\"name\":\"Alice\"},\"table\":\"clients\",\"version\":2}",
      "content_hash": "2d0fe1306d6e1074d08b6c3d4664f3377ebaddb38777bf73cc960b2053d8ad92"
    },
    {
      "name": "operation_money", "table": "operations",
      "payload": {"operation_id": "O-1", "disbursement_id": "D-1", "operation_name": "Harvest", "operation_revenue": 10.255, "info": {"note": " kept "}},
      "canonical_json": "{\"data\":{\"disbursement_id\":\"D-1\",\"info\":{\"note\":\" kept \"},\"operation_id\":\"O-1\",\"operation_name\":\"Harvest\",\"operation_revenue\":\"10.26\"},\"table\":\"operations\",\"version\":2}",
      "content_hash": "6a842f394f400409f19959e0f5d3c2f7b689ba9b064c67e19e5fce1b2775abb5"
    },
    {
      "name": "payment_resolved", "table": "payments",
      "payload": {"payment_id": "P-1", "disbursement_id": "D-1", "client_id": "C-1", "payment_total": 10.255, "payment_date": "2026-01-01T01:00:00+01:00"},
      "canonical_json": "{\"data\":{\"client_id\":\"C-1\",\"disbursement_id\":\"D-1\",\"payment_date\":\"2026-01-01T00:00:00Z\",\"payment_id\":\"P-1\",\"payment_total\":\"10.26\",\"source\":\"client\"},\"table\":\"payments\",\"version\":2}",
      "content_hash": "ebf1d6b81d314eda39c89e12acf1d79b2d8c06ad1b3620801d68cbbfe40eb026"
    },
    {
      "name": "loan_default_creditor", "table": "disbursements",
      "payload": {"disbursement_id": "D-1", "kind": "loan", "client_id": "C-1", "disbursement_amount": 10.255, "is_pledged": true, "pledge_creditor": "CMK Capital"},
      "canonical_json": "{\"data\":{\"client_id\":\"C-1\",\"disbursement_amount\":\"10.26\",\"disbursement_id\":\"D-1\",\"gross_value\":\"10.26\",\"insurer_coverage\":\"0.9\",\"is_pledged\":true,\"kind\":\"loan\",\"pledge_creditor\":\"CMK Capital\",\"upfront_fee\":\"0.00\"},\"table\":\"disbursements\",\"version\":2}",
      "content_hash": "879dd0b9c9e50c01af7eee66e8e5b226eb7afe3bf16ae6185ad50b48aa9b50fb"
    },
    {
      "name": "purchase_custom_creditor", "table": "disbursements",
      "payload": {"disbursement_id": "D-2", "kind": "purchase", "disbursement_amount": 10, "is_pledged": true, "pledge_creditor": "Other Bank", "purchase_clients": [{"client_id": "C-2"}, {"client_id": "C-1"}]},
      "canonical_json": "{\"data\":{\"disbursement_amount\":\"10.00\",\"disbursement_id\":\"D-2\",\"gross_value\":\"10.00\",\"insurer_coverage\":\"0.9\",\"is_pledged\":true,\"kind\":\"purchase\",\"pledge_creditor\":\"Other Bank\",\"purchase_clients\":[{\"client_id\":\"C-1\"},{\"client_id\":\"C-2\"}],\"upfront_fee\":\"0.00\"},\"table\":\"disbursements\",\"version\":2}",
      "content_hash": "f0321caa1240596b722f3701d05de5a3c991c2a9b27b63bfe7dc801aecbd740e"
    }
  ]
}
