Skip to content

Commit

Permalink
Add a gift emssage to the order
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Sep 13, 2024
1 parent 33b532f commit 4096c51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thallium-backend/src/dto/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def as_printful_payload(self, voucher: Voucher) -> dict:
"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.",
},
}


Expand Down

0 comments on commit 4096c51

Please sign in to comment.