toggle menu
Wow
3.16.8
jvm
switch theme
search in API
example-domain
/
me.ahoo.wow.example.domain.cart
/
Cart
Cart
@
StaticTenantId
@
AggregateRoot
(
commands
=
[
MountedCommand::class
]
)
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