We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a18a9d commit 8fdf119Copy full SHA for 8fdf119
src/allocation/domain/events.py
@@ -1,34 +1,11 @@
1
# pylint: disable=too-few-public-methods
2
from dataclasses import dataclass
3
-from datetime import date
4
-from typing import Optional
5
6
7
class Event:
8
pass
9
10
11
-@dataclass
12
-class BatchCreated(Event):
13
- ref: str
14
- sku: str
15
- qty: int
16
- eta: Optional[date] = None
17
-
18
19
20
-class BatchQuantityChanged(Event):
21
22
23
24
25
26
-class AllocationRequired(Event):
27
- orderid: str
28
29
30
31
32
@dataclass
33
class OutOfStock(Event):
34
sku: str
0 commit comments