From 21a01e6934a657371607833da84d7448978739f4 Mon Sep 17 00:00:00 2001 From: Tareq Abuzuhri Date: Mon, 11 Mar 2024 22:01:12 +0100 Subject: [PATCH] change to v1.7.17 --- Source/FikaAmazonAPI.SampleCode/Program.cs | 28 +++++++++++++++++++++- Source/FikaAmazonAPI/FikaAmazonAPI.csproj | 6 ++--- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Source/FikaAmazonAPI.SampleCode/Program.cs b/Source/FikaAmazonAPI.SampleCode/Program.cs index c6d4afdb..a53f225b 100644 --- a/Source/FikaAmazonAPI.SampleCode/Program.cs +++ b/Source/FikaAmazonAPI.SampleCode/Program.cs @@ -1,4 +1,5 @@ -using FikaAmazonAPI.Utils; +using FikaAmazonAPI.ReportGeneration; +using FikaAmazonAPI.Utils; using Microsoft.Extensions.Configuration; using static FikaAmazonAPI.Utils.Constants; @@ -28,6 +29,31 @@ static async Task Main(string[] args) IsDebugMode = true }); + + ReportManager reportManager = new ReportManager(amazonConnection); + //var datadddd = reportManager.GetFbaEstimateFeeData(DateTime.UtcNow.AddDays(-30), DateTime.UtcNow); + var dataddd222d = reportManager.GetReferralFeeReportData(DateTime.UtcNow.AddDays(-30), DateTime.UtcNow); + + + + var file22227 = amazonConnection.Reports.CreateReportAndDownloadFile(ReportTypes.GET_REFERRAL_FEE_PREVIEW_REPORT, DateTime.UtcNow.AddDays(-3), DateTime.UtcNow); + + + var file3337 = amazonConnection.Reports.GetReports(new Parameter.Report.ParameterReportList() + { + reportTypes = new ReportTypes[] { ReportTypes.GET_REFERRAL_FEE_PREVIEW_REPORT }, + }); + + var sss = amazonConnection.Reports.GetReport("784871019793"); + + + var file = amazonConnection.Reports.CreateReportAndDownloadFile(ReportTypes.GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA, DateTime.UtcNow.AddDays(-30), DateTime.UtcNow); + + + + + + //var feedTypes = new ParameterGetFeed { feedTypes = { FeedType.POST_PRODUCT_PRICING_DATA }, processingStatuses = ProcessingStatuses.IN_PROGRESS }; //var feeds = amazonConnection.Feed.GetFeeds(feedTypes); diff --git a/Source/FikaAmazonAPI/FikaAmazonAPI.csproj b/Source/FikaAmazonAPI/FikaAmazonAPI.csproj index 4c922b6b..ee2f8842 100644 --- a/Source/FikaAmazonAPI/FikaAmazonAPI.csproj +++ b/Source/FikaAmazonAPI/FikaAmazonAPI.csproj @@ -7,9 +7,9 @@ CSharp Amazon Sp API true 8.0 - 1.7.16 - 1.7.16 - 1.7.16 + 1.7.17 + 1.7.17 + 1.7.17 true https://github.com/abuzuhri/Amazon-SP-API-CSharp MIT