forked from abuzuhri/Amazon-SP-API-CSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated AmazonConnection to include FulfillmentInboundv20240320 service.
Added FulfillmentInboundv20240320 sample code.
- Loading branch information
Casey Wilkins
committed
Jul 15, 2024
1 parent
30c1d5c
commit 51653d0
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
Source/FikaAmazonAPI.SampleCode/FulFillmentInboundv20240320Sample .cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
namespace FikaAmazonAPI.SampleCode | ||
{ | ||
public class FulFillmentInboundv20240320Sample | ||
{ | ||
AmazonConnection amazonConnection; | ||
public FulFillmentInboundv20240320Sample(AmazonConnection amazonConnection) | ||
{ | ||
this.amazonConnection = amazonConnection; | ||
} | ||
|
||
|
||
public void CreateShipmentPlan() | ||
{ | ||
FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.CreateInboundPlanRequest oCreateInboundShipmentPlanRequest = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.CreateInboundPlanRequest(); | ||
|
||
oCreateInboundShipmentPlanRequest.Name = "TestShipment"; | ||
oCreateInboundShipmentPlanRequest.DestinationMarketplaces = new List<string> {amazonConnection.GetCurrentMarketplace.ID}; | ||
|
||
|
||
oCreateInboundShipmentPlanRequest.SourceAddress = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.Address(); | ||
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine1 = "Add"; | ||
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine2 = "ADD2"; | ||
oCreateInboundShipmentPlanRequest.SourceAddress.City = "City"; | ||
oCreateInboundShipmentPlanRequest.SourceAddress.CountryCode = "AE"; | ||
oCreateInboundShipmentPlanRequest.SourceAddress.PostalCode = "0000"; | ||
oCreateInboundShipmentPlanRequest.SourceAddress.Name = "Name"; | ||
|
||
|
||
|
||
oCreateInboundShipmentPlanRequest.Items = new List<AmazonSpApiSDK.Models.FulfillmentInboundv20240320.ItemInput>(); | ||
FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.ItemInput oInboundShipmentPlanRequestItem = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.ItemInput(); | ||
oInboundShipmentPlanRequestItem.Msku = "16118"; | ||
oInboundShipmentPlanRequestItem.Quantity = 1; | ||
oInboundShipmentPlanRequestItem.LabelOwner = AmazonSpApiSDK.Models.FulfillmentInboundv20240320.LabelOwner.SELLER; | ||
oInboundShipmentPlanRequestItem.PrepOwner = AmazonSpApiSDK.Models.FulfillmentInboundv20240320.PrepOwner.SELLER; | ||
|
||
var oResult = amazonConnection.FulFillmentInboundv20240320.CreateInboundPlan(oCreateInboundShipmentPlanRequest); | ||
|
||
} | ||
|
||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters