aboutsummaryrefslogtreecommitdiffstats
path: root/ship.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-08 17:44:16 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-08 17:44:16 -0400
commit8e1e1b0b71cea0705bb2ab7ed9b4c25379b92a77 (patch)
tree130a8e83d94ceef4a239336a32fa1a8b9ee7f697 /ship.go
parentace7694bad5752aa38fec3a13c071cf7b2bebfce (diff)
downloadlulu-8e1e1b0b71cea0705bb2ab7ed9b4c25379b92a77.zip
shipping address and speed
Diffstat (limited to 'ship.go')
-rw-r--r--ship.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/ship.go b/ship.go
new file mode 100644
index 0000000..a31724e
--- /dev/null
+++ b/ship.go
@@ -0,0 +1,23 @@
+package lulu
+
+//go:generate go run github.com/yawnak/string-enumer -t ShippingLevel --text -o ./ship_gen.go .
+
+// ShippingLevel is the quality/speed with which a package is shipped.
+type ShippingLevel string
+
+const (
+ Mail ShippingLevel = "MAIL" // Slowest ship method. Depending on the destination, tracking might not be available.
+ PriorityMail ShippingLevel = "PRIORITY_MAIL" // Priority mail shipping
+ Ground ShippingLevel = "GROUND" // Courier based shipping using ground transportation in the US.
+ Expedited ShippingLevel = "EXPEDITED" // Expedited (2nd day) delivery via air mail or equivalent.
+ Express ShippingLevel = "EXPRESS" // Overnight delivery. Fastest shipping available.
+)
+
+type ShippingAddress struct {
+ City string `json:"city"` // Lübeck
+ CountryCode string `json:"country_code"` // DE
+ PostCode string `json:"postcode"` // 23552
+ StateCode string `json:"state_code"`
+ Street1 string `json:"street1"` // Holstenstr. 40
+ Phone string `json:"phone_number"` // 844-212-0689
+}