CreateProductReviewProps
Properties to add review.
interface CreateProductReviewProps {
email?: string;
name?: string;
productId: number;
rating?: ReviewRating;
status?: ReviewStatus;
text?: string;
title: string;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
email | Optional | string | The email of the reviewer. Must be a valid email, or an empty string. |
name | Optional | string | The name of the reviewer. |
productId | Required | number | An id of the product |
rating | Optional | ReviewRating | The rating of the product review. Must be one of 0, 1, 2, 3, 4, 5. |
status | Optional | ReviewStatus | The status of the product review. Must be one of approved, disapproved or pending. |
text | Optional | string | The text for the product review. |
title | Required | string | The title for the product review. |