/// <summary> /// Update InboundShipment /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnUpdateInboundShipment_Click(object sender, RoutedEventArgs e) { string SellerId = CommonValue.strMerchantId; string MarketplaceId = CommonValue.strMarketplaceId; string AccessKeyId = CommonValue.strAccessKeyId; string SecretKeyId = CommonValue.strSecretKeyId; string ApplicationVersion = CommonValue.strApplicationVersion; string ApplicationName = CommonValue.strApplicationName; string MWSAuthToken = CommonValue.strMWSAuthToken; string strbuff = string.Empty; FBAInboundServiceMWSConfig config = new FBAInboundServiceMWSConfig(); config.ServiceURL = CommonValue.strServiceURL; FBAInboundServiceMWSClient client = new FBAInboundServiceMWSClient( AccessKeyId, SecretKeyId, ApplicationName, ApplicationVersion, config); UpdateInboundShipmentRequest request = new UpdateInboundShipmentRequest(); request.SellerId = SellerId; request.Marketplace = MarketplaceId; request.MWSAuthToken = MWSAuthToken; request.ShipmentId = txtShipId2.Text; InboundShipmentItemList itemList = new InboundShipmentItemList(); InboundShipmentItem item = new InboundShipmentItem(); item.SellerSKU = txtSKU2.Text; item.QuantityShipped = decimal.Parse(txtQuantity2.Text); itemList.member.Add(item); request.WithInboundShipmentItems(itemList); UpdateInboundShipmentResponse response = client.UpdateInboundShipment(request); if (response.IsSetUpdateInboundShipmentResult()) { strbuff = "正常に処理が完了しました。"; } else { strbuff = "処理途中でエラーが発生しました。"; } txtUpdateInboundShipment.Text = strbuff; }
public UpdateInboundShipmentResponse InvokeUpdateInboundShipment() { // Create a request. UpdateInboundShipmentRequest request = new UpdateInboundShipmentRequest(); string sellerId = "example"; request.SellerId = sellerId; string mwsAuthToken = "example"; request.MWSAuthToken = mwsAuthToken; string marketplace = "example"; request.Marketplace = marketplace; string shipmentId = "example"; request.ShipmentId = shipmentId; InboundShipmentHeader inboundShipmentHeader = new InboundShipmentHeader(); request.InboundShipmentHeader = inboundShipmentHeader; InboundShipmentItemList inboundShipmentItems = new InboundShipmentItemList(); request.InboundShipmentItems = inboundShipmentItems; return(this.client.UpdateInboundShipment(request)); }
public UpdateInboundShipmentResponse UpdateInboundShipment(UpdateInboundShipmentRequest request) { return(connection.Call( new FBAInboundServiceMWSClient.Request <UpdateInboundShipmentResponse>("UpdateInboundShipment", typeof(UpdateInboundShipmentResponse), servicePath), request)); }
public UpdateInboundShipmentResponse UpdateInboundShipment(UpdateInboundShipmentRequest request) { return(newResponse <UpdateInboundShipmentResponse>()); }