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