org.ota.cruise
Class BookRQ

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

public class BookRQ
extends java.lang.Object

The book request message requests booking creation on the cruise line system for a given sailing with a specific mode of transportation/ gateway city pair and currency and for a selected fare/category pair and a cabin number. It also integrates this booking into a GDS's PNR based on the cruise line reply. Optional request information can include: - Guest city - Inclusive package 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_CruiseBookRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="AgentInfo" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AgentInfoGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="DeletedGuest" minOccurs="0" maxOccurs="9">
         <!-- Reference to inner class DeletedGuest -->
       </xs:element>
       <xs:element type="ns:SailingCategoryInfoType" name="SailingInfo"/>
       <xs:element type="ns:CruiseGuestInfoType" name="ReservationInfo"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="ns:TransactionActionType" use="optional" name="TransactionActionCode"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class BookRQ.DeletedGuest
          Specifies the information of the deleted guest from the current booking.
 
Constructor Summary
BookRQ()
           
 
Method Summary
 void addDeletedGuest(BookRQ.DeletedGuest item)
          Add a 'DeletedGuest' element item.
 void clearDeletedGuests()
          Remove all 'DeletedGuest' element items.
 AgentInfoGroup getAgentInfo()
          Get the 'AgentInfoGroup' attributeGroup value.
 BookRQ.DeletedGuest getDeletedGuest(int index)
          Get 'DeletedGuest' element item by position.
 java.util.List<BookRQ.DeletedGuest> getDeletedGuests()
          Get the list of 'DeletedGuest' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 CruiseGuestInfo getReservationInfo()
          Get the 'ReservationInfo' element value.
 SailingCategoryInfo getSailingInfo()
          Get the 'SailingInfo' element value.
 TransactionAction getTransactionActionCode()
          Get the 'TransactionActionCode' attribute value.
 void setAgentInfo(AgentInfoGroup agentInfo)
          Set the 'AgentInfoGroup' attributeGroup value.
 void setDeletedGuests(java.util.List<BookRQ.DeletedGuest> list)
          Set the list of 'DeletedGuest' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setReservationInfo(CruiseGuestInfo reservationInfo)
          Set the 'ReservationInfo' element value.
 void setSailingInfo(SailingCategoryInfo sailingInfo)
          Set the 'SailingInfo' element value.
 void setTransactionActionCode(TransactionAction transactionActionCode)
          Set the 'TransactionActionCode' attribute value.
 int sizeDeletedGuests()
          Get the number of 'DeletedGuest' 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. Point of sale object.

Returns:
value

setPOS

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

Parameters:
POS -

getAgentInfo

public AgentInfoGroup getAgentInfo()
Get the 'AgentInfoGroup' attributeGroup value. Specifies the information of the an agent who is creating or modifying the booking

Returns:
value

setAgentInfo

public void setAgentInfo(AgentInfoGroup agentInfo)
Set the 'AgentInfoGroup' attributeGroup value. Specifies the information of the an agent who is creating or modifying the booking

Parameters:
agentInfo -

getDeletedGuests

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

Returns:
list

setDeletedGuests

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

Parameters:
list -

sizeDeletedGuests

public int sizeDeletedGuests()
Get the number of 'DeletedGuest' element items.

Returns:
count

addDeletedGuest

public void addDeletedGuest(BookRQ.DeletedGuest item)
Add a 'DeletedGuest' element item.

Parameters:
item -

getDeletedGuest

public BookRQ.DeletedGuest getDeletedGuest(int index)
Get 'DeletedGuest' element item by position.

Parameters:
index -
Returns:
item

clearDeletedGuests

public void clearDeletedGuests()
Remove all 'DeletedGuest' element items.


getSailingInfo

public SailingCategoryInfo getSailingInfo()
Get the 'SailingInfo' element value. Specifies the selected category to book.Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Returns:
value

setSailingInfo

public void setSailingInfo(SailingCategoryInfo sailingInfo)
Set the 'SailingInfo' element value. Specifies the selected category to book.Contains information related to the selected sailing. Typically the selected sailing is one of the sailings returned in the previous sailing availability response.

Parameters:
sailingInfo -

getReservationInfo

public CruiseGuestInfo getReservationInfo()
Get the 'ReservationInfo' element value. Specifies information about the booking.

Returns:
value

setReservationInfo

public void setReservationInfo(CruiseGuestInfo reservationInfo)
Set the 'ReservationInfo' element value. Specifies information about the booking.

Parameters:
reservationInfo -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes -

getTransactionActionCode

public TransactionAction getTransactionActionCode()
Get the 'TransactionActionCode' attribute value.

Returns:
value

setTransactionActionCode

public void setTransactionActionCode(TransactionAction transactionActionCode)
Set the 'TransactionActionCode' attribute value.

Parameters:
transactionActionCode -