org.ota.vehicle
Class VehicleRentalTransaction

java.lang.Object
  extended by org.ota.vehicle.VehicleRentalTransaction

public class VehicleRentalTransaction
extends java.lang.Object

This contains the information typically used in a rental transaction, such as charges, contract number or pickup date/time. 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="VehicleRentalTransactionType">
   <xs:sequence>
     <xs:element name="PickUpReturnDetails" minOccurs="0" maxOccurs="2">
       <!-- Reference to inner class PickUpReturnDetails -->
     </xs:element>
     <xs:element name="Vehicle">
       <xs:complexType>
         <xs:complexContent>
           <xs:extension base="ns:VehicleType">
             <xs:sequence>
               <xs:element type="ns:VehicleRentalDetailsType" name="VehRentalDetails" minOccurs="0" maxOccurs="2"/>
             </xs:sequence>
           </xs:extension>
         </xs:complexContent>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:VehicleRentalRateType" name="RentalRate" minOccurs="0"/>
     <xs:element name="PricedEquips" minOccurs="0">
       <!-- Reference to inner class PricedEquips -->
     </xs:element>
     <xs:element name="Fees" minOccurs="0">
       <!-- Reference to inner class Fees -->
     </xs:element>
     <xs:element name="TotalCharge" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:VehicleTotalChargeGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:UniqueID_Type" name="ConfID" minOccurs="0"/>
     <xs:element type="ns:UniqueID_Type" name="ContractID" minOccurs="0"/>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class VehicleRentalTransaction.Fees
          A collection of fees associated with this rental.
static class VehicleRentalTransaction.PickUpReturnDetails
          Actual rental checkout and expected return locations, dates and times.
static class VehicleRentalTransaction.PricedEquips
          A collection of special equipment that is part of this reservation, along with the charges associated with this equipment.
 
Constructor Summary
VehicleRentalTransaction()
           
 
Method Summary
 void addPickUpReturnDetail(VehicleRentalTransaction.PickUpReturnDetails item)
          Add a 'PickUpReturnDetails' element item.
 void addVehicleVehRentalDetail(VehicleRentalDetails item)
          Add a 'VehRentalDetails' element item.
 void clearPickUpReturnDetails()
          Remove all 'PickUpReturnDetails' element items.
 void clearVehicleVehRentalDetails()
          Remove all 'VehRentalDetails' element items.
 UniqueID getConfID()
          Get the 'ConfID' element value.
 UniqueID getContractID()
          Get the 'ContractID' element value.
 VehicleRentalTransaction.Fees getFees()
          Get the 'Fees' element value.
 VehicleRentalTransaction.PickUpReturnDetails getPickUpReturnDetail(int index)
          Get 'PickUpReturnDetails' element item by position.
 java.util.List<VehicleRentalTransaction.PickUpReturnDetails> getPickUpReturnDetails()
          Get the list of 'PickUpReturnDetails' element items.
 VehicleRentalTransaction.PricedEquips getPricedEquips()
          Get the 'PricedEquips' element value.
 VehicleRentalRate getRentalRate()
          Get the 'RentalRate' element value.
 VehicleTotalChargeGroup getTotalCharge()
          Get the 'VehicleTotalChargeGroup' attributeGroup value.
 Vehicle getVehicleVehicle()
          Get the extension value.
 VehicleRentalDetails getVehicleVehRentalDetail(int index)
          Get 'VehRentalDetails' element item by position.
 java.util.List<VehicleRentalDetails> getVehicleVehRentalDetails()
          Get the list of 'VehRentalDetails' element items.
 void setConfID(UniqueID confID)
          Set the 'ConfID' element value.
 void setContractID(UniqueID contractID)
          Set the 'ContractID' element value.
 void setFees(VehicleRentalTransaction.Fees fees)
          Set the 'Fees' element value.
 void setPickUpReturnDetails(java.util.List<VehicleRentalTransaction.PickUpReturnDetails> list)
          Set the list of 'PickUpReturnDetails' element items.
 void setPricedEquips(VehicleRentalTransaction.PricedEquips pricedEquips)
          Set the 'PricedEquips' element value.
 void setRentalRate(VehicleRentalRate rentalRate)
          Set the 'RentalRate' element value.
 void setTotalCharge(VehicleTotalChargeGroup totalCharge)
          Set the 'VehicleTotalChargeGroup' attributeGroup value.
 void setVehicleVehicle(Vehicle vehicleVehicle)
          Set the extension value.
 void setVehicleVehRentalDetails(java.util.List<VehicleRentalDetails> list)
          Set the list of 'VehRentalDetails' element items.
 int sizePickUpReturnDetails()
          Get the number of 'PickUpReturnDetails' element items.
 int sizeVehicleVehRentalDetails()
          Get the number of 'VehRentalDetails' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRentalTransaction

public VehicleRentalTransaction()
Method Detail

getPickUpReturnDetails

public java.util.List<VehicleRentalTransaction.PickUpReturnDetails> getPickUpReturnDetails()
Get the list of 'PickUpReturnDetails' element items.

Returns:
list

setPickUpReturnDetails

public void setPickUpReturnDetails(java.util.List<VehicleRentalTransaction.PickUpReturnDetails> list)
Set the list of 'PickUpReturnDetails' element items.

Parameters:
list -

sizePickUpReturnDetails

public int sizePickUpReturnDetails()
Get the number of 'PickUpReturnDetails' element items.

Returns:
count

addPickUpReturnDetail

public void addPickUpReturnDetail(VehicleRentalTransaction.PickUpReturnDetails item)
Add a 'PickUpReturnDetails' element item.

Parameters:
item -

getPickUpReturnDetail

public VehicleRentalTransaction.PickUpReturnDetails getPickUpReturnDetail(int index)
Get 'PickUpReturnDetails' element item by position.

Parameters:
index -
Returns:
item

clearPickUpReturnDetails

public void clearPickUpReturnDetails()
Remove all 'PickUpReturnDetails' element items.


getVehicleVehicle

public Vehicle getVehicleVehicle()
Get the extension value.

Returns:
value

setVehicleVehicle

public void setVehicleVehicle(Vehicle vehicleVehicle)
Set the extension value.

Parameters:
vehicleVehicle -

getVehicleVehRentalDetails

public java.util.List<VehicleRentalDetails> getVehicleVehRentalDetails()
Get the list of 'VehRentalDetails' element items.

Returns:
list

setVehicleVehRentalDetails

public void setVehicleVehRentalDetails(java.util.List<VehicleRentalDetails> list)
Set the list of 'VehRentalDetails' element items.

Parameters:
list -

sizeVehicleVehRentalDetails

public int sizeVehicleVehRentalDetails()
Get the number of 'VehRentalDetails' element items.

Returns:
count

addVehicleVehRentalDetail

public void addVehicleVehRentalDetail(VehicleRentalDetails item)
Add a 'VehRentalDetails' element item.

Parameters:
item -

getVehicleVehRentalDetail

public VehicleRentalDetails getVehicleVehRentalDetail(int index)
Get 'VehRentalDetails' element item by position.

Parameters:
index -
Returns:
item

clearVehicleVehRentalDetails

public void clearVehicleVehRentalDetails()
Remove all 'VehRentalDetails' element items.


getRentalRate

public VehicleRentalRate getRentalRate()
Get the 'RentalRate' element value. This describes time, mileage and other charges for a specific rental agreement.

Returns:
value

setRentalRate

public void setRentalRate(VehicleRentalRate rentalRate)
Set the 'RentalRate' element value. This describes time, mileage and other charges for a specific rental agreement.

Parameters:
rentalRate -

getPricedEquips

public VehicleRentalTransaction.PricedEquips getPricedEquips()
Get the 'PricedEquips' element value.

Returns:
value

setPricedEquips

public void setPricedEquips(VehicleRentalTransaction.PricedEquips pricedEquips)
Set the 'PricedEquips' element value.

Parameters:
pricedEquips -

getFees

public VehicleRentalTransaction.Fees getFees()
Get the 'Fees' element value.

Returns:
value

setFees

public void setFees(VehicleRentalTransaction.Fees fees)
Set the 'Fees' element value.

Parameters:
fees -

getTotalCharge

public VehicleTotalChargeGroup getTotalCharge()
Get the 'VehicleTotalChargeGroup' attributeGroup value. The anticipated total cost of a rental, the sum of the individual charges, optional charges, and associated fees.

Returns:
value

setTotalCharge

public void setTotalCharge(VehicleTotalChargeGroup totalCharge)
Set the 'VehicleTotalChargeGroup' attributeGroup value. The anticipated total cost of a rental, the sum of the individual charges, optional charges, and associated fees.

Parameters:
totalCharge -

getConfID

public UniqueID getConfID()
Get the 'ConfID' element value. A confirmation number.

Returns:
value

setConfID

public void setConfID(UniqueID confID)
Set the 'ConfID' element value. A confirmation number.

Parameters:
confID -

getContractID

public UniqueID getContractID()
Get the 'ContractID' element value. A contract number.

Returns:
value

setContractID

public void setContractID(UniqueID contractID)
Set the 'ContractID' element value. A contract number.

Parameters:
contractID -