org.ota.air
Class DiscountPricingGroup

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

public class DiscountPricingGroup
extends java.lang.Object

The information needed for applying a discount to a fare. Schema fragment(s) for this class:

 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DiscountPricingGroup">
   <xs:attribute use="optional" name="Purpose">
     <xs:simpleType>
       <!-- Reference to inner class Purpose -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute use="optional" name="Type">
     <xs:simpleType>
       <!-- Reference to inner class Type -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute use="optional" name="Usage">
     <xs:simpleType>
       <!-- Reference to inner class Usage -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute type="xs:string" use="optional" name="Discount"/>
   <xs:attribute type="xs:string" use="optional" name="TicketDesignatorCode"/>
   <xs:attribute type="xs:string" use="optional" name="Text"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class DiscountPricingGroup.Purpose
          Schema fragment(s) for this class:
static class DiscountPricingGroup.Type
          Schema fragment(s) for this class:
static class DiscountPricingGroup.Usage
          Schema fragment(s) for this class:
 
Constructor Summary
DiscountPricingGroup()
           
 
Method Summary
 java.lang.String getDiscount()
          Get the 'Discount' attribute value.
 DiscountPricingGroup.Purpose getPurpose()
          Get the 'Purpose' attribute value.
 java.lang.String getText()
          Get the 'Text' attribute value.
 java.lang.String getTicketDesignatorCode()
          Get the 'TicketDesignatorCode' attribute value.
 DiscountPricingGroup.Type getType()
          Get the 'Type' attribute value.
 DiscountPricingGroup.Usage getUsage()
          Get the 'Usage' attribute value.
 void setDiscount(java.lang.String discount)
          Set the 'Discount' attribute value.
 void setPurpose(DiscountPricingGroup.Purpose purpose)
          Set the 'Purpose' attribute value.
 void setText(java.lang.String text)
          Set the 'Text' attribute value.
 void setTicketDesignatorCode(java.lang.String ticketDesignatorCode)
          Set the 'TicketDesignatorCode' attribute value.
 void setType(DiscountPricingGroup.Type type)
          Set the 'Type' attribute value.
 void setUsage(DiscountPricingGroup.Usage usage)
          Set the 'Usage' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscountPricingGroup

public DiscountPricingGroup()
Method Detail

getPurpose

public DiscountPricingGroup.Purpose getPurpose()
Get the 'Purpose' attribute value. Used to specify the purpose of the discount pricing.

Returns:
value

setPurpose

public void setPurpose(DiscountPricingGroup.Purpose purpose)
Set the 'Purpose' attribute value. Used to specify the purpose of the discount pricing.

Parameters:
purpose -

getType

public DiscountPricingGroup.Type getType()
Get the 'Type' attribute value. Specifies the type of amount being sent.

Returns:
value

setType

public void setType(DiscountPricingGroup.Type type)
Set the 'Type' attribute value. Specifies the type of amount being sent.

Parameters:
type -

getUsage

public DiscountPricingGroup.Usage getUsage()
Get the 'Usage' attribute value. Used to specify how the discount is to be applied.

Returns:
value

setUsage

public void setUsage(DiscountPricingGroup.Usage usage)
Set the 'Usage' attribute value. Used to specify how the discount is to be applied.

Parameters:
usage -

getDiscount

public java.lang.String getDiscount()
Get the 'Discount' attribute value. The monetary amount or percentage of discount that should be applied.

Returns:
value

setDiscount

public void setDiscount(java.lang.String discount)
Set the 'Discount' attribute value. The monetary amount or percentage of discount that should be applied.

Parameters:
discount -

getTicketDesignatorCode

public java.lang.String getTicketDesignatorCode()
Get the 'TicketDesignatorCode' attribute value. Specifies the code applicable to the fare that is being discounted.

Returns:
value

setTicketDesignatorCode

public void setTicketDesignatorCode(java.lang.String ticketDesignatorCode)
Set the 'TicketDesignatorCode' attribute value. Specifies the code applicable to the fare that is being discounted.

Parameters:
ticketDesignatorCode -

getText

public java.lang.String getText()
Get the 'Text' attribute value.

Returns:
value

setText

public void setText(java.lang.String text)
Set the 'Text' attribute value.

Parameters:
text -