Wow
Toggle table of contents
5.3.8
jvm
Platform filter
jvm
Switch theme
Search in API
Wow
example-domain
/
me.ahoo.wow.example.domain.cart
/
Cart
Cart
@
StaticTenantId
@
AggregateRoot
(
commands
=
[
MountedCommand::class
,
ViewCart::class
]
)
@
AggregateRoute
(
owner
=
AggregateRoute.Owner.AGGREGATE_ID
)
class
Cart
(
state
:
CartState
)
Members
Constructors
Cart
Link copied to clipboard
constructor
(
state
:
CartState
)
Functions
on
Command
Link copied to clipboard
@
OnCommand
(
returns
=
[
CartItemAdded::class
,
CartQuantityChanged::class
]
)
fun
onCommand
(
command
:
AddCartItem
)
:
Any
fun
onCommand
(
command
:
ChangeQuantity
)
:
CartQuantityChanged
fun
onCommand
(
command
:
RemoveCartItem
)
:
CartItemRemoved