Example #1
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _sellerId           = reader.Read <string>("SellerId");
     _createdAfter       = reader.Read <DateTime?>("CreatedAfter");
     _createdBefore      = reader.Read <DateTime?>("CreatedBefore");
     _lastUpdatedAfter   = reader.Read <DateTime?>("LastUpdatedAfter");
     _lastUpdatedBefore  = reader.Read <DateTime?>("LastUpdatedBefore");
     _orderStatus        = reader.Read <OrderStatusList>("OrderStatus");
     _marketplaceId      = reader.Read <MarketplaceIdList>("MarketplaceId");
     _fulfillmentChannel = reader.Read <FulfillmentChannelList>("FulfillmentChannel");
     _paymentMethod      = reader.Read <PaymentMethodList>("PaymentMethod");
     _buyerEmail         = reader.Read <string>("BuyerEmail");
     _sellerOrderId      = reader.Read <string>("SellerOrderId");
     _maxResultsPerPage  = reader.Read <decimal?>("MaxResultsPerPage");
     _tfmShipmentStatus  = reader.Read <TFMShipmentStatusList>("TFMShipmentStatus");
 }
Example #2
0
 /// <summary>
 /// Sets the MarketplaceId property
 /// </summary>
 /// <param name="marketplaceId">MarketplaceId property</param>
 /// <returns>this instance</returns>
 public ListOrdersRequest WithMarketplaceId(MarketplaceIdList marketplaceId)
 {
     this.marketplaceIdField = marketplaceId;
     return this;
 }
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _sellerId = reader.Read<string>("SellerId");
     _createdAfter = reader.Read<DateTime?>("CreatedAfter");
     _createdBefore = reader.Read<DateTime?>("CreatedBefore");
     _lastUpdatedAfter = reader.Read<DateTime?>("LastUpdatedAfter");
     _lastUpdatedBefore = reader.Read<DateTime?>("LastUpdatedBefore");
     _orderStatus = reader.Read<OrderStatusList>("OrderStatus");
     _marketplaceId = reader.Read<MarketplaceIdList>("MarketplaceId");
     _fulfillmentChannel = reader.Read<FulfillmentChannelList>("FulfillmentChannel");
     _paymentMethod = reader.Read<PaymentMethodList>("PaymentMethod");
     _buyerEmail = reader.Read<string>("BuyerEmail");
     _sellerOrderId = reader.Read<string>("SellerOrderId");
     _maxResultsPerPage = reader.Read<decimal?>("MaxResultsPerPage");
     _tfmShipmentStatus = reader.Read<TFMShipmentStatusList>("TFMShipmentStatus");
 }
Example #4
0
 /// <summary>
 /// Sets the MarketplaceId property
 /// </summary>
 /// <param name="marketplaceId">MarketplaceId property</param>
 /// <returns>this instance</returns>
 public ListOrdersRequest WithMarketplaceId(MarketplaceIdList marketplaceId)
 {
     this.marketplaceIdField = marketplaceId;
     return(this);
 }
 public ListOrdersResponse InvokeListOrders()
 {
     // Create a request.
     ListOrdersRequest request = new ListOrdersRequest();
     string sellerId = "example";
     request.SellerId = sellerId;
     DateTime createdAfter = new DateTime();
     request.CreatedAfter = createdAfter;
     DateTime createdBefore = new DateTime();
     request.CreatedBefore = createdBefore;
     DateTime lastUpdatedAfter = new DateTime();
     request.LastUpdatedAfter = lastUpdatedAfter;
     DateTime lastUpdatedBefore = new DateTime();
     request.LastUpdatedBefore = lastUpdatedBefore;
     OrderStatusList orderStatus = new OrderStatusList();
     request.OrderStatus = orderStatus;
     MarketplaceIdList marketplaceId = new MarketplaceIdList();
     request.MarketplaceId = marketplaceId;
     FulfillmentChannelList fulfillmentChannel = new FulfillmentChannelList();
     request.FulfillmentChannel = fulfillmentChannel;
     PaymentMethodList paymentMethod = new PaymentMethodList();
     request.PaymentMethod = paymentMethod;
     string buyerEmail = "example";
     request.BuyerEmail = buyerEmail;
     string sellerOrderId = "example";
     request.SellerOrderId = sellerOrderId;
     decimal maxResultsPerPage = 1;
     request.MaxResultsPerPage = maxResultsPerPage;
     TFMShipmentStatusList tfmShipmentStatus = new TFMShipmentStatusList();
     request.TFMShipmentStatus = tfmShipmentStatus;
     return this.client.ListOrders(request);
 }