Skip to content

Commit 912bf77

Browse files
committed
remove dublicated MarketPlace.ID change to AmazonCredential.MarketPlace.ID
1 parent 4bdef8c commit 912bf77

File tree

10 files changed

+36
-45
lines changed

10 files changed

+36
-45
lines changed

Source/FikaAmazonAPI.SampleCode/Program.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ static async Task Main(string[] args)
6262

6363

6464

65-
66-
ReportManager reportManager1 = new ReportManager(amazonConnection);
67-
reportManager1.GetSellerFeedBackDataFromDays(60);
68-
69-
7065
string text = System.IO.File.ReadAllText(@"C:\Users\tareq\Downloads\Beispiel_Upload.txt");
7166

7267
var feedresultTXT = amazonConnection.Feed.SubmitFeed(text

Source/FikaAmazonAPI/Services/CatalogItemService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public CatalogItemService(AmazonCredential amazonCredential) : base(amazonCreden
1818
public IList<Item> ListCatalogItems(ParameterListCatalogItems parameterListCatalogItems)
1919
{
2020
if (string.IsNullOrEmpty(parameterListCatalogItems.MarketplaceId))
21-
parameterListCatalogItems.MarketplaceId = MarketPlace.ID;
21+
parameterListCatalogItems.MarketplaceId = AmazonCredential.MarketPlace.ID;
2222

2323
if (
2424
string.IsNullOrEmpty(parameterListCatalogItems.Query) &&
@@ -51,7 +51,7 @@ public Item GetCatalogItem(string asin)
5151
throw new InvalidDataException("asin is a required property and cannot be null");
5252

5353
var param = new List<KeyValuePair<string, string>>();
54-
param.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
54+
param.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
5555

5656
CreateAuthorizedRequest(CategoryApiUrls.GetCatalogItem(asin), RestSharp.Method.GET, param);
5757
var response = ExecuteRequest<GetCatalogItemResponse>();
@@ -88,7 +88,7 @@ public IList<Categories> ListCatalogCategories(string ASIN,string SellerSKU=null
8888

8989

9090
var param = new List<KeyValuePair<string, string>>();
91-
param.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlaceID ?? MarketPlace.ID));
91+
param.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlaceID ?? AmazonCredential.MarketPlace.ID));
9292
param.Add(new KeyValuePair<string, string>("ASIN", ASIN));
9393
if(!string.IsNullOrEmpty(SellerSKU))
9494
param.Add(new KeyValuePair<string, string>("SellerSKU", SellerSKU));

Source/FikaAmazonAPI/Services/FbaSmallandLightService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public FbaSmallandLightService(AmazonCredential amazonCredential) : base(amazonC
1717
public SmallAndLightEnrollment GetSmallAndLightEnrollmentBySellerSKU(string sellerSKU)
1818
{
1919
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
20-
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", MarketPlace.ID));
20+
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", AmazonCredential.MarketPlace.ID));
2121

2222
CreateAuthorizedRequest(FBASmallAndLightApiUrls.GetSmallAndLightEnrollmentBySellerSKU(sellerSKU), RestSharp.Method.GET);
2323

@@ -29,7 +29,7 @@ public SmallAndLightEnrollment GetSmallAndLightEnrollmentBySellerSKU(string sell
2929
public SmallAndLightEnrollment PutSmallAndLightEnrollmentBySellerSKU(string sellerSKU)
3030
{
3131
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
32-
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", MarketPlace.ID));
32+
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", AmazonCredential.MarketPlace.ID));
3333

3434

3535
CreateAuthorizedRequest(FBASmallAndLightApiUrls.PutSmallAndLightEnrollmentBySellerSKU(sellerSKU), RestSharp.Method.PUT, queryParameters);
@@ -42,7 +42,7 @@ public SmallAndLightEnrollment PutSmallAndLightEnrollmentBySellerSKU(string sell
4242
public bool DeleteSmallAndLightEnrollmentBySellerSKU(string sellerSKU)
4343
{
4444
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
45-
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", MarketPlace.ID));
45+
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", AmazonCredential.MarketPlace.ID));
4646

4747

4848
CreateAuthorizedRequest(FBASmallAndLightApiUrls.DeleteSmallAndLightEnrollmentBySellerSKU(sellerSKU), RestSharp.Method.DELETE, queryParameters);
@@ -57,7 +57,7 @@ public SmallAndLightEligibility GetSmallAndLightEligibilityBySellerSKU(string se
5757
{
5858

5959
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
60-
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", MarketPlace.ID));
60+
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", AmazonCredential.MarketPlace.ID));
6161

6262

6363
CreateAuthorizedRequest(FBASmallAndLightApiUrls.GetSmallAndLightEligibilityBySellerSKU(sellerSKU), RestSharp.Method.GET, queryParameters);
@@ -70,7 +70,7 @@ public SmallAndLightEligibility GetSmallAndLightEligibilityBySellerSKU(string se
7070
public List<FeePreview> GetSmallAndLightFeePreview(SmallAndLightFeePreviewRequest smallAndLightFeePreviewRequest)
7171
{
7272
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
73-
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", MarketPlace.ID));
73+
queryParameters.Add(new KeyValuePair<string, string>("marketplaceIds", AmazonCredential.MarketPlace.ID));
7474

7575
CreateAuthorizedRequest(FBASmallAndLightApiUrls.GetSmallAndLightFeePreview, RestSharp.Method.POST,postJsonObj: smallAndLightFeePreviewRequest);
7676

Source/FikaAmazonAPI/Services/FeedService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public string SubmitFeed(string XmlContentOrFilePath, FeedType feedType, List<st
169169
{
170170
FeedType = feedType.ToString(),
171171
InputFeedDocumentId = feedCreate.FeedDocumentId,
172-
MarketplaceIds = marketPlaceIds ?? new List<string> { MarketPlace.ID },
172+
MarketplaceIds = marketPlaceIds ?? new List<string> { AmazonCredential.MarketPlace.ID },
173173
FeedOptions = feedOptions
174174
};
175175

Source/FikaAmazonAPI/Services/FulFillmentInboundService.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public InboundShipmentResult CreateInboundShipment(string shipmentId, InboundShi
5353
public InboundShipmentResult GetPreorderInfo(string shipmentId)
5454
{
5555
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
56-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
56+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
5757

5858
CreateAuthorizedRequest(FulFillmentInboundApiUrls.GetPreorderInfo(shipmentId), RestSharp.Method.GET, queryParameters);
5959

@@ -65,7 +65,7 @@ public InboundShipmentResult GetPreorderInfo(string shipmentId)
6565
public ConfirmPreorderResult ConfirmPreorder(string shipmentId,DateTime NeedByDate)
6666
{
6767
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
68-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
68+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
6969
queryParameters.Add(new KeyValuePair<string, string>("NeedByDate", NeedByDate.ToString("YYYY-MM-DD")));
7070

7171
CreateAuthorizedRequest(FulFillmentInboundApiUrls.ConfirmPreorder(shipmentId), RestSharp.Method.GET, queryParameters);
@@ -88,7 +88,7 @@ public GetPrepInstructionsResult GetPrepInstructions(ParameterGetPrepInstruction
8888
public GetTransportDetailsResult GetTransportDetails(string shipmentId)
8989
{
9090
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
91-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
91+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
9292

9393
CreateAuthorizedRequest(FulFillmentInboundApiUrls.GetTransportDetails(shipmentId), RestSharp.Method.GET, queryParameters);
9494

@@ -110,7 +110,7 @@ public CommonTransportResult PutTransportDetails(string shipmentId, PutTransport
110110
public CommonTransportResult VoidTransport(string shipmentId)
111111
{
112112
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
113-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
113+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
114114

115115
CreateAuthorizedRequest(FulFillmentInboundApiUrls.VoidTransport(shipmentId), RestSharp.Method.POST, queryParameters);
116116

@@ -122,7 +122,7 @@ public CommonTransportResult VoidTransport(string shipmentId)
122122
public CommonTransportResult EstimateTransport(string shipmentId)
123123
{
124124
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
125-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
125+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
126126

127127
CreateAuthorizedRequest(FulFillmentInboundApiUrls.EstimateTransport(shipmentId), RestSharp.Method.POST, queryParameters);
128128

@@ -134,7 +134,7 @@ public CommonTransportResult EstimateTransport(string shipmentId)
134134
public CommonTransportResult ConfirmTransport(string shipmentId)
135135
{
136136
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
137-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
137+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
138138

139139
CreateAuthorizedRequest(FulFillmentInboundApiUrls.ConfirmTransport(shipmentId), RestSharp.Method.POST, queryParameters);
140140

@@ -156,7 +156,7 @@ public GetPrepInstructionsResult GetLabels(ParameterGetLabels parameterGetLabels
156156
public BillOfLadingDownloadURL GetBillOfLading(string shipmentId)
157157
{
158158
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
159-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
159+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
160160

161161
CreateAuthorizedRequest(FulFillmentInboundApiUrls.GetBillOfLading(shipmentId), RestSharp.Method.GET, queryParameters);
162162

@@ -188,7 +188,7 @@ public GetShipmentsResult GetShipmentItems(ParameterListReturnReasonCodes parame
188188
public GetShipmentItemsResult GetShipmentItemsByShipmentId(string shipmentId)
189189
{
190190
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
191-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
191+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
192192

193193
CreateAuthorizedRequest(FulFillmentInboundApiUrls.GetShipmentItemsByShipmentId(shipmentId), RestSharp.Method.GET, queryParameters);
194194

Source/FikaAmazonAPI/Services/FulFillmentOutboundService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public bool UpdateFulfillmentOrder(string sellerFulfillmentOrderId)
103103
public GetFeaturesResult GetFeatures()
104104
{
105105
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
106-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
106+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
107107

108108
CreateAuthorizedRequest(FulFillmentOutboundApiUrls.GetFeatures, RestSharp.Method.GET, queryParameters);
109109

@@ -115,7 +115,7 @@ public GetFeaturesResult GetFeatures()
115115
public GetFeatureInventoryResult GetFeatureInventory(string featureName,string nextToken)
116116
{
117117
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
118-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
118+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
119119
if(string.IsNullOrEmpty(nextToken))
120120
queryParameters.Add(new KeyValuePair<string, string>("nextToken", nextToken));
121121
if (string.IsNullOrEmpty(featureName))
@@ -131,7 +131,7 @@ public GetFeatureInventoryResult GetFeatureInventory(string featureName,string n
131131
public GetFeatureSkuResult GetFeatureSKU(string featureName,string sellerSku, string nextToken)
132132
{
133133
List<KeyValuePair<string, string>> queryParameters = new List<KeyValuePair<string, string>>();
134-
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", MarketPlace.ID));
134+
queryParameters.Add(new KeyValuePair<string, string>("MarketplaceId", AmazonCredential.MarketPlace.ID));
135135
if(string.IsNullOrEmpty(nextToken))
136136
queryParameters.Add(new KeyValuePair<string, string>("nextToken", nextToken));
137137
if (string.IsNullOrEmpty(featureName))

0 commit comments

Comments
 (0)