Definition Type: ComplexType
Name: StayRestrictionsType
Containing Schema: OTA_AirCommonTypes.xsd
Abstract
Documentation:
Type defining Min and Max Stay Restrictions
Collapse XSD Schema Diagram:
Drilldown into MaximumStay in schema ota_aircommontypes_xsd1 Drilldown into MinimumStay in schema ota_aircommontypes_xsd1 Drilldown into StayRestrictionsInd in schema ota_aircommontypes_xsdXSD Diagram of StayRestrictionsType in schema ota_aircommontypes_xsd (Open Travel (OTA))
Collapse XSD Schema Code:
<xs:complexType name="StayRestrictionsType">
    <xs:annotation>
        <xs:documentation xml:lang="en">Type defining Min and Max Stay Restrictions</xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="0">
        <xs:element name="MinimumStay" minOccurs="0">
            <xs:annotation>
                <xs:documentation xml:lang="en">Specifies restrictions for the shortest length/period of time or earliest day return travel can commence or be completed.</xs:documentation>
            </xs:annotation>
            <xs:complexType>
                <xs:attribute name="ReturnTimeOfDay" type="TimeOrDateTimeType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en"> The time of day when return travel may commence.</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="MinStay" type="Numeric1to99" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">The amount of elapsed time or number of occurrences of a day of the week needed to satisfy a minimum stay requirement.</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="StayUnit" type="StayUnitType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">The unit of elapsed time or the day of the week applied to the MinStay value. </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="MinStayDate" type="TimeOrDateTimeType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">The specific date for the minimum stay requirement.</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ComplicatedRulesInd" type="xs:boolean" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">If true, there are complicated rules for the minimum stay requirement.
</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
            </xs:complexType>
        </xs:element>
        <xs:element name="MaximumStay" minOccurs="0">
            <xs:annotation>
                <xs:documentation xml:lang="en">Specifies restrictions for the  longest length/period of time or last day to begin or complete the return.</xs:documentation>
            </xs:annotation>
            <xs:complexType>
                <xs:attribute name="ReturnType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">Code indicating whether travel must commence or be completed in order to satisfy the stay restriction.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                        <xs:restriction base="xs:string">
                            <xs:enumeration value="C">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en">Return travel must be Completed.</xs:documentation>
                                </xs:annotation>
                            </xs:enumeration>
                            <xs:enumeration value="S">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en">Return travel must be Started.</xs:documentation>
                                </xs:annotation>
                            </xs:enumeration>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="ReturnTimeOfDay" type="TimeOrDateTimeType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en"> The time of day when return travel may commence.</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="MaxStay" type="Numeric1to999" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">The amount of elapsed time or number of occurrences of a day of the week that must occur to satisfy a maximum stay requirement.</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="StayUnit" type="StayUnitType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">The unit of elapsed time or the day of the week applied to the MaxStay value.</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="MaxStayDate" type="TimeOrDateTimeType" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">The specific date for the maximum stay requirement.</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ComplicatedRulesInd" type="xs:boolean" use="optional">
                    <xs:annotation>
                        <xs:documentation xml:lang="en">If true, there are complicated rules for the maximum stay requirement.
</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
            </xs:complexType>
        </xs:element>
    </xs:sequence>
    <xs:attribute name="StayRestrictionsInd" type="xs:boolean" use="optional">
        <xs:annotation>
            <xs:documentation xml:lang="en">True indicates that Stay Restrictions exist. </xs:documentation>
        </xs:annotation>
    </xs:attribute>
</xs:complexType>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
MinimumStay MinimumStay 0 (1)
MaximumStay MaximumStay 0 (1)
Collapse Child Attributes:
Name Type Default Value Use
StayRestrictionsInd StayRestrictionsInd Optional
Collapse Derivation Tree:
Collapse References:
LengthOfStayRules, StayRestrictions