Files
FiscusPublic/fixtures/notifications/README.md
T

23 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Bank notification samples (Android)
Real, **redacted** notifications only, one folder per bank (`fixtures/notifications/<bank>/`), one JSON file
per notification:
```json
{
"app": "cz.example.bank",
"title": "the notification's title, exactly",
"text": "the notification's text, exactly",
"expected": { "amount": -12950, "merchant": "ALBERT", "card": "*1234" }
}
```
`expected` is `null` for a notification from the bank app that is not a card payment (a balance, a login, an
incoming transfer); it must stay unknown. `amount` is in haléře, negative for a payment.
Redact names, card numbers and balances, but keep every other character: spaces, no-break spaces, the
currency sign and the punctuation are exactly what a template is written from. 3–5 payments per bank app,
plus one or two that are not payments. A template (`fiscus-capture/src/notification.rs`, `TEMPLATES`) is
written only from the samples here; a bank app with no samples is unsupported, and its notifications are
counted as unrecognised, never guessed.