@wocart/storefront / review-media / ReviewSession
Interface: ReviewSession
Properties
eligibility
readonlyeligibility:ReviewEligibility
The order find proved, until reset.
Methods
find()
find(
proof):Promise<ReviewFindResult>
Prove the purchase with the order's number and the phone it was placed with.
Parameters
proof
orderNumber
string
phone
string
Returns
Promise<ReviewFindResult>
reset()
reset():
void
Forget the order and cancel what is still sending: the shopper changes order.
Returns
void
submit()
submit(
draft):Promise<ReviewSubmission>
Submit the review for one of the order's products.
Parameters
draft
Returns
Promise<ReviewSubmission>
upload()
upload(
file,options):ReviewUpload
Send one photo or voice note under the grant find got.
Parameters
file
Blob