Class Diagram
Derived from network/model/model.yaml. This context's service is built (IQVO/seller-inbound, designed by ADR 0009); the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses. Where the model left a choice open, the service's own ADRs 0002 to 0005 record what it does.
UML class diagrams of the domain model as the design pack drew it. Fields are
shown unexported (-), methods exported (+). As built, the service splits
it into internal/domain/seller (Account), internal/domain/inboundplan
(Plan), internal/domain/inboundshipment (Shipment, Carton, Receipt),
internal/domain/network (the read-model value types), internal/domain/scorecard
(the informational seller scorecard) and internal/domain/shared/gs1 (GTIN,
SSCC); the class names below are the model's names, the Go types are on
Ubiquitous Language.
1. InboundShipment aggregate
2. Plan, seller and identifiers
ParseGtin accepts 8, 12, 13 or 14 digits, checks the mod-10 digit and
returns the 14-digit form; ParseSscc accepts exactly 18 digits with a valid
mod-10 digit. A service never trusts a client-supplied check digit.