From 9010ebe8a581fb9db7bc6e97d40ff062fb18495f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 12 May 2026 15:35:06 -0400 Subject: unmarshal GET /print-jobs response --- order.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 order.go (limited to 'order.go') diff --git a/order.go b/order.go new file mode 100644 index 0000000..ec53071 --- /dev/null +++ b/order.go @@ -0,0 +1,18 @@ +package lulu + +//go:generate go run github.com/yawnak/string-enumer -t OrderStatus --text -o ./order_gen.go . + +type OrderStatus string + +const ( + OrderCreated OrderStatus = "CREATED" // Print-Job created. + OrderUnpaid OrderStatus = "UNPAID" // Print-Job can be paid. + OrderPaymentInProgress OrderStatus = "PAYMENT_IN_PROGRESS" // Payment is in Progress. + OrderProductionDelayed OrderStatus = "PRODUCTION_DELAYED" // Print-Job is paid and will move to production after the mandatory production delay. + OrderProductionReady OrderStatus = "PRODUCTION_READY" // Production delay has ended and the Print-Job will move to "in production" shortly. + OrderInProduction OrderStatus = "IN_PRODUCTION" // Print-Job submitted to printer. + OrderShipped OrderStatus = "SHIPPED" // Print-Job is fully shipped. + OrderDelivered OrderStatus = "DELIVERED" // Print-Job has been delivered by the carrier. This is supported by USPS, FedEx, and UPS. + OrderRejected OrderStatus = "REJECTED" // When there is a problem with the input data or the file, Lulu will reject a Print-Job with a detailed error message. Please contact our experts if you need help in resolving this issue. + OrderCanceled OrderStatus = "CANCELED" // You can cancel a Print-Job as long as it is “unpaid” using an API request to the status endpoint. In rare cases, Lulu might also cancel a Print-Job if a problem has surfaced in production and the order cannot be fulfilled. +) -- cgit v1.2.3