org.ota.air
Class PriceRQ

java.lang.Object
  extended by org.ota.air.PriceRQ

public class PriceRQ
extends java.lang.Object

The Price Request message requests pricing information for specific flights on specific dates for a specific number and type of passengers. Optional information in the message allows fare restriction preferences and negotiated fare contract codes to be included in the message. The pricing request contains the information necessary to perform an availability / sell from availability / price series of entries on an airline CRS or GDS. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OTA_AirPriceRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:AirItineraryType" name="AirItinerary" minOccurs="0"/>
       <xs:element name="TravelerInfoSummary">
         <xs:complexType>
           <xs:complexContent>
             <xs:extension base="ns:TravelerInfoSummaryType">
               <xs:sequence>
                 <xs:element type="ns:PaymentDetailType" name="PaymentDetail" minOccurs="0"/>
                 <xs:element name="PricingPref" minOccurs="0" maxOccurs="20">
                   <xs:complexType>
                     <xs:attributeGroup ref="ns:PricingInfoGroup"/>
                   </xs:complexType>
                 </xs:element>
               </xs:sequence>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:UniqueID_Type" name="BookingReferenceID" minOccurs="0"/>
       <xs:element name="FlightReference" minOccurs="0" maxOccurs="16">
         <!-- Reference to inner class FlightReference -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="xs:string" use="optional" name="Type"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class PriceRQ.FlightReference
          Used to reference flight segments that have already been booked for which pricing is requested.
 
Constructor Summary
PriceRQ()
           
 
Method Summary
 void addFlightReference(PriceRQ.FlightReference item)
          Add a 'FlightReference' element item.
 void addTravelerInfoSummaryPricingPref(PricingInfoGroup item)
          Add a 'PricingPref' element item.
 void clearFlightReferences()
          Remove all 'FlightReference' element items.
 void clearTravelerInfoSummaryPricingPrefs()
          Remove all 'PricingPref' element items.
 AirItinerary getAirItinerary()
          Get the 'AirItinerary' element value.
 UniqueID getBookingReferenceID()
          Get the 'BookingReferenceID' element value.
 PriceRQ.FlightReference getFlightReference(int index)
          Get 'FlightReference' element item by position.
 java.util.List<PriceRQ.FlightReference> getFlightReferences()
          Get the list of 'FlightReference' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 PaymentDetail getTravelerInfoSummaryPaymentDetail()
          Get the 'PaymentDetail' element value.
 PricingInfoGroup getTravelerInfoSummaryPricingPref(int index)
          Get 'PricingPref' element item by position.
 java.util.List<PricingInfoGroup> getTravelerInfoSummaryPricingPrefs()
          Get the list of 'PricingPref' element items.
 TravelerInfoSummary getTravelerInfoSummaryTravelerInfoSummary()
          Get the extension value.
 java.lang.String getType()
          Get the 'Type' attribute value.
 void setAirItinerary(AirItinerary airItinerary)
          Set the 'AirItinerary' element value.
 void setBookingReferenceID(UniqueID bookingReferenceID)
          Set the 'BookingReferenceID' element value.
 void setFlightReferences(java.util.List<PriceRQ.FlightReference> list)
          Set the list of 'FlightReference' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setTravelerInfoSummaryPaymentDetail(PaymentDetail travelerInfoSummaryPaymentDetail)
          Set the 'PaymentDetail' element value.
 void setTravelerInfoSummaryPricingPrefs(java.util.List<PricingInfoGroup> list)
          Set the list of 'PricingPref' element items.
 void setTravelerInfoSummaryTravelerInfoSummary(TravelerInfoSummary travelerInfoSummaryTravelerInfoSummary)
          Set the extension value.
 void setType(java.lang.String type)
          Set the 'Type' attribute value.
 int sizeFlightReferences()
          Get the number of 'FlightReference' element items.
 int sizeTravelerInfoSummaryPricingPrefs()
          Get the number of 'PricingPref' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriceRQ

public PriceRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Point of sale object.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Point of sale object.

Parameters:
POS -

getAirItinerary

public AirItinerary getAirItinerary()
Get the 'AirItinerary' element value. The Air Itineraries to be priced

Returns:
value

setAirItinerary

public void setAirItinerary(AirItinerary airItinerary)
Set the 'AirItinerary' element value. The Air Itineraries to be priced

Parameters:
airItinerary -

getTravelerInfoSummaryTravelerInfoSummary

public TravelerInfoSummary getTravelerInfoSummaryTravelerInfoSummary()
Get the extension value.

Returns:
value

setTravelerInfoSummaryTravelerInfoSummary

public void setTravelerInfoSummaryTravelerInfoSummary(TravelerInfoSummary travelerInfoSummaryTravelerInfoSummary)
Set the extension value.

Parameters:
travelerInfoSummaryTravelerInfoSummary -

getTravelerInfoSummaryPaymentDetail

public PaymentDetail getTravelerInfoSummaryPaymentDetail()
Get the 'PaymentDetail' element value. Used to specify the planned method of payment.

Returns:
value

setTravelerInfoSummaryPaymentDetail

public void setTravelerInfoSummaryPaymentDetail(PaymentDetail travelerInfoSummaryPaymentDetail)
Set the 'PaymentDetail' element value. Used to specify the planned method of payment.

Parameters:
travelerInfoSummaryPaymentDetail -

getTravelerInfoSummaryPricingPrefs

public java.util.List<PricingInfoGroup> getTravelerInfoSummaryPricingPrefs()
Get the list of 'PricingPref' element items. Used to specify a passenger or processing pricing preference.

Returns:
list

setTravelerInfoSummaryPricingPrefs

public void setTravelerInfoSummaryPricingPrefs(java.util.List<PricingInfoGroup> list)
Set the list of 'PricingPref' element items. Used to specify a passenger or processing pricing preference.

Parameters:
list -

sizeTravelerInfoSummaryPricingPrefs

public int sizeTravelerInfoSummaryPricingPrefs()
Get the number of 'PricingPref' element items.

Returns:
count

addTravelerInfoSummaryPricingPref

public void addTravelerInfoSummaryPricingPref(PricingInfoGroup item)
Add a 'PricingPref' element item.

Parameters:
item -

getTravelerInfoSummaryPricingPref

public PricingInfoGroup getTravelerInfoSummaryPricingPref(int index)
Get 'PricingPref' element item by position.

Parameters:
index -
Returns:
item

clearTravelerInfoSummaryPricingPrefs

public void clearTravelerInfoSummaryPricingPrefs()
Remove all 'PricingPref' element items.


getBookingReferenceID

public UniqueID getBookingReferenceID()
Get the 'BookingReferenceID' element value. The PNR address of the booking which needs to be priced.

Returns:
value

setBookingReferenceID

public void setBookingReferenceID(UniqueID bookingReferenceID)
Set the 'BookingReferenceID' element value. The PNR address of the booking which needs to be priced.

Parameters:
bookingReferenceID -

getFlightReferences

public java.util.List<PriceRQ.FlightReference> getFlightReferences()
Get the list of 'FlightReference' element items.

Returns:
list

setFlightReferences

public void setFlightReferences(java.util.List<PriceRQ.FlightReference> list)
Set the list of 'FlightReference' element items.

Parameters:
list -

sizeFlightReferences

public int sizeFlightReferences()
Get the number of 'FlightReference' element items.

Returns:
count

addFlightReference

public void addFlightReference(PriceRQ.FlightReference item)
Add a 'FlightReference' element item.

Parameters:
item -

getFlightReference

public PriceRQ.FlightReference getFlightReference(int index)
Get 'FlightReference' element item by position.

Parameters:
index -
Returns:
item

clearFlightReferences

public void clearFlightReferences()
Remove all 'FlightReference' element items.


getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -

getType

public java.lang.String getType()
Get the 'Type' attribute value. Used to specify the type of pricing requested.

Returns:
value

setType

public void setType(java.lang.String type)
Set the 'Type' attribute value. Used to specify the type of pricing requested.

Parameters:
type -