Package-level declarations
Types
Adds quantity of productId at unitPrice to the basket, creating the basket on its first item. Adding a product already in the basket adds to its quantity, at the new price. The constraints are the command's shape: the gateway checks them before the basket decides, and answers a violation wow.command.invalid (400).
The basket was checked out: its items go to the ordering context as an order, whose number the ordering gives; it is empty again.
Checks the basket out: its items become an order in the ordering context, and the basket is emptied. The ordering numbers the order (SO-261031-42): a checkout that waits for the order's commit in the ordering context (committed(eshop-ordering), a hop of the checkout's chain) is answered its number as that hop's aggregate id.
Empties the basket.
Removes productId from the basket.