org.ota.hotel
Class AmountPercent

java.lang.Object
  extended by org.ota.hotel.AmountPercent

public class AmountPercent
extends java.lang.Object

Defines the percentage basis for calculating the fee amount or the amount . 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="AmountPercentType">
   <xs:sequence>
     <xs:element type="ns:TaxesType" name="Taxes" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:boolean" use="optional" name="TaxInclusive"/>
   <xs:attribute type="xs:boolean" use="optional" name="FeesInclusive"/>
   <xs:attribute type="xs:int" use="optional" name="NmbrOfNights"/>
   <xs:attribute use="optional" name="BasisType">
     <xs:simpleType>
       <!-- Reference to inner class Basis -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute type="xs:float" use="optional" name="Percent"/>
   <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
   <xs:attribute use="optional" name="ApplyAs">
     <xs:simpleType>
       <!-- Reference to inner class ApplyAs -->
     </xs:simpleType>
   </xs:attribute>
 </xs:complexType>
 


Nested Class Summary
static class AmountPercent.ApplyAs
          Schema fragment(s) for this class:
static class AmountPercent.Basis
          Schema fragment(s) for this class:
 
Constructor Summary
AmountPercent()
           
 
Method Summary
 AmountPercent.ApplyAs getApplyAs()
          Get the 'ApplyAs' attribute value.
 AmountPercent.Basis getBasis()
          Get the 'BasisType' attribute value.
 CurrencyAmountGroup getCurrencyAmountGroup()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 java.lang.Boolean getFeesInclusive()
          Get the 'FeesInclusive' attribute value.
 java.lang.Integer getNmbrOfNights()
          Get the 'NmbrOfNights' attribute value.
 java.lang.Float getPercent()
          Get the 'Percent' attribute value.
 Taxes getTaxes()
          Get the 'Taxes' element value.
 java.lang.Boolean getTaxInclusive()
          Get the 'TaxInclusive' attribute value.
 void setApplyAs(AmountPercent.ApplyAs applyAs)
          Set the 'ApplyAs' attribute value.
 void setBasis(AmountPercent.Basis basis)
          Set the 'BasisType' attribute value.
 void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setFeesInclusive(java.lang.Boolean feesInclusive)
          Set the 'FeesInclusive' attribute value.
 void setNmbrOfNights(java.lang.Integer nmbrOfNights)
          Set the 'NmbrOfNights' attribute value.
 void setPercent(java.lang.Float percent)
          Set the 'Percent' attribute value.
 void setTaxes(Taxes taxes)
          Set the 'Taxes' element value.
 void setTaxInclusive(java.lang.Boolean taxInclusive)
          Set the 'TaxInclusive' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmountPercent

public AmountPercent()
Method Detail

getTaxes

public Taxes getTaxes()
Get the 'Taxes' element value. A collection of taxes.

Returns:
value

setTaxes

public void setTaxes(Taxes taxes)
Set the 'Taxes' element value. A collection of taxes.

Parameters:
taxes -

getTaxInclusive

public java.lang.Boolean getTaxInclusive()
Get the 'TaxInclusive' attribute value. Indicates whether taxes are included when figuring the base amount.

Returns:
value

setTaxInclusive

public void setTaxInclusive(java.lang.Boolean taxInclusive)
Set the 'TaxInclusive' attribute value. Indicates whether taxes are included when figuring the base amount.

Parameters:
taxInclusive -

getFeesInclusive

public java.lang.Boolean getFeesInclusive()
Get the 'FeesInclusive' attribute value. Indicates whether fees, such as those imposed by a travel agency or other booking agent, are included when figuring cancel penalties.

Returns:
value

setFeesInclusive

public void setFeesInclusive(java.lang.Boolean feesInclusive)
Set the 'FeesInclusive' attribute value. Indicates whether fees, such as those imposed by a travel agency or other booking agent, are included when figuring cancel penalties.

Parameters:
feesInclusive -

getNmbrOfNights

public java.lang.Integer getNmbrOfNights()
Get the 'NmbrOfNights' attribute value. The number of nights of the hotel stay that are used to calculate the fee amount.

Returns:
value

setNmbrOfNights

public void setNmbrOfNights(java.lang.Integer nmbrOfNights)
Set the 'NmbrOfNights' attribute value. The number of nights of the hotel stay that are used to calculate the fee amount.

Parameters:
nmbrOfNights -

getBasis

public AmountPercent.Basis getBasis()
Get the 'BasisType' attribute value. Provides the basis for how the amount of the guarantee is calculated.

Returns:
value

setBasis

public void setBasis(AmountPercent.Basis basis)
Set the 'BasisType' attribute value. Provides the basis for how the amount of the guarantee is calculated.

Parameters:
basis -

getPercent

public java.lang.Float getPercent()
Get the 'Percent' attribute value. The percentage used to calculate the amount.

Returns:
value

setPercent

public void setPercent(java.lang.Float percent)
Set the 'Percent' attribute value. The percentage used to calculate the amount.

Parameters:
percent -

getCurrencyAmountGroup

public CurrencyAmountGroup getCurrencyAmountGroup()
Get the 'CurrencyAmountGroup' attributeGroup value. Provides a monetary amount and the currency code to reflect the currency in which this amount is expressed.

Returns:
value

setCurrencyAmountGroup

public void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
Set the 'CurrencyAmountGroup' attributeGroup value. Provides a monetary amount and the currency code to reflect the currency in which this amount is expressed.

Parameters:
currencyAmountGroup -

getApplyAs

public AmountPercent.ApplyAs getApplyAs()
Get the 'ApplyAs' attribute value. Used to specify how the amount needs to be applied with respect to the stay.

Returns:
value

setApplyAs

public void setApplyAs(AmountPercent.ApplyAs applyAs)
Set the 'ApplyAs' attribute value. Used to specify how the amount needs to be applied with respect to the stay.

Parameters:
applyAs -