org.ota.pkg
Class BookRS

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

public class BookRS
extends java.lang.Object

Confirmation of a package booking. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OTA_PkgBookRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element type="ns:PkgReservation" name="PackageReservation"/>
         <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SuccessType"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PkgReservation">
   <xs:sequence>
     <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
     <xs:element type="ns:UniqueID_Type" name="UniqueID"/>
     <xs:element type="ns:PackageResponseType" name="Package"/>
     <xs:element type="ns:ContactPersonType" name="ContactDetail"/>
     <xs:element name="PassengerListItems">
       <xs:complexType>
         <xs:sequence>
           <xs:element type="ns:PkgPassengerListItem" name="PassengerListItem" maxOccurs="99"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
     <xs:element name="OwnInsuranceChoices" minOccurs="0">
       <!-- Reference to inner class OwnInsuranceChoices -->
     </xs:element>
     <xs:element name="TicketingInfo" minOccurs="0">
       <!-- Reference to inner class TicketingInfo -->
     </xs:element>
     <xs:element type="ns:PkgInvoiceDetail" name="InvoiceDetail"/>
     <xs:element name="Transactions" minOccurs="0">
       <!-- Reference to inner class Transactions -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class BookRS.OwnInsuranceChoices
          A collection of insurance policy details supplied by the customers.
static class BookRS.TicketingInfo
          Info on ticketing fulfilment, Schema fragment(s) for this class:
static class BookRS.Transactions
          Details of each transaction posted against a reservation.
 
Constructor Summary
BookRS()
           
 
Method Summary
 void addPackageReservationPassengerListItem(PkgPassengerListItem item)
          Add a 'PassengerListItem' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearPackageReservationPassengerListItems()
          Remove all 'PassengerListItem' element items.
 CurrencyCodeGroup getCurrencyCodeGroup()
          Get the 'CurrencyCodeGroup' attributeGroup value.
 Errors getErrors()
          Get the 'Errors' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 BookRS.OwnInsuranceChoices getOwnInsuranceChoices()
          Get the 'OwnInsuranceChoices' element value.
 ContactPerson getPackageReservationContactDetail()
          Get the 'ContactDetail' element value.
 PkgInvoiceDetail getPackageReservationInvoiceDetail()
          Get the 'InvoiceDetail' element value.
 PackageResponse getPackageReservationPackage()
          Get the 'Package' element value.
 PkgPassengerListItem getPackageReservationPassengerListItem(int index)
          Get 'PassengerListItem' element item by position.
 java.util.List<PkgPassengerListItem> getPackageReservationPassengerListItems()
          Get the list of 'PassengerListItem' element items.
 POS getPackageReservationPOS()
          Get the 'POS' element value.
 TPAExtensions getPackageReservationTPAExtensions()
          Get the 'TPA_Extensions' element value.
 UniqueID getPackageReservationUniqueID()
          Get the 'UniqueID' element value.
 BookRS.TicketingInfo getTicketingInfo()
          Get the 'TicketingInfo' element value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 BookRS.Transactions getTransactions()
          Get the 'Transactions' element value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 boolean ifErrors()
          Check if Errors is current selection for choice.
 boolean ifSuccess()
          Check if Success is current selection for choice.
 void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup)
          Set the 'CurrencyCodeGroup' attributeGroup value.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setOwnInsuranceChoices(BookRS.OwnInsuranceChoices ownInsuranceChoices)
          Set the 'OwnInsuranceChoices' element value.
 void setPackageReservationContactDetail(ContactPerson packageReservationContactDetail)
          Set the 'ContactDetail' element value.
 void setPackageReservationInvoiceDetail(PkgInvoiceDetail packageReservationInvoiceDetail)
          Set the 'InvoiceDetail' element value.
 void setPackageReservationPackage(PackageResponse packageReservationPackage)
          Set the 'Package' element value.
 void setPackageReservationPassengerListItems(java.util.List<PkgPassengerListItem> list)
          Set the list of 'PassengerListItem' element items.
 void setPackageReservationPOS(POS packageReservationPOS)
          Set the 'POS' element value.
 void setPackageReservationTPAExtensions(TPAExtensions packageReservationTPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setPackageReservationUniqueID(UniqueID packageReservationUniqueID)
          Set the 'UniqueID' element value.
 void setTicketingInfo(BookRS.TicketingInfo ticketingInfo)
          Set the 'TicketingInfo' element value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setTransactions(BookRS.Transactions transactions)
          Set the 'Transactions' element value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizePackageReservationPassengerListItems()
          Get the number of 'PassengerListItem' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookRS

public BookRS()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifSuccess

public boolean ifSuccess()
Check if Success is current selection for choice.

Returns:
true if selection, false if not

getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value. The presence of this element indicates that, while the preceding request message has been successfully processed, the requeat may not have been fully satisfied.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value. The presence of this element indicates that, while the preceding request message has been successfully processed, the requeat may not have been fully satisfied.

Parameters:
warnings -

getPackageReservationPOS

public POS getPackageReservationPOS()
Get the 'POS' element value. Point of sale object

Returns:
value

setPackageReservationPOS

public void setPackageReservationPOS(POS packageReservationPOS)
Set the 'POS' element value. Point of sale object

Parameters:
packageReservationPOS -

getPackageReservationUniqueID

public UniqueID getPackageReservationUniqueID()
Get the 'UniqueID' element value. The reference for the reservation.

Returns:
value

setPackageReservationUniqueID

public void setPackageReservationUniqueID(UniqueID packageReservationUniqueID)
Set the 'UniqueID' element value. The reference for the reservation.

Parameters:
packageReservationUniqueID -

getPackageReservationPackage

public PackageResponse getPackageReservationPackage()
Get the 'Package' element value. Details of a booked package.

Returns:
value

setPackageReservationPackage

public void setPackageReservationPackage(PackageResponse packageReservationPackage)
Set the 'Package' element value. Details of a booked package.

Parameters:
packageReservationPackage -

getPackageReservationContactDetail

public ContactPerson getPackageReservationContactDetail()
Get the 'ContactDetail' element value. Information on the person who is the contact for the booking.

Returns:
value

setPackageReservationContactDetail

public void setPackageReservationContactDetail(ContactPerson packageReservationContactDetail)
Set the 'ContactDetail' element value. Information on the person who is the contact for the booking.

Parameters:
packageReservationContactDetail -

getPackageReservationPassengerListItems

public java.util.List<PkgPassengerListItem> getPackageReservationPassengerListItems()
Get the list of 'PassengerListItem' element items. Details of all passengers in a reservation or reservation segment.

Returns:
list

setPackageReservationPassengerListItems

public void setPackageReservationPassengerListItems(java.util.List<PkgPassengerListItem> list)
Set the list of 'PassengerListItem' element items. Details of all passengers in a reservation or reservation segment.

Parameters:
list -

sizePackageReservationPassengerListItems

public int sizePackageReservationPassengerListItems()
Get the number of 'PassengerListItem' element items.

Returns:
count

addPackageReservationPassengerListItem

public void addPackageReservationPassengerListItem(PkgPassengerListItem item)
Add a 'PassengerListItem' element item.

Parameters:
item -

getPackageReservationPassengerListItem

public PkgPassengerListItem getPackageReservationPassengerListItem(int index)
Get 'PassengerListItem' element item by position.

Parameters:
index -
Returns:
item

clearPackageReservationPassengerListItems

public void clearPackageReservationPassengerListItems()
Remove all 'PassengerListItem' element items.


getOwnInsuranceChoices

public BookRS.OwnInsuranceChoices getOwnInsuranceChoices()
Get the 'OwnInsuranceChoices' element value. Details of a Package Holiday reservation object.

Returns:
value

setOwnInsuranceChoices

public void setOwnInsuranceChoices(BookRS.OwnInsuranceChoices ownInsuranceChoices)
Set the 'OwnInsuranceChoices' element value. Details of a Package Holiday reservation object.

Parameters:
ownInsuranceChoices -

getTicketingInfo

public BookRS.TicketingInfo getTicketingInfo()
Get the 'TicketingInfo' element value. Details of a Package Holiday reservation object.

Returns:
value

setTicketingInfo

public void setTicketingInfo(BookRS.TicketingInfo ticketingInfo)
Set the 'TicketingInfo' element value. Details of a Package Holiday reservation object.

Parameters:
ticketingInfo -

getPackageReservationInvoiceDetail

public PkgInvoiceDetail getPackageReservationInvoiceDetail()
Get the 'InvoiceDetail' element value. The cost breakdown for a package.

Returns:
value

setPackageReservationInvoiceDetail

public void setPackageReservationInvoiceDetail(PkgInvoiceDetail packageReservationInvoiceDetail)
Set the 'InvoiceDetail' element value. The cost breakdown for a package.

Parameters:
packageReservationInvoiceDetail -

getTransactions

public BookRS.Transactions getTransactions()
Get the 'Transactions' element value. Details of a Package Holiday reservation object.

Returns:
value

setTransactions

public void setTransactions(BookRS.Transactions transactions)
Set the 'Transactions' element value. Details of a Package Holiday reservation object.

Parameters:
transactions -

getPackageReservationTPAExtensions

public TPAExtensions getPackageReservationTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setPackageReservationTPAExtensions

public void setPackageReservationTPAExtensions(TPAExtensions packageReservationTPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
packageReservationTPAExtensions -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -

ifErrors

public boolean ifErrors()
Check if Errors is current selection for choice.

Returns:
true if selection, false if not

getErrors

public Errors getErrors()
Get the 'Errors' element value. The presence of this element indicates that the receiving system has been unable to process preceding request message.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value. The presence of this element indicates that the receiving system has been unable to process preceding request message.

Parameters:
errors -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -

getCurrencyCodeGroup

public CurrencyCodeGroup getCurrencyCodeGroup()
Get the 'CurrencyCodeGroup' attributeGroup value.

Returns:
value

setCurrencyCodeGroup

public void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup)
Set the 'CurrencyCodeGroup' attributeGroup value.

Parameters:
currencyCodeGroup -