@wocart/storefront / astro / OrderLookup
Type Alias: OrderLookup
OrderLookup = {
order:ShopperOrderStatus;status:"found"; } | {status:"invalid-number"; } | {status:"invalid-phone"; } | {status:"not-found"; } | {retryAfterSeconds:number|null;status:"rate-limited"; } | {status:"failed"; }
found— the order, as a shopper may see it.invalid-number— what was typed is not an order number; the server is not asked.invalid-phone— the server cannot read the phone as a phone number.not-found— no order has that number and phone; which of the two is wrong is never said.rate-limited— too many tries from this shopper or for this order; try again after the wait.failed— nothing the shopper can fix: try again later.