-
Notifications
You must be signed in to change notification settings - Fork 165
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
fix(isracard): use the correct value for originalCurrency
#871
fix(isracard): use the correct value for originalCurrency
#871
Conversation
originalCurrency
originalCurrency
@baruchiro / @eshaham / @esakal Can you please review? Thanks! |
I know it sounds lazy, but I feel I need more focus to understand it (because I'm taking these reviews sometimes from my phone between things). Can you edit the description with a "before and after" example, so the change will be thrown דוך to my eyes? |
@galbarm @daniel-hauser Can you check if in your Dollar transactions there is a mistake? I'm not paying with my Isracard on Dollars. |
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.
It's been approved, but I prefer someone who will reproduce this issue and approve your fix.
@daniel-hauser I"m not sure if this is ok or not the amount is in $ but the currency is nis. this is the outcome of the test is this what you expected? Note that with this change for transactions whose original currency is ILS, the returned value for the original currency is now empty instead of ILS. this is intentionally? |
@esakal Can you share the following values from your transaction (in the isracard website)?
|
🎉 This PR is included in version 5.1.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Transactions in isracard has the wrong
originalCurrency
.The correct mapping of the currencies should be:
Attached is an example transaction that should have
originalCurrency: "USD", chargedCurrency: "ILS"
but before the code in this PR it'soriginalCurrency: "ILS"
with nochargedCurrency
The isracard transaction object:
The israeli-bank-scrapers transaction object (diff before and after the change):