org.ota.hotel
Class Offer.Discount

java.lang.Object
  extended by org.ota.hotel.Offer.Discount
Enclosing class:
Offer

public static class Offer.Discount
extends java.lang.Object

Defines the characteristics of the offer. 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="Discount" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:int" use="optional" name="NightsRequired"/>
     <xs:attribute type="xs:int" use="optional" name="NightsDiscounted"/>
     <xs:attribute type="xs:string" use="optional" name="DiscountPattern"/>
     <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
     <xs:attribute type="xs:float" use="optional" name="Percent"/>
     <xs:attribute type="xs:string" use="optional" name="ChargeUnitCode"/>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
Offer.Discount()
           
 
Method Summary
 java.lang.String getChargeUnitCode()
          Get the 'ChargeUnitCode' attribute value.
 CurrencyAmountGroup getCurrencyAmountGroup()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 java.lang.String getDiscountPattern()
          Get the 'DiscountPattern' attribute value.
 java.lang.Integer getNightsDiscounted()
          Get the 'NightsDiscounted' attribute value.
 java.lang.Integer getNightsRequired()
          Get the 'NightsRequired' attribute value.
 java.lang.Float getPercent()
          Get the 'Percent' attribute value.
 void setChargeUnitCode(java.lang.String chargeUnitCode)
          Set the 'ChargeUnitCode' attribute value.
 void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setDiscountPattern(java.lang.String discountPattern)
          Set the 'DiscountPattern' attribute value.
 void setNightsDiscounted(java.lang.Integer nightsDiscounted)
          Set the 'NightsDiscounted' attribute value.
 void setNightsRequired(java.lang.Integer nightsRequired)
          Set the 'NightsRequired' attribute value.
 void setPercent(java.lang.Float percent)
          Set the 'Percent' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Offer.Discount

public Offer.Discount()
Method Detail

getNightsRequired

public java.lang.Integer getNightsRequired()
Get the 'NightsRequired' attribute value. The number of nights required to be booked in order to apply the discount (this may be the extact number of nights required or the minimum number of nights required).

Returns:
value

setNightsRequired

public void setNightsRequired(java.lang.Integer nightsRequired)
Set the 'NightsRequired' attribute value. The number of nights required to be booked in order to apply the discount (this may be the extact number of nights required or the minimum number of nights required).

Parameters:
nightsRequired -

getNightsDiscounted

public java.lang.Integer getNightsDiscounted()
Get the 'NightsDiscounted' attribute value. The number of nights discounted for each multiple of NightsRequired.

Returns:
value

setNightsDiscounted

public void setNightsDiscounted(java.lang.Integer nightsDiscounted)
Set the 'NightsDiscounted' attribute value. The number of nights discounted for each multiple of NightsRequired.

Parameters:
nightsDiscounted -

getDiscountPattern

public java.lang.String getDiscountPattern()
Get the 'DiscountPattern' attribute value. This defines the pattern for the night(s) the discount applies (e.g., if NightsRequired="7" and the NightsDiscounted="1" then DiscountPattern="NNNNNNY" or DiscountPattern="0000001" when the discount is applied to the last night).

Returns:
value

setDiscountPattern

public void setDiscountPattern(java.lang.String discountPattern)
Set the 'DiscountPattern' attribute value. This defines the pattern for the night(s) the discount applies (e.g., if NightsRequired="7" and the NightsDiscounted="1" then DiscountPattern="NNNNNNY" or DiscountPattern="0000001" when the discount is applied to the last night).

Parameters:
discountPattern -

getCurrencyAmountGroup

public CurrencyAmountGroup getCurrencyAmountGroup()
Get the 'CurrencyAmountGroup' attributeGroup value. Provides the discount as an amount as well as the currency code and decimal places for the currency in which the discount applies. Typically when an amount is applied the Percent would not be passed.

Returns:
value

setCurrencyAmountGroup

public void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
Set the 'CurrencyAmountGroup' attributeGroup value. Provides the discount as an amount as well as the currency code and decimal places for the currency in which the discount applies. Typically when an amount is applied the Percent would not be passed.

Parameters:
currencyAmountGroup -

getPercent

public java.lang.Float getPercent()
Get the 'Percent' attribute value. Defines the percentage which is deducted from the rate amounts if this offer is applicable.

Returns:
value

setPercent

public void setPercent(java.lang.Float percent)
Set the 'Percent' attribute value. Defines the percentage which is deducted from the rate amounts if this offer is applicable.

Parameters:
percent -

getChargeUnitCode

public java.lang.String getChargeUnitCode()
Get the 'ChargeUnitCode' attribute value. Defines the unit per which the unit the discount applies (e.g., per person per stay). Refer to OpenTravel Code List Charge Type (CHG).

Returns:
value

setChargeUnitCode

public void setChargeUnitCode(java.lang.String chargeUnitCode)
Set the 'ChargeUnitCode' attribute value. Defines the unit per which the unit the discount applies (e.g., per person per stay). Refer to OpenTravel Code List Charge Type (CHG).

Parameters:
chargeUnitCode -