Przejdź do głównej zawartości

Enums overview

📄️ CartStatus

Cart lifecycle status. ACTIVE and RECOVERED are editable carts. ABANDONED flags a cart the buyer left inactive (used for recovery campaigns) — it is not locked: a deliberate buyer action revives it in place to RECOVERED and the mutation proceeds. RECOVERED is a previously-abandoned cart the buyer came back to (via a recovery link or by acting on it again). CONVERTED carries an associated completedOrder; query that to redirect the buyer to their order confirmation, since editing a converted cart returns CartErrorCode.ALREADYCOMPLETED. EXPIRED is past its lifetime with no order; editing it returns CartErrorCode.CARTNOT_FOUND — create a fresh cart.

📄️ CustomerAccountStatus

Account state right after signup. ACTIVE — the buyer is signed in (customerAccessToken present). PENDING_APPROVAL — the store verifies new accounts manually; no token is issued and login is refused until the store approves the account (show pendingApprovalMessage). PENDING_EMAIL_CONFIRMATION — the e-mail already belongs to a customer of this store without an account (newsletter subscriber, guest buyer): a link went to that address and the account is created once the buyer opens it and enters the same password; no token is issued (show emailConfirmationMessage).