Outbound generators:
- swift/mt760.ts: SBLC issuance (FIN Cat-7). 12-tag message built from
InstrumentTerms with deterministic messageHash() for planHash
anchoring. URDG 758 / UCP 600 aware.
- swift/pacs009.ts: FI-to-FI credit transfer (ISO 20022 XML,
pacs.009.001.08). Fixes the pacs.008 mis-routing flagged in the
gap-analysis (pacs.008 is customer-to-bank; pacs.009 is bank-to-bank).
BIC validation on all four agents.
- swift/mt202.ts: FIN equivalent of pacs.009 for non-migrated corridors.
32A amount formatted with SWIFT decimal comma.
Inbound parsers:
- swift/camt.ts: parseCamt025 (receipt / status), parseCamt054
(credit/debit notification), reconcileCamt054 (diffs amount, ccy,
direction, endToEndId so VALIDATING can feed mismatches into
Data.valueMismatch()), parseCamt dispatcher on xmlns marker.
Public surface in swift/index.ts documents channel selection:
pacs.008 stays on the PSP customer leg; pacs.009/MT202 is the
interbank leg; COMMIT requires camt.025 ACSC or camt.054 CRDT
(arch §9.2 accepted !== settled).
Tests: swift.test.ts — 14 cases covering the happy path, validation
errors (bad BIC, malformed date, negative amount, missing pay step),
determinism of messageHash, camt parser + reconciliation.
tsc clean. 74 tests pass across 6 suites.