Skip to content

Commit 26288c7

Browse files
committed
add Allocated event [allocated_event]
1 parent dfe47cf commit 26288c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/allocation/domain/events.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ class Event:
66
pass
77

88

9+
@dataclass
10+
class Allocated(Event):
11+
orderid: str
12+
sku: str
13+
qty: int
14+
batchref: str
15+
16+
917
@dataclass
1018
class OutOfStock(Event):
1119
sku: str

0 commit comments

Comments
 (0)