feat: beangulp-yapeal — beangulp importer for Yapeal CSV bank statements - #1
Merged
Conversation
3 tasks
borgoat
added a commit
that referenced
this pull request
Jul 24, 2026
- CI: publish.yaml's matrix never listed beangulp-yapeal, even though quints now hard-depends on it at runtime — the next release would ship quints with an unresolvable dependency. - init.py: `quints init --importers yapeal` never opened the yapeal bank account in accounts.bean; reproduced end-to-end (`quints check` fails with "unknown account" as soon as a drafted statement is booked). - importing.py: match_receivables() only rewrote the counter-leg account when a draft already had two postings. Yapeal's default (no rule-matched) draft has only the cash leg, so a receivable match flipped it to flag "*" without completing it — an unbalanced transaction that beancount rejects on load. Pre-existing latent bug, newly reachable via yapeal's caller; fixed to append the elided receivable posting. - Mechanical drift: stale "supported: ubs, wise, stripe" strings in init.py, cli.py help text, and getting-started.md; missing yapeal reminder in the AGENTS.md sample-data checklist. Yapeal-specific issues (the beangulp-yapeal package's own identify()/ extract() logic) are left for the PR author — see PR #1 review comments. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
YAPEAL (https://yapeal.ch/) is a Swiss fintech providing payment accounts and debit cards for SMEs. Account statements are available as CSV exports from the Yapeal e-banking app.
This PR adds a standalone
beangulp-yapealpackage and wires it into quints as quints import yapeal.packages/beangulp-yapeal/- new standalone packagequints integration
config.YapealImport- config section[import.yapeal]withaccount, optionaliban,currency, and payeerules.importing.run_yapeal()- full pipeline: identify → extract → dedup → legacy matching → receivable matching → staging file.quints import yapeal <statement.csv>- CLI command with --out, --json, and --file options.examples/statements/yapeal.csv.Quality gate: make check passes (all 183 tests, 2 pre-existing skipped; ruff, basedpyright, import-linter, deptry, vulture clean).
Maybe later looking into using the Yapeal APIs (https://yapeal.ch/en/yapeal-embedded/platform/developers-api/) for automated statement fetching.