Exemple #1
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _amazonOrderId          = reader.Read <string>("AmazonOrderId");
     _sellerOrderId          = reader.Read <string>("SellerOrderId");
     _purchaseDate           = reader.Read <DateTime?>("PurchaseDate");
     _lastUpdateDate         = reader.Read <DateTime?>("LastUpdateDate");
     _orderStatus            = reader.Read <string>("OrderStatus");
     _fulfillmentChannel     = reader.Read <string>("FulfillmentChannel");
     _salesChannel           = reader.Read <string>("SalesChannel");
     _orderChannel           = reader.Read <string>("OrderChannel");
     _shipServiceLevel       = reader.Read <string>("ShipServiceLevel");
     _shippingAddress        = reader.Read <Address>("ShippingAddress");
     _orderTotal             = reader.Read <Money>("OrderTotal");
     _numberOfItemsShipped   = reader.Read <decimal?>("NumberOfItemsShipped");
     _numberOfItemsUnshipped = reader.Read <decimal?>("NumberOfItemsUnshipped");
     _paymentExecutionDetail = reader.ReadList <PaymentExecutionDetailItem>("PaymentExecutionDetail", "PaymentExecutionDetailItem");
     _paymentMethod          = reader.Read <string>("PaymentMethod");
     _paymentMethodDetails   = reader.ReadList <string>("PaymentMethodDetails", "PaymentMethodDetail");
     _marketplaceId          = reader.Read <string>("MarketplaceId");
     _buyerEmail             = reader.Read <string>("BuyerEmail");
     _buyerName    = reader.Read <string>("BuyerName");
     _buyerCounty  = reader.Read <string>("BuyerCounty");
     _buyerTaxInfo = reader.Read <BuyerTaxInfo>("BuyerTaxInfo");
     _shipmentServiceLevelCategory = reader.Read <string>("ShipmentServiceLevelCategory");
     _shippedByAmazonTFM           = reader.Read <bool?>("ShippedByAmazonTFM");
     _tfmShipmentStatus            = reader.Read <string>("TFMShipmentStatus");
     _cbaDisplayableShippingLabel  = reader.Read <string>("CbaDisplayableShippingLabel");
     _orderType            = reader.Read <string>("OrderType");
     _earliestShipDate     = reader.Read <DateTime?>("EarliestShipDate");
     _latestShipDate       = reader.Read <DateTime?>("LatestShipDate");
     _earliestDeliveryDate = reader.Read <DateTime?>("EarliestDeliveryDate");
     _latestDeliveryDate   = reader.Read <DateTime?>("LatestDeliveryDate");
     _isBusinessOrder      = reader.Read <bool?>("IsBusinessOrder");
     _purchaseOrderNumber  = reader.Read <string>("PurchaseOrderNumber");
     _isPrime            = reader.Read <bool?>("IsPrime");
     _isPremiumOrder     = reader.Read <bool?>("IsPremiumOrder");
     _replacedOrderId    = reader.Read <string>("ReplacedOrderId");
     _isReplacementOrder = reader.Read <bool?>("IsReplacementOrder");
 }
Exemple #2
0
 /// <summary>
 /// Sets the BuyerTaxInfo property.
 /// </summary>
 /// <param name="buyerTaxInfo">BuyerTaxInfo property.</param>
 /// <returns>this instance.</returns>
 public Order WithBuyerTaxInfo(BuyerTaxInfo buyerTaxInfo)
 {
     this._buyerTaxInfo = buyerTaxInfo;
     return(this);
 }