org.ota.hotel
Class Offer

java.lang.Object
  extended by org.ota.hotel.Offer
Direct Known Subclasses:
HotelRatePlan.Offers.Offer

public class Offer
extends java.lang.Object

Defines the type of offer, the conditions under which the offer can be applied and the amounts and/or percentages deducted. 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="OfferType">
   <xs:sequence>
     <xs:element name="OfferRules" minOccurs="0">
       <!-- Reference to inner class OfferRules -->
     </xs:element>
     <xs:element name="Discount" minOccurs="0">
       <!-- Reference to inner class Discount -->
     </xs:element>
     <xs:element name="FreeUpgrade" minOccurs="0">
       <!-- Reference to inner class FreeUpgrade -->
     </xs:element>
     <xs:element type="ns:ParagraphType" name="OfferDescription" minOccurs="0"/>
     <xs:element name="CompatibleOffers" minOccurs="0">
       <!-- Reference to inner class CompatibleOffers -->
     </xs:element>
     <xs:element name="Inventories" minOccurs="0">
       <!-- Reference to inner class Inventories -->
     </xs:element>
     <xs:element name="Guests" minOccurs="0">
       <!-- Reference to inner class Guests -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="OfferCode"/>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
   <xs:attribute type="xs:int" use="optional" name="ApplicationOrder"/>
 </xs:complexType>
 


Nested Class Summary
static class Offer.CompatibleOffers
          Collection of compatible offers.
static class Offer.Discount
          Defines the characteristics of the offer.
static class Offer.FreeUpgrade
          Defines offers of the type "book A and get B".
static class Offer.Guests
          Collection of guests.
static class Offer.Inventories
          Collection of inventory.
static class Offer.OfferRules
          Collection of offer rules.
 
Constructor Summary
Offer()
           
 
Method Summary
 java.lang.Integer getApplicationOrder()
          Get the 'ApplicationOrder' attribute value.
 Offer.CompatibleOffers getCompatibleOffers()
          Get the 'CompatibleOffers' element value.
 Offer.Discount getDiscount()
          Get the 'Discount' element value.
 Offer.FreeUpgrade getFreeUpgrade()
          Get the 'FreeUpgrade' element value.
 Offer.Guests getGuests()
          Get the 'Guests' element value.
 Offer.Inventories getInventories()
          Get the 'Inventories' element value.
 java.lang.String getOfferCode()
          Get the 'OfferCode' attribute value.
 Paragraph getOfferDescription()
          Get the 'OfferDescription' element value.
 Offer.OfferRules getOfferRules()
          Get the 'OfferRules' element value.
 java.lang.String getRPH()
          Get the 'RPH' attribute value.
 void setApplicationOrder(java.lang.Integer applicationOrder)
          Set the 'ApplicationOrder' attribute value.
 void setCompatibleOffers(Offer.CompatibleOffers compatibleOffers)
          Set the 'CompatibleOffers' element value.
 void setDiscount(Offer.Discount discount)
          Set the 'Discount' element value.
 void setFreeUpgrade(Offer.FreeUpgrade freeUpgrade)
          Set the 'FreeUpgrade' element value.
 void setGuests(Offer.Guests guests)
          Set the 'Guests' element value.
 void setInventories(Offer.Inventories inventories)
          Set the 'Inventories' element value.
 void setOfferCode(java.lang.String offerCode)
          Set the 'OfferCode' attribute value.
 void setOfferDescription(Paragraph offerDescription)
          Set the 'OfferDescription' element value.
 void setOfferRules(Offer.OfferRules offerRules)
          Set the 'OfferRules' element value.
 void setRPH(java.lang.String RPH)
          Set the 'RPH' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Offer

public Offer()
Method Detail

getOfferRules

public Offer.OfferRules getOfferRules()
Get the 'OfferRules' element value.

Returns:
value

setOfferRules

public void setOfferRules(Offer.OfferRules offerRules)
Set the 'OfferRules' element value.

Parameters:
offerRules -

getDiscount

public Offer.Discount getDiscount()
Get the 'Discount' element value.

Returns:
value

setDiscount

public void setDiscount(Offer.Discount discount)
Set the 'Discount' element value.

Parameters:
discount -

getFreeUpgrade

public Offer.FreeUpgrade getFreeUpgrade()
Get the 'FreeUpgrade' element value.

Returns:
value

setFreeUpgrade

public void setFreeUpgrade(Offer.FreeUpgrade freeUpgrade)
Set the 'FreeUpgrade' element value.

Parameters:
freeUpgrade -

getOfferDescription

public Paragraph getOfferDescription()
Get the 'OfferDescription' element value. A description of the offer. If the offer is based on a written contract, the appropriate paragraph from the contract could be quoted here.

Returns:
value

setOfferDescription

public void setOfferDescription(Paragraph offerDescription)
Set the 'OfferDescription' element value. A description of the offer. If the offer is based on a written contract, the appropriate paragraph from the contract could be quoted here.

Parameters:
offerDescription -

getCompatibleOffers

public Offer.CompatibleOffers getCompatibleOffers()
Get the 'CompatibleOffers' element value.

Returns:
value

setCompatibleOffers

public void setCompatibleOffers(Offer.CompatibleOffers compatibleOffers)
Set the 'CompatibleOffers' element value.

Parameters:
compatibleOffers -

getInventories

public Offer.Inventories getInventories()
Get the 'Inventories' element value.

Returns:
value

setInventories

public void setInventories(Offer.Inventories inventories)
Set the 'Inventories' element value.

Parameters:
inventories -

getGuests

public Offer.Guests getGuests()
Get the 'Guests' element value.

Returns:
value

setGuests

public void setGuests(Offer.Guests guests)
Set the 'Guests' element value.

Parameters:
guests -

getOfferCode

public java.lang.String getOfferCode()
Get the 'OfferCode' attribute value. A code which uniquely names this offer.

Returns:
value

setOfferCode

public void setOfferCode(java.lang.String offerCode)
Set the 'OfferCode' attribute value. A code which uniquely names this offer.

Parameters:
offerCode -

getRPH

public java.lang.String getRPH()
Get the 'RPH' attribute value. A reference place holder for this particular offer.

Returns:
value

setRPH

public void setRPH(java.lang.String RPH)
Set the 'RPH' attribute value. A reference place holder for this particular offer.

Parameters:
RPH -

getApplicationOrder

public java.lang.Integer getApplicationOrder()
Get the 'ApplicationOrder' attribute value. The order in which the discounts are applied.

Returns:
value

setApplicationOrder

public void setApplicationOrder(java.lang.Integer applicationOrder)
Set the 'ApplicationOrder' attribute value. The order in which the discounts are applied.

Parameters:
applicationOrder -