diff --git a/commands/common.go b/commands/common.go index a6d6d51..a395043 100644 --- a/commands/common.go +++ b/commands/common.go @@ -38,7 +38,8 @@ type Storefront struct { type ProductListingDetails struct { UPC string - BrandMPN BrandMPN + BrandMPN BrandMPN `xml:"BrandMPN"` + EAN string `xml:"EAN"` } type PrimaryCategory struct { @@ -55,7 +56,8 @@ type NameValueList struct { } type BrandMPN struct { - Brand, MPN string + Brand string `xml:"Brand"` + MPN string `xml:"MPN"` } type BestOfferDetails struct { diff --git a/commands/get_item.go b/commands/get_item.go index 2268a1a..c36173e 100644 --- a/commands/get_item.go +++ b/commands/get_item.go @@ -57,8 +57,3 @@ type ItemResponse struct { type PictureDetails struct { } - -type ProductListingDetails struct { - BrandMPN BrandMPN `xml:"BrandMPN"` - EAN string `xml:"EAN"` -}