Skip to content

feature-order advanced

Everything else the package exports, for when you go beyond its components and hooks, such as your own queries or cache updates. Most projects never need these.

Contexts6
OrderContextThe context OrderProvider fills.
@evolve-storefront/feature-order/context
useOrderContextRead the injected auth/session/mode context.
@evolve-storefront/feature-order/context
useOrderScopeDerive the read scope from the injected mode.
@evolve-storefront/feature-order/context
orderDefaultsWhat the context holds without an OrderProvider: a signed-out consumer, gross prices.
@evolve-storefront/feature-order/context
OrderContextValueInjected auth/session/mode seam for the order feature.
@evolve-storefront/feature-order/context
OrderModeConsumer (personal history) vs business (company-scoped) — config, not a fork.
@evolve-storefront/feature-order/context
GraphQL documents17
GetBusinessOrderOne of a business unit's orders, by order number.
@evolve-storefront/feature-order/queries
GetBusinessOrderDeliveryPlanThe slot or pickup point chosen for one of a business unit's orders.
@evolve-storefront/feature-order/queries
GetBusinessOrderPaymentMethodsThe payment methods a business unit's unpaid order can be paid with.
@evolve-storefront/feature-order/queries
GetBusinessOrdersA business unit's orders, paged, with search and status filters.
@evolve-storefront/feature-order/queries
GetBusinessOrderStatusCountsHow many of a business unit's orders each status holds, under a search and date range.
@evolve-storefront/feature-order/queries
GetCustomerOrderOne of the signed-in customer's orders, by order number.
@evolve-storefront/feature-order/queries
GetCustomerOrderDeliveryPlanThe slot or pickup point chosen for one of the buyer's own orders.
@evolve-storefront/feature-order/queries
GetCustomerOrderPaymentMethodsThe payment methods offered for this order.
@evolve-storefront/feature-order/queries
GetCustomerOrdersThe signed-in customer's orders, paged, with search and status filters.
@evolve-storefront/feature-order/queries
OrderConfirmationByIdThe order a thank-you page confirms, by its public id, and the session's business unit beside it in one round trip — Order names none, and the buyer reading the confirmation is the session that just placed it.
@evolve-storefront/feature-order/queries
OrderLookupByIdThe session's order by id: its own, or one of its business unit's.
@evolve-storefront/feature-order/queries
OrderLookupByNumberThe session's order by order number: its own, or one of its business unit's.
@evolve-storefront/feature-order/queries
OrderLookupByPublicIdAny order by its public id, which is its own id, without signing in.
@evolve-storefront/feature-order/queries
OrderLookupBySignedLinkThe order a signed link names, such as the one in a confirmation mail.
@evolve-storefront/feature-order/queries
OrderPaymentCreateStart a payment against an order that already exists — not a checkout.
@evolve-storefront/feature-order/queries
OrderPaymentMethodsByPublicIdThe payment methods for any order by its public id, without signing in.
@evolve-storefront/feature-order/queries
OrderPaymentMethodsBySignedLinkThe payment methods for the order a signed link names.
@evolve-storefront/feature-order/queries
Data and cache helpers8
invalidateOrdersInvalidate every list cache for a scope (all pages / searches).
@evolve-storefront/feature-order
isOrderRevisableWhether this order can be put back into a basket.
@evolve-storefront/feature-order
negateNegate an amount (refunds / deductions render as negative lines).
@evolve-storefront/feature-order
orderLinesToAddThe lines to put an order in a cart again with: each line's SKU at its quantity, as feature-cart's CartAddLinesButton takes them.
@evolve-storefront/feature-order
paymentReturnUrlsThe three return URLs, all one absolute arrival point: the provider picks one and the backend appends what happened, so one route reads one set of parameters.
@evolve-storefront/feature-order
resolvePaymentReturnResolve the query a provider return carries.
@evolve-storefront/feature-order
CURRENT_ORDER_STATUSESThe states of an order still on its way to the buyer: pass to useOrders({ status }) for an overview's current orders.
@evolve-storefront/feature-order
orderKeysreact-query key factory for the order history + detail caches.
@evolve-storefront/feature-order
Errors7
OrderCancelErrorThe gateway refused to close the order.
@evolve-storefront/feature-order/hooks
OrderPaymentErrorThe gateway refused to start the payment.
@evolve-storefront/feature-order/hooks
OrderPaymentNotConfiguredErrorOrderProvider was given no returnUrls, so the provider has nowhere to send the buyer back to.
@evolve-storefront/feature-order/hooks
OrderPaymentOutcomeMissingErrorThe payment was created and the gateway said nothing about what happens next.
@evolve-storefront/feature-order/hooks
OrderReviseCartMissingErrororderRevise reported success and named no cart.
@evolve-storefront/feature-order/hooks
OrderReviseErrorThe gateway refused to reopen the order.
@evolve-storefront/feature-order/hooks
ProductReviewErrorThe gateway refused the review, such as a line already reviewed or not delivered.
@evolve-storefront/feature-order/hooks
Other functions and constants12
countsByStatus[{ status, count }] as a record by status; null stays null.
@evolve-storefront/feature-order/queries
readOrderRead one order without knowing its scope, on the server or in a hook.
@evolve-storefront/feature-order/queries
readOrderConfirmationThe order a thank-you page confirms, for a guest as much as a signed-in buyer: read by its id as a public id, with the session's business unit for a link into the company's history.
@evolve-storefront/feature-order/queries
readOrderPaymentMethodsThe payment methods for an order a guest can name: by its public id, or by a signed link, which needs no session.
@evolve-storefront/feature-order/queries
followPayOrderResultRun the option matching result; nothing without options.
@evolve-storefront/feature-order/hooks
readPayOrderResponseTurn paymentCreate's response into an outcome or a throw.
@evolve-storefront/feature-order/hooks
readReviseOrderResponseTurn orderRevise's response into a cart or a throw.
@evolve-storefront/feature-order/hooks
reviseFailureRead the backend's refusal into a reason, so the page says why instead of guessing.
@evolve-storefront/feature-order/hooks
readProductReviewFormThe review form's values, or the fields that are wrong: the rating is required, from 1 to 5, the title and text have the server's length limits, and the photos are at most five images.
@evolve-storefront/feature-order/order-detail
orderDateRangeTurn the two calendar days a date input produces into the inclusive instants the query takes.
@evolve-storefront/feature-order/order-history
parseOrderHistoryParamsRead the history's filters from search params, rejecting what the query cannot take: a status outside statuses is dropped rather than sent, because an unknown enum value fails the whole request.
@evolve-storefront/feature-order/order-history
ORDER_HISTORY_STATUSESThe spine of an order's life, plus cancelled.
@evolve-storefront/feature-order/order-history
Types61
FoundOrderAn order readOrder found, with the session's business unit when the order was found through it — Order names no business unit of its own.
@evolve-storefront/feature-order
IncotermThe delivery terms of an export (schema IncotermType), verbatim.
@evolve-storefront/feature-order
MoneyMoney (schema Money): minor units + ISO currency.
@evolve-storefront/feature-order
OrderFull order (schema Order) for the detail view.
@evolve-storefront/feature-order
OrderAddressAddress as displayed on an order (subset of schema Address).
@evolve-storefront/feature-order
OrderApprovalHoldThe approval flow holding an order, when one is (schema OrderApproval).
@evolve-storefront/feature-order
OrderCarrierWho delivers (schema Carrier).
@evolve-storefront/feature-order
OrderClientDeviceWhich client is asking, since the offered methods differ by it (schema ClientDeviceType).
@evolve-storefront/feature-order
OrderDeliveryA shipment of (part of) an order (schema OrderDelivery).
@evolve-storefront/feature-order
OrderDeliveryItemOne line item's share of a delivery (schema OrderDeliveryItem).
@evolve-storefront/feature-order
OrderDeliveryPlanHow the buyer chose to receive the order: a slot, a pickup point, or neither.
@evolve-storefront/feature-order
OrderDeliverySlotThe delivery slot chosen in checkout, as it was when the order was placed.
@evolve-storefront/feature-order
OrderDeliveryStatus
@evolve-storefront/feature-order
OrderDiscountCodeAn applied discount code (schema OrderDiscountCode).
@evolve-storefront/feature-order
OrderLineItemAn order line item (schema OrderSingleLineItem).
@evolve-storefront/feature-order
OrderLineReviewOne line of an order, as reviewing it goes (schema OrderLineReview).
@evolve-storefront/feature-order
OrderLookupAn order named without knowing whose it is: by id (what a payment provider hands back, and also its public id), by orderNumber, or by a signedLink token.
@evolve-storefront/feature-order
OrderPaymentMethodA payment method offered for this order (schema PaymentMethod).
@evolve-storefront/feature-order
OrderPaymentMethodInputThe method to pay with (schema PaymentMethodInput).
@evolve-storefront/feature-order
OrderPaymentMethodsThe payment methods offered for one order, with the order's id.
@evolve-storefront/feature-order
OrderPaymentMethodsLookupAn order named by something other than the session, for reading its payment methods: its public id, or a signedLink token from a mail.
@evolve-storefront/feature-order
OrderPaymentStateWhether the order has been paid, which is a separate axis from its status.
@evolve-storefront/feature-order
OrderPickupPointThe pickup point chosen in checkout, as it was when the order was placed.
@evolve-storefront/feature-order
OrderResultPaginated order list (schema OrderResult).
@evolve-storefront/feature-order
OrderReturnUrlsWhere the payment provider returns the buyer.
@evolve-storefront/feature-order
OrderScopeRead scope — consumer (own history) vs business (company-scoped).
@evolve-storefront/feature-order
OrderStatusOrder lifecycle status — the schema's OrderStatusType, verbatim.
@evolve-storefront/feature-order
OrderStatusCountThe number of orders in one status (schema OrderStatusCount).
@evolve-storefront/feature-order
OrderSummarySummary shape for the history list.
@evolve-storefront/feature-order
PaymentReturnDestinationWhere a buyer back from a payment provider goes; the app maps each kind to a path.
@evolve-storefront/feature-order
PaymentReturnOrderWhat a return route needs to know about the order a payment came back for.
@evolve-storefront/feature-order
ProductImageMinimal product image (schema ProductImage).
@evolve-storefront/feature-order
ProductReviewFitThe schema's ProductReviewFitType, verbatim.
@evolve-storefront/feature-order
ProductReviewStatusThe schema's ProductReviewStatusType, verbatim.
@evolve-storefront/feature-order
ProductVariantMinimal product variant on a line item (schema ProductVariant).
@evolve-storefront/feature-order
RefundUNVERIFIED (target): a refund on the order.
@evolve-storefront/feature-order
RefundState
@evolve-storefront/feature-order
TaxA tax line (schema Tax): rate is 0..1, value the money amount.
@evolve-storefront/feature-order
TaxedPriceA single-rate taxed price (schema TaxedPrice).
@evolve-storefront/feature-order
TaxedTotalPriceA multi-rate taxed total (schema TaxedTotalPrice).
@evolve-storefront/feature-order
VatDisplayWhether prices display net or gross.
@evolve-storefront/feature-order
VatOutcomeThe VAT rule an order follows and the reason it applies.
@evolve-storefront/feature-order
VatReasonWhy an order's VAT is applied the way it is (schema VatReasonType), verbatim.
@evolve-storefront/feature-order
VatTreatmentHow VAT is applied to an order (schema VatTreatmentType), verbatim.
@evolve-storefront/feature-order
CancelOrderVariables
@evolve-storefront/feature-order/hooks
CreateProductReviewVariables
@evolve-storefront/feature-order/hooks
PayOrderResultWhat the buyer does next, discriminated so a caller cannot forget one arm.
@evolve-storefront/feature-order/hooks
PayOrderVariables
@evolve-storefront/feature-order/hooks
ReviseFailureWhy a revise failed, as the buyer needs to hear it.
@evolve-storefront/feature-order/hooks
ReviseOrderResult
@evolve-storefront/feature-order/hooks
ReviseOrderVariables
@evolve-storefront/feature-order/hooks
CarrierLogoNodes
@evolve-storefront/feature-order/order-detail
CarrierLogosLogo image URLs by Carrier.key, e.g.
@evolve-storefront/feature-order/order-detail
OrderLineItemRenderer
@evolve-storefront/feature-order/order-detail
ProductReviewFormValuesA review as the form holds it once it validates: a rating, and what else the buyer added.
@evolve-storefront/feature-order/order-detail
OrderResumeActionsThe two sections renderActions arranges.
@evolve-storefront/feature-order/order-resume
OrderHistoryFilterNamesThe form field names, so they line up with whatever the page reads out of its search params.
@evolve-storefront/feature-order/order-history
OrderHistoryItemRendererRenders one order in the history list.
@evolve-storefront/feature-order/order-history
OrderHistoryParamsThe order history's filters, read from the URL and safe to query with.
@evolve-storefront/feature-order/order-history
OrderHistorySearchParamsA page's search params as a framework hands them over.
@evolve-storefront/feature-order/order-history
OrderStatusLinkRendererRenders one state as a link.
@evolve-storefront/feature-order/order-history

Not listed: 34 props and options types. They appear as the tables on the pages of what they type.