ルーム バンドルの使用
既定では、旅程データは最も安価な 2 人の部屋を表します。 ただし、会議室データとパッケージ データを定義する場合 ( 「メタデータ価格フィードの作成」を参照)、ルーム バンドルを使用して旅程データに他の会議室を含めることができます。
既定の基本会議室のスケジュールは次のようになります。
<?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>
ルームの種類とパッケージを旅程に追加するには、Result
の子として <RoomBundle> 要素を追加します。 1 つ以上のルーム バンドルを追加できますが、ルーム バンドルの料金の 1 つが旅程の料金と一致している必要があります。 客室料金は客室の占有率に基づく必要があります。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>
ルーム バンドルの削除
各旅程には、利用可能な部屋の完全なリストが含まれている必要があります。 ルームまたはパッケージが利用できなくなった場合は、旅程からそのバンドルを削除するだけです。
旅程、会議室、パッケージ データの優先順位
旅程、会議室、パッケージのデータには、同じフィールドがいくつか含まれています。 以下は、Hotel サービスが使用するオブジェクトのフィールドを決定するために使用する優先順位です。
- RoomBundle (最高)
- PackageData
- RoomData (最低)
ルーム バンドルが次の部屋とパッケージを参照している場合、部屋は優先順位ルールに基づく 2 人用の部屋になります (パッケージの優先順位は部屋よりも高く、パッケージの 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>