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.
| Term | Definition | Code identifier | Not to be confused with |
|---|---|---|---|
| List Price | The item's standing price; a sale price is always below it. | itemprice.ItemPrice.ListPrice | Effective Price: what the shopper actually pays when a sale is active. |
| Sale Window | A time-bounded sale price for one item; windows never overlap. | itemprice.SaleWindow | A promotion or coupon (later phase, D10). |
| Effective Price | The lowest active sale price, else the list price. | itemprice.ItemPrice.EffectivePrice | The Estimate in shopping-cart: an estimate combines effective prices with charges and tax and is non-binding. |
| Delivery Charge | The price of one service tier's speed, with an optional free-over threshold. | schedule.TierCharge | The network's Service Tier itself (the promise); this context only prices it. |
| Tax Band | A basis-point rate for a destination postal-prefix range (synthetic, D10). | tax.TaxBand | A real jurisdiction's tax rule; this table is synthetic by decision. |
| Price Quote | A binding, immutable, expiring price snapshot for one checkout. | quote.PriceQuote | The 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.
| Term | Definition | Code identifier | Not to be confused with |
|---|---|---|---|
| Money | An amount in integer minor units of the one configured currency. | shared.Money{AmountMinor, Currency} | A decimal or float amount; mixing currencies raises ErrCurrencyMismatch. |
| Item Price | The list price and sale windows of one catalogue item, versioned. | itemprice.ItemPrice | The catalogue item itself (offer-availability). |
| Delivery Charge Schedule | The charge per service tier, one current version at a time. | schedule.DeliveryChargeSchedule | The network's promise per tier. |
| Tax Table | The synthetic basis-point rates by postal-prefix band, one current version. | tax.TaxTable | A bought tax engine (later phase). |
| Quote Line | One priced line of a quote: item, quantity, unit price, line total. | quote.Line | A cart line (shopping-cart): the quote line's price is binding, the cart line's is not. |
| Quote Group | One shipment group of a quote: group number, tier, delivery charge. | quote.Group | The network's shipment group (delivery-promise); this is only its price. |
| Catalog Item View | The 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 TTL | Policy: a PriceQuote expires 15 minutes (default) after issue; expiry is by time, immutable otherwise. | usecases.DefaultQuoteTTL, usecases.ExpireQuotes | A delivery offer's expiry (network): an expiring offer holds no money amount. |
Neighbour terms this context uses
| Term | Definition (owner's) | Code identifier (owner) | Not to be confused with |
|---|---|---|---|
| Catalog Item | The 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 Tier | SAME_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 Session | The purchase transaction from review to placed order. | checkoutsession.CheckoutSession (checkout) | The Price Quote it is confirmed against; the session orchestrates, the quote only prices. |
| Estimate | The 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. |
| Purchasable | Item 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).