<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelBookingRuleRS xmlns="http://www.opentravel.org/OTA/2003/05" PrimaryLangID="it" Target="Production" TimeStamp="2010-10-05T17:22:43" Version="1.000">
    <Success/>
    <RuleMessage>
        <!--
        @Start @End = Interval of dates in which to read.
        @InvCode = Channel Manager internal room's id.
        @IsRoom = Same value passed within the request.
        -->
        <StatusApplication InvCode="234" IsRoom="false" />
        <BookingRules>
            <!--
            @Start @End = Interval of dates in which the BookingRule is valid.
            -->
            <BookingRule Start="2010-12-05" End="2010-12-05">
                <!--
                LenghtsOfStay = Optional, max 1
                @ArrivalDateBased = Optional, if not present or "false" the Min/Max LOS is intended as Through, otherwise ("true") the Min/Max LOS is Arrival.
                -->
                <LengthsOfStay ArrivalDateBased="true">
                    <!--
                    @MinMaxMessageType = One between MinLOS and MaxLOS.
                    @TimeUnit = Day, fixed.
                    @Time = Minimum length of stay (days).
                    -->
                    <LengthOfStay MinMaxMessageType="MinLOS" TimeUnit="Day" Time="3" />
                    <LengthOfStay MinMaxMessageType="MaxLOS" TimeUnit="Day" Time="2" />
                </LengthsOfStay>
                <!--
                RestrictionStatus = Optional, max 1
                @Restriction = Type of Restriction, possible values are one between "Master" (room closed out), "Arrival" (close on arrival) or "Departure" (close on departure).
                @Status = Status of Restriction, "Open" or "Close"
                -->
                <RestrictionStatus Restriction="Master" Status="Open" />
            </BookingRule>
            <!--
            More BookingRule elements can be returned. They're used in order to return
            different restrictions even for the same dates ...
            -->
            <BookingRule Start="2010-12-05" End="2010-12-05">
                <LengthsOfStay>
                    <LengthOfStay MinMaxMessageType="MinLOS" TimeUnit="Day" Time="1" />
                    <LengthOfStay MinMaxMessageType="MaxLOS" TimeUnit="Day" Time="1" />
                </LengthsOfStay>
                <RestrictionStatus Restriction="Departure" Status="Close" />
            </BookingRule>
            <BookingRule Start="2010-12-05" End="2010-12-05">
                <RestrictionStatus Restriction="Arrival" Status="Close" />
            </BookingRule>
            <!--
            ... or different dates.
            -->
            <BookingRule Start="2010-12-07" End="2010-12-08">
                <LengthsOfStay>
                    <LengthOfStay MinMaxMessageType="MinLOS" TimeUnit="Day" Time="4" />
                </LengthsOfStay>
                <RestrictionStatus Restriction="Departure" Status="Close" />
            </BookingRule>
        </BookingRules>
    </RuleMessage>
</OTA_HotelBookingRuleRS>