Skip to content

Commit 9ba670b

Browse files
committed
add commands [commands_dot_py]
1 parent 0449180 commit 9ba670b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/allocation/commands.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
@dataclass
16+
class CreateBatch(Command):
17+
ref: str
18+
sku: str
19+
qty: int
20+
eta: Optional[date] = None
21+
22+
@dataclass
23+
class ChangeBatchQuantity(Command):
24+
ref: str
25+
qty: int

0 commit comments

Comments
 (0)