<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified" attributeFormDefault="unqualified">

	<xs:complexType name="specifiedRoomTypeRatePlansType">
		<xs:annotation>
			<xs:documentation>Collection of specified room types, rate plans, and meal plans which will be matched with any rooms.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="specifiedRoomTypeRatePlan" type="specifiedRoomTypeRatePlanType" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Each specified roomType and ratePlan will be matched with each specified room number.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="specifiedRoomTypeRatePlanType">
		<xs:annotation>
			<xs:documentation>Each specified roomType, ratePlan, and meal plan will be matched with each specified room sequence number.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="roomTypeCode" type="xs:string">
				<xs:annotation>
					<xs:documentation>The room type code.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ratePlanCode" type="xs:string">
				<xs:annotation>
					<xs:documentation>The rate plan code.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="mealBasisCode" type="xs:string">
				<xs:annotation>
					<xs:documentation>The meal basis code.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="mealId" type="xs:integer">
				<xs:annotation>
					<xs:documentation>The meal id.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="roomNumbers">
				<xs:annotation>
					<xs:documentation>Collection of sequence number of the room which will be matched with this room type, rate plan, and meal plan. </xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="roomNumber" type="xs:positiveInteger" maxOccurs="unbounded">
							<xs:annotation>
								<xs:documentation>The sequence number of the room which will be matched with this room type, rate plan, and meal plan.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>			
		</xs:sequence>
	</xs:complexType>
	
</xs:schema>
