org.ota.pkg
Class CostingItem

java.lang.Object
  extended by org.ota.pkg.CostingItem

public class CostingItem
extends java.lang.Object

Details of an invoice item 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="CostingItemType">
   <xs:sequence>
     <xs:element name="UnitCost">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ExtendedCost" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Commission" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:AgentCommissionGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="Description"/>
   <xs:attributeGroup ref="ns:QuantityGroup"/>
   <xs:attribute type="xs:string" use="optional" name="InventoryItemRPH"/>
   <xs:attribute type="xs:string" use="optional" name="PassengerRPH"/>
   <xs:attribute type="xs:string" use="optional" name="CostBasis"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="QuantityGroup">
   <xs:attribute type="xs:int" use="optional" name="Quantity"/>
 </xs:attributeGroup>
 


Constructor Summary
CostingItem()
           
 
Method Summary
 AgentCommissionGroup getCommission()
          Get the 'AgentCommissionGroup' attributeGroup value.
 java.lang.String getCostBasis()
          Get the 'CostBasis' attribute value.
 java.lang.String getDescription()
          Get the 'Description' attribute value.
 CurrencyAmountGroup getExtendedCost()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 java.lang.String getInventoryItemRPH()
          Get the 'InventoryItemRPH' attribute value.
 java.lang.String getPassengerRPH()
          Get the 'PassengerRPH' attribute value.
 java.lang.Integer getQuantity()
          Get the 'Quantity' attribute value.
 CurrencyAmountGroup getUnitCost()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 void setCommission(AgentCommissionGroup commission)
          Set the 'AgentCommissionGroup' attributeGroup value.
 void setCostBasis(java.lang.String costBasis)
          Set the 'CostBasis' attribute value.
 void setDescription(java.lang.String description)
          Set the 'Description' attribute value.
 void setExtendedCost(CurrencyAmountGroup extendedCost)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setInventoryItemRPH(java.lang.String inventoryItemRPH)
          Set the 'InventoryItemRPH' attribute value.
 void setPassengerRPH(java.lang.String passengerRPH)
          Set the 'PassengerRPH' attribute value.
 void setQuantity(java.lang.Integer quantity)
          Set the 'Quantity' attribute value.
 void setUnitCost(CurrencyAmountGroup unitCost)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CostingItem

public CostingItem()
Method Detail

getUnitCost

public CurrencyAmountGroup getUnitCost()
Get the 'CurrencyAmountGroup' attributeGroup value. Unit cost in a given monetary unit.

Returns:
value

setUnitCost

public void setUnitCost(CurrencyAmountGroup unitCost)
Set the 'CurrencyAmountGroup' attributeGroup value. Unit cost in a given monetary unit.

Parameters:
unitCost -

getExtendedCost

public CurrencyAmountGroup getExtendedCost()
Get the 'CurrencyAmountGroup' attributeGroup value. Unit cost multiplied by quantity

Returns:
value

setExtendedCost

public void setExtendedCost(CurrencyAmountGroup extendedCost)
Set the 'CurrencyAmountGroup' attributeGroup value. Unit cost multiplied by quantity

Parameters:
extendedCost -

getCommission

public AgentCommissionGroup getCommission()
Get the 'AgentCommissionGroup' attributeGroup value. The commission payable to the agent.

Returns:
value

setCommission

public void setCommission(AgentCommissionGroup commission)
Set the 'AgentCommissionGroup' attributeGroup value. The commission payable to the agent.

Parameters:
commission -

getDescription

public java.lang.String getDescription()
Get the 'Description' attribute value. A description of an invoice item.

Returns:
value

setDescription

public void setDescription(java.lang.String description)
Set the 'Description' attribute value. A description of an invoice item.

Parameters:
description -

getQuantity

public java.lang.Integer getQuantity()
Get the 'Quantity' attribute value. Used to define the quantity for an associated element or attribute.

Returns:
value

setQuantity

public void setQuantity(java.lang.Integer quantity)
Set the 'Quantity' attribute value. Used to define the quantity for an associated element or attribute.

Parameters:
quantity -

getInventoryItemRPH

public java.lang.String getInventoryItemRPH()
Get the 'InventoryItemRPH' attribute value. Used to associate a cost with a specific inventory item, e.g. a supplement for a flight leg.

Returns:
value

setInventoryItemRPH

public void setInventoryItemRPH(java.lang.String inventoryItemRPH)
Set the 'InventoryItemRPH' attribute value. Used to associate a cost with a specific inventory item, e.g. a supplement for a flight leg.

Parameters:
inventoryItemRPH -

getPassengerRPH

public java.lang.String getPassengerRPH()
Get the 'PassengerRPH' attribute value. Used to associate a cost with a specific passenger, e.g. a vegetarian meal supplement.

Returns:
value

setPassengerRPH

public void setPassengerRPH(java.lang.String passengerRPH)
Set the 'PassengerRPH' attribute value. Used to associate a cost with a specific passenger, e.g. a vegetarian meal supplement.

Parameters:
passengerRPH -

getCostBasis

public java.lang.String getCostBasis()
Get the 'CostBasis' attribute value. Used to indicate what the cost is based on e.g., per Passenger, per Room, per Booking. Refer to OpenTravel Code List Charge Type (CHG).

Returns:
value

setCostBasis

public void setCostBasis(java.lang.String costBasis)
Set the 'CostBasis' attribute value. Used to indicate what the cost is based on e.g., per Passenger, per Room, per Booking. Refer to OpenTravel Code List Charge Type (CHG).

Parameters:
costBasis -