@wocart/storefront / index / ReviewInput
Interface: ReviewInput
The body products.reviews.submit() accepts: the order number and the phone
it was placed with prove the purchase, and the server owns every other rule
(a delivered order, one review per product of it, moderation).
Properties
body
body:
string
At least 10 characters, unless a voice note is attached.
grant?
optionalgrant?:string
The grant from eligibility(), when files are attached.
orderNumber
orderNumber:
string
phone
phone:
string
The phone the order was placed with.
productId
productId:
string
rating
rating:
number
1–5, the server validates the range.
title?
optionaltitle?:string
uploads?
optionaluploads?:string[]
uploadIds from upload().