From 0991369ace890498d0d4a67d72b096e7b053f553 Mon Sep 17 00:00:00 2001 From: lrodham Date: Tue, 28 Nov 2017 21:54:13 +0000 Subject: [PATCH] minor updates --- commands/get_item.go | 21 ++++++++++++++------- commands/get_orders.go | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) 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 {