Skip to main content

Ubiquitous Language

As built

Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses.

The terms this context speaks. The first table is the context's own ul list in model.yaml (contexts[offer-availability].ul), plus the states, value objects and policies of its aggregates. The second table holds the neighbour terms this context uses. For the six ul terms (Catalog Item, Listing, Available Quantity, Availability Basis, Inventory Feed, Full Feed) and for every neighbour term, the code identifier is the one model.yaml gives. For the other rows it is a proposed Go name, following the same package names. The domain-wide glossary is Ubiquitous Language.

This context's terms​

TermDefinitionCode identifierNot to be confused with
Catalog ItemThe network's own entry for a product, independent of who ships it: title, dimensions, weight, handling flags.catalog.ItemA Listing (the item offered from one node). A vendor's own SKU, which never appears here; vendors refer to the item by listingId.
ListingA catalogue item offered from one node. One per (catalogItemId, nodeId).listing.ListingA Catalog Item. A Delivery Offer (delivery-promise), which is a quote with a delivery window.
Available QuantityWhat a node claims it can ship now for one listing. Never negative.listing.Availability.AvailableQtyCapacity held on a Promise Book (delivery-promise). The vendor's physical stock, which this context never sees unless the basis is PHYSICAL.
Availability BasisWhy the node gave that number: PHYSICAL stock, THROUGHPUT_CONSTRAINED by its capacity before the next cutoff, or UNKNOWN. Kept as declared, never re-derived.listing.BasisPromise Basis (SCHEDULED / NOMINAL, delivery-promise), which says how a promise was computed.
AvailabilityThe value object on a listing: availableQty, basis, asOf, feedId.listing.AvailabilityThe AvailabilityView read models of delivery-promise and order-sourcing, which are their copies.
asOfThe instant the vendor's number is true for. Monotonic per listing: an update with asOf not after the current one is ignored.listing.Availability.AsOfThe time the feed was applied (appliedAt).
Inventory FeedOne vendor submission of availability for one node, full or partial, applied atomically.feed.InventoryFeedA Submission / Transaction (vendor-connectivity), the asynchronous Vendor API write that carries it.
Full FeedA feed that is the complete truth for its node; omitted listings become zero.feed.InventoryFeed.FullUpdateA partial feed (fullUpdate false), which changes only the listings it names.
Feed stateRECEIVED, then APPLIED, FAILED or SUPERSEDED (older than the node's last applied feed); a FAILED feedId may be sent again.feed.StateSubmission states PROCESSING / SUCCESS / FAILURE in vendor-connectivity.
Listing stateLIVE (sellable) or SUPPRESSED (not sellable, for example because its node is not ACTIVE).listing.StateA zero Available Quantity: a LIVE listing can have zero.
Catalog item stateACTIVE or DISCONTINUED.catalog.StateNode status ACTIVE (node-topology).
SuppressionTaking a listing out of sale; the event carries a reason.listing.Listing.SuppressDiscontinuing a catalogue item.
Suppress on node unavailablePolicy: on NodeSuspended or NodeRetired suppress every listing of the node; on NodeActivated restore those suppressed for that reason.policy.SuppressOnNodeUnavailablenode-topology suspending a node (the cause, not this policy).
Full feed zeroingPolicy: a full feed sets availableQty=0 on every listing of the node it omits.policy.FullFeedZeroingSuppression: a zeroed listing stays LIVE.
Node status viewLocal, event-fed copy of each node's status, fed by node-topology.nodestatus.ViewThe Node aggregate itself, owned by node-topology.

Neighbour terms this context uses​

TermDefinitionCode identifier (owner)Not to be confused with
NodeOne physical building of the network, of exactly one node type.node.Node (node-topology)A Listing's nodeId, which is only a reference by value.
Node TypeFULFILLMENT_CENTER, INBOUND_CROSS_DOCK, RETURNS_CENTER, SORTATION_CENTER, DELIVERY_STATION or AIR_HUB.node.Type (node-topology)Node subtype (SORTABLE, XL, ...).
Node OperatorWho runs the building: NETWORK or a VENDOR.node.Operator (node-topology)The vendor organisation (vendor.VendorAccount).
CutoffA local time by which a node declares packages are ready to be handed over.node.CutoffSlot (node-topology)The time scope of a THROUGHPUT_CONSTRAINED quantity, which the vendor computed against its own next cutoff.
VendorAn organisation operating fulfillment nodes for the network (the warehouse-systems fleet is vendor V-WS).vendor.VendorAccount (vendor-connectivity)A Seller (seller-inbound): an owner of stock, not an operator of nodes. A listing's ownerRef names the seller of record.
Submission / TransactionAn asynchronous vendor write and its outcome, reconciled by transactionId.submission.Submission (vendor-connectivity)An Inventory Feed (what this context applies).
Vendor APIThe Open Host Service of vendor-connectivity; its JSON schemas are the Published Language.apis/vendor-connectivity/openapi.yamlThis context's in-organization API (apis/offer-availability/openapi.yaml), which vendors never call.
Delivery OfferA quoted delivery window for an item, quantity, destination and tier, valid until it expires.offer.DeliveryOffer (delivery-promise)A Listing.
ScorecardA node's measured performance over a rolling window, with a grade; one metric is feed freshness.scorecard.NodeScorecard (node-performance)The declared Availability Basis.
Declared vs MeasuredWhat a vendor says against what the network observes.principle (node-performance)—

Fleet translation​

Not applicable. This context never talks to the warehouse-systems fleet. For vendor V-WS the basis originates in the fleet's network-fulfillment CapabilityOffer (its Basis PHYSICAL / THROUGHPUT_CONSTRAINED) and reaches this context only through vendor-connectivity. The canonical translation table is on WMS/WES integration.

Packaging and ownership terms​

Built, ADR 0009 as realized by offer-availability ADR 0006 (catalogue GTIN and packaging hierarchy, and the optional owner of a listing). This section is the delta the seller-inbound design added to this page; where the service decided differently, the text below says so.

TermDefinitionCode identifierNot to be confused with
Packaging HierarchyThe pack levels of one catalogue item (each, inner pack, case, pallet), each with its own GTIN and a fixed content quantity. Quantities stay in eaches.catalog.PackagingHierarchyA listing's available quantity.
Pack LevelOne of EACH, INNER, CASE, PALLET. A level other than EACH knows its child level's GTIN and how many of it it holds.catalog.PackLevelA node subtype.
Owner ReferenceThe opaque ownerRef on a listing: the seller of record of the stock. Empty means the vendor's own stock.listing.OwnerRefThe vendor operating the node.