
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_orderreshoprs_v1;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * Deduction from the price amount, made in advance of its payment.
 * 
 * &lt;p&gt;Java class for DiscountType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="DiscountType"&amp;gt;
 *   &amp;lt;complexContent&amp;gt;
 *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *       &amp;lt;sequence&amp;gt;
 *         &amp;lt;element name="DiscountAmount" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}AmountType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DiscountPercent" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}PercentType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="PreDiscountedAmount" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}AmountType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="AppText" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}TextType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DescText" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}TextType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DiscountContext" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}DiscountContextType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *       &amp;lt;/sequence&amp;gt;
 *     &amp;lt;/restriction&amp;gt;
 *   &amp;lt;/complexContent&amp;gt;
 * &amp;lt;/complexType&amp;gt;
 * &lt;/pre&gt;
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DiscountType", propOrder = {
    "discountAmount",
    "discountPercent",
    "preDiscountedAmount",
    "appText",
    "descText",
    "discountContext"
})
public class DiscountType {

    @XmlElement(name = "DiscountAmount")
    protected AmountType discountAmount;
    @XmlElement(name = "DiscountPercent")
    protected BigDecimal discountPercent;
    @XmlElement(name = "PreDiscountedAmount")
    protected AmountType preDiscountedAmount;
    @XmlElement(name = "AppText")
    protected String appText;
    @XmlElement(name = "DescText")
    protected String descText;
    @XmlElement(name = "DiscountContext")
    protected List<DiscountContextType> discountContext;

    /**
     * Gets the value of the discountAmount property.
     * 
     * @return
     *     possible object is
     *     {@link AmountType }
     *     
     */
    public AmountType getDiscountAmount() {
        return discountAmount;
    }

    /**
     * Sets the value of the discountAmount property.
     * 
     * @param value
     *     allowed object is
     *     {@link AmountType }
     *     
     */
    public void setDiscountAmount(AmountType value) {
        this.discountAmount = value;
    }

    /**
     * Gets the value of the discountPercent property.
     * 
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *     
     */
    public BigDecimal getDiscountPercent() {
        return discountPercent;
    }

    /**
     * Sets the value of the discountPercent property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *     
     */
    public void setDiscountPercent(BigDecimal value) {
        this.discountPercent = value;
    }

    /**
     * Gets the value of the preDiscountedAmount property.
     * 
     * @return
     *     possible object is
     *     {@link AmountType }
     *     
     */
    public AmountType getPreDiscountedAmount() {
        return preDiscountedAmount;
    }

    /**
     * Sets the value of the preDiscountedAmount property.
     * 
     * @param value
     *     allowed object is
     *     {@link AmountType }
     *     
     */
    public void setPreDiscountedAmount(AmountType value) {
        this.preDiscountedAmount = value;
    }

    /**
     * Gets the value of the appText property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAppText() {
        return appText;
    }

    /**
     * Sets the value of the appText property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAppText(String value) {
        this.appText = value;
    }

    /**
     * Gets the value of the descText property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDescText() {
        return descText;
    }

    /**
     * Sets the value of the descText property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDescText(String value) {
        this.descText = value;
    }

    /**
     * Gets the value of the discountContext property.
     * 
     * &lt;p&gt;
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the discountContext property.
     * 
     * &lt;p&gt;
     * For example, to add a new item, do as follows:
     * &lt;pre&gt;
     *    getDiscountContext().add(newItem);
     * &lt;/pre&gt;
     * 
     * 
     * &lt;p&gt;
     * Objects of the following type(s) are allowed in the list
     * {@link DiscountContextType }
     * 
     * 
     */
    public List<DiscountContextType> getDiscountContext() {
        if (discountContext == null) {
            discountContext = new ArrayList<DiscountContextType>();
        }
        return this.discountContext;
    }

}
