org.ota.hotel
Class Discount

java.lang.Object
  extended by org.ota.shared.Total
      extended by org.ota.hotel.Discount
Direct Known Subclasses:
Amount.Discount

public class Discount
extends Total

Identifies and provides details about the discount. 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="DiscountType">
   <xs:complexContent>
     <xs:extension base="ns:TotalType">
       <xs:sequence>
         <xs:element type="ns:ParagraphType" name="DiscountReason"/>
       </xs:sequence>
       <xs:attribute type="xs:boolean" use="optional" name="TaxInclusive"/>
       <xs:attribute type="xs:float" use="optional" name="Percent"/>
       <xs:attribute type="xs:string" use="optional" name="DiscountCode"/>
       <xs:attribute type="xs:boolean" use="optional" name="RestrictedDisplayIndicator"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Constructor Summary
Discount()
           
 
Method Summary
 java.lang.String getDiscountCode()
          Get the 'DiscountCode' attribute value.
 Paragraph getDiscountReason()
          Get the 'DiscountReason' element value.
 java.lang.Float getPercent()
          Get the 'Percent' attribute value.
 java.lang.Boolean getRestrictedDisplayIndicator()
          Get the 'RestrictedDisplayIndicator' attribute value.
 java.lang.Boolean getTaxInclusive()
          Get the 'TaxInclusive' attribute value.
 void setDiscountCode(java.lang.String discountCode)
          Set the 'DiscountCode' attribute value.
 void setDiscountReason(Paragraph discountReason)
          Set the 'DiscountReason' element value.
 void setPercent(java.lang.Float percent)
          Set the 'Percent' attribute value.
 void setRestrictedDisplayIndicator(java.lang.Boolean restrictedDisplayIndicator)
          Set the 'RestrictedDisplayIndicator' attribute value.
 void setTaxInclusive(java.lang.Boolean taxInclusive)
          Set the 'TaxInclusive' attribute value.
 
Methods inherited from class org.ota.shared.Total
getAdditionalFeesExcludedIndicator, getAmountAfterTax, getAmountBeforeTax, getCurrencyCodeGroup, getTaxes, setAdditionalFeesExcludedIndicator, setAmountAfterTax, setAmountBeforeTax, setCurrencyCodeGroup, setTaxes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Discount

public Discount()
Method Detail

getDiscountReason

public Paragraph getDiscountReason()
Get the 'DiscountReason' element value.

Returns:
value

setDiscountReason

public void setDiscountReason(Paragraph discountReason)
Set the 'DiscountReason' element value.

Parameters:
discountReason -

getTaxInclusive

public java.lang.Boolean getTaxInclusive()
Get the 'TaxInclusive' attribute value.

Returns:
value

setTaxInclusive

public void setTaxInclusive(java.lang.Boolean taxInclusive)
Set the 'TaxInclusive' attribute value.

Parameters:
taxInclusive -

getPercent

public java.lang.Float getPercent()
Get the 'Percent' attribute value.

Returns:
value

setPercent

public void setPercent(java.lang.Float percent)
Set the 'Percent' attribute value.

Parameters:
percent -

getDiscountCode

public java.lang.String getDiscountCode()
Get the 'DiscountCode' attribute value. Specifies the type of discount (e.g., No condition, LOS, Deposit or Total amount spent).

Returns:
value

setDiscountCode

public void setDiscountCode(java.lang.String discountCode)
Set the 'DiscountCode' attribute value. Specifies the type of discount (e.g., No condition, LOS, Deposit or Total amount spent).

Parameters:
discountCode -

getRestrictedDisplayIndicator

public java.lang.Boolean getRestrictedDisplayIndicator()
Get the 'RestrictedDisplayIndicator' attribute value. When true, used to indicate the discount should not be displayed. When false, indicates the discount may be displayed.

Returns:
value

setRestrictedDisplayIndicator

public void setRestrictedDisplayIndicator(java.lang.Boolean restrictedDisplayIndicator)
Set the 'RestrictedDisplayIndicator' attribute value. When true, used to indicate the discount should not be displayed. When false, indicates the discount may be displayed.

Parameters:
restrictedDisplayIndicator -