OrderState

Event-sourced state for Order.

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
val id: String

The conventional id name makes the aggregate-ID annotation optional.

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

unmodifiable.

Link copied to clipboard
Link copied to clipboard

The amount that remains payable.

Link copied to clipboard
open override var status: OrderStatus
Link copied to clipboard

Functions

Link copied to clipboard
open override fun extract(source: ReadOnlyStateAggregate<OrderState>): AbacTags
Link copied to clipboard
fun onSourcing(addressChanged: AddressChanged)
fun onSourcing(orderReceived: OrderReceived)
fun onSourcing(orderShipped: OrderShipped)

fun onSourcing(orderCreated: OrderCreated)

Applies the initial event without external dependencies. The conventional onSourcing name makes the sourcing annotation optional.