Master-Interlook:HotelService

Материал из Megatec
Версия от 10:47, 16 марта 2022; Aefremov (обсуждение | вклад) (SearchBookingsJSON (Получение списка забронированных заявок в формате JSON))
Перейти к: навигация, поиск

Версия статьи от 16-03-2022.

Поддерживаемые версии «»:
Начиная с


Введение

Сервис InterlookHotelService работает с методами REST API. Для вызова методов REST API можно использовать SoapUi.

Предупреждение


Для доступа к сервису у онлайн пользователя должен быть установлен признак Hotel/Service в настройке Person connection и в настройках Role активирован параметр Show hotel reservations by date.


Методы HotelService

Методы аутентификации

Connect (Получение аутентификационного токена)

Принимаемые параметры запроса ( * – обязательный):

  • Login * – логин online пользователя
  • Password * – пароль online пользователя

Возвращаемый результат:

  • ConnectResult – идентификатор аутентификации (если аутентификация прошла успешно. то получаем идентификатор, в противном случае результат -1)
Пример

Вызов метода Connect

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:Connect>
         <!--Optional:-->
         <tem:login>mk1</tem:login>
         <!--Optional:-->
         <tem:password>123</tem:password>
      </tem:Connect>
   </soapenv:Body>
</soapenv:Envelope>

Возвращаемый результат метода Connect

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <ConnectResponse xmlns="http://tempuri.org/">
         <ConnectResult>123c02db-3d47-4db5-861b-758be524a5fe</ConnectResult>
      </ConnectResponse>
   </soap:Body>
</soap:Envelope>


CheckConnect (Проверка активности подключения под конкретным идентификатором)

Метод проверяет наличие активного подключения под конкретным идентификатором аутентификации.
Принимаемые параметры запроса ( * – обязательный):

  • Guid * – идентификатор аутентификации (возвращается при запросе к методу Connect)

Возвращаемый результат:

  • CheckConnectResult – идентификатор аутентификации (true – если подключение активно, false – если подключения нет)
Пример

Вызов метода CheckConnect

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
   <soap:Header/>
   <soap:Body>
      <tem:CheckConnect>
         <!--Optional:-->
         <tem:guid>123c02db-3d47-4db5-861b-758be524a5fe</tem:guid>
      </tem:CheckConnect>
   </soap:Body>
</soap:Envelope>

Возвращаемый результат метода CheckConnect

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <CheckConnectResponse xmlns="http://tempuri.org/">
         <CheckConnectResult>true</CheckConnectResult>
      </CheckConnectResponse>
   </soap:Body>
</soap:Envelope>


Методы поиска

SearchBookings (Получение списка забронированных заявок)

Метод предназначен для поиска забронированных заявок. Отбираются те заявки, у которых партнер предоставления услуги совпадает с партнером для логина, под которым осуществляется поиск.
Принимаемые параметры запроса ( * – обязательный):

  • Guid * – идентификатор аутентификации (возвращается при запросе к методу Connect)
  • hotelID – массив данных с ключами отелей. Можно передавать как один так и несколько ключей отелей. Если не передаём данный параметр, то в ответ получаем все заказы, подходящие под выбранные даты.
  • dateInfo * – по какой дате осуществлять поиск (1 - дата создания заявки, 2 - дата заезда в отель, 3 - дата выезда из отеля)
  • dateFrom * – дата начала
  • dateTo * – дата окончания
  • checkInFrom – дата заезда от
  • checkInTo – дата заезда по
  • New – возвращает новые бронирования с датой, попадающей в указанное выше условие
  • change – возвращает измененные бронирования с изменениями, внесенными в выбранный период
  • cancel – возвращает информацию об отмененных бронированиях за выбранный период

Возвращаемый результат:

    • BookingInfo – массив данных брони
      • Booking – номер брони в системе Interlook
      • BookingID – ключ заявки из базы данных
      • Action – новая, отмененная или измененная заявка
      • CreationDate – дата создания услуги в заявке
      • ChangeDate – не используется
      • CancelDate – не используется
      • CustomerMarket – данные туроператора, оформившего заявку
        • CustomerMarketId – ключ туроператора, оформившего заявку
        • CustomerMarketName – имя туроператора, оформившего заявку
      • HotelServices – массив данных по сервисам отелей
        • HotelServiceInfo – информация по сервису отеля
          • HotelServiceId – ключ сервиса отеля
          • HotelServiceName – имя сервиса отеля
          • Hotel – массив данных по отелям
            • HotelId – ключ отеля
            • HotelName – имя отеля
          • Pansion – тип питания
            • PansionId – ключ питания
            • PansionName – имя питания
          • RoomType – тип номера
            • RoomTypeId – ключ типа номера
            • RoomTypeName – имя типа номера
          • RoomAccomodation – тип размещения
            • AccommodationId – ключ типа размещения
            • AccommodationName – имя типа размещения
          • RoomCategory – категория номер
            • RoomCategoryId – ключ категории номера
            • RoomCategoryName – имя категории номера
          • Status – статус по услуге проживания
            • StatusId – ключ статуса по услуге проживания
            • StatusName – имя статуса по услуге проживания
          • CostOffer – наименование Costoffer, по которому рассчитана нетто цена
          • CheckIn – дата заезда в отель
          • CheckOut – дата выезда из отеля
          • Tourists – массив данных туристов
            • TouristInfo – массив данных по туристу
              • Name – имя туриста
              • BirthDate – дата рождения туриста
              • Sex – пол туриста
              • HotelServiceId – ключ услуги проживания с которой связан турист
          • CostOffers – массив данных по CostOffers, по которым рассчитана цена услуги
            • CostOfferInfo – массив данных по конкретному CostOffer
              • CostOfferName – название CostOffer (Если заявка не аннулирована, то выводим название CostOffer по цене netto. Если заявка аннулирована со штрафами, то выводим название CostOffer по цене брутто. Если заявка аннулирована без штрафов, то выводим текст "Canceled without penalty")
              • CostOfferDateBegin – дата начала действия CostOffer
              • CostOfferDateEnd – дата окончания действия CostOffer
              • CostOfferDuration – продолжительность проживания до данному CostOffer
          • Penalty – информация о штрафах по аннулированной заявке
      • MessageInfo – массив данных сообщений
        • Id – идентификатор сообщения
        • IsOutgoing – исходящее (true - исходящее, false - входящее)
        • DateCreate – дата создания сообщения
        • IsRead – прочитано (true - прочитано, false - не прочитано )
        • Text – текст сообщения
Пример

Вызов метода SearchBookings

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:SearchBookings>
         <!--Optional:-->
         <tem:guid>69ad76b6-3551-403d-934e-18d8358a60e2</tem:guid>
         <!--Optional:-->
         <tem:hotelID>
            <!--Zero or more repetitions:-->
            <tem:int>2942</tem:int>
         </tem:hotelID>
         <tem:dateInfo>1</tem:dateInfo>
         <tem:dateFrom>2021-11-26</tem:dateFrom>
         <tem:dateTo>2021-12-26</tem:dateTo>
         <tem:checkInFrom>2021-11-24</tem:checkInFrom>
         <tem:checkInTo>2021-12-28</tem:checkInTo>
         <tem:New>true</tem:New>
         <tem:change>true</tem:change>
         <tem:cancel>true</tem:cancel>
      </tem:SearchBookings>
   </soapenv:Body>
</soapenv:Envelope>

Возвращаемый результат метода SearchBookings

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SearchBookingsResponse xmlns="http://tempuri.org/">
         <SearchBookingsResult>
            <BookingInfo>
               <Booking>MT120304A01</Booking>
               <BookingID>37234</BookingID>
               <Action>Changed</Action>
               <CreationDate>2022-03-01T18:20:17.683</CreationDate>
               <ChangeDate xsi:nil="true"/>
               <CancelDate xsi:nil="true"/>
               <CustomerMarket>
                  <CustomerMarketId>2</CustomerMarketId>
                  <CustomerMarketName>Russian Market</CustomerMarketName>
               </CustomerMarket>
               <HotelServices>
                  <HotelServiceInfo>
                     <HotelServiceId>168594</HotelServiceId>
                     <HotelServiceName>HTL::Kiev/Green/Double Room/2AD/Inner View/BB</HotelServiceName>
                     <Hotel>
                        <HotelId>2942</HotelId>
                        <HotelName>Green</HotelName>
                     </Hotel>
                     <Pansion>
                        <PansionId>3</PansionId>
                        <PansionName/>
                     </Pansion>
                     <RoomType>
                        <RoomTypeId>3</RoomTypeId>
                        <RoomTypeName/>
                     </RoomType>
                     <RoomAccomodation>
                        <AccommodationId>5558</AccommodationId>
                        <AccommodationName/>
                     </RoomAccomodation>
                     <RoomCategory>
                        <RoomCategoryId>19</RoomCategoryId>
                        <RoomCategoryName/>
                     </RoomCategory>
                     <Status>
                        <StatusId>1</StatusId>
                        <StatusName>Wait</StatusName>
                     </Status>
                     <CostOffer>([kolesnyk/kolesnyk]*4 + [Green - 14-12/Green - 14-12]*3 + [kolesnyk/kolesnyk]*1 + [Green - 14-12/Green - 14-12]*23) * 1 room</CostOffer>
                     <CheckIn>2022-03-04T00:00:00</CheckIn>
                     <CheckOut>2022-04-04T00:00:00</CheckOut>
                     <Tourists>
                        <TouristInfo>
                           <Name>Jiouiop Hopiopiop</Name>
                           <BirthDate xsi:nil="true"/>
                           <Sex>MR</Sex>
                           <HotelServiceId>168594</HotelServiceId>
                        </TouristInfo>
                        <TouristInfo>
                           <Name>Uioyuioio Yuiouyouio</Name>
                           <BirthDate xsi:nil="true"/>
                           <Sex>MR</Sex>
                           <HotelServiceId>168594</HotelServiceId>
                        </TouristInfo>
                     </Tourists>
                     <CostOffers>
                        <CostOfferInfo>
                           <CostOfferName>Green - 14-12</CostOfferName>
                           <CostOfferDateBegin>2021-07-19T00:00:00</CostOfferDateBegin>
                           <CostOfferDateEnd>2022-07-01T00:00:00</CostOfferDateEnd>
                           <CostOfferDuration>6</CostOfferDuration>
                        </CostOfferInfo>
                        <CostOfferInfo>
                           <CostOfferName>kolesnyk</CostOfferName>
                           <CostOfferDateBegin>2022-03-04T00:00:00</CostOfferDateBegin>
                           <CostOfferDateEnd>2022-04-04T00:00:00</CostOfferDateEnd>
                           <CostOfferDuration>5</CostOfferDuration>
                        </CostOfferInfo>
                     </CostOffers>
                     <Penalty/>
                  </HotelServiceInfo>
               </HotelServices>
               <Messages>
               <MessageInfo>
                     <Id>779217</Id>
                     <IsOutgoing>false</IsOutgoing>
                     <DateCreate>2021-11-15T22:21:34.393</DateCreate>
                     <IsRead>false</IsRead>
                     <Text>HTL::Kiev/Hilton/Double Room/2AD/Jakuzzi/BB:
                   яварааааааааарвя</Text>
                  </MessageInfo>
               <Messages/>
            </BookingInfo>
         </SearchBookingsResult>
      </SearchBookingsResponse>
   </soap:Body>
</soap:Envelope>


SearchBookingsJSON (Получение списка забронированных заявок в формате JSON)

Метод предназначен для поиска забронированных заявок. Отбираются те заявки, у которых партнер предоставления услуги совпадает с партнером для логина, под которым осуществляется поиск.
Принимаемые параметры запроса ( * – обязательный):

  • Guid * – идентификатор аутентификации (возвращается при запросе к методу Connect)
  • hotelID – массив данных с ключами отелей. Можно передавать как один так и несколько ключей отелей. Если не передаём данный параметр, то в ответ получаем все заказы, подходящие под выбранные даты.
  • dateInfo * – по какой дате осуществлять поиск (1 - дата создания заявки, 2 - дата заезда в отель, 3 - дата выезда из отеля)
  • dateFrom * – дата начала
  • dateTo * – дата окончания
  • checkInFrom – дата заезда от
  • checkInTo – дата заезда по
  • New – возвращает новые бронирования с датой, попадающей в указанное выше условие
  • change – возвращает измененные бронирования с изменениями, внесенными в выбранный период
  • cancel – возвращает информацию об отмененных бронированиях за выбранный период

Возвращаемый результат:

  • Booking – номер брони в системе Interlook
  • BookingID – ключ заявки из базы данных
  • Action – новая, отмененная или измененная заявка
  • CreationDate – дата создания услуги в заявке
  • ChangeDate – не используется
  • CancelDate – не используется
  • CustomerMarket – данные туроператора, оформившего заявку
    • CustomerMarketId – ключ туроператора, оформившего заявку
    • CustomerMarketName – имя туроператора, оформившего заявку
  • HotelServices – массив данных по сервисам отелей
    • CheckIn – дата заезда в отель
    • CheckOut – дата выезда из отеля
    • Tourists – массив данных туристов
        • Name – имя туриста
        • BirthDate – дата рождения туриста
        • Sex – пол туриста
        • HotelServiceId – ключ услуги проживания с которой связан турист
    • Notes – не указывается
      • HotelServiceId – ключ сервиса отеля
      • HotelServiceName – имя сервиса отеля
      • Hotel – массив данных по отелям
        • HotelId – ключ отеля
        • HotelName – имя отеля
      • Pansion – тип питания
        • PansionId – ключ питания
        • PansionName – имя питания
      • RoomType – тип номера
        • RoomTypeId – ключ типа номера
        • RoomTypeName – имя типа номера
      • RoomAccomodation – тип размещения
        • AccommodationId – ключ типа размещения
        • AccommodationName – имя типа размещения
      • RoomCategory – категория номер
        • RoomCategoryId – ключ категории номера
        • RoomCategoryName – имя категории номера
      • Status – статус по услуге проживания
        • StatusId – ключ статуса по услуге проживания
        • StatusName – имя статуса по услуге проживания
          • CostOffer – наименование Costoffer, по которому рассчитана нетто цена
          • CheckIn – дата заезда в отель
          • CheckOut – дата выезда из отеля
          • Tourists – массив данных туристов
            • TouristInfo – массив данных по туристу
              • Name – имя туриста
              • BirthDate – дата рождения туриста
              • Sex – пол туриста
              • HotelServiceId – ключ услуги проживания с которой связан турист
          • CostOffers – массив данных по CostOffers, по которым рассчитана цена услуги
            • CostOfferInfo – массив данных по конкретному CostOffer
              • CostOfferName – название CostOffer (Если заявка не аннулирована, то выводим название CostOffer по цене netto. Если заявка аннулирована со штрафами, то выводим название CostOffer по цене брутто. Если заявка аннулирована без штрафов, то выводим текст "Canceled without penalty")
              • CostOfferDateBegin – дата начала действия CostOffer
              • CostOfferDateEnd – дата окончания действия CostOffer
              • CostOfferDuration – продолжительность проживания до данному CostOffer
          • Penalty – информация о штрафах по аннулированной заявке
      • MessageInfo – массив данных сообщений
        • Id – идентификатор сообщения
        • IsOutgoing – исходящее (true - исходящее, false - входящее)
        • DateCreate – дата создания сообщения
        • IsRead – прочитано (true - прочитано, false - не прочитано )
        • Text – текст сообщения
Пример

Вызов метода SearchBookingsJSON

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:SearchBookingsJSON>
         <!--Optional:-->
         <tem:guid>bbadd56d-5f81-421e-ab8c-0c7380074447</tem:guid>
         <!--Optional:-->
         <tem:hotelID>
            <!--Zero or more repetitions:-->
            <tem:int>2935</tem:int>
         </tem:hotelID>
         <tem:dateInfo>1</tem:dateInfo>
         <tem:dateFrom>2021-01-01</tem:dateFrom>
         <tem:dateTo>2021-12-01</tem:dateTo>
         <tem:checkInFrom>2021-11-24</tem:checkInFrom>
         <tem:checkInTo>2021-12-28</tem:checkInTo>
         <tem:New>true</tem:New>
         <tem:change>true</tem:change>
         <tem:cancel>true</tem:cancel>
      </tem:SearchBookingsJSON>
   </soapenv:Body>
</soapenv:Envelope>

Возвращаемый результат метода SearchBookingsJSON

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
   <SearchBookingsJSONResponse xmlns="http://tempuri.org/">
         <SearchBookingsJSONResult>[{"Booking":"MT111201A0E","BookingID":36347,"Action":"Cancel","CreationDate":"2021-11-10T11:14:50.193",
"ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":
[{"CheckIn":"2021-12-01T00:00:00","CheckOut":"2021-12-22T00:00:00","Tourists":[{"Name":"tytyru yuyuyu","BirthDate":"1984-12-12T00:00:00"
,"Sex":"MR","HotelServiceId":165138},{"Name":"eyuety yeuyeu","BirthDate":"1984-12-12T00:00:00","Sex":"MR","HotelServiceId":165138}],
"CostOffers":[],"Penalty":"Canceled without penalty","Notes":null,"HotelServiceId":165138,"HotelServiceName":"HTL::Kiev/Green/Double 
Room/2AD/Inner View/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},
"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},
"RoomCategory":{"RoomCategoryId":19,"RoomCategoryName":"Inner View"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],
"Messages":[{"Id":779484,"IsOutgoing":false,"DateCreate":"2021-12-22T11:02:10.59","SenderName":null,"IsRead":false,"Text":"Penalty:
HTL::Kiev/Green/Double Room/2AD/Inner View/BB:\r\nяварааааааааарвя"},{"Id":779485,"IsOutgoing":false,"DateCreate":"2021-12-22T11:10:26.76",
"SenderName":null,"IsRead":false,"Text":"Penalty:HTL::Kiev/Green/Double Room/2AD/Inner View/BB:\r\nяварааааааааарвя"},{"Id":779486,
"IsOutgoing":false,"DateCreate":"2021-12-22T11:12:56.667","SenderName":null,"IsRead":false,"Text":"Penalty:HTL::Kiev/Green/Double 
Room/2AD/Inner View/BB:\r\nяварааааааааарвя"}]},{"Booking":"MT111124A1E","BookingID":36415,"Action":"Cancel","CreationDate":
"2021-11-22T09:48:00.617","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},
"HotelServices":[{"CheckIn":"2021-12-20T00:00:00","CheckOut":"2021-12-26T00:00:00","Tourists":[],"CostOffers":[{"CostOfferName":"Green - 14-12",
"CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":6}],"Penalty":"","Notes":null,
"HotelServiceId":165568,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},
"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation"
:{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":
{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111126A03","BookingID":36425,"Action":"Cancel",
"CreationDate":"2021-11-25T15:08:30.387","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":
"Russian Market"},"HotelServices":[{"CheckIn":"2021-11-26T00:00:00","CheckOut":"2021-12-09T00:00:00","Tourists":[{"Name":"цуенцен куенн",
"BirthDate":"1984-12-12T00:00:00","Sex":"MR","HotelServiceId":165390},{"Name":"dghgh dhdgh","BirthDate":null,"Sex":"MR","HotelServiceId"
:165390}],"CostOffers":[],"Penalty":"","Notes":null,"HotelServiceId":165390,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Inner 
View/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId"
:3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":19,
"RoomCategoryName":"Inner View"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MGR11127A01",
"BookingID":36426,"Action":"Changed","CreationDate":"2021-11-25T15:05:50.947","ChangeDate":null,"CancelDate":null,"CustomerMarket":
{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-11-27T00:00:00","CheckOut":"2021-12-03T00:00:00",
"Tourists":[{"Name":"","BirthDate":null,"Sex":"","HotelServiceId":165393},{"Name":"","BirthDate":null,"Sex":"","HotelServiceId":165393}],
"CostOffers":[],"Penalty":"Canceled without penalty","Notes":null,"HotelServiceId":165393,"HotelServiceName":"HTL::Kiev/Green/Double 
Room/2Ad/Inner View/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":
{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":7974,"AccommodationName":""},
"RoomCategory":{"RoomCategoryId":19,"RoomCategoryName":"Inner View"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],
"Messages":[]},{"Booking":"MT111126A04","BookingID":36427,"Action":"Cancel","CreationDate":"2021-11-25T15:42:26.303","ChangeDate":
null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"
2021-11-27T00:00:00","CheckOut":"2021-12-09T00:00:00","Tourists":[{"Name":"кенгкнгг кегнегш","BirthDate":"1984-12-12T00:00:00",
"Sex":"MR","HotelServiceId":165394}],"CostOffers":[],"Penalty":"","Notes":null,"HotelServiceId":165394,"HotelServiceName":"HTL:
:Kiev/Green/Single Room/1Ad/Inner View/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":
"Bed and Breakfast"},"RoomType":{"RoomTypeId":2,"RoomTypeName":"Single Room"},"RoomAccomodation":{"AccommodationId":7864,
"AccommodationName":"1Ad"},"RoomCategory":{"RoomCategoryId":19,"RoomCategoryName":"Inner View"},"Status":{"StatusId":1,
"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111126A06","BookingID":36429,"Action":"Cancel","CreationDate":
"2021-11-25T15:45:11.7","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian
 Market"},"HotelServices":[{"CheckIn":"2021-12-21T00:00:00","CheckOut":"2021-12-26T00:00:00","Tourists":[{"Name":"Ivanova Sony",
"BirthDate":"1989-08-11T00:00:00","Sex":"MRS","HotelServiceId":165409},{"Name":"Makishev Anton","BirthDate":"1989-08-10T00:00:00"
,"Sex":"MR","HotelServiceId":165409}],"CostOffers":[],"Penalty":"Canceled without penalty","Notes":null,"HotelServiceId":165409,
"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,
"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":
5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName"
:"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111125A02","BookingID":36433,"Action":"Changed","CreationDate":"2021-11-25T17
:18:43.673","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},
"HotelServices":[{"CheckIn":"2021-11-25T00:00:00","CheckOut":"2021-12-09T00:00:00","Tourists":[{"Name":"гнегенг енкенкег","BirthDate":
"1970-12-12T00:00:00","Sex":"MR","HotelServiceId":165428},{"Name":"Tuiuiuipo Ttruyi","BirthDate":"1981-12-12T00:00:00","Sex":"MR",
"HotelServiceId":165428}],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":
"2022-07-01T00:00:00","CostOfferDuration":14}],"Penalty":"","Notes":null,"HotelServiceId":165428,"HotelServiceName":"HTL::Kiev/Green/
Double Room/2AD/Inner View/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},
"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},
"RoomCategory":{"RoomCategoryId":19,"RoomCategoryName":"Inner View"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"(
[Green - 14-12/Green - 14-12]*(14-2)) * 1 room"}],"Messages":[]},{"Booking":"MT111125A03","BookingID":36435,"Action":"New","CreationDate":
"2021-11-25T17:33:45.323","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"
},"HotelServices":[{"CheckIn":"2021-11-25T00:00:00","CheckOut":"2021-12-09T00:00:00","Tourists":[{"Name":"ыпрапр вапрвервпр","BirthDate":
"1984-12-12T00:00:00","Sex":"MR","HotelServiceId":165435},{"Name":"ytutyu tyut","BirthDate":null,"Sex":"MR","HotelServiceId":165435}],
"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00",
"CostOfferDuration":14}],"Penalty":"","Notes":null,"HotelServiceId":165435,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Inner 
View/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,
"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":19,
"RoomCategoryName":"Inner View"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*(14-2)) * 1 room"}],
"Messages":[]},{"Booking":"MT111202A02","BookingID":36437,"Action":"Cancel","CreationDate":"2021-11-25T17:55:10.893","ChangeDate":null,
"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-03T00:00:00","
CheckOut":"2021-12-09T00:00:00","Tourists":[{"Name":"екнкгн кенкеке","BirthDate":"1986-12-12T00:00:00","Sex":"MR","HotelServiceId":165441},
{"Name":"кгкг кенкегнкег","BirthDate":null,"Sex":"MR","HotelServiceId":165441}],"CostOffers":[],"Penalty":"Canceled without penalty","Notes":
null,"HotelServiceId":165441,"HotelServiceName":"HTL::Kiev/Green/Junior Suite/2AD/Jakuzzi/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},
"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":{"RoomTypeId":45,"RoomTypeName":"Junior Suite"},"RoomAccomodation":{
"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":
1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111224A01","BookingID":36474,"Action":"New","CreationDate":
"2021-12-07T19:01:31.003","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},
"HotelServices":[{"CheckIn":"2021-12-20T00:00:00","CheckOut":"2021-12-26T00:00:00","Tourists":[],"CostOffers":[{"CostOfferName":"Green - 14-12",
"CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":6}],"Penalty":"","Notes":null,
"HotelServiceId":165571,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},
"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation"
:{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":
{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111224A02","BookingID":36475,"Action":"New",
"CreationDate":"2021-12-07T19:03:01.993","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":
"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-20T00:00:00","CheckOut":"2021-12-26T00:00:00","Tourists":[],"CostOffers":
[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":6}],
"Penalty":"","Notes":null,"HotelServiceId":165574,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB","Hotel":{
"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,
"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":
20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":
"MT111224A03","BookingID":36476,"Action":"New","CreationDate":"2021-12-07T19:03:18.07","ChangeDate":null,"CancelDate":null,
"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-20T00:00:00","CheckOut"
:"2021-12-26T00:00:00","Tourists":[],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00",
"CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":6}],"Penalty":"","Notes":null,"HotelServiceId":165577,"HotelServiceName":
"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":
"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},
"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],
"Messages":[]},{"Booking":"MT111210A0F","BookingID":36480,"Action":"New","CreationDate":"2021-12-09T15:59:30.093","ChangeDate":null,
"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":
"2021-12-10T00:00:00","CheckOut":"2021-12-23T00:00:00","Tourists":[{"Name":"ertert wertr","BirthDate":null,"Sex":"MR","HotelServiceId"
:165586},{"Name":"ertert ertert","BirthDate":null,"Sex":"MR","HotelServiceId":165586}],"CostOffers":[],"Penalty":"","Notes":null,
"HotelServiceId":165586,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},
"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation":
{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":
{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111210A0G","BookingID":36481,"Action":"New","CreationDate"
:"2021-12-09T16:02:40.277","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"
},"HotelServices":[{"CheckIn":"2021-12-10T00:00:00","CheckOut":"2021-12-22T00:00:00","Tourists":[{"Name":"ertert wertr","BirthDate":null,
"Sex":"MR","HotelServiceId":165589},{"Name":"ertert ertert","BirthDate":null,"Sex":"MR","HotelServiceId":165589}],"CostOffers":[],"Penalty"
:"","Notes":null,"HotelServiceId":165589,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName
":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},
"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},
"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111224A04","BookingID":36482,"Action":"New",
"CreationDate":"2021-12-09T16:41:12.797","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName"
:"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-20T00:00:00","CheckOut":"2021-12-26T00:00:00","Tourists":[{"Name":"Makishev Anton"
,"BirthDate":"1981-08-10T00:00:00","Sex":"MR","HotelServiceId":165592},{"Name":"Ivanova Sony","BirthDate":"1981-08-11T00:00:00","Sex":"MR"
,"HotelServiceId":165592}],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":
"2022-07-01T00:00:00","CostOfferDuration":6}],"Penalty":"","Notes":null,"HotelServiceId":165592,"HotelServiceName":"HTL::Kiev/Green/Double
Room/2AD/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":
{"RoomTypeId":3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":
{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking"
:"MT111224A05","BookingID":36483,"Action":"New","CreationDate":"2021-12-09T16:44:54.207","ChangeDate":null,"CancelDate":null,"CustomerMarket"
:{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-20T00:00:00","CheckOut":"2021-12-26T00:00:00"
,"Tourists":[],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":6}],"Penalty":"","Notes":null,"HotelServiceId":165595,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD
/Jakuzzi/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId"
:3,"RoomTypeName":"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"
RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111214A03","BookingID
":36523,"Action":"New","CreationDate":"2021-12-10T12:14:16.333","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,
"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-14T00:00:00","CheckOut":"2022-01-20T00:00:00","Tourists":[{"Name"
:"пншапш егнкг","BirthDate":null,"Sex":"MR","HotelServiceId":165690}],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":37}],"Penalty":"","Notes":null,"HotelServiceId":165690,"HotelServiceName":"HTL::Kiev/Green/Single Room/1Ad/Inner 
View/BB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":2,"
RoomTypeName":"Single Room"},"RoomAccomodation":{"AccommodationId":7864,"AccommodationName":"1Ad"},"RoomCategory":{"RoomCategoryId":19,"RoomCategoryName"
:"Inner View"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*37) * 1 room"}],"Messages":[]},{"Booking":
"MT111220A03","BookingID":36550,"Action":"New","CreationDate":"2021-12-20T17:37:38.643","ChangeDate":null,"CancelDate":null,"CustomerMarket":
{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-20T00:00:00","CheckOut":"2022-01-03T00:00:00",
"Tourists":[{"Name":"кенкен уенкен","BirthDate":null,"Sex":"MR","HotelServiceId":165739},{"Name":"кенкен кенен","BirthDate":null,"Sex":"MR",
"HotelServiceId":165739}],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":14}],"Penalty":"","Notes":null,"HotelServiceId":165739,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Jakuzzi/BB",
"Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":3,"PansionName":"Bed and Breakfast"},"RoomType":{"RoomTypeId":3,"RoomTypeName":
"Double Room"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},
"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*(14-2)) * 1 room"}],"Messages":[]},{"Booking":"MT111224A06",
"BookingID":36575,"Action":"Changed","CreationDate":"2021-12-23T09:44:33","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,
"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-24T00:00:00","CheckOut":"2022-01-07T00:00:00","Tourists":[{"Name":"Кенкен
 Кенкен","BirthDate":null,"Sex":"MR","HotelServiceId":165806},{"Name":"Ывкеукне Кенкенк","BirthDate":null,"Sex":"MR","HotelServiceId":165806}],
"CostOffers":[],"Penalty":"","Notes":null,"HotelServiceId":165806,"HotelServiceName":"HTL::Kiev/Green/Double Room/2AD/Inner View/HB","Hotel":
{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":{"RoomTypeId":3,"RoomTypeName":"Double Room"},
"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":19,"RoomCategoryName":"Inner View"},"Status":
{"StatusId":1,"StatusName":"Wait"},"CostOffer":""}],"Messages":[]},{"Booking":"MT111021A05","BookingID":36618,"Action":"New","CreationDate":"2021-12-29T19:
14:24.983","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":
"2022-10-21T00:00:00","CheckOut":"2022-10-26T00:00:00","Tourists":[{"Name":" ","BirthDate":"2003-10-23T00:00:00","Sex":"MR","HotelServiceId":165902},{"Name"
:" ","BirthDate":"2003-10-23T00:00:00","Sex":"MR","HotelServiceId":165902}],"CostOffers":[],"Penalty":"Canceled without penalty","Notes":null,"HotelServiceId"
:165902,"HotelServiceName":" HTL::Kiev/Green/Atest/2AD/Jakuzzi/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":
"Half Board"},"RoomType":{"RoomTypeId":886,"RoomTypeName":"Atest"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":
"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":""},{"CheckIn":"2022-10-21T00:00:00","CheckOut":
"2022-10-26T00:00:00","Tourists":[{"Name":" ","BirthDate":"2003-10-23T00:00:00","Sex":"MR","HotelServiceId":165903},{"Name":" ","BirthDate":"2003-10-23T00:00:00",
"Sex":"MR","HotelServiceId":165903}],"CostOffers":[],"Penalty":"Canceled without penalty","Notes":null,"HotelServiceId":165903,"HotelServiceName":"HTL::
Kiev/Green/Atest/2AD/Jakuzzi/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":{"RoomTypeId":886,"
RoomTypeName":"Atest"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},
"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*5) * 1 room"}],"Messages":[]},{"Booking":"MT120221A01","BookingID":36619,
"Action":"New","CreationDate":"2021-12-29T19:26:31.233","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian
 Market"},"HotelServices":[{"CheckIn":"2022-02-21T00:00:00","CheckOut":"2022-02-22T00:00:00","Tourists":[{"Name":" ","BirthDate":"2003-10-23T00:00:00","Sex":"MR",
"HotelServiceId":165904},{"Name":" ","BirthDate":"2003-10-23T00:00:00","Sex":"MR","HotelServiceId":165904}],"CostOffers":[{"CostOfferName":"Green - 14-12",
"CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":1}],"Penalty":"","Notes":null,"HotelServiceId":165904,
"HotelServiceName":"HTL::Kiev/Green/Atest/2AD/Jakuzzi/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType"
:{"RoomTypeId":886,"RoomTypeName":"Atest"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName"
:"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*1) * 1 room"}],"Messages":[]},{"Booking":"MT120115A01",
"BookingID":36620,"Action":"New","CreationDate":"2021-12-29T17:27:14.163","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName"
:"Russian Market"},"HotelServices":[{"CheckIn":"2022-01-15T00:00:00","CheckOut":"2022-01-20T00:00:00","Tourists":[{"Name":"Da Ania","BirthDate":null,"Sex":"MR",
"HotelServiceId":165910},{"Name":"Da Ana","BirthDate":null,"Sex":"MR","HotelServiceId":165910}],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin"
:"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":5}],"Penalty":"","Notes":null,"HotelServiceId":165910,"HotelServiceName":"HTL::
Kiev/Green/Junior Suite/2AD/Jakuzzi/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":{"RoomTypeId"
:45,"RoomTypeName":"Junior Suite"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"
Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*5) * 1 room"}],"Messages":[]},{"Booking":"MT120122A01","Booking
ID":36621,"Action":"New","CreationDate":"2021-12-29T18:40:51.92","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName"
:"Russian Market"},"HotelServices":[{"CheckIn":"2022-01-22T00:00:00","CheckOut":"2022-01-27T00:00:00","Tourists":[{"Name":" ","BirthDate":"2003-10-24T00:00:00","Sex":
"MR","HotelServiceId":165911},{"Name":" ","BirthDate":"2003-10-24T00:00:00","Sex":"MR","HotelServiceId":165911}],"CostOffers":[{"CostOfferName":"Green - 14-12","
CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":
"2022-07-01T00:00:00","CostOfferDuration":5}],"Penalty":"","Notes":null,"HotelServiceId":165911,"HotelServiceName":"HTL::Kiev/Green/Atest/2AD/Jakuzzi/HB","Hotel"
:{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":{"RoomTypeId":886,"RoomTypeName":"Atest"},"RoomAccomodation":
{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},
"CostOffer":"([Green - 14-12/Green - 14-12]*5) * 1 room"}],"Messages":[]},{"Booking":"MT111222A0C","BookingID":36622,"Action":"New","CreationDate":"2021-12-29T18:53:00.677"
,"ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-22T00:00:00","
CheckOut":"2021-12-29T00:00:00","Tourists":[{"Name":"Kaktus Ania","BirthDate":null,"Sex":"MR","HotelServiceId":165912},{"Name":"Kaktus Ana","BirthDate":null,"Sex":"MR"
,"HotelServiceId":165912}],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":7}],"Penalty":"","Notes":null,"HotelServiceId":165912,"HotelServiceName":"HTL::Kiev/Green/Junior Suite/2AD/Jakuzzi/HB","Hotel":{"HotelId":
2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":{"RoomTypeId":45,"RoomTypeName":"Junior Suite"},"RoomAccomodation":{"AccommodationId"
:5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12
/Green - 14-12]*7) * 1 room"}],"Messages":[]},{"Booking":"MT111222A0D","BookingID":36623,"Action":"New","CreationDate":"2021-12-29T18:59:44.41","ChangeDate":null,"CancelDate"
:null,"CustomerMarket":{"CustomerMarketId":2,"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-22T00:00:00","CheckOut":"2021-12-29T00:00:00","Tourists"
:[{"Name":"Kruassan Ania","BirthDate":null,"Sex":"MR","HotelServiceId":165913},{"Name":"Kruassan Ana","BirthDate":null,"Sex":"MR","HotelServiceId":165913}],"CostOffers":[
{"CostOfferName":"Green - 14-12","CostOfferDateBegin":"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":7}],"Penalty":"","Notes":null,
"HotelServiceId":165913,"HotelServiceName":"HTL::Kiev/Green/Junior Suite/2AD/Jakuzzi/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName"
:"Half Board"},"RoomType":{"RoomTypeId":45,"RoomTypeName":"Junior Suite"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{
"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*7) * 1 room"}],"Messages":[]},
{"Booking":"MT111222A0E","BookingID":36624,"Action":"New","CreationDate":"2021-12-29T19:08:55.35","ChangeDate":null,"CancelDate":null,"CustomerMarket":{"CustomerMarketId":2,
"CustomerMarketName":"Russian Market"},"HotelServices":[{"CheckIn":"2021-12-22T00:00:00","CheckOut":"2021-12-29T00:00:00","Tourists":[{"Name":"Kruassan Ania","BirthDate":null,
"Sex":"MR","HotelServiceId":165914},{"Name":"Kruassan Ana","BirthDate":null,"Sex":"MR","HotelServiceId":165914}],"CostOffers":[{"CostOfferName":"Green - 14-12","CostOfferDateBegin":
"2021-07-19T00:00:00","CostOfferDateEnd":"2022-07-01T00:00:00","CostOfferDuration":7}],"Penalty":"","Notes":null,"HotelServiceId":165914,"HotelServiceName":"HTL::Kiev/Green/
Junior Suite/2AD/Jakuzzi/HB","Hotel":{"HotelId":2942,"HotelName":"Green"},"Pansion":{"PansionId":4,"PansionName":"Half Board"},"RoomType":{"RoomTypeId":45,"RoomTypeName":
"Junior Suite"},"RoomAccomodation":{"AccommodationId":5558,"AccommodationName":"2AD"},"RoomCategory":{"RoomCategoryId":20,"RoomCategoryName":"Jakuzzi"},"Status":{"StatusId":1,
"StatusName":"Wait"},"CostOffer":"([Green - 14-12/Green - 14-12]*7) * 1 room"}],"Messages":[],}]}]</SearchBookingsJSONResult>
</SearchBookingsJSONResponse>
   </soap:Body>
</soap:Envelope>


Методы передачи изменений по услугам

ManageBooking (Передача изменений по услуге проживания в Interlook)

Принимаемые параметры запроса ( * – обязательный):

  • ManageBooking>
    • guid * – идентификатор аутентификации (возвращается при запросе к методу Connect)
    • hotelServiceId * – ключ услуги проживания (возвращается при запросе к методу SearchBookings)
    • status – фильтр для отбора услуг с определенным статусом (1 - Wait, 2 - Confirmed, 3 - notConfirmed)
    • message – сообщение для пользователя Interlook
    • hotelWorkStatus – отметка отеля по заявке (true - отель взял заявку в работу, false - отель заявку в работу не взял). При отправке этого параметра формируется запись в историю по заявке и сообщение от провайдера.

Возвращаемый результат:

  • ManageBookingResult – массив данных
  • HotelServiceId – ключ сервиса отеля
  • HotelServiceName – имя сервиса отеля
    • Hotel – массив данных по отелям
      • HotelId – ключ отеля
      • HotelName – имя отеля
    • Pansion – тип питания
      • PansionId – ключ питания
      • PansionName – имя питания
    • RoomType – тип номера
      • RoomTypeId – ключ типа номера
      • RoomTypeName – имя типа номера
    • RoomAccomodation – тип размещения
      • AccommodationId – ключ типа размещения
      • AccommodationName – имя типа размещения
    • RoomCategory – категория номер
      • RoomCategoryId – ключ категории номера
      • RoomCategoryName – имя категории номера
    • Status – статус по услуге проживания
      • StatusId – ключ статуса по услуге проживания
      • StatusName – имя статуса по услуге проживания


Пример

Вызов метода ManageBooking

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:ManageBooking>
         <!--Optional:-->
         <tem:guid>69ad76b6-3551-403d-934e-18d8358a60e2</tem:guid>
         <tem:hotelServiceId>163806</tem:hotelServiceId>
         <tem:status>1</tem:status>
         <!--Optional:-->
         <tem:message>яварааааааааарвя</tem:message>
         <tem:hotelWorkStatus>false</tem:hotelWorkStatus>
      </tem:ManageBooking>
   </soapenv:Body>
</soapenv:Envelope>

Возвращаемый результат метода ManageBooking

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <ManageBookingResponse xmlns="http://tempuri.org/">
         <ManageBookingResult Message="Ok">
            <Data>
               <ManageBookingResult>
                  <HotelServiceId>163806</HotelServiceId>
                  <HotelServiceName>HTL::Kiev/Hilton/Double Room/2AD/Jakuzzi/BB</HotelServiceName>
                  <Hotel>
                     <HotelId>2935</HotelId>
                     <HotelName>Hilton</HotelName>
                  </Hotel>
                  <Pansion>
                     <PansionId>3</PansionId>
                     <PansionName>Bed and Breakfast</PansionName>
                  </Pansion>
                  <RoomType>
                     <RoomTypeId>3</RoomTypeId>
                     <RoomTypeName>Double Room</RoomTypeName>
                  </RoomType>
                  <RoomAccomodation>
                     <AccommodationId>5558</AccommodationId>
                     <AccommodationName>2AD</AccommodationName>
                  </RoomAccomodation>
                  <RoomCategory>
                     <RoomCategoryId>20</RoomCategoryId>
                     <RoomCategoryName>Jakuzzi</RoomCategoryName>
                  </RoomCategory>
                  <Status>
                     <StatusId>1</StatusId>
                     <StatusName>Wait</StatusName>
                  </Status>
               </ManageBookingResult>
            </Data>
         </ManageBookingResult>
      </ManageBookingResponse>
   </soap:Body>
</soap:Envelope>