aboutsummaryrefslogtreecommitdiffstats
path: root/lulu.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-13 15:47:33 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-13 15:47:33 -0400
commit48f85453ffbe36f6c428a5d9a23b74122686b64c (patch)
tree13720a581029307fd9303f025d9cd8c1012261b3 /lulu.go
parent66ef9438a3489bf8a0b80bb44e320c85261a6658 (diff)
downloadlulu-48f85453ffbe36f6c428a5d9a23b74122686b64c.zip
test marshal print and reprint requests
Diffstat (limited to 'lulu.go')
-rw-r--r--lulu.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lulu.go b/lulu.go
index 2268cd1..04e34ab 100644
--- a/lulu.go
+++ b/lulu.go
@@ -241,8 +241,7 @@ func (c *Client) Print(contact EmailAddress, externalId string, productionDelay
if err := verifyProductionDelay(productionDelay); err != nil {
return PrintJob{}, pkgErr(err)
}
-
- req := printReq{
+ req := printReq[Printable]{
Contact: contact,
ExternalId: externalId,
LineItems: items,
@@ -250,7 +249,6 @@ func (c *Client) Print(contact EmailAddress, externalId string, productionDelay
ShipAddr: addr,
ShipOpt: shipOpt,
}
-
var job PrintJob
err := c.postDecode(printJobsPath, req, http.StatusCreated, &job)
if err != nil {