Wocart

@wocart/storefront v3.1.0


@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?

optional grant?: 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?

optional title?: string


uploads?

optional uploads?: string[]

uploadIds from upload().