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

refactor!: rework bulk handler validation #913

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

kleyow
Copy link
Contributor

@kleyow kleyow commented Aug 4, 2022

Rework bulk handler validator reasons string array to a FSPIOPError array to better specify error codes and descriptions.
Follow up PR for mojaloop/project#2800 mojaloop/project#2798

Test cases updated here mojaloop/testing-toolkit-test-cases#79

Breaking changes:
The FSPIOP api errors for invalid/inactive/non-existant FSP's for Bulk Transfers are now updated to be more descriptive.
They have been updated to

  • ErrorHandler.Enums.FSPIOPErrorCodes.PAYER_FSP_ID_NOT_FOUND - 3202
  • ErrorHandler.Enums.FSPIOPErrorCodes.PAYEE_FSP_ID_NOT_FOUND - 3203

If you have conditional logic based on error callbacks of POST /bulkTransfers you will need to update the error codes accordingly.

@kleyow kleyow changed the title refactor: rework bulk handler validation refactor!: rework bulk handler validation Aug 5, 2022
@kleyow kleyow marked this pull request as ready for review August 5, 2022 15:16
@elnyry-sam-k
Copy link
Member

Thanks Kevin, looks good..

just some suggestions on changes to error descriptions / messages..

Nice to capture additional errors as information in extension lists and adding new (specific) validation errors..

@kleyow
Copy link
Contributor Author

kleyow commented Aug 5, 2022

@elnyry-sam-k done

@kleyow kleyow merged commit 38d29fd into mojaloop:master Aug 5, 2022
@kleyow kleyow deleted the refactor/bulk-validation branch August 5, 2022 21:16
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.

2 participants