OrderState

The state of an Order, changed in place by its events. Every property has a value before the order is submitted: the kernel serializes the state as it is.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Why the order was cancelled; null while it is not.

Link copied to clipboard

The products the inventory reserved so far.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

The order's products, each once, in the order of their first line.

Link copied to clipboard

The order's quantity of each product, its lines of one product added up.