org.ota.shared
Class CancelRule

java.lang.Object
  extended by org.ota.shared.CancelRule

public class CancelRule
extends java.lang.Object

Provides the cancellation amount due according to the time before the booking date that the cancellation occurs. The amount may be either an amount or a percentage (e.g. 50% within 30 days or $100 outside 30 days). 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="CancelRuleType">
   <xs:sequence>
     <xs:element type="ns:PaymentCardType" name="PaymentCard" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="xs:string" name="CancelByDate"/>
   <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
   <xs:attribute type="xs:float" use="optional" name="Percent"/>
   <xs:attribute use="optional" name="Type">
     <xs:simpleType>
       <!-- Reference to inner class Type -->
     </xs:simpleType>
   </xs:attribute>
 </xs:complexType>
 


Nested Class Summary
static class CancelRule.Type
          Schema fragment(s) for this class:
 
Constructor Summary
CancelRule()
           
 
Method Summary
 java.lang.String getCancelByDate()
          Get the 'CancelByDate' attribute value.
 CurrencyAmountGroup getCurrencyAmountGroup()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 PaymentCard getPaymentCard()
          Get the 'PaymentCard' element value.
 java.lang.Float getPercent()
          Get the 'Percent' attribute value.
 CancelRule.Type getType()
          Get the 'Type' attribute value.
 void setCancelByDate(java.lang.String cancelByDate)
          Set the 'CancelByDate' attribute value.
 void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setPaymentCard(PaymentCard paymentCard)
          Set the 'PaymentCard' element value.
 void setPercent(java.lang.Float percent)
          Set the 'Percent' attribute value.
 void setType(CancelRule.Type type)
          Set the 'Type' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelRule

public CancelRule()
Method Detail

getPaymentCard

public PaymentCard getPaymentCard()
Get the 'PaymentCard' element value. The card to be charged with the cancellation fee.

Returns:
value

setPaymentCard

public void setPaymentCard(PaymentCard paymentCard)
Set the 'PaymentCard' element value. The card to be charged with the cancellation fee.

Parameters:
paymentCard -

getCancelByDate

public java.lang.String getCancelByDate()
Get the 'CancelByDate' attribute value. The date by which a cancellation must be made in order to avoid this cancellation penalty.

Returns:
value

setCancelByDate

public void setCancelByDate(java.lang.String cancelByDate)
Set the 'CancelByDate' attribute value. The date by which a cancellation must be made in order to avoid this cancellation penalty.

Parameters:
cancelByDate -

getCurrencyAmountGroup

public CurrencyAmountGroup getCurrencyAmountGroup()
Get the 'CurrencyAmountGroup' attributeGroup value. Provides the amount of the cancellation charge.

Returns:
value

setCurrencyAmountGroup

public void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
Set the 'CurrencyAmountGroup' attributeGroup value. Provides the amount of the cancellation charge.

Parameters:
currencyAmountGroup -

getPercent

public java.lang.Float getPercent()
Get the 'Percent' attribute value. The percentage to be applied for a cancellation.

Returns:
value

setPercent

public void setPercent(java.lang.Float percent)
Set the 'Percent' attribute value. The percentage to be applied for a cancellation.

Parameters:
percent -

getType

public CancelRule.Type getType()
Get the 'Type' attribute value. Defines how the cancellation penalty will be applied.

Returns:
value

setType

public void setType(CancelRule.Type type)
Set the 'Type' attribute value. Defines how the cancellation penalty will be applied.

Parameters:
type -