Skip to content

Commit ec4e4a9

Browse files
committed
allocated and deallocated events [two_new_events]
1 parent 6b767c1 commit ec4e4a9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/allocation/events.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,18 @@ class Event:
77
class OutOfStock(Event):
88
sku: str
99

10+
11+
@dataclass
12+
class Allocated(Event):
13+
orderid: str
14+
sku: str
15+
qty: int
16+
batchref: str
17+
18+
19+
@dataclass
20+
class Deallocated(Event):
21+
orderid: str
22+
sku: str
23+
qty: int
24+

0 commit comments

Comments
 (0)