org.ota.air
Class Authorization

java.lang.Object
  extended by org.ota.air.Authorization

public class Authorization
extends java.lang.Object

Information with which a traveller's identification is verified and/or charges are authorized.ToDo - this types should be moved to OTA_CommonTypes. It's required in a common types file, since the both AuthRQ/RS use it. 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="AuthorizationType">
   <xs:sequence>
     <xs:choice>
       <xs:element name="CheckAuthorization" minOccurs="0">
         <!-- Reference to inner class CheckAuthorization -->
       </xs:element>
       <xs:element name="CreditCardAuthorization" minOccurs="0">
         <!-- Reference to inner class CreditCardAuthorization -->
       </xs:element>
       <xs:element name="AccountAuthorization" minOccurs="0">
         <!-- Reference to inner class AccountAuthorization -->
       </xs:element>
     </xs:choice>
     <xs:element type="ns:DocumentType" name="DriversLicenseAuthorization" minOccurs="0"/>
     <xs:element name="BookingReferenceID" minOccurs="0">
       <!-- Reference to inner class BookingReferenceID -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="PrincipalCompanyCode"/>
   <xs:attribute type="xs:string" use="optional" name="RefNumber"/>
 </xs:complexType>
 


Nested Class Summary
static class Authorization.AccountAuthorization
          Specifies account information about the customer seeking authorization.
static class Authorization.BookingReferenceID
          The booking or confirmation number for which charges are being authorized.
static class Authorization.CheckAuthorization
          Specifies check information about the customer seeking authorization.
static class Authorization.CreditCardAuthorization
          Specifies credit card information about the customer seeking authorization.
 
Constructor Summary
Authorization()
           
 
Method Summary
 void clearChoiceSelect()
          Clear the choice selection.
 Authorization.AccountAuthorization getAccountAuthorization()
          Get the 'AccountAuthorization' element value.
 Authorization.BookingReferenceID getBookingReferenceID()
          Get the 'BookingReferenceID' element value.
 Authorization.CheckAuthorization getCheckAuthorization()
          Get the 'CheckAuthorization' element value.
 Authorization.CreditCardAuthorization getCreditCardAuthorization()
          Get the 'CreditCardAuthorization' element value.
 Document getDriversLicenseAuthorization()
          Get the 'DriversLicenseAuthorization' element value.
 java.lang.String getPrincipalCompanyCode()
          Get the 'PrincipalCompanyCode' attribute value.
 java.lang.String getRefNumber()
          Get the 'RefNumber' attribute value.
 boolean ifAccountAuthorization()
          Check if AccountAuthorization is current selection for choice.
 boolean ifCheckAuthorization()
          Check if CheckAuthorization is current selection for choice.
 boolean ifCreditCardAuthorization()
          Check if CreditCardAuthorization is current selection for choice.
 void setAccountAuthorization(Authorization.AccountAuthorization accountAuthorization)
          Set the 'AccountAuthorization' element value.
 void setBookingReferenceID(Authorization.BookingReferenceID bookingReferenceID)
          Set the 'BookingReferenceID' element value.
 void setCheckAuthorization(Authorization.CheckAuthorization checkAuthorization)
          Set the 'CheckAuthorization' element value.
 void setCreditCardAuthorization(Authorization.CreditCardAuthorization creditCardAuthorization)
          Set the 'CreditCardAuthorization' element value.
 void setDriversLicenseAuthorization(Document driversLicenseAuthorization)
          Set the 'DriversLicenseAuthorization' element value.
 void setPrincipalCompanyCode(java.lang.String principalCompanyCode)
          Set the 'PrincipalCompanyCode' attribute value.
 void setRefNumber(java.lang.String refNumber)
          Set the 'RefNumber' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authorization

public Authorization()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifCheckAuthorization

public boolean ifCheckAuthorization()
Check if CheckAuthorization is current selection for choice.

Returns:
true if selection, false if not

getCheckAuthorization

public Authorization.CheckAuthorization getCheckAuthorization()
Get the 'CheckAuthorization' element value.

Returns:
value

setCheckAuthorization

public void setCheckAuthorization(Authorization.CheckAuthorization checkAuthorization)
Set the 'CheckAuthorization' element value.

Parameters:
checkAuthorization -

ifCreditCardAuthorization

public boolean ifCreditCardAuthorization()
Check if CreditCardAuthorization is current selection for choice.

Returns:
true if selection, false if not

getCreditCardAuthorization

public Authorization.CreditCardAuthorization getCreditCardAuthorization()
Get the 'CreditCardAuthorization' element value.

Returns:
value

setCreditCardAuthorization

public void setCreditCardAuthorization(Authorization.CreditCardAuthorization creditCardAuthorization)
Set the 'CreditCardAuthorization' element value.

Parameters:
creditCardAuthorization -

ifAccountAuthorization

public boolean ifAccountAuthorization()
Check if AccountAuthorization is current selection for choice.

Returns:
true if selection, false if not

getAccountAuthorization

public Authorization.AccountAuthorization getAccountAuthorization()
Get the 'AccountAuthorization' element value.

Returns:
value

setAccountAuthorization

public void setAccountAuthorization(Authorization.AccountAuthorization accountAuthorization)
Set the 'AccountAuthorization' element value.

Parameters:
accountAuthorization -

getDriversLicenseAuthorization

public Document getDriversLicenseAuthorization()
Get the 'DriversLicenseAuthorization' element value. Information used for validating a drivers license or for supporting a check or credit card authorization request.

Returns:
value

setDriversLicenseAuthorization

public void setDriversLicenseAuthorization(Document driversLicenseAuthorization)
Set the 'DriversLicenseAuthorization' element value. Information used for validating a drivers license or for supporting a check or credit card authorization request.

Parameters:
driversLicenseAuthorization -

getBookingReferenceID

public Authorization.BookingReferenceID getBookingReferenceID()
Get the 'BookingReferenceID' element value.

Returns:
value

setBookingReferenceID

public void setBookingReferenceID(Authorization.BookingReferenceID bookingReferenceID)
Set the 'BookingReferenceID' element value.

Parameters:
bookingReferenceID -

getPrincipalCompanyCode

public java.lang.String getPrincipalCompanyCode()
Get the 'PrincipalCompanyCode' attribute value. The code associated with the company (e.g., two to three character airline designator) submitting a request to an authorization vendor system.

Returns:
value

setPrincipalCompanyCode

public void setPrincipalCompanyCode(java.lang.String principalCompanyCode)
Set the 'PrincipalCompanyCode' attribute value. The code associated with the company (e.g., two to three character airline designator) submitting a request to an authorization vendor system.

Parameters:
principalCompanyCode -

getRefNumber

public java.lang.String getRefNumber()
Get the 'RefNumber' attribute value. A unique identifier for an authorization request. It may be used to link a response to a corresponding request item.

Returns:
value

setRefNumber

public void setRefNumber(java.lang.String refNumber)
Set the 'RefNumber' attribute value. A unique identifier for an authorization request. It may be used to link a response to a corresponding request item.

Parameters:
refNumber -