DDD artifacts
Pricing (pricing, code PR, tier storefront, Core) owns what a
shopper pays: the list price and sale windows per catalogue item (ItemPrice),
the delivery charge per service tier (DeliveryChargeSchedule), a synthetic tax
table (TaxTable), and the binding, immutable, expiring PriceQuote that
checkout confirms against. One configured currency, integer minor units. The
item master stays in the retail network's offer-availability context; pricing
only references catalogItemId, kept current through CatalogItemCreated and
CatalogItemDiscontinued. Promotions are a later phase.
The pages below follow the ddd-crew tools. Every identifier, route, event type and table on them was checked against the code of this repository; the business narrative is folded into the Introduction.
Pages
| Page | What it holds | ddd-crew tool it follows |
|---|---|---|
| Ubiquitous language | Terms, code identifiers, terms not to confuse | Bounded Context Canvas (language section) |
| Use cases | Every use case: trigger, inputs, invariants, errors, events | (application layer, fleet convention) |
| Subdomain classification | Why Core, and the neighbours' classes | (strategic design) |
| Core Domain Chart | Why this context is Core | Core Domain Charts |
| Bounded Context Canvas | Purpose, classification, roles, inbound and outbound messages, decisions, metrics | Bounded Context Canvas v5 |
| Context Map | Every neighbour, direction and pattern | Context Mapping |
| Aggregate Design Canvas | ItemPrice, DeliveryChargeSchedule, TaxTable, PriceQuote: states, invariants, commands, events | Aggregate Design Canvas v1.1 |
| Domain Message Flow | Price management, sale boundaries, quote issuing, discontinuation | Domain Message Flow Modelling |
| EventStorming | Process-level boards with hotspots | EventStorming glossary & cheat sheet |
| Class Diagram | Domain model, events and the hexagonal ports and adapters | (UML, fleet convention) |
| Entity Relationship | The Postgres schema (migration 0001), 13 tables | (fleet convention) |
| Sequence Diagrams | Adapter to Kafka for every command use case | (UML, fleet convention) |
| Domain Events | Published and consumed CloudEvents, with an example envelope | Domain Message Flow Modelling (message catalogue) |
Where the design lives
- The aggregator. The cross-context view (storefront context map, glossary,
model gap register) is in
warehouse-docs; the model
there (
storefront/model/model.yaml) is the design source this pack started from. Where the code differs from the model, these pages follow the code. - The contracts. API overview and the event catalogue.
- The decisions. The repository's seven ADRs, among them the assumptions where the model is silent (0002) and the A2A adapter (0007).
- Neighbours. offer-availability
owns the catalogue item this context prices;
delivery-promise
owns the service tiers a
TierChargenames.