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

feat(mojaloop/#3904): add position event timeout reserved batch handling #1033

Merged
merged 10 commits into from
May 17, 2024

Conversation

kleyow
Copy link
Contributor

@kleyow kleyow commented May 14, 2024

feat(mojaloop/#3904): add position event timeout reserved batch handling

// 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?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔

Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@kleyow kleyow marked this pull request as ready for review May 14, 2024 11:11
Copy link

sonarcloud bot commented May 17, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
39.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@kleyow kleyow merged commit 0b6606a into feat/fx-impl May 17, 2024
11 of 13 checks passed
@kleyow kleyow deleted the feat/#3904 branch May 17, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants