SubmitOrder

@Summary(value = "Submit an order")
data class SubmitOrder(val items: List<OrderItem>)

Submits an order of items. The basket context sends it when its buyer checks out, with the order's id fixed by the basket. The order belongs to the buyer: a saga's command carries the scope of the basket it is derived from, whose owner is its buyer, and the order takes its owner from the command that creates it. An order has items, each valid (OrderItem's constraints): the gateway checks that before the order decides.

Constructors

Link copied to clipboard
constructor(items: List<OrderItem>)

Properties

Link copied to clipboard
@NotEmpty
@Valid
val items: List<OrderItem>