org.ota.vehicle
Class VehicleChargePurpose

java.lang.Object
  extended by org.ota.vehicle.VehicleCharge
      extended by org.ota.vehicle.VehicleChargePurpose

public class VehicleChargePurpose
extends VehicleCharge

The VehicleChargePurposeType complex type defines information on a specific charge associated with the rental of a vehicle along with the purpose of the charge. 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="VehicleChargePurposeType">
   <xs:complexContent>
     <xs:extension base="ns:VehicleChargeType">
       <xs:attribute type="xs:string" use="required" name="Purpose"/>
       <xs:attribute type="xs:boolean" use="optional" name="RateConvertInd"/>
       <xs:attribute type="xs:boolean" use="optional" name="RequiredInd"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ota.vehicle.VehicleCharge
VehicleCharge.Calculation, VehicleCharge.MinMax, VehicleCharge.TaxAmounts
 
Constructor Summary
VehicleChargePurpose()
           
 
Method Summary
 java.lang.String getPurpose()
          Get the 'Purpose' attribute value.
 java.lang.Boolean getRateConvertInd()
          Get the 'RateConvertInd' attribute value.
 java.lang.Boolean getRequiredInd()
          Get the 'RequiredInd' attribute value.
 void setPurpose(java.lang.String purpose)
          Set the 'Purpose' attribute value.
 void setRateConvertInd(java.lang.Boolean rateConvertInd)
          Set the 'RateConvertInd' attribute value.
 void setRequiredInd(java.lang.Boolean requiredInd)
          Set the 'RequiredInd' attribute value.
 
Methods inherited from class org.ota.vehicle.VehicleCharge
addCalculation, clearCalculations, getCalculation, getCalculations, getCurrencyAmountGroup, getDescription, getGuaranteedInd, getIncludedInEstTotalInd, getIncludedInRate, getMinMax, getTaxAmounts, getTaxInclusive, setCalculations, setCurrencyAmountGroup, setDescription, setGuaranteedInd, setIncludedInEstTotalInd, setIncludedInRate, setMinMax, setTaxAmounts, setTaxInclusive, sizeCalculations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleChargePurpose

public VehicleChargePurpose()
Method Detail

getPurpose

public java.lang.String getPurpose()
Get the 'Purpose' attribute value. Refer to OpenTravel Code List Vehicle Charge Purpose Type (VCP).

Returns:
value

setPurpose

public void setPurpose(java.lang.String purpose)
Set the 'Purpose' attribute value. Refer to OpenTravel Code List Vehicle Charge Purpose Type (VCP).

Parameters:
purpose -

getRateConvertInd

public java.lang.Boolean getRateConvertInd()
Get the 'RateConvertInd' attribute value. When true, the rate has been converted to a different currency.

Returns:
value

setRateConvertInd

public void setRateConvertInd(java.lang.Boolean rateConvertInd)
Set the 'RateConvertInd' attribute value. When true, the rate has been converted to a different currency.

Parameters:
rateConvertInd -

getRequiredInd

public java.lang.Boolean getRequiredInd()
Get the 'RequiredInd' attribute value. When true, this surcharge or tax is required in the vehicle reservation. When false, it is at the renters discretion.

Returns:
value

setRequiredInd

public void setRequiredInd(java.lang.Boolean requiredInd)
Set the 'RequiredInd' attribute value. When true, this surcharge or tax is required in the vehicle reservation. When false, it is at the renters discretion.

Parameters:
requiredInd -