Skip to content
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

CAL - fetch pending transaction #794

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

galbarm
Copy link

@galbarm galbarm commented Jun 30, 2023

Fix #791

Pending transactions in CAL, are retrieved via a separate endpoint than the completed transactions.
Added a request to fetch pending transactions from the new endpoint.

@galbarm
Copy link
Author

galbarm commented Jun 30, 2023

fixes #791

@esakal
Copy link
Collaborator

esakal commented Jul 13, 2023

Hi @galbarm thanks for the contribution. I'll quickly play with it soon and if everything works i'll merge it. Thank you for your patience

@galbarm
Copy link
Author

galbarm commented Jul 31, 2023

@esakal any chance you find time for this?

@esakal
Copy link
Collaborator

esakal commented Aug 1, 2023

@galbarm sorry for the late response, my availability and access to the computer is small during Jule/Aug.
I'm merging it now
Thanks for the contribution!

@esakal
Copy link
Collaborator

esakal commented Aug 1, 2023

@eshaham I cannot merge it due to the CI checks for node v16

Can you please merge?

@eshaham
Copy link
Owner

eshaham commented Aug 1, 2023

@esakal, this is different - the v16 tests did not run because the branch has not taken the latest code from the master branch.
I think that merging from master should solve the issue.

@galbarm
Copy link
Author

galbarm commented Nov 22, 2023

@esakal @eshaham can this be merged?

@esakal
Copy link
Collaborator

esakal commented Dec 14, 2023

@eshaham I managed to merge a PR #811 but this one is still stuck on the checks. Please merge. hopefully new PRs will work also for me

@eshaham
Copy link
Owner

eshaham commented Dec 17, 2023

@esakal we need to resolve conflicts first, tried to take a look, but it was a bit confusing.

@galbarm
Copy link
Author

galbarm commented Dec 17, 2023

@esakal @eshaham
I can help with the conflicts. What would be the best way?
I can submit a new PR on top of current master. Will it help?

Copy link
Collaborator

@baruchiro baruchiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I solved the conflict, let's just solve the throw comment and continue.

Comment on lines 393 to 396
if (pendingData?.statusCode !== 1 && pendingData?.statusCode !== 96) throw new Error(`failed to fetch pending transactions for card ${card.last4Digits}. Message: ${pendingData?.title || ''}`);
if (!this.isCardPendingTransactionDetails(pendingData)) {
throw new Error('pendingData is not of type CardTransactionDetails');
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we should throw when the pending transactions phase is failed.

Most of the users want the transactions even without the pendings.

@baruchiro
Copy link
Collaborator

Hi @galbarm, Call for Code Owners

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CAL scraper should retrieve pending transcations
4 participants