org.ota.loyalty
Class AccountInfo.MemberPreferences

java.lang.Object
  extended by org.ota.loyalty.AccountInfo.MemberPreferences
Enclosing class:
AccountInfo

public static class AccountInfo.MemberPreferences
extends java.lang.Object

Loyalty program preferences specified by the enrolling member. 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="MemberPreferences" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="AdditionalReward" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class AdditionalReward -->
       </xs:element>
       <xs:element name="Offer" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class Offer -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="Awareness"/>
     <xs:attributeGroup ref="ns:PromotionCodeGroup"/>
     <xs:attribute use="optional" name="AwardsPreference">
       <xs:simpleType>
         <!-- Reference to inner class AwardsPreference -->
       </xs:simpleType>
     </xs:attribute>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class AccountInfo.MemberPreferences.AdditionalReward
          Additional programs that are honored by the primary loyalty account.
static class AccountInfo.MemberPreferences.AwardsPreference
          Schema fragment(s) for this class:
static class AccountInfo.MemberPreferences.Offer
          Source from which members can receive information.
 
Constructor Summary
AccountInfo.MemberPreferences()
           
 
Method Summary
 void addAdditionalReward(AccountInfo.MemberPreferences.AdditionalReward item)
          Add a 'AdditionalReward' element item.
 void addOffer(AccountInfo.MemberPreferences.Offer item)
          Add a 'Offer' element item.
 void clearAdditionalRewards()
          Remove all 'AdditionalReward' element items.
 void clearOffers()
          Remove all 'Offer' element items.
 AccountInfo.MemberPreferences.AdditionalReward getAdditionalReward(int index)
          Get 'AdditionalReward' element item by position.
 java.util.List<AccountInfo.MemberPreferences.AdditionalReward> getAdditionalRewards()
          Get the list of 'AdditionalReward' element items.
 AccountInfo.MemberPreferences.AwardsPreference getAwardsPreference()
          Get the 'AwardsPreference' attribute value.
 java.lang.String getAwareness()
          Get the 'Awareness' attribute value.
 AccountInfo.MemberPreferences.Offer getOffer(int index)
          Get 'Offer' element item by position.
 java.util.List<AccountInfo.MemberPreferences.Offer> getOffers()
          Get the list of 'Offer' element items.
 PromotionCodeGroup getPromotionCodeGroup()
          Get the 'PromotionCodeGroup' attributeGroup value.
 void setAdditionalRewards(java.util.List<AccountInfo.MemberPreferences.AdditionalReward> list)
          Set the list of 'AdditionalReward' element items.
 void setAwardsPreference(AccountInfo.MemberPreferences.AwardsPreference awardsPreference)
          Set the 'AwardsPreference' attribute value.
 void setAwareness(java.lang.String awareness)
          Set the 'Awareness' attribute value.
 void setOffers(java.util.List<AccountInfo.MemberPreferences.Offer> list)
          Set the list of 'Offer' element items.
 void setPromotionCodeGroup(PromotionCodeGroup promotionCodeGroup)
          Set the 'PromotionCodeGroup' attributeGroup value.
 int sizeAdditionalRewards()
          Get the number of 'AdditionalReward' element items.
 int sizeOffers()
          Get the number of 'Offer' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountInfo.MemberPreferences

public AccountInfo.MemberPreferences()
Method Detail

getAdditionalRewards

public java.util.List<AccountInfo.MemberPreferences.AdditionalReward> getAdditionalRewards()
Get the list of 'AdditionalReward' element items.

Returns:
list

setAdditionalRewards

public void setAdditionalRewards(java.util.List<AccountInfo.MemberPreferences.AdditionalReward> list)
Set the list of 'AdditionalReward' element items.

Parameters:
list -

sizeAdditionalRewards

public int sizeAdditionalRewards()
Get the number of 'AdditionalReward' element items.

Returns:
count

addAdditionalReward

public void addAdditionalReward(AccountInfo.MemberPreferences.AdditionalReward item)
Add a 'AdditionalReward' element item.

Parameters:
item -

getAdditionalReward

public AccountInfo.MemberPreferences.AdditionalReward getAdditionalReward(int index)
Get 'AdditionalReward' element item by position.

Parameters:
index -
Returns:
item

clearAdditionalRewards

public void clearAdditionalRewards()
Remove all 'AdditionalReward' element items.


getOffers

public java.util.List<AccountInfo.MemberPreferences.Offer> getOffers()
Get the list of 'Offer' element items.

Returns:
list

setOffers

public void setOffers(java.util.List<AccountInfo.MemberPreferences.Offer> list)
Set the list of 'Offer' element items.

Parameters:
list -

sizeOffers

public int sizeOffers()
Get the number of 'Offer' element items.

Returns:
count

addOffer

public void addOffer(AccountInfo.MemberPreferences.Offer item)
Add a 'Offer' element item.

Parameters:
item -

getOffer

public AccountInfo.MemberPreferences.Offer getOffer(int index)
Get 'Offer' element item by position.

Parameters:
index -
Returns:
item

clearOffers

public void clearOffers()
Remove all 'Offer' element items.


getAwareness

public java.lang.String getAwareness()
Get the 'Awareness' attribute value. Indicates how person became aware of loyalty program.

Returns:
value

setAwareness

public void setAwareness(java.lang.String awareness)
Set the 'Awareness' attribute value. Indicates how person became aware of loyalty program.

Parameters:
awareness -

getPromotionCodeGroup

public PromotionCodeGroup getPromotionCodeGroup()
Get the 'PromotionCodeGroup' attributeGroup value. Loyalty enrollment promotion code.

Returns:
value

setPromotionCodeGroup

public void setPromotionCodeGroup(PromotionCodeGroup promotionCodeGroup)
Set the 'PromotionCodeGroup' attributeGroup value. Loyalty enrollment promotion code.

Parameters:
promotionCodeGroup -

getAwardsPreference

public AccountInfo.MemberPreferences.AwardsPreference getAwardsPreference()
Get the 'AwardsPreference' attribute value. Method by which awards are allocated.

Returns:
value

setAwardsPreference

public void setAwardsPreference(AccountInfo.MemberPreferences.AwardsPreference awardsPreference)
Set the 'AwardsPreference' attribute value. Method by which awards are allocated.

Parameters:
awardsPreference -