Skip to main content

Ubiquitous Language

As built

Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses.

The terms this context speaks, each mapped to the identifier a future implementation must use. The first table is the context's own ul list in model.yaml. The second holds the model elements of its aggregates. The third holds neighbour terms this context uses but does not own; their definitions come from the owning context's ul list. The network-wide glossary is Ubiquitous Language.

Own terms​

Derived from: model.yaml → contexts[customer-ordering].ul.

TermDefinitionCode identifierNot to be confused with
ShopperThe (synthetic) customer placing orders.shopper.ShopperVendor (vendor-connectivity): the organisation that operates a fulfillment node. A shopper never meets a vendor.
Customer OrderWhat the shopper bought, with a promise per shipment group.order.CustomerOrderPurchase Order (vendor-connectivity): the instruction to one vendor node for one shipment group. One customer order can lead to several purchase orders, and a purchase order never names the shopper.
Consolidation KeyAn opaque keyed hash of one shopper and one ship-to, derived here and carried on the placed order so order-sourcing can merge the groups of one stop without seeing the address; absent means the order never merges.order.ConsolidationKeyThe stop key of shipping-and-tracking, which hashes the address alone and is computed after the release.
Chosen Delivery DayThe local calendar date a shopper picked for a CONSOLIDATED group, stored on the group at placement.order.GroupPromise.ChosenDeliveryDayThe live window deliverByEarliest..deliverByLatest, which a revision can move.
Day-of Delivery WindowThe at-most-two-hours window consumed from shipping-and-tracking and stored on the tracking package row (a read-model fact, never an order fact). Shown on the tracking view only while the package is OUT_FOR_DELIVERY and the window was assigned at or after the last scan; never clipped to the promised window, and never touching the promise.readmodel.Package.EtaStartThe Deliver-By Window of the group promise, which stays the shopper's commitment.
Delivery-Point AdvisoryThe {reason, flaggedAt} object shown on the tracking view while the package has not ended and its delivery point is flagged (two counted failed attempts). A code for the storefront to word: not an address change, not delivery instructions, not a notification.readmodel.Package.PointFlagReasonA delivery exception (PackageExceptionRaised), which is about the package in transit, not the point.
Ship-ToThe delivery address; synthetic PII held only here.order.ShipToDestination postal prefix: the only part of the address that leaves this context in an event. Label (vendor-connectivity, shipping-and-tracking): what the vendor gets back, labelRef + trackingNumber + carrier, never the address.
CheckoutThe act of turning a cart into a customer order, promising every group.order.PlaceOrderQuote: asking delivery-promise for offers. A quote holds no capacity; checkout makes promises, which do.

Model elements of this context​

Derived from: model.yaml → contexts[customer-ordering].aggregates[*] (value_objects, states, commands), read_models, policies.

TermDefinitionCode identifierNot to be confused with
Order LineOne catalogue item and quantity of an order, numbered lineNo.order.OrderLine{lineNo, catalogItemId, quantity}PO line (vendor-connectivity PoLine), which names a listingId, a node-specific offer.
Group PromiseThe order's copy of one shipment group's promise: groupNo, promiseId, the deliver-by window and the lineNos it covers.order.GroupPromisePromise (delivery-promise): the authoritative commitment. This is a snapshot, refreshed by UpdateGroupPromise on PromiseRevised.
Order statusThe customer-facing state, DERIVED from the states of the groups that are not cancelled: PLACED, IN_FULFILLMENT, PARTIALLY_SHIPPED, SHIPPED, PARTIALLY_DELIVERED, DELIVERED, LOST, RETURNED, CANCELLED. The groups themselves are PROMISED, LOCKED, SHIPPED, DELIVERED, LOST, RETURNED, CANCELLATION_REQUESTED, CANCELLED.order.CustomerOrder statesAssignment state (order-sourcing: QUEUED, RELEASED, LOCKED …) and promise state (delivery-promise). The order status is a summary for the shopper, not a copy of either.
Destination postal prefixThe part of the ship-to postal code that delivery-promise quotes against and that CustomerOrderPlaced carries.destinationPostalPrefixService Area (node-topology): the mapping from a postal prefix to a delivery station. This context never resolves it.
Order Tracking ViewThe event-fed read model behind GET /orders/{orderId}/tracking.OrderTrackingViewPackage Journey (shipping-and-tracking): the authoritative timeline of one package. The view combines journeys, assignments and promises per order.
Checkout PromisingPolicy: for each shipment group call MakePromise with the offer the shopper saw; if the offer expired, re-quote and show the new window before placing.CheckoutPromisingRe-promise (delivery-promise): revising a confirmed promise later. Checkout never revises.
Cancel On UnfulfillablePolicy: when delivery-promise publishes PromiseUnkeepable for a group that no node has locked, cancel that group at once, and the order if nothing remains. Not triggered by FulfillmentUnsourceable.CancelOnUnfulfillableCustomer cancellation (CancelOrder from POST /orders/{orderId}/cancellations), which the shopper asks for and which is only a request (CANCELLATION_REQUESTED) until order-sourcing confirms it.

Neighbour terms this context uses​

TermDefinition (owner's)Code identifier (owner)Not to be confused with
Delivery OfferA quoted delivery window for an item, quantity, destination and tier, valid until it expires.offer.DeliveryOffer (delivery-promise)Promise: an offer holds no capacity and expires; checkout consumes it into a promise.
PromiseThe network's commitment of a delivery window for one shipment group.promise.Promise (delivery-promise)Group Promise, this context's snapshot of it.
Shipment GroupThe lines of an order promised and shipped together from one node.promise.ShipmentGroup (delivery-promise)Package: a group can ship as several packages (several tracking numbers).
Service TierSAME_DAY, NEXT_DAY, TWO_DAY, STANDARD or the opt-in CONSOLIDATED.promise.Tier (delivery-promise)Carrier service levels; the label carries the tier, not a carrier product.
Ship-ByThe pickup cutoff at the witness node the package must be ready for.promise.PromiseTerms.ShipBy (delivery-promise)Deliver-By Window, which is what the shopper sees.
Deliver-By WindowdeliverByEarliest..deliverByLatest shown to the customer.promise.PromiseTerms (delivery-promise)Ship-By.
Witness PathThe concrete node, pickup, departures and delivery wave that prove a promise is feasible; order-sourcing may choose a different path later.promise.WitnessPath (delivery-promise)The node that actually ships: CustomerOrderPlaced carries witnessNodeId, but the shipping node is the one in FulfillmentLocked.
Capacity HoldA provisional reservation on a promise book released if the order is not placed in time.book.Capacity.Provisional (delivery-promise)A placed order: the hold becomes confirmed only when delivery-promise consumes CustomerOrderPlaced.
Re-promiseRevising a confirmed promise to a later window when its path is no longer feasible.promise.Promise.Revise (delivery-promise)A new checkout.
Promise Kept / BrokenThe judgement at delivery against deliverByLatest.promise.Judgement (delivery-promise)Delivered: an order is DELIVERED on PackageDelivered; kept or broken is a separate verdict.
Fulfillment AssignmentThe decision of which node and path fulfil one shipment group.assignment.FulfillmentAssignment (order-sourcing)The customer order; one assignment per group.
Path LockThe point after which an assignment never changes node: the vendor's acceptance.assignment.Lock (order-sourcing)Order placement. The lock is what ends customer cancellation here.
UnsourceableNo node can still meet the promise; the group goes back to delivery-promise.assignment.StateUnsourceable (order-sourcing)Cancelled: an unsourceable group can be re-promised and re-queued.
Tracking NumberThe network-wide unique id of one package.journey.TrackingNumber (shipping-and-tracking)orderId or promiseId.
Shipping LabelWhat is printed on the package; the only artefact outside customer-ordering that carries the address.label.ShippingLabel (shipping-and-tracking)The Ship-To value object it is printed from.
Package JourneyThe customer-visible timeline of one package.journey.PackageJourney (shipping-and-tracking)Order Tracking View.
ScanOne observation of a package at a node.journey.Scan (shipping-and-tracking)A status change of the order.
Catalog ItemThe network's own entry for a product, independent of who ships it.catalog.Item (offer-availability)Listing, a catalogue item offered from one node. Order lines name catalogue items only.

Fleet translation​

None. Customer Ordering never touches the warehouse-systems fleet. Only vendor-connectivity and node-topology do; see WMS/WES integration.