
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_orderreshoprq_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;


/**
 * Reshop actions to enquire about desired changes for a given order. New OfferItems will be presented in subsequent response, which will incur reconstruction of new OrderItems post-OrderChangeRQ.
 * 
 * &lt;p&gt;Java class for RequestType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="RequestType"&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="OrderItemRefID" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRQ_v1}ID_Type"/&amp;gt;
 *         &amp;lt;element name="OrderActionContextText" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRQ_v1}TextType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="BookingRef" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRQ_v1}BookingRefType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="FareWaiver" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRQ_v1}FareWaiverType" maxOccurs="100" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="ReshopParameters" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRQ_v1}ItinReshopParamsType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="UpdateOrder" type="{http://xml.amadeus.com/2010/06/Travel_OrderReshopRQ_v1}UpdateOrderType"/&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 = "RequestType", propOrder = {
    "orderItemRefID",
    "orderActionContextText",
    "bookingRef",
    "fareWaiver",
    "reshopParameters",
    "updateOrder"
})
public class RequestType {

    @XmlElement(name = "OrderItemRefID", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String orderItemRefID;
    @XmlElement(name = "OrderActionContextText")
    protected String orderActionContextText;
    @XmlElement(name = "BookingRef")
    protected List<BookingRefType> bookingRef;
    @XmlElement(name = "FareWaiver")
    protected List<FareWaiverType> fareWaiver;
    @XmlElement(name = "ReshopParameters")
    protected ItinReshopParamsType reshopParameters;
    @XmlElement(name = "UpdateOrder", required = true)
    protected UpdateOrderType updateOrder;

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

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

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

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

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

    /**
     * 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;
    }

    /**
     * Gets the value of the reshopParameters property.
     * 
     * @return
     *     possible object is
     *     {@link ItinReshopParamsType }
     *     
     */
    public ItinReshopParamsType getReshopParameters() {
        return reshopParameters;
    }

    /**
     * Sets the value of the reshopParameters property.
     * 
     * @param value
     *     allowed object is
     *     {@link ItinReshopParamsType }
     *     
     */
    public void setReshopParameters(ItinReshopParamsType value) {
        this.reshopParameters = value;
    }

    /**
     * Gets the value of the updateOrder property.
     * 
     * @return
     *     possible object is
     *     {@link UpdateOrderType }
     *     
     */
    public UpdateOrderType getUpdateOrder() {
        return updateOrder;
    }

    /**
     * Sets the value of the updateOrder property.
     * 
     * @param value
     *     allowed object is
     *     {@link UpdateOrderType }
     *     
     */
    public void setUpdateOrder(UpdateOrderType value) {
        this.updateOrder = value;
    }

}
