org.ota.shared
Class PaymentForm.Choice.LoyaltyRedemption

java.lang.Object
  extended by org.ota.shared.PaymentForm.Choice.LoyaltyRedemption
Enclosing class:
PaymentForm.Choice

public static class PaymentForm.Choice.LoyaltyRedemption
extends java.lang.Object

Details of a loyalty redemption arrangement. This is normally miles or points. 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="LoyaltyRedemption">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="LoyaltyCertificate" minOccurs="0" maxOccurs="9">
         <!-- Reference to inner class LoyaltyCertificate -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:LoyaltyCertificateNumberGroup"/>
     <xs:attributeGroup ref="ns:PromotionCodeGroup"/>
     <xs:attribute type="xs:string" use="optional" name="RedemptionQuantity"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate
          A certificate may be needed in order to redeem miles or points.
 
Constructor Summary
PaymentForm.Choice.LoyaltyRedemption()
           
 
Method Summary
 void addLoyaltyCertificate(PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate item)
          Add a 'LoyaltyCertificate' element item.
 void clearLoyaltyCertificates()
          Remove all 'LoyaltyCertificate' element items.
 PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate getLoyaltyCertificate(int index)
          Get 'LoyaltyCertificate' element item by position.
 LoyaltyCertificateNumberGroup getLoyaltyCertificateNumberGroup()
          Get the 'LoyaltyCertificateNumberGroup' attributeGroup value.
 java.util.List<PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate> getLoyaltyCertificates()
          Get the list of 'LoyaltyCertificate' element items.
 PromotionCodeGroup getPromotionCodeGroup()
          Get the 'PromotionCodeGroup' attributeGroup value.
 java.lang.String getRedemptionQuantity()
          Get the 'RedemptionQuantity' attribute value.
 void setLoyaltyCertificateNumberGroup(LoyaltyCertificateNumberGroup loyaltyCertificateNumberGroup)
          Set the 'LoyaltyCertificateNumberGroup' attributeGroup value.
 void setLoyaltyCertificates(java.util.List<PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate> list)
          Set the list of 'LoyaltyCertificate' element items.
 void setPromotionCodeGroup(PromotionCodeGroup promotionCodeGroup)
          Set the 'PromotionCodeGroup' attributeGroup value.
 void setRedemptionQuantity(java.lang.String redemptionQuantity)
          Set the 'RedemptionQuantity' attribute value.
 int sizeLoyaltyCertificates()
          Get the number of 'LoyaltyCertificate' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaymentForm.Choice.LoyaltyRedemption

public PaymentForm.Choice.LoyaltyRedemption()
Method Detail

getLoyaltyCertificates

public java.util.List<PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate> getLoyaltyCertificates()
Get the list of 'LoyaltyCertificate' element items.

Returns:
list

setLoyaltyCertificates

public void setLoyaltyCertificates(java.util.List<PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate> list)
Set the list of 'LoyaltyCertificate' element items.

Parameters:
list -

sizeLoyaltyCertificates

public int sizeLoyaltyCertificates()
Get the number of 'LoyaltyCertificate' element items.

Returns:
count

addLoyaltyCertificate

public void addLoyaltyCertificate(PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate item)
Add a 'LoyaltyCertificate' element item.

Parameters:
item -

getLoyaltyCertificate

public PaymentForm.Choice.LoyaltyRedemption.LoyaltyCertificate getLoyaltyCertificate(int index)
Get 'LoyaltyCertificate' element item by position.

Parameters:
index -
Returns:
item

clearLoyaltyCertificates

public void clearLoyaltyCertificates()
Remove all 'LoyaltyCertificate' element items.


getLoyaltyCertificateNumberGroup

public LoyaltyCertificateNumberGroup getLoyaltyCertificateNumberGroup()
Get the 'LoyaltyCertificateNumberGroup' attributeGroup value. Identifies the Loyalty scheme, programs and promotions within the scheme, membership reference, form factor used by the certificate, the number of nights it can be used for and its current status.

Returns:
value

setLoyaltyCertificateNumberGroup

public void setLoyaltyCertificateNumberGroup(LoyaltyCertificateNumberGroup loyaltyCertificateNumberGroup)
Set the 'LoyaltyCertificateNumberGroup' attributeGroup value. Identifies the Loyalty scheme, programs and promotions within the scheme, membership reference, form factor used by the certificate, the number of nights it can be used for and its current status.

Parameters:
loyaltyCertificateNumberGroup -

getPromotionCodeGroup

public PromotionCodeGroup getPromotionCodeGroup()
Get the 'PromotionCodeGroup' attributeGroup value. Used to provide a promotion code of the loyalty redemption.

Returns:
value

setPromotionCodeGroup

public void setPromotionCodeGroup(PromotionCodeGroup promotionCodeGroup)
Set the 'PromotionCodeGroup' attributeGroup value. Used to provide a promotion code of the loyalty redemption.

Parameters:
promotionCodeGroup -

getRedemptionQuantity

public java.lang.String getRedemptionQuantity()
Get the 'RedemptionQuantity' attribute value. The quantity of loyalty units being redeemed.

Returns:
value

setRedemptionQuantity

public void setRedemptionQuantity(java.lang.String redemptionQuantity)
Set the 'RedemptionQuantity' attribute value. The quantity of loyalty units being redeemed.

Parameters:
redemptionQuantity -