|
3 | 3 | using FikaAmazonAPI.Parameter.Finance;
|
4 | 4 | using FikaAmazonAPI.Parameter.ListingItem;
|
5 | 5 | using FikaAmazonAPI.Parameter.ListingsItems;
|
6 |
| -using FikaAmazonAPI.Parameter.Order; |
7 | 6 | using FikaAmazonAPI.ReportGeneration;
|
8 | 7 | using FikaAmazonAPI.Utils;
|
9 | 8 | using Microsoft.Extensions.Configuration;
|
@@ -39,29 +38,29 @@ static async Task Main(string[] args)
|
39 | 38 | MarketPlace = MarketPlace.GetMarketPlaceByID(config.GetSection("FikaAmazonAPI:MarketPlaceID").Value),
|
40 | 39 | });
|
41 | 40 |
|
| 41 | + ReportManager reportManageree = new ReportManager(amazonConnection); |
| 42 | + var productsttt = reportManageree.GetProducts(); //GET_MERCHANT_LISTINGS_ALL_DATA |
42 | 43 |
|
| 44 | + Thread.Sleep(1000 * 60 * 15); |
43 | 45 |
|
44 |
| - |
45 |
| - var listSlot = amazonConnection.EasyShip20220323.ListHandoverSlots(new AmazonSpApiSDK.Models.EasyShip20220323.ListHandoverSlotsRequest |
| 46 | + FeedsSample feedsSample = new FeedsSample(amazonConnection); |
| 47 | + double priceNow = 62; |
| 48 | + double minPrice = 0.12; |
| 49 | + while (true) |
46 | 50 | {
|
47 |
| - AmazonOrderId = "171-2704093-8575999", |
48 |
| - PackageDimensions = new AmazonSpApiSDK.Models.EasyShip20220323.Dimensions |
49 |
| - { |
50 |
| - Height = 20.0M, |
51 |
| - Width = 10.0M, |
52 |
| - Length = 12.0M, |
53 |
| - Unit = "Cm" |
54 |
| - }, |
55 |
| - PackageWeight = new AmazonSpApiSDK.Models.EasyShip20220323.Weight |
56 |
| - { |
57 |
| - Unit = "G", |
58 |
| - Value = 100.0M |
59 |
| - } |
60 |
| - }); |
61 | 51 |
|
| 52 | + //Thread MapBarcodeToASIN = new Thread(() => feedsSample.SubmitFeedPRICING(priceNow, "843076000518")); |
| 53 | + //MapBarcodeToASIN.Start(); |
62 | 54 |
|
63 |
| - FeedsSample feedsSample = new FeedsSample(amazonConnection); |
64 |
| - //feedsSample.SubmitFeedOrderAcknowledgement(); |
| 55 | + Thread MapBarcodeToASIN2 = new Thread(() => feedsSample.SubmitFeedPRICING(priceNow, "074312026102...")); |
| 56 | + MapBarcodeToASIN2.Start(); |
| 57 | + |
| 58 | + priceNow = priceNow - minPrice; |
| 59 | + Thread.Sleep(1000 * 60 * 3); |
| 60 | + |
| 61 | + if (priceNow < 54) |
| 62 | + priceNow = 62; |
| 63 | + } |
65 | 64 |
|
66 | 65 | var alllll = amazonConnection.ProductPricing.GetItemOffers(new Parameter.ProductPricing.ParameterGetItemOffers
|
67 | 66 | {
|
@@ -218,14 +217,6 @@ static async Task Main(string[] args)
|
218 | 217 | var products2 = await reportManager2.GetReturnFBAOrderAsync(3); //GET_MERCHANT_LISTINGS_ALL_DATA
|
219 | 218 |
|
220 | 219 |
|
221 |
| - ParameterOrderList serachOrderList = new ParameterOrderList(); |
222 |
| - serachOrderList.CreatedAfter = DateTime.UtcNow.AddDays(-100); |
223 |
| - |
224 |
| - serachOrderList.OrderStatuses = new List<OrderStatuses>(); |
225 |
| - serachOrderList.OrderStatuses.Add(OrderStatuses.Shipped); |
226 |
| - |
227 |
| - |
228 |
| - var orders = await amazonConnection.Orders.GetOrdersAsync(serachOrderList); |
229 | 220 |
|
230 | 221 |
|
231 | 222 | //var parameterOrderList = new ParameterOrderList
|
|
0 commit comments