As aDFSP, I want to add a Front-End User to a block list temporarily or until I decide to remove them, so that I can prevent the user from transacting through the Mojaloop Hub when they threaten the safety and security of the ecosystem or if the customer's account has been compromised.
Acceptance criteria
[ ] If the user is already on the block list, inform the DFSP with the appropriate error message.
[ ] If the user is not on the blocklist, the user is added to the blocklist and an appropriate message is returned to the DFSP.
[ ] Verify that the user's entry in the blocklist contains a valid reason.
[ ] Verify that the action is audit logged
Verify that the user's status on the blocklist is one of the following:
[ ] Indefinite (the user will remain on the blocklist until removed
[ ] Limited (the user will remain on the blocklist for a specific duration; the time at which the block period will expire is also recorded on the blocklist)
Verify that the user's block type on the blocklist is one of the following:
Story Title
As a DFSP, I want to add a Front-End User to a block list temporarily or until I decide to remove them, so that I can prevent the user from transacting through the Mojaloop Hub when they threaten the safety and security of the ecosystem or if the customer's account has been compromised.
Acceptance criteria
[ ] If the user is already on the block list, inform the DFSP with the appropriate error message.
[ ] If the user is not on the blocklist, the user is added to the blocklist and an appropriate message is returned to the DFSP.
[ ] Verify that the user's entry in the blocklist contains a valid reason.
[ ] Verify that the action is audit logged
Verify that the user's status on the blocklist is one of the following:
[ ] Indefinite (the user will remain on the blocklist until removed
[ ] Limited (the user will remain on the blocklist for a specific duration; the time at which the block period will expire is also recorded on the blocklist)
Verify that the user's block type on the blocklist is one of the following:
[ ] Making payments
[ ] Receiving payments
[ ] Both making and receiving payments
[ ] Total block on all Mojaloop Hub functions