Class AddCustomerReviewRequest

java.lang.Object
com.dzidzi.dto.customerReview.AddCustomerReviewRequest

public class AddCustomerReviewRequest extends Object
AddCustomerReviewRequest represents the DTO request containing the objects used to create a new review.
  • Constructor Details

    • AddCustomerReviewRequest

      public AddCustomerReviewRequest()
    • AddCustomerReviewRequest

      @ConstructorProperties({"restaurant","courier","rating","comment"}) public AddCustomerReviewRequest(UUID restaurant, UUID courier, Integer rating, String comment)
      Creates a new AddCustomerReviewRequest instance.
      Parameters:
      restaurant - The id of the restaurant that the user wants to review
      courier - The id of the courier that the user wants to review
      rating - The rating for the restaurant/courier
      comment - The comment you'd like to add
  • Method Details

    • builder

      public static AddCustomerReviewRequest.Builder builder()
    • getRestaurant

      public UUID getRestaurant()
      The id of the restaurant that the user wants to review
    • getCourier

      public UUID getCourier()
      The id of the courier that the user wants to review
    • getRating

      public Integer getRating()
      The rating for the restaurant/courier
    • getComment

      public String getComment()
      The comment you'd like to add