@@ -33,15 +33,15 @@ public IList<Item> ListCatalogItems(ParameterListCatalogItems parameterListCatal
3333 return list ;
3434 }
3535
36- public Item GetCatalogItem ( string MarketplaceId , string asin )
36+ public Item GetCatalogItem ( string asin )
3737 {
38+
3839 if ( string . IsNullOrEmpty ( asin ) )
3940 throw new InvalidDataException ( "asin is a required property and cannot be null" ) ;
40- if ( string . IsNullOrEmpty ( MarketplaceId ) )
41- throw new InvalidDataException ( "MarketplaceId is a required property and cannot be null" ) ;
41+
4242
4343 var param = new List < KeyValuePair < string , string > > ( ) ;
44- param . Add ( new KeyValuePair < string , string > ( "MarketplaceId" , MarketplaceId ) ) ;
44+ param . Add ( new KeyValuePair < string , string > ( "MarketplaceId" , MarketPlace . ID ) ) ;
4545
4646 CreateAuthorizedRequest ( CategoryApiUrls . GetCatalogItem ( asin ) , RestSharp . Method . GET , param ) ;
4747 var response = ExecuteRequest < GetCatalogItemResponse > ( ) ;
@@ -53,15 +53,14 @@ public Item GetCatalogItem(string MarketplaceId,string asin)
5353 }
5454
5555
56- public IList < Categories > ListCatalogCategories ( string MarketplaceId , string ASIN , string SellerSKU = null )
56+ public IList < Categories > ListCatalogCategories ( string ASIN , string SellerSKU = null )
5757 {
5858 if ( string . IsNullOrEmpty ( ASIN ) )
5959 throw new InvalidDataException ( "ASIN is a required property and cannot be null or empty" ) ;
60- if ( string . IsNullOrEmpty ( MarketplaceId ) )
61- throw new InvalidDataException ( "MarketplaceId is a required property and cannot be null or empty" ) ;
60+
6261
6362 var param = new List < KeyValuePair < string , string > > ( ) ;
64- param . Add ( new KeyValuePair < string , string > ( "MarketplaceId" , MarketplaceId ) ) ;
63+ param . Add ( new KeyValuePair < string , string > ( "MarketplaceId" , MarketPlace . ID ) ) ;
6564 param . Add ( new KeyValuePair < string , string > ( "ASIN" , ASIN ) ) ;
6665 if ( ! string . IsNullOrEmpty ( SellerSKU ) )
6766 param . Add ( new KeyValuePair < string , string > ( "SellerSKU" , SellerSKU ) ) ;
0 commit comments