Wow
Toggle table of contents
10.0.0-beta.1
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Wow
migration-rehearsal
/
me.ahoo.wow.rehearsal.example
/
Cart
Cart
@
AggregateRoot
class
Cart
(
state
:
CartState
)
The 9.x cart's decisions: a customer's cart, at most
MAX_ITEMS
products.
Members
Constructors
Cart
Link copied to clipboard
constructor
(
state
:
CartState
)
Types
Companion
Link copied to clipboard
object
Companion
Rejections
Link copied to clipboard
object
Rejections
Functions
on
Command
Link copied to clipboard
@
OnCommand
(
produces
=
[
CartItemAdded::class
,
CartQuantityChanged::class
]
)
fun
onCommand
(
command
:
AddCartItem
)
:
Decision
@
OnCommand
(
produces
=
[
CartQuantityChanged::class
]
)
fun
onCommand
(
command
:
ChangeQuantity
)
:
Decision
@
OnCommand
(
produces
=
[
CartItemRemoved::class
]
)
fun
onCommand
(
command
:
RemoveCartItem
)
:
Decision