org.ota.hotel
Class InvBlock.RoomTypes.Room.RatePlans.RatePlan

java.lang.Object
  extended by org.ota.hotel.RateUpload
      extended by org.ota.hotel.InvBlock.RoomTypes.Room.RatePlans.RatePlan
Enclosing class:
InvBlock.RoomTypes.Room.RatePlans

public static class InvBlock.RoomTypes.Room.RatePlans.RatePlan
extends RateUpload

This is a specific rate plan defined for a specific room type. 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="RatePlan" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:RateUploadType">
         <xs:sequence>
           <xs:element name="MarketCode" minOccurs="0" maxOccurs="5">
             <!-- Reference to inner class MarketCode -->
           </xs:element>
           <xs:element type="ns:CommissionType" name="Commission" minOccurs="0"/>
           <xs:element name="MethodInfo" minOccurs="0" maxOccurs="5">
             <xs:complexType>
               <xs:attributeGroup ref="ns:MethodInfoGroup"/>
             </xs:complexType>
           </xs:element>
           <xs:element name="DaysOfWeeks" minOccurs="0">
             <!-- Reference to inner class DaysOfWeeks -->
           </xs:element>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="RatePlanCode"/>
         <xs:attribute type="xs:string" use="optional" name="BookingCode"/>
         <xs:attributeGroup ref="ns:PromotionCodeGroup"/>
         <xs:attribute type="xs:boolean" use="optional" name="UpgradeIndicator"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class InvBlock.RoomTypes.Room.RatePlans.RatePlan.DaysOfWeeks
          This is available so multiple rules or multiple date ranges may be applied.
static class InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode
          This is user specific information used for tracking and market segmentation reporting.
 
Nested classes/interfaces inherited from class org.ota.hotel.RateUpload
RateUpload.AdditionalGuestAmounts, RateUpload.BaseByGuestAmts, RateUpload.GuaranteePolicies
 
Constructor Summary
InvBlock.RoomTypes.Room.RatePlans.RatePlan()
           
 
Method Summary
 void addMarketCode(InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode item)
          Add a 'MarketCode' element item.
 void addMethodInfo(MethodInfoGroup item)
          Add a 'MethodInfo' element item.
 void clearMarketCodes()
          Remove all 'MarketCode' element items.
 void clearMethodInfos()
          Remove all 'MethodInfo' element items.
 java.lang.String getBookingCode()
          Get the 'BookingCode' attribute value.
 Commission getCommission()
          Get the 'Commission' element value.
 InvBlock.RoomTypes.Room.RatePlans.RatePlan.DaysOfWeeks getDaysOfWeeks()
          Get the 'DaysOfWeeks' element value.
 InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode getMarketCode(int index)
          Get 'MarketCode' element item by position.
 java.util.List<InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode> getMarketCodes()
          Get the list of 'MarketCode' element items.
 MethodInfoGroup getMethodInfo(int index)
          Get 'MethodInfo' element item by position.
 java.util.List<MethodInfoGroup> getMethodInfos()
          Get the list of 'MethodInfo' element items.
 PromotionCodeGroup getPromotionCodeGroup()
          Get the 'PromotionCodeGroup' attributeGroup value.
 java.lang.String getRatePlanCode()
          Get the 'RatePlanCode' attribute value.
 java.lang.Boolean getUpgradeIndicator()
          Get the 'UpgradeIndicator' attribute value.
 void setBookingCode(java.lang.String bookingCode)
          Set the 'BookingCode' attribute value.
 void setCommission(Commission commission)
          Set the 'Commission' element value.
 void setDaysOfWeeks(InvBlock.RoomTypes.Room.RatePlans.RatePlan.DaysOfWeeks daysOfWeeks)
          Set the 'DaysOfWeeks' element value.
 void setMarketCodes(java.util.List<InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode> list)
          Set the list of 'MarketCode' element items.
 void setMethodInfos(java.util.List<MethodInfoGroup> list)
          Set the list of 'MethodInfo' element items.
 void setPromotionCodeGroup(PromotionCodeGroup promotionCodeGroup)
          Set the 'PromotionCodeGroup' attributeGroup value.
 void setRatePlanCode(java.lang.String ratePlanCode)
          Set the 'RatePlanCode' attribute value.
 void setUpgradeIndicator(java.lang.Boolean upgradeIndicator)
          Set the 'UpgradeIndicator' attribute value.
 int sizeMarketCodes()
          Get the number of 'MarketCode' element items.
 int sizeMethodInfos()
          Get the number of 'MethodInfo' element items.
 
Methods inherited from class org.ota.hotel.RateUpload
getAdditionalCharges, getAdditionalGuestAmounts, getAgeQualifyingGroup, getBaseByGuestAmts, getCancelPolicies, getCurrencyCodeGroup, getDateTimeSpanGroup, getDOWPatternGroup, getFees, getGuaranteePolicies, getMaxGuestApplicable, getMaxLOS, getMealsIncluded, getMinGuestApplicable, getMinLOS, getNumberOfUnits, getPaymentPolicies, getRateDescription, getRateTier, getRateTimeUnit, getStayOverDate, getUniqueID, getUnitMultiplier, setAdditionalCharges, setAdditionalGuestAmounts, setAgeQualifyingGroup, setBaseByGuestAmts, setCancelPolicies, setCurrencyCodeGroup, setDateTimeSpanGroup, setDOWPatternGroup, setFees, setGuaranteePolicies, setMaxGuestApplicable, setMaxLOS, setMealsIncluded, setMinGuestApplicable, setMinLOS, setNumberOfUnits, setPaymentPolicies, setRateDescription, setRateTier, setRateTimeUnit, setStayOverDate, setUniqueID, setUnitMultiplier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvBlock.RoomTypes.Room.RatePlans.RatePlan

public InvBlock.RoomTypes.Room.RatePlans.RatePlan()
Method Detail

getMarketCodes

public java.util.List<InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode> getMarketCodes()
Get the list of 'MarketCode' element items.

Returns:
list

setMarketCodes

public void setMarketCodes(java.util.List<InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode> list)
Set the list of 'MarketCode' element items.

Parameters:
list -

sizeMarketCodes

public int sizeMarketCodes()
Get the number of 'MarketCode' element items.

Returns:
count

addMarketCode

public void addMarketCode(InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode item)
Add a 'MarketCode' element item.

Parameters:
item -

getMarketCode

public InvBlock.RoomTypes.Room.RatePlans.RatePlan.MarketCode getMarketCode(int index)
Get 'MarketCode' element item by position.

Parameters:
index -
Returns:
item

clearMarketCodes

public void clearMarketCodes()
Remove all 'MarketCode' element items.


getCommission

public Commission getCommission()
Get the 'Commission' element value. Commission associated with the RatePlan. This can be a percentage or a flat amount.

Returns:
value

setCommission

public void setCommission(Commission commission)
Set the 'Commission' element value. Commission associated with the RatePlan. This can be a percentage or a flat amount.

Parameters:
commission -

getMethodInfos

public java.util.List<MethodInfoGroup> getMethodInfos()
Get the list of 'MethodInfo' element items. This is used to indicate the reservation and billing methods for the rate plan.

Returns:
list

setMethodInfos

public void setMethodInfos(java.util.List<MethodInfoGroup> list)
Set the list of 'MethodInfo' element items. This is used to indicate the reservation and billing methods for the rate plan.

Parameters:
list -

sizeMethodInfos

public int sizeMethodInfos()
Get the number of 'MethodInfo' element items.

Returns:
count

addMethodInfo

public void addMethodInfo(MethodInfoGroup item)
Add a 'MethodInfo' element item.

Parameters:
item -

getMethodInfo

public MethodInfoGroup getMethodInfo(int index)
Get 'MethodInfo' element item by position.

Parameters:
index -
Returns:
item

clearMethodInfos

public void clearMethodInfos()
Remove all 'MethodInfo' element items.


getDaysOfWeeks

public InvBlock.RoomTypes.Room.RatePlans.RatePlan.DaysOfWeeks getDaysOfWeeks()
Get the 'DaysOfWeeks' element value.

Returns:
value

setDaysOfWeeks

public void setDaysOfWeeks(InvBlock.RoomTypes.Room.RatePlans.RatePlan.DaysOfWeeks daysOfWeeks)
Set the 'DaysOfWeeks' element value.

Parameters:
daysOfWeeks -

getRatePlanCode

public java.lang.String getRatePlanCode()
Get the 'RatePlanCode' attribute value. The RatePlanCode assigned for the inventory item.

Returns:
value

setRatePlanCode

public void setRatePlanCode(java.lang.String ratePlanCode)
Set the 'RatePlanCode' attribute value. The RatePlanCode assigned for the inventory item.

Parameters:
ratePlanCode -

getBookingCode

public java.lang.String getBookingCode()
Get the 'BookingCode' attribute value. This is used to indicate the code with which to book the item and is primarily used to exchange information with GDSs or other systems.

Returns:
value

setBookingCode

public void setBookingCode(java.lang.String bookingCode)
Set the 'BookingCode' attribute value. This is used to indicate the code with which to book the item and is primarily used to exchange information with GDSs or other systems.

Parameters:
bookingCode -

getPromotionCodeGroup

public PromotionCodeGroup getPromotionCodeGroup()
Get the 'PromotionCodeGroup' attributeGroup value. This indicates additional special services included in the rate plan (e.g. breakfast included).

Returns:
value

setPromotionCodeGroup

public void setPromotionCodeGroup(PromotionCodeGroup promotionCodeGroup)
Set the 'PromotionCodeGroup' attributeGroup value. This indicates additional special services included in the rate plan (e.g. breakfast included).

Parameters:
promotionCodeGroup -

getUpgradeIndicator

public java.lang.Boolean getUpgradeIndicator()
Get the 'UpgradeIndicator' attribute value. Indicator that signifies whether a room block rate plan is available for room type upgrade.

Returns:
value

setUpgradeIndicator

public void setUpgradeIndicator(java.lang.Boolean upgradeIndicator)
Set the 'UpgradeIndicator' attribute value. Indicator that signifies whether a room block rate plan is available for room type upgrade.

Parameters:
upgradeIndicator -