Skip to main content

Ubiquitous Language

Released at v0.1.4, applied to the k3s cluster

Derived from model/model.yaml. The customer-payments service is built on develop (IQVO/customer-payments at 054b3de, checked 2026-12-02), released at v0.1.4 and applied to the k3s cluster: the api and the A2A agent are deployed, the MCP server is registered in warehouse-infra and switched off. 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.

The terms this context speaks, each mapped to the identifier a future implementation must use. The first table is the context's own ul list in model.yaml. The second holds the model elements of its two aggregates. The third holds neighbour terms this context uses but does not own; their definitions come from the owning context's ul list. The storefront-wide glossary is Ubiquitous Language.

Own terms​

Derived from: model.yaml → contexts[customer-payments].ul.

TermDefinitionCode identifierNot to be confused with
Payment AuthorizationA hold on the shopper's payment method for the quote total, split into allocations per shipment group.paymentauthorization.PaymentAuthorizationA charge: an authorization moves no money until an allocation is captured.
CaptureTaking an allocation's money when its shipment group ships.paymentauthorization.PaymentAuthorization.CaptureAuthorize (the hold at checkout).
ReleaseLetting an uncaptured allocation go when its group is cancelled.paymentauthorization.PaymentAuthorization.ReleaseVoid, which cancels the whole authorization.
VoidCancelling the whole authorization before any capture.paymentauthorization.PaymentAuthorization.VoidRelease (one allocation) and Refund (money already captured).
RefundReturning captured money for a lost or returned package, or manually.refund.RefundVoid and Release, which return a hold, not money.
ReauthorizationA fresh authorization replacing one about to expire, for allocations not yet captured.paymentauthorization.PaymentAuthorization.ReauthorizeThe first authorize at checkout (AuthorizePayment); ReauthorizePayment is a separate command on the same aggregate and publishes no event of its own (see model gaps in the Aggregate Design Canvas).
Payment Method TokenThe PSP token standing in for the shopper's card; the storefront never sees a card number.(provider port)A card number or any part of one: no aggregate field holds card data.

Model elements of this context​

Derived from: model.yaml → contexts[customer-payments].aggregates (value_objects, states, commands, events), read_models, policies.

TermDefinitionCode identifierNot to be confused with
AllocationThe share of an authorization that belongs to one shipment group: groupNo, amountMinor, state PENDING, CAPTURED or RELEASED.paymentauthorization.Allocation{groupNo, amountMinor, state}The checkout session's allocation (checkoutsession.Group.AmountMinor), the same amount before it reaches this context.
Provider RefThe provider's authorization id and the ids of its captures.paymentauthorization.ProviderRef{providerAuthorizationId, providerCaptureIds[]}authorizationId, this context's own id for the aggregate.
Authorization statesAUTHORIZED, PARTIALLY_CAPTURED, CAPTURED, VOIDED, EXPIRED, DECLINED.paymentauthorization.StateDECLINED is a terminal record of a declined attempt, not a state the aggregate moves into.
DeclinedThe provider refused the authorize attempt; the record is kept and the checkout session stays open for another token.paymentauthorization.PaymentDeclinedA decline of the shopper's order: the order is not placed yet.
ExpiryThe moment (expiresAt) after which the provider no longer honours the hold; no capture after it.authorization.expiresAt, ErrCaptureAfterExpiryVoid (a choice) and Release (one group's allocation).
Refund ReasonLOST, RETURNED_TO_SENDER or MANUAL.refund.ReasonThe network's cancellation reasons carried by FulfillmentCancelled.
Refund statesREQUESTED, SUCCEEDED, FAILED.refund.StateThe authorization states.
Parked Fulfilment FactsRead model: shipment, cancellation, lost and returned facts for orders not yet bound to an authorization, applied on BindOrderOnCheckoutCompleted.ParkedFulfillmentFactsA retry queue: parked facts wait for a bind, not for a failure.
Provider Idempotency KeyThe key sent with every provider call, deterministic per (operation, authorizationId, groupNo).(provider port)The REST Idempotency-Key header, which dedupes the caller's request.
BindAttaching orderId to the session's authorization when CheckoutCompleted arrives.BindOrder, BindOrderOnCheckoutCompletedAuthorize: the authorization exists before the order does.

Neighbour terms this context uses​

TermDefinition (owner's)Code identifier (owner)Not to be confused with
Checkout SessionThe purchase transaction from review to placed order.checkoutsession.CheckoutSession (checkout)The authorization: the session asks for it and later completes.
Place-Order StepThe pivot of the saga: customer-ordering POST /checkout through the ACL.ports.OrderPlacer (checkout)VoidAuthorization is only called after this step is definitively rejected.
RequoteA definitive 409 from the network: the authorization is voided and the session carries the re-quoted offers.checkoutsession.RequotedOffer (checkout)A refund: the void happens before any capture.
Fulfillment AssignmentThe decision of which node and path fulfil one shipment group.assignment.FulfillmentAssignment (order-sourcing, network)An allocation: the assignment is the network's unit, the allocation the payment's, joined by orderId and groupNo.
Tracking NumberThe network-wide unique id of one package.journey.TrackingNumber (shipping-and-tracking, network)groupNo: PackageLost and PackageReturned carry the tracking number, which CaptureOnShipment stored against the group.
Customer OrderWhat the shopper bought, with a promise per shipment group.order.CustomerOrder (customer-ordering, network)The authorization: the order is the network's record, the authorization the storefront's money.

Fleet translation​

None. Customer Payments never touches the warehouse-systems fleet and never produces or consumes a warehouse.* topic (meta.hard_boundary).