Package com.dzidzi.api
Interface ServiceResponseApi
public interface ServiceResponseApi
ServiceResponseApi contains all the api operations handling
ServiceResponse in the DzidziApp.-
Method Summary
Modifier and TypeMethodDescriptioncreateResponse(AddServiceResponseRequest addServiceResponseRequest) Adds/create a new response by the logged in customer service user.findServiceResponses(FindResponseRequest findResponseRequest) Finds the paginated responses based on the request.getResponseById(UUID responseId) Finds a service response by id.voidremoveResponse(UUID responseId) Deletes a response by the given id.
-
Method Details
-
getResponseById
Finds a service response by id.- Parameters:
responseId- the response id- Returns:
- the service response found
- Throws:
com.dzidzi.exception.EntityNotFoundException- when the service response is not found
-
createResponse
Adds/create a new response by the logged in customer service user.- Parameters:
addServiceResponseRequest- theAddServiceResponseRequestcontaining the properties to create/add a new response- Returns:
- the response created/added
-
findServiceResponses
Finds the paginated responses based on the request.- Parameters:
findResponseRequest- the request containing the params to filter responses on- Returns:
- the
DzidziPaginationDTO
-
removeResponse
Deletes a response by the given id.- Parameters:
responseId- the response id
-