1 parent a00f801 commit f0337f4Copy full SHA for f0337f4
1 file changed
src/allocation/domain/commands.py
@@ -0,0 +1,29 @@
1
+# pylint: disable=too-few-public-methods
2
+from datetime import date
3
+from typing import Optional
4
+from dataclasses import dataclass
5
+
6
7
+class Command:
8
+ pass
9
10
11
+@dataclass
12
+class Allocate(Command):
13
+ orderid: str
14
+ sku: str
15
+ qty: int
16
17
18
19
+class CreateBatch(Command):
20
+ ref: str
21
22
23
+ eta: Optional[date] = None
24
25
26
27
+class ChangeBatchQuantity(Command):
28
29
0 commit comments