org.ota.pkg
Class BookRQ

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

public class BookRQ
extends java.lang.Object

A message to request a package holiday 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_PkgBookRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0"/>
       <xs:element type="ns:PackageType" name="PackageRequest" minOccurs="0"/>
       <xs:element type="ns:ContactPersonType" name="ContactDetail" minOccurs="0"/>
       <xs:element name="PassengerListItems" minOccurs="0">
         <!-- Reference to inner class PassengerListItems -->
       </xs:element>
       <xs:element name="OwnInsuranceChoices" minOccurs="0">
         <!-- Reference to inner class OwnInsuranceChoices -->
       </xs:element>
       <xs:element name="PaymentDetails" minOccurs="0">
         <!-- Reference to inner class PaymentDetails -->
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attributeGroup ref="ns:ReqRespVersion"/>
     <xs:attribute type="ns:TransactionActionType" use="required" name="ActionType"/>
     <xs:attribute type="xs:float" use="optional" name="ExpectedGrossAmount"/>
     <xs:attribute type="xs:string" use="optional" name="RequestedCurrency"/>
   </xs:complexType>
 </xs:element>
 
 <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"/>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ReqRespVersion">
   <xs:attribute type="xs:string" use="optional" name="ReqRespVersion"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class BookRQ.OwnInsuranceChoices
          A collection of insurance policy details supplied by the customers.
static class BookRQ.PassengerListItems
          Details of all passengers in a reservation or reservation segment.
static class BookRQ.PaymentDetails
          A collection of chosen payment methods.
 
Constructor Summary
BookRQ()
           
 
Method Summary
 TransactionAction getAction()
          Get the 'ActionType' attribute value.
 ContactPerson getContactDetail()
          Get the 'ContactDetail' element value.
 java.lang.Float getExpectedGrossAmount()
          Get the 'ExpectedGrossAmount' attribute value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 BookRQ.OwnInsuranceChoices getOwnInsuranceChoices()
          Get the 'OwnInsuranceChoices' element value.
 _package getPackageRequest()
          Get the 'PackageRequest' element value.
 BookRQ.PassengerListItems getPassengerListItems()
          Get the 'PassengerListItems' element value.
 BookRQ.PaymentDetails getPaymentDetails()
          Get the 'PaymentDetails' element value.
 POS getPOS()
          Get the 'POS' element value.
 java.lang.String getReqRespVersion()
          Get the 'ReqRespVersion' attribute value.
 java.lang.String getRequestedCurrency()
          Get the 'RequestedCurrency' attribute value.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 UniqueID getUniqueID()
          Get the 'UniqueID' element value.
 void setAction(TransactionAction action)
          Set the 'ActionType' attribute value.
 void setContactDetail(ContactPerson contactDetail)
          Set the 'ContactDetail' element value.
 void setExpectedGrossAmount(java.lang.Float expectedGrossAmount)
          Set the 'ExpectedGrossAmount' attribute value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setOwnInsuranceChoices(BookRQ.OwnInsuranceChoices ownInsuranceChoices)
          Set the 'OwnInsuranceChoices' element value.
 void setPackageRequest(_package packageRequest)
          Set the 'PackageRequest' element value.
 void setPassengerListItems(BookRQ.PassengerListItems passengerListItems)
          Set the 'PassengerListItems' element value.
 void setPaymentDetails(BookRQ.PaymentDetails paymentDetails)
          Set the 'PaymentDetails' element value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setReqRespVersion(java.lang.String reqRespVersion)
          Set the 'ReqRespVersion' attribute value.
 void setRequestedCurrency(java.lang.String requestedCurrency)
          Set the 'RequestedCurrency' attribute value.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 void setUniqueID(UniqueID uniqueID)
          Set the 'UniqueID' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookRQ

public BookRQ()
Method Detail

getPOS

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

Returns:
value

setPOS

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

Parameters:
POS -

getUniqueID

public UniqueID getUniqueID()
Get the 'UniqueID' element value. Booking or reservation reference - used when confirming a provisional reservation.

Returns:
value

setUniqueID

public void setUniqueID(UniqueID uniqueID)
Set the 'UniqueID' element value. Booking or reservation reference - used when confirming a provisional reservation.

Parameters:
uniqueID -

getPackageRequest

public _package getPackageRequest()
Get the 'PackageRequest' element value. The codes identifying the package being booked

Returns:
value

setPackageRequest

public void setPackageRequest(_package packageRequest)
Set the 'PackageRequest' element value. The codes identifying the package being booked

Parameters:
packageRequest -

getContactDetail

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

Returns:
value

setContactDetail

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

Parameters:
contactDetail -

getPassengerListItems

public BookRQ.PassengerListItems getPassengerListItems()
Get the 'PassengerListItems' element value.

Returns:
value

setPassengerListItems

public void setPassengerListItems(BookRQ.PassengerListItems passengerListItems)
Set the 'PassengerListItems' element value.

Parameters:
passengerListItems -

getOwnInsuranceChoices

public BookRQ.OwnInsuranceChoices getOwnInsuranceChoices()
Get the 'OwnInsuranceChoices' element value.

Returns:
value

setOwnInsuranceChoices

public void setOwnInsuranceChoices(BookRQ.OwnInsuranceChoices ownInsuranceChoices)
Set the 'OwnInsuranceChoices' element value.

Parameters:
ownInsuranceChoices -

getPaymentDetails

public BookRQ.PaymentDetails getPaymentDetails()
Get the 'PaymentDetails' element value.

Returns:
value

setPaymentDetails

public void setPaymentDetails(BookRQ.PaymentDetails paymentDetails)
Set the 'PaymentDetails' element value.

Parameters:
paymentDetails -

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 -

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 -

getReqRespVersion

public java.lang.String getReqRespVersion()
Get the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Returns:
value

setReqRespVersion

public void setReqRespVersion(java.lang.String reqRespVersion)
Set the 'ReqRespVersion' attribute value. Used to request the version of the payload message desired for the response.

Parameters:
reqRespVersion -

getAction

public TransactionAction getAction()
Get the 'ActionType' attribute value. Type of booking action required

Returns:
value

setAction

public void setAction(TransactionAction action)
Set the 'ActionType' attribute value. Type of booking action required

Parameters:
action -

getExpectedGrossAmount

public java.lang.Float getExpectedGrossAmount()
Get the 'ExpectedGrossAmount' attribute value. Used with an ActionType of 'Commit', this is used by the supplier to respond with a warning if the actual gross amount of the booking is different from this amount (optionally outside a mutually agreed tolerance value).

Returns:
value

setExpectedGrossAmount

public void setExpectedGrossAmount(java.lang.Float expectedGrossAmount)
Set the 'ExpectedGrossAmount' attribute value. Used with an ActionType of 'Commit', this is used by the supplier to respond with a warning if the actual gross amount of the booking is different from this amount (optionally outside a mutually agreed tolerance value).

Parameters:
expectedGrossAmount -

getRequestedCurrency

public java.lang.String getRequestedCurrency()
Get the 'RequestedCurrency' attribute value. The code specifying the currency in which the response should be sent. Use ISO 4217, three alpha code.

Returns:
value

setRequestedCurrency

public void setRequestedCurrency(java.lang.String requestedCurrency)
Set the 'RequestedCurrency' attribute value. The code specifying the currency in which the response should be sent. Use ISO 4217, three alpha code.

Parameters:
requestedCurrency -