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(mbp/#286): add simulator rule to trigger patch transferState=aborted notification #138

Merged
merged 17 commits into from
May 17, 2022

Conversation

gibaros
Copy link
Contributor

@gibaros gibaros commented May 3, 2022

This PR adds to the POST /transfers Swagger definition 3 new fields on its response; fulfilment, transferState or completedTimestamp to enable automation of negative scenarios. Now mojaloop-simulator can add rules where any of these 3 fields can be overriden to trigger negative scenarios. The negative scenario of interest and the one enabled by the POST /transfers rule added on this PR is in the case an invalid fulfilment is returned by the backend so it can be relayed by the mojaloop-connector to the Mojaloop Hub so upon fulfilment validation fails and triggers a PATCH transferState=ABORTED notification.

@gibaros gibaros changed the title Add simulator rule to trigger patch aborted notification Add simulator rule to trigger patch transferState=aborted notification May 3, 2022
@gibaros gibaros changed the title Add simulator rule to trigger patch transferState=aborted notification Add simulator rule to trigger patch notification transferState is ABORTED May 13, 2022
@gibaros gibaros changed the title Add simulator rule to trigger patch notification transferState is ABORTED feat(mbp/#286): Add simulator rule to trigger patch transferState=aborted notification May 13, 2022
@gibaros gibaros changed the title feat(mbp/#286): Add simulator rule to trigger patch transferState=aborted notification feat(mbp/#286): add simulator rule to trigger patch transferState=aborted notification May 17, 2022
Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

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

Looks ok except for the version bump.

src/package.json Outdated Show resolved Hide resolved
@gibaros gibaros requested a review from mdebarros May 17, 2022 13:50
src/rules.json Outdated Show resolved Hide resolved
@gibaros gibaros requested a review from mdebarros May 17, 2022 14:46
@gibaros gibaros merged commit d4a407a into master May 17, 2022
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.

3 participants