-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Add support for Bizum transactions in Revolut #459
Conversation
WalkthroughThis pull request introduces the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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 (
|
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.
Thanks for this! One tiny nit before I can approve
Now it is in alphabetical order 😁 |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (3)
src/app-gocardless/bank-factory.js (3)
48-51
: Consider maintaining alphabetical order in thebanks
array.The new entries have been added to the
banks
array correctly. However, to improve readability and maintainability, consider movingRevolutRevolt21
beforeSandboxfinanceSfin0000
to maintain strict alphabetical order.Suggested change:
NbgEthngraaxxx, NorwegianXxNorwnok1, RevolutRevolt21, - SandboxfinanceSfin0000, + RevolutRevolt21, + SandboxfinanceSfin0000,
65-81
: Maintain strict alphabetical order inBANKS_WITH_LIMITED_HISTORY
.The new entries in the
BANKS_WITH_LIMITED_HISTORY
array are consistent with the existing naming convention. However, to improve readability and maintainability, consider reordering the entries to maintain strict alphabetical order.Suggested reordering:
export const BANKS_WITH_LIMITED_HISTORY = [ 'BANCA_AIDEXA_AIDXITMM', 'BANCA_PATRIMONI_SENVITT1', 'BANCA_SELLA_SELBIT2B', 'BANKINTER_BKBKESMM', 'BBVA_BBVAESMM', 'BRED_BREDFRPPXXX', 'CAIXABANK_CAIXESBB', 'CARTALIS_CIMTITR1', 'CESKA_SPORITELNA_LONG_GIBACZPX', 'COOP_EKRDEE22', 'DOTS_HYEEIT22', 'HYPE_BUSINESS_HYEEIT22', 'HYPE_HYEEIT2', 'ILLIMITY_ITTPIT2M', 'INDUSTRA_MULTLV2X', 'JEKYLL_JEYKLL002', 'LABORALKUTXA_CLPEES2M', // ... (rest of the array) ];
89-100
: Maintain alphabetical order for all entries inBANKS_WITH_LIMITED_HISTORY
.The new entries at the end of the
BANKS_WITH_LIMITED_HISTORY
array are consistent with the existing naming convention. However, to improve readability and maintainability, consider reordering all entries in the array to maintain strict alphabetical order.Suggested action:
Reorder all entries in theBANKS_WITH_LIMITED_HISTORY
array alphabetically, including both existing and new entries.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- src/app-gocardless/bank-factory.js (2 hunks)
🔇 Additional comments (2)
src/app-gocardless/bank-factory.js (2)
19-22
: LGTM: New imports added correctly.The new imports for
NbgEthngraaxxx
,RevolutRevolt21
, andSandboxfinanceSfin0000
have been added consistently with the existing import style and maintain alphabetical order.
85-87
: LGTM: Entries removed fromBANKS_WITH_LIMITED_HISTORY
.The removal of 'LUMINOR_NDEALT2X' and 'LUMINOR_RIKOEE22' from the
BANKS_WITH_LIMITED_HISTORY
array appears intentional and doesn't disrupt the array structure.
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.
Amazing, thank you!
In Spain, we have a protocol called Bizum that allows instant transactions via phone number. Revolut recently added support for these transactions, but the information displayed for them was a bit messy.
I fixed this by adding a Revolut integration, only modifying the Bizum transactions, as all other transactions were displayed correctly. I also added tests for these transactions.
Additionally, I fixed the transaction type, which was using
proprietaryBank
instead ofproprietaryBankTransactionCode
. As you can see here, this seems like an error. I didn't find any reference toproprietaryBank
in the code but did find some forproprietaryBankTransactionCode
, so this definitely looks like a mistake.I found this error because I initially intended to use
proprietaryBankTransactionCode
, but in the end, it wasn't necessary.