Skip to main content

Ubiquitous language

The terms this context speaks, each mapped to the identifier that implements it. The first table is the context's own vocabulary, the second the model elements of its aggregate, the third neighbour terms it uses but does not own (their definitions come from the owning context). The storefront-wide glossary is Ubiquitous Language in warehouse-docs.

Own terms​

TermDefinitionCode identifierNot to be confused with
CartOne shopper's held intent: lines, destination, delivery quote and selections.cart.CartThe network's customer order (customer-ordering): a cart is intent, not a transaction.
Delivery Quote (cart)The offers delivery-promise returned for the cart's lines and destination, held by the cart; a quote holds no capacity.cart.DeliveryQuoteThe network's DeliveryOffer (one offer).
Delivery SelectionThe offer the shopper picked per shipment group.cart.SelectionThe network's Promise: selecting an offer holds nothing; capacity is held only when checkout places the order.
EstimateThe labelled, non-binding total in the cart: effective prices plus selected tier charges plus tax band.estimate.EstimateThe binding PriceQuote of a checkout session.
Checkout ReadinessEvery group selected and no selected offer expired.cart.CheckoutReadiness, Cart.ReadinessA checkout session's own state: readiness is a fact about the cart that checkout enforces at session open.

Model elements of this context​

TermDefinitionCode identifierNot to be confused with
Cart LineOne item with a quantity; the only line shape the cart stores.cart.Line{CatalogItemID, Quantity}A checkout session's numbered line: the session numbers lines 1..n when it opens.
Quoted OfferOne offer held by the quote: offerId, groupNo, tier, delivery dates and expiry.cart.QuotedOfferThe network's DeliveryOffer aggregate, which owns the witness path behind the window.
Shipment Group (cart)One group of the quote: the lines that ship together (by 1-based LineNos) and its offers.cart.QuoteGroupThe network's shipment group in delivery-promise's Promise: the cart mirrors the grouping the quote returned.
Capacity BandAMPLE, TIGHT or SCARCE: delivery-promise's quote-time reading of the capacity pressure on an offer's window, optional on an offer. A signal only; it changes no offer, window or order.cart.CapacityBandA fee or a price: the network computes none.
Consolidation EligibleOptional boolean on a CONSOLIDATED offer, relayed as quoted: true when the chosen delivery day leaves the network at least one local day after the fastest window to merge the order with others.cart.QuotedOffer.ConsolidationEligibleA promise that another order exists.
Tier UnavailableWhy a tier has no offer, with a constraint and an optional group.cart.TierUnavailableA tier that was never requested.
TierSAME_DAY, NEXT_DAY, TWO_DAY, STANDARD, and the opt-in CONSOLIDATED (ADR 0010).cart.TierThe delivery charge (pricing's tier charge): the tier is the promise's vocabulary, re-declared locally.
Destination Postal PrefixThe 1 to 10 character prefix the destination resolves to; the input both the quote and the tax band key on (the tax band uses the first three characters).Cart.DestinationPostalPrefix, cart.ValidPrefixA ship-to address: PII that lives only in customer-ordering.
Cart StatesOPEN, CHECKED_OUT, ABANDONED, MERGED.cart.StateThe checkout session's states: a CHECKED_OUT cart is the effect of a completed session, not a session state.
Purchasability ViewThe local, event-fed verdict of whether an item may sit in a cart: catalogued, not discontinued, priced.table rm_items, readmodel.Item.Purchasableproduct-discovery's Purchasable: more inputs.
Estimate ViewThe local, event-fed prices, the current delivery charge schedule and the current tax table the estimate is computed from.rm_items prices, estimate.Schedule, estimate.TaxTable, tables rm_current_schedule, rm_current_tax_tableA stored total: the estimate is derived at read time.
Estimate CompleteTrue only when every line is priced, every group is selected with a known charge and a tax band covers the prefix.estimate.Estimate.Complete, wire estimateCompleteA guarantee of the final price.
Abandon InactivePolicy: an OPEN cart with no change for 30 days is ABANDONED.usecases.AbandonInactive, cart.IdleAfterDeletion.
Purge Abandoned CartsPolicy: a cart that is not OPEN and unchanged for 30 days is deleted; raises no event.usecases.PurgeAbandonedCartsAbandonment.
Close On Checkout CompletedPolicy: on CheckoutCompleted the cart is CHECKED_OUT.Consumer.ApplyCheckoutCompleted, Cart.CloseOnCheckoutCompletedCheckout's own completion.
MergeTake a guest cart's (or the same shopper's) lines into an open cart of a shopper; the source becomes MERGED.Cart.MergeInto, usecases.MergeIntoMerging quantities of one item inside a cart (AddLine).
RequoteCheckout's replacement of the offers; the cart accepts them without calling delivery-promise.Cart.AcceptRequotedOffersQuoteDelivery, which does call delivery-promise.
Idempotency KeyThe caller's token that makes a POST safe to retry for 24 hours.header Idempotency-Key, table idempotency_keysThe CloudEvents id, which makes consumers idempotent.
Outbox / InboxThe tables that make publishing and consuming exactly-once in effect.outbox_events, processed_eventsKafka offsets.

Neighbour terms this context uses​

TermDefinition (owner's)Owner
DeliveryOfferA short-lived quote for (item, quantity, destination prefix, tier) with a delivery window, the witness path that proves it, and an expiry.delivery-promise (network). Not to be confused with the cart's Delivery Quote, the set of such offers held by the cart.
Service TierSAME_DAY, NEXT_DAY, TWO_DAY, STANDARD or the opt-in CONSOLIDATED.delivery-promise.
Effective PriceThe lowest active sale price, else the list price.pricing. One of the estimate's three inputs.
Price QuoteA binding, immutable, expiring price snapshot for one checkout.pricing. Not the cart's non-binding Estimate.
Checkout SessionThe purchase transaction from review to placed order.checkout. It reads the cart at open and closes it on completion; the cart learns of a session only at CheckoutCompleted.
PurchasableItem active, content published, price active, and at least one live listing with stock.product-discovery. The cart's Purchasability View is narrower.
Catalog ItemThe network's own entry for a product, independent of who ships it.offer-availability (network). A cart line references its catalogItemId and adds the shopper's quantity.

Fleet translation​

None. The cart never touches the warehouse-systems fleet and never produces or consumes a warehouse.* topic.

Source: internal/domain/cart/*.go, internal/domain/estimate/estimate.go, internal/application/readmodel/readmodel.go, internal/application/usecases/*.go.