|
1 |
| -using FikaAmazonAPI.ConstructFeed; |
| 1 | +using FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound; |
| 2 | +using FikaAmazonAPI.ConstructFeed; |
2 | 3 | using FikaAmazonAPI.ConstructFeed.Messages;
|
3 | 4 | using FikaAmazonAPI.Parameter.Finance;
|
4 | 5 | using FikaAmazonAPI.Parameter.ListingItem;
|
5 | 6 | using FikaAmazonAPI.Parameter.ListingsItems;
|
6 | 7 | using FikaAmazonAPI.ReportGeneration;
|
7 | 8 | using FikaAmazonAPI.Utils;
|
8 | 9 | using Microsoft.Extensions.Configuration;
|
| 10 | +using Newtonsoft.Json; |
9 | 11 | using static FikaAmazonAPI.AmazonSpApiSDK.Models.ListingsItems.ListingsItemPutRequest;
|
10 | 12 | using static FikaAmazonAPI.Utils.Constants;
|
11 | 13 |
|
@@ -38,59 +40,23 @@ static async Task Main(string[] args)
|
38 | 40 | MarketPlace = MarketPlace.GetMarketPlaceByID(config.GetSection("FikaAmazonAPI:MarketPlaceID").Value),
|
39 | 41 | });
|
40 | 42 |
|
| 43 | + ReportManager reportManageree = new ReportManager(amazonConnection); |
| 44 | + var allll = reportManageree.GetInventoryAging(); |
41 | 45 |
|
42 |
| - ConstructFeedService createDocument2 = new ConstructFeedService("{SellerID}", "1.02"); |
43 |
| - |
44 |
| - var list22 = new List<CartonContentsRequest>(); |
45 |
| - list22.Add(new CartonContentsRequest() |
46 |
| - { |
47 |
| - ShipmentId = "FBA123456", |
48 |
| - Carton = new List<Carton> { |
49 |
| - new Carton() { |
50 |
| - CartonId="1", |
51 |
| - Item=new List<CartonItem>(){ |
52 |
| - new CartonItem() { |
53 |
| - QuantityInCase=1, |
54 |
| - QuantityShipped=1, |
55 |
| - SKU="7004" |
56 |
| - } |
57 |
| - } |
58 |
| - }, |
59 |
| - new Carton() { |
60 |
| - CartonId="2", |
61 |
| - Item=new List<CartonItem>(){ |
62 |
| - new CartonItem() { |
63 |
| - QuantityInCase=12, |
64 |
| - QuantityShipped=12, |
65 |
| - SKU="4051" |
66 |
| - } |
67 |
| - } |
68 |
| - } |
69 |
| - } |
70 |
| - }); |
71 |
| - |
72 |
| - createDocument2.AddCartonContentsRequest(list22); |
| 46 | + Console.WriteLine(JsonConvert.SerializeObject(new InboundShipmentPlanRequestItem() { Condition = AmazonSpApiSDK.Models.FulfillmentInbound.Condition.NewItem })); |
| 47 | + Console.WriteLine(JsonConvert.SerializeObject(new InboundShipmentPlanRequestItem() { Condition = AmazonSpApiSDK.Models.FulfillmentInbound.Condition.CollectibleLikeNew })); |
| 48 | + Console.WriteLine(JsonConvert.SerializeObject(new InboundShipmentPlanRequestItem() { Condition = AmazonSpApiSDK.Models.FulfillmentInbound.Condition.NewItem })); |
| 49 | + Console.WriteLine(JsonConvert.SerializeObject(new InboundShipmentPlanRequestItem() { Condition = AmazonSpApiSDK.Models.FulfillmentInbound.Condition.UsedGood })); |
73 | 50 |
|
74 |
| - var xml222 = createDocument2.GetXML(); |
75 | 51 |
|
76 |
| - var data22 = await amazonConnection.CatalogItem.SearchCatalogItems202204Async( |
77 |
| - new Parameter.CatalogItems.ParameterSearchCatalogItems202204 |
78 |
| - { |
79 |
| - keywords = new[] { "vitamin c" }, |
80 | 52 |
|
81 |
| - includedData = new[] { IncludedData.attributes, |
82 |
| - IncludedData.salesRanks, |
83 |
| - IncludedData.summaries, |
84 |
| - IncludedData.productTypes, |
85 |
| - IncludedData.relationships, |
86 |
| - IncludedData.dimensions, |
87 |
| - IncludedData.identifiers, |
88 |
| - IncludedData.images } |
89 |
| - }); |
| 53 | + var offfers = amazonConnection.ProductPricing.GetItemOffers(new Parameter.ProductPricing.ParameterGetItemOffers |
| 54 | + { |
| 55 | + Asin = "B000GGFYZE" |
| 56 | + }); |
90 | 57 |
|
91 | 58 |
|
92 | 59 |
|
93 |
| - ReportManager reportManageree = new ReportManager(amazonConnection); |
94 | 60 | var productsttt = reportManageree.GetProducts(); //GET_MERCHANT_LISTINGS_ALL_DATA
|
95 | 61 |
|
96 | 62 | Thread.Sleep(1000 * 60 * 15);
|
|
0 commit comments