Skip to content

be: read what public samples show of air bank and fio, english fio included - #43

Merged
landsman merged 1 commit into
mainfrom
myinvoice-known
Nov 10, 2026
Merged

landsman merged 1 commit into
mainfrom
myinvoice-known

Conversation

@landsman

Copy link
Copy Markdown
Owner

Takes what radekhulan/myinvoice's samples (MIT) show of the two verified banks and this library did not read yet. Both keep their pinned keys: a template from samples that does not match a real e-mail is Unparsed, never misread.

Fio

  • English notices, a second template beside the Czech one: Fio banka - new income / new expense on account, the balance of account … has increased by CZK 1.00 on 10/25/2026 at 10:37., currency first, a comma between thousands, month first. A Fio client reported English on some accounts, Czech on others (myinvoice#291). The parser now holds each language as a description (subjects, sentence, labels, money, date) and reads both the same way.
  • Fio banka - zmena zustatku as a subject of the Czech template; it states no direction, so the sentence alone does.
  • Dates with spaces and without leading zeros (1. 9. 2026 v 8:05); Odchozí platba as a transfer.
  • Fio banka - vydaj na konte, the short format's outgoing twin, refused as UNSUPPORTED_FORMAT like the incoming one.

Air Bank

  • Thousands with a plain space between them (9 500,00 CZK), in the amount and the balance; a no-break space stays Unparsed. air bank: read amounts of 1 000 CZK and more #5 stays open until a real e-mail of 1 000 or more.
  • The recipient's name on an outgoing line when the bank prints it; EUR accounts (already read, now tested).

The existing tests, built on real e-mails, pass unchanged but two that asserted 1 000,00 refused, now asserting a no-break space refused. All 13 real e-mails read as before. Four breaks each fail a test: the English date read day first, the subject not compared with the sentence, the outgoing short format not recognised, the recipient's name not read. make build: green.

@landsman
landsman merged commit 5e44dc4 into main Nov 10, 2026
5 checks passed
@landsman
landsman deleted the myinvoice-known branch November 10, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant