diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-05-13 10:44:57 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-05-13 10:45:41 -0400 |
| commit | 56523fc6a304c09f252449342b10c52f7836c4aa (patch) | |
| tree | 07cd85a92ba3c1393805a938fbc27b8ad18162b5 /status.go | |
| parent | 520f392ca5207f5364bbed501615613e3485b84b (diff) | |
| download | lulu-56523fc6a304c09f252449342b10c52f7836c4aa.zip | |
create print job
Diffstat (limited to 'status.go')
| -rw-r--r-- | status.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/status.go b/status.go new file mode 100644 index 0000000..d2aeb30 --- /dev/null +++ b/status.go @@ -0,0 +1,29 @@ +package lulu + +//go:generate go run github.com/yawnak/string-enumer -t OrderStatus -t ItemStatus --text -o ./status_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. +) + +type ItemStatus string + +const ( + ItemCreated ItemStatus = "CREATED" + ItemAccepted ItemStatus = "ACCEPTED" + ItemRejected ItemStatus = "REJECTED" + ItemInProduction ItemStatus = "IN_PRODUCTION" + ItemError ItemStatus = "ERROR" + ItemShipped ItemStatus = "SHIPPED" +) |