File tree 1 file changed +16
-3
lines changed
milk-planning/src/main/scala/dev/atedeg/mdm/milkplanning/types
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
package dev .atedeg .mdm .milkplanning .types
2
2
3
+ import cats .data .NonEmptyList
4
+
3
5
import dev .atedeg .mdm .products .Product
4
6
7
+ /**
8
+ * Events managed by the bounded context.
9
+ */
5
10
enum IncomingEvent :
6
- case ProductRemovedFromStock (product : Product )
7
- case ProductAddedToStock (product : Product )
8
- case RestockedMilk (quintalsOfMilk : QuintalsOfMilk )
11
+ /**
12
+ * Event representing an order placed used to estimate the [[QuintalsOfMilk quintals of milk ]] to be ordered.
13
+ */
14
+ case ReceivedOrder (products : NonEmptyList [RequestedProduct ])
9
15
16
+ /**
17
+ * Events sent by the bounded context.
18
+ */
10
19
enum OutgoingEvent :
20
+ /**
21
+ * Event to order the [[QuintalsOfMilk quintals of milk ]] needed for the next week.
22
+ * This event is emitted every week on saturday.
23
+ */
11
24
case OrderMilk (n : QuintalsOfMilk )
You can’t perform that action at this time.
0 commit comments