org.ota.shared
Class PaymentDetail

java.lang.Object
  extended by org.ota.shared.PaymentForm
      extended by org.ota.shared.PaymentDetail
Direct Known Subclasses:
AirCheckIn.PaymentInfo, AirCheckIn.PaymentInfo.PaymentDetail, BookRQ.PaymentDetails.PaymentDetail, CruiseGuestInfo.PaymentOptions.PaymentOption, Fulfillment.PaymentDetails.PaymentDetail, PaymentRS.ReservationPayment.PaymentDetail, VehicleReservationRQAdditionalInfo.RentalPaymentPref

public class PaymentDetail
extends PaymentForm

Details of payment. 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="PaymentDetailType">
   <xs:complexContent>
     <xs:extension base="ns:PaymentFormType">
       <xs:sequence>
         <xs:element name="PaymentAmount" minOccurs="0" maxOccurs="2">
           <!-- Reference to inner class PaymentAmount -->
         </xs:element>
         <xs:element type="ns:CommissionType" name="Commission" minOccurs="0"/>
       </xs:sequence>
       <xs:attribute type="xs:string" use="optional" name="PaymentType"/>
       <xs:attribute type="xs:boolean" use="optional" name="SplitPaymentInd"/>
       <xs:attribute type="xs:int" use="optional" name="AuthorizedDays"/>
       <xs:attribute type="xs:boolean" use="optional" name="PrimaryPaymentInd"/>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 


Nested Class Summary
static class PaymentDetail.PaymentAmount
          Provides the monetary amount due for payment as quoted.
 
Nested classes/interfaces inherited from class org.ota.shared.PaymentForm
PaymentForm.Choice, PaymentForm.PaymentTransactionTypeCode
 
Constructor Summary
PaymentDetail()
           
 
Method Summary
 void addPaymentAmount(PaymentDetail.PaymentAmount item)
          Add a 'PaymentAmount' element item.
 void clearPaymentAmounts()
          Remove all 'PaymentAmount' element items.
 java.lang.Integer getAuthorizedDays()
          Get the 'AuthorizedDays' attribute value.
 Commission getCommission()
          Get the 'Commission' element value.
 java.lang.String getPayment()
          Get the 'PaymentType' attribute value.
 PaymentDetail.PaymentAmount getPaymentAmount(int index)
          Get 'PaymentAmount' element item by position.
 java.util.List<PaymentDetail.PaymentAmount> getPaymentAmounts()
          Get the list of 'PaymentAmount' element items.
 java.lang.Boolean getPrimaryPaymentInd()
          Get the 'PrimaryPaymentInd' attribute value.
 java.lang.Boolean getSplitPaymentInd()
          Get the 'SplitPaymentInd' attribute value.
 void setAuthorizedDays(java.lang.Integer authorizedDays)
          Set the 'AuthorizedDays' attribute value.
 void setCommission(Commission commission)
          Set the 'Commission' element value.
 void setPayment(java.lang.String payment)
          Set the 'PaymentType' attribute value.
 void setPaymentAmounts(java.util.List<PaymentDetail.PaymentAmount> list)
          Set the list of 'PaymentAmount' element items.
 void setPrimaryPaymentInd(java.lang.Boolean primaryPaymentInd)
          Set the 'PrimaryPaymentInd' attribute value.
 void setSplitPaymentInd(java.lang.Boolean splitPaymentInd)
          Set the 'SplitPaymentInd' attribute value.
 int sizePaymentAmounts()
          Get the number of 'PaymentAmount' element items.
 
Methods inherited from class org.ota.shared.PaymentForm
getChoice, getCostCenterID, getGuaranteeID, getGuaranteeIndicator, getGuaranteeTypeCode, getPaymentTransactionTypeCode, getPrivacyGroup, getRemark, getRPH, setChoice, setCostCenterID, setGuaranteeID, setGuaranteeIndicator, setGuaranteeTypeCode, setPaymentTransactionTypeCode, setPrivacyGroup, setRemark, setRPH
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaymentDetail

public PaymentDetail()
Method Detail

getPaymentAmounts

public java.util.List<PaymentDetail.PaymentAmount> getPaymentAmounts()
Get the list of 'PaymentAmount' element items.

Returns:
list

setPaymentAmounts

public void setPaymentAmounts(java.util.List<PaymentDetail.PaymentAmount> list)
Set the list of 'PaymentAmount' element items.

Parameters:
list -

sizePaymentAmounts

public int sizePaymentAmounts()
Get the number of 'PaymentAmount' element items.

Returns:
count

addPaymentAmount

public void addPaymentAmount(PaymentDetail.PaymentAmount item)
Add a 'PaymentAmount' element item.

Parameters:
item -

getPaymentAmount

public PaymentDetail.PaymentAmount getPaymentAmount(int index)
Get 'PaymentAmount' element item by position.

Parameters:
index -
Returns:
item

clearPaymentAmounts

public void clearPaymentAmounts()
Remove all 'PaymentAmount' element items.


getCommission

public Commission getCommission()
Get the 'Commission' element value. Used to specify the commission details when paid to a third or internal party.

Returns:
value

setCommission

public void setCommission(Commission commission)
Set the 'Commission' element value. Used to specify the commission details when paid to a third or internal party.

Parameters:
commission -

getPayment

public java.lang.String getPayment()
Get the 'PaymentType' attribute value. Used to specify the form of payment. Refer to OpenTravel Code List Payment Type (PMT).

Returns:
value

setPayment

public void setPayment(java.lang.String payment)
Set the 'PaymentType' attribute value. Used to specify the form of payment. Refer to OpenTravel Code List Payment Type (PMT).

Parameters:
payment -

getSplitPaymentInd

public java.lang.Boolean getSplitPaymentInd()
Get the 'SplitPaymentInd' attribute value. When true, indicates that more than one form of payment will be used.

Returns:
value

setSplitPaymentInd

public void setSplitPaymentInd(java.lang.Boolean splitPaymentInd)
Set the 'SplitPaymentInd' attribute value. When true, indicates that more than one form of payment will be used.

Parameters:
splitPaymentInd -

getAuthorizedDays

public java.lang.Integer getAuthorizedDays()
Get the 'AuthorizedDays' attribute value. Number of days being charged to this payment method.

Returns:
value

setAuthorizedDays

public void setAuthorizedDays(java.lang.Integer authorizedDays)
Set the 'AuthorizedDays' attribute value. Number of days being charged to this payment method.

Parameters:
authorizedDays -

getPrimaryPaymentInd

public java.lang.Boolean getPrimaryPaymentInd()
Get the 'PrimaryPaymentInd' attribute value. When true, indicates this is the primary method of payment.

Returns:
value

setPrimaryPaymentInd

public void setPrimaryPaymentInd(java.lang.Boolean primaryPaymentInd)
Set the 'PrimaryPaymentInd' attribute value. When true, indicates this is the primary method of payment.

Parameters:
primaryPaymentInd -