org.ota.hotel
Class HotelReservation

java.lang.Object
  extended by org.ota.hotel.HotelReservation
Direct Known Subclasses:
DynamicPkg.Components.HotelComponent, HotelResModify.HotelResModifyInner, NotifReportRQ.NotifDetails.HotelNotifReport.HotelReservations.HotelReservation

public class HotelReservation
extends java.lang.Object

The Reservation class contains the current reservation being created or altered. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="HotelReservationType">
   <xs:sequence>
     <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
     <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0" maxOccurs="2"/>
     <xs:element type="ns:RoomStaysType" name="RoomStays" minOccurs="0">
       <!-- Reference to inner class RoomStays -->
     </xs:element>
     <xs:element type="ns:ServicesType" name="Services" minOccurs="0"/>
     <xs:element type="ns:ResGuestsType" name="ResGuests" minOccurs="0"/>
     <xs:element type="ns:ResGlobalInfoType" name="ResGlobalInfo" minOccurs="0"/>
     <xs:element type="ns:WrittenConfInstType" name="WrittenConfInst" minOccurs="0"/>
     <xs:element name="Queue" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:QueueGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:boolean" use="optional" name="RoomStayReservation"/>
   <xs:attributeGroup ref="ns:DateTimeStampGroup"/>
   <xs:attribute type="xs:string" use="optional" name="ResStatus"/>
   <xs:attribute type="xs:boolean" use="optional" name="ForcedSellIndicator"/>
   <xs:attribute type="xs:boolean" use="optional" name="ServiceOverrideIndicator"/>
   <xs:attribute type="xs:boolean" use="optional" name="RateOverrideIndicator"/>
   <xs:attribute type="xs:boolean" use="optional" name="WalkInIndicator"/>
   <xs:attribute type="xs:boolean" use="optional" name="RoomNumberLockedIndicator"/>
   <xs:attribute type="xs:string" use="optional" name="OriginalDeliveryMethodCode"/>
   <xs:attribute type="xs:boolean" use="optional" name="PassiveIndicator"/>
 </xs:complexType>
 
 <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 HotelReservation.RoomStays
          Collection of room stays.
 
Constructor Summary
HotelReservation()
           
 
Method Summary
 void addUniqueID(UniqueID item)
          Add a 'UniqueID' element item.
 void clearUniqueIDs()
          Remove all 'UniqueID' element items.
 DateTimeStampGroup getDateTimeStampGroup()
          Get the 'DateTimeStampGroup' attributeGroup value.
 java.lang.Boolean getForcedSellIndicator()
          Get the 'ForcedSellIndicator' attribute value.
 java.lang.String getOriginalDeliveryMethodCode()
          Get the 'OriginalDeliveryMethodCode' attribute value.
 java.lang.Boolean getPassiveIndicator()
          Get the 'PassiveIndicator' attribute value.
 POS getPOS()
          Get the 'POS' element value.
 QueueGroup getQueue()
          Get the 'QueueGroup' attributeGroup value.
 java.lang.Boolean getRateOverrideIndicator()
          Get the 'RateOverrideIndicator' attribute value.
 ResGlobalInfo getResGlobalInfo()
          Get the 'ResGlobalInfo' element value.
 ResGuests getResGuests()
          Get the 'ResGuests' element value.
 java.lang.String getResStatus()
          Get the 'ResStatus' attribute value.
 java.lang.Boolean getRoomNumberLockedIndicator()
          Get the 'RoomNumberLockedIndicator' attribute value.
 java.lang.Boolean getRoomStayReservation()
          Get the 'RoomStayReservation' attribute value.
 HotelReservation.RoomStays getRoomStays()
          Get the 'RoomStays' element value.
 java.lang.Boolean getServiceOverrideIndicator()
          Get the 'ServiceOverrideIndicator' attribute value.
 Services getServices()
          Get the 'Services' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 UniqueID getUniqueID(int index)
          Get 'UniqueID' element item by position.
 java.util.List<UniqueID> getUniqueIDs()
          Get the list of 'UniqueID' element items.
 java.lang.Boolean getWalkInIndicator()
          Get the 'WalkInIndicator' attribute value.
 WrittenConfInst getWrittenConfInst()
          Get the 'WrittenConfInst' element value.
 void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
          Set the 'DateTimeStampGroup' attributeGroup value.
 void setForcedSellIndicator(java.lang.Boolean forcedSellIndicator)
          Set the 'ForcedSellIndicator' attribute value.
 void setOriginalDeliveryMethodCode(java.lang.String originalDeliveryMethodCode)
          Set the 'OriginalDeliveryMethodCode' attribute value.
 void setPassiveIndicator(java.lang.Boolean passiveIndicator)
          Set the 'PassiveIndicator' attribute value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setQueue(QueueGroup queue)
          Set the 'QueueGroup' attributeGroup value.
 void setRateOverrideIndicator(java.lang.Boolean rateOverrideIndicator)
          Set the 'RateOverrideIndicator' attribute value.
 void setResGlobalInfo(ResGlobalInfo resGlobalInfo)
          Set the 'ResGlobalInfo' element value.
 void setResGuests(ResGuests resGuests)
          Set the 'ResGuests' element value.
 void setResStatus(java.lang.String resStatus)
          Set the 'ResStatus' attribute value.
 void setRoomNumberLockedIndicator(java.lang.Boolean roomNumberLockedIndicator)
          Set the 'RoomNumberLockedIndicator' attribute value.
 void setRoomStayReservation(java.lang.Boolean roomStayReservation)
          Set the 'RoomStayReservation' attribute value.
 void setRoomStays(HotelReservation.RoomStays roomStays)
          Set the 'RoomStays' element value.
 void setServiceOverrideIndicator(java.lang.Boolean serviceOverrideIndicator)
          Set the 'ServiceOverrideIndicator' attribute value.
 void setServices(Services services)
          Set the 'Services' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setUniqueIDs(java.util.List<UniqueID> list)
          Set the list of 'UniqueID' element items.
 void setWalkInIndicator(java.lang.Boolean walkInIndicator)
          Set the 'WalkInIndicator' attribute value.
 void setWrittenConfInst(WrittenConfInst writtenConfInst)
          Set the 'WrittenConfInst' element value.
 int sizeUniqueIDs()
          Get the number of 'UniqueID' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelReservation

public HotelReservation()
Method Detail

getPOS

public POS getPOS()
Get the 'POS' element value. Identifies who made the original reservation.

Returns:
value

setPOS

public void setPOS(POS POS)
Set the 'POS' element value. Identifies who made the original reservation.

Parameters:
POS -

getUniqueIDs

public java.util.List<UniqueID> getUniqueIDs()
Get the list of 'UniqueID' element items. Used to provide PMS and/or CRS identifiers.

Returns:
list

setUniqueIDs

public void setUniqueIDs(java.util.List<UniqueID> list)
Set the list of 'UniqueID' element items. Used to provide PMS and/or CRS identifiers.

Parameters:
list -

sizeUniqueIDs

public int sizeUniqueIDs()
Get the number of 'UniqueID' element items.

Returns:
count

addUniqueID

public void addUniqueID(UniqueID item)
Add a 'UniqueID' element item.

Parameters:
item -

getUniqueID

public UniqueID getUniqueID(int index)
Get 'UniqueID' element item by position.

Parameters:
index -
Returns:
item

clearUniqueIDs

public void clearUniqueIDs()
Remove all 'UniqueID' element items.


getRoomStays

public HotelReservation.RoomStays getRoomStays()
Get the 'RoomStays' element value.

Returns:
value

setRoomStays

public void setRoomStays(HotelReservation.RoomStays roomStays)
Set the 'RoomStays' element value.

Parameters:
roomStays -

getServices

public Services getServices()
Get the 'Services' element value. Collection of services.

Returns:
value

setServices

public void setServices(Services services)
Set the 'Services' element value. Collection of services.

Parameters:
services -

getResGuests

public ResGuests getResGuests()
Get the 'ResGuests' element value. Collection of guests associated with the reservation.

Returns:
value

setResGuests

public void setResGuests(ResGuests resGuests)
Set the 'ResGuests' element value. Collection of guests associated with the reservation.

Parameters:
resGuests -

getResGlobalInfo

public ResGlobalInfo getResGlobalInfo()
Get the 'ResGlobalInfo' element value. ResGlobalInfo is a container for various information that affects the Reservation as a whole. These include global comments, counts, reservation IDs, loyalty programs, and payment methods.

Returns:
value

setResGlobalInfo

public void setResGlobalInfo(ResGlobalInfo resGlobalInfo)
Set the 'ResGlobalInfo' element value. ResGlobalInfo is a container for various information that affects the Reservation as a whole. These include global comments, counts, reservation IDs, loyalty programs, and payment methods.

Parameters:
resGlobalInfo -

getWrittenConfInst

public WrittenConfInst getWrittenConfInst()
Get the 'WrittenConfInst' element value. To indicate a confirmation is to be sent for this reservation.

Returns:
value

setWrittenConfInst

public void setWrittenConfInst(WrittenConfInst writtenConfInst)
Set the 'WrittenConfInst' element value. To indicate a confirmation is to be sent for this reservation.

Parameters:
writtenConfInst -

getQueue

public QueueGroup getQueue()
Get the 'QueueGroup' attributeGroup value. Information to identify a queue.

Returns:
value

setQueue

public void setQueue(QueueGroup queue)
Set the 'QueueGroup' attributeGroup value. Information to identify a queue.

Parameters:
queue -

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 -

getRoomStayReservation

public java.lang.Boolean getRoomStayReservation()
Get the 'RoomStayReservation' attribute value. Boolean True if this reservation is reserving rooms. False if it is only reserving services.

Returns:
value

setRoomStayReservation

public void setRoomStayReservation(java.lang.Boolean roomStayReservation)
Set the 'RoomStayReservation' attribute value. Boolean True if this reservation is reserving rooms. False if it is only reserving services.

Parameters:
roomStayReservation -

getDateTimeStampGroup

public DateTimeStampGroup getDateTimeStampGroup()
Get the 'DateTimeStampGroup' attributeGroup value.

Returns:
value

setDateTimeStampGroup

public void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
Set the 'DateTimeStampGroup' attributeGroup value.

Parameters:
dateTimeStampGroup -

getResStatus

public java.lang.String getResStatus()
Get the 'ResStatus' attribute value. Indicates the status of the reservation.

Returns:
value

setResStatus

public void setResStatus(java.lang.String resStatus)
Set the 'ResStatus' attribute value. Indicates the status of the reservation.

Parameters:
resStatus -

getForcedSellIndicator

public java.lang.Boolean getForcedSellIndicator()
Get the 'ForcedSellIndicator' attribute value. When true, indicates a sell was forced even if there are restrictions or no availability.

Returns:
value

setForcedSellIndicator

public void setForcedSellIndicator(java.lang.Boolean forcedSellIndicator)
Set the 'ForcedSellIndicator' attribute value. When true, indicates a sell was forced even if there are restrictions or no availability.

Parameters:
forcedSellIndicator -

getServiceOverrideIndicator

public java.lang.Boolean getServiceOverrideIndicator()
Get the 'ServiceOverrideIndicator' attribute value. When true, indicates a service has been overridden.

Returns:
value

setServiceOverrideIndicator

public void setServiceOverrideIndicator(java.lang.Boolean serviceOverrideIndicator)
Set the 'ServiceOverrideIndicator' attribute value. When true, indicates a service has been overridden.

Parameters:
serviceOverrideIndicator -

getRateOverrideIndicator

public java.lang.Boolean getRateOverrideIndicator()
Get the 'RateOverrideIndicator' attribute value. When true, indicates a rate has been overridden.

Returns:
value

setRateOverrideIndicator

public void setRateOverrideIndicator(java.lang.Boolean rateOverrideIndicator)
Set the 'RateOverrideIndicator' attribute value. When true, indicates a rate has been overridden.

Parameters:
rateOverrideIndicator -

getWalkInIndicator

public java.lang.Boolean getWalkInIndicator()
Get the 'WalkInIndicator' attribute value. When true, indicates the reservation is for a guest that walks-in without a reservation. When false, the reservation is not a walk-in.

Returns:
value

setWalkInIndicator

public void setWalkInIndicator(java.lang.Boolean walkInIndicator)
Set the 'WalkInIndicator' attribute value. When true, indicates the reservation is for a guest that walks-in without a reservation. When false, the reservation is not a walk-in.

Parameters:
walkInIndicator -

getRoomNumberLockedIndicator

public java.lang.Boolean getRoomNumberLockedIndicator()
Get the 'RoomNumberLockedIndicator' attribute value. When true, indicates a room number cannot be changed. When false, indicates a room number may be changed.

Returns:
value

setRoomNumberLockedIndicator

public void setRoomNumberLockedIndicator(java.lang.Boolean roomNumberLockedIndicator)
Set the 'RoomNumberLockedIndicator' attribute value. When true, indicates a room number cannot be changed. When false, indicates a room number may be changed.

Parameters:
roomNumberLockedIndicator -

getOriginalDeliveryMethodCode

public java.lang.String getOriginalDeliveryMethodCode()
Get the 'OriginalDeliveryMethodCode' attribute value. The method by which the original reservation was delivered. Refer to OpenTravel Code list Distribution Type (DTB).

Returns:
value

setOriginalDeliveryMethodCode

public void setOriginalDeliveryMethodCode(java.lang.String originalDeliveryMethodCode)
Set the 'OriginalDeliveryMethodCode' attribute value. The method by which the original reservation was delivered. Refer to OpenTravel Code list Distribution Type (DTB).

Parameters:
originalDeliveryMethodCode -

getPassiveIndicator

public java.lang.Boolean getPassiveIndicator()
Get the 'PassiveIndicator' attribute value. When true, indicates that this item is included for information only and no action should be taken.

Returns:
value

setPassiveIndicator

public void setPassiveIndicator(java.lang.Boolean passiveIndicator)
Set the 'PassiveIndicator' attribute value. When true, indicates that this item is included for information only and no action should be taken.

Parameters:
passiveIndicator -