Skip to content

Commit 3a52cce

Browse files
committed
add Allocated event [allocated_event]
1 parent 0d3891e commit 3a52cce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/allocation/events.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
class Event:
55
pass
66

7+
@dataclass
8+
class Allocated(Event):
9+
orderid: str
10+
sku: str
11+
qty: int
12+
batchref: str
13+
714
@dataclass
815
class OutOfStock(Event):
916
sku: str

0 commit comments

Comments
 (0)