Pricing
Derived from model/model.yaml. The pricing service is built on develop (IQVO/pricing at 5a18326, checked 2026-10-27) and not deployed (no warehouse-infra entry). 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.
Pricing (pricing, code PR, tier storefront) 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 a
checkout session is confirmed against. One configured
currency, integer minor units. The item master stays in the network's
offer-availability context; pricing
only references catalogItemId, kept current through
CatalogItemCreated/CatalogItemDiscontinued events. Promotions are a later
phase (decision D10).
This context's pages
| Page | What it holds | ddd-crew tool it follows |
|---|---|---|
| Business Context | The problem, actors, decisions, relation to real storefronts, out of scope | (narrative) |
| Ubiquitous Language | Terms, code identifiers, terms not to confuse | Bounded Context Canvas (UL section) |
| 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 | Aggregate Design Canvas v1.1 |
| Domain Events | Published and consumed CloudEvents, with an example envelope | Domain Message Flow Modelling (message catalogue) |
| Domain Message Flow | Price management, sale boundaries, quote issuing, discontinuation | Domain Message Flow Modelling |
| EventStorming | Process-level boards with hotspots | EventStorming glossary & cheat sheet |
| Use Cases | One section per command: trigger, flow, errors, events, idempotency | (application layer, fleet convention) |
| Class Diagram | Domain model and hexagonal ports and adapters (the model's design, with the as-built packages) | (UML, fleet convention) |
| Entity Relationship | Postgres schema as built (migration 0001) | (fleet convention) |
| Sequence Diagrams | Adapter to Kafka for every command use case | (UML, fleet convention) |
Service and operations
- Service:
IQVO/pricingondevelop(5a18326, 2026-10-27): binariescmd/api; REST contractapis/openapi.yaml, event contractapis/asyncapi.yaml, schema ininternal/adapters/outbound/postgres/migrations/(see Entity Relationship). 5 ADRs, listed in the ADR index. - Configuration: mandatory at boot (the service exits naming the missing variable):
DATABASE_URL,KAFKA_BROKERS,OFFER_AVAILABILITY_CONSUMER_GROUP. There is no in-memory mode. Packaging: a Helm chart incharts/pricing(itsotel.endpointvalue is rendered intoOTEL_EXPORTER_OTLP_ENDPOINT; the chart test expectsotel-collector.observability.svc.cluster.local:4317). - Deployment: not deployed. warehouse-infra
develophas noterraform/apps.yamlentry and nohelm-values/pricing.yaml, so no database, consumer group or gateway route is provisioned. The kind cluster was not checked in this refresh. - Observability: service ADR 0005, Adopt the fleet observability standard (logs, metrics, traces), Accepted (2026-10-26). Logs, metrics and traces leave over OTLP/gRPC (
OTEL_EXPORTER_OTLP_ENDPOINT, code defaultlocalhost:4317;OTEL_SERVICE_NAME); a collector that is down only drops telemetry. The Tier-2 business counter ispricing.quotes.issued(unit{quote}, ininternal/adapters/outbound/telemetry/quote_metrics.go), with attributeoutcome=issuedorrejectedandreasonon the outcomes that are not a success. No warehouse-infra dashboard queries it yet.
Elsewhere
- REST contract:
storefront/apis/pricing/openapi.yaml(a copy of the service's spec on develop), rendered under the API reference. - The storefront-wide Context Map, Subdomain Classification and Ubiquitous Language.
- The Model Gap Register
tracks gap S2 (price change between cart and checkout), which the binding
PriceQuoteanswers. - offer-availability owns the
catalogue item this context prices; delivery-promise
owns the service tiers a
TierChargenames.