aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-09-13 19:39:16 +0100
committerGravatar Chris Lovering <[email protected]>2024-09-13 19:39:16 +0100
commit4096c511a3fea770c331464d70b3beca7ba796f3 (patch)
treee82b6aeec6fa763ace526c644cc87a4c0e84f92c
parentEstimate order costs before submitting the order (diff)
Add a gift emssage to the order
-rw-r--r--thallium-backend/src/dto/orders.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/thallium-backend/src/dto/orders.py b/thallium-backend/src/dto/orders.py
index 848e7fc..217c21b 100644
--- a/thallium-backend/src/dto/orders.py
+++ b/thallium-backend/src/dto/orders.py
@@ -43,6 +43,10 @@ class OrderCreate(BaseModel):
"external_id": voucher.id,
"recipient": self.recipient.model_dump(),
"items": [item.model_dump() for item in self.items],
+ "gift": {
+ "subject": f"To {self.recipient.name}",
+ "message": "Love from your local DevOps team.",
+ },
}