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.Read <PaymentExecutionDetailItemList>("PaymentExecutionDetail"); _paymentMethod = reader.Read <string>("PaymentMethod"); _marketplaceId = reader.Read <string>("MarketplaceId"); _buyerEmail = reader.Read <string>("BuyerEmail"); _buyerName = reader.Read <string>("BuyerName"); _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"); }
/// <summary> /// Sets the PaymentExecutionDetail property. /// </summary> /// <param name="paymentExecutionDetail">PaymentExecutionDetail property.</param> /// <returns>this instance.</returns> public Order WithPaymentExecutionDetail(PaymentExecutionDetailItemList paymentExecutionDetail) { this._paymentExecutionDetail = paymentExecutionDetail; return this; }
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.Read<PaymentExecutionDetailItemList>("PaymentExecutionDetail"); _paymentMethod = reader.Read<string>("PaymentMethod"); _marketplaceId = reader.Read<string>("MarketplaceId"); _buyerEmail = reader.Read<string>("BuyerEmail"); _buyerName = reader.Read<string>("BuyerName"); _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"); }
/// <summary> /// XML fragment representation of this object /// </summary> /// <returns>XML fragment for this object.</returns> /// <remarks> /// Name for outer tag expected to be set by calling method. /// This fragment returns inner properties representation only /// </remarks> protected internal String ToXMLFragment() { StringBuilder xml = new StringBuilder(); if (IsSetAmazonOrderId()) { xml.Append("<AmazonOrderId>"); xml.Append(EscapeXML(this.AmazonOrderId)); xml.Append("</AmazonOrderId>"); } if (IsSetSellerOrderId()) { xml.Append("<SellerOrderId>"); xml.Append(EscapeXML(this.SellerOrderId)); xml.Append("</SellerOrderId>"); } if (IsSetPurchaseDate()) { xml.Append("<PurchaseDate>"); xml.Append(this.PurchaseDate); xml.Append("</PurchaseDate>"); } if (IsSetLastUpdateDate()) { xml.Append("<LastUpdateDate>"); xml.Append(this.LastUpdateDate); xml.Append("</LastUpdateDate>"); } if (IsSetOrderStatus()) { xml.Append("<OrderStatus>"); xml.Append(this.OrderStatus); xml.Append("</OrderStatus>"); } if (IsSetFulfillmentChannel()) { xml.Append("<FulfillmentChannel>"); xml.Append(this.FulfillmentChannel); xml.Append("</FulfillmentChannel>"); } if (IsSetSalesChannel()) { xml.Append("<SalesChannel>"); xml.Append(EscapeXML(this.SalesChannel)); xml.Append("</SalesChannel>"); } if (IsSetOrderChannel()) { xml.Append("<OrderChannel>"); xml.Append(EscapeXML(this.OrderChannel)); xml.Append("</OrderChannel>"); } if (IsSetShipServiceLevel()) { xml.Append("<ShipServiceLevel>"); xml.Append(EscapeXML(this.ShipServiceLevel)); xml.Append("</ShipServiceLevel>"); } if (IsSetShippingAddress()) { Address shippingAddressObj = this.ShippingAddress; xml.Append("<ShippingAddress>"); xml.Append(shippingAddressObj.ToXMLFragment()); xml.Append("</ShippingAddress>"); } if (IsSetOrderTotal()) { Money orderTotalObj = this.OrderTotal; xml.Append("<OrderTotal>"); xml.Append(orderTotalObj.ToXMLFragment()); xml.Append("</OrderTotal>"); } if (IsSetNumberOfItemsShipped()) { xml.Append("<NumberOfItemsShipped>"); xml.Append(this.NumberOfItemsShipped); xml.Append("</NumberOfItemsShipped>"); } if (IsSetNumberOfItemsUnshipped()) { xml.Append("<NumberOfItemsUnshipped>"); xml.Append(this.NumberOfItemsUnshipped); xml.Append("</NumberOfItemsUnshipped>"); } if (IsSetPaymentExecutionDetail()) { PaymentExecutionDetailItemList paymentExecutionDetailObj = this.PaymentExecutionDetail; xml.Append("<PaymentExecutionDetail>"); xml.Append(paymentExecutionDetailObj.ToXMLFragment()); xml.Append("</PaymentExecutionDetail>"); } if (IsSetPaymentMethod()) { xml.Append("<PaymentMethod>"); xml.Append(this.PaymentMethod); xml.Append("</PaymentMethod>"); } if (IsSetMarketplaceId()) { xml.Append("<MarketplaceId>"); xml.Append(EscapeXML(this.MarketplaceId)); xml.Append("</MarketplaceId>"); } if (IsSetBuyerEmail()) { xml.Append("<BuyerEmail>"); xml.Append(EscapeXML(this.BuyerEmail)); xml.Append("</BuyerEmail>"); } if (IsSetBuyerName()) { xml.Append("<BuyerName>"); xml.Append(EscapeXML(this.BuyerName)); xml.Append("</BuyerName>"); } if (IsSetShipmentServiceLevelCategory()) { xml.Append("<ShipmentServiceLevelCategory>"); xml.Append(EscapeXML(this.ShipmentServiceLevelCategory)); xml.Append("</ShipmentServiceLevelCategory>"); } if (IsSetShippedByAmazonTFM()) { xml.Append("<ShippedByAmazonTFM>"); xml.Append(this.ShippedByAmazonTFM); xml.Append("</ShippedByAmazonTFM>"); } if (IsSetTFMShipmentStatus()) { xml.Append("<TFMShipmentStatus>"); xml.Append(EscapeXML(this.TFMShipmentStatus)); xml.Append("</TFMShipmentStatus>"); } if (IsSetCbaDisplayableShippingLabel()) { xml.Append("<CbaDisplayableShippingLabel>"); xml.Append(EscapeXML(this.CbaDisplayableShippingLabel)); xml.Append("</CbaDisplayableShippingLabel>"); } if (IsSetOrderType()) { xml.Append("<OrderType>"); xml.Append(EscapeXML(this.OrderType)); xml.Append("</OrderType>"); } if (IsSetEarliestShipDate()) { xml.Append("<EarliestShipDate>"); xml.Append(this.EarliestShipDate); xml.Append("</EarliestShipDate>"); } if (IsSetLatestShipDate()) { xml.Append("<LatestShipDate>"); xml.Append(this.LatestShipDate); xml.Append("</LatestShipDate>"); } return(xml.ToString()); }
/// <summary> /// Sets the PaymentExecutionDetail property /// </summary> /// <param name="paymentExecutionDetail">PaymentExecutionDetail property</param> /// <returns>this instance</returns> public Order WithPaymentExecutionDetail(PaymentExecutionDetailItemList paymentExecutionDetail) { this.paymentExecutionDetailField = paymentExecutionDetail; return(this); }