使用会议室捆绑包
默认情况下,行程数据表示最便宜的双人入住客房。 但是,如果定义房间和包数据 (请参阅 创建元数据价格源) ,则可以使用会议室捆绑包在行程数据中包含其他房间。
默认的基本房间行程如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2017-05-25T20:44:56-04:00" id="de0be689-d094-406e-
8027-724309deb373">
<Result>
<Property>13579</Property>
<Checkin>2017-05-26</Checkin>
<Nights>1</Nights>
<Baserate currency="USD">159.99</Baserate>
<Tax currency="USD">20.00</Tax>
<OtherFees currency="USD">4.00</OtherFees>
<AllowablePointsOfSale>
<PointOfSale id="mobile"/>
<PointOfSale id="desktop"/>
</AllowablePointsOfSale>
</Result>
</Transaction>
若要向行程中添加房间类型和包,请将 RoomBundle> 元素添加<为 的子元素Result
。 您可以添加一个或多个房间捆绑包,但其中一个房间捆绑包的费率必须与行程价格匹配。 您必须根据房间的入住率来评分;2 和 4 入住客房不能具有相同的价格。
注意
必须在房间捆绑元素中指定占用。
<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2017-05-25T20:44:56-04:00" id="de0be689-d094-406e-
8027-724309deb373">
<Result>
<Property>13579</Property>
<Checkin>2017-05-26</Checkin>
<Nights>1</Nights>
<Baserate currency="USD">159.99</Baserate>
<Tax currency="USD">20.00</Tax>
<OtherFees currency="USD">4.00</OtherFees>
<AllowablePointsOfSale>
<PointOfSale id="mobile"/>
<PointOfSale id="desktop"/>
</AllowablePointsOfSale>
<!-- This is the double-occupancy room that matches the itinerary's rate -->
<RoomBundle>
<RoomID>12345</RoomID>
<PackageID>67890</PackageID>
<Baserate currency="USD">159.99</Baserate>
<Tax currency="USD">20.00</Tax>
<OtherFees currency="USD">4.00</OtherFees>
<Occupancy>2</Occupancy>
</RoomBundle>
<RoomBundle>
<RoomID>11111</RoomID>
<PackageID>22222</PackageID>
<Baserate currency="USD">236.00</Baserate>
<Tax currency="USD">42.00</Tax>
<OtherFees currency="USD">4.00</OtherFees>
<Occupancy>4</Occupancy>
</RoomBundle>
</Result>
</Transaction>
删除会议室捆绑包
每个行程必须包含可用房间的完整列表。 如果房间或套餐不再可用,只需从行程中删除该捆绑包即可。
行程、房间和包裹数据的优先级
行程、房间和包裹数据包括一些相同的字段。 以下是酒店服务用于确定其使用的对象的字段的优先级顺序。
- RoomBundle (最高)
- PackageData
- RoomData (最低)
如果会议室捆绑包引用以下房间和包,则房间是基于优先规则的双人入住房间, (包的优先级高于会议室,并且包的 Occupancy
元素设置为 2) 。
<RoomData>
<RoomID>12345</RoomID>
<Name>
<Text text="Double queen room - Non-smoking" language="en" />
</Name>
<Capacity>4</Capacity>
<Occupancy>4</Occupancy>
</RoomData>
<PackageData>
<PackageID>67890</PackageID>
<Name>
<Text text="Business" language="en" />
</Name>
<Occupancy>2</Occupancy>
<ChargeCurrency>Web</ChargeCurrency>
<Refundable available="true" refundable_until_days="2" refundable_until_time="17:00:00" />
<BreakfastIncluded/>
<ParkingIncluded>true</ParkingIncluded>
<InternetIncluded>1</InternetIncluded>
</PackageData>