-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresponse_leg.go
74 lines (67 loc) · 2.76 KB
/
response_leg.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
63
64
65
66
67
68
69
70
71
72
73
74
package browse
//GetItemByLegacyIdResponse is a responce for GetItemByLegacyIdRequest
type GetItemByLegacyIdResponse struct {
Item
}
//GetItemsByItemGroupResponse is a responce for GetItemsByItemGroupRequest
type GetItemsByItemGroupResponse struct {
CommonDescriptions []CommonDescription `json:"commonDescriptions"`
Items []Item `json:"items"`
// Warnings []ErrorDetailV3 `json:"warnings"` // TODO
}
type CommonDescription struct {
Description string `json:"description"`
ItemIDs []string `json:"itemIds"`
}
type Item struct {
ItemID string `json:"itemId"`
Title string `json:"title"`
ShortDescription string `json:"shortDescription"`
Price Price `json:"price"`
CategoryPath string `json:"categoryPath"`
Condition string `json:"condition"`
ConditionID string `json:"conditionId"`
//itemLocation
Image Image
AdditionalImages []Image `json:"additionalImages"`
Brand string `json:"brand"`
Seller Seller `json:"seller"`
GTIN string `json:"gtin"`
MPN string `json:"mpn"`
EstimatedAvailabilities []EstimatedAvailability `json:"estimatedAvailabilities"`
ShippingOptions []ShippingOption `json:"shippingOptions"`
// shipToLocations
// returnTerms
// taxes
LocalizedAspects []LocalizedAspect `json:"localizedAspects"`
TopRatedBuyingExperience bool `json:"topRatedBuyingExperience"`
BuyingOptions []string `json:"buyingOptions"`
ItemWebURL string `json:"itemWebUrl"`
//paymentMethods
PrimaryItemGroup PrimaryItemGroup `json:"primaryItemGroup"`
//enabledForGuestCheckout
//eligibleForInlineCheckout
LegacyItemID string `json:"legacyItemId"`
//priorityListing
//adultOnly
CategoryID string `json:"categoryId"`
}
type PrimaryItemGroup struct {
ItemGroupID string `json:"itemGroupId"`
ItemGroupType string `json:"itemGroupType"`
ItemGroupHref string `json:"itemGroupHref"`
ItemGroupTitle string `json:"itemGroupTitle"`
ItemGroupImage Image `json:"itemGroupImage"`
ItemGroupAdditionalImages []Image `json:"itemGroupAdditionalImages"`
}
type LocalizedAspect struct {
Type string `json:"type"`
Name string `json:"name"`
Value string `json:"value"`
}
type EstimatedAvailability struct {
EstimatedAvailabilityStatus string `json:"estimatedAvailabilityStatus"`
EstimatedAvailableQuantity int `json:"estimatedAvailableQuantity"`
EstimatedSoldQuantity int `json:"estimatedSoldQuantity"`
DeliveryOptions []string `json:"deliveryOptions"`
}