MobileReorderResult
Result of re-adding a past order to the mobile cart. A summary, not a bare cart: reorder re-prices at today's catalogue and can skip a line, and a buyer who taps once must be told both.
type MobileReorderResult {
addedCount: Int!
cart: MobileCart!
mergedCount: Int!
priceChanged: [MobileReorderPriceChange!]!
skipped: [MobileListSkip!]!
}
Fields
MobileReorderResult.addedCount ● Int! non-null scalar
Lines merged onto the cart.
MobileReorderResult.cart ● MobileCart! non-null object
The cart after the reorder.
MobileReorderResult.mergedCount ● Int! non-null scalar
Of addedCount, how many were ALREADY in the basket and had their quantity topped up rather than being added fresh. Reordering the same order twice doubles those lines — the app must be able to say so, or a buyer silently ends up with 50 of a 25-unit line.
MobileReorderResult.priceChanged ● [MobileReorderPriceChange!]! non-null object
Lines that cost something different today.
MobileReorderResult.skipped ● [MobileListSkip!]! non-null object
Lines that could not be re-added at all — a free-text line, or a variant the catalogue no longer prices.
Returned By
reorderFromOrder mutation