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

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * A priced grouping of one or more services within an Offer.
 * 
 * &lt;p&gt;Java class for OfferItemType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="OfferItemType"&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="OfferItemID" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ID_Type"/&amp;gt;
 *         &amp;lt;element name="MandatoryInd" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}IndType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="ModificationProhibitedInd" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}IndType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="OrderItemRefID" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ID_Type" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="FareDetail" maxOccurs="unbounded" minOccurs="0"&amp;gt;
 *           &amp;lt;complexType&amp;gt;
 *             &amp;lt;complexContent&amp;gt;
 *               &amp;lt;extension base="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}FareDetailType"&amp;gt;
 *                 &amp;lt;sequence&amp;gt;
 *                   &amp;lt;element name="FareWaiver" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}FareWaiverType" maxOccurs="100" minOccurs="0"/&amp;gt;
 *                 &amp;lt;/sequence&amp;gt;
 *               &amp;lt;/extension&amp;gt;
 *             &amp;lt;/complexContent&amp;gt;
 *           &amp;lt;/complexType&amp;gt;
 *         &amp;lt;/element&amp;gt;
 *         &amp;lt;element name="Service" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ServiceType" maxOccurs="unbounded"/&amp;gt;
 *         &amp;lt;element name="Price" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}PriceType"/&amp;gt;
 *         &amp;lt;element name="OriginalOrderItemDifferential" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ReshopDifferentialType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="NewOfferItemDifferential" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ReshopDifferentialType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="PenaltyDifferential" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ReshopDifferentialType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="FeesDifferential" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ReshopDifferentialType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DifferentialAmountDue" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}ReshopDifferentialType"/&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 = "OfferItemType", propOrder = {
    "offerItemID",
    "mandatoryInd",
    "modificationProhibitedInd",
    "orderItemRefID",
    "fareDetail",
    "service",
    "price",
    "originalOrderItemDifferential",
    "newOfferItemDifferential",
    "penaltyDifferential",
    "feesDifferential",
    "differentialAmountDue"
})
public class OfferItemType {

    @XmlElement(name = "OfferItemID", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String offerItemID;
    @XmlElement(name = "MandatoryInd")
    protected Boolean mandatoryInd;
    @XmlElement(name = "ModificationProhibitedInd")
    protected Boolean modificationProhibitedInd;
    @XmlElement(name = "OrderItemRefID")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected List<String> orderItemRefID;
    @XmlElement(name = "FareDetail")
    protected List<OfferItemType.FareDetail> fareDetail;
    @XmlElement(name = "Service", required = true)
    protected List<ServiceType> service;
    @XmlElement(name = "Price", required = true)
    protected PriceType price;
    @XmlElement(name = "OriginalOrderItemDifferential")
    protected ReshopDifferentialType originalOrderItemDifferential;
    @XmlElement(name = "NewOfferItemDifferential")
    protected ReshopDifferentialType newOfferItemDifferential;
    @XmlElement(name = "PenaltyDifferential")
    protected ReshopDifferentialType penaltyDifferential;
    @XmlElement(name = "FeesDifferential")
    protected ReshopDifferentialType feesDifferential;
    @XmlElement(name = "DifferentialAmountDue", required = true)
    protected ReshopDifferentialType differentialAmountDue;

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

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

    /**
     * Gets the value of the mandatoryInd property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isMandatoryInd() {
        return mandatoryInd;
    }

    /**
     * Sets the value of the mandatoryInd property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setMandatoryInd(Boolean value) {
        this.mandatoryInd = value;
    }

    /**
     * Gets the value of the modificationProhibitedInd property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isModificationProhibitedInd() {
        return modificationProhibitedInd;
    }

    /**
     * Sets the value of the modificationProhibitedInd property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setModificationProhibitedInd(Boolean value) {
        this.modificationProhibitedInd = value;
    }

    /**
     * Gets the value of the orderItemRefID 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 orderItemRefID property.
     * 
     * &lt;p&gt;
     * For example, to add a new item, do as follows:
     * &lt;pre&gt;
     *    getOrderItemRefID().add(newItem);
     * &lt;/pre&gt;
     * 
     * 
     * &lt;p&gt;
     * Objects of the following type(s) are allowed in the list
     * {@link String }
     * 
     * 
     */
    public List<String> getOrderItemRefID() {
        if (orderItemRefID == null) {
            orderItemRefID = new ArrayList<String>();
        }
        return this.orderItemRefID;
    }

    /**
     * Gets the value of the fareDetail 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 fareDetail property.
     * 
     * &lt;p&gt;
     * For example, to add a new item, do as follows:
     * &lt;pre&gt;
     *    getFareDetail().add(newItem);
     * &lt;/pre&gt;
     * 
     * 
     * &lt;p&gt;
     * Objects of the following type(s) are allowed in the list
     * {@link OfferItemType.FareDetail }
     * 
     * 
     */
    public List<OfferItemType.FareDetail> getFareDetail() {
        if (fareDetail == null) {
            fareDetail = new ArrayList<OfferItemType.FareDetail>();
        }
        return this.fareDetail;
    }

    /**
     * Gets the value of the service 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 service property.
     * 
     * &lt;p&gt;
     * For example, to add a new item, do as follows:
     * &lt;pre&gt;
     *    getService().add(newItem);
     * &lt;/pre&gt;
     * 
     * 
     * &lt;p&gt;
     * Objects of the following type(s) are allowed in the list
     * {@link ServiceType }
     * 
     * 
     */
    public List<ServiceType> getService() {
        if (service == null) {
            service = new ArrayList<ServiceType>();
        }
        return this.service;
    }

    /**
     * Gets the value of the price property.
     * 
     * @return
     *     possible object is
     *     {@link PriceType }
     *     
     */
    public PriceType getPrice() {
        return price;
    }

    /**
     * Sets the value of the price property.
     * 
     * @param value
     *     allowed object is
     *     {@link PriceType }
     *     
     */
    public void setPrice(PriceType value) {
        this.price = value;
    }

    /**
     * Gets the value of the originalOrderItemDifferential property.
     * 
     * @return
     *     possible object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public ReshopDifferentialType getOriginalOrderItemDifferential() {
        return originalOrderItemDifferential;
    }

    /**
     * Sets the value of the originalOrderItemDifferential property.
     * 
     * @param value
     *     allowed object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public void setOriginalOrderItemDifferential(ReshopDifferentialType value) {
        this.originalOrderItemDifferential = value;
    }

    /**
     * Gets the value of the newOfferItemDifferential property.
     * 
     * @return
     *     possible object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public ReshopDifferentialType getNewOfferItemDifferential() {
        return newOfferItemDifferential;
    }

    /**
     * Sets the value of the newOfferItemDifferential property.
     * 
     * @param value
     *     allowed object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public void setNewOfferItemDifferential(ReshopDifferentialType value) {
        this.newOfferItemDifferential = value;
    }

    /**
     * Gets the value of the penaltyDifferential property.
     * 
     * @return
     *     possible object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public ReshopDifferentialType getPenaltyDifferential() {
        return penaltyDifferential;
    }

    /**
     * Sets the value of the penaltyDifferential property.
     * 
     * @param value
     *     allowed object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public void setPenaltyDifferential(ReshopDifferentialType value) {
        this.penaltyDifferential = value;
    }

    /**
     * Gets the value of the feesDifferential property.
     * 
     * @return
     *     possible object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public ReshopDifferentialType getFeesDifferential() {
        return feesDifferential;
    }

    /**
     * Sets the value of the feesDifferential property.
     * 
     * @param value
     *     allowed object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public void setFeesDifferential(ReshopDifferentialType value) {
        this.feesDifferential = value;
    }

    /**
     * Gets the value of the differentialAmountDue property.
     * 
     * @return
     *     possible object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public ReshopDifferentialType getDifferentialAmountDue() {
        return differentialAmountDue;
    }

    /**
     * Sets the value of the differentialAmountDue property.
     * 
     * @param value
     *     allowed object is
     *     {@link ReshopDifferentialType }
     *     
     */
    public void setDifferentialAmountDue(ReshopDifferentialType value) {
        this.differentialAmountDue = value;
    }


    /**
     * &lt;p&gt;Java class for anonymous complex type.
     * 
     * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
     * 
     * &lt;pre&gt;
     * &amp;lt;complexType&amp;gt;
     *   &amp;lt;complexContent&amp;gt;
     *     &amp;lt;extension base="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}FareDetailType"&amp;gt;
     *       &amp;lt;sequence&amp;gt;
     *         &amp;lt;element name="FareWaiver" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRS_v1}FareWaiverType" maxOccurs="100" minOccurs="0"/&amp;gt;
     *       &amp;lt;/sequence&amp;gt;
     *     &amp;lt;/extension&amp;gt;
     *   &amp;lt;/complexContent&amp;gt;
     * &amp;lt;/complexType&amp;gt;
     * &lt;/pre&gt;
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "fareWaiver"
    })
    public static class FareDetail
        extends FareDetailType
    {

        @XmlElement(name = "FareWaiver")
        protected List<FareWaiverType> fareWaiver;

        /**
         * Gets the value of the fareWaiver 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 fareWaiver property.
         * 
         * &lt;p&gt;
         * For example, to add a new item, do as follows:
         * &lt;pre&gt;
         *    getFareWaiver().add(newItem);
         * &lt;/pre&gt;
         * 
         * 
         * &lt;p&gt;
         * Objects of the following type(s) are allowed in the list
         * {@link FareWaiverType }
         * 
         * 
         */
        public List<FareWaiverType> getFareWaiver() {
            if (fareWaiver == null) {
                fareWaiver = new ArrayList<FareWaiverType>();
            }
            return this.fareWaiver;
        }

    }

}
