/// <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 (IsSetBuyingPrice()) { PriceType buyingPriceObj = this.BuyingPrice; xml.Append("<BuyingPrice>"); xml.Append(buyingPriceObj.ToXMLFragment()); xml.Append("</BuyingPrice>"); } if (IsSetRegularPrice()) { MoneyType regularPriceObj = this.RegularPrice; xml.Append("<RegularPrice>"); xml.Append(regularPriceObj.ToXMLFragment()); xml.Append("</RegularPrice>"); } if (IsSetFulfillmentChannel()) { xml.Append("<FulfillmentChannel>"); xml.Append(EscapeXML(this.FulfillmentChannel)); xml.Append("</FulfillmentChannel>"); } if (IsSetItemCondition()) { xml.Append("<ItemCondition>"); xml.Append(EscapeXML(this.ItemCondition)); xml.Append("</ItemCondition>"); } if (IsSetItemSubCondition()) { xml.Append("<ItemSubCondition>"); xml.Append(EscapeXML(this.ItemSubCondition)); xml.Append("</ItemSubCondition>"); } if (IsSetSellerId()) { xml.Append("<SellerId>"); xml.Append(EscapeXML(this.SellerId)); xml.Append("</SellerId>"); } if (IsSetSellerSKU()) { xml.Append("<SellerSKU>"); xml.Append(EscapeXML(this.SellerSKU)); xml.Append("</SellerSKU>"); } return(xml.ToString()); }
/// <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 (IsSetCompetitivePriceId()) { xml.Append("<CompetitivePriceId>"); xml.Append(EscapeXML(this.CompetitivePriceId)); xml.Append("</CompetitivePriceId>"); } if (IsSetPrice()) { PriceType priceObj = this.Price; xml.Append("<Price>"); xml.Append(priceObj.ToXMLFragment()); xml.Append("</Price>"); } return(xml.ToString()); }
/// <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 (IsSetQualifiers()) { QualifiersType qualifiersObj = this.Qualifiers; xml.Append("<Qualifiers>"); xml.Append(qualifiersObj.ToXMLFragment()); xml.Append("</Qualifiers>"); } if (IsSetNumberOfOfferListingsConsidered()) { xml.Append("<NumberOfOfferListingsConsidered>"); xml.Append(this.NumberOfOfferListingsConsidered); xml.Append("</NumberOfOfferListingsConsidered>"); } if (IsSetSellerFeedbackCount()) { xml.Append("<SellerFeedbackCount>"); xml.Append(this.SellerFeedbackCount); xml.Append("</SellerFeedbackCount>"); } if (IsSetPrice()) { PriceType priceObj = this.Price; xml.Append("<Price>"); xml.Append(priceObj.ToXMLFragment()); xml.Append("</Price>"); } if (IsSetMultipleOffersAtLowestPrice()) { xml.Append("<MultipleOffersAtLowestPrice>"); xml.Append(EscapeXML(this.MultipleOffersAtLowestPrice)); xml.Append("</MultipleOffersAtLowestPrice>"); } return(xml.ToString()); }
/// <summary> /// Sets the Price property /// </summary> /// <param name="price">Price property</param> /// <returns>this instance</returns> public LowestOfferListingType WithPrice(PriceType price) { this.priceField = price; return this; }
/// <summary> /// Sets the BuyingPrice property /// </summary> /// <param name="buyingPrice">BuyingPrice property</param> /// <returns>this instance</returns> public OfferType WithBuyingPrice(PriceType buyingPrice) { this.buyingPriceField = buyingPrice; return(this); }
/// <summary> /// Sets the BuyingPrice property. /// </summary> /// <param name="buyingPrice">BuyingPrice property.</param> /// <returns>this instance.</returns> public OfferType WithBuyingPrice(PriceType buyingPrice) { this._buyingPrice = buyingPrice; return this; }
public override void ReadFragmentFrom(IMwsReader reader) { _buyingPrice = reader.Read<PriceType>("BuyingPrice"); _regularPrice = reader.Read<MoneyType>("RegularPrice"); _fulfillmentChannel = reader.Read<string>("FulfillmentChannel"); _itemCondition = reader.Read<string>("ItemCondition"); _itemSubCondition = reader.Read<string>("ItemSubCondition"); _sellerId = reader.Read<string>("SellerId"); _sellerSKU = reader.Read<string>("SellerSKU"); }
/// <summary> /// Sets the Price property. /// </summary> /// <param name="price">Price property.</param> /// <returns>this instance.</returns> public LowestOfferListingType WithPrice(PriceType price) { this._price = price; return(this); }
public override void ReadFragmentFrom(IMwsReader reader) { _qualifiers = reader.Read<QualifiersType>("Qualifiers"); _numberOfOfferListingsConsidered = reader.Read<decimal?>("NumberOfOfferListingsConsidered"); _sellerFeedbackCount = reader.Read<decimal>("SellerFeedbackCount"); _price = reader.Read<PriceType>("Price"); _multipleOffersAtLowestPrice = reader.Read<string>("MultipleOffersAtLowestPrice"); }
/// <summary> /// Sets the Price property. /// </summary> /// <param name="price">Price property.</param> /// <returns>this instance.</returns> public CompetitivePriceType WithPrice(PriceType price) { this._price = price; return(this); }
public CompetitivePriceType(string competitivePriceId, PriceType price) : base() { this._competitivePriceId = competitivePriceId; this._price = price; }
public LowestOfferListingType(QualifiersType qualifiers, decimal sellerFeedbackCount, PriceType price, string multipleOffersAtLowestPrice) : base() { this._qualifiers = qualifiers; this._sellerFeedbackCount = sellerFeedbackCount; this._price = price; this._multipleOffersAtLowestPrice = multipleOffersAtLowestPrice; }
/// <summary> /// Sets the Price property. /// </summary> /// <param name="price">Price property.</param> /// <returns>this instance.</returns> public CompetitivePriceType WithPrice(PriceType price) { this._price = price; return this; }
public override void ReadFragmentFrom(IMwsReader reader) { _condition = reader.ReadAttribute<string>("condition"); _subcondition = reader.ReadAttribute<string>("subcondition"); _belongsToRequester = reader.ReadAttribute<bool?>("belongsToRequester"); _competitivePriceId = reader.Read<string>("CompetitivePriceId"); _price = reader.Read<PriceType>("Price"); }
/// <summary> /// Sets the Price property /// </summary> /// <param name="price">Price property</param> /// <returns>this instance</returns> public CompetitivePriceType WithPrice(PriceType price) { this.priceField = price; return this; }