Skip to content

Commit f0337f4

Browse files
committed
add commands [commands_dot_py]
1 parent a00f801 commit f0337f4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/allocation/domain/commands.py

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

0 commit comments

Comments
 (0)