org.ota.cruise
Class PaymentRQ

java.lang.Object
  extended by org.ota.cruise.PaymentRQ

public class PaymentRQ
extends java.lang.Object

This message provides for payments to multiple reservations. It is also a request that can make a payment without needing to retrieve a reservation 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_CruisePaymentRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS"/>
       <xs:element name="ReservationPayment" maxOccurs="9">
         <!-- Reference to inner class ReservationPayment -->
       </xs:element>
       <xs:element name="AgentInfo" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:AgentInfoGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
     <xs:attribute type="ns:TransactionActionType" use="optional" name="TransactionActionCode"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class PaymentRQ.ReservationPayment
          Payment information for a reservation.
 
Constructor Summary
PaymentRQ()
           
 
Method Summary
 void addReservationPayment(PaymentRQ.ReservationPayment item)
          Add a 'ReservationPayment' element item.
 void clearReservationPayments()
          Remove all 'ReservationPayment' element items.
 AgentInfoGroup getAgentInfo()
          Get the 'AgentInfoGroup' attributeGroup value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 POS getPOS()
          Get the 'POS' element value.
 PaymentRQ.ReservationPayment getReservationPayment(int index)
          Get 'ReservationPayment' element item by position.
 java.util.List<PaymentRQ.ReservationPayment> getReservationPayments()
          Get the list of 'ReservationPayment' element items.
 TransactionAction getTransactionActionCode()
          Get the 'TransactionActionCode' attribute value.
 void setAgentInfo(AgentInfoGroup agentInfo)
          Set the 'AgentInfoGroup' attributeGroup value.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPOS(POS POS)
          Set the 'POS' element value.
 void setReservationPayments(java.util.List<PaymentRQ.ReservationPayment> list)
          Set the list of 'ReservationPayment' element items.
 void setTransactionActionCode(TransactionAction transactionActionCode)
          Set the 'TransactionActionCode' attribute value.
 int sizeReservationPayments()
          Get the number of 'ReservationPayment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaymentRQ

public PaymentRQ()
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 -

getReservationPayments

public java.util.List<PaymentRQ.ReservationPayment> getReservationPayments()
Get the list of 'ReservationPayment' element items.

Returns:
list

setReservationPayments

public void setReservationPayments(java.util.List<PaymentRQ.ReservationPayment> list)
Set the list of 'ReservationPayment' element items.

Parameters:
list -

sizeReservationPayments

public int sizeReservationPayments()
Get the number of 'ReservationPayment' element items.

Returns:
count

addReservationPayment

public void addReservationPayment(PaymentRQ.ReservationPayment item)
Add a 'ReservationPayment' element item.

Parameters:
item -

getReservationPayment

public PaymentRQ.ReservationPayment getReservationPayment(int index)
Get 'ReservationPayment' element item by position.

Parameters:
index -
Returns:
item

clearReservationPayments

public void clearReservationPayments()
Remove all 'ReservationPayment' element items.


getAgentInfo

public AgentInfoGroup getAgentInfo()
Get the 'AgentInfoGroup' attributeGroup value. Additional agent-level information used when processing a cruise payment.

Returns:
value

setAgentInfo

public void setAgentInfo(AgentInfoGroup agentInfo)
Set the 'AgentInfoGroup' attributeGroup value. Additional agent-level information used when processing a cruise payment.

Parameters:
agentInfo -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes -

getTransactionActionCode

public TransactionAction getTransactionActionCode()
Get the 'TransactionActionCode' attribute value.

Returns:
value

setTransactionActionCode

public void setTransactionActionCode(TransactionAction transactionActionCode)
Set the 'TransactionActionCode' attribute value.

Parameters:
transactionActionCode -