Package com.dzidzi.api
Interface PartnerRegistrationApi
public interface PartnerRegistrationApi
PartnerRegistrationApi contains all the api operations handling
PartnerRegistration in the DzidziApp.
This is the customer Api.-
Method Summary
Modifier and TypeMethodDescriptionaddReviewStatement(UUID id, String statement) Adds a review comment before moving toPartnerRegistrationState.WAITING_FOR_APPROVAL.addSignOffStatement(UUID id, String statement) Adds a review comment before moving toPartnerRegistrationState.APPROVEDorPartnerRegistrationState.REJECTED.changeState(UUID id, PartnerRegistrationState registrationState) Changes the state of the partner request.findPartnerRegistrations(FindPartnerRegistrationRequest findPartnerRegistrationRequest) Finds the paginated partner registrations based on the parameters.Finds a partner registration by id.registerCourierPartner(AddCourierRegistrationRequest addCourierRegistrationRequest) Registers a new courier partner request.registerRestaurantPartner(AddRestaurantRegistrationRequest addRestaurantRegistrationRequest) Registers a new courier partner request.
-
Method Details
-
getPartnerRegistrationById
Finds a partner registration by id.- Parameters:
id- the partner registration id- Returns:
- the partner registration found
- Throws:
com.dzidzi.exception.EntityNotFoundException- when the partner registration is not found
-
registerCourierPartner
PartnerRegistration registerCourierPartner(AddCourierRegistrationRequest addCourierRegistrationRequest) Registers a new courier partner request.- Parameters:
addCourierRegistrationRequest- theAddCourierRegistrationRequestto register as a courier partner- Returns:
- the newly created courier partner request
-
registerRestaurantPartner
PartnerRegistration registerRestaurantPartner(AddRestaurantRegistrationRequest addRestaurantRegistrationRequest) Registers a new courier partner request.- Parameters:
addRestaurantRegistrationRequest- theAddRestaurantRegistrationRequestto register as a restaurant partner- Returns:
- the newly created restaurant partner request
-
changeState
Changes the state of the partner request.- Parameters:
id- id of the requestregistrationState- the state to change the request to- Returns:
- the changed partner registration
-
addReviewStatement
Adds a review comment before moving toPartnerRegistrationState.WAITING_FOR_APPROVAL. The statement should entail steps you took to review the request and the requirements.- Parameters:
id- id of the requeststatement- the closing review statement- Returns:
- the updated request
-
addSignOffStatement
Adds a review comment before moving toPartnerRegistrationState.APPROVEDorPartnerRegistrationState.REJECTED. The statement should contain the reasons why the state was used.- Parameters:
id- id of the requeststatement- the closing sign off statement- Returns:
- the updated request
-
findPartnerRegistrations
DzidziPaginationDTO<PartnerRegistration> findPartnerRegistrations(FindPartnerRegistrationRequest findPartnerRegistrationRequest) Finds the paginated partner registrations based on the parameters.- Parameters:
findPartnerRegistrationRequest- the request containing the params to filter partner registrations on- Returns:
- the
DzidziPaginationDTO
-