Skip to main content

Ubiquitous Language

Released at v0.1.4, applied to the k3s cluster

Derived from model/model.yaml. The checkout service is built on develop (IQVO/checkout at 51e0379, checked 2026-12-02), released at v0.1.4 and applied to the k3s cluster: the api and the A2A agent are deployed, the MCP server is registered in warehouse-infra and switched off. Every Err... name, REST route and CloudEvents type of this context named on this page exists in the service; where the built service differs from the model's design, the page says so (As built) or the context's Service and operations section lists it.

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 aggregate. The third holds neighbour terms this context uses but does not own; their definitions come from the owning context's ul list. The storefront-wide glossary is Ubiquitous Language.

Own terms​

Derived from: model.yaml → contexts[checkout].ul.

TermDefinitionCode identifierNot to be confused with
Checkout SessionThe purchase transaction from review to placed order.checkoutsession.CheckoutSessionThe network's "Checkout" (customer-ordering PlaceOrder), which is the session's place-order step.
Place-Order StepThe pivot of the saga: customer-ordering POST /checkout through the ACL.ports.OrderPlacerThe whole session: placing the order is one step; authorizing before it and the events after it are the others.
In-Doubt PlacementThe place-order outcome is unknown (timeout or 503); PLACING holds the semantic lock until the resolver settles it.checkoutsession.CheckoutSession.RecordPlacementInDoubtA failure: nothing is known to have failed, and nothing is known to have succeeded. The session neither voids nor retries as a new attempt.
RequoteA definitive 409 from the network: the authorization is voided and the session carries the re-quoted offers for the cart.checkoutsession.RequotedOfferThe cart's Delivery Quote: a requote is the network's answer to a place-order attempt and ends the session in REQUOTE_REQUIRED; a new session starts from the cart.
AllocationThe share of an authorization that belongs to one shipment group.checkoutsession.Group.AmountMinorcustomer-payments' Allocation (paymentauthorization.Allocation, with a PENDING, CAPTURED or RELEASED state): the session's amount per group is what the authorization is split by; the payment-side object tracks the money.

Model elements of this context​

Derived from: model.yaml → contexts[checkout].aggregates[CheckoutSession] (value_objects, states, commands), policies.

TermDefinitionCode identifierNot to be confused with
Session LineOne numbered line of the session: lineNo, catalogItemId, quantity.checkoutsession.SessionLine{lineNo, catalogItemId, quantity}The cart's CartLine{catalogItemId, quantity}: the session numbers lines 1..n when it opens (gap S1).
Session GroupOne shipment group: groupNo (from the quote), the chosen offerId, tier and the lineNos it covers.checkoutsession.SessionGroup{groupNo, offerId, tier, lineNos[]}The network's GroupPromise{groupNo, promiseId, ...} in a placed order: the session group carries the offer, the order carries the confirmed promise.
Requoted OfferOne offer the network returned in a definitive 409: offerId, groupNo, tier, delivery window and expiresAt.checkoutsession.RequotedOffer{offerId, groupNo, tier, deliverByEarliest, deliverByLatest, expiresAt}The cart's QuotedOffer: same shape, different moment; this one answers a failed placement.
Session statesOPEN, AUTHORIZING, DECLINED, PLACING, REQUOTE_REQUIRED, COMPLETED, EXPIRED, FAILED.checkoutsession.StateThe network order's states (PLACED, IN_FULFILLMENT, ...): a COMPLETED session is the placed order's origin, not its status.
Semantic LockPLACING while the place-order outcome is unknown: no void and no new attempt.ErrPlacementInDoubt (the invariant that enforces it)A database lock: it is a business state that survives restarts and is visible to the shopper as 202.
Stored Placement RequestThe PII-free body sent to customer-ordering, kept so it can be replayed byte for byte.(a field of CheckoutSession; the model names no identifier)The order itself: it holds shipToAddressId and numbered lines, never the address.
Resolve In-Doubt PlacementsPolicy: re-send the stored body with the same Idempotency-Key with backoff until a definitive answer; alert at 20 h.ResolveInDoubtPlacementsA retry of the shopper's confirm: confirm is refused while PLACING.
Expire On Quote ExpiryPolicy: an OPEN or DECLINED session expires with its price quote.ExpireOnQuoteExpiryA session timeout in general: only the quote's expiry ends an open session.

Neighbour terms this context uses​

TermDefinition (owner's)Code identifier (owner)Not to be confused with
Checkout (network)The act of turning a cart into a customer order, promising every group.order.PlaceOrder (customer-ordering, network)The storefront's Checkout Session, a larger transaction of which this is one step.
Customer OrderWhat the shopper bought, with a promise per shipment group.order.CustomerOrder (customer-ordering, network)The checkout session: the order is the network's record, the session is the storefront's saga.
Ship-ToThe delivery address; synthetic PII held only in customer-ordering.order.ShipTo (customer-ordering, network)The session's shipToAddressId: a reference, never the address.
ShopperThe (synthetic) customer placing orders.shopper.Shopper (customer-ordering, network)The session's shopperId: a reference to it.
CartOne shopper's held intent: lines, destination, delivery quote and selections.cart.Cart (shopping-cart)The session: the cart is intent, the session is the transaction.
Checkout ReadinessEvery group selected and no offer expired.cart.CheckoutReadiness (shopping-cart)The session's own state; checkout enforces the readiness at open (ErrCartNotCheckoutReady).
Price QuoteA binding, immutable, expiring price snapshot for one checkout.quote.PriceQuote (pricing)The cart's Estimate (non-binding).
Payment AuthorizationA hold on the shopper's payment method for the quote total, split into allocations per shipment group.paymentauthorization.PaymentAuthorization (customer-payments)The charge: an authorization holds, a capture takes.
VoidCancelling the whole authorization before any capture.paymentauthorization.PaymentAuthorization.Void (customer-payments)A refund (money returned after capture) or a release (one allocation).
Payment Method TokenThe PSP token standing in for the shopper's card; the storefront never sees a card number.(provider port) (customer-payments)A card number: the session never holds one.
DeliveryOfferA short-lived quote for (item, quantity, destination prefix, tier) with a delivery window, the witness path that proves it, and an expiry.offer.DeliveryOffer (delivery-promise, network)The session group's offerId: a reference to such an offer.

Fleet translation​

None. Checkout never touches the warehouse-systems fleet and never produces or consumes a warehouse.* topic (meta.hard_boundary).