Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / REVIEW_REFUSAL_CODES

Variable: REVIEW_REFUSAL_CODES

const REVIEW_REFUSAL_CODES: readonly ["VALIDATION_FAILED", "ORDER_NOT_FOUND", "REVIEWS_DISABLED", "REVIEW_ORDER_NOT_DELIVERED", "REVIEW_RATE_LIMITED", "ORDER_ALREADY_REVIEWED", "PRODUCT_NOT_IN_ORDER", "REVIEW_UPLOAD_GRANT_INVALID", "REVIEW_UPLOAD_NOT_FOUND", "REVIEW_MEDIA_LIMIT", "INVALID_FILE_TYPE", "FILE_TOO_LARGE"]

Every code the server refuses a review step with. A newer server may send another; a form then shows its general sentence.

  • VALIDATION_FAILED: the order number is not one (isOrderNumber), or the text is too short without a voice note.
  • ORDER_NOT_FOUND: no order has this number and phone — the same answer for either being wrong.
  • REVIEWS_DISABLED: the store takes no reviews.
  • REVIEW_ORDER_NOT_DELIVERED: the order has not reached the shopper yet.
  • REVIEW_RATE_LIMITED: too many attempts for this order; try in a minute.
  • ORDER_ALREADY_REVIEWED: this product was reviewed from this order.
  • PRODUCT_NOT_IN_ORDER: the product is not one the order kept.
  • REVIEW_UPLOAD_GRANT_INVALID: the permission to send files expired; find the order again.
  • REVIEW_UPLOAD_NOT_FOUND: a file the review names never arrived.
  • REVIEW_MEDIA_LIMIT: more photos or voice notes than the store takes.
  • INVALID_FILE_TYPE: not a photo or a voice note the store reads.
  • FILE_TOO_LARGE: the file is over the store's size.