travelPolicyRule Data Type

The travel policy rule. A rule is part of a rule class that defines one of the guards. Each rule will validate one property on a PNR. Chain them together to validate multiple properties of a PNR. Created by nick on 1/29/15.

Namespace
(Default)
Schema
ns0.xsd
Properties
name data type type namespace min/max occurs description
airlines list of airVendor element 0/unbounded Airlines that are available per this rule.
carClasses list of carClass element 0/unbounded Car classes that are available per this rule.
carTypes list of carTypeCode element 0/unbounded Car types that are available per this rule.
carVendors list of carVendor element 0/unbounded A set of car rental chains that are available per this rule.
cities list of city element 0/unbounded A set of cities that are available per this rule.
classOfServiceLevels list of classOfServiceLevel element 0/unbounded The level of class of service that are available per this rule.
countries list of country element 0/unbounded A set of countries that are available per this rule.
hotelProperties list of hotelLocation element 0/unbounded Hotel properties that are available per this rule.
hotelVendors list of hotelVendor element 0/unbounded A set of hotel chains that are available per this rule.
operator travelPolicyOperator element 0/1 The comparator that the value should be applied against.
type travelPolicyRuleType element 0/1  
unit travelPolicyUnit element 0/1 The unit of measurement. Like $ or %.
value string element 0/1 The value that the property in the PNR should be compared against.
Properties inherited from baseHibernateEntity
id long element 0/1 The unique internal ID of the object.
version long element 0/1 For internal use only. This is the serialization recorder for optimistic locking of several objects between sessions.
Properties inherited from baseEntity
violations list of simpleViolation element 0/unbounded A list of constraint violations, if any, that this object has.

Example

<travelPolicyRule>
  <type>
    <description>...</description>
    <message>...</message>
    <travelType>
      <name>...</name>
    </travelType>
    <valueType>...</valueType>
    <operators>
      <code>...</code>
      <name>...</name>
    </operators>
    <units>
      <code>...</code>
      <name>...</name>
    </units>
    <id>...</id>
    <version>...</version>
  </type>
  <operator>
    <code>...</code>
    <name>...</name>
    <id>...</id>
    <version>...</version>
  </operator>
  <value>...</value>
  <unit>
    <code>...</code>
    <name>...</name>
    <id>...</id>
    <version>...</version>
  </unit>
  <airlines>
    <airlineNumber>...</airlineNumber>
    <checkinLink>...</checkinLink>
    <baggageLink>...</baggageLink>
    <alliance>
      <sharesFrequentFlyerNumbers>...</sharesFrequentFlyerNumbers>
      <name>...</name>
      <code>...</code>
    </alliance>
    <lowCostCarrier>...</lowCostCarrier>
    <longCode>...</longCode>
    <manualTicketingOnly>...</manualTicketingOnly>
    <airTicketsUseOrigIssueDate>...</airTicketsUseOrigIssueDate>
    <mcoTicketsUseOrigIssueDate>...</mcoTicketsUseOrigIssueDate>
    <minDomesticValue>...</minDomesticValue>
    <minIntlValue>...</minIntlValue>
    <position>...</position>
    <imageUrl>...</imageUrl>
    <code>...</code>
    <name>...</name>
  </airlines>
  <carClasses>
    <code>...</code>
    <description>...</description>
    <position>...</position>
    <size>...</size>
    <id>...</id>
    <version>...</version>
  </carClasses>
  <carTypes>
    <code>...</code>
    <description>...</description>
    <position>...</position>
    <size>...</size>
    <id>...</id>
    <version>...</version>
  </carTypes>
  <hotelProperties>
    <address1>...</address1>
    <address2>...</address2>
    <phone1>...</phone1>
    <phone2>...</phone2>
    <fax>...</fax>
    <zip>...</zip>
    <city>
      <code>...</code>
      <countryCode>...</countryCode>
      <latitude>...</latitude>
      <longitude>...</longitude>
      <name>...</name>
      <stateOrCountry>...</stateOrCountry>
      <airportName>...</airportName>
      <region/>
      <timeZone/>
      <retentionOnly>...</retentionOnly>
      <position>...</position>
      <unique>...</unique>
      <alias>...</alias>
    </city>
    <vendor>
      <longCode>...</longCode>
      <commissionRate>...</commissionRate>
      <family/>
      <position>...</position>
    </vendor>
    <latitude>...</latitude>
    <sertifiCode>...</sertifiCode>
    <googlePlaceId>...</googlePlaceId>
    <longitude>...</longitude>
    <propertyName>...</propertyName>
    <propertyCodes>
      <gds/>
      <code>...</code>
    </propertyCodes>
    <id>...</id>
    <version>...</version>
  </hotelProperties>
  <classOfServiceLevels>
    <name>...</name>
    <code>...</code>
    <value>...</value>
    <id>...</id>
    <version>...</version>
  </classOfServiceLevels>
  <countries>
    <name>...</name>
    <code>...</code>
    <codeAlt>...</codeAlt>
    <phoneCode>...</phoneCode>
    <position>...</position>
    <id>...</id>
    <version>...</version>
  </countries>
  <cities>
    <code>...</code>
    <countryCode>...</countryCode>
    <latitude>...</latitude>
    <longitude>...</longitude>
    <name>...</name>
    <stateOrCountry>...</stateOrCountry>
    <airportName>...</airportName>
    <region>
      <name>...</name>
      <code>...</code>
      <country/>
      <position>...</position>
    </region>
    <timeZone>
      <name>...</name>
      <offset>...</offset>
      <daylightSavingsOffset>...</daylightSavingsOffset>
    </timeZone>
    <retentionOnly>...</retentionOnly>
    <position>...</position>
    <unique>...</unique>
    <alias>...</alias>
    <id>...</id>
    <version>...</version>
  </cities>
  <hotelVendors>
    <longCode>...</longCode>
    <commissionRate>...</commissionRate>
    <family>
      <name>...</name>
      <code>...</code>
    </family>
    <position>...</position>
    <code>...</code>
    <name>...</name>
  </hotelVendors>
  <carVendors>
    <longCode>...</longCode>
    <commissionRate>...</commissionRate>
    <position>...</position>
    <code>...</code>
    <name>...</name>
  </carVendors>
  <id>...</id>
  <version>...</version>
  <violations/>
</travelPolicyRule>