public ListInboundShipmentsResponse InvokeListInboundShipments()
        {
            // Create a request.
            ListInboundShipmentsRequest request = new ListInboundShipmentsRequest();
            string sellerId = "example";

            request.SellerId = sellerId;
            string mwsAuthToken = "example";

            request.MWSAuthToken = mwsAuthToken;
            string marketplace = "example";

            request.Marketplace = marketplace;
            ShipmentStatusList shipmentStatusList = new ShipmentStatusList();

            request.ShipmentStatusList = shipmentStatusList;
            ShipmentIdList shipmentIdList = new ShipmentIdList();

            request.ShipmentIdList = shipmentIdList;
            DateTime lastUpdatedBefore = new DateTime();

            request.LastUpdatedBefore = lastUpdatedBefore;
            DateTime lastUpdatedAfter = new DateTime();

            request.LastUpdatedAfter = lastUpdatedAfter;
            return(this.client.ListInboundShipments(request));
        }
        /// <summary>
        /// Get Inbound Shipments List
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnListInboundShipments_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);
            ListInboundShipmentsRequest request = new ListInboundShipmentsRequest();

            request.SellerId     = SellerId;
            request.MWSAuthToken = MWSAuthToken;
            request.Marketplace  = MarketplaceId;
            ShipmentStatusList list = new ShipmentStatusList();

            list.member.Add("WORKING");
            request.ShipmentStatusList = list;
            ListInboundShipmentsResponse response = client.ListInboundShipments(request);

            if (response.IsSetListInboundShipmentsResult())
            {
                ListInboundShipmentsResult listInboundShipmentsResult = response.ListInboundShipmentsResult;
                if (listInboundShipmentsResult.IsSetShipmentData())
                {
                    InboundShipmentList        shipmentData = listInboundShipmentsResult.ShipmentData;
                    List <InboundShipmentInfo> memberList   = shipmentData.member;
                    foreach (InboundShipmentInfo member in memberList)
                    {
                        strbuff = "シップメント名:" + member.ShipmentName;
                    }
                }
            }
            txtListInboundShipments.Text = strbuff;
        }
Beispiel #3
0
 public ListInboundShipmentsResponse ListInboundShipments(ListInboundShipmentsRequest request)
 {
     return(connection.Call(
                new FBAInboundServiceMWSClient.Request <ListInboundShipmentsResponse>("ListInboundShipments", typeof(ListInboundShipmentsResponse), servicePath),
                request));
 }
Beispiel #4
0
 public ListInboundShipmentsResponse ListInboundShipments(ListInboundShipmentsRequest request)
 {
     return(newResponse <ListInboundShipmentsResponse>());
 }