Skip to main content

Ubiquitous language

Synced from inbound-receiving

This page is a copy of docs/docs/ddd/ubiquitous-language.md on develop, derived from that repository's code. Edit it there, then re-sync.

DockAppointment moved (ADR 0019)

The dock appointment is owned by dock-scheduling since ADR 0019. This context keeps a read-only local copy fed by dock-scheduling's DockAppointmentBooked / DockAppointmentCancelled, no longer books, checks in, cancels or completes appointments, and no longer raises the four DockAppointment* events (the one-shot api republish-appointments backfill that re-announced them was removed, ADR 0022). Where this page describes those commands, rules or events, read it as the pre-transfer design; the page is not yet rewritten.

Every term the inbound dock uses, mapped to the identifier that implements it. Code identifiers are from internal/domain/*, wire names from apis/openapi.yaml (camelCase) and apis/asyncapi.yaml (snake_case).

Documents​

TermMeaningCode / wire identifier
ASN (advance ship notice)The supplier's announcement of a delivery and its lines.asn.Asn, POST /asns, event ASNRegistered
ASN numberThe ASN's identity: 1..64 characters of [A-Za-z0-9._-].asn.Number, asnNumber / asn_number
Supplier referenceThe supplier's own reference for the delivery.supplierRef / supplier_ref
Expected arrivalOptional announced arrival instant.expectedArrival / expected_arrival
LineOne SKU and an expected quantity on an ASN; numbered 1..n.asn.Line, lineNo / line_no
Expected quantityWhat the supplier announced for a line.expectedQty / expected_qty
Dock appointmentA carrier's booked window at one door, covering one or more ASNs.appointment.DockAppointment, appt-<uuid>
ReceiptThe counted physical receiving of one ASN.receipt.Receipt, rcpt-<uuid>

Dock vocabulary​

TermMeaningCode / wire identifier
Door / dock doorA facility-layout slot with role Dock where trucks are worked.appointment.DoorCode, doorCode / door_code
Inbound dock doorA door whose dockFlow is Inbound or Both.dock_doors table, GET /docks
WindowThe half-open interval [start, end) a door is booked for; at most 4 hours.appointment.Window, MaxWindow
CarrierThe haulier the window is booked for.carrier
Check-inThe carrier's arrival at the door, allowed from 30 minutes before the window until it ends.CheckIn, CheckInLeadTime
Walk-inA delivery received without an appointment.OpenReceiptCommand.AppointmentID == ""
ScheduleThe domain service that refuses overlapping active windows on one door.appointment.Schedule.CheckNoOverlap

Receiving vocabulary​

TermMeaningCode / wire identifier
SnapshotThe read-only copy of an ASN a receipt is opened against.asn.Snapshot, Asn.Snapshot()
ReceivingThe ASN state while a receipt is open.asn.Receiving
Receive a lineRecord a quantity against a line.Receipt.ReceiveLine, POST /receipts/{receiptId}/lines
ConditionWhether received units are fit to stock: Good or Damaged.receipt.Condition
Good / DamagedThe two counters of a receipt line.receivedGood, receivedDamaged
Received quantityGood plus damaged.Line.Received(), received_qty
Over-receiptMore units than expected; accepted and reported.discrepancy kind Over
DiscrepancyA difference between expected and received found on close.receipt.Discrepancy, discrepancies[]
Short / Over / DamagedThe three discrepancy kinds; one line can carry several.receipt.KindShort, KindOver, KindDamaged
HandoverPublishing each received line so inventory-storage books the Good units.ReceiptLineReceived

Platform vocabulary​

TermMeaningCode / wire identifier
VersionStarts at 1, +1 per accepted change; the strong ETag and the If-Match value.Version(), ETag
Idempotency keyCaller-supplied key that makes a POST replay-safe.Idempotency-Key, idempotency_keys
Local copyA table built from a producer's events so no live lookup is needed.known_skus, dock_doors
ModeWhether a local copy is enforced. The runtime always uses kafka; permissive exists only as a unit-test value of usecases.Mode (ADR 0011).usecases.Mode, PRODUCT_MODE, DOCK_DOOR_MODE
OutboxTable of already-encoded events written in the same transaction as the change.outbox_events
Processed eventA consumer's claim of a CloudEvents id, for dedupe.processed_events

Words that mean something else elsewhere​

WordHereElsewhere in the fleet
ReceiveCount units at the dock against an ASN line.In inventory-storage, ReceiveStock stages units in stock; this context hands it the Good lines.
DoorA facility-layout slot with role Dock.In facility-layout it is a LocationSlot.
LocationNot used: this context never says where goods go.inventory-storage / facility-layout own placement.