@@ -46,6 +46,8 @@ static async Task Main(string[] args)
46
46
IsActiveLimitRate = true
47
47
} ) ;
48
48
49
+ CreateShipmentPlan ( amazonConnection ) ;
50
+
49
51
50
52
51
53
var aha = amazonConnection . ProductType . SearchDefinitionsProductTypes ( new Parameter . ProductTypes . SearchDefinitionsProductTypesParameter ( )
@@ -269,6 +271,34 @@ static async Task Main(string[] args)
269
271
}
270
272
271
273
274
+ public static void CreateShipmentPlan ( AmazonConnection amazonConnection )
275
+ {
276
+ FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . CreateInboundShipmentPlanRequest oCreateInboundShipmentPlanRequest = new FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . CreateInboundShipmentPlanRequest ( ) ;
277
+
278
+ oCreateInboundShipmentPlanRequest . ShipToCountryCode = "AE" ;
279
+ oCreateInboundShipmentPlanRequest . LabelPrepPreference = FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . LabelPrepPreference . SELLERLABEL ;
280
+
281
+
282
+ oCreateInboundShipmentPlanRequest . ShipFromAddress = new FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . Address ( ) ;
283
+ oCreateInboundShipmentPlanRequest . ShipFromAddress . AddressLine1 = "Add" ;
284
+ oCreateInboundShipmentPlanRequest . ShipFromAddress . AddressLine2 = "ADD2" ;
285
+ oCreateInboundShipmentPlanRequest . ShipFromAddress . City = "City" ;
286
+ oCreateInboundShipmentPlanRequest . ShipFromAddress . CountryCode = "AE" ;
287
+ oCreateInboundShipmentPlanRequest . ShipFromAddress . PostalCode = "0000" ;
288
+ oCreateInboundShipmentPlanRequest . ShipFromAddress . Name = "Name" ;
272
289
290
+
291
+
292
+ oCreateInboundShipmentPlanRequest . InboundShipmentPlanRequestItems = new FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . InboundShipmentPlanRequestItemList ( ) ;
293
+ FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . InboundShipmentPlanRequestItem oInboundShipmentPlanRequestItem = new FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . InboundShipmentPlanRequestItem ( ) ;
294
+ oInboundShipmentPlanRequestItem . SellerSKU = "16118" ;
295
+ oInboundShipmentPlanRequestItem . ASIN = "B08BXH6234" ;
296
+ oInboundShipmentPlanRequestItem . Quantity = 1 ;
297
+ oInboundShipmentPlanRequestItem . Condition = FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . Condition . NewItem ;
298
+
299
+ oCreateInboundShipmentPlanRequest . InboundShipmentPlanRequestItems . Add ( oInboundShipmentPlanRequestItem ) ;
300
+ FikaAmazonAPI . AmazonSpApiSDK . Models . FulfillmentInbound . CreateInboundShipmentPlanResult oResult = amazonConnection . FulFillmentInbound . CreateInboundShipmentPlan ( oCreateInboundShipmentPlanRequest ) ;
301
+
302
+ }
273
303
}
274
304
}
0 commit comments