인벤토리 추가 및 업데이트

거래 메시지<Result> 요소를 사용하여 객실 가격을 설정하거나 업데이트하고 사용 가능한 인벤토리를 정의해야 합니다. 이러한 요소는 별도의 트랜잭션 메시지에서 정의한 메타데이터를 사용하여 객실 및 객실 번들에 관한 사전 정의된 데이터를 참조합니다. 인벤토리 업데이트는 게재 모드 유형과 선호하는 빈도에 따라 다릅니다.

다음 예는 객실 2개의 인벤토리와 가격을 정의하는 <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>

위의 예에는 설명, 사진 URL 및 자막, 방 이름, 수용 인원과 같은 방에 관한 정보가 포함되어 있지 않습니다. 이러한 정보는 초기 트랜잭션 메시지로 Google에 전송된 다음 모든 후속 가격 및 인벤토리 업데이트에서 RoomID로 참조될 수 있습니다. 자세한 내용은 회의실 및 패키지 메타데이터 정의를 참고하세요.

숙박 일정의 가격을 정의하는 것 외에도 <Result> 요소를 사용하여 다음 작업을 할 수 있습니다.