protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetMerchant()) {
Merchant merchant = this.Merchant;
xml.Append("<Merchant>");
xml.Append(merchant.ToXMLFragment());
xml.Append("</Merchant>");
}
if (IsSetSeller()) {
Seller seller = this.Seller;
xml.Append("<Seller>");
xml.Append(seller.ToXMLFragment());
xml.Append("</Seller>");
}
if (IsSetOfferAttributes()) {
OfferAttributes offerAttributes = this.OfferAttributes;
xml.Append("<OfferAttributes>");
xml.Append(offerAttributes.ToXMLFragment());
xml.Append("</OfferAttributes>");
}
List<OfferListing> offerListingList = this.OfferListing;
foreach (OfferListing offerListing in offerListingList) {
xml.Append("<OfferListing>");
xml.Append(offerListing.ToXMLFragment());
xml.Append("</OfferListing>");
}
if (IsSetLoyaltyPoints()) {
LoyaltyPoints loyaltyPoints = this.LoyaltyPoints;
xml.Append("<LoyaltyPoints>");
xml.Append(loyaltyPoints.ToXMLFragment());
xml.Append("</LoyaltyPoints>");
}
if (IsSetPromotions()) {
Promotions promotions = this.Promotions;
xml.Append("<Promotions>");
xml.Append(promotions.ToXMLFragment());
xml.Append("</Promotions>");
}
return xml.ToString();
}