OrderSummary

data class OrderSummary(val tenantId: String, val orderId: String, val buyerId: String?, val status: OrderStatus, val totalAmount: BigDecimal, val units: Int, val updatedAt: Long)

One line of a buyer's order history: an order as its buyer lists them, by the time it last changed. The OrderSummaryProjection writes it from the order's commits; the history page reads it from the store the OrderSummaries are kept in, which holds no event and no state of the aggregate.

Constructors

Link copied to clipboard
constructor(tenantId: String, orderId: String, buyerId: String?, status: OrderStatus, totalAmount: BigDecimal, units: Int, updatedAt: Long)

Properties

Link copied to clipboard

The order's buyer: its owner, null for an order without one.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val units: Int

The units the order holds, all its lines added up.

Link copied to clipboard

When the order last changed, in epoch milliseconds.