aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-09-13 19:36:41 +0100
committerGravatar Chris Lovering <[email protected]>2024-09-13 19:36:41 +0100
commit0fff2c60341cedc3e5f8c7ffbeb1293c28ee0047 (patch)
tree2c6f1dcad7e20018b4c795e46b0253b86407eb9c
parentMake OrderCosts available via the dto module (diff)
Also accept a quantity for order items
-rw-r--r--thallium-backend/src/dto/orders.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/thallium-backend/src/dto/orders.py b/thallium-backend/src/dto/orders.py
index a3a046e..f4864ab 100644
--- a/thallium-backend/src/dto/orders.py
+++ b/thallium-backend/src/dto/orders.py
@@ -26,6 +26,7 @@ class OrderItem(BaseModel):
product_template_id: int
variant_id: int
+ quantity: int
class OrderCreate(BaseModel):