예제 #1
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _asin                       = reader.Read <string>("ASIN");
     _sellerSKU                  = reader.Read <string>("SellerSKU");
     _orderItemId                = reader.Read <string>("OrderItemId");
     _title                      = reader.Read <string>("Title");
     _quantityOrdered            = reader.Read <decimal>("QuantityOrdered");
     _quantityShipped            = reader.Read <decimal?>("QuantityShipped");
     _productInfo                = reader.Read <ProductInfoDetail>("ProductInfo");
     _pointsGranted              = reader.Read <PointsGrantedDetail>("PointsGranted");
     _itemPrice                  = reader.Read <Money>("ItemPrice");
     _shippingPrice              = reader.Read <Money>("ShippingPrice");
     _giftWrapPrice              = reader.Read <Money>("GiftWrapPrice");
     _itemTax                    = reader.Read <Money>("ItemTax");
     _shippingTax                = reader.Read <Money>("ShippingTax");
     _giftWrapTax                = reader.Read <Money>("GiftWrapTax");
     _shippingDiscount           = reader.Read <Money>("ShippingDiscount");
     _promotionDiscount          = reader.Read <Money>("PromotionDiscount");
     _promotionIds               = reader.ReadList <string>("PromotionIds", "PromotionId");
     _codFee                     = reader.Read <Money>("CODFee");
     _codFeeDiscount             = reader.Read <Money>("CODFeeDiscount");
     _isGift                     = reader.Read <bool?>("IsGift");
     _giftMessageText            = reader.Read <string>("GiftMessageText");
     _giftWrapLevel              = reader.Read <string>("GiftWrapLevel");
     _invoiceData                = reader.Read <InvoiceData>("InvoiceData");
     _conditionNote              = reader.Read <string>("ConditionNote");
     _conditionId                = reader.Read <string>("ConditionId");
     _conditionSubtypeId         = reader.Read <string>("ConditionSubtypeId");
     _scheduledDeliveryStartDate = reader.Read <string>("ScheduledDeliveryStartDate");
     _scheduledDeliveryEndDate   = reader.Read <string>("ScheduledDeliveryEndDate");
     _priceDesignation           = reader.Read <string>("PriceDesignation");
     _buyerCustomizedInfo        = reader.Read <BuyerCustomizedInfoDetail>("BuyerCustomizedInfo");
     _taxCollection              = reader.Read <TaxCollection>("TaxCollection");
 }
예제 #2
0
 /// <summary>
 /// Sets the BuyerCustomizedInfo property.
 /// </summary>
 /// <param name="buyerCustomizedInfo">BuyerCustomizedInfo property.</param>
 /// <returns>this instance.</returns>
 public OrderItem WithBuyerCustomizedInfo(BuyerCustomizedInfoDetail buyerCustomizedInfo)
 {
     this._buyerCustomizedInfo = buyerCustomizedInfo;
     return(this);
 }