@@ -45,94 +45,23 @@ static async Task Main(string[] args)
45
45
IsActiveLimitRate = true
46
46
} ) ;
47
47
48
- var dddd = amazonConnection . Reports . CreateReportAndDownloadFile ( ReportTypes . GET_FBA_INVENTORY_AGED_DATA ) ;
49
-
50
- var parameters = new ParameterListFinancialEvents ( ) ;
51
- parameters . PostedAfter = new DateTime ( 2021 , 12 , 1 ) ;
52
- var fEvents = amazonConnection . Financial . ListFinancialEvents ( parameters ) ;
53
48
54
- //var rb=amazonConnection.Reports.CreateReportAndDownloadFile(ReportTypes.GET_FBA_STORAGE_FEE_CHARGES_DATA,DateTime.UtcNow.AddDays(-60), DateTime.UtcNow.AddDays(-1));
55
-
56
- GetEligibleShipmentServicesRequest getEligibleShipmentServicesRequest = new GetEligibleShipmentServicesRequest ( )
49
+ while ( true )
57
50
{
58
- ShippingOfferingFilter = new ShippingOfferingFilter ( )
59
- {
60
- CarrierWillPickUp = CarrierWillPickUpOption . CarrierWillPickUp ,
61
- DeliveryExperience = DeliveryExperienceOption . NoTracking ,
62
- IncludePackingSlipWithLabel = true ,
63
- IncludeComplexShippingOptions = false
64
- } ,
65
- ShipmentRequestDetails = new ShipmentRequestDetails ( )
51
+ var data = amazonConnection . ProductPricing . GetItemOffers ( new FikaAmazonAPI . Parameter . ProductPricing . ParameterGetItemOffers ( )
66
52
{
53
+ ItemCondition = ItemCondition . New ,
54
+ MarketplaceId = MarketPlace . UnitedArabEmirates . ID ,
55
+ Asin = "B000JNAMJ2"
56
+ } ) ;
57
+ Console . Write ( "." ) ;
58
+ }
67
59
68
- AmazonOrderId = "22-333333-3333333333" ,
69
- ItemList = new ItemList ( )
70
- {
71
- new Item ( )
72
- {
73
- ItemDescription = "AAAAA" ,
74
- Quantity = 1 ,
75
- OrderItemId = "11111111"
76
-
77
- }
78
- } ,
79
- ShipFromAddress = new Address ( )
80
- {
81
- AddressLine1 = "addd" ,
82
- City = "AAAA" ,
83
- DistrictOrCounty = "" ,
84
-
85
- Name = "TEST" ,
86
- PostalCode = "97122" ,
87
- CountryCode = "AE" ,
88
- Phone = "+97150999999"
89
- } ,
90
- PackageDimensions = new PackageDimensions ( )
91
- {
92
- Height = 1 ,
93
- Length = 1 ,
94
- Width = 1 ,
95
- Unit = UnitOfLength . Centimeters
96
- } ,
97
- Weight = new Weight ( 1 , UnitOfWeight . G ) ,
98
- ShippingServiceOptions = new ShippingServiceOptions ( )
99
- {
100
- DeliveryExperience = DeliveryExperienceType . NoTracking ,
101
- CarrierWillPickUp = false
102
-
103
- }
104
- } ,
105
-
106
- } ;
107
-
108
- var result = amazonConnection . MerchantFulfillment . GetEligibleShipmentServices ( getEligibleShipmentServicesRequest ) ;
109
60
110
- //createdSince cannot be after createdUntil
111
- DateTime createdSince = DateTime . UtcNow . AddDays ( - 60 ) ;
112
- DateTime createdUntil = DateTime . UtcNow ;
113
-
114
- var data222221 = amazonConnection . Reports . DownloadExistingReportAndDownloadFile (
115
- ReportTypes . GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2 ,
116
- createdSince ,
117
- createdUntil ) ;
118
-
119
-
120
- //while (true)
121
- //{
122
- // var fromDate = DateTime.UtcNow.AddDays(-3);
123
- // var toDate = DateTime.UtcNow.AddDays(-1);
124
- // var ddddd = amazonConnection.Reports.CreateReportAndDownloadFile(ReportTypes.GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA, fromDate, toDate);
125
- // Console.WriteLine(ddddd);
126
- //}
127
-
128
-
129
- DateTime startDate11 = new DateTime ( 2021 , 10 , 03 ) ;
130
- var data111 = amazonConnection . Reports . CreateReportAndDownloadFile ( ReportTypes . GET_SELLER_FEEDBACK_DATA , startDate11 , null , null ) ;
131
61
62
+ var dddd = amazonConnection . Reports . CreateReportAndDownloadFile ( ReportTypes . GET_FBA_INVENTORY_AGED_DATA ) ;
132
63
133
- var marketplaceById = MarketPlace . GetMarketPlaceByID ( "A2VIGQ35RCS4UG" ) ;
134
64
135
-
136
65
137
66
Console . ReadLine ( ) ;
138
67
0 commit comments