-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed transaction dates in bank sync with MBANK_RETAIL_BREXPLPW
#4493
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
MBANK_RETAIL_BREXPLPW
MBANK_RETAIL_BREXPLPW
WalkthroughThe pull request introduces a new method Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)packages/sync-server/src/app-gocardless/banks/mbank_retail_brexplpw.js (1)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (2)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
👋 Hi! Could you share a snippet of the transaction data sent back by GoCardless please? Only the date information is really important so you can remove/redact anything else. |
Hi, thanks for your review, below I'm posting GoCardless API responses for example transactions from mBank Retail Poland ( mBank Retail
Revolut
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small tweak to the implementation to make it work with the bank sync mapping on the front end, other than that it looks good!
packages/sync-server/src/app-gocardless/banks/mbank_retail_brexplpw.js
Outdated
Show resolved
Hide resolved
Makes sense, thank you. |
…xplpw.js Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for this
I've noticed while syncing with mBank Retail Poland (
mbank_retail_brexplpw
), thatbookingDate
andvalueDate
are swapped in their API.When inspecting API response from gocardless,
bookingDate
would always come aftervalueDate
, so I fixed it per bank by overwritingnormalizeTransaction
method inpackages/sync-server/src/app-gocardless/banks/mbank_retail_brexplpw.js
.