Rate My Delivery Flow
General summary
The main purpose of this document is, to provide information about how and when the Rate My Delivery service is available for usage. In this document will be described the business and technical perspective.
The Rate My Delivery/Service is a feedback collecting feature where the user can rate the service provided by ABI from one to five stars, leave a written comment and also if the rate is lower than 5 stars, user will be asked some questions about the experience, and can submit those answers. Some of those options can be configured by the migration team.
It depends on the user to have an Order in the status DELIVERED or PARTIAL_DELIVERED, regardless of whether the order was created by the app or any other channel.
Business Perspective
The Rate My Delivery/Service functionality is a feedback collecting pop up that is displayed every time the POC owner logs on BEES after there was an order delivered.
Every time that the owner logs on the application, the service will find the last order delivered that had at least one update in the last 30 days and check if it has already been rated, if not, the pop up will appear. At this point, the user has the option to rate the order, selecting the number of stars and then the comment, or to close the pop up, in both cases it will count as a rating, so if the user closes the pop up it will not appear again for that specific order, even if the app is closed and opened again.
These images below show an initial prototype of this feature, the appearance (questions/answers) can change depending on the configuration made.
Technical Perspective
The only dependencies that Rate My Delivery service, also known as rating-business-service, has with other features, is with the Order Service and Rating Service. So, when the user/owner opens the mobile or web application, the endpoint rating-business/orders/unrated is called, and depending on the response the pop up will be opened. But before that, the Rating Service, that is a generic rating microservice, must be configured for the case of rate orders.
Below are listed the features of Bees which should be populated with proper data for the Rate My Delivery to work as expected.