Ubiquitous Language
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.
| Term | Definition | Code identifier | Not to be confused with |
|---|---|---|---|
| Payment Authorization | A hold on the shopper's payment method for the quote total, split into allocations per shipment group. | paymentauthorization.PaymentAuthorization | A charge: an authorization moves no money until an allocation is captured. |
| Capture | Taking an allocation's money when its shipment group ships. | paymentauthorization.PaymentAuthorization.Capture | Authorize (the hold at checkout). |
| Release | Letting an uncaptured allocation go when its group is cancelled. | paymentauthorization.PaymentAuthorization.Release | Void, which cancels the whole authorization. |
| Void | Cancelling the whole authorization before any capture. | paymentauthorization.PaymentAuthorization.Void | Release (one allocation) and Refund (money already captured). |
| Refund | Returning captured money for a lost or returned package, or manually. | refund.Refund | Void and Release, which return a hold, not money. |
| Reauthorization | A fresh authorization replacing one about to expire, for allocations not yet captured. | paymentauthorization.PaymentAuthorization.Reauthorize | The 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 Token | The 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.
| Term | Definition | Code identifier | Not to be confused with |
|---|---|---|---|
| Allocation | The 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 Ref | The provider's authorization id and the ids of its captures. | paymentauthorization.ProviderRef{providerAuthorizationId, providerCaptureIds[]} | authorizationId, this context's own id for the aggregate. |
| Authorization states | AUTHORIZED, PARTIALLY_CAPTURED, CAPTURED, VOIDED, EXPIRED, DECLINED. | paymentauthorization.State | DECLINED is a terminal record of a declined attempt, not a state the aggregate moves into. |
| Declined | The provider refused the authorize attempt; the record is kept and the checkout session stays open for another token. | paymentauthorization.PaymentDeclined | A decline of the shopper's order: the order is not placed yet. |
| Expiry | The moment (expiresAt) after which the provider no longer honours the hold; no capture after it. | authorization.expiresAt, ErrCaptureAfterExpiry | Void (a choice) and Release (one group's allocation). |
| Refund Reason | LOST, RETURNED_TO_SENDER or MANUAL. | refund.Reason | The network's cancellation reasons carried by FulfillmentCancelled. |
| Refund states | REQUESTED, SUCCEEDED, FAILED. | refund.State | The authorization states. |
| Parked Fulfilment Facts | Read model: shipment, cancellation, lost and returned facts for orders not yet bound to an authorization, applied on BindOrderOnCheckoutCompleted. | ParkedFulfillmentFacts | A retry queue: parked facts wait for a bind, not for a failure. |
| Provider Idempotency Key | The key sent with every provider call, deterministic per (operation, authorizationId, groupNo). | (provider port) | The REST Idempotency-Key header, which dedupes the caller's request. |
| Bind | Attaching orderId to the session's authorization when CheckoutCompleted arrives. | BindOrder, BindOrderOnCheckoutCompleted | Authorize: the authorization exists before the order does. |
Neighbour terms this context uses
| Term | Definition (owner's) | Code identifier (owner) | Not to be confused with |
|---|---|---|---|
| Checkout Session | The purchase transaction from review to placed order. | checkoutsession.CheckoutSession (checkout) | The authorization: the session asks for it and later completes. |
| Place-Order Step | The pivot of the saga: customer-ordering POST /checkout through the ACL. | ports.OrderPlacer (checkout) | VoidAuthorization is only called after this step is definitively rejected. |
| Requote | A 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 Assignment | The 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 Number | The 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 Order | What 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).