<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelBookingRuleNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05" PrimaryLangID="it" Target="Production" TimeStamp="2010-09-22T09:29:46+02:00" Version="1.000">
    <POS>
        <Source>
            <!--
                @Type = "10"
                @ID @MessagePassword = Authentication of the sender through user id and password.
            -->
            <RequestorID Type="10" ID="test" MessagePassword="test" />
        </Source>
        <Source>
            <!--
                @Type = "4"
                @ID = Channel Manager internal hotel's id you want to access.
            -->
            <RequestorID Type="4" ID="5929" />
        </Source>
    </POS>
    <RuleMessages>
        <RuleMessage>
            <!--
            @InvCode = Channel Manager internal room's id.
            @InvTypeCode = Channel Manager internal room type's id.
            One between InvTypeCode and InvCode attributes is mandatory.
            
            @IsRoom = Specifies the level of "Master" Restriction, in case the Restriction="Master" has been sent within the request.
            If "false" or not present or empty, the "Master" Restriction will be applied on Room Rate level, if "true"
            the "Master" Restriction will be applied at Room level.
            -->
            <StatusApplicationControl InvCode="234" InvTypeCode="456" IsRoom="false" />
            <BookingRules>
                <!--
                @Start @End = Interval of dates in which the BookingRule is valid.
                -->
                <BookingRule Start="2010-12-05" End="2010-12-05">
                    <!--
                    LengthsOfStay = Optional (max 1), one between LengthsOfStay and RestrictionStatus is mandatory.
                    @ArrivalDateBased = Optional, if not present the Min/Max LOS is intended as Through, otherwise the it is Arrival.
                    -->
                    <LengthsOfStay ArrivalDateBased="true">
                        <!--
                        LengthOfStay = min 1 - max 2
                        @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), one between LengthsOfStay and RestrictionStatus is mandatory.
                    @Restriction = Type of Restriction, possible values are one between Master (room or roomrate 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 allowed on a single request ...
                -->
            </BookingRules>
        </RuleMessage>
        <!--
        ... more RuleMessage elements allowed on a single request ...
        -->
    </RuleMessages>
</OTA_HotelBookingRuleNotifRQ>