OrderState

class OrderState(val id: String)

订单聚合状态 .

Author

ahoo wang

See also

Constructors

Link copied to clipboard
constructor(id: String)

Properties

Link copied to clipboard
lateinit var address: ShippingAddress
Link copied to clipboard
lateinit var customerId: String
Link copied to clipboard
val id: String

me.ahoo.wow.api.annotation.AggregateId 注解是可选的,约定默认使用字段名为 id 为聚合ID.

Link copied to clipboard
lateinit var items: List<OrderItem>

unmodifiable.

Link copied to clipboard
Link copied to clipboard

订单剩余应付金额.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun onSourcing(addressChanged: AddressChanged)
fun onSourcing(orderReceived: OrderReceived)
fun onSourcing(orderShipped: OrderShipped)

fun onSourcing(orderCreated: OrderCreated)

事件概念:既定事实,已发生的事实.(不可篡改)