protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetTotal()) {
Price total = this.Total;
xml.Append("<Total>");
xml.Append(total.ToXMLFragment());
xml.Append("</Total>");
}
if (IsSetSubtotal()) {
Price subtotal = this.Subtotal;
xml.Append("<Subtotal>");
xml.Append(subtotal.ToXMLFragment());
xml.Append("</Subtotal>");
}
if (IsSetTax()) {
Price tax = this.Tax;
xml.Append("<Tax>");
xml.Append(tax.ToXMLFragment());
xml.Append("</Tax>");
}
if (IsSetShippingCharge()) {
Price shippingCharge = this.ShippingCharge;
xml.Append("<ShippingCharge>");
xml.Append(shippingCharge.ToXMLFragment());
xml.Append("</ShippingCharge>");
}
if (IsSetPromotion()) {
Price promotion = this.Promotion;
xml.Append("<Promotion>");
xml.Append(promotion.ToXMLFragment());
xml.Append("</Promotion>");
}
return xml.ToString();
}