Repository navigation
Conversation
Signed-off-by: Jason Farrar <farrar.jason1@gmail.com>
Signed-off-by: Jason Farrar <farrar.jason1@gmail.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Outstanding review findings include a committed dev scratch file with hard-coded absolute paths and a Santander UK table config mismatch where regex_groups expects a third capture group not present in string_pattern, risking malformed dates that impact downstream year inference.
2 open issues
What changed in this PR
Adds an initial (alpha) import configuration for Santander UK Edge Current Account statements and documents the new support.
Changes:
- Added Santander UK TOML configs for company detection, account/product mapping, statement types, and table extraction.
- Extended standard field mappings to translate extracted Santander values into the project’s standard schema.
- Updated documentation to list Santander UK Edge Current Account support and expand the new-bank-config guide.
| File | Description |
|---|---|
| src/bank_statement_parser/project/config/import/standard_fields.toml | Adds/updates standard schema mappings for Santander-extracted header and transaction fields, including transaction date handling. |
| src/bank_statement_parser/project/config/import/SANTANDER_UK/statement_types.toml | Defines the Santander statement type workflow and ties it to the appropriate header/table extraction configuration. |
| src/bank_statement_parser/project/config/import/SANTANDER_UK/statement_tables.toml | Introduces Santander-specific table extraction specs for summary/header values and transaction line items. |
| src/bank_statement_parser/project/config/import/SANTANDER_UK/companies.toml | Adds Santander company identification configuration (page region + identifier pattern) for statement detection. |
| src/bank_statement_parser/project/config/import/SANTANDER_UK/accounts.toml | Adds the Santander Edge Current Account product configuration and links it to the new statement type. |
| src/bank_statement_parser/dev.py | Updates the local developer scratch script used for ad-hoc parsing/testing runs. |
| docs/index.md | Updates documentation to include Santander UK Edge Current Account in the supported banks list. |
| docs/guides/new-bank-config.md | Extends the new bank configuration guide with an updated example reflecting Santander-related standard field mapping. |
Review effort: Balanced
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
Signed-off-by: Jason Farrar <farrar.jason1@gmail.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.


Initial Santander Edge current account config.
Caveats:
If you have a Santander Edge account, please test and give feedback!