forked from LouisAldorio/go-tiktok
/
logistic_.go
62 lines (53 loc) · 1.86 KB
/
logistic_.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package gotiktok
type WarehouseAddress struct {
Region string `json:"region"`
State string `json:"state"`
City string `json:"city"`
District string `json:"district"`
Town string `json:"town"`
ContactPerson string `json:"contact_person"`
PostalCode string `json:"postal_code"`
FullAddress string `json:"full_address"`
RegionCode string `json:"region_code"`
PhoneNumber string `json:"phone_number"`
}
type Warehouse struct {
Id string `json:"id"`
Name string `json:"name"`
EffectStatus string `json:"effect_status"`
Type string `json:"type"`
SubType string `json:"sub_type"`
IsDefault bool `json:"is_default"`
}
type WarehouseList struct {
Warehouses []Warehouse `json:"warehouses"`
}
type WarehouseDeliveryOptionDimensionLimit struct {
MaxHeight int `json:"max_height"`
MaxLength int `json:"max_length"`
MaxWidth int `json:"max_width"`
Unit string `json:"unit"`
}
type WarehouseDeliveryOptionWeightLimit struct {
MaxWeight int `json:"max_weight"`
MinWeight int `json:"min_weight"`
Unit string `json:"unit"`
}
type WarehouseDeliveryOption struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
WeightLimit WarehouseDeliveryOptionWeightLimit `json:"weight_limit"`
Dimension WarehouseDeliveryOptionDimensionLimit `json:"dimension_limit"`
}
type WarehouseDeliveryOptionList struct {
DeliveryOptions []WarehouseDeliveryOption `json:"delivery_options"`
}
type ShippingProvider struct {
Id string `json:"id"`
Name string `json:"name"`
}
type ShippingProviderList struct {
ShippingProviders []ShippingProvider `json:"shipping_providers"`
}