aboutsummaryrefslogtreecommitdiffstats
path: root/ship.go
blob: a31724efb2589bbe0b94e9ad2a4e731676615aa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}