diff --git a/commands/get_item.go b/commands/get_item.go index fbe0714..2268a1a 100644 --- a/commands/get_item.go +++ b/commands/get_item.go @@ -44,14 +44,21 @@ type GetItemResponse struct { } type ItemResponse struct { - Title string `xml:"Title"` - Description string `xml:"Description"` - ItemID string `xml:"ItemID"` - ViewItemURLForNaturalSearch string `xml:"ViewItemURLForNaturalSearch"` - PictureDetails PictureDetails `xml:"PictureDetails"` - Quantity string `xml:"Quantity"` - SellingStatus SellingStatus `xml:"SellingStatus"` + Title string `xml:"Title"` + Description string `xml:"Description"` + ItemID string `xml:"ItemID"` + SKU string `xml:"SKU"` + ViewItemURLForNaturalSearch string `xml:"ViewItemURLForNaturalSearch"` + PictureDetails PictureDetails `xml:"PictureDetails"` + Quantity int `xml:"Quantity"` + SellingStatus SellingStatus `xml:"SellingStatus"` + ProductListingDetails ProductListingDetails `xml:"ProductListingDetails"` } type PictureDetails struct { } + +type ProductListingDetails struct { + BrandMPN BrandMPN `xml:"BrandMPN"` + EAN string `xml:"EAN"` +} diff --git a/commands/get_orders.go b/commands/get_orders.go index 4b46e35..89b226e 100644 --- a/commands/get_orders.go +++ b/commands/get_orders.go @@ -106,7 +106,7 @@ type ListingDetails struct { type SellingStatus struct { CurrentPrice float64 BidCount string - QuantitySold string + QuantitySold int } type GetOrdersRequestResponse struct {