From 945bf090018b51247a2210f965064e3db2d9ab47 Mon Sep 17 00:00:00 2001 From: Andrew Thomas Date: Mon, 14 Nov 2022 14:37:53 +1300 Subject: [PATCH 1/8] Changed to allow sending XML as file. --- Source/FikaAmazonAPI/Services/FeedService.cs | 76 ++++++-------------- 1 file changed, 20 insertions(+), 56 deletions(-) diff --git a/Source/FikaAmazonAPI/Services/FeedService.cs b/Source/FikaAmazonAPI/Services/FeedService.cs index 6fd285ac..a0e9ce81 100644 --- a/Source/FikaAmazonAPI/Services/FeedService.cs +++ b/Source/FikaAmazonAPI/Services/FeedService.cs @@ -138,11 +138,7 @@ public async Task GetFeedDocumentProcessingReportAsync( } catch (AmazonProcessingReportDeserializeException ex) { - throw ex; - } - catch (Exception ex) - { - + throw; } return processingReport; } @@ -171,30 +167,14 @@ public string SubmitFeed(string XmlContentOrFilePath, FeedType feedType, List /// /// - public async Task SubmitFeedAsync(string XmlContentOrFilePath, FeedType feedType, List marketPlaceIds = null, FeedOptions feedOptions = null, ContentType contentType = ContentType.XML) + public async Task SubmitFeedAsync(string feedContentOrFilePath, FeedType feedType, List marketPlaceIds = null, FeedOptions feedOptions = null, ContentType contentType = ContentType.XML) { - //We are creating Feed Document var feedCreate = CreateFeedDocument(contentType); //Uploading encoded invoice file - if (contentType == ContentType.PDF) - { - _ = await PostFileDataAsync(feedCreate.Url, XmlContentOrFilePath, contentType); - } - else if (contentType == ContentType.JSON) - { - _ = await PostFileDataAsync(feedCreate.Url, XmlContentOrFilePath, contentType); - } - else if (contentType == ContentType.TXT) - { - _ = await PostFileDataAsync(feedCreate.Url, XmlContentOrFilePath, contentType); - } - else - { - _ = await PostXMLDataAsync(feedCreate.Url, XmlContentOrFilePath); - } - + _ = await PostFileDataAsync(feedCreate.Url, feedContentOrFilePath, contentType); + CreateFeedSpecification createFeedSpecification = new CreateFeedSpecification() { FeedType = feedType.ToString(), @@ -220,45 +200,29 @@ private static async Task GetStreamFromUrlAsync(string url) return new MemoryStream(imageData); } - private async Task PostXMLDataAsync(string destinationUrl, string requestXml, ContentType contentType = ContentType.XML) + private async Task PostFileDataAsync(string destinationUrl, string contentOrFilePath, ContentType contentType = ContentType.XML) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(destinationUrl); - byte[] bytes; - bytes = System.Text.Encoding.ASCII.GetBytes(requestXml); - request.ContentType = LinqHelper.GetEnumMemberValue(contentType); - request.ContentLength = bytes.Length; - request.Method = "PUT"; - Stream requestStream = await request.GetRequestStreamAsync(); - requestStream.Write(bytes, 0, bytes.Length); - requestStream.Close(); - HttpWebResponse response; - response = (HttpWebResponse)await request.GetResponseAsync(); - if (response.StatusCode == HttpStatusCode.OK) - { - Stream responseStream = response.GetResponseStream(); - string responseStr = new StreamReader(responseStream).ReadToEnd(); - return responseStr; - } - return null; - } - private async Task PostFileDataAsync(string destinationUrl, string pathFile, ContentType contentType = ContentType.XML) - { - HttpWebRequest request = (HttpWebRequest)WebRequest.Create(destinationUrl); - byte[] bytes = File.ReadAllBytes(pathFile); - //bytes = System.Text.Encoding.ASCII.GetBytes(requestXml); + byte[] bytes; + if (Uri.IsWellFormedUriString(contentOrFilePath, UriKind.RelativeOrAbsolute)) + bytes = File.ReadAllBytes(contentOrFilePath); + else + bytes = System.Text.Encoding.UTF8.GetBytes(contentOrFilePath); request.ContentType = LinqHelper.GetEnumMemberValue(contentType); request.ContentLength = bytes.Length; request.Method = "PUT"; - Stream requestStream = request.GetRequestStream(); - requestStream.Write(bytes, 0, bytes.Length); - requestStream.Close(); - HttpWebResponse response = (HttpWebResponse)await request.GetResponseAsync(); - if (response.StatusCode == HttpStatusCode.OK) + using (Stream requestStream = request.GetRequestStream()) { - Stream responseStream = response.GetResponseStream(); - string responseStr = new StreamReader(responseStream).ReadToEnd(); - return responseStr; + requestStream.Write(bytes, 0, bytes.Length); + requestStream.Close(); + HttpWebResponse response = (HttpWebResponse)await request.GetResponseAsync(); + if (response.StatusCode == HttpStatusCode.OK) + { + Stream responseStream = response.GetResponseStream(); + string responseStr = await new StreamReader(responseStream).ReadToEndAsync(); + return responseStr; + } } return null; } From 06cf1c8eeb6fd37d8b4db5e1125e13dc53dd9a0b Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Mon, 21 Nov 2022 23:26:08 +0100 Subject: [PATCH 2/8] change feed sample --- .../FikaAmazonAPI.SampleCode/FeedsSample.cs | 119 ++++++++---------- 1 file changed, 51 insertions(+), 68 deletions(-) diff --git a/Source/FikaAmazonAPI.SampleCode/FeedsSample.cs b/Source/FikaAmazonAPI.SampleCode/FeedsSample.cs index 9cd2ae7d..a79192ac 100644 --- a/Source/FikaAmazonAPI.SampleCode/FeedsSample.cs +++ b/Source/FikaAmazonAPI.SampleCode/FeedsSample.cs @@ -86,15 +86,14 @@ public void SubmitFeedInventory() var list = new List(); list.Add(new InventoryMessage() { - SKU = "8432225129778...", - Quantity = 0, - FulfillmentLatency = "2", + SKU = "API.853038006021.20789.1001", + Quantity = 1 }); createDocument.AddInventoryMessage(list); var xml = createDocument.GetXML(); var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_INVENTORY_AVAILABILITY_DATA); - + GetFeedDetails(feedID); } /// @@ -119,42 +118,9 @@ public void SubmitFeedAddProductMessage() var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_PRODUCT_DATA); - - string ResultFeedDocumentId = string.Empty; - while (string.IsNullOrEmpty(ResultFeedDocumentId)) - { - var feedOutput = amazonConnection.Feed.GetFeed(feedID); - if (feedOutput.ProcessingStatus == Feed.ProcessingStatusEnum.DONE) - { - var outPut = amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId); - - var reportOutput = outPut.Url; - - var processingReport = amazonConnection.Feed.GetFeedDocumentProcessingReport(reportOutput); - - Console.WriteLine("Amazon KSA Change Price"); - Console.WriteLine("MessagesProcessed=" + processingReport.ProcessingSummary.MessagesProcessed); - Console.WriteLine("MessagesSuccessful= " + processingReport.ProcessingSummary.MessagesSuccessful); - Console.WriteLine("MessagesWithError=" + processingReport.ProcessingSummary.MessagesWithError); - Console.WriteLine("MessagesWithWarning=" + processingReport.ProcessingSummary.MessagesWithWarning); - - if (processingReport.Result != null && processingReport.Result.Count > 0) - { - foreach (var itm in processingReport.Result) - { - Console.WriteLine("ResultDescription=" + itm.AdditionalInfo?.SKU ?? string.Empty + " > " + itm.ResultDescription); - } - } - - break; - } - - if (!(feedOutput.ProcessingStatus == Feed.ProcessingStatusEnum.INPROGRESS || - feedOutput.ProcessingStatus == Feed.ProcessingStatusEnum.INQUEUE)) - break; - else Thread.Sleep(10000); - } + GetFeedDetails(feedID); } + public async void SubmitFeedPRICING(double PRICE, string SKU) { @@ -176,32 +142,7 @@ public async void SubmitFeedPRICING(double PRICE, string SKU) var feedID = await amazonConnection.Feed.SubmitFeedAsync(xml, FeedType.POST_PRODUCT_PRICING_DATA); - string ResultFeedDocumentId = string.Empty; - while (string.IsNullOrEmpty(ResultFeedDocumentId)) - { - var feedOutput = await amazonConnection.Feed.GetFeedAsync(feedID); - if (feedOutput.ProcessingStatus == AmazonSpApiSDK.Models.Feeds.Feed.ProcessingStatusEnum.DONE) - { - var outPut = await amazonConnection.Feed.GetFeedDocumentAsync(feedOutput.ResultFeedDocumentId); - - var reportOutput = outPut.Url; - - var processingReport = await amazonConnection.Feed.GetFeedDocumentProcessingReportAsync(reportOutput); - - Console.WriteLine("MessagesProcessed=" + processingReport.ProcessingSummary.MessagesProcessed); - Console.WriteLine("MessagesSuccessful= " + processingReport.ProcessingSummary.MessagesSuccessful); - Console.WriteLine("MessagesWithError=" + processingReport.ProcessingSummary.MessagesWithError); - Console.WriteLine("MessagesWithWarning=" + processingReport.ProcessingSummary.MessagesWithWarning); - Console.WriteLine("ResultDescription=" + processingReport.Result.FirstOrDefault()?.ResultDescription); - } - - if (!(feedOutput.ProcessingStatus == AmazonSpApiSDK.Models.Feeds.Feed.ProcessingStatusEnum.INPROGRESS || - feedOutput.ProcessingStatus == AmazonSpApiSDK.Models.Feeds.Feed.ProcessingStatusEnum.INQUEUE)) - break; - else Thread.Sleep(10000); - } - - + GetFeedDetails(feedID); } @@ -229,9 +170,7 @@ public void FeebPostOrderFullfillment() var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_ORDER_FULFILLMENT_DATA); - var feedOutput = amazonConnection.Feed.GetFeed(feedID); - var outPut = amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId); - var processingReport = amazonConnection.Feed.GetFeedDocumentProcessingReport(outPut.Url); + GetFeedDetails(feedID); } public void SubmitFeedOrderAcknowledgement() @@ -254,6 +193,7 @@ public void SubmitFeedOrderAcknowledgement() var xml = createDocument.GetXML(); var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_ORDER_ACKNOWLEDGEMENT_DATA); + GetFeedDetails(feedID); } public void SubmitFeedOrderAdjustment() @@ -291,6 +231,7 @@ public void SubmitFeedOrderAdjustment() var xml = createDocument.GetXML(); var feedID = amazonConnection.Feed.SubmitFeed(xml, FeedType.POST_PAYMENT_ADJUSTMENT_DATA); + GetFeedDetails(feedID); } public void CartonContentsRequestFeed() @@ -331,6 +272,48 @@ public void CartonContentsRequestFeed() var xml222 = createDocument2.GetXML(); var feedID = amazonConnection.Feed.SubmitFeed(xml222, FeedType.POST_FBA_INBOUND_CARTON_CONTENTS); + GetFeedDetails(feedID); + } + + private void GetFeedDetails(string feedID) + { + string ResultFeedDocumentId = string.Empty; + while (string.IsNullOrEmpty(ResultFeedDocumentId)) + { + var feedOutput = amazonConnection.Feed.GetFeed(feedID); + if (feedOutput.ProcessingStatus == Feed.ProcessingStatusEnum.DONE) + { + var outPut = amazonConnection.Feed.GetFeedDocument(feedOutput.ResultFeedDocumentId); + + var reportOutput = outPut.Url; + + var processingReport = amazonConnection.Feed.GetFeedDocumentProcessingReport(outPut); + + DisplayProcessingReportMessage(processingReport); + + break; + } + + if (!(feedOutput.ProcessingStatus == Feed.ProcessingStatusEnum.INPROGRESS || + feedOutput.ProcessingStatus == Feed.ProcessingStatusEnum.INQUEUE)) + break; + else Thread.Sleep(10000); + } + } + private void DisplayProcessingReportMessage(ProcessingReportMessage processingReport) + { + Console.WriteLine("MessagesProcessed=" + processingReport.ProcessingSummary.MessagesProcessed); + Console.WriteLine("MessagesSuccessful= " + processingReport.ProcessingSummary.MessagesSuccessful); + Console.WriteLine("MessagesWithError=" + processingReport.ProcessingSummary.MessagesWithError); + Console.WriteLine("MessagesWithWarning=" + processingReport.ProcessingSummary.MessagesWithWarning); + + if (processingReport.Result != null && processingReport.Result.Count > 0) + { + foreach (var itm in processingReport.Result) + { + Console.WriteLine("ResultDescription=" + itm.AdditionalInfo?.SKU ?? string.Empty + " > " + itm.ResultDescription); + } + } } } } From 167f0b4af9cfa84d5a62b2ac2bfae4a7c7f1f188 Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Mon, 21 Nov 2022 23:27:29 +0100 Subject: [PATCH 3/8] change to v1.5.17 --- Source/FikaAmazonAPI/FikaAmazonAPI.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/FikaAmazonAPI/FikaAmazonAPI.csproj b/Source/FikaAmazonAPI/FikaAmazonAPI.csproj index 9ff45934..4c7cb7ce 100644 --- a/Source/FikaAmazonAPI/FikaAmazonAPI.csproj +++ b/Source/FikaAmazonAPI/FikaAmazonAPI.csproj @@ -7,9 +7,9 @@ CSharp Amazon Sp API true 8.0 - 1.5.16 - 1.5.16 - 1.5.16 + 1.5.17 + 1.5.17 + 1.5.17 true https://github.com/abuzuhri/Amazon-SP-API-CSharp MIT From 5748867104ad44d2fd3ce7e911c138d7b75dff04 Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Mon, 21 Nov 2022 23:41:05 +0100 Subject: [PATCH 4/8] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5f819e6d..7519b2ac 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ AmazonConnection amazonConnection = new AmazonConnection(new AmazonCredential() ``` -### Order List, For more orders sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.Test/Reports.cs). +### Order List, For more orders sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/ReportsSample.cs). ```CSharp ParameterOrderList serachOrderList = new ParameterOrderList(); serachOrderList.CreatedAfter = DateTime.UtcNow.AddMinutes(-600000); @@ -184,7 +184,7 @@ var orders = amazonConnection.Orders.GetOrders ); ``` -### Report List, For more report sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.Test/Orders.cs). +### Report List, For more report sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/OrdersSample.cs). ```CSharp var parameters = new ParameterReportList(); parameters.pageSize = 100; @@ -301,7 +301,7 @@ var data = await amazonConnection.CatalogItem.SearchCatalogItems202204Async( -### Product Pricing, For more Pricing sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.Test/ProductPricing.cs). +### Product Pricing, For more Pricing sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/ProductPricingSample.cs). ```CSharp var data = amazonConnection.ProductPricing.GetPricing( @@ -325,7 +325,7 @@ var data = amazonConnection.ProductPricing.GetCompetitivePricing( ``` -### Notifications Create Destination, For more Notifications sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.Test/Notifications.cs). +### Notifications Create Destination, For more Notifications sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/NotificationsSample.cs). ```CSharp //EventBridge @@ -351,7 +351,7 @@ var dataSqs = amazonConnection.Notification.CreateDestination( }); ``` -### Notifications Create Subscription, For more Notifications sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.Test/Notifications.cs). +### Notifications Create Subscription, For more Notifications sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/NotificationsSample.cs). ```CSharp //SQS @@ -396,7 +396,7 @@ public class CustomMessageReceiver : IMessageReceiver Here full sample for submit feed to change price and generate XML and get final report for result same as in [doc](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/use-case-guides/feeds-api-use-case-guide/feeds-api-use-case-guide_2021-06-30.md). Notes: not all [feed type](https://github.com/amzn/selling-partner-api-docs/blob/main/references/feeds-api/feedtype-values.md) finished as it's big work and effort but all classes are partial for easy change and you can generate XML outside and use our library to get data, now we support only submit existing product, change quantity and change price , I list most of XSD here Source\FikaAmazonAPI\ConstructFeed\xsd its will help you easy generate class and add it in your app to generate final feed xml. -#### Feed Submit for change price +#### Feed Submit for change price , For more Feed sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/FeedsSample.cs). ```CSharp ConstructFeedService createDocument = new ConstructFeedService("{SellerID}", "1.02"); From 1338c8e8d32211286ea2475c28938ec16fd1b6de Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Tue, 22 Nov 2022 19:55:53 +0100 Subject: [PATCH 5/8] fix #409 --- .../QuantityDiscountPriceType.cs | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs index 9531311f..daf3d62e 100644 --- a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs +++ b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs @@ -16,6 +16,7 @@ using Newtonsoft.Json; using System.ComponentModel.DataAnnotations; using static FikaAmazonAPI.Utils.Constants; +using FikaAmazonAPI.AmazonSpApiSDK.Models.CatalogItems; namespace FikaAmazonAPI.AmazonSpApiSDK.Models.ProductPricing { @@ -42,7 +43,7 @@ public QuantityDiscountPriceType() { } /// Indicates at what quantity this price becomes active. (required). /// Indicates the type of quantity discount this price applies to. (required). /// The price at this quantity tier. (required). - public QuantityDiscountPriceType(int? quantityTier = default(int?), QuantityDiscountType quantityDiscountType = default(QuantityDiscountType), MoneyType listingPrice = default(MoneyType)) + public QuantityDiscountPriceType(int? quantityTier = default(int?), QuantityDiscountType quantityDiscountType = default(QuantityDiscountType), MoneyType price = default(MoneyType)) { // to ensure "quantityTier" is required (not null) if (quantityTier == null) @@ -63,13 +64,13 @@ public QuantityDiscountPriceType() { } this.QuantityDiscountType = quantityDiscountType; } // to ensure "listingPrice" is required (not null) - if (listingPrice == null) + if (price == null) { throw new InvalidDataException("listingPrice is a required property for QuantityDiscountPriceType and cannot be null"); } else { - this.ListingPrice = listingPrice; + this.Price = price; } } @@ -85,8 +86,8 @@ public QuantityDiscountPriceType() { } /// The price at this quantity tier. /// /// The price at this quantity tier. - [DataMember(Name="listingPrice", EmitDefaultValue=false)] - public MoneyType ListingPrice { get; set; } + [DataMember(Name= "price", EmitDefaultValue=false)] + public MoneyType Price { get; set; } /// /// Returns the string presentation of the object @@ -98,7 +99,7 @@ public override string ToString() sb.Append("class QuantityDiscountPriceType {\n"); sb.Append(" QuantityTier: ").Append(QuantityTier).Append("\n"); sb.Append(" QuantityDiscountType: ").Append(QuantityDiscountType).Append("\n"); - sb.Append(" ListingPrice: ").Append(ListingPrice).Append("\n"); + sb.Append(" ListingPrice: ").Append(Price).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,9 +145,9 @@ public bool Equals(QuantityDiscountPriceType input) this.QuantityDiscountType.Equals(input.QuantityDiscountType)) ) && ( - this.ListingPrice == input.ListingPrice || - (this.ListingPrice != null && - this.ListingPrice.Equals(input.ListingPrice)) + this.Price == input.Price || + (this.Price != null && + this.Price.Equals(input.Price)) ); } @@ -163,8 +164,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.QuantityTier.GetHashCode(); if (this.QuantityDiscountType != null) hashCode = hashCode * 59 + this.QuantityDiscountType.GetHashCode(); - if (this.ListingPrice != null) - hashCode = hashCode * 59 + this.ListingPrice.GetHashCode(); + if (this.Price != null) + hashCode = hashCode * 59 + this.Price.GetHashCode(); return hashCode; } } From 679f9e8d343e40403663464e7caa3d6bd6c6a794 Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Tue, 22 Nov 2022 19:56:16 +0100 Subject: [PATCH 6/8] remove unwanted using --- .../Models/ProductPricing/QuantityDiscountPriceType.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs index daf3d62e..15cfc692 100644 --- a/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs +++ b/Source/FikaAmazonAPI/AmazonSpApiSDK/Models/ProductPricing/QuantityDiscountPriceType.cs @@ -16,7 +16,6 @@ using Newtonsoft.Json; using System.ComponentModel.DataAnnotations; using static FikaAmazonAPI.Utils.Constants; -using FikaAmazonAPI.AmazonSpApiSDK.Models.CatalogItems; namespace FikaAmazonAPI.AmazonSpApiSDK.Models.ProductPricing { From 33c654c7e50b8daa684892abb99e7d30bfebbca0 Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Tue, 22 Nov 2022 19:56:34 +0100 Subject: [PATCH 7/8] fix --- Source/FikaAmazonAPI.SampleCode/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/FikaAmazonAPI.SampleCode/Program.cs b/Source/FikaAmazonAPI.SampleCode/Program.cs index 8373ebf9..819766d6 100644 --- a/Source/FikaAmazonAPI.SampleCode/Program.cs +++ b/Source/FikaAmazonAPI.SampleCode/Program.cs @@ -42,7 +42,9 @@ static async Task Main(string[] args) var offfers = amazonConnection.ProductPricing.GetItemOffers(new Parameter.ProductPricing.ParameterGetItemOffers { - Asin = "B07WYJF6KJ" + Asin = "B0000512CU", + CustomerType=CustomerType.Business, + ItemCondition = ItemCondition.New, }); From e4e15524a94b6cb8adf34e7d437a71e993757aba Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Tue, 22 Nov 2022 19:59:27 +0100 Subject: [PATCH 8/8] change to v1.5.18 --- Source/FikaAmazonAPI/FikaAmazonAPI.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/FikaAmazonAPI/FikaAmazonAPI.csproj b/Source/FikaAmazonAPI/FikaAmazonAPI.csproj index 4c7cb7ce..6d289b54 100644 --- a/Source/FikaAmazonAPI/FikaAmazonAPI.csproj +++ b/Source/FikaAmazonAPI/FikaAmazonAPI.csproj @@ -7,9 +7,9 @@ CSharp Amazon Sp API true 8.0 - 1.5.17 - 1.5.17 - 1.5.17 + 1.5.18 + 1.5.18 + 1.5.18 true https://github.com/abuzuhri/Amazon-SP-API-CSharp MIT