feat: SEPA, RiBa and bank statement file formats for treasury (#70 #71)

Remittances need files the banks accept and statements need readers for
reconciliation, without external libraries:

- SepaXmlWriter writes pain.001.001.09 credit transfers and pain.008.001.08
  direct debits (one PmtInf per sequence and collection date), reducing texts
  to the SEPA Latin set and refusing what a bank would reject.
- Camt053Reader reads any camt.053.001.xx by local names; CsvStatementReader
  reads home banking exports (UTF-8 or Windows-1252, Italian or English
  numbers) and guesses the layout from the header row.
- The Italian pack gains RibaCbiWriter (CBI Ricevute bancarie, 120-character
  records IB/14/20/30/40/50/51/70/EF) and CbiStatementReader (RH/61-64/EF).
- Tests validate the SEPA files against hand-written subsets of the ISO 20022
  schemas, to be replaced by the official XSDs when available.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-13 08:51:09 +01:00
1 parent b12dc79317
commit 5fbbe4d3a4
14 files changed
+3467

No files matched your search

@@ -8,4 +8,9 @@
<ProjectReference Include="../../src/Khaemhat.Core/Khaemhat.Core.csproj" />
</ItemGroup>
<!-- Hand-written subsets of the ISO 20022 schemas the SEPA files are validated against (no download). -->
<ItemGroup>
<None Include="Treasury\Schemas\*.xsd" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>