Ejemplo n.º 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");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the FulfillmentChannel property
 /// </summary>
 /// <param name="fulfillmentChannel">FulfillmentChannel property</param>
 /// <returns>this instance</returns>
 public ListOrdersRequest WithFulfillmentChannel(FulfillmentChannelList fulfillmentChannel)
 {
     this.fulfillmentChannelField = fulfillmentChannel;
     return this;
 }
Ejemplo n.º 3
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");
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the FulfillmentChannel property
 /// </summary>
 /// <param name="fulfillmentChannel">FulfillmentChannel property</param>
 /// <returns>this instance</returns>
 public ListOrdersRequest WithFulfillmentChannel(FulfillmentChannelList fulfillmentChannel)
 {
     this.fulfillmentChannelField = fulfillmentChannel;
     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);
 }