org.ota.pkg
Class PkgInvoiceDetail

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

public class PkgInvoiceDetail
extends java.lang.Object

A list of all the items making up a costed booking 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="PkgInvoiceDetail">
   <xs:sequence>
     <xs:element name="CostingItems" minOccurs="0">
       <!-- Reference to inner class CostingItems -->
     </xs:element>
     <xs:element name="GrossAmount" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="DepositAmount" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="AgentCommission" minOccurs="0" maxOccurs="8">
       <xs:complexType>
         <xs:attributeGroup ref="ns:AgentCommissionGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="NetAmount" minOccurs="0">
       <!-- Reference to inner class NetAmount -->
     </xs:element>
     <xs:element type="ns:TaxesType" name="TaxItems" minOccurs="0"/>
     <xs:element name="BalanceDueAmount" minOccurs="0">
       <!-- Reference to inner class BalanceDueAmount -->
     </xs:element>
     <xs:element name="AmountReceived" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class PkgInvoiceDetail.BalanceDueAmount
          The amount remaining to be paid by the customer i.e.
static class PkgInvoiceDetail.CostingItems
          A collection of invoice item lines.
static class PkgInvoiceDetail.NetAmount
          The amount payable by the agent, i.e.
 
Constructor Summary
PkgInvoiceDetail()
           
 
Method Summary
 void addAgentCommission(AgentCommissionGroup item)
          Add a 'AgentCommission' element item.
 void clearAgentCommissions()
          Remove all 'AgentCommission' element items.
 AgentCommissionGroup getAgentCommission(int index)
          Get 'AgentCommission' element item by position.
 java.util.List<AgentCommissionGroup> getAgentCommissions()
          Get the list of 'AgentCommission' element items.
 CurrencyAmountGroup getAmountReceived()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 PkgInvoiceDetail.BalanceDueAmount getBalanceDueAmount()
          Get the 'BalanceDueAmount' element value.
 PkgInvoiceDetail.CostingItems getCostingItems()
          Get the 'CostingItems' element value.
 CurrencyAmountGroup getDepositAmount()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 CurrencyAmountGroup getGrossAmount()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 PkgInvoiceDetail.NetAmount getNetAmount()
          Get the 'NetAmount' element value.
 Taxes getTaxItems()
          Get the 'TaxItems' element value.
 void setAgentCommissions(java.util.List<AgentCommissionGroup> list)
          Set the list of 'AgentCommission' element items.
 void setAmountReceived(CurrencyAmountGroup amountReceived)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setBalanceDueAmount(PkgInvoiceDetail.BalanceDueAmount balanceDueAmount)
          Set the 'BalanceDueAmount' element value.
 void setCostingItems(PkgInvoiceDetail.CostingItems costingItems)
          Set the 'CostingItems' element value.
 void setDepositAmount(CurrencyAmountGroup depositAmount)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setGrossAmount(CurrencyAmountGroup grossAmount)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setNetAmount(PkgInvoiceDetail.NetAmount netAmount)
          Set the 'NetAmount' element value.
 void setTaxItems(Taxes taxItems)
          Set the 'TaxItems' element value.
 int sizeAgentCommissions()
          Get the number of 'AgentCommission' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgInvoiceDetail

public PkgInvoiceDetail()
Method Detail

getCostingItems

public PkgInvoiceDetail.CostingItems getCostingItems()
Get the 'CostingItems' element value.

Returns:
value

setCostingItems

public void setCostingItems(PkgInvoiceDetail.CostingItems costingItems)
Set the 'CostingItems' element value.

Parameters:
costingItems -

getGrossAmount

public CurrencyAmountGroup getGrossAmount()
Get the 'CurrencyAmountGroup' attributeGroup value. The total booking cost to the customer.

Returns:
value

setGrossAmount

public void setGrossAmount(CurrencyAmountGroup grossAmount)
Set the 'CurrencyAmountGroup' attributeGroup value. The total booking cost to the customer.

Parameters:
grossAmount -

getDepositAmount

public CurrencyAmountGroup getDepositAmount()
Get the 'CurrencyAmountGroup' attributeGroup value. The amount payable at the time of booking to secure the booking.

Returns:
value

setDepositAmount

public void setDepositAmount(CurrencyAmountGroup depositAmount)
Set the 'CurrencyAmountGroup' attributeGroup value. The amount payable at the time of booking to secure the booking.

Parameters:
depositAmount -

getAgentCommissions

public java.util.List<AgentCommissionGroup> getAgentCommissions()
Get the list of 'AgentCommission' element items. The total fee earned by the agent for the booking.

Returns:
list

setAgentCommissions

public void setAgentCommissions(java.util.List<AgentCommissionGroup> list)
Set the list of 'AgentCommission' element items. The total fee earned by the agent for the booking.

Parameters:
list -

sizeAgentCommissions

public int sizeAgentCommissions()
Get the number of 'AgentCommission' element items.

Returns:
count

addAgentCommission

public void addAgentCommission(AgentCommissionGroup item)
Add a 'AgentCommission' element item.

Parameters:
item -

getAgentCommission

public AgentCommissionGroup getAgentCommission(int index)
Get 'AgentCommission' element item by position.

Parameters:
index -
Returns:
item

clearAgentCommissions

public void clearAgentCommissions()
Remove all 'AgentCommission' element items.


getNetAmount

public PkgInvoiceDetail.NetAmount getNetAmount()
Get the 'NetAmount' element value.

Returns:
value

setNetAmount

public void setNetAmount(PkgInvoiceDetail.NetAmount netAmount)
Set the 'NetAmount' element value.

Parameters:
netAmount -

getTaxItems

public Taxes getTaxItems()
Get the 'TaxItems' element value. A collection of tax item lines.

Returns:
value

setTaxItems

public void setTaxItems(Taxes taxItems)
Set the 'TaxItems' element value. A collection of tax item lines.

Parameters:
taxItems -

getBalanceDueAmount

public PkgInvoiceDetail.BalanceDueAmount getBalanceDueAmount()
Get the 'BalanceDueAmount' element value.

Returns:
value

setBalanceDueAmount

public void setBalanceDueAmount(PkgInvoiceDetail.BalanceDueAmount balanceDueAmount)
Set the 'BalanceDueAmount' element value.

Parameters:
balanceDueAmount -

getAmountReceived

public CurrencyAmountGroup getAmountReceived()
Get the 'CurrencyAmountGroup' attributeGroup value. The payment amount received against the reservation.

Returns:
value

setAmountReceived

public void setAmountReceived(CurrencyAmountGroup amountReceived)
Set the 'CurrencyAmountGroup' attributeGroup value. The payment amount received against the reservation.

Parameters:
amountReceived -