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 { Name string `json:"name"` Phone string `json:"phone_number"` CountryCode string `json:"country_code"` PostCode string `json:"postcode"` StateCode string `json:"state_code"` City string `json:"city"` Street1 string `json:"street1"` Street2 string `json:"street2"` IsBusiness bool `json:"is_business"` }