-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat(mojaloop/#3904): add position event timeout reserved batch handling #1033
Conversation
// Enum.Accounts.TransferParticipantRoleType.PAYEE_DFSP, | ||
// Enum.Accounts.LedgerEntryType.PRINCIPLE_VALUE | ||
// ) | ||
// Is it safe using this value of the payee even accounting for the negative value? |
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.
🤔
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.
After dicussions this value is safe to use to revert the payer's position.
payeeFsp, | ||
payerFsp, | ||
metadata, | ||
headers, // Unsure what headers need to be passed here |
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.
🤔 couldn't tell from the non batch code what the headers for this are.
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.
The ml-api-adapter deals with notifying the payee and payer, so headers don't matter and the adapter will construct the proper headers!
https://github.com/mojaloop/ml-api-adapter/blob/main/src/handlers/notification/index.js#L545
As long as the to and from are the payer and payee, which they have been and the action is timeout-reserved ml adapter will notify both.
test/integration-override/handlers/positions/handlerBatch.test.js
Outdated
Show resolved
Hide resolved
Quality Gate failedFailed conditions |
feat(mojaloop/#3904): add position event timeout reserved batch handling