Alokai

CreateProductReviewProps

Properties to add review.

interface CreateProductReviewProps {
	email?: string;
	name?: string;
	productId: number;
	rating?: ReviewRating;
	status?: ReviewStatus;
	text?: string;
	title: string;
}

Properties

NameRequiredTypeDescription
emailOptionalstringThe email of the reviewer. Must be a valid email, or an empty string.
nameOptionalstringThe name of the reviewer.
productIdRequirednumberAn id of the product
ratingOptionalReviewRatingThe rating of the product review. Must be one of 0, 1, 2, 3, 4, 5.
statusOptionalReviewStatusThe status of the product review. Must be one of approved, disapproved or pending.
textOptionalstringThe text for the product review.
titleRequiredstringThe title for the product review.

Referenced Types

On this page