您应在交易消息中使用 <Result> 元素来设置或更新客房价格,并定义可供预订的房源。这些元素使用您在单独的交易消息中定义的元数据来引用有关客房和客房套餐的说明的预定义数据。更新商品目录取决于交付模式的类型和您偏好的频率。
以下示例展示了一个 <Result> 元素,用于定义两个房间的房源和价格:
<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2023-04-24T16:20:00-04:00" id="42">
<Result>
<Property>060773</Property>
<RoomID>RoomType101</RoomID>
<Checkin>2023-04-10</Checkin>
<Nights>2</Nights>
<Baserate currency="USD">278.33</Baserate>
<Tax currency="USD">25.12</Tax>
<OtherFees currency="USD">2.00</OtherFees>
<AllowablePointsOfSale>
<PointOfSale id="site1"/>
</AllowablePointsOfSale>
</Result>
<Result>
<Property>052213</Property>
<RoomID>RoomType101</RoomID>
<Checkin>2023-04-17</Checkin>
<Nights>2</Nights>
<Baserate currency="USD">299.98</Baserate>
<Tax currency="USD">26.42</Tax>
<OtherFees currency="USD">2.00</OtherFees>
<AllowablePointsOfSale>
<PointOfSale id="otto"/>
<PointOfSale id="simon"/>
</AllowablePointsOfSale>
</Result>
</Transaction>
上述示例不包含有关会议室的信息,例如说明、图片网址和说明、会议室名称或容纳人数。此类信息可以在初始交易消息中发送给 Google,然后可以在所有后续价格和房源信息更新中通过 RoomID 进行引用。如需了解详情,请参阅定义房间和软件包元数据。
除了定义行程的价格之外,您还可以使用 <Result> 元素执行以下操作: