Skip to main content

Ubiquitous Language

The terms this context speaks, each mapped to its identifier in the code. 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 storefront-wide glossary is Ubiquitous Language.

Own terms​

Source: internal/domain/*, internal/application/ports/ports.go, internal/application/usecases/deps.go.

TermDefinitionCode identifierNot to be confused with
List PriceThe item's standing price; a sale price is always below it.itemprice.ItemPrice.ListPriceEffective Price: what the shopper actually pays when a sale is active.
Sale WindowA time-bounded sale price for one item; windows never overlap.itemprice.SaleWindowA promotion or coupon (later phase, D10).
Effective PriceThe lowest active sale price, else the list price.itemprice.ItemPrice.EffectivePriceThe Estimate in shopping-cart: an estimate combines effective prices with charges and tax and is non-binding.
Delivery ChargeThe price of one service tier's speed, with an optional free-over threshold.schedule.TierChargeThe network's Service Tier itself (the promise); this context only prices it.
Tax BandA basis-point rate for a destination postal-prefix range (synthetic, D10).tax.TaxBandA real jurisdiction's tax rule; this table is synthetic by decision.
Price QuoteA binding, immutable, expiring price snapshot for one checkout.quote.PriceQuoteThe cart estimate (non-binding); and the network's delivery offer quote, which prices time, not money.

Model elements of this context​

Source: internal/domain/shared/money.go, internal/domain/quote/quote.go, internal/adapters/outbound/postgres/migrations/0001_pricing_schema.up.sql.

TermDefinitionCode identifierNot to be confused with
MoneyAn amount in integer minor units of the one configured currency.shared.Money{AmountMinor, Currency}A decimal or float amount; mixing currencies raises ErrCurrencyMismatch.
Item PriceThe list price and sale windows of one catalogue item, versioned.itemprice.ItemPriceThe catalogue item itself (offer-availability).
Delivery Charge ScheduleThe charge per service tier, one current version at a time.schedule.DeliveryChargeScheduleThe network's promise per tier.
Tax TableThe synthetic basis-point rates by postal-prefix band, one current version.tax.TaxTableA bought tax engine (later phase).
Quote LineOne priced line of a quote: item, quantity, unit price, line total.quote.LineA cart line (shopping-cart): the quote line's price is binding, the cart line's is not.
Quote GroupOne shipment group of a quote: group number, tier, delivery charge.quote.GroupThe network's shipment group (delivery-promise); this is only its price.
Catalog Item ViewThe local, event-fed copy of which catalogue items exist and are not discontinued.ports.CatalogView (table catalog_items)The item master in offer-availability, which is authoritative.
Quote TTLPolicy: a PriceQuote expires 15 minutes (default) after issue; expiry is by time, immutable otherwise.usecases.DefaultQuoteTTL, usecases.ExpireQuotesA delivery offer's expiry (network): an expiring offer holds no money amount.

Neighbour terms this context uses​

TermDefinition (owner's)Code identifier (owner)Not to be confused with
Catalog ItemThe network's own entry for a product, independent of who ships it.catalog.Item (offer-availability, network)Item Price: this context's price of that item. The item master stays upstream.
Service TierSAME_DAY, NEXT_DAY, TWO_DAY, STANDARD or CONSOLIDATED (free unless the schedule declares a charge, ADR 0010).promise.Tier (delivery-promise, network)Delivery Charge: the price this context puts on the tier. TierCharge re-declares the enum locally; there is no shared kernel.
Checkout SessionThe purchase transaction from review to placed order.checkoutsession.CheckoutSession (checkout)The Price Quote it is confirmed against; the session orchestrates, the quote only prices.
EstimateThe labelled, non-binding total in the cart.estimate.Estimate (shopping-cart)The binding Price Quote. The cart's own UL marks this as the term not to confuse.
PurchasableItem ACTIVE, content PUBLISHED, price ACTIVE, at least one LIVE listing with stock.productview.Purchasable (product-discovery)ACTIVE price: one of the four inputs, not the verdict.

Fleet translation​

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