org.ota.air
Class BookRQ

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

public class BookRQ
extends java.lang.Object

The Book Request message requests the system to book a specific itinerary for one or more identified passengers. The message contains optional pricing information, allowing the booking class availability and pricing to be rechecked as part of the booking process. Optional request information can include:- Seat and Meal Requests- SSR, OSI, and Remarks. 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_AirBookRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element type="ns:AirItineraryType" name="AirItinerary"/>
       <xs:element name="PriceInfo" minOccurs="0">
         <!-- Reference to inner class PriceInfo -->
       </xs:element>
       <xs:element type="ns:TravelerInfoType" name="TravelerInfo"/>
       <xs:element type="ns:FulfillmentType" name="Fulfillment" minOccurs="0"/>
       <xs:element type="ns:TicketingInfoType" name="Ticketing" minOccurs="0" maxOccurs="99"/>
       <xs:element name="Queue" minOccurs="0" maxOccurs="10">
         <!-- Reference to inner class Queue -->
       </xs:element>
       <xs:element type="ns:UniqueID_Type" name="BookingReferenceID" minOccurs="0"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="ns:TransactionActionType" use="optional" name="ResStatus"/>
     <xs:attribute type="xs:boolean" use="optional" name="PriceInd"/>
   </xs:complexType>
 </xs:element>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class BookRQ.PriceInfo
          Pricing information for the air itinerary to be booked e.g.
static class BookRQ.Queue
          Specifies information necessary to place this booking on a particular host system queue.
 
Constructor Summary
BookRQ()
           
 
Method Summary
 void addQueue(BookRQ.Queue item)
          Add a 'Queue' element item.
 void addTicketing(TicketingInfo item)
          Add a 'Ticketing' element item.
 void clearQueues()
          Remove all 'Queue' element items.
 void clearTicketings()
          Remove all 'Ticketing' element items.
 AirItinerary getAirItinerary()
          Get the 'AirItinerary' element value.
 UniqueID getBookingReferenceID()
          Get the 'BookingReferenceID' element value.
 Fulfillment getFulfillment()
          Get the 'Fulfillment' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 java.lang.Boolean getPriceInd()
          Get the 'PriceInd' attribute value.
 BookRQ.PriceInfo getPriceInfo()
          Get the 'PriceInfo' element value.
 BookRQ.Queue getQueue(int index)
          Get 'Queue' element item by position.
 java.util.List<BookRQ.Queue> getQueues()
          Get the list of 'Queue' element items.
 TransactionAction getResStatus()
          Get the 'ResStatus' attribute value.
 TicketingInfo getTicketing(int index)
          Get 'Ticketing' element item by position.
 java.util.List<TicketingInfo> getTicketings()
          Get the list of 'Ticketing' element items.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 TravelerInfo getTravelerInfo()
          Get the 'TravelerInfo' element value.
 void setAirItinerary(AirItinerary airItinerary)
          Set the 'AirItinerary' element value.
 void setBookingReferenceID(UniqueID bookingReferenceID)
          Set the 'BookingReferenceID' element value.
 void setFulfillment(Fulfillment fulfillment)
          Set the 'Fulfillment' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setPriceInd(java.lang.Boolean priceInd)
          Set the 'PriceInd' attribute value.
 void setPriceInfo(BookRQ.PriceInfo priceInfo)
          Set the 'PriceInfo' element value.
 void setQueues(java.util.List<BookRQ.Queue> list)
          Set the list of 'Queue' element items.
 void setResStatus(TransactionAction resStatus)
          Set the 'ResStatus' attribute value.
 void setTicketings(java.util.List<TicketingInfo> list)
          Set the list of 'Ticketing' element items.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTravelerInfo(TravelerInfo travelerInfo)
          Set the 'TravelerInfo' element value.
 int sizeQueues()
          Get the number of 'Queue' element items.
 int sizeTicketings()
          Get the number of 'Ticketing' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookRQ

public BookRQ()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. This identifes the party making the booking request. Trading partners are open to define their own UniqueID.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. This identifes the party making the booking request. Trading partners are open to define their own UniqueID.

Parameters:
POS -

getAirItinerary

public AirItinerary getAirItinerary()
Get the 'AirItinerary' element value. A collection of all flight segments requested for booking.

Returns:
value

setAirItinerary

public void setAirItinerary(AirItinerary airItinerary)
Set the 'AirItinerary' element value. A collection of all flight segments requested for booking.

Parameters:
airItinerary -

getPriceInfo

public BookRQ.PriceInfo getPriceInfo()
Get the 'PriceInfo' element value.

Returns:
value

setPriceInfo

public void setPriceInfo(BookRQ.PriceInfo priceInfo)
Set the 'PriceInfo' element value.

Parameters:
priceInfo -

getTravelerInfo

public TravelerInfo getTravelerInfo()
Get the 'TravelerInfo' element value. All traveler information relevant to a booking request.

Returns:
value

setTravelerInfo

public void setTravelerInfo(TravelerInfo travelerInfo)
Set the 'TravelerInfo' element value. All traveler information relevant to a booking request.

Parameters:
travelerInfo -

getFulfillment

public Fulfillment getFulfillment()
Get the 'Fulfillment' element value. All payment information relevant to a booking request.

Returns:
value

setFulfillment

public void setFulfillment(Fulfillment fulfillment)
Set the 'Fulfillment' element value. All payment information relevant to a booking request.

Parameters:
fulfillment -

getTicketings

public java.util.List<TicketingInfo> getTicketings()
Get the list of 'Ticketing' element items. Information used to specify the ticketing arrangement.

Returns:
list

setTicketings

public void setTicketings(java.util.List<TicketingInfo> list)
Set the list of 'Ticketing' element items. Information used to specify the ticketing arrangement.

Parameters:
list -

sizeTicketings

public int sizeTicketings()
Get the number of 'Ticketing' element items.

Returns:
count

addTicketing

public void addTicketing(TicketingInfo item)
Add a 'Ticketing' element item.

Parameters:
item -

getTicketing

public TicketingInfo getTicketing(int index)
Get 'Ticketing' element item by position.

Parameters:
index -
Returns:
item

clearTicketings

public void clearTicketings()
Remove all 'Ticketing' element items.


getQueues

public java.util.List<BookRQ.Queue> getQueues()
Get the list of 'Queue' element items.

Returns:
list

setQueues

public void setQueues(java.util.List<BookRQ.Queue> list)
Set the list of 'Queue' element items.

Parameters:
list -

sizeQueues

public int sizeQueues()
Get the number of 'Queue' element items.

Returns:
count

addQueue

public void addQueue(BookRQ.Queue item)
Add a 'Queue' element item.

Parameters:
item -

getQueue

public BookRQ.Queue getQueue(int index)
Get 'Queue' element item by position.

Parameters:
index -
Returns:
item

clearQueues

public void clearQueues()
Remove all 'Queue' element items.


getBookingReferenceID

public UniqueID getBookingReferenceID()
Get the 'BookingReferenceID' element value. This is used for PNR record locator.

Returns:
value

setBookingReferenceID

public void setBookingReferenceID(UniqueID bookingReferenceID)
Set the 'BookingReferenceID' element value. This is used for PNR record locator.

Parameters:
bookingReferenceID -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

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 -

getResStatus

public TransactionAction getResStatus()
Get the 'ResStatus' attribute value. Specifies an action to be taken following the booking.

Returns:
value

setResStatus

public void setResStatus(TransactionAction resStatus)
Set the 'ResStatus' attribute value. Specifies an action to be taken following the booking.

Parameters:
resStatus -

getPriceInd

public java.lang.Boolean getPriceInd()
Get the 'PriceInd' attribute value. When true, pricing and booking of flights is requested. When false, only booking of flights is requested.

Returns:
value

setPriceInd

public void setPriceInd(java.lang.Boolean priceInd)
Set the 'PriceInd' attribute value. When true, pricing and booking of flights is requested. When false, only booking of flights is requested.

Parameters:
priceInd -