blockAccount
@MessageMapping(value = ["block"] )
Block Account request/response RSocket API. Takes as argument an BlockedAccount encoded in ProtoBuf format in payload. In metadata takes the client path as String.
Deletes the already existing account and saves the account's MSISDN inside the database in order to not be able to register again.
Returns a HubPayload encoded in ProtoBuf format. In case the operation was successful the HubPayload contains a "success" string data. Else it contains error with the corresponding code. If there is already a blocked account with the same MSISDN it returns code 409
. In case there is no AccountEntity for the given MSISDN it returns code 400
.
Limitations
It is not possible to block an Account through public APIs. Only admins can block Accounts.