Master-Interlook:IntegrationService (en) — различия между версиями

Материал из Megatec
Перейти к: навигация, поиск
[досмотренная версия][досмотренная версия]
(Introduction)
(Метод работы с квотами)
 
(не показано 20 промежуточных версий этого же участника)
Строка 15: Строка 15:
 
Response: The server could not read the request. ---> System.InvalidOperationException: There is an error in the XML document (9, 37). ---> System.FormatException: The input string had an incorrect format
 
Response: The server could not read the request. ---> System.InvalidOperationException: There is an error in the XML document (9, 37). ---> System.FormatException: The input string had an incorrect format
  
=Методы IntegrationService=
+
=The Methods of IntegrationService=
  
==Методы аутентификации==
+
==The Methods of IntegrationService==
  
===Connect (Получение аутентификационного токена)===
+
===Connect (Obtaining an authentication token)===
Метод производит получение аутентификационного токена, необходимого для выполнения метода '''CreateReservation'''.<br />
+
Method obtains the authentication token required to execute the '''CreateReservation''' method.<br />
Принимаемые параметры запроса ( '''*''' – обязательный):
+
Accepted request parameters ( '''*''' – required):
* '''Login *''' – логин online пользователя
+
* '''Login *''' – login of the online user
* '''Password *''' – пароль online пользователя
+
* '''Password *''' – online user's password
Возвращаемый результат:
+
The Returning result:
* '''ConnectResult''' – идентификатор аутентификации (если аутентификация прошла успешно, то получаем идентификатор, в противном случае ошибку "Connection result code: -1. Invalid login or password")  
+
* '''ConnectResult''' – authentication ID (if authentication was successful, we receive the ID, otherwise we receive the error "Connection result code: -1. Invalid login or password")
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода Connect
+
The Invocation of method Connect
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 44: Строка 45:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Возвращаемый результат метода Connect
+
The Returning result of method Connect
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 57: Строка 58:
 
</div></div><br />
 
</div></div><br />
  
===CheckConnect (Проверка активности подключения под конкретным идентификатором)===
+
===СheckConnect (Checking the connection activity under a specific identifier)===
Метод проверяет наличие активного подключения под конкретным идентификатором аутентификации.<br />
+
The method checks whether there is an active connection under a specific authentication identifier.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – authentication ID (returns when requesting the [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]] method)<br />
Возвращаемый результат:
+
The Returning result:
* '''CheckConnectResult''' – идентификатор аутентификации (true – если подключение активно, false – если подключения нет)  
+
* '''CheckConnectResult''' – authentication ID (true – if the connection is active, false – if there is no connection)  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CheckConnect
+
The Invocation of method CheckConnect
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 79: Строка 80:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Возвращаемый результат метода CheckConnect
+
The Returning result of method CheckConnect
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 92: Строка 93:
 
</div></div><br />
 
</div></div><br />
  
==Методы работы с путевками==
+
==Methods for working with tours==
 
 
===CreateReservation (Бронирование путевки)===
 
Метод производит бронирование путевки.<br><br>
 
После получения идентификатора аутентификации при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]] должно пройти некоторое время для загрузки кэша.
 
В случае формирования запроса на бронирования если кэш еще не загружен, пользователь получает сообщение "System.Exception: The Cache is loading. Try again after some time". В таком случае нужно подождать несколько секунд и повторить запрос.<br/>
 
Внимание! Бронирование обязательных Extra Service типа WithCost, Hardlink происходит автоматически. Вне зависимости от того передаются они в запросе или нет.<br>
 
Перебронирование путевки происходит в случае, если в запросе отправлены параметры ExternalID, ID уже имеющиеся в базе данных Interlook.<br><br>
 
Принимаемые параметры запроса ( * – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Reserv *''' – класс – объект путевки
 
** '''HasInvoices  *''' – выставлен ли счет по путевке
 
*** '''true''' – счет выставлен
 
*** '''false''' – счет не выставлен
 
** '''Rate *''' – валюта путевки
 
*** '''ID ''' – идентификатор валюты (если не отправляем или отправляем 0 или отправляем значение, отсутствующее в базе данных, то подставляется валюта, имеющая ID=1 из таблицы Rates Базы Данных)
 
** '''TouristServices *''' – массив услуг, используемых туристами
 
*** '''TouristService *''' – отдельная услуга, используемая туристом
 
**** '''TouristRoomNumber''' – номер комнаты. Если проживание, например Double, то для каждого туриста указываем одинаковый номер комнаты. Для остальных услуг - поле оставляем пустым.
 
**** '''TouristID *''' – идентификатор туриста
 
**** '''ServiceID *''' – идентификатор услуги
 
*** '''Services''' – массив услуг по путевке (определенного типа, в зависимости от типа услуги, например: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
 
**** '''HotelService *''' – параметры для услуги типа HotelService
 
***** '''ExternalID''' –  отправляется при изменении сервиса (приходит в ответе метода CreateReservation в параметре ID). При создании бронирования отправляем 0 или не отправляем параметр.
 
***** '''NMen''' – количество взрослых туристов (если не отправляем данный параметр, то расчет ведется по NMen = 1)
 
***** '''AdditionalParams''' – дополнительные параметры (представляются в виде пары ключ – значение)
 
****** '''ParameterPair Key''' – ключ
 
******* '''Value''' – значение
 
***** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'').Если не отправляется, то считается текущей
 
***** '''Duration *''' – продолжительность услуги
 
***** '''ID *''' – идентификатор услуги, используемый для привязки сервиса к туристам
 
***** '''Hotel *''' – массив данных отель
 
****** '''AdditionalParams''' – дополнительные параметры (представляются в виде пары ключ – значение)
 
******* '''ParameterPair Key''' – ключ
 
******** '''Value''' – значение
 
****** '''ID *''' – идентификатор отеля
 
***** '''Room *''' – массив данных комната
 
****** '''RoomTypeID *''' – идентификатор типа комнаты
 
****** '''RoomCategoryID *''' – идентификатор категории комнат
 
****** '''RoomAccomodationID *''' – идентификатор типа размещения
 
***** '''PansionID *''' – идентификатор типа питания
 
**** '''TransferService''' – параметры для услуги типа TransferService
 
***** '''ExternalID''' –  отправляется при изменении сервиса (приходит в ответе метода CreateReservation в параметре ID). При создании бронирования отправляем 0 или не отправляем параметр.
 
***** '''NMen''' – количество взрослых туристов (если не отправляем данный параметр, то расчет ведется по NMen = 1)
 
***** '''AdditionalParams''' – дополнительные параметры (представляются в виде пары ключ – значение)
 
****** '''ParameterPair Key''' – ключ
 
******* '''Value''' – значение
 
***** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'').Если не отправляется, то считается текущей
 
***** '''Duration''' – продолжительность услуги. Если не передаем данный параметр, то по умолчанию считается Duration=1
 
***** '''ID *''' – идентификатор услуги, используемый для привязки сервиса к туристам
 
***** '''Transfer *''' – массив данных трансфер
 
****** '''ID *''' – ключ трансфера из таблицы TransferDirecions (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetTransfers (получение списка трансферов)|GetTransfers]])<br />
 
***** '''Transport *''' – массив данных транспорта
 
****** '''ID *''' – ключ транспорта из таблицы Transport
 
**** '''ExtraService''' – параметры для услуги типа ExtraService. Если на даты проживания имеется доп. услуга AddHots WithCosts, то она автоматически добавляется в ответе, передавать ее не нужно.<br /> 
 
***** '''ExternalID''' –  отправляется при изменении сервиса (приходит в ответе метода CreateReservation в параметре ID). При создании бронирования отправляем 0 или не отправляем параметр.
 
***** '''NMen''' – количество взрослых туристов (если не отправляем данный параметр, то расчет ведется по NMen = 1)
 
***** '''AdditionalParams''' – дополнительные параметры (представляются в виде пары ключ – значение)
 
****** '''ParameterPair Key''' – ключ
 
******* '''Value''' – значение
 
***** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'').Если не отправляется, то считается текущей
 
***** '''Duration''' – продолжительность услуги. Если не передаем данный параметр, то по умолчанию считается Duration=1
 
***** '''ID *''' – идентификатор услуги, используемый для привязки сервиса к туристам
 
***** '''Code *''' – код сервиса (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetExtraService (получение списка сервисов)|GetExtraService]])<br /> 
 
**** '''ExcursionService''' - параметры для услуги типа '''Экскурсия'''
 
***** '''ExternalID''' –  отправляется при изменении сервиса (приходит в ответе метода CreateReservation в параметре ID). При создании бронирования отправляем 0 или не отправляем параметр.
 
***** '''NMen''' – количество взрослых туристов (если не отправляем данный параметр, то расчет ведется по NMen = 1)
 
***** '''AdditionalParams''' – дополнительные параметры (представляются в виде пары ключ – значение)
 
****** '''ParameterPair Key''' – ключ
 
******* '''Value''' – значение
 
***** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'').Если не отправляется, то считается текущей
 
***** '''Duration''' – продолжительность услуги. Если не передаем данный параметр, то по умолчанию считается Duration=1
 
***** '''ID *''' – идентификатор услуги, используемый для привязки сервиса к туристам
 
***** '''ExcursionID *''' – идентификатор экскурсии (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetExcursions (получение списка экскурсий)|GetExcursions]])<br />   
 
***** '''CountryID'''  – идентификатор страны, если не передаем, то в ответе получим -1.
 
***** '''CityID''' – идентификатор города
 
** '''Tourists *''' – массив туристов по услуге
 
*** '''Tourist *''' – турист
 
**** '''Sex''' –  пол (ключ = значения: '''Male''' = 0, '''Female''' = 1, '''Child''' = 2, '''Infant''' = 3)
 
**** '''BirthDate *''' – дата рождения туриста (в формате ''ГГГГ-ММ-ДДT00:00:00'')
 
**** '''FirstNameLat *''' – имя туриста латиницей
 
**** '''SurNameLat *''' – отчество туриста латиницей
 
**** '''AgeType''' – тип возраста ('''Adult''' = 0, '''Child''' = 1, '''Infant''' = 2)
 
**** '''IsMain''' – устанавливает признак главного туриста по путевке ('''Null''', '''0''' – нет, '''1''' – турист главный)
 
**** '''ID *''' – идентификатор туриста для привязки туриста к сервису
 
**** '''Phone''' – телефон туриста (в международном формате, например +70000000000, 70000000000)
 
**** '''Email''' – адрес электронной почты туриста
 
**** '''ForeignPassport''' – иностранный паспорт
 
**** '''Serie''' – серия
 
**** '''Number''' – номер
 
**** '''EndDate''' – дата окончания действия
 
** '''ExternalID''' –  ключ путевки из базы данных Interlook (При создании новой путевки можно отправить 0 или не отправлять параметр)
 
** '''TourOperatorID''' – ключ путевки во внешней системе (ключ туроператора)
 
** '''TourOperatorCode''' – номер из "customer reservation number"
 
** '''ID''' – ключ путевки
 
  
Возвращаемый результат:<br />
+
===CreateReservation (The booking of the tour)===
* '''HasInvoices''' – выставлен ли счет по путевке
+
The method makes a booking of the tour.<br /><br />
** '''true''' – счет выставлен
+
After receiving the authentication ID when requesting the [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]] method, it should take some time for the cache to load. If a booking request is generated, when the cache is not loaded yet, the user receives the message "System.Exception: The Cache is loading. Try again after some time". In this case, you need to wait a few seconds and repeat the request.<br />
** '''false''' – счет не выставлен
+
Attention! Booking of mandatory Extra Services like WithCost, Hardlink occurs automatically. Regardless of whether they are transmitted in the request or not.<br />
* '''AgentDiscount''' – скидка агента
+
Rebooking of a tour occurs if the request contains the parameters ExternalId, ID is already available in the Interlook database.<br /><br />
* '''Rate''' – валюта путевки
+
Accepted request parameters ( '''*''' – required):
** '''Name''' – название валюты
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
** '''ID''' – идентификатор валюты
+
* '''Reserv *''' – class – object of the tour
** '''Description''' – описание валюты
+
** '''HasInvoices  *''' – is the tour invoice issued
** '''NameLat''' – наименование валюты латиницей
+
*** '''true''' – the invoce has been issued
** '''Code''' – код валюты
+
*** '''false''' – the invoce has not been issued
** '''CodeLat''' – код валюты латиницей
+
** '''Rate *''' – the currency of the tour
** '''Unicode''' – код ISO для валюты
+
*** '''ID ''' – the currency ID (if we do not send or send 0 or send value, that is absent in the database, then the currency, that has ID=1 from table Rates of the Database, will be substituted)
** '''IsMain''' – является ли валюта главной ('''true''' – является, '''false''' – не является)
+
** '''TouristServices *''' – an array of services, used by tourists
** '''IsNational''' – является ли валюта национальной ('''true''' – является, '''false''' – не является)
+
*** '''TouristService *''' – a separate service, used by tourists
* '''TouristServices''' – массив услуг, используемых туристами
+
**** '''TouristRoomNumber''' – the number of the room. If the accommodation is, for example, Double, then we specify the same room number for each tourist. For other services we leave the field empty.
** '''TouristService''' – отдельная услуга, используемая туристом
+
**** '''TouristID *''' – the ID of the tourist
*** '''ID''' – идентификатор услуги, используемой туристом
+
**** '''ServiceID *''' – the ID of the service
*** '''TouristRoomNumber''' – номер комнаты
+
*** '''Services''' – an array of services for a tour (of a certain type, depanding on the type of service, for example: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
*** '''TouristID''' – идентификатор туриста (''-1'' для новой путевки)
+
**** '''HotelService *''' – the parameters for a HotelService type of the service
*** '''ServiceID''' – идентификатор услуги (''-1'' для новой путевки)
+
***** '''ExternalID''' – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
* '''Services''' – массив услуг по путевке (определенного типа, в зависимости от типа услуги, например: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
+
***** '''NMen''' – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
** '''HotelService''' – параметры для услуги типа HotelService
+
***** '''AdditionalParams''' –additional parameters (represents as a pair key – value)
*** '''ExternalID''' – не используется
+
****** '''ParameterPair Key''' – key
*** '''Price''' – цена брутто
+
******* '''Value''' – value
*** '''NMen''' – количество взрослых туристов
+
***** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00''). If it is not sent, it is considered current
*** '''Partner''' – массив данных партнера
+
***** '''Duration *''' – duration of service
**** '''Name''' – наименование партнера
+
***** '''ID *''' – id of service using for binding the service to the tourists
**** '''ID''' – идентификатор партнера
+
***** '''Hotel *''' – array of data hotel
**** '''Description''' – описание партнера
+
****** '''AdditionalParams''' – additional parameters (providing as pair key – value)
**** '''NameLat''' – наименование партнера латиницей
+
******* '''ParameterPair Key''' – key
**** '''Code''' – код партнера
+
******** '''Value''' – value
**** '''CodeLat''' – код партнера латиницей
+
****** '''ID *''' – id of hotel
**** '''Unicode''' – код ISO партнера
+
***** '''Room *''' – array of data room
**** '''PartnersGroupID''' – идентификатор группы партнера
+
****** '''RoomTypeID *''' – id of type of the room
**** '''FullName''' – полное наименование партнера
+
****** '''RoomCategoryID *''' – id of type of categories
**** '''Fax''' – факс партнера
+
****** '''RoomAccomodationID *''' – id of the accommodation types
**** '''Address''' – адрес партнера
+
***** '''PansionID *''' – id of the pansion types
**** '''Zip''' – почтовый код партнера
+
**** '''TransferService''' – parameters for type of service TransferService
**** '''Email''' – email партнера
+
***** '''ExternalID''' – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter
**** '''Phones''' – телефон партнера
+
***** '''NMen''' – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
+
***** '''AdditionalParams''' – additional parameters (represents as a pair key – value)
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
+
****** '''ParameterPair Key''' – key
*** '''PacketKey''' – идентификатор пакета услуги
+
******* '''Value''' – value
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ – значение)
+
***** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00''). If it is not sent, it is considered current
**** '''ParameterPair Key''' – ключ
+
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
***** '''Value''' – значение
+
***** '''ID *''' – id of service using for binding the service to the tourists
****** '''PenaltyCost''' - объект со значением штрафа и условиями, по которым штраф был рассчитан. Отображение параметров регулируется лицензией.
+
***** '''Transfer *''' – array of data Transfer
******* '''PolicyKey''' - ключ условия по штрафу в БД (''-1'' - "псевдоусловие", до начала всех условий, или после окончания всех, или вообще никаких условий нет)
+
****** '''ID *''' – key of transfer from table TransferDirecions (returns in the request for the method [[Master-Interlook:IntegrationService (en)#GetTransfers (Receiving the list of the transfers by parameters)|GetTransfers]])
******* '''DateFrom''' - дата начала действия условия в формате ГГГГ-ММ-ДДT00:00:00 (может быть ''null'', обычно для "псевдоусловия": "без штрафа до...")
+
***** '''Transport *''' – array of data Transport
******* '''DateTo''' - дата окончания (может быть ''null'', для "псевдоусловия" : "100% после ...")
+
****** '''ID *''' – key of transport from table Transport
******* '''PenaltyValue''' - размер штрафа
+
**** '''ExtraService''' – parameters for the service type ExtraService. If there is additional service AddHots WithCosts for the dates of stay, then it is automatically added in the response, there is no need to transmit it. 
******* '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
+
***** '''ExternalID''' – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
******* '''TotalPenalty''' - полная сумма штрафа
+
***** '''NMen''' – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
******* '''Description''' - описание
+
***** '''AdditionalParams''' – additional parameters (represents as a pair key – value)
*** '''DetailBrutto''' – подробности брутто
+
****** '''ParameterPair Key''' – key
*** '''Notes''' – примечания к услуге
+
******* '''Value''' – value
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
+
***** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00''). If it is not sent, it is considered current
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
*** '''StartDay''' – не используется
+
***** '''ID *''' – id of service using for binding the service to the tourists
*** '''Duration''' – продолжительность услуги
+
***** '''Code *''' – code of the service (return in the request for method [[Master-Interlook:IntegrationService (en)#GetExtraServices (Receiving the list of additional services including services of AdHot type)|GetExtraService]]) 
*** '''RateBrutto''' – валюта брутто
+
**** '''ExcursionService''' - parameters for the service type '''Excursion'''
*** '''Brutto''' – цена брутто
+
***** '''ExternalID''' – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
*** '''ServiceClassID''' – идентификатор класса услуги
+
***** '''NMen''' – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
*** '''TouristCount''' – количество туристов, пользующихся услугой
+
***** '''AdditionalParams''' – additional parameters (represents as a pair key – value)
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
+
****** '''ParameterPair Key''' – key
*** '''Status''' – статус услуги
+
******* '''Value''' – value
**** '''Name''' – наименование статуса услуги
+
***** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00''). If it is not sent, it is considered current
**** '''ID''' – идентификатор статуса услуги
+
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
**** '''Description''' – описание  статуса услуги
+
***** '''ID *''' – id of service using for binding the service to the tourists
**** '''NameLat''' – наименование  статуса услуги латиницей
+
***** '''ExcursionID *''' – id of excursion (returns in the request for method [[Master-Interlook:IntegrationService (en)#GetExcursions (Receiving the list of the excursions by parameters)|GetExcursions]])<br />   
**** '''Code''' – код  статуса услуги
+
***** '''CountryID''' id of country, if it is not transmitted, then receive -1 in response
**** '''CodeLat''' – код  статуса услуги латиницей
+
***** '''CityID''' – id of city
**** '''Unicode''' – код ISO  статуса услуги
+
** '''Tourists *''' – array of tourists by service
*** '''Hotel''' – массив данных отель
+
*** '''Tourist *''' – tourist
**** '''Name''' – наименование отеля
+
**** '''Sex''' – genger (key = values: '''Male''' = 0, '''Female''' = 1, '''Child''' = 2, '''Infant''' = 3)
****'''ID''' – идентификатор отеля
+
**** '''BirthDate *''' – date of birth of the tourist (in format ''YYYY-MM-DDT00:00:00'')
**** '''Description''' – описание отеля
+
**** '''FirstNameLat *''' – name of the tourist in Latin
**** '''NameLat''' – наименование отеля латиницей
+
**** '''SurNameLat *''' – surname of the tourist in Latin
**** '''Code''' – код  отеля
+
**** '''AgeType''' – type of age ('''Adult''' = 0, '''Child''' = 1, '''Infant''' = 2)
**** '''CodeLat''' – код отеля латиницей
+
**** '''IsMain''' – sets the attribute of the main tourist in the tour ('''Null''', '''0''' – no, '''1''' – main tourist)
**** '''Unicode''' – код ISO отеля
+
**** '''ID *''' – id of tourist using for binding the tourist to the service
**** '''City''' – массив данных город
+
**** '''Phone''' – phone number of tourist (in international format, for example +70000000000, 70000000000)
***** '''Name''' – наименование города
+
**** '''Email''' – e-mail address of the tourist
***** '''ID''' идентификатор города
+
**** '''ForeignPassport''' – foreign passport
***** '''Description''' – описание города
+
**** '''Serie''' – series
***** '''NameLat''' – наименование города латиницей
+
**** '''Number''' – number
***** '''Code''' – код  города
+
**** '''EndDate''' – date of expire
***** '''CodeLat''' – код города латиницей
+
** '''ExternalID''' – key of the tour from the database Interlook (When creating a new tour, the parameter can be sent as 0 or not sent)
***** '''Unicode''' – код ISO города
+
** '''• TourOperatorID''' – key of the tour in the external system (key of touroperator)
***** '''Country''' – массив данных страна
+
** '''TourOperatorCode''' – number from "customer reservation number"
****** '''Name''' – наименование страны
+
** '''ID''' – key of the tour
****** '''ID''' идентификатор страны
 
****** '''Description''' – описание страны
 
****** '''NameLat''' – наименование страны латиницей
 
****** '''Code''' – код  страны
 
****** '''CodeLat''' – код страны латиницей
 
****** '''Unicode''' – код ISO страны
 
****** '''IsIncoming''' – параметр для внутреннего использования
 
***** '''CountryID'''  – идентификатор страны в массиве данных город
 
***** '''RegionID''' – идентификатор региона в массиве данных город
 
**** '''RegionID''' – идентификатор региона
 
**** '''PriceType''' – наличие цен ('''PerPerson''' = 0, '''PerRoom''' = 1, '''All''' = 2, '''None'''= 1000)
 
**** '''CountCosts''' – количество цен
 
**** '''CityID''' – идентификатор города
 
**** '''HotelCategoryID''' – идентификатор категории отеля
 
*** '''Room''' – массив данных комната
 
**** '''RoomType''' – массив данных тип комнаты
 
***** '''Name''' – наименование типа комнаты
 
***** '''ID'''  – идентификатор типа комнаты
 
***** '''Description''' – описание типа комнаты
 
***** '''NameLat''' – наименование типа комнаты латиницей
 
***** '''Code''' – код типа комнаты
 
***** '''CodeLat''' – код типа комнаты латиницей
 
***** '''Unicode''' – код ISO типа комнаты
 
***** '''Places''' – количество мест в номере
 
***** '''ExPlaces''' – дополнительные места в номере
 
***** '''PrintOrder''' – порядковый номер для печати в отчетах
 
**** '''RoomTypeID''' – идентификатор типа комнаты
 
**** '''RoomCategory''' – массив данных категории номера
 
***** '''Name''' – наименование категории номера
 
***** '''ID'''  – идентификатор категории номера
 
***** '''Description''' – описание категории номера
 
***** '''NameLat''' – наименование категории номера латиницей
 
***** '''Code''' – код категории номера
 
***** '''CodeLat''' – код категории номера латиницей
 
***** '''Unicode''' – код ISO категории номера
 
***** '''MainPlaces''' – количество основных мест
 
***** '''ExtraPlaces''' – количество дополнительных мест
 
***** '''IsMain''' – параметр для внутреннего использования
 
**** '''RoomCategoryID''' – идентификатор категории комнат
 
**** '''RoomAccomodation''' – массив данных размещения
 
***** '''Name''' – наименование размещения
 
***** '''ID'''  – идентификатор размещения
 
***** '''Description''' – описание размещения
 
***** '''NameLat''' – наименование размещения латиницей
 
***** '''Code''' – код размещения
 
***** '''CodeLat''' – код размещения латиницей
 
***** '''Unicode''' – код ISO размещения
 
***** '''PerRoom''' – за комнату/за человека
 
***** '''AdultMainPlaces''' – количество основных мест для взрослых
 
***** '''ChildMainPlaces''' – количество основных мест для детей
 
***** '''AdultExtraPlaces''' – количество дополнительных мест для взрослых
 
***** '''ChildExtraPlaces''' – количество дополнительных мест для детей
 
***** '''MainPlaces''' – общее количество основных мест
 
***** '''ExtraPlaces''' – общее количество дополнительных мест
 
***** '''IsMain''' – параметр для внутреннего использования
 
***** '''AgeFrom''' – возраст первого ребенка '''от'''
 
***** '''AgeTo''' – возраст первого ребенка '''по'''
 
***** '''Age2From''' – возраст второго ребенка '''от'''
 
***** '''Age2To''' – возраст второго ребенка '''по'''
 
**** '''RoomAccomodationID''' – идентификатор типа размещения
 
**** '''ID''' – идентификатор комнаты
 
**** '''Name''' – наименование типа размещения
 
*** '''RoomID''' – идентификатор комнаты
 
*** '''PansionID''' – идентификатор типа питания
 
** '''TransferService''' – параметры для услуги типа TransferService
 
*** '''ExternalID''' –  не используется
 
*** '''Price''' – цена брутто
 
*** '''NMen''' – количество взрослых туристов
 
*** '''Partner''' – массив данных партнера
 
**** '''Name''' – наименование партнера
 
**** '''ID''' – идентификатор партнера
 
**** '''Description''' – описание партнера
 
**** '''NameLat''' – наименование партнера латиницей
 
**** '''Code''' – код партнера
 
**** '''CodeLat''' – код партнера латиницей
 
**** '''Unicode''' – код ISO партнера
 
**** '''PartnersGroupID''' – идентификатор группы партнера
 
**** '''FullName''' – полное наименование партнера
 
**** '''Fax''' – факс партнера
 
**** '''Address''' – адрес партнера
 
**** '''Zip''' – почтовый код партнера
 
**** '''Email''' – email партнера
 
**** '''Phones''' – телефон партнера
 
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
 
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
 
*** '''PacketKey''' – идентификатор пакета услуги
 
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ – значение)
 
**** '''ParameterPair Key''' – ключ
 
***** '''Value''' – значение
 
******* '''Description''' - описание
 
*** '''DetailBrutto''' – подробности брутто
 
*** '''Notes''' – примечания к услуге
 
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
 
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
 
*** '''StartDay''' – не используется
 
*** '''Duration''' – продолжительность услуги
 
*** '''RateBrutto''' – валюта брутто
 
*** '''Brutto''' – цена брутто
 
*** '''ServiceClassID''' – идентификатор класса услуги
 
*** '''TouristCount''' – количество туристов, пользующихся услугой
 
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
 
*** '''Status''' – статус услуги
 
**** '''Name''' – наименование статуса услуги
 
**** '''ID''' – идентификатор статуса услуги
 
**** '''Description''' – описание  статуса услуги
 
**** '''NameLat''' – наименование  статуса услуги латиницей
 
**** '''Code''' – код  статуса услуги
 
**** '''CodeLat''' – код  статуса услуги латиницей
 
**** '''Unicode''' – код ISO  статуса услуги
 
*** '''Transfer''' – массив данных трансфера
 
**** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ – значение)
 
***** '''ParameterPair Key''' – ключ
 
****** '''Value''' – значение
 
**** '''Name''' – наименование трансфера
 
**** '''ID''' – ключ трансфера из таблицы TransferDirecion
 
**** '''Description''' – описание  трансфера
 
**** '''NameLat''' – наименование  трансфера латиницей
 
**** '''Code''' – код  трансфера
 
**** '''CodeLat''' – код  трансфера латиницей
 
**** '''Unicode''' – код ISO  трансфера
 
**** '''PlaceFrom''' – название точки откуда
 
**** '''PlaceTo''' – название точки куда
 
**** '''CityID''' – идентификатор города
 
**** '''RegionID''' – идентификатор региона
 
*** '''Transport''' – массив данных транспорта
 
**** '''Name''' – наименование транспорта
 
**** '''ID''' – идентификатор транспорта
 
**** '''Description''' – описание  транспорта
 
**** '''NameLat''' – наименование  транспорта латиницей
 
**** '''Code''' – код  транспорта
 
**** '''CodeLat''' – код  транспорта латиницей
 
**** '''Unicode''' – код ISO транспорта
 
*** '''PointToID''' – идентификатор точки куда
 
*** '''CityKey''' – ключ города
 
*** '''PointToName''' – название точки куда
 
*** '''PointFromID''' – идентификатор точки откуда
 
*** '''PointFromName''' – название точки откуда
 
** '''ExcursionService''' – параметры для услуги типа ExcursionService
 
*** '''ExternalID''' –  не используется
 
*** '''Price''' – цена брутто
 
*** '''NMen''' – количество взрослых туристов
 
*** '''Partner''' – массив данных партнера
 
**** '''Name''' – наименование партнера
 
**** '''ID''' – идентификатор партнера
 
**** '''Description''' – описание партнера
 
**** '''NameLat''' – наименование партнера латиницей
 
**** '''Code''' – код партнера
 
**** '''CodeLat''' – код партнера латиницей
 
**** '''Unicode''' – код ISO партнера
 
**** '''PartnersGroupID''' – идентификатор группы партнера
 
**** '''FullName''' – полное наименование партнера
 
**** '''Fax''' – факс партнера
 
**** '''Address''' – адрес партнера
 
**** '''Zip''' – почтовый код партнера
 
**** '''Email''' – email партнера
 
**** '''Phones''' – телефон партнера
 
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
 
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
 
*** '''PacketKey''' – идентификатор пакета услуги
 
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ – значение)
 
**** '''ParameterPair Key''' – ключ
 
**** '''Value''' – значение
 
*** '''DetailBrutto''' – подробности брутто
 
*** '''Notes''' – примечания к услуге
 
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
 
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
 
*** '''StartDay''' – не используется
 
*** '''Duration''' – продолжительность услуги
 
*** '''RateBrutto''' – валюта брутто
 
*** '''Brutto''' – цена брутто
 
  
*** '''ServiceClassID''' – идентификатор класса услуги
+
Returning result:<br />
*** '''TouristCount''' – количество туристов, пользующихся услугой
+
* '''HasInvoices''' – is the tour invoice issued
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
+
** '''true''' – is issued
*** '''Status''' – статус услуги
+
** '''false''' – is not issued
**** '''Name''' – наименование статуса услуги
+
* '''AgentDiscount''' – agent discount
**** '''ID''' – идентификатор статуса услуги
+
* '''Rate''' – currency of the tour
**** '''Description''' – описание  статуса услуги
+
** '''Name''' – name of the currency
**** '''NameLat''' – наименование  статуса услуги латиницей
+
** '''ID''' – id of the currency
**** '''Code''' – код  статуса услуги
+
** '''Description''' – description of the currency
**** '''CodeLat''' – код  статуса услуги латиницей
+
** '''NameLat''' – name of the currency in Latin
**** '''Unicode''' – код ISO статуса услуги
+
** '''Code''' – code of the currency
*** '''CityKey''' – ключ города
+
** '''CodeLat''' – code of the currency in Latin
*** '''ExcursionID''' – идентификатор экскурсии
+
** '''Unicode''' – ISO-code for the currency
** '''ExtraService''' – параметры для услуги типа ExtraService
+
** '''IsMain''' – is the currency main  ('''true''' – is, '''false''' – is not)
*** '''ExternalID''' – не используется
+
** '''IsNational''' – is the currency national ('''true''' – is, '''false''' – is not)
*** '''Price''' – цена брутто
+
* '''TouristServices''' – array of services, using by tourists
*** '''NMen''' – количество взрослых туристов
+
** '''TouristService''' – parate service, using by tourist
*** '''Partner''' – массив данных партнера
+
*** '''ID''' – id of service, using by tourist
**** '''Name''' – наименование партнера
+
*** '''TouristRoomNumber''' – number of room
**** '''ID''' – идентификатор партнера
+
*** '''TouristID''' – id of the tourist (''-1'' for the new tour)
**** '''Description''' – описание партнера
+
*** '''ServiceID''' – id of the service (''-1'' for the new tour)
**** '''NameLat''' – наименование партнера латиницей
+
* '''Services''' – an array of services for a tour (of a certain type, depanding on the type of service, for example: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
**** '''Code''' – код партнера
+
** '''HotelService''' – parameters for the service type HotelService
**** '''CodeLat''' – код партнера латиницей
+
*** '''ExternalID''' – not using
**** '''Unicode''' – код ISO партнера
+
*** '''Price''' – gross price
**** '''PartnersGroupID''' – идентификатор группы партнера
+
*** '''NMen''' – number of adult tourists
**** '''FullName''' – полное наименование партнера
+
*** '''Partner''' – array of data of the partners
**** '''Fax''' – факс партнера
+
**** '''Name''' – name of the partner
**** '''Address''' – адрес партнера
+
**** '''ID''' – id of the partner
**** '''Zip''' – почтовый код партнера
+
**** '''Description''' – опиdescription of the partner
**** '''Email''' – email партнера
+
**** '''NameLat''' – name of the partner in Latin
**** '''Phones''' – телефон партнера
+
**** '''Code''' – code of the partner
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
+
**** '''CodeLat''' – code of the partner in Latin
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
+
**** '''Unicode''' – ISO-code of the partner
*** '''PacketKey''' – идентификатор пакета услуги
+
**** '''PartnersGroupID''' – id of the groups of partners
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ – значение)
+
**** '''FullName''' – full name of the partner
**** '''ParameterPair Key''' – ключ
+
**** '''Fax''' – fax of the partner
***** '''Value''' – значение
+
**** '''Address''' – address of the partner
*** '''DetailBrutto''' – подробности брутто
+
**** '''Zip''' – zip-code of the partner
*** '''Notes''' – примечания к услуге
+
**** '''Email''' – e-mail of the partner
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
+
**** '''Phones''' – phone number of the partner
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
*** '''PartnerID''' – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
*** '''StartDay''' – не используется
+
*** '''Quota''' – service on a quota (key = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
*** '''Duration''' – продолжительность услуги
+
*** '''PacketKey''' – id of package of the service
*** '''RateBrutto''' – валюта брутто
+
*** '''AdditionalParams''' – additional parameters (represents as a pair key – value)
*** '''Brutto''' – цена брутто
+
**** '''ParameterPair Key''' – key
*** '''ServiceClassID''' – идентификатор класса услуги
+
***** '''Value''' – value
*** '''TouristCount''' – количество туристов, пользующихся услугой
+
****** '''PenaltyCost''' - an object with the value of the penalty and the conditions under which the penalty was calculated. The display of the parameters is regulated by the license
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
+
******* '''PolicyKey''' - the key of the penalty condition in the database ('''-1''' – "fake condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)
*** '''Status''' – статус услуги
+
******* '''DateFrom''' - start date of the condition in format ''YYYY-MM-DDT00:00:00'' (can be null, usually for "fake condition": "without penalty till...")
**** '''Name''' – наименование статуса услуги
+
******* '''DateTo''' - ate of end (can be null, for "fake condition": "100% after ...")
**** '''ID''' – идентификатор статуса услуги
+
******* '''PenaltyValue''' - the amount of the penalty
**** '''Description''' – описание  статуса услуги
+
******* '''IsPercent''' - percent, pointing, that the penalty is in "%" ('''true''') or in "nights" ('''false''')
**** '''NameLat''' – наименование  статуса услуги латиницей
+
******* '''TotalPenalty''' - total amount of the penalty
**** '''Code''' – код  статуса услуги
+
******* '''Description''' - description
**** '''CodeLat''' – код статуса услуги латиницей
+
*** '''DetailBrutto''' – gross details
**** '''Unicode''' – код ISO  статуса услуги
+
*** '''Notes''' – notes for the service
*** '''CityKey''' – ключ города предоставления услуги
+
*** '''Name''' – name of the service (example for the hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB''))
*** '''IsPackage''' – признак пакетной услуги
+
*** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00'')
*** '''Code''' – идентификатор услуги
+
*** '''StartDay''' – not using
*** '''HasDuration''' – услуга с продолжительностью или без
+
*** '''Duration''' – duration of the service
* '''ID''' – ключ путевки во внешней системе (ключ туроператора)
+
*** '''RateBrutto''' – currency of the gross
* '''Name''' – наименование путевки
+
*** '''Brutto''' – price of the gross
* '''Brutto''' – брутто цена путевки
+
*** '''ServiceClassID''' – id of the service class
* '''CountryID''' – идентификатор страны путевки
+
*** '''TouristCount''' – number of tourists, using the service
* '''CityID''' – идентификатор города путевки
+
*** '''ID''' – id of the service (''-1'' for the new tour)
* '''PartnerID''' – идентификатор покупателя путевки
+
*** '''Status''' – status of the service
* '''AgentDiscount''' – скидка агента
+
**** '''Name''' – name of the service status
* '''Status''' – статус путевки ('''Confirmed''' = ''0'', '''NotConfirmed''' = ''1'', '''WaitingConfirmation''' = ''2'', '''Canceled''' = ''3'', '''WaitingCancelation''' = ''4'')
+
**** '''ID''' – id of the service status
* '''StartDate''' – дата начала тура (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
**** '''Description''' – description of the service status
* '''EndDate''' – дата окончания тура (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
**** '''NameLat''' – name of the service status in Latin
* '''Duration''' – продолжительность
+
**** '''Code''' – code of the service status
* '''CreationDate''' – дата создания путевки (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
**** '''CodeLat''' – code of the service status in Latin
* '''CreatorID''' – идентификатор создателя путевки
+
**** '''Unicode''' – ISO-code of the service status
* '''Tourists''' – массив туристов по услуге
+
*** '''Hotel''' – array of the data Hotel
** '''Tourist''' – турист
+
**** '''Name''' – name of the hotel
*** '''Sex''' – пол (ключ = значения: '''Male''' = 0, '''Female''' = 1, '''Child''' = 2, '''Infant''' = 3)
+
****'''ID''' – id of the hotel
*** '''BirthDate''' – дата рождения туриста (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
**** '''Description''' – description of the hotel
*** '''FirstNameLat''' – имя туриста латиницей
+
**** '''NameLat''' – name of the hotel in Latin
*** '''LastNameLat''' – фамилия туриста латиницей
+
**** '''Code''' – code of the hotel
*** '''AgeType''' – тип возраста ('''Adult''' = 0, '''Child''' = 1, '''Infant''' = 2)
+
**** '''CodeLat''' – code of the hotel in Latin
*** '''IsMain''' – устанавливает признак главного туриста по путевке ('''Null''', '''0''' – нет, '''1''' – турист главный)
+
**** '''Unicode''' – ISO-code of the hotel
*** '''ExternalID''' – параметр для внутреннего использования
+
**** '''City''' – array of data City
*** '''ID''' – идентификатор туриста (''-1'' для новой путевки )
+
***** '''Name''' – name of the city
*** '''Phone''' – телефон туриста (задается по шаблону)
+
***** '''ID'''  – id of the city
*** '''Email''' – адрес электронной почты туриста
+
***** '''Description''' – description of the city
*** '''ForeignPassport''' – иностранный паспорт
+
***** '''NameLat''' – name of the city in Latin
**** '''Serie''' – серия
+
***** '''Code''' – code of the city
**** '''Number''' – номер
+
***** '''CodeLat''' – code of the city in Latin
**** '''EndDate''' – дата окончания действия
+
***** '''Unicode''' – ISO-code of the city
*** '''ExternalID''' – не используется
+
***** '''Country''' – array of data Country
* '''OwnerID''' – идентификатор создателя путевки
+
****** '''Name''' – name of the country
* '''ExternalID''' –  ключ путевки в базе данных Interlook
+
****** '''ID'''  – id of the country
* '''TourOperatorID''' – ключ путевки во внешней системе (ключ туроператора)
+
****** '''Description''' – description of the country
* '''TourOperatorCode''' – номер из "customer reservation number"
+
****** '''NameLat''' – name of the country in Latin
* '''AdditionalParams''' – дополнительные параметры (представляются в виде пары ключ – значение)
+
****** '''Code''' – code of the country
** '''ParameterPair Key''' – ключ
+
****** '''CodeLat''' – code of the country in Latin
** '''Value''' – значение<br/>
+
****** '''Unicode''' – ISO-code of the country
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок.<br/>
+
****** '''IsIncoming''' – parameter for inner use
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br/>
+
***** '''CountryID'''  – id of the country in array data City
В случае, когда сигнатура услуги не соответствует объявленному в запросе типу получим сообщение "Service labeled as '<Тип услуги в запросе>' is not a <Наименование типа услуги>".<br/>
+
***** '''RegionID''' – id of the region in array data City
В случае если отсутствуют туристы в запросе получим сообщение "There is no any tourist. At least one 'Tourist' must be specified."<br/>
+
**** '''RegionID''' – id of the region
В случае если не указано обязательное поле получим сообщение "Parameter '<Наименование параметра>' is required."<br/>
+
**** '''PriceType''' – availability of price ('''PerPerson''' = 0, '''PerRoom''' = 1, '''All''' = 2, '''None''' = 1000)
В случае если не существует записи с указанным ID в базе данных получим сообщение "There is no <Наименование сущности> with '<Наименование параметра идентификатора>' =                                  <Значение параметра в запросе> in the database."<br/>
+
**** '''CountCosts''' – number of prices
 +
**** '''CityID''' – id of the city
 +
**** '''HotelCategoryID''' – id of the hotel category
 +
*** '''Room''' – array of data Room
 +
**** '''RoomType''' – array of data Type of the room
 +
***** '''Name''' – name of the room type
 +
***** '''ID'''  – id of the room type
 +
***** '''Description''' – description of the room type
 +
***** '''NameLat''' – name of the room type in Latin
 +
***** '''Code''' – code of the room type
 +
***** '''CodeLat''' – code of the room type in Latin
 +
***** '''Unicode''' – ISO-code of the room type
 +
***** '''Places''' – number of places in room
 +
***** '''ExPlaces''' – additional places in room
 +
***** '''PrintOrder''' – additional places in room
 +
**** '''RoomTypeID''' – id of room type
 +
**** '''RoomCategory''' – array of data Room category
 +
***** '''Name''' – name of the room category
 +
***** '''ID'''  – id of the room category
 +
***** '''Description''' – description of the room category
 +
***** '''NameLat''' – name of the room category in Latin
 +
***** '''Code''' – code of the room category
 +
***** '''CodeLat''' – code of the room category in Latin
 +
***** '''Unicode''' – ISO-code of the room category
 +
***** '''MainPlaces''' – number of main places
 +
***** '''ExtraPlaces''' – number of additional places
 +
***** '''IsMain''' – arameter of inner use
 +
**** '''RoomCategoryID''' – id of the room category
 +
**** '''RoomAccomodation''' – array of data Accommodation
 +
***** '''Name''' – name of the accommodation
 +
***** '''ID'''  – id of the accommodation
 +
***** '''Description''' – description of the accommodation
 +
***** '''NameLat''' – name of the accommodation in Latin
 +
***** '''Code''' – code of the accommodation
 +
***** '''CodeLat''' – code of the accommodation in Latin
 +
***** '''Unicode''' – ISO-code of the accommodation
 +
***** '''PerRoom''' – per room/per person
 +
***** '''AdultMainPlaces''' – number of main places for adults
 +
***** '''ChildMainPlaces''' – number of main places for children
 +
***** '''AdultExtraPlaces''' – number of additional places for adults
 +
***** '''ChildExtraPlaces''' – number of additional places for children
 +
***** '''MainPlaces''' – total number of main places
 +
***** '''ExtraPlaces''' – total number of additional places
 +
***** '''IsMain''' – parameter of inner use
 +
***** '''AgeFrom''' – age of first child '''from'''
 +
***** '''AgeTo''' – age of first child '''to'''
 +
***** '''Age2From''' – age of second child '''from'''
 +
***** '''Age2To''' – age of second child '''to'''
 +
**** '''RoomAccomodationID''' – id of the accommodation
 +
**** '''ID''' – id of the room
 +
**** '''Name''' – name of the accommodation type
 +
*** '''RoomID''' – id of the room
 +
*** '''PansionID''' – id of the pansion
 +
** '''TransferService''' – parameters for service type TransferService
 +
*** '''ExternalID''' –  not using
 +
*** '''Price''' – gross price
 +
*** '''NMen''' – number of adult tourists
 +
*** '''Partner''' – array of data of the partners
 +
**** '''Name''' – name of the partner
 +
**** '''ID''' – id of the partner
 +
**** '''Description''' – description of the partner
 +
**** '''NameLat''' – name of the partner in Latin
 +
**** '''Code''' – code of the partner
 +
**** '''CodeLat''' – code of the partner in Latin
 +
**** '''Unicode''' – ISO-code of the partner
 +
**** '''PartnersGroupID''' – id of the groups of partners
 +
**** '''FullName''' – full name of the partner
 +
**** '''Fax''' – fax of the partner
 +
**** '''Address''' – address of the partner
 +
**** '''Zip''' – zip-code of the partner
 +
**** '''Email''' – e-mail of the partner
 +
**** '''Phones''' – phone number of the partner
 +
*** '''PartnerID''' – id of the service provider (can be transmitted as '''0''' – then it will be picked up automatically by the calculator)
 +
*** '''Quota''' – service on a quota ('''key''' = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
 +
*** '''PacketKey''' – id of package of the service
 +
*** '''AdditionalParams''' – additional parameters (represents as a pair key - value)
 +
**** '''ParameterPair Key''' – key
 +
***** '''Value''' – value
 +
******* '''Description''' - description
 +
*** '''DetailBrutto''' – gross details
 +
*** '''Notes''' – notes for the service
 +
*** '''Name''' – name of the service (example for the hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
 +
*** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00'')
 +
*** '''StartDay''' – not using
 +
*** '''Duration''' – duration of the service
 +
*** '''RateBrutto''' – currency of the gross
 +
*** '''Brutto''' – price of the gross
 +
*** '''ServiceClassID''' – id of the service class
 +
*** '''TouristCount''' – number of tourists, using the service
 +
*** '''ID''' – id of the service (''-1'' for the new tour)
 +
*** '''Status''' – status of the service
 +
**** '''Name''' – name of the service status
 +
**** '''ID''' – id of the service status
 +
**** '''Description''' – description of the service status
 +
**** '''NameLat''' – name of the service status in Latin
 +
**** '''Code''' – code of the service status
 +
**** '''CodeLat''' – code of the service status in Latin
 +
**** '''Unicode''' – ISO-code of the service status
 +
*** '''Transfer''' – array of data Transfer
 +
**** '''AdditionalParams''' – additional parameters (represents as a pair key – value)
 +
***** '''ParameterPair Key''' – key
 +
****** '''Value''' – value
 +
**** '''Name''' – name of the transfer
 +
**** '''ID''' – key of the transfer from table TransferDirecion
 +
**** '''Description''' – description of the transfer
 +
**** '''NameLat''' – name of the transfer in Latin
 +
**** '''Code''' – code of the transfer
 +
**** '''CodeLat''' – code of the transfer in Latin
 +
**** '''Unicode''' – ISO-code of the transfer
 +
**** '''PlaceFrom''' – name of the point from
 +
**** '''PlaceTo''' – name of the point to
 +
**** '''CityID''' – id of the city
 +
**** '''RegionID''' – id of the region
 +
*** '''Transport''' – array of data Transport
 +
**** '''Name''' – name of the transport
 +
**** '''ID''' – id of the transport
 +
**** '''Description''' – description of the transport
 +
**** '''NameLat''' – name of the transport in Latin
 +
**** '''Code''' – code of the transport
 +
**** '''CodeLat''' – code of the transport in Latin
 +
**** '''Unicode''' – ISO-code of the transport
 +
*** '''PointToID''' – id of the point to
 +
*** '''CityKey''' – key of the city
 +
*** '''PointToName''' – name of the point to
 +
*** '''PointFromID''' – name of the point to
 +
*** '''PointFromName''' – name of the point from
 +
** '''ExcursionService''' – parameters for the service type ExcursionService
 +
*** '''ExternalID''' –  неnot using
 +
*** '''Price''' – gross price
 +
*** '''NMen''' – number of adult tourists
 +
*** '''Partner''' – array of data of the partners
 +
**** '''Name''' – name of the partner
 +
**** '''ID''' – id of the partner
 +
**** '''Description''' – description of the partner
 +
**** '''NameLat''' – name of the partner in Latin
 +
**** '''Code''' – code of the partner
 +
**** '''CodeLat''' – code of the partner in Latin
 +
**** '''Unicode''' – ISO-code of the partner
 +
**** '''PartnersGroupID''' – id of the groups of partners
 +
**** '''FullName''' – full name of the partner
 +
**** '''Fax''' – fax of the partner
 +
**** '''Address''' – address of the partner
 +
**** '''Zip''' – zip-code of the partner
 +
**** '''Email''' – e-mail of the partner
 +
**** '''Phones''' – phone number of the partner
 +
*** '''PartnerID''' – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
 +
*** '''Quota''' – service on a quota ('''key''' = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
 +
*** '''PacketKey''' – id of package of the service
 +
*** '''AdditionalParams''' – additional parameters (represents as a pair key – value)
 +
**** '''ParameterPair Key''' – key
 +
**** '''Value''' – value
 +
*** '''DetailBrutto''' – gross details
 +
*** '''Notes''' – notes to the service
 +
*** '''Name''' – name of the service (example for hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
 +
*** '''StartDate''' – date of providing service (In format ''YYYY-MM-DDT:00:00'')
 +
*** '''StartDay''' – not using
 +
*** '''Duration''' – duration of service
 +
*** '''RateBrutto''' – the currency of the gross
 +
*** '''Brutto''' – gross price
 +
*** '''ServiceClassID''' – id of the service class
 +
*** '''TouristCount''' – number of tourists, using the service
 +
*** '''ID''' – id of the service (''-1'' for the new tour)
 +
*** '''Status''' – status of the service
 +
**** '''Name''' – name of the service status
 +
**** '''ID''' – id of the service status
 +
**** '''Description''' – description of the service status
 +
**** '''NameLat''' – name of the service status in Latin
 +
**** '''Code''' – code of the service status
 +
**** '''CodeLat''' – code of the service status in Latin
 +
**** '''Unicode''' – ISO-code of the service status
 +
*** '''CityKey''' – city key
 +
*** '''ExcursionID''' – id of excursion
 +
** '''ExtraService''' – parameters for the service type ExtraService
 +
*** '''ExternalID''' –  not using
 +
*** '''Price''' – gross price
 +
*** '''NMen''' – number of adult tourists
 +
*** '''Partner''' – array of data of the partners
 +
**** '''Name''' – name of the partner
 +
**** '''ID''' – id of the partner
 +
**** '''Description''' – description of the partner
 +
**** '''NameLat''' – name of the partner in Latin
 +
**** '''Code''' – code of the partner
 +
**** '''CodeLat''' – code of the partner in Latin
 +
**** '''Unicode''' –  ISO-code of the partner
 +
**** '''PartnersGroupID''' – id of the groups of partners
 +
**** '''FullName''' – full name of the partner
 +
**** '''Fax''' – fax of the partner
 +
**** '''Address''' – fax of the partner
 +
**** '''Zip''' – zip-code of the partner
 +
**** '''Email''' – e-mail of the partner
 +
**** '''Phones''' – phone number of the partner
 +
*** '''PartnerID''' – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
 +
*** '''Quota''' – service on a quota ('''key''' = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
 +
*** '''PacketKey''' – id of package of the service
 +
*** '''AdditionalParams''' – additional parameters (represents as a pair key – value)
 +
**** '''ParameterPair Key''' – key
 +
**** '''Value''' – value
 +
*** '''DetailBrutto''' – gross details
 +
*** '''Notes''' – notes to the service
 +
*** '''Name''' – name of the service (example for hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
 +
*** '''StartDate''' – date of providing service (In format ''YYYY-MM-DDT:00:00'')
 +
*** '''StartDay''' – not using
 +
*** '''Duration''' – duration of service
 +
*** '''RateBrutto''' – the currency of the gross
 +
*** '''Brutto''' – gross price
 +
*** '''ServiceClassID''' – id of the service class
 +
*** '''TouristCount''' – number of tourists, using the service
 +
*** '''ID''' – id of the service (''-1'' for the new tour)
 +
*** '''Status''' – status of the service
 +
**** '''Name''' – name of the service status
 +
**** '''ID''' – id of the service status
 +
**** '''Description''' – description of the service status
 +
**** '''NameLat''' – name of the service status in Latin
 +
**** '''Code''' – code of the service status
 +
**** '''CodeLat''' – code of the service status in Latin
 +
**** '''Unicode''' – ISO-code of the service status
 +
*** '''CityKey''' – key of the city providing the service
 +
*** '''IsPackage''' – attribute if the service is in package
 +
*** '''Code''' – id of the service
 +
*** '''HasDuration''' – has service duration or not
 +
* '''ID''' – key of the tour in external system (key of tour operator)
 +
* '''Name''' – name of the tour
 +
* '''Brutto''' – gross price of the tour
 +
* '''CountryID''' – id of the country of the tour
 +
* '''CityID''' – id of the city of the tour
 +
* '''PartnerID''' – id of buyer of the tour
 +
* '''AgentDiscount''' – agent discount
 +
* '''Status''' – status of the tour ('''Confirmed''' = '''0''', '''NotConfirmed''' = '''1''', '''WaitingConfirmation''' = '''2''', '''Canceled''' = '''3''', '''WaitingCancelation''' = '''4''')
 +
* '''StartDate''' – date of the beginning of the tour (in format ''YYYY-MM-DDT00:00:00'')
 +
* '''EndDate''' – date of the end of the tour (in format ''YYYY-MM-DDT00:00:00'')
 +
* '''Duration''' – duration
 +
* '''CreationDate''' – date of the creation of the tour (in format ''YYYY-MM-DDT00:00:00'')
 +
* '''CreatorID''' – id of creator of the tour
 +
* '''Tourists''' – array of the tourists on the tour
 +
** '''Tourist''' – tourist
 +
*** '''Sex''' – gender (key = value: '''Male''' = 0, '''Female''' = 1, '''Child''' = 2, '''Infant''' = 3)
 +
*** '''BirthDate''' – date of birth of the touris (in format ''YYYY-MM-DDT00:00:00'')*** '''FirstNameLat''' – name of the tourist in Latin
 +
*** '''LastNameLat''' – surname of the tourist in Latin
 +
*** '''AgeType''' – type of the age ('''Adult''' = 0, '''Child''' = 1, '''Infant''' = 2)
 +
*** '''IsMain''' – sets attribute main tourist on the tour ('''Null''', '''0''' – no, '''1''' – tourist is main)
 +
*** '''ExternalID''' – parameter for the internal use
 +
*** '''ID''' – id of the tourist (''-1'' for the new tour)
 +
*** '''Phone''' – phone number of the tourist (sets according to the template)
 +
*** '''Email''' – e-mail address of the tourist
 +
*** '''ForeignPassport''' – foreign passport
 +
**** '''Serie''' – series
 +
**** '''Number''' – number
 +
**** '''EndDate''' – date of expire
 +
*** '''ExternalID''' – not using
 +
* '''OwnerID''' – id of the creator of the tour
 +
* '''ExternalID''' –  key of the tour in the database Interlook
 +
* '''TourOperatorID''' – key of the tour in external system (key of the tour operator)
 +
* '''TourOperatorCode''' – number from "customer reservation number"
 +
* '''AdditionalParams''' – additional parameters (providing as the pair key – value)
 +
** '''ParameterPair Key''' – key
 +
** '''Value''' – value<br/>
 +
In case of errors in the request, we receive a message in the response with a transcript of the errors.<br/>
 +
In case of an error in the GUID we will receive the message "Invalid user or password (Invalid GUID)."<br/>
 +
If the service signature does not match the type declared in the request, we will receive the message "Service labeled as '<Type of service in the request>' is not a <Service type name>".<br/>
 +
If there are no tourists in the request, we will receive the message "There is no any tourist. At least one 'Tourist' must be specified."<br/>
 +
If the required field is not specified, we will receive the message "Parameter '<Parameter name>' is required."<br/>
 +
If there is no record with the specified ID in the database, we will receive the message "There is no <Entity name> with '<Identifier parameter name>' = <Parameter value in the request> in the database."<br/>
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CreateReservation:
+
Ivocating the method CreateReservation:
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
Строка 716: Строка 714:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Возвращаемый результат метода CreateReservation:
+
The Returning result of method CreateReservation:
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
  
Строка 1229: Строка 1227:
 
</div></div><br />
 
</div></div><br />
  
===GetReservation (Получение путевки по ключу)===
+
===GetReservation (Getting the reservation by key)===
Метод производит получение информации по путевке по ключу путевки.<br />
+
The method receives information about the reservation by the reservation key.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки
+
* '''DgKey *''' – key of the reservation
Возвращаемый результат:<br />
+
Returning result:<br />
* '''HasInvoices''' – выставлен ли счет по путевке
+
* '''HasInvoices''' – is the tour invoice issued
** '''true''' – счет выставлен
+
** '''true''' – is issued
** '''false''' – счет не выставлен
+
** '''false''' – is not issued
* '''AgentDiscount''' – скидка агента
+
* '''AgentDiscount''' – agent discount
* '''Rate''' – валюта путевки
+
* '''Rate''' – currency of the tour
** '''Name''' – название валюты
+
** '''Name''' – name of the currency
** '''ID''' – идентификатор валюты
+
** '''ID''' – id of the currency
** '''Description''' – описание валюты
+
** '''Description''' – description of the currency
** '''NameLat''' – наименование валюты латиницей
+
** '''NameLat''' – name of the currency in Latin
** '''Code''' – код валюты
+
** '''Code''' – code of the currency
** '''CodeLat''' – код валюты латиницей
+
** '''CodeLat''' – code of the currency in Latin
** '''Unicode''' – код ISO для валюты
+
** '''Unicode''' – ISO-code for the currency
** '''IsMain''' – является ли валюта главной ('''true''' – является, '''false''' – не является)
+
** '''IsMain''' – is the currency main  ('''true''' – is, '''false''' – is not)
** '''IsNational''' – является ли валюта национальной ('''true''' – является, '''false''' – не является)
+
** '''IsNational''' – is the currency national ('''true''' – is, '''false''' – is not)
* '''TouristServices''' – массив услуг, используемых туристами
+
* '''TouristServices''' – array of services, using by tourists
** '''TouristService''' – отдельная услуга, используемая туристом
+
** '''TouristService''' – parate service, using by tourist
*** '''ID''' – идентификатор услуги, используемой туристом
+
*** '''ID''' – id of service, using by tourist
*** '''TouristRoomNumber''' – номер комнаты
+
*** '''TouristRoomNumber''' – number of room
*** '''TouristID''' – идентификатор туриста (''-1'' для новой путевки)
+
*** '''TouristID''' – id of the tourist (''-1'' for the new tour)
*** '''ServiceID''' – идентификатор услуги (''-1'' для новой путевки)
+
*** '''ServiceID''' – id of the service (''-1'' for the new tour)
* '''Services''' – массив услуг по путевке (определенного типа, в зависимости от типа услуги, например: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
+
* '''Services''' – an array of services for a tour (of a certain type, depanding on the type of service, for example: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
** '''HotelService''' – параметры для услуги типа HotelService
+
** '''HotelService''' – parameters for the service type HotelService
*** '''ExternalID''' –  не используется
+
*** '''ExternalID''' –  not using
*** '''Price''' – цена брутто
+
*** '''Price''' – gross price
*** '''NMen''' – количество взрослых туристов
+
*** '''NMen''' – number of adult tourists
*** '''Partner''' – массив данных партнера
+
*** '''Partner''' – array of data of the partners
**** '''Name''' – наименование партнера
+
**** '''Name''' – name of the partner
**** '''ID''' – идентификатор партнера
+
**** '''ID''' – id of the partner
**** '''Description''' – описание партнера
+
**** '''Description''' – опиdescription of the partner
**** '''NameLat''' – наименование партнера латиницей
+
**** '''NameLat''' – name of the partner in Latin
**** '''Code''' – код партнера
+
**** '''Code''' – code of the partner
**** '''CodeLat''' – код партнера латиницей
+
**** '''CodeLat''' – code of the partner in Latin
**** '''Unicode''' – код ISO партнера
+
**** '''Unicode''' – ISO-code of the partner
**** '''PartnersGroupID''' – идентификатор группы партнера
+
**** '''PartnersGroupID''' – id of the groups of partners
**** '''FullName''' – полное наименование партнера
+
**** '''FullName''' – full name of the partner
**** '''Fax''' – факс партнера
+
**** '''Fax''' – fax of the partner
**** '''Address''' – адрес партнера
+
**** '''Address''' – address of the partner
**** '''Zip''' – почтовый код партнера
+
**** '''Zip''' – zip-code of the partner
**** '''Email''' – email партнера
+
**** '''Email''' – e-mail of the partner
**** '''Phones''' – телефон партнера
+
**** '''Phones''' – phone number of the partner
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
+
*** '''PartnerID''' – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
+
*** '''Quota''' – service on a quota (key = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
*** '''PacketKey''' – идентификатор пакета услуги
+
*** '''PacketKey''' – id of package of the service
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ значение)
+
*** '''AdditionalParams''' – additional parameters (represents as a pair key value)
**** '''ParameterPair Key''' – ключ
+
**** '''ParameterPair Key''' – key
***** '''Value''' – значение
+
***** '''Value''' – value
****** '''PenaltyCost''' - объект со значением штрафа и условиями, по которым штраф был рассчитан. Отображение параметров регулируется лицензией.
+
****** '''PenaltyCost''' - an object with the value of the penalty and the conditions under which the penalty was calculated. The display of the parameters is regulated by the license
******* '''PolicyKey''' - ключ условия по штрафу в БД (''-1'' - "псевдоусловие", до начала всех условий, или после окончания всех, или вообще никаких условий нет)
+
******* '''PolicyKey''' - the key of the penalty condition in the database ('''-1''' – "fake condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)
******* '''DateFrom''' -  дата начала действия условия в формате ГГГГ-ММ-ДДT00:00:00 (может быть ''null'', обычно для "псевдоусловия": "без штрафа до...")  
+
******* '''DateFrom''' -  start date of the condition in format ''YYYY-MM-DDT00:00:00'' (can be null, usually for "fake condition": "without penalty till...")
******* '''DateTo''' - дата окончания (может быть ''null'', для "псевдоусловия" : "100% после ...")  
+
******* '''DateTo''' - ate of end (can be null, for "fake condition": "100% after ...")
******* '''PenaltyValue''' - размер штрафа
+
******* '''PenaltyValue''' - the amount of the penalty
******* '''IsPercent''' - процент, указывающий, что штраф в "%" (''true'') или в "ночах" (''false'')
+
******* '''IsPercent''' - percent, pointing, that the penalty is in "%" ('''true''') or in "nights" ('''false''')
******* '''TotalPenalty''' - полная сумма штрафа
+
******* '''TotalPenalty''' - total amount of the penalty
******* '''Description''' - описание
+
******* '''Description''' - description
*** '''DetailBrutto''' – подробности брутто
+
*** '''DetailBrutto''' – gross details
*** '''Notes''' – примечания к услуге
+
*** '''Notes''' – notes for the service
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
+
*** '''Name''' – name of the service (example for the hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB''))
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
*** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00'')
*** '''StartDay''' – не используется
+
*** '''StartDay''' – not using
*** '''Duration''' – продолжительность услуги
+
*** '''Duration''' – duration of the service
*** '''RateBrutto''' – валюта брутто
+
*** '''RateBrutto''' – currency of the gross
*** '''Brutto''' – цена брутто
+
*** '''Brutto''' – price of the gross
*** '''ServiceClassID''' – идентификатор класса услуги
+
*** '''ServiceClassID''' – id of the service class
*** '''TouristCount''' – количество туристов, пользующихся услугой
+
*** '''TouristCount''' – number of tourists, using the service
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
+
*** '''ID''' – id of the service (''-1'' for the new tour)
*** '''Status''' – статус услуги
+
*** '''Status''' – status of the service
**** '''Name''' – наименование статуса услуги
+
**** '''Name''' – name of the service status
**** '''ID''' – идентификатор статуса услуги
+
**** '''ID''' – id of the service status
**** '''Description''' – описание  статуса услуги
+
**** '''Description''' – description of the service status
**** '''NameLat''' – наименование  статуса услуги латиницей
+
**** '''NameLat''' – name of the service status in Latin
**** '''Code''' – код  статуса услуги
+
**** '''Code''' – code of the service status
**** '''CodeLat''' – код  статуса услуги латиницей
+
**** '''CodeLat''' – code of the service status in Latin
**** '''Unicode''' – код ISO статуса услуги
+
**** '''Unicode''' – ISO-code of the service status
*** '''Hotel''' – массив данных отель
+
*** '''Hotel''' – array of the data Hotel
**** '''Name''' – наименование отеля
+
**** '''Name''' – name of the hotel
****'''ID''' – идентификатор отеля
+
****'''ID''' – id of the hotel
**** '''Description''' – описание отеля
+
**** '''Description''' – description of the hotel
**** '''NameLat''' – наименование отеля латиницей
+
**** '''NameLat''' – name of the hotel in Latin
**** '''Code''' – код  отеля
+
**** '''Code''' – code of the hotel
**** '''CodeLat''' – код отеля латиницей
+
**** '''CodeLat''' – code of the hotel in Latin
**** '''Unicode''' – код ISO отеля
+
**** '''Unicode''' – ISO-code of the hotel
**** '''City''' – массив данных город
+
**** '''City''' – array of data City
***** '''Name''' – наименование города
+
***** '''Name''' – name of the city
***** '''ID'''  – идентификатор города
+
***** '''ID'''  – id of the city
***** '''Description''' – описание города
+
***** '''Description''' – description of the city
***** '''NameLat''' – наименование города латиницей
+
***** '''NameLat''' – name of the city in Latin
***** '''Code''' – код  города
+
***** '''Code''' – code of the city
***** '''CodeLat''' – код города латиницей
+
***** '''CodeLat''' – code of the city in Latin
***** '''Unicode''' – код ISO города
+
***** '''Unicode''' – ISO-code of the city
***** '''Country''' – массив данных страна
+
***** '''Country''' – array of data Country
****** '''Name''' – наименование страны
+
****** '''Name''' – name of the country
****** '''ID'''  – идентификатор страны
+
****** '''ID'''  – id of the country
****** '''Description''' – описание страны
+
****** '''Description''' – description of the country
****** '''NameLat''' – наименование страны латиницей
+
****** '''NameLat''' – name of the country in Latin
****** '''Code''' – код  страны
+
****** '''Code''' – code of the country
****** '''CodeLat''' – код страны латиницей
+
****** '''CodeLat''' – code of the country in Latin
****** '''Unicode''' – код ISO страны
+
****** '''Unicode''' – ISO-code of the country
****** '''IsIncoming''' – параметр для внутреннего использования
+
****** '''IsIncoming''' – parameter for inner use
***** '''CountryID'''  – идентификатор страны в массиве данных город
+
***** '''CountryID'''  – id of the country in array data City
***** '''RegionID''' – идентификатор региона в массиве данных город
+
***** '''RegionID''' – id of the region in array data City
**** '''RegionID''' – идентификатор региона
+
**** '''RegionID''' – id of the region
**** '''PriceType''' – наличие цен ('''PerPerson''' = 0, '''PerRoom''' = 1, '''All''' = 2, '''None'''= 1000)
+
**** '''PriceType''' – availability of price ('''PerPerson''' = 0, '''PerRoom''' = 1, '''All''' = 2, '''None''' = 1000)
**** '''CountCosts''' – количество цен
+
**** '''CountCosts''' – number of prices
**** '''CityID''' – идентификатор города
+
**** '''CityID''' – id of the city
**** '''HotelCategoryID''' – идентификатор категории отеля
+
**** '''HotelCategoryID''' – id of the hotel category
*** '''Room''' – массив данных комната
+
*** '''Room''' – array of data Room
**** '''RoomType''' – массив данных тип комнаты
+
**** '''RoomType''' – array of data Type of the room
***** '''Name''' – наименование типа комнаты
+
***** '''Name''' – name of the room type
***** '''ID'''  – идентификатор типа комнаты
+
***** '''ID'''  – id of the room type
***** '''Description''' – описание типа комнаты
+
***** '''Description''' – description of the room type
***** '''NameLat''' – наименование типа комнаты латиницей
+
***** '''NameLat''' – name of the room type in Latin
***** '''Code''' – код типа комнаты
+
***** '''Code''' – code of the room type
***** '''CodeLat''' – код типа комнаты латиницей
+
***** '''CodeLat''' – code of the room type in Latin
***** '''Unicode''' – код ISO типа комнаты
+
***** '''Unicode''' – ISO-code of the room type
***** '''Places''' – количество мест в номере
+
***** '''Places''' – number of places in room
***** '''ExPlaces''' – дополнительные места в номере
+
***** '''ExPlaces''' – additional places in room
***** '''PrintOrder''' – порядковый номер для печати в отчетах
+
***** '''PrintOrder''' – additional places in room
**** '''RoomTypeID''' – идентификатор типа комнаты
+
**** '''RoomTypeID''' – id of room type
**** '''RoomCategory''' – массив данных категории номера
+
**** '''RoomCategory''' – array of data Room category
***** '''Name''' – наименование категории номера
+
***** '''Name''' – name of the room category
***** '''ID'''  – идентификатор категории номера
+
***** '''ID'''  – id of the room category
***** '''Description''' – описание категории номера
+
***** '''Description''' – description of the room category
***** '''NameLat''' – наименование категории номера латиницей
+
***** '''NameLat''' – name of the room category in Latin
***** '''Code''' – код категории номера
+
***** '''Code''' – code of the room category
***** '''CodeLat''' – код категории номера латиницей
+
***** '''CodeLat''' – code of the room category in Latin
***** '''Unicode''' – код ISO категории номера
+
***** '''Unicode''' – ISO-code of the room category
***** '''MainPlaces''' – количество основных мест
+
***** '''MainPlaces''' – number of main places
***** '''ExtraPlaces''' – количество дополнительных мест
+
***** '''ExtraPlaces''' – number of additional places
***** '''IsMain''' – параметр для внутреннего использования
+
***** '''IsMain''' – arameter of inner use
**** '''RoomCategoryID''' – идентификатор категории комнат
+
**** '''RoomCategoryID''' – id of the room category
**** '''RoomAccomodation''' – массив данных размещения
+
**** '''RoomAccomodation''' – array of data Accommodation
***** '''Name''' – наименование размещения
+
***** '''Name''' – name of the accommodation
***** '''ID'''  – идентификатор размещения
+
***** '''ID'''  – id of the accommodation
***** '''Description''' – описание размещения
+
***** '''Description''' – description of the accommodation
***** '''NameLat''' – наименование размещения латиницей
+
***** '''NameLat''' – name of the accommodation in Latin
***** '''Code''' – код размещения
+
***** '''Code''' – code of the accommodation
***** '''CodeLat''' – код размещения латиницей
+
***** '''CodeLat''' – code of the accommodation in Latin
***** '''Unicode''' – код ISO размещения
+
***** '''Unicode''' – ISO-code of the accommodation
***** '''PerRoom''' – за комнату/за человека
+
***** '''PerRoom''' – per room/per person
***** '''AdultMainPlaces''' – количество основных мест для взрослых
+
***** '''AdultMainPlaces''' – number of main places for adults
***** '''ChildMainPlaces''' – количество основных мест для детей
+
***** '''ChildMainPlaces''' – number of main places for children
***** '''AdultExtraPlaces''' – количество дополнительных мест для взрослых
+
***** '''AdultExtraPlaces''' – number of additional places for adults
***** '''ChildExtraPlaces''' – количество дополнительных мест для детей
+
***** '''ChildExtraPlaces''' – number of additional places for children
***** '''MainPlaces''' – общее количество основных мест
+
***** '''MainPlaces''' – total number of main places
***** '''ExtraPlaces''' – общее количество дополнительных мест
+
***** '''ExtraPlaces''' – total number of additional places
***** '''IsMain''' – параметр для внутреннего использования
+
***** '''IsMain''' – parameter of inner use
***** '''AgeFrom''' – возраст первого ребенка '''от'''
+
***** '''AgeFrom''' – age of first child '''from'''
***** '''AgeTo''' – возраст первого ребенка '''по'''
+
***** '''AgeTo''' – age of first child '''to'''
***** '''Age2From''' – возраст второго ребенка '''от'''
+
***** '''Age2From''' – age of second child '''from'''
***** '''Age2To''' – возраст второго ребенка '''по'''
+
***** '''Age2To''' – age of second child '''to'''
**** '''RoomAccomodationID''' – идентификатор типа размещения
+
**** '''RoomAccomodationID''' – id of the accommodation
**** '''ID''' – идентификатор комнаты
+
**** '''ID''' – id of the room
**** '''Name''' – наименование типа размещения
+
**** '''Name''' – name of the accommodation type
*** '''RoomID''' – идентификатор комнаты
+
*** '''RoomID''' – id of the room
*** '''PansionID''' – идентификатор типа питания
+
*** '''PansionID''' – id of the pansion
** '''TransferService''' – параметры для услуги типа TransferService
+
** '''TransferService''' – parameters for service type TransferService
*** '''ExternalID''' –  не используется
+
*** '''ExternalID''' –  not using
*** '''Price''' – цена брутто
+
*** '''Price''' – gross price
*** '''NMen''' – количество взрослых туристов
+
*** '''NMen''' – number of adult tourists
*** '''Partner''' – массив данных партнера
+
*** '''Partner''' – array of data of the partners
**** '''Name''' – наименование партнера
+
**** '''Name''' – name of the partner
**** '''ID''' – идентификатор партнера
+
**** '''ID''' – id of the partner
**** '''Description''' – описание партнера
+
**** '''Description''' – description of the partner
**** '''NameLat''' – наименование партнера латиницей
+
**** '''NameLat''' – name of the partner in Latin
**** '''Code''' – код партнера
+
**** '''Code''' – code of the partner
**** '''CodeLat''' – код партнера латиницей
+
**** '''CodeLat''' – code of the partner in Latin
**** '''Unicode''' – код ISO партнера
+
**** '''Unicode''' – ISO-code of the partner
**** '''PartnersGroupID''' – идентификатор группы партнера
+
**** '''PartnersGroupID''' – id of the groups of partners
**** '''FullName''' – полное наименование партнера
+
**** '''FullName''' – full name of the partner
**** '''Fax''' – факс партнера
+
**** '''Fax''' – fax of the partner
**** '''Address''' – адрес партнера
+
**** '''Address''' – address of the partner
**** '''Zip''' – почтовый код партнера
+
**** '''Zip''' – zip-code of the partner
**** '''Email''' – email партнера
+
**** '''Email''' – e-mail of the partner
**** '''Phones''' – телефон партнера
+
**** '''Phones''' – phone number of the partner
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
+
*** '''PartnerID''' – id of the service provider (can be transmitted as '''0''' then it will be picked up automatically by the calculator)
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
+
*** '''Quota''' – service on a quota ('''key''' = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
*** '''PacketKey''' – идентификатор пакета услуги
+
*** '''PacketKey''' – id of package of the service
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ – значение)
+
*** '''AdditionalParams''' – additional parameters (represents as a pair key - value)
**** '''ParameterPair Key''' – ключ
+
**** '''ParameterPair Key''' – key
***** '''Value''' – значение
+
***** '''Value''' – value
******* '''Description''' - описание
+
******* '''Description''' - description
*** '''DetailBrutto''' – подробности брутто
+
*** '''DetailBrutto''' – gross details
*** '''Notes''' – примечания к услуге
+
*** '''Notes''' – notes for the service
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
+
*** '''Name''' – name of the service (example for the hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
*** '''StartDate''' – date of providing service (in format ''YYYY-MM-DDT00:00:00'')
*** '''StartDay''' – не используется
+
*** '''StartDay''' – not using
*** '''Duration''' – продолжительность услуги
+
*** '''Duration''' – duration of the service
*** '''RateBrutto''' – валюта брутто
+
*** '''RateBrutto''' – currency of the gross
*** '''Brutto''' – цена брутто
+
*** '''Brutto''' – price of the gross
*** '''ServiceClassID''' – идентификатор класса услуги
+
*** '''ServiceClassID''' – id of the service class
*** '''TouristCount''' – количество туристов, пользующихся услугой
+
*** '''TouristCount''' – number of tourists, using the service
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
+
*** '''ID''' – id of the service (''-1'' for the new tour)
*** '''Status''' – статус услуги
+
*** '''Status''' – status of the service
**** '''Name''' – наименование статуса услуги
+
**** '''Name''' – name of the service status
**** '''ID''' – идентификатор статуса услуги
+
**** '''ID''' – id of the service status
**** '''Description''' – описание  статуса услуги
+
**** '''Description''' – description of the service status
**** '''NameLat''' – наименование  статуса услуги латиницей
+
**** '''NameLat''' – name of the service status in Latin
**** '''Code''' – код  статуса услуги
+
**** '''Code''' – code of the service status
**** '''CodeLat''' – код  статуса услуги латиницей
+
**** '''CodeLat''' – code of the service status in Latin
**** '''Unicode''' – код ISO статуса услуги
+
**** '''Unicode''' – ISO-code of the service status
*** '''Transfer''' – массив данных трансфера
+
*** '''Transfer''' – array of data Transfer
**** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ значение)
+
**** '''AdditionalParams''' – additional parameters (represents as a pair key value)
***** '''ParameterPair Key''' – ключ
+
***** '''ParameterPair Key''' – key
****** '''Value''' – значение
+
****** '''Value''' – value
**** '''Name''' – наименование трансфера
+
**** '''Name''' – name of the transfer
**** '''ID''' – ключ трансфера из таблицы TransferDirecion
+
**** '''ID''' – key of the transfer from table TransferDirecion
**** '''Description''' – описание  трансфера
+
**** '''Description''' – description of the transfer
**** '''NameLat''' – наименование  трансфера латиницей
+
**** '''NameLat''' – name of the transfer in Latin
**** '''Code''' – код  трансфера
+
**** '''Code''' – code of the transfer
**** '''CodeLat''' – код  трансфера латиницей
+
**** '''CodeLat''' – code of the transfer in Latin
**** '''Unicode''' – код ISO трансфера
+
**** '''Unicode''' – ISO-code of the transfer
**** '''PlaceFrom''' – название точки откуда
+
**** '''PlaceFrom''' – name of the point from
**** '''PlaceTo''' – название точки куда
+
**** '''PlaceTo''' – name of the point to
**** '''CityID''' – идентификатор города
+
**** '''CityID''' – id of the city
**** '''RegionID''' – идентификатор региона
+
**** '''RegionID''' – id of the region
*** '''Transport''' – массив данных транспорта
+
*** '''Transport''' – array of data Transport
**** '''Name''' – наименование транспорта
+
**** '''Name''' – name of the transport
**** '''ID''' – идентификатор транспорта
+
**** '''ID''' – id of the transport
**** '''Description''' – описание  транспорта
+
**** '''Description''' – description of the transport
**** '''NameLat''' – наименование  транспорта латиницей
+
**** '''NameLat''' – name of the transport in Latin
**** '''Code''' – код  транспорта
+
**** '''Code''' – code of the transport
**** '''CodeLat''' – код  транспорта латиницей
+
**** '''CodeLat''' – code of the transport in Latin
**** '''Unicode''' – код ISO транспорта
+
**** '''Unicode''' – ISO-code of the transport
*** '''PointToID''' – идентификатор точки куда
+
*** '''PointToID''' – id of the point to
*** '''CityKey''' – ключ города
+
*** '''CityKey''' – key of the city
*** '''PointToName''' – название точки куда
+
*** '''PointToName''' – name of the point to
*** '''PointFromID''' – идентификатор точки откуда
+
*** '''PointFromID''' – name of the point to
*** '''PointFromName''' – название точки откуда
+
*** '''PointFromName''' – name of the point from
** '''ExcursionService''' – параметры для услуги типа ExcursionService
+
** '''ExcursionService''' – parameters for the service type ExcursionService
*** '''ExternalID''' –  не используется
+
*** '''ExternalID''' –  неnot using
*** '''Price''' – цена брутто
+
*** '''Price''' – gross price
*** '''NMen''' – количество взрослых туристов
+
*** '''NMen''' – number of adult tourists
*** '''Partner''' – массив данных партнера
+
*** '''Partner''' – array of data of the partners
**** '''Name''' – наименование партнера
+
**** '''Name''' – name of the partner
**** '''ID''' – идентификатор партнера
+
**** '''ID''' – id of the partner
**** '''Description''' – описание партнера
+
**** '''Description''' – description of the partner
**** '''NameLat''' – наименование партнера латиницей
+
**** '''NameLat''' – name of the partner in Latin
**** '''Code''' – код партнера
+
**** '''Code''' – code of the partner
**** '''CodeLat''' – код партнера латиницей
+
**** '''CodeLat''' – code of the partner in Latin
**** '''Unicode''' – код ISO партнера
+
**** '''Unicode''' – ISO-code of the partner
**** '''PartnersGroupID''' – идентификатор группы партнера
+
**** '''PartnersGroupID''' – id of the groups of partners
**** '''FullName''' – полное наименование партнера
+
**** '''FullName''' – full name of the partner
**** '''Fax''' – факс партнера
+
**** '''Fax''' – fax of the partner
**** '''Address''' – адрес партнера
+
**** '''Address''' – address of the partner
**** '''Zip''' – почтовый код партнера
+
**** '''Zip''' – zip-code of the partner
**** '''Email''' – email партнера
+
**** '''Email''' – e-mail of the partner
**** '''Phones''' – телефон партнера
+
**** '''Phones''' – phone number of the partner
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
+
*** '''PartnerID''' – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
+
*** '''Quota''' – service on a quota ('''key''' = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
*** '''PacketKey''' – идентификатор пакета услуги
+
*** '''PacketKey''' – id of package of the service
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ значение)
+
*** '''AdditionalParams''' – additional parameters (represents as a pair key value)
**** '''ParameterPair Key''' – ключ
+
**** '''ParameterPair Key''' – key
**** '''Value''' – значение
+
**** '''Value''' – value
*** '''DetailBrutto''' – подробности брутто
+
*** '''DetailBrutto''' – gross details
*** '''Notes''' – примечания к услуге
+
*** '''Notes''' – notes to the service
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
+
*** '''Name''' – name of the service (example for hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
*** '''StartDate''' – date of providing service (In format ''YYYY-MM-DDT:00:00'')
*** '''StartDay''' – не используется
+
*** '''StartDay''' – not using
*** '''Duration''' – продолжительность услуги
+
*** '''Duration''' – duration of service
*** '''RateBrutto''' – валюта брутто
+
*** '''RateBrutto''' – the currency of the gross
*** '''Brutto''' – цена брутто
+
*** '''Brutto''' – gross price
*** '''ServiceClassID''' – идентификатор класса услуги
+
*** '''ServiceClassID''' – id of the service class
*** '''TouristCount''' – количество туристов, пользующихся услугой
+
*** '''TouristCount''' – number of tourists, using the service
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
+
*** '''ID''' – id of the service (''-1'' for the new tour)
*** '''Status''' – статус услуги
+
*** '''Status''' – status of the service
**** '''Name''' – наименование статуса услуги
+
**** '''Name''' – name of the service status
**** '''ID''' – идентификатор статуса услуги
+
**** '''ID''' – id of the service status
**** '''Description''' – описание  статуса услуги
+
**** '''Description''' – description of the service status
**** '''NameLat''' – наименование  статуса услуги латиницей
+
**** '''NameLat''' – name of the service status in Latin
**** '''Code''' – код  статуса услуги
+
**** '''Code''' – code of the service status
**** '''CodeLat''' – код  статуса услуги латиницей
+
**** '''CodeLat''' – code of the service status in Latin
**** '''Unicode''' – код ISO статуса услуги
+
**** '''Unicode''' – ISO-code of the service status
*** '''CityKey''' – ключ города
+
*** '''CityKey''' – city key
*** '''ExcursionID''' – идентификатор экскурсии
+
*** '''ExcursionID''' – id of excursion
** '''ExtraService''' – параметры для услуги типа ExtraService
+
** '''ExtraService''' – parameters for the service type ExtraService
*** '''ExternalID''' –  не используется
+
*** '''ExternalID''' –  not using
*** '''Price''' – цена брутто
+
*** '''Price''' – gross price
*** '''NMen''' – количество взрослых туристов
+
*** '''NMen''' – number of adult tourists
*** '''Partner''' – массив данных партнера
+
*** '''Partner''' – array of data of the partners
**** '''Name''' – наименование партнера
+
**** '''Name''' – name of the partner
**** '''ID''' – идентификатор партнера
+
**** '''ID''' – id of the partner
**** '''Description''' – описание партнера
+
**** '''Description''' – description of the partner
**** '''NameLat''' – наименование партнера латиницей
+
**** '''NameLat''' – name of the partner in Latin
**** '''Code''' – код партнера
+
**** '''Code''' – code of the partner
**** '''CodeLat''' – код партнера латиницей
+
**** '''CodeLat''' – code of the partner in Latin
**** '''Unicode''' – код ISO партнера
+
**** '''Unicode''' – ISO-code of the partner
**** '''PartnersGroupID''' – идентификатор группы партнера
+
**** '''PartnersGroupID''' – id of the groups of partners
**** '''FullName''' – полное наименование партнера
+
**** '''FullName''' – full name of the partner
**** '''Fax''' – факс партнера
+
**** '''Fax''' – fax of the partner
**** '''Address''' – адрес партнера
+
**** '''Address''' – fax of the partner
**** '''Zip''' – почтовый код партнера
+
**** '''Zip''' – zip-code of the partner
**** '''Email''' – email партнера
+
**** '''Email''' – e-mail of the partner
**** '''Phones''' – телефон партнера
+
**** '''Phones''' – phone number of the partner
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
+
*** '''PartnerID''' – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
*** '''Quota''' – услуга на квоте (ключ = значение: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
+
*** '''Quota''' – service on a quota ('''key''' = value: '''None''' = 0, '''Yes''' = 1, '''No''' = 2, '''AFew''' = 3, '''Request''' = 4, '''NoFlight''' = 5, '''OnlyAgent''' = 6, '''All''' = 7, '''NotChecked''' = 10)
*** '''PacketKey''' – идентификатор пакета услуги
+
*** '''PacketKey''' – id of package of the service
*** '''AdditionalParams''' – массив дополнительных параметров (представляются в виде пары ключ значение)
+
*** '''AdditionalParams''' – additional parameters (represents as a pair key value)
**** '''ParameterPair Key''' – ключ
+
**** '''ParameterPair Key''' – key
***** '''Value''' – значение
+
**** '''Value''' – value
*** '''DetailBrutto''' – подробности брутто
+
*** '''DetailBrutto''' – gross details
*** '''Notes''' – примечания к услуге
+
*** '''Notes''' – notes to the service
*** '''Name''' – наименование услуги (пример для услуги отель: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
+
*** '''Name''' – name of the service (example for hotel service: ''HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB'')
*** '''StartDate''' – дата предоставления услуги (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
*** '''StartDate''' – date of providing service (In format ''YYYY-MM-DDT:00:00'')
*** '''StartDay''' – не используется
+
*** '''StartDay''' – not using
*** '''Duration''' – продолжительность услуги
+
*** '''Duration''' – duration of service
*** '''RateBrutto''' – валюта брутто
+
*** '''RateBrutto''' – the currency of the gross
*** '''Brutto''' – цена брутто
+
*** '''Brutto''' – gross price
*** '''ServiceClassID''' – идентификатор класса услуги
+
*** '''ServiceClassID''' – id of the service class
*** '''TouristCount''' – количество туристов, пользующихся услугой
+
*** '''TouristCount''' – number of tourists, using the service
*** '''ID''' – идентификатор услуги (''-1'' для новой путевки )
+
*** '''ID''' – id of the service (''-1'' for the new tour)
*** '''Status''' – статус услуги
+
*** '''Status''' – status of the service
**** '''Name''' – наименование статуса услуги
+
**** '''Name''' – name of the service status
**** '''ID''' – идентификатор статуса услуги
+
**** '''ID''' – id of the service status
**** '''Description''' – описание  статуса услуги
+
**** '''Description''' – description of the service status
**** '''NameLat''' – наименование  статуса услуги латиницей
+
**** '''NameLat''' – name of the service status in Latin
**** '''Code''' – код  статуса услуги
+
**** '''Code''' – code of the service status
**** '''CodeLat''' – код  статуса услуги латиницей
+
**** '''CodeLat''' – code of the service status in Latin
**** '''Unicode''' – код ISO статуса услуги
+
**** '''Unicode''' – ISO-code of the service status
*** '''CityKey''' – ключ города предоставления услуги
+
*** '''CityKey''' – key of the city providing the service
*** '''IsPackage''' – признак пакетной услуги
+
*** '''IsPackage''' – attribute if the service is in package
*** '''Code''' – идентификатор услуги
+
*** '''Code''' – id of the service
*** '''HasDuration''' – услуга с продолжительностью или без
+
*** '''HasDuration''' – has service duration or not
* '''ID''' – ключ путевки во внешней системе (ключ туроператора)
+
* '''ID''' – key of the tour in external system (key of tour operator)
* '''Name''' – наименование путевки
+
* '''Name''' – name of the tour
* '''Brutto''' – брутто цена путевки
+
* '''Brutto''' – gross price of the tour
* '''CountryID''' – идентификатор страны путевки
+
* '''CountryID''' – id of the country of the tour
* '''CityID''' – идентификатор города путевки
+
* '''CityID''' – id of the city of the tour
* '''PartnerID''' – идентификатор покупателя путевки
+
* '''PartnerID''' – id of buyer of the tour
* '''AgentDiscount''' – скидка агента
+
* '''AgentDiscount''' – agent discount
* '''Status''' – статус путевки ('''Confirmed''' = ''0'', '''NotConfirmed''' = ''1'', '''WaitingConfirmation''' = ''2'', '''Canceled''' = ''3'', '''WaitingCancelation''' = ''4'')
+
* '''Status''' – status of the tour ('''Confirmed''' = '''0''', '''NotConfirmed''' = '''1''', '''WaitingConfirmation''' = '''2''', '''Canceled''' = '''3''', '''WaitingCancelation''' = '''4''')
* '''StartDate''' – дата начала тура (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
* '''StartDate''' – date of the beginning of the tour (in format ''YYYY-MM-DDT00:00:00'')
* '''EndDate''' – дата окончания тура (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
* '''EndDate''' – date of the end of the tour (in format ''YYYY-MM-DDT00:00:00'')
* '''Duration''' – продолжительность
+
* '''Duration''' – duration
* '''CreationDate''' – дата создания путевки (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
* '''CreationDate''' – date of the creation of the tour (in format ''YYYY-MM-DDT00:00:00'')
* '''CreatorID''' – идентификатор создателя путевки
+
* '''CreatorID''' – id of creator of the tour
* '''Tourists''' – массив туристов по услуге
+
* '''Tourists''' – array of the tourists on the tour
** '''Tourist''' – турист
+
** '''Tourist''' – tourist
*** '''Name''' – имя
+
*** '''Sex''' –  gender (key = value: '''Male''' = 0, '''Female''' = 1, '''Child''' = 2, '''Infant''' = 3)
*** '''Sex''' –  пол (ключ = значения: '''Male''' = 0, '''Female''' = 1, '''Child''' = 2, '''Infant''' = 3)
+
*** '''BirthDate''' – date of birth of the touris (in format ''YYYY-MM-DDT00:00:00'')*** '''FirstNameLat''' – name of the tourist in Latin
*** '''FirstName''' – имя туриста
+
*** '''LastNameLat''' – surname of the tourist in Latin
*** '''LastName''' – фамилия туриста
+
*** '''AgeType''' – type of the age ('''Adult''' = 0, '''Child''' = 1, '''Infant''' = 2)
*** '''SurName''' – отчество туриста
+
*** '''IsMain''' – sets attribute main tourist on the tour ('''Null''', '''0''' – no, '''1''' – tourist is main)
*** '''BirthDate''' – дата рождения туриста (в формате ''ГГГГ-ММ-ДДT00:00:00'')
+
*** '''ExternalID''' – parameter for the internal use
*** '''FirstNameLat''' – имя туриста латиницей
+
*** '''ID''' – id of the tourist (''-1'' for the new tour)
*** '''LastNameLat''' – фамилия туриста латиницей
+
*** '''Phone''' – phone number of the tourist (sets according to the template)
*** '''SurNameLat''' – отчество туриста латиницей
+
*** '''Email''' – e-mail address of the tourist
*** '''AgeType''' – тип возраста ('''Adult''' = 0, '''Child''' = 1, '''Infant''' = 2)
+
*** '''ForeignPassport''' – foreign passport
*** '''Citizen''' –не используется
+
**** '''Serie''' – series
*** '''IsMain''' – устанавливает признак главного туриста по путевке ('''Null''', '''0''' – нет, '''1''' – турист главный)
+
**** '''Number''' – number
*** '''ExternalID''' – параметр для внутреннего использования
+
**** '''IssueDate''' –date of issue
*** '''ID''' – идентификатор туриста (''-1'' для новой путевки )
+
**** '''EndDate''' – date of expire
*** '''Phone''' – телефон туриста (задается по шаблону)
+
*** '''ExternalID''' – not using
*** '''Email''' – адрес электронной почты туриста
+
* '''OwnerID''' – id of the creator of the tour
*** '''ForeignPassport''' – иностранный паспорт
+
* '''ExternalID''' –  key of the tour in the database Interlook
**** '''IssuedBy''' – кем выдан
+
* '''TourOperatorID''' – key of the tour in external system (key of the tour operator)
**** '''Serie''' – серия
+
* '''TourOperatorCode''' – number from "customer reservation number"
**** '''Number''' – номер
+
* '''AdditionalParams''' – additional parameters (providing as the pair key value)
**** '''IssueDate''' – дата выдачи
+
** '''ParameterPair Key''' – key
**** '''EndDate''' – дата окончания действия
+
** '''Value''' – value<br/>
*** '''ExternalID''' – не используется
 
* '''OwnerID''' – идентификатор создателя путевки
 
* '''ExternalID''' –  ключ путевки в базе данных Interlook
 
* '''TourOperatorID''' – ключ путевки во внешней системе (ключ туроператора)
 
* '''TourOperatorCode''' – номер из "customer reservation number"
 
* '''AdditionalParams''' – дополнительные параметры (представляются в виде пары ключ значение)
 
** '''ParameterPair Key''' – ключ
 
** '''Value''' – значение
 
 
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetReservation
+
The Invocation of method GetReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 1620: Строка 1609:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetReservation
+
Retutning result for method GetReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 2126: Строка 2115:
 
</div></div><br />
 
</div></div><br />
  
===GetArrivalsByDate (Получение списка туристов на дату начала тура)===
+
===GetArrivalsByDate (Getting a list of tourists on the start date of the tour)===
Метод возвращает данные по списку прилетов в формате json. Метод возвращает данные по главному туристу из путевки. В случае если у главного туриста не задан номер телефона, вернутся данные следующего туриста по путевке, у которого задан номер телефона.<br />  
+
The method returns data on the list of arrivals in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.<br />  
Если у главного туриста аннулирована услуга проживания в отеле, то вернутся данные следующего туриста у которого задан номер телефона. <br />
+
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning. <br />
За доступность метода для пользователя отвечает настройка '''ShowhotelReservationsByDate'''. По умолчанию настройка отключена.<br />
+
The '''ShowhotelReservationsByDate''' setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.<br />
Для включения настройки необходимо из клиентского приложения Master-Interlook перейти в '''Master-Interlook &rarr; Settings &rarr; Online users &rarr; User &rarr; Person connection &rarr; edit role'''.<br />
+
To enable the setting, you need to go from the Master-Interlook client application to '''Master-Interlook Settings Online users User Person connection edit role'''.<br />
Если у пользователя не включена настройка '''ShowhotelReservationsByDat''' - доступа к этому методу нет, в ответ будет возвращаться сообщение о недостаточности прав. Проверка проводится по идентификатору аутентификации Guid'''. <br />
+
If the current user does not have the '''ShowhotelReservationsByDate''' setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid. <br />
 
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
 
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''ArrivalDate *''' – дата заезда
+
* '''ArrivalDate *''' – date of arrival
* '''CountryKey''' – ключ страны
+
* '''CountryKey''' – key of the country
* '''RegionKey''' – ключ региона
+
* '''RegionKey''' – key of the region
* '''CityKey''' – ключ города
+
* '''CityKey''' – key of the city
* '''HotelKey''' – ключ отеля
+
* '''HotelKey''' – key of the hotel
  
Возвращаемый результат:<br />
+
Returning result:<br />
* '''GetArrivalsByDateResult''' – результат поиска
+
* '''GetArrivalsByDateResult''' – result of the search
** '''ReservationId''' – номер путевки в клиенте Interlook
+
** '''ReservationId''' – the reservation number in the Interlook client
** '''Email''' – электронный адрес если есть
+
** '''Email''' – e-mail address if available
** '''Name''' – имя фамилия туриста
+
** '''Name''' – the first and last name of the tourist
** '''Phone''' – номер телефона (выводится в формате только цифр, обрабатывается при формирование ответа)
+
** '''Phone''' – phone number (displayed in the format of digits only, processed when forming a response)
** '''CheckIn''' – дата заезда
+
** '''CheckIn''' – date of arrival
** '''CheckOut''' – дата выезда
+
** '''CheckOut''' – departure date
** '''HotelId''' – ключ отеля
+
** '''HotelId''' – departure date
** '''HasTransferArrival''' – трансфер в отель (true – есть трансфер в отель, если трансфера в заявке нет выводится false)
+
** '''HasTransferArrival''' – transfer to the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
** '''FlightArrival''' – номер прямого рейса
+
** '''FlightArrival''' – direct flight number
** '''FlightDeparture''' – номер обратного рейса
+
** '''FlightDeparture''' – return flight number
** '''FlightArrivalTime''' – время вылета прямого перелета
+
** '''FlightArrivalTime''' – departure time of a direct flight
** '''FlightDepartureTime''' – время вылета обратного перелета
+
** '''FlightDepartureTime''' – departure time of the return flight
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetArrivalsByDate
+
The invocation of the method GetArrivalsByDate
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2172: Строка 2161:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetArrivalsByDate
+
Returning result of the method GetArrivalsByDate
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
Строка 2188: Строка 2177:
 
</div></div><br />
 
</div></div><br />
  
===GetDeparturesByDate (Получение списка туристов на дату окончания тура)===  
+
===GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)===  
Метод возвращает данные по списку вылетов в формате json. Метод возвращает данные по главному туристу из путевки. В случае если у главного туриста не задан номер телефона, вернутся данные следующего туриста по путевке, у которого задан номер телефона.<br />  
+
The method returns data on the list of departures in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.<br />  
Если у главного туриста аннулирована услуга проживания в отеле, то вернутся данные следующего туриста у которого задан номер телефона. <br />
+
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning. <br />
За доступность метода для пользователя отвечает настройка '''ShowhotelReservationsByDate'''. По умолчанию настройка отключена.<br />
+
The '''ShowhotelReservationsByDate''' setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.<br />
Для включения настройки необходимо из клиентского приложения Master-Interlook перейти в '''Master-Interlook &rarr; Settings &rarr; Online users &rarr; User &rarr; Person connection &rarr; edit role'''.<br />
+
To enable the setting, you need to go from the Master-Interlook client application to '''Master-Interlook Settings Online users User Person connection edit role'''.<br />
Если у пользователя не включена настройка '''ShowhotelReservationsByDat''' - доступа к этому методу нет, в ответ будет возвращаться сообщение о недостаточности прав. Проверка проводится по идентификатору аутентификации Guid'''. <br />
+
If the current user does not have the '''ShowhotelReservationsByDate''' setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid. <br />
 
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
 
<br />[[Файл:Ea_33.png|Настройка доступа]]<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DepartureDate *''' – дата выезда
+
* '''DepartureDate *''' – date of departure
* '''CountryKey''' – ключ страны
+
* '''CountryKey''' – key of the country
* '''RegionKey''' – ключ региона
+
* '''RegionKey''' – key of the country
* '''CityKey''' – ключ города
+
* '''CityKey''' – key of the city
* '''HotelKey''' – ключ отеля
+
* '''HotelKey''' – key of the hotel
  
Возвращаемый результат:<br />
+
Returning result:<br />
* '''GetDeparturesByDateResult''' – результат поиска
+
* '''GetDeparturesByDateResult''' – result of the search
** '''ReservationId''' – номер путевки в ИЛ(выводим номер путевки который видим в интерук клиенте)
+
** '''ReservationId''' – the reservation number in the Interlook client
** '''Email''' – электронный адрес если есть
+
** '''Email''' – e-mail address if available
** '''Name''' – имя фамилия туриста
+
** '''Name''' – the first and last name of the tourist
** '''Phone''' – номер телефона (выводится в формате только цифры, не смотря на то как это в интерлке, обрабатывается при формирование ответа)
+
** '''Phone''' – phone number (displayed in the format of digits only, processed when forming a response)
** '''CheckIn''' – дата заезда
+
** '''CheckIn''' – date of arrival
** '''checkOut''' – дата выезда
+
** '''checkOut''' – departure date
** '''HotelId''' – ключ отеля
+
** '''HotelId''' – hotel key
** '''HasTransferArrival''' – трансфер в отель (true – есть трансфер в отель, если трансфера в заявке нет выводится false)
+
** '''HasTransferArrival''' – transfer to the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
** '''HasTransferDeparture''' – трансфер из отеля (true – есть трансфер из отеля, если трансфера в заявке нет выводится false)
+
** '''HasTransferDeparture''' – transfer from the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
** '''FlightArrival''' – номер прямого рейса
+
** '''FlightArrival''' – direct flight number
** '''FlightDeparture''' – номер обратного рейса
+
** '''FlightDeparture''' – return flight number
** '''FlightArrivalTime''' – время вылета прямого перелета
+
** '''FlightArrivalTime''' – departure time of a direct flight
** '''FlightDepartureTime''' – время вылета обратного перелета
+
** '''FlightDepartureTime''' – departure time of the return flight
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetDeparturesByDate
+
The invocation of the method GetDeparturesByDate
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2235: Строка 2224:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetDeparturesByDate
+
Returning result for the method GetDeparturesByDate
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 2252: Строка 2241:
 
</div></div><br />
 
</div></div><br />
  
===CancelReservation (Аннулирование путевки)===
+
===CancelReservation (Cancellation of the reservation)===
Метод производит аннуляцию путевки.<br />
+
The method provides the cancellation of the reservation.<br />
Выдача результатов метода регулируется лицензией.<br />
+
The output of the method results is regulated by the license.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки (не номер путевки)
+
* '''DgKey *''' – key of the reservation (not the number)
* '''AnnulReasonID *''' – ключ причины аннуляции (1001 – Cancel of the touroperator, 1009 – sdf. Если такой ключ причины аннуляции отсутствует в базе данных, то получим сообщение '''There is no this annulating reason in database''')
+
* '''AnnulReasonID *''' – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database))
* '''Note''' – комментарий к аннуляции
+
* '''Note''' – comment for the cancellation
Возвращаемые значения.  
+
Returning results.  
* '''CancelReservationResult''' – результат аннуляции. <br />
+
* '''CancelReservationResult''' – result of the cancellation.<br />
В случае успешного аннулирования в ответе получаем полную характеристику удаленной путевки с датой отмены. <br />
+
In case of successful cancellation in response we receive full description of the deleted reservation with the date of the cancellation.<br />
В случае ошибки получаем в ответ расшифровку ошибки.<br />
+
In case of an error we receive a transcript of the error in response.<br />
В случае некорректности идентификатора аутентификации ошибка примет вид: "Invalid user or password (Invalid GUID)". <br />
+
If one of the required parameters is missing or the value is incorrect, we will receive notification" Check the parameter 'dgKey' = 0. There is no such reservation in the database".<br />
Если отсутствует один из обязательных параметров или значение некорректно " Check the parameter 'dgKey' = 0. There is no any reservation for you in the database".<br />
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CancelReservation
+
The invocation of the method CancelReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2286: Строка 2274:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CancelReservation
+
Returning result for the method CancelReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 2301: Строка 2289:
 
</div></div><br />
 
</div></div><br />
  
===CancelReservationExtended (Аннулирование путевки с выводом информации о штрафах)===
+
===CancelReservationExtended (Cancellation of the reservation with input of information about penalties)===
Метод производит аннуляцию путевки и выдает информацию о штрафе.<br />
+
The method cancels the reservation and provides information about the penalty.<br />
Выдача результатов метода регулируется лицензией.<br />
+
The output of the method results is regulated by the license.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки
+
* '''DgKey *''' – key of the reservation (not the number)
* '''AnnulReasonID *''' – ключ причины аннуляции (1001 – Cancel of the touroperator, 1009 – sdf. Если такой ключ причины аннуляции отсутствует в базе данных, то получим сообщение '''There is no this annulating reason in database''')
+
* '''AnnulReasonID *''' – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database)
* '''Note''' – комментарий к аннуляции
+
* '''Note''' – comment for the cancellation
Возвращаемые значения.
+
Returning results.
* '''Number''' – номер сервиса
+
* '''Number''' – number of the service
* '''ResultMessage''' – результат аннуляции с полным описанием. В случае успешного аннулирования в ответе получаем полную характеристику удаленной путевки с датой отмены. В случае ошибки получаем в ответ расшифровку ошибки.
+
* '''ResultMessage''' – cancellation result with full description. In case of successful cancellation, we receive a full description of the deleted reservation with the cancellation date in the response. In case of an error, we receive a transcript of the error in response.
** '''PenaltyCost''' - объект со значением штрафа и условиями, по которым штраф был рассчитан
+
** '''PenaltyCost''' - an object with the penalty value and the conditions under which the penalty was calculated
*** '''PolicyKey''' - ключ условия по штрафу в БД (''-1'' - "псевдоусловие", до начала всех условий, или после окончания всех, или вообще никаких условий нет)
+
*** '''PolicyKey''' - the key of the penalty condition in the database (-1 is a "pseudo condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)*** '''DateFrom''' -  the start date of the condition in the format YYYY-MM-DDT00:00:00 (can be null, usually for a "pseudo-condition": "without penalty until ...")
*** '''DateFrom''' -  дата начала действия условия в формате ГГГГ-ММ-ДДT00:00:00 (может быть ''null'', обычно для "псевдоусловия": "без штрафа до...")  
+
*** '''DateTo''' - end date (can be null, for "pseudo-condition" : "100% after ...")
*** '''DateTo''' - дата окончания (может быть ''null'', для "псевдоусловия" : "100% после ...")  
+
*** '''PenaltyValue''' - penalty amount
*** '''PenaltyValue''' - размер штрафа
+
*** '''IsPercent''' - percentage indicating that the penalty is in "%" (true) or in "nights" (false)
*** '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
+
*** '''TotalPenalty''' - full amount of the penalty
*** '''TotalPenalty''' - полная сумма штрафа
+
*** '''Description''' - description
*** '''Description''' - описание
 
  
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CancelReservation
+
The invocation of the method CancelReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2341: Строка 2328:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CancelReservation
+
Returning result for method CancelReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 2368: Строка 2355:
 
</div></div><br />
 
</div></div><br />
  
===GetReservationsFrom (Отбор данных по дате создания путевки)===
+
===GetReservationsFrom (Selection of data by the date of creating of the reservation)===
Метод производит вывод данных по дате создания путевки.
+
The method outputs data by the date of creation of the voucher.<br />
 +
 
 +
Accepted request parameters ( '''*''' – required):<br />
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''DateFrom *''' – date from
 +
* '''DateTo''' – date till
 +
 
 +
Returning results:<br />
 +
* '''Key''' – reservation key
 +
* '''Code''' – reservation number
  
Принимаемые параметры запроса ( * – обязательный):<br />
+
In case of errors in the request, we receive a message in the response with a transcript of the errors.<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
In case of an error in the GUID, we will receive the message "Invalid user or password (Invalid GUID)."<br />
* '''DateFrom *''' – дата от
+
If the start date is bigger than the end date, we will receive the message "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
* '''DateTo''' – дата до
+
If one of the required parameters is missing, we get the message "Parameter '<parameter value>' is required."<br />
  
Возвращаемый результат:<br />
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
* '''Key''' – ключ путевки
 
* '''Code''' – номер путевки
 
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок.<br />
 
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br />
 
В случае если дата начала больше даты окончания получим сообщение "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
 
В случае отсутствия одного из обязательных параметров получим сообщение "Parameter '<значение параметра>' is required."<br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetReservationsFrom
+
The invocation of the method GetReservationsFrom
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2400: Строка 2389:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetReservationsFrom
+
Returning result GetReservationsFrom
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 2444: Строка 2433:
 
</div></div><br />
 
</div></div><br />
  
===CreateReservationMessage (Создание сообщения для путевки)===
+
===CreateReservationMessage (Creating message for the reservation)===
Метод создает сообщение для конкретной путевки.<br />
+
The method creates a message for a specific reservation.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки
+
* '''DgKey *''' – ticket key
* '''Message *''' – текст сообщения
+
* '''Message *''' – text of the message
* '''SenderName *''' – имя отправителя сообщения
+
* '''SenderName *''' – the name of the sender of the message
Возвращаемый результат: не возвращает результата
+
Returning result: does not return a result
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CreateReservationMessage
+
The invocation of the method CreateReservationMessage
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2473: Строка 2462:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CreateReservationMessage
+
Returning result of the method CreateReservationMessage
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 2484: Строка 2473:
 
</div></div><br />
 
</div></div><br />
  
===GetReservationMessages (Получение сообщений по путевке)===
+
===GetReservationMessages (Receiving messages for the reservation)===
Метод производит получение сообщений для конкретной путевки.<br />
+
The method receives messages for a specific reservation.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки
+
* '''DgKey *''' – reservation key
* '''MessageDirection *''' – директория расположения сообщений (по умолчанию 1)
+
* '''MessageDirection *''' – message location directory (default value 1)
Возвращаемый результат:<br />
+
Returning results:<br />
* '''DogovorMessageItem''' – результат поиска
+
* '''DogovorMessageItem''' – search result
** '''Id''' – идентификатор сообщения
+
** '''Id''' – message ID
** '''IsOutgouing''' – исходящее (true - исходящее, false - входящее )
+
** '''IsOutgouing''' – outgoing (true – outgoing, false – incoming)
** '''DogovorId''' – номер путевки
+
** '''DogovorId''' – reservation number
** '''DateCreate''' – дата создания сообщения
+
** '''DateCreate''' – date the message was created
** '''SenderName''' – имя отправителя
+
** '''SenderName''' – the sender's name
** '''IsRead''' – прочитано (true - прочитано, false - не прочитано )
+
** '''IsRead''' – read (true – read, false – not read)
** '''TourOperKey''' – ключ туроператора
+
** '''TourOperKey''' – tour operator's key
** '''Processed''' – статус обработки
+
** '''Processed''' – processing status
** '''Text''' – текст сообщения
+
** '''Text''' – the text of the message
В случае ошибки приходит расшифровка ошибки.<br />
+
In case of an error, a transcript of the error will be received.<br />
При ошибке в Guid получим сообщение: "Invalid user or password (Invalid GUID)".<br />
+
If there is an error in the Guid, we get the message: "Invalid user or password (Invalid GUID)".<br />
При ошибке в ключе путевки получим сообщение: "Check the parameter 'dgKey' = <значение в запросе>. There is no any reservation for you in the database".<br />
+
If there is an error in the reservation key, we will receive the message: "Check the parameter 'dgKey' = <value in the request>. There is no any reservation for you in the database".<br />
В случае отсутствия в выбранной директории сообщений получим ответ: "Ok. There is no any message with 'messageDirection' = <значение в запросе>".<br />
+
If there are no messages in the selected directory, we will get the answer: "Ok. There is no any message with 'messageDirection' = <value in the request>".<br />
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetReservationMessages
+
The invocation of the method GetReservationMessages
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2522: Строка 2512:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetReservationMessages
+
Returning result of the method GetReservationMessages
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 2571: Строка 2561:
 
</div></div><br />
 
</div></div><br />
  
==Методы поиска==
+
==Search methods==
 +
 
 +
===SearchHotelServices (Receiving options of accommodations under request parameters)===
 +
The method retrieves possible accommodation options according to the request parameters.<br />
 +
Accepted request parameters ( '''*''' – required):<br />
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''Request ''' – object with request parameters
 +
** '''PageSize *''' – the page size of the returning data, that is, how many calculated prices to stop at and give the search result. If PageSize = 5 is set, then the search will go by prices and as soon as it gets 5 calculated (but it can sort through prices more, not all prices are suitable) prices, it will output them as a result. The number of sorted internal prices will be displayed in the TotalCount line.
 +
** '''RowIndexFrom *''' – from which line the result must be output from. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in RowIndexFrom, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the TotalCount line)
 +
** '''DateFrom *''' – date «from»
 +
** '''DateTo *''' – date «to»
 +
** '''RegionKeys''' – ids of regions (if cities and hotels are not specified – search wiil be made for all regions, RegionKeys or CityKeys or HotelKeys must be filled in)
 +
** '''CityKeys''' – ids of cities (if hotels are not specified, we are looking for a search for all hotels in cities, RegionKeys, CityKeys or HotelKeys must be filled in)
 +
** '''HotelKeys''' – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
 +
** '''RoomDescriptions''' – IDs of room descriptions. If were not transferred it will search for all
 +
** '''PansionKeys''' – pansion IDs. If were not transferred it will search for all
 +
** '''Ages''' – age of children (if not specified, then accommodation with children will not be searched, tourists are considered adults)
 +
** '''Pax *''' – accommodation
 +
** '''Tariffs''' – IDs of tariffs for which to calculate the result. If you do not transmit it, it will be counted according to the Ordinary tariff
 +
** '''CacheGuid''' – the search ID that speeds up the navigation through the pages. You don't need to transmit it during the first search. The search will return this ID in the ResponseGuid parameter. Then, using paging, we transmit this ID further (but only within the framework of one search!)
 +
** '''ResultView''' – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
 +
** '''QuotaTypes''' – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
 +
** ''' Mode''' – do not specify or specify 0
  
===SearchHotelServices (Получение вариантов проживаний по параметрам запроса)===
+
The returning result:<br />
Метод производит получение возможных вариантов проживаний по параметрам запроса.<br />
+
* '''DataRequestResult''' – the search result
Принимаемые параметры запроса ( * – обязательный):<br />
+
** '''ResultTable''' – the table with the result
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
*** '''HotelServices''' – the hotel service
* '''Request ''' – объект с параметрами запроса
+
**** '''HotelName''' – the name of the hotel
** '''PageSize *''' – размер страницы возвращаемых данных, то есть на каком количестве рассчитанных цен останавливаться и выдавать результат поиска. Если задано PageSize = 5, то поиск пойдет по ценам и как только наберет 5 рассчитанных (но перебрать цен он может больше, не все цены подходят) цен, выдаст их в результат. Количество перебранных внутренних цен будет выдано в строке TotalCount.  
+
**** '''HotelKey''' – the hotel key
** '''RowIndexFrom *''' – с какой строчки выдавать результат. Для первой страницы указываем RowIndexFrom = 0 – перебор идет с самой первой цены. Чтобы получить вторую страницу или последующие страницы поиска в RowIndexFrom надо передавать внутренний номер цены на котором остановился поиск предыдущей страницы цен (этот номер будет в ответе в строке TotalCount)
+
**** '''RtCode''' – the room type
** '''DateFrom *''' – дата «С»
+
**** '''RtKey''' – the room type key
** '''DateTo *''' – дата «По»
+
**** '''RcName''' – the room category
** '''RegionKeys''' – идентификаторы регионов (если не заданы города и отели поиск по всем регионам, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
**** '''RcKey''' – the room category key
** '''CityKeys''' – идентификаторы городов (если не заданы отели ищем поиск для всех отелей городов, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
**** '''RdName''' – type+room category
** '''HotelKeys''' – идентификаторы отелей (если заданы отели поиск только для них, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
**** '''RdKey''' – key type+room category
** '''RoomDescriptions''' – идентификаторы описаний комнат. Если не предавать будет искать для всех
+
**** '''AcName''' – type of accommodation
** '''PansionKeys''' – идентификаторы питаний. Если не передавать будет искать для всех
+
**** '''AcKey''' – the key of the accommodation type
** '''Ages''' – возраст детей (если не указан, то размещения с детьми не ищутся, туристы считаются взрослыми)
+
**** '''PnCode''' – the type of pansion
** '''Pax *''' – размещение
+
**** '''PnKey''' – the type of pansion key
** '''Tariffs''' – идентификаторы тарифов по которым рассчитывать результат. Если не передавать будет считать по тарифу Ordinary
+
**** '''TotalCost''' – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
** '''CacheGuid''' – идентификатор поиска, который ускоряет переход по страницам. При первом поиске его передавать не нужно. Поиск вернет этот идентификатор в параметре ResponseGuid. Далее, используя пейджинг, передаем этот идентификатор дальше (но только в рамках одного поиска!)  
+
**** '''Cost''' the amount of the mandatory surcharge Cost
** '''ResultView''' – тип вывода результата (1 cортировка по суточной цене с группировкой по отелям, 2 сортировка по суточной цене)
+
**** '''AddHotsCost''' – the amount of the mandatory AdHot surcharge
** '''QuotaTypes''' – фильтр по типу квоты(0 запрос, 1 квота, 2 – стоп). Получаем все возможные результаты. Если не указано, то значение=0
+
**** '''AddHotsWithCosts''' – the amount of the mandatory surcharge of the AdHot type With costs (returns -1 if the display setting of the Adhot type With Costs is in the Integration Service Interlook config. [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service|Description]].
** ''' Mode''' – не указываем или указываем 0
+
**** '''DetailBrutto''' – the price calculation formula
 +
**** '''QuoteType''' – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
 +
**** '''CountryKey''' – the key of the country where the service is provided
 +
**** '''CityKey''' – the key of the city where the service is provided
 +
**** '''CityName''' – the name of the city where the service is provided
 +
**** '''HotelWebSite''' – the address of the hotel's website
 +
**** '''TariffId''' – the tariff ID
 +
**** '''TariffName''' – the name of the tariff
 +
**** '''TariffDescription''' – the description of the tariff
 +
**** '''AddHots''' – the Adhot ID
 +
**** '''ContractPrKey''' – the key of the partner providing the service
 +
**** '''HotelImage''' – the hotel photo
 +
**** '''Rate''' – the currency
 +
**** '''AddHotsWithCostID''' – ID of AddHotsWithCost
 +
** '''ColunmNames''' – the name of table columns
 +
*** '''HotelName''' – the name of the hotel
 +
*** '''HotelKey''' – the hotel key
 +
*** '''RtCode''' – the room type
 +
*** '''RtKey''' – the room type key
 +
*** '''RcName''' – the room category
 +
*** '''RcKey''' – the room category key
 +
*** '''RdName''' – the type+room category
 +
*** '''RdKey''' – the key type+room category
 +
*** '''AcName''' – type of accommodation
 +
*** '''AcKey''' – the key of the accommodation type
 +
*** '''PnCode''' – the type of pansion
 +
*** '''PnKey''' – the type of pansion key
 +
*** '''TotalCost''' – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
 +
*** '''Cost''' – the amount of the mandatory surcharge Cost
 +
*** '''AddHotsCost''' – the amount of the mandatory AddHotsCost surcharge
 +
*** '''DetailBrutto''' – the price calculation formula
 +
*** '''QuoteType''' – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
 +
*** '''CountryKey''' – the key of the country where the service is provided
 +
*** '''CityKey''' – the key of the city where the service is provided
 +
*** '''CityName''' – the name of the city where the service is provided
 +
*** '''HotelWebSite''' – the address of the hotel's website
 +
*** '''TariffId''' – the tariff ID
 +
*** '''TariffName''' – the name of the tariff
 +
*** '''TariffDescription''' – the description of the tariff
 +
*** '''AddHots''' – the Adhot ID
 +
*** '''ContractPrKey''' – the key of the partner providing the service
 +
*** '''HotelImage''' – the hotel photo
 +
*** '''Rate''' – the currency
 +
*** '''AddHotsWithCostID''' – ID of AddHotsWithCost
 +
** '''TotalCount''' – the number of the line where the search ended
 +
** '''PageSize''' – the number of data rows returning
 +
** '''PageIndex''' – the number of the line from which the search was started
 +
** '''IsLastPage''' – when displaying the last page of search results with hotels, the IsLastPage parameter takes the value true. If the IsLastPage parameter is not processed, the following totalCount value will return an empty result for hotels
 +
** '''AdditionalData''' – the list of required Addhots
 +
*** '''ArrayOfAnyType''' – an array of service types
 +
**** '''anyType''' – the type of service
 +
***** '''ExternalID''' –  the parameter for internal use
 +
***** '''Price''' – the cost
 +
***** '''NMen''' – the number of tourists in the reservation
 +
***** '''PartnerID''' – the Partner ID
 +
***** '''Quota''' – the quota for the service
 +
***** '''PacketKey''' – the package key
 +
***** '''AdditionalParams''' – an array of additional parameters (represented as a key value pair)
 +
****** '''ParameterPair Key''' – the key
 +
******* '''Value''' – the value
 +
***** '''Tourists''' the tourists
 +
***** '''DetailNetto''' – netto details
 +
***** '''DetailBrutto''' gross details
 +
***** '''Notes''' – notes to the service
 +
***** '''Name''' – the name of the service
 +
***** '''StartDate''' – the date of providing service (in the format YYYY-MM-DDT00:00:00)
 +
***** '''StartDay''' – the day of providing service
 +
***** '''Duration''' – the duration of the service
 +
***** '''RateBrutto''' – the gross currency
 +
***** '''Brutto''' – the gross price
 +
***** '''RateNetto''' – the netto currency
 +
***** '''Netto''' – the netto price
 +
***** '''ServiceClassID''' – the ID of the service class
 +
***** '''TouristCount''' – the number of tourists using the service
 +
***** '''ID''' – the service ID (-1 for a new reservation)
 +
***** '''Status''' – the service status
 +
****** '''Name''' – the name of the service status
 +
****** '''ID''' –  ID of the service status
 +
****** '''Description''' – the description of the service status
 +
****** '''NameLat''' – the name of the service status in Latin
 +
****** '''Code''' – the service status code
 +
****** '''CodeLat''' – the service status code in Latin
 +
****** '''Unicode''' – ISO code of the service status
 +
***** '''CityKey''' the key of the city where the service is provided
 +
***** '''IsPackage''' the attribute of a package service
 +
***** '''Code''' – the service ID
 +
***** '''HasDuration''' is the service with or without duration
 +
** '''ResponseGuid''' ID of the response that needs to be transmitted if we are moving through the same search using paging<br />
 +
In case of errors in the request, we receive a message in the response with a transcript of the errors.<br />
 +
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."<br />
 +
If the start date is bigger than the end date, we will receive the message "The parameter 'DateTo' can not be less than 'DateFrom'."<br />
 +
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."<br />
 +
If there is no hotel key, city key, region key, we will receive the message "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'."<br />
  
Возвращаемый результат:<br />
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
* '''DataRequestResult''' – результат поиска
 
** '''ResultTable''' – таблица с результатом
 
*** '''HotelServices''' – услуга отеля
 
**** '''HotelName''' – наименование отеля
 
**** '''HotelKey''' – ключ отеля
 
**** '''RtCode''' – тип номера
 
**** '''RtKey''' – ключ типа номера
 
**** '''RcName''' – категория номера
 
**** '''RcKey''' – ключ категории номера
 
**** '''RdName''' – тип+категория номера
 
**** '''RdKey''' – ключ тип+категория номера
 
**** '''AcName''' – тип размещения
 
**** '''AcKey''' – ключ типа размещения
 
**** '''PnCode''' – тип питания
 
**** '''PnKey''' – ключ типа питания
 
**** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
 
**** '''Cost''' – размер обязательной доплаты Cost
 
**** '''AddHotsCost''' – размер обязательной доплаты AdHot
 
**** '''AddHotsWithCosts''' – размер обязательной доплаты AdHot типа With costs (выдает -1 если настройка отображения Adhot типа With Costs в конфиге Integration Service Interlook. Описание настройки [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service ]])
 
**** '''DetailBrutto''' – формула расчета цены
 
**** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
 
**** '''CountryKey''' – ключ страны предоставления услуги
 
**** '''CityKey''' – ключ города предоставления услуги
 
**** '''CityName''' – наименование города предоставления услуги
 
**** '''HotelWebSite''' – адрес сайта отеля
 
**** '''TariffId''' – идентификатор тарифа
 
**** '''TariffName''' – наименование тарифа
 
**** '''TariffDescription''' – описание тарифа
 
**** '''AddHots''' – идентификатор Adhot
 
**** '''ContractPrKey''' – ключ партнера, предоставляющего услугу
 
**** '''HotelImage''' – фото отеля
 
**** '''Rate''' – валюта
 
**** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
 
** '''ColunmNames''' – название столбцов таблицы
 
*** '''HotelName''' – наименование отеля
 
*** '''HotelKey''' – ключ отеля
 
*** '''RtCode''' – тип номера
 
*** '''RtKey''' – ключ типа номера
 
*** '''RcName''' – категория номера
 
*** '''RcKey''' – ключ категории номера
 
*** '''RdName''' – тип+категория номера
 
*** '''RdKey''' – ключ тип+категория номера
 
*** '''AcName''' – тип размещения
 
*** '''AcKey''' – ключ типа размещения
 
*** '''PnCode''' – тип питания
 
*** '''PnKey''' – ключ типа питания
 
*** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
 
*** '''Cost''' – размер обязательной доплаты Cost
 
*** '''AddHotsCost''' – размер обязательной доплаты AddHotsCost
 
*** '''DetailBrutto''' – формула расчета цены
 
*** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
 
*** '''CountryKey''' – ключ страны предоставления услуги
 
*** '''CityKey''' – ключ города предоставления услуги
 
*** '''CityName''' – наименование города предоставления услуги
 
*** '''HotelWebSite''' – адрес сайта отеля
 
*** '''TariffId''' – идентификатор тарифа
 
*** '''TariffName''' – наименование тарифа
 
*** '''TariffDescription''' – описание тарифа
 
*** '''AddHots''' – идентификатор Adhot
 
*** '''ContractPrKey''' – ключ партнера, предоставляющего услугу
 
*** '''HotelImage''' – фото отеля
 
*** '''Rate''' – валюта
 
*** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
 
** '''TotalCount''' – номер строки, на которой закончился поиск
 
** '''PageSize''' – количество возвращаемых строк данных
 
** '''PageIndex''' – номер строки, с которой начали поиск
 
** '''IsLastPage''' – при отображении последней страницы результатов поиска с отелями параметр IsLastPage принимает значение '''true'''. Если не обрабатывать параметр IsLastPage, то следующее значение TotalCount вернет пустой результат по отелям
 
** '''AdditionalData''' – список обязательных Addhots
 
*** '''ArrayOfAnyType''' – массив типов услуг
 
**** '''anyType''' – тип услуги
 
***** '''ExternalID''' –  параметр для внутреннего использования
 
***** '''Price''' – стоимость
 
***** '''NMen''' – количество туристов по путевке
 
***** '''PartnerID''' – идентификатор партнера
 
***** '''Quota''' – квота по услуге
 
***** '''PacketKey''' – ключ пакета
 
***** '''AdditionalParams''' – массив дополнительных параметры (представляются в виде пары ключ – значение)
 
****** '''ParameterPair Key''' – ключ
 
******* '''Value''' – значение
 
***** '''Tourists''' – туристы
 
***** '''DetailNetto''' – подробности нетто
 
***** '''DetailBrutto''' – подробности брутто
 
***** '''Notes''' – примечания к услуге
 
***** '''Name''' – наименование услуги
 
***** '''StartDate''' – дата предоставления услуги (в формате ГГГГ-ММ-ДДT00:00:00)
 
***** '''StartDay''' – день предоставления услуги
 
***** '''Duration''' – продолжительность услуги
 
***** '''RateBrutto''' – валюта брутто
 
***** '''Brutto''' – цена брутто
 
***** '''RateNetto''' – валюта нетто
 
***** '''Netto''' – цена нетто
 
***** '''ServiceClassID''' – идентификатор класса услуги
 
***** '''TouristCount''' – количество туристов, пользующихся услугой
 
***** '''ID''' – идентификатор услуги (-1 для новой путевки )
 
***** '''Status''' – статус услуги
 
****** '''Name''' – наименование статуса услуги
 
****** '''ID''' –  идентификатор статуса услуги
 
****** '''Description''' – описание статуса услуги
 
****** '''NameLat''' – наименование статуса услуги латиницей
 
****** '''Code''' – код статуса услуги
 
****** '''CodeLat''' – код статуса услуги латиницей
 
****** '''Unicode''' – код ISO статуса услуги
 
***** '''CityKey''' – ключ города предоставления услуги
 
***** '''IsPackage''' – признак пакетной услуги
 
***** '''Code''' – идентификатор услуги
 
***** '''HasDuration''' – услуга с продолжительностью или без
 
** '''ResponseGuid''' – идентификатор ответа, который необходимо передать, если мы двигаемся по тому же поиску используя пейджинг<br />
 
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок.<br />
 
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br />
 
В случае если дата начала больше даты окончания получим сообщение "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
 
В случае отсутствия одного из обязательных параметров получим сообщение "Parameter '<значение параметра>' is required."<br />
 
В случае отсутствия ключа отеля, ключа города, ключа региона получим сообщение "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'." <br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода SearchHotelServices<br />
+
The invocation of the method SearchHotelServices<br />
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 2753: Строка 2744:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода SearchHotelServices<br />
+
Returning result of the method SearchHotelServices<br />
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 3334: Строка 3325:
 
</div></div><br />
 
</div></div><br />
  
===SearchHotelServicesMinHotel (Получение одной минимальной рассчитанной цены для отеля)===
+
===SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)===
Метод выводит одну минимальную (сортировка по суточной цене) рассчитанную цену для отеля.<br />
+
The method outputs one minimal (sorted by daily price) calculated price for the hotel.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request ''' – объект с параметрами запроса
+
* '''Request ''' – object with request parameters
** '''PageSize *''' – размер страницы возвращаемых данных, то есть на каком количестве рассчитанных цен останавливаться и выдавать результат поиска. Если задано PageSize = 5, то поиск пойдет по ценам и как только наберет 5 рассчитанных (но перебрать цен он может больше, не все цены подходят) цен, выдаст их в результат. Количество перебранных внутренних цен будет выдано в строке TotalCount.  
+
** '''PageSize *''' – from which line to output the result. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in Row Index From, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the totalCount line).  
** '''RowIndexFrom *''' – с какой строчки выдавать результат. Для первой страницы указываем RowIndexFrom = 0 – перебор идет с самой первой цены. Чтобы получить вторую страницу или последующие страницы поиска в RowIndexFrom надо передавать внутренний номер цены на котором остановился поиск предыдущей страницы цен (этот номер будет в ответе в строке TotalCount)  
+
** '''RowIndexFrom *''' – from which line the result must be output from. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in RowIndexFrom, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the TotalCount line)  
** '''DateFrom *''' – дата «С»
+
** '''DateFrom *''' – date «from»
** '''DateTo *''' – дата «По»
+
** '''DateTo *''' – date «to»
** '''RegionKeys''' – идентификаторы регионов (если не заданы города и отели поиск по всем регионам, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
** '''RegionKeys''' – ids of regions (if cities and hotels are not specified search wiil be made for all regions, RegionKeys or CityKeys or HotelKeys must be filled in)
** '''CityKeys''' – идентификаторы городов (если не заданы отели – ищем поиск для всех отелей городов, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
** '''CityKeys''' – ids of cities (if hotels are not specified, we are looking for a search for all hotels in cities, RegionKeys, CityKeys or HotelKeys must be filled in)
** '''HotelKeys''' – идентификаторы отелей (если заданы отели – поиск только для них, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
+
** '''HotelKeys''' – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
** '''RoomDescriptions''' – идентификаторы описаний комнат. Если не предавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetRoomFescriptions|GetRoomFescriptions]])<br />
+
** '''RoomDescriptions''' – ids of room descriptions. If not transmitted, it will search for everyone (returning when requesting the [[Master-Interlook:IntegrationService (en)#GetRoomDescriptions (Receiving an array of the descriptions of the rooms)|GetRoomDescriptions]] method)<br />
** '''PansionKeys''' – идентификаторы питаний. Если не передавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetPansions|GetPansions]])
+
** '''PansionKeys''' – pansion IDs. If were not transferred it will search for all (returning when querying the [[Master-Interlook:IntegrationService (en)#GetPansions (Receiving the list of the pansion types)|GetPansions]] method)
** '''Ages''' – возраст детей
+
** '''Ages''' – age of children
** '''Pax *''' – размещение
+
** '''Pax *''' – accommodation
** '''Tariffs''' – идентификаторы тарифов по которым рассчитывать результат. Если не передавать будет считать по тарифу Ordinary (0 - Ordinary, 1 - SPO)
+
** '''Tariffs''' – IDs of tariffs for which to calculate the result. If you do not transmit it, it will be counted according to the Ordinary tariff (0 Ordinary, 1 SPO)
** '''CacheGuid''' – идентификатор поиска, который ускоряет переход по страницам. При первом поиске его передавать не нужно. Поиск вернет этот идентификатор в параметре ResponseGuid. Далее, используя пейджинг, передаем этот идентификатор дальше (но только в рамках одного поиска!)  
+
** '''CacheGuid''' – the search ID that speeds up the navigation through the pages. You don't need to transmit it during the first search. The search will return this ID in the ResponseGuid parameter. Then, using paging, we transmit this ID further (but only within the framework of one search!)  
** '''ResultView''' – тип вывода результата (1 – cортировка по суточной цене с группировкой по отелям, 2 – сортировка по суточной цене)
+
** '''ResultView''' – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
** '''QuotaTypes''' – фильтр по типу квоты(0 – запрос, 1 – квота, 2 – стоп). Получаем все возможные результаты. Если не указано, то значение=0
+
** '''QuotaTypes''' – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
** ''' Mode''' – не указываем или указываем 0
+
** ''' Mode''' – do not specify or specify 0
 +
 
 +
The returning result:<br />
 +
* '''DataRequestResult''' – the search result
 +
** '''ResultTable''' – the table with the result
 +
*** '''HotelServices''' – the hotel service
 +
**** '''HotelName''' – the name of the hotel
 +
**** '''HotelKey''' – the hotel key
 +
**** '''RtCode''' – the room type
 +
**** '''RtKey''' – the room type key
 +
**** '''RcName''' – the room category
 +
**** '''RcKey''' – the room category key
 +
**** '''RdName''' – type+room category
 +
**** '''RdKey''' – key type+room category
 +
**** '''AcName''' – type of accommodation
 +
**** '''AcKey''' – the key of the accommodation type
 +
**** '''PnCode''' – the type of pansion
 +
**** '''PnKey''' – the type of pansion key
 +
**** '''TotalCost''' – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
 +
**** '''Cost''' – the amount of the mandatory surcharge Cost
 +
**** '''AddHotsCost''' – the amount of the mandatory AdHot surcharge
 +
**** '''AddHotsWithCosts''' – the amount of the mandatory surcharge of the AdHot type With costs (returns -1 if the display setting of the Adhot type With Costs is in the Integration Service Interlook config. [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service|Description]].
 +
**** '''DetailBrutto''' – the price calculation formula
 +
**** '''QuoteType''' – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
 +
**** '''CountryKey''' – the key of the country where the service is provided
 +
**** '''CityKey''' – the key of the city where the service is provided
 +
**** '''CityName''' – the name of the city where the service is provided
 +
**** '''HotelWebSite''' – the address of the hotel's website
 +
**** '''TariffId''' – the tariff ID
 +
**** '''TariffName''' – the name of the tariff
 +
**** '''TariffDescription''' – the description of the tariff
 +
**** '''AddHots''' – the Adhot ID
 +
**** '''ContractPrKey''' – the key of the partner providing the service
 +
**** '''HotelImage''' – the hotel photo
 +
**** '''Rate''' – the currency
 +
**** '''AddHotsWithCostID''' – ID of AddHotsWithCost
 +
** '''ColunmNames''' – the name of table columns
 +
*** '''HotelName''' – the name of the hotel
 +
*** '''HotelKey''' – the hotel key
 +
*** '''RtCode''' – the room type
 +
*** '''RtKey''' – the room type key
 +
*** '''RcName''' – the room category
 +
*** '''RcKey''' – the room category key
 +
*** '''RdName''' – the type+room category
 +
*** '''RdKey''' – the key type+room category
 +
*** '''AcName''' – type of accommodation
 +
*** '''AcKey''' – the key of the accommodation type
 +
*** '''PnCode''' – the type of pansion
 +
*** '''PnKey''' – the type of pansion key
 +
*** '''TotalCost''' – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
 +
*** '''Cost''' – the amount of the mandatory surcharge Cost
 +
*** '''AddHotsCost''' – the amount of the mandatory AddHotsCost surcharge
 +
*** '''DetailBrutto''' – the price calculation formula
 +
*** '''QuoteType''' – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
 +
*** '''CountryKey''' – the key of the country where the service is provided
 +
*** '''CityKey''' – the key of the city where the service is provided
 +
*** '''CityName''' – the name of the city where the service is provided
 +
*** '''HotelWebSite''' – the address of the hotel's website
 +
*** '''TariffId''' – the tariff ID
 +
*** '''TariffName''' – the name of the tariff
 +
*** '''TariffDescription''' – the description of the tariff
 +
*** '''AddHots''' – the Adhot ID
 +
*** '''ContractPrKey''' – the key of the partner providing the service
 +
*** '''HotelImage''' – the hotel photo
 +
*** '''Rate''' – the currency
 +
*** '''AddHotsWithCostID''' – ID of AddHotsWithCost
 +
** '''TotalCount''' – the number of the line where the search ended
 +
** '''PageSize''' – the number of data rows returning
 +
** '''PageIndex''' – the number of the line from which the search was started
 +
** '''IsLastPage''' – when displaying the last page of search results with hotels, the IsLastPage parameter takes the value true. If the IsLastPage parameter is not processed, the following totalCount value will return an empty result for hotels
 +
** '''AdditionalData''' – the list of required Addhots
 +
*** '''ArrayOfAnyType''' – an array of service types
 +
**** '''anyType''' – the type of service
 +
***** '''ExternalID''' –  the parameter for internal use
 +
***** '''Price''' – the cost
 +
***** '''NMen''' – the number of tourists in the reservation
 +
***** '''PartnerID''' – the Partner ID
 +
***** '''Quota''' – the quota for the service
 +
***** '''PacketKey''' – the package key
 +
***** '''AdditionalParams''' – an array of additional parameters (represented as a key – value pair)
 +
****** '''ParameterPair Key''' – the key
 +
******* '''Value''' – the value
 +
***** '''Tourists''' – the tourists
 +
***** '''DetailNetto''' – netto details
 +
***** '''DetailBrutto''' – gross details
 +
***** '''Notes''' – notes to the service
 +
***** '''Name''' – the name of the service
 +
***** '''StartDate''' – the date of providing service (in the format YYYY-MM-DDT00:00:00)
 +
***** '''StartDay''' – the day of providing service
 +
***** '''Duration''' – the duration of the service
 +
***** '''RateBrutto''' – the gross currency
 +
***** '''Brutto''' – the gross price
 +
***** '''RateNetto''' – the netto currency
 +
***** '''Netto''' – the netto price
 +
***** '''ServiceClassID''' – the ID of the service class
 +
***** '''TouristCount''' – the number of tourists using the service
 +
***** '''ID''' – the service ID (-1 for a new reservation)
 +
***** '''Status''' – the service status
 +
****** '''Name''' – the name of the service status
 +
****** '''ID''' –  ID of the service status
 +
****** '''Description''' – the description of the service status
 +
****** '''NameLat''' – the name of the service status in Latin
 +
****** '''Code''' – the service status code
 +
****** '''CodeLat''' – the service status code in Latin
 +
****** '''Unicode''' – ISO code of the service status
 +
***** '''CityKey''' – the key of the city where the service is provided
 +
***** '''IsPackage''' – the attribute of a package service
 +
***** '''Code''' – the service ID
 +
***** '''HasDuration''' – is the service with or without duration
 +
** '''ResponseGuid''' – ID of the response that needs to be transmitted if we are moving through the same search using paging<br />
 +
In case of errors in the request, we receive a message in the response with a transcript of the errors/or number of a string with an error.<br />
 +
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."<br />
 +
If the start date is bigger than the end date, we will receive the message "The parameter 'DateTo' can not be less than 'DateFrom'."<br />
 +
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."<br />
 +
If there is no hotel key, city key, region key, we will receive the message "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'."<br />
  
Возвращаемый результат:<br />
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
* '''DataRequestResult''' – результат поиска
 
** '''ResultTable''' – таблица с результатом
 
*** '''HotelServices''' – услуга отеля
 
**** '''HotelName''' – наименование отеля
 
**** '''HotelKey''' – ключ отеля
 
**** '''RtCode''' – тип номера
 
**** '''RtKey''' – ключ типа номера
 
**** '''RcName''' – категория номера
 
**** '''RcKey''' – ключ категории номера
 
**** '''RdName''' – тип+категория номера
 
**** '''RdKey''' – ключ тип+категория номера
 
**** '''AcName''' – тип размещения
 
**** '''AcKey''' – ключ типа размещения
 
**** '''PnCode''' – тип питания
 
**** '''PnKey''' – ключ типа питания
 
**** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
 
**** '''Cost''' – размер обязательной доплаты Cost
 
**** '''AddHotsCost''' – размер обязательной доплаты AdHot
 
**** '''AddHotsWithCosts''' – размер обязательной доплаты AdHot типа With costs (выдает -1 если настройка отображения Adhot типа With Costs в конфиге Integration Service Interlook. Описание настройки [[Master-Interlook:Обмен. Настройка Web-сервиса Master-Interlook#Настройка параметров конфига web.config Integration Service ]])
 
**** '''DetailBrutto''' – формула расчета цены
 
**** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
 
**** '''CountryKey''' – ключ страны предоставления услуги
 
**** '''CityKey''' – ключ города предоставления услуги
 
**** '''CityName''' – наименование города предоставления услуги
 
**** '''HotelWebSite''' – адрес веб-сайта отеля
 
**** '''TariffId''' – идентификатор тарифа
 
**** '''TariffName''' – наименование тарифа
 
**** '''TariffDescription''' – описание тарифа
 
**** '''AddHots''' – идентификатор Adhot
 
**** '''ContractPrKey''' – ключ партнера предоставляющего услугу
 
**** '''HotelImage''' – фото отеля
 
**** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
 
**** '''Rate''' – валюта
 
** '''ColunmNames''' – название столбцов таблицы
 
*** '''HotelName''' – наименование отеля
 
*** '''HotelKey''' – ключ отеля
 
*** '''RtCode''' – тип номер
 
*** '''RtKey''' – ключ типа номера
 
*** '''RcName''' – категория номера
 
*** '''RcKey''' – ключ категории номера
 
*** '''RdName''' – тип+категория номера
 
*** '''RdKey''' – ключ тип+категория номера
 
*** '''AcName''' – тип размещения
 
*** '''AcKey''' – ключ типа размещения
 
*** '''PnCode''' – тип питания
 
*** '''PnKey''' – ключ типа питания
 
*** '''TotalCost''' – конечная стоимость проживания в отеле включая обязательные доплаты Cost + AdHotCost. Сортировка по минимальной цене производиться по параметру TotalCost от наименьшей цены к наибольшей
 
*** '''Cost''' – размер обязательной доплаты Cost
 
*** '''AddHotsCost''' – размер обязательной доплаты AddHotsCost
 
*** '''DetailBrutto''' – формула расчета цены
 
*** '''QuoteType''' – тип квоты. Может принимать 3 значения: 0 – на запрос,1 – в квоте, 2 – стоит стоп сейл.
 
*** '''CountryKey''' – ключ страны предоставления услуги
 
*** '''CityKey''' – ключ города предоставления услуги
 
*** '''CityName''' – наименование города предоставления услуги
 
*** '''HotelWebSite''' – адрес сайта отеля
 
*** '''TariffId''' – идентификатор тарифа
 
*** '''TariffName''' – наименование тарифа
 
*** '''TariffDescription''' – описание тарифа
 
*** '''AddHots''' – доплата
 
*** '''ContractPrKey''' – ключ партнера, предоставляющего услугу
 
*** '''HotelImage''' – фото отеля
 
*** '''AddHotsWithCostID''' – идентификатор AddHotsWithCost
 
*** '''Rate''' – валюта
 
** '''TotalCount''' – номер строки, на которой закончился поиск
 
** '''PageSize''' – количество возвращаемых строк данных
 
** '''PageIndex''' – номер строки, с которой начали поиск
 
** '''IsLastPage''' – при отображении последней страницы результатов поиска с отелями параметр IsLastPage принимает значение '''true'''. Если не обрабатывать параметр IsLastPage, то следующее значение TotalCount вернет пустой результат по отелям
 
** '''AdditionalData''' – список обязательных Adhot
 
*** '''ArrayOfAnyType''' – массив типов услуг
 
**** '''anyType''' – тип услуги
 
***** '''ExternalID''' –  параметр для внутреннего использования
 
***** '''Price''' – стоимость
 
***** '''NMen''' – количество туристов по путевке
 
***** '''PartnerID''' – идентификатор партнера
 
***** '''Quota''' – квота по услуге
 
***** '''PacketKey''' – ключ пакета
 
***** '''AdditionalParams''' – массив дополнительных параметры (представляются в виде пары ключ – значение)
 
****** '''ParameterPair Key''' – ключ
 
******* '''Value''' – значение
 
***** '''Tourists''' – туристы
 
***** '''DetailNetto''' – подробности нетто
 
***** '''DetailBrutto''' – подробности брутто
 
***** '''Notes''' – примечания к услуге
 
***** '''Name''' – наименование услуги
 
***** '''StartDate''' – дата предоставления услуги (в формате ГГГГ-ММ-ДДT00:00:00)
 
***** '''StartDay''' – день предоставления услуги
 
***** '''Duration''' – продолжительность услуги
 
***** '''RateBrutto''' – валюта брутто
 
***** '''Brutto''' – цена брутто
 
***** '''RateNetto''' – валюта нетто
 
***** '''Netto''' – цена нетто
 
***** '''ServiceClassID''' – идентификатор класса услуги
 
***** '''TouristCount''' – количество туристов, пользующихся услугой
 
***** '''ID''' – идентификатор услуги (-1 для новой путевки )
 
***** '''Status''' – статус услуги
 
****** '''Name''' – наименование статуса услуги
 
****** '''ID''' –  идентификатор статуса услуги
 
****** '''Description''' – описание статуса услуги
 
****** '''NameLat''' – наименование статуса услуги латиницей
 
****** '''Code''' – код статуса услуги
 
****** '''CodeLat''' – код статуса услуги латиницей
 
****** '''Unicode''' – код ISO статуса услуги
 
***** '''CityKey''' – ключ города предоставления услуги
 
***** '''IsPackage''' – признак пакетной услуги
 
***** '''Code''' – идентификатор услуги
 
***** '''HasDuration''' – услуга с продолжительностью или без
 
** '''ResponseGuid''' – идентификатор ответа<br />
 
В случае ошибок в запросе в ответе получаем сообщение с расшифровкой ошибок и/или номер строки с ошибкой.<br />
 
В случае ошибки в GUID получим сообщение "Invalid user or password (Invalid GUID)."<br />
 
В случае если дата начала больше даты окончания получим сообщение "Parameter 'DateTo' can't be less than 'DateFrom'."<br />
 
В случае отсутствия одного из обязательных параметров получим сообщение "Parameter '<значение параметра>' is required."<br />
 
В случае отсутствия ключа отеля, ключа города, ключа региона получим сообщение "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'." <br />
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода SearchHotelServicesMinHotel<br />
+
The invocation of the method SearchHotelServicesMinHotel<br />
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 3536: Строка 3528:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода SearchHotelServicesMinHotel<br />
+
Returning result of the method SearchHotelServicesMinHotel<br />
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 3705: Строка 3697:
 
</div></div><br />
 
</div></div><br />
  
===SearchActualCostCalculationVariant (Поиск возможных вариантов типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю)===
+
===SearchActualCostCalculationVariant (Search for the possible types of rooms, categories of rooms, accommodations and pansions for which there are actual prices for the hotel)===
Метод выдает возможные варианты типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю.<br />
+
The method provides possible options for room types, room categories, accommodations and pansions for which there are actual prices for the hotel.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request ''' – объект с параметрами запроса:
+
* '''Request ''' – the object with request parameters:
** '''HotelId *''' – идентификатор отеля (обязательный параметр, значения 0 и -1 не допустимы)
+
** '''HotelId *''' – the hotel ID (required parameter, values 0 and -1 are not allowed)
** '''DateFrom *''' – дата «с»
+
** '''DateFrom *''' – date «from»
** '''DateTo *''' – дата «по»
+
** '''DateTo *''' – date «to»
** '''ValidateQuoata''' – проверять ли квоту (true – проверять, false – нет)
+
** '''ValidateQuoata''' – whether to check the quota (true – check, false – no)
** '''QuotaTypes''' – фильтр по типу квоты (0 – запрос, 1 – квота, 2 – стоп)
+
** '''QuotaTypes''' – the filter by quota type (0 – request, 1 – quota, 2 – stop)
** '''CheckAdHot''' – учитывать ли цены на обязательные адхоты (true – учитывать, false – нет)
+
** '''CheckAdHot''' – whether to take into account prices for mandatory adhots (true – take into account, false – not)
** '''Rate *''' – код валюты, в которой будет вестись расчет
+
** '''Rate *''' – the code of the currency in which the calculation will be made
Возвращаемый результат:<br />
+
The returning result:<br />
* '''SearchActualCostCalculationVariantResult''' – результат поиска
+
* '''SearchActualCostCalculationVariantResult''' – The returning result
** '''CostCalculationVariant''' – массив данных
+
** '''CostCalculationVariant''' – an array of the data
*** '''RoomAccommodationId''' – ключ размещения
+
*** '''RoomAccommodationId''' – the accommodation key
*** '''RoomTypeId''' – ключ типа комнаты
+
*** '''RoomTypeId''' – the room type key
*** '''RoomCategoryId''' – ключ категории комнаты
+
*** '''RoomCategoryId''' – the room category key
*** '''PansionId''' – ключ питания
+
*** '''PansionId''' – the pansion key
*** '''RoomAccommodationName''' – код размещения
+
*** '''RoomAccommodationName''' – the accommodation code
*** '''RoomTypeName''' – код типа комнаты
+
*** '''RoomTypeName''' – the room type code
*** '''RoomCategoryName''' – код категории комнаты
+
*** '''RoomCategoryName''' – the room category code
*** '''PansionName''' – код питания
+
*** '''PansionName''' – the pansion code
*** '''CountAdult''' – количество взрослых
+
*** '''CountAdult''' – the number of adults
*** '''CountChildren''' – количество детей
+
*** '''CountChildren''' – the number of children
*** '''Quota''' – значение квоты
+
*** '''Quota''' – the quota value
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода SearchActualCostCalculationVariant
+
The invocation of the method SearchActualCostCalculationVariant
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 3749: Строка 3741:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода SearchActualCostCalculationVariant
+
The returning result for the method SearchActualCostCalculationVariant
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Строка 3792: Строка 3784:
 
</div></div><br />
 
</div></div><br />
  
==Методы работы с ценами==
+
==Methods of working with prices==
===GetSpoList (Получение списка SPO согласно запросу)===
+
===GetSpoList (Receiving the list of SPOs according to the request)===
Метод возвращает  список SPO согласно запросу.<br />
+
The method returns a list of SPOs according to the request.<br />
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<br />
+
An important point: information is returning only for those Costoffers for which there is a publication to the partner (partner group) of the user who connected to the web service.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request''' – класс с параметрами запроса
+
* '''Request''' – the class with request parameters
** '''SvKey *''' – ключ класса услуги (1 – проживание, 2 – трансфер, 4 – экскурсия, 5 – экстрасервис, 0 или -1 не принимаются)
+
** '''SvKey *''' – the service class key (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice, 0 or -1 are not accepted)
** '''PublicationDateBegin *''' – дата публикации SPO «с»
+
** '''PublicationDateBegin *''' – the date of publication of the SPO «from»
** '''PublicationDateEnd *''' – дата публикации цены «по»
+
** '''PublicationDateEnd *''' – the date of publication of the price «till»
Возвращаемый результат:<br />
+
The returning result:<br />
* '''SPOInfo''' – результат поиска
+
* '''SPOInfo''' – the search result
** '''ResultTable''' – таблица с результатом
+
** '''ResultTable''' – the search result
** '''Id''' – ключ SPO
+
** '''Id''' – SPO ID key
** '''Name''' – название SPO
+
** '''Name''' – the name of the SPO
** '''PeriodBeforeCheckIn''' – период до заезда
+
** '''PeriodBeforeCheckIn''' – the period before arrival
** '''SaleDateBegin''' – дата с которой возможно бронирование
+
** '''SaleDateBegin''' – the date from which booking is possible
** '''SaleDateEnd''' – дата до которой возможно бронирование
+
** '''SaleDateEnd''' – the date before which booking is possible
** '''Comment''' – описание SPO
+
** '''Comment''' – the description of the SPO
** '''CreateDate''' – дата создания
+
** '''CreateDate''' – the creation date
** '''UpdateDate''' – дата обновления
+
** '''UpdateDate''' – the update date
** '''SpoType''' – тип SPO (Ordinary – 0, Spo – 1)
+
** '''SpoType''' – the SPO type (Ordinary – 0, Spo – 1)
** '''SvKey''' – класс услуги
+
** '''SvKey''' – the class of service
** '''COLinkServices''' – услуги SPO
+
** '''COLinkServices''' – SPO services
*** '''COLinkService''' – конкретная услуга SPO
+
*** '''COLinkService''' – the specific SPO service
**** '''SvKey''' –  ключ типа услуги
+
**** '''SvKey''' –  the service type key
**** '''Code''' –  ключ услуги
+
**** '''Code''' –  key of the service
**** '''DurationMin''' – минимальная продолжительность
+
**** '''DurationMin''' – minimum duration
**** '''DurationMax''' – максимальная продолжительность
+
**** '''DurationMax''' – maximum duration
**** '''IsDisable''' – заблокирована ли услуга
+
**** '''IsDisable''' – is the service blocked
**** '''DisableDate''' – дата блокировки
+
**** '''DisableDate''' – the date of blocking
** '''COServices''' – информация о ценах на услуги в этом SPO
+
** '''COServices''' – the date of blocking
*** '''COService''' – информация о цене на конкретную услугу в этом SPO
+
*** '''COService''' – the information about the price of a specific service in this SPO
**** '''Code''' – идентификатор услуги
+
**** '''Code''' – the service ID
**** '''CostCount''' – количество цен для услуги в SPO
+
**** '''CostCount''' – the number of prices for the service in SPO
**** '''CostLastUpdate''' – дата последнего изменения (добавления, удаления) цен для услуги в этом СПО
+
**** '''CostLastUpdate''' – the date of the last change (addition, deletion) of prices for the service in this SPO
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetSpoList
+
The invocation of the method GetSpoList
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 3846: Строка 3838:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetSpoList
+
The returning result of the method GetSpoList
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 3896: Строка 3888:
 
</div></div><br />
 
</div></div><br />
  
===GetCosts (Получение брутто цены по параметрам запроса)===
+
===GetCosts (Receiving gross price under request parameters)===
Метод возвращает брутто цены по параметрам запроса.<br />
+
The method returns the gross price according to the request parameters.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request''' – объект с параметрами запроса
+
* '''Request''' – the object with request parameters
** '''SpoId *''' – ключ SPO ((Параметр CO_Id таблицы CostOffers). Список SPO возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoList (Получение списка СПО согласно запросу)|GetSpoList]])<br />
+
** '''SpoId *''' – the SPO key (The CO_Id parameter of the CostOffers table). The SPO list is returning when the [[Master-Interlook:IntegrationService (en)#GetSpoList (Receiving the list of SPOs according to the request)|GetSpoList]] method is requested)<br />
** '''TariffId *''' – ключ тарифа ((В таблице цен соответствует параметру CS_CVId). При установке "-1" подбираются все тарифы)
+
** '''TariffId *''' – the tariff key (In the price table corresponds to the CS_CVId parameter). When setting "-1", all tariffs are selected)
** '''SvKey *''' – тип услуги(1 – проживание, 2 – трансфер, 4 – экскурсия, 5 – экстрасервис)
+
** '''SvKey *''' – the type of service (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice)
** '''Code *''' – ключ услуги (Для отеля это ключ из таблицы Partners. Для всех остальных  услуг – это ключ SL_KEY из таблицы ServiceList. Так же эти ключи можно получить методами веб сервиса: GetServiceList, GetExcursions, GetTransfers, GetHotels)
+
** '''Code *''' – the service key (For the hotel this is the key from the Partners table. For all other services, this is the SL_KEY from the ServiceList table. You can also get these keys using web service methods: GetServiceList, GetExcursions, GetTransfers, GetHotels)
** '''PriceType''' – тип цены проживания (0 – за человека, 1 – за комнату, 2 – все). Если не указан, то запрашивается 2.
+
** '''PriceType''' – the type of accommodation price (0 – per person, 1 – per room, 2 – all)
** '''DownloadOnlyActualCosts *''' – закачка только актуальных цен (1 – получать актуальные, 0 – получать все)   
+
** '''DownloadOnlyActualCosts *''' – the download of only current prices (1 – get current, 0 – get all)   
** '''DownloadUpdateCostsFromDate *''' – закачивать цены только с выбранной даты (1 – настройка включена, 0 – получаем все)  
+
** '''DownloadUpdateCostsFromDate *''' – download prices only from the selected date (1 – the setting is enabled, 0 – receive everything)  
** '''CostsUpdateDateBegin *''' – дата, с которой закачивать цены (используется при установке параметра DownloadUpdateCostsFromDate)
+
** '''CostsUpdateDateBegin *''' – the date from which to upload prices (used when setting the DownloadUpdateCostsFromDate parameter)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetCostsResult''' – результаты выдачи
+
* '''GetCostsResult''' – output results
** '''CostInfo''' – массив данных
+
** '''CostInfo''' – an array of the data
*** '''Id''' – ключ цены
+
*** '''Id''' – the price key
*** '''SvKey''' – ключ типа услуги
+
*** '''SvKey''' – the service type key
*** '''SpoId''' – идентификатор SPO
+
*** '''SpoId''' – ID of the SPO
*** '''Code''' – ключ услуги
+
*** '''Code''' – the key of the service
*** '''AgeFrom''' – возраст «с»
+
*** '''AgeFrom''' – age «from»
*** '''AgeTo''' – возраст «по»
+
*** '''AgeTo''' – age «to»
*** '''CreateDate''' – дата создания цены
+
*** '''CreateDate''' – the date of the creation
*** '''CheckInDateBegin''' – дата заезда «с»
+
*** '''CheckInDateBegin''' – the check-in date «from»
*** '''CheckInDateEnd''' – дата заезда «до»
+
*** '''CheckInDateEnd''' – the check-in date «till»
*** '''CheckOutDateBegin''' – дата выезда «с»
+
*** '''CheckOutDateBegin''' – the departure date «from»
*** '''CheckOutDateEnd''' – дата выезда «до»
+
*** '''CheckOutDateEnd''' – the departure date «till»
*** '''DateBegin''' – дата действия цены «с»
+
*** '''DateBegin''' – the price validity date «from»
*** '''DateEnd''' – дата действия цены «до»
+
*** '''DateEnd''' – the price validity date «till»
*** '''UpdateDate''' – последняя дата обновления цены
+
*** '''UpdateDate''' – the last date of the price update
*** '''Price''' – значение цены
+
*** '''Price''' – the value of the price
*** '''Rate''' – валюта
+
*** '''Rate''' – the currency
*** '''SubCode1''' – параметр цены в зависимости от типа услуги (для проживания ключ типа номера, для трансфера – TransferType, для Adhot – ключ типа комнаты)
+
*** '''SubCode1''' – the price parameter depending on the type of service (for accommodation the room type key, for transfer – TransferType, for Adhot – the  room type key)
*** '''SubCode2''' – параметр цены в зависимости от типа услуги (для проживания ключ питания, для трансфера точка начала, для Adhot – ключ отеля)
+
*** '''SubCode2''' – the price parameter depending on the type of service (for accommodation the pansion key, for transfer the start point, for Adhot – the hotel key)
*** '''SubCode3''' – параметр цены в зависимости от типа услуги (для проживания ключ категории номера, для трансфера точка окончания, для Adhot – ключ категории комнаты)
+
*** '''SubCode3''' – the price parameter depending on the type of service (for accommodation the room category key, for transfer end point, for Adhot – the room category key)
*** '''SubCode4''' – параметр цены в зависимости от типа услуги (для проживания размещение, для Adhot – размещение)
+
*** '''SubCode4''' – the price parameter depending on the type of service (for accommodation the accommodation, for Adhot – the accommodation)
*** '''TariffId''' – ключ тарифа
+
*** '''TariffId''' – the tariff key
*** '''Type''' – тип цены (1 – групповая, 0 – негрупповая. Для отеля за комнату или за человека.)
+
*** '''Type''' – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
*** '''CountryId''' – ключ страны услуги
+
*** '''CountryId''' – the key of the country of the service
*** '''CityFromId''' – ключ города услуги
+
*** '''CityFromId''' – the key of the service city
*** '''CityToId''' – ключ города услуги «куда» (для трансферов)
+
*** '''CityToId''' – the key of the city of the «where» service (for transfers)
*** '''TouroperatorId''' – ключ туроператора
+
*** '''TouroperatorId''' – the tour operator's key
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetCosts
+
The invocation of the method GetCosts
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 3956: Строка 3948:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCosts
+
The returning result of the method GetCosts
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 3974: Строка 3966:
 
</div></div><br />
 
</div></div><br />
  
===SpoPriceMarkDownloaded (Получение информации о доступности конкретного SPO для продажи)===
+
===SpoPriceMarkDownloaded (Receiving information about availability of a specific SPO for sale)===
Метод возвращает информацию о доступности конкретного SPO для продажи.<br />
+
The method returns information about the availability of a specific SPO for sale.<br />
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<br />
+
An important point: information is returning only for those Cost offers for which there is a publication to the partner (partner group) of the user who connected to the web service.<br />
Принимаемые параметры запроса (* – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''SpoKey *''' – ключ SPO (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoLList (получение списка SPO согласно запросу)|GetSpoLList]])
+
* '''SpoKey *''' – SPO key (returning when requesting the [[Master-Interlook:IntegrationService (en)#GetSpoList (Receiving the list of SPOs according to the request)|GetSpoList]] method)
* '''VariantOfCost''' – вариант цены
+
* '''VariantOfCost''' – the price option
* '''SvKey''' – ключ класса услуги
+
* '''SvKey''' – the service class key
* '''Code''' – код услуги
+
* '''Code''' – the service code
Возвращаемый результат:<br />
+
The returning result:<br />
* '''SpoPriceMarkDownloadedResult''' – результат поиска
+
* '''SpoPriceMarkDownloadedResult''' – The returning result
** '''true''' – SPO доступно
+
** '''true''' – SPO is available
** '''false''' – SPO недоступно
+
** '''false''' – SPO is not available
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода SpoPriceMarkDownloaded
+
The invocating of the method SpoPriceMarkDownloaded
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4006: Строка 3999:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода SpoPriceMarkDownloaded
+
The returning result for the method SpoPriceMarkDownloaded
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4019: Строка 4012:
 
</div></div><br />
 
</div></div><br />
  
==Методы работы с услугами==
+
==Methods of working with services==
===GetHotels (Получение списка отелей по параметрам)===
+
===GetHotels (Receiving the list of the hotels by parameters)===
Метод возвращает список отелей по параметрам.<br />
+
The method returns a list of hotels by parameters.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''СountryKey *''' – ключ страны (-1 для всех)
+
* '''СountryKey *''' – the country key (-1 for all)
* '''RegionKey *''' – ключ региона (-1 для всех)
+
* '''RegionKey *''' – the region key (-1 for all)
* '''СityKey *''' – ключ города (-1 для всех)
+
* '''СityKey *''' – the city key (-1 for all)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetHotelsResult''' – результаты выдачи
+
* '''GetHotelsResult''' – the output results
* '''Hotel''' – отель
+
* '''Hotel''' – the hotel
** '''Name''' – название отеля
+
** '''Name''' – the name of the hotel
** '''ID''' – идентификатор отеля
+
** '''ID''' – ID of the hotel
** '''Description''' – описание отеля
+
** '''Description''' – the description of the hotel
** '''NameLat''' – название отеля латиницей
+
** '''NameLat''' – the name of the hotel in Latin
** '''Code''' – код отеля
+
** '''Code''' – the code of the hotel
** '''CodeLat''' – код отеля латиницей
+
** '''CodeLat''' – the hotel code in Latin
** '''Unicode''' – код ISO отеля
+
** '''Unicode''' – the ISO code of the hotel
** '''City''' – город отеля
+
** '''City''' – the hotel city
*** '''Name''' – название города
+
*** '''Name''' – the name of the city
*** '''ID''' – идентификатор города
+
*** '''ID''' – ID of the city
*** '''Description''' – описание города
+
*** '''Description''' – the description of the city
*** '''NameLat''' – название города латиницей
+
*** '''NameLat''' – the name of the city in Latin
*** '''Code''' – код города
+
*** '''Code''' – the city code
*** '''CodeLat''' – код города латиницей
+
*** '''CodeLat''' – the city code in Latin
*** '''Unicode''' – код ISO города
+
*** '''Unicode''' – the ISO code of the city
*** '''CountryID''' – идентификатор страны отеля
+
*** '''CountryID''' – ID of the hotel's country
*** '''RegionID''' – идентификатор региона отеля
+
*** '''RegionID''' – ID of the hotel's region
** '''RegionID''' – идентификатор региона отеля
+
** '''RegionID''' – ID of the hotel's region
** '''PriceType''' – тип цены (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
+
** '''PriceType''' – the price type (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
** '''CountCosts''' – количество цен на отель
+
** '''CountCosts''' – the number of hotel p
** '''CityId''' – идентификатор города отеля
+
** '''CityId''' – ID of the hotel's city
** '''HotelCategoryID''' – идентификатор категории отеля
+
** '''HotelCategoryID''' – ID of the hotel category
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetHotels
+
The invocating of the method GetHotels
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4067: Строка 4061:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetHotels
+
The returning result for the method GetHotels
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4131: Строка 4125:
 
</div></div><br />
 
</div></div><br />
  
===GetTransfers (Получение списка трансферов по параметрам)===
+
===GetTransfers (Receiving the list of the transfers by parameters)===
Метод возвращает список трансферов по параметрам.<br />
+
The method returns a list of transfers by parameters.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request''' – объект с параметрами запроса
+
* '''Request''' – the object with request parameters
** '''СountryKey *''' – ключ страны (-1 для всех)
+
** '''СountryKey *''' – the country key (-1 for all)
** '''СityKey *''' – ключ города (-1 для всех)
+
** '''СityKey *''' – the city key (-1 for all)
** '''RegionKey *''' – ключ региона (-1 для всех)
+
** '''RegionKey *''' – the region key (-1 for all)
** '''TypeKey *''' – ключ типа трансфера (-1 для всех)
+
** '''TypeKey *''' – the transfer type key (-1 for all)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetTransferResult''' – результаты выдачи
+
* '''GetTransferResult''' – the output results
** '''TransferDirectionInfo''' – массив данных
+
** '''TransferDirectionInfo''' – an array of the data
*** '''ID''' – идентификатор трансфера
+
*** '''ID''' – the transfer ID
*** '''Name''' – название
+
*** '''Name''' – the name
*** '''TransferTypeID''' – ключ типа трансфера
+
*** '''TransferTypeID''' – the transfer type key
*** '''TransferTypeName''' – название типа трансфера
+
*** '''TransferTypeName''' – the name of the transfer type
*** '''CityFromID''' – идентификатор города откуда
+
*** '''CityFromID''' – ID of the city from where
*** '''CityFromName''' – название города откуда
+
*** '''CityFromName''' – the name of the city from where
*** '''CityToID''' – идентификатор города куда
+
*** '''CityToID''' – ID of the city to
*** '''CityToName''' – название города куда
+
*** '''CityToName''' – the name of the city where
*** '''PointFromID''' – идентификатор точки откуда
+
*** '''PointFromID''' – ID of the point from where
*** '''PointFromName''' – название точки откуда
+
*** '''PointFromName''' – the name of the point from where
*** '''PointToID''' – идентификатор точки куда
+
*** '''PointToID''' – ID of the point to
*** '''PointToName''' – название точки куда
+
*** '''PointToName''' – the name of the point to
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTransfers
+
The invocation of the method GetTransfers
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4178: Строка 4172:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransfers
+
The returning result for the method GetTransfers
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4197: Строка 4191:
 
</div></div><br />
 
</div></div><br />
  
===GetExcursions (Получение списка экскурсий по параметрам)===
+
===GetExcursions (Receiving the list of the excursions by parameters)===
Метод возвращает экскурсии по параметрам.<br />
+
The method returns excursions by parameters.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''СountryKey *''' – ключ страны (-1 для всех)
+
* '''СountryKey *''' – the country key (-1 for all)
* '''RegionKey *''' – ключ региона (-1 для всех)
+
* '''RegionKey *''' – the region key (-1 for all)
* '''СityKey *''' – ключ города (-1 для всех)
+
* '''СityKey *''' – the city key (-1 for all)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetExcursionsResult''' – результаты выдачи
+
* '''GetExcursionsResult''' – the output results
** '''Excursion''' – массив данных
+
** '''Excursion''' – an array of the data
*** '''Name''' – название экскурсии
+
*** '''Name''' – the name of the tour
*** '''ID''' – идентификатор экскурсии
+
*** '''ID''' – ID of the excursion
*** '''Description''' – описание экскурсии
+
*** '''Description''' – the description of the tour
*** '''NameLat''' – название экскурсии латиницей
+
*** '''NameLat''' – the name of the tour in Latin
*** '''Code''' – код экскурсии
+
*** '''Code''' – the code of the excursion
*** '''CodeLat''' – код экскурсии латиницей
+
*** '''CodeLat''' – the code of the excursion in Latin
*** '''Unicode''' – код ISO экскурсии
+
*** '''Unicode''' – ISO code of the excursion
*** '''CityID''' – идентификатор города
+
*** '''CityID''' – ID of the city
*** '''RegionID''' – идентификатор региона
+
*** '''RegionID''' – the region ID
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetExcursions
+
The invocation of the method GetExcursions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4232: Строка 4226:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExcursions
+
The returning result for the method GetExcursions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4258: Строка 4252:
 
</div></div><br />
 
</div></div><br />
  
===GetServiceList (Получение списка дополнительных услуг)===
+
===GetServiceList (Receiving the list of additional services)===
Метод возвращает дополнительные услуги.<br />
+
The method returns additional services.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetServiceListResult''' – результаты выдачи
+
* '''GetServiceListResult''' – the output results
** '''ServiceList''' – массив данных
+
** '''ServiceList''' – an array of the data
*** '''AdditionalParams''' – дополнительные параметры
+
*** '''AdditionalParams''' – the additional parameters
**** '''Key''' – ключ
+
**** '''Key''' – the key
**** '''Value''' – значение
+
**** '''Value''' – the value
*** '''Name''' – название дополнительной услуги
+
*** '''Name''' – the name of the additional service
*** '''ID''' – идентификатор дополнительной услуги
+
*** '''ID''' – ID of the additional service
*** '''NameLat''' – название дополнительной услуги латиницей
+
*** '''NameLat''' – the name of the additional service in Latin
*** '''Code''' – код дополнительной услуги
+
*** '''Code''' – the code of the additional service
*** '''CodeLat''' – код дополнительной услуги латиницей
+
*** '''CodeLat''' – the code of the additional service in Latin
*** '''Unicode''' – код ISO дополнительной услуги
+
*** '''Unicode''' – the ISO code of the additional service
*** '''ServiceClaseID''' – идентификатор класса дополнительной услуги
+
*** '''ServiceClaseID''' – ID of the additional service class
*** '''CountryID''' – идентификатор страны дополнительной услуги
+
*** '''CountryID''' – ID of the country of the additional service
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetServiceList
+
The invocation of the method GetServiceList
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4287: Строка 4281:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetServiceList
+
The returning result for the method GetServiceList
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4338: Строка 4332:
 
</div></div><br />
 
</div></div><br />
  
===GetExtraServices (Получение списка дополнительных услуг включая услуги типа AdHot)===
+
===GetExtraServices (Receiving the list of additional services including services of AdHot type)===
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot.<br />
+
The method returns a list of additional services, including services of the AdHot type.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request''' – объект с параметрами запроса
+
* '''Request''' – the object with request parameters
** '''ServiceClassKey *''' – ключ класса дополнительной услуги (-1 для всех)
+
** '''ServiceClassKey *''' – the additional service class key (-1 for all)
** '''СountryKey *''' – ключ страны дополнительной услуги (-1 для всех)
+
** '''СountryKey *''' – the country key of the additional service (-1 for all)
** '''СityKey *''' – ключ города  для AdHot (-1 для всех)
+
** '''СityKey *''' – the city key for AdHot (-1 for all)
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
+
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
** '''RegionKey *''' – ключ региона (-1 для всех)
+
** '''RegionKey *''' – the region key (-1 for all)
** '''TypeKey *''' – тип AdHot (-1 – для всех, 1 – Manual, 2 – HardLink, 3 – WithCosts)
+
** '''TypeKey *''' – the type of AdHot (-1 – for everyone, 1 – Manual, 2 – HardLink, 3 – WithCosts)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetExtraServicesResult''' – результаты выдачи
+
* '''GetExtraServicesResult''' – the output results
** '''ExtraServiceInfo''' – массив данных
+
** '''ExtraServiceInfo''' – an array of the data
*** '''Id''' – идентификатор дополнительной услуги
+
*** '''Id''' – ID of the additional service
*** '''Name''' – название дополнительной услуги
+
*** '''Name''' – the name of the additional service
*** '''Description''' – описание  дополнительной услуги
+
*** '''Description''' – the description of the additional service
*** '''ServiceClassId''' – идентификатор класса дополнительной услуги
+
*** '''ServiceClassId''' – ID of the class of the additional service
*** '''IsWeb''' – доступность дополнительной услуги в онлайн
+
*** '''IsWeb''' – the availability of an additional service online
*** '''DurationType''' – c продолжительностью или без (1 – с продолжительностью)
+
*** '''DurationType''' – with or without duration (1 – with duration)
*** '''UpdateDate''' – дата последнего обновления дополнительной услуги
+
*** '''UpdateDate''' – the date of the last update of the additional service
*** '''IsPartnerLikeHotel''' – партнер у AdHot такой же как и у проживания
+
*** '''IsPartnerLikeHotel''' – is partner of AdHot is the same as that of accommodation
*** '''LinkType''' – тип AdHot (1 - Manual, 2 – HardLink, 3 - WithCosts)
+
*** '''LinkType''' – the AdHot type (1 Manual, 2 – HardLink, 3 WithCosts)
*** '''IsAddHot''' – является ли услуга AdHot (true – является, false – не является)
+
*** '''IsAddHot''' – whether the service is AdHot (true – is, false – is not)
*** '''CountryList''' – список ключей стран для AdHot (если коллекция пустая значит для всех)
+
*** '''CountryList''' – the list of country keys for AdHot (if the collection is empty, it means for all)
*** '''CityList''' – список ключей городов для AdHot (если коллекция пустая значит для всех)
+
*** '''CityList''' – the list of city keys for AdHot (if the collection is empty, it means for all)
*** '''HotelList''' – список ключей отелей для AdHot (если коллекция пустая значит для всех)
+
*** '''HotelList''' – the list of hotel keys for AdHot (if the collection is empty, it means for all)
*** '''RoomTypeList''' – список ключей типов комнат для AdHot (если коллекция пустая значит для всех)
+
*** '''RoomTypeList''' – the list of room type keys for AdHot (if the collection is empty, it means for all)
*** '''RoomCategoryList''' – список ключей категорий комнат для AdHot (если коллекция пустая значит для всех)
+
*** '''RoomCategoryList''' – the list of room category keys for AdHot (if the collection is empty, it means for all)
*** '''AccommodationList''' – список ключей размещений для AdHot (если коллекция пустая значит для всех)
+
*** '''AccommodationList''' – the list of accommodation keys for AdHot (if the collection is empty, it means for all)
*** '''HotelLinkTypeList''' – список переопределений типа AdHot для отелей
+
*** '''HotelLinkTypeList''' – the list of redefinitions of the AdHot type for hotels
**** '''HotelLinkTypeEx''' – переопределение типа AdHot для отеля
+
**** '''HotelLinkTypeEx''' – the redefining the AdHot type for a hotel
***** '''HotelId''' – ключ отеля
+
***** '''HotelId''' – the hotel key
***** '''ExtraServiceLinkType''' – переопределенный тип AdHot (1 – Manual, 2 – HardLink, 3 – WithCosts)
+
***** '''ExtraServiceLinkType''' – the redefined AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetExtraServices
+
The invocation of the method GetExtraServices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4396: Строка 4390:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServices
+
The returning result for the method GetExtraServices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4444: Строка 4438:
 
</div></div><br />
 
</div></div><br />
  
===GetExtraServiceWithPrices (Получение списка дополнительных услуг включая услуги типа AdHot с ценами)===
+
===GetExtraServiceWithPrices (Receiving the list of additional services including services of AdHot type with prices)===
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot с ценами.<br />
+
The method returns a list of additional services, including services of the AdHot type with prices.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' required):<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Request''' – объект с параметрами запроса
+
* '''Request''' – the object with request parameters
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
+
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
** '''DateFrom''' – дата действия от
+
** '''DateFrom''' – the date of validity from
** '''DateTo''' – дата действия до
+
** '''DateTo''' – the date validity before
Возвращаемый результат:<br />
+
The returning result:<br />
 
* '''GetExtraServiceWithPricesResult Message="Ok">
 
* '''GetExtraServiceWithPricesResult Message="Ok">
** '''CostInfo''' – массив данных
+
** '''CostInfo''' – an array of the data
*** '''Id''' – ключ цены
+
*** '''Id''' – the price key
*** '''SvKey''' – ключ типа услуги
+
*** '''SvKey''' – the service type key
*** '''SpoId''' – идентификатор SPO
+
*** '''SpoId''' – ID of the SPO
*** '''Code''' – ключ услуги
+
*** '''Code''' – the key of the service
*** '''AgeFrom''' – возраст «с»
+
*** '''AgeFrom''' – age «from»
*** '''AgeTo''' – возраст «по»
+
*** '''AgeTo''' – age «to»
*** '''CreateDate''' – дата создания цены
+
*** '''CreateDate''' – the date the price was created
*** '''CheckInDateBegin''' – дата заезда «с»
+
*** '''CheckInDateBegin''' – the check-in date «from»
*** '''CheckInDateEnd''' – дата заезда «до»
+
*** '''CheckInDateEnd''' – the check-in date «till»
*** '''CheckOutDateBegin''' – дата выезда «с»
+
*** '''CheckOutDateBegin''' – the departure date «from»
*** '''CheckOutDateEnd''' – дата выезда «до»
+
*** '''CheckOutDateEnd''' – the departure date «till»
*** '''DateBegin''' – дата действия цены «с»
+
*** '''DateBegin''' – the price validity date «from»
*** '''DateEnd''' – дата действия цены «до»
+
*** '''DateEnd''' – the price validity date «till»
*** '''UpdateDate''' – последняя дата обновления цены
+
*** '''UpdateDate''' – the last date of the price update
*** '''Price''' – значение цены
+
*** '''Price''' – the value of the price
*** '''Rate''' – валюта
+
*** '''Rate''' – the currency
*** '''SubCode1''' – параметр цены в зависимости от типа услуги (для проживания ключ типа номера, для трансфера – TransferType, для Adhot – ключ типа комнаты)
+
*** '''SubCode1''' – the price parameter depending on the type of service (for accommodation the room type key, for transfer – TransferType, for Adhot – the room type key)
*** '''SubCode2''' – параметр цены в зависимости от типа услуги (для проживания ключ питания, для трансфера точка начала, для Adhot – ключ отеля)
+
*** '''SubCode2''' – the price parameter depending on the type of service (for accommodation the pansion key, for transfer the start point, for Adhot – the hotel key)
*** '''SubCode3''' – параметр цены в зависимости от типа услуги (для проживания ключ категории номера, для трансфера точка окончания, для Adhot – ключ категории комнаты)
+
*** '''SubCode3''' – the price parameter depending on the type of service (for accommodation the room category key, for transfer the end point, for Adhot – the room category key)
*** '''SubCode4''' – параметр цены в зависимости от типа услуги (для проживания размещение, для Adhot – размещение)
+
*** '''SubCode4''' – the price parameter depending on the type of service (for the accommodation accommodation, for Adhot – the accommodation)
*** '''TariffId''' – ключ тарифа
+
*** '''TariffId''' – the tariff key
*** '''Type''' – тип цены (1 – групповая, 0 – негрупповая. Для отеля за комнату или за человека.)
+
*** '''Type''' – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
*** '''CountryId''' – ключ страны услуги
+
*** '''CountryId''' – the key of the country of the service
*** '''CityFromId''' – ключ города услуги
+
*** '''CityFromId''' – the key of the service city
*** '''CityToId''' – ключ города услуги «куда» (для трансферов)
+
*** '''CityToId''' – the key of the city of the "where" service (for transfers)
*** '''TouroperatorId''' – ключ туроператора
+
*** '''TouroperatorId''' – the tour operator's key
*** '''AdHotName''' – название доп. услуги в отеле
+
*** '''AdHotName''' – the name of AdHot
*** '''LinkType''' – тип доп. услуги в отеле: 1 - Manual (услуга, добавляемая по желанию), 2 – HardLink (обязательная услуга в отеле), 3 - WithCosts (обязательная услуга, добавляемая при наличии цены в период бронирования отеля)
+
*** '''LinkType''' – the AdHot type (1 Manual, 2 – HardLink, 3 WithCosts)
*** '''DurationType''' – услуга c продолжительностью или без (1 – цена указана за сутки, 0 - цена указана за весь период проживания)
+
*** '''DurationType''' – with or without duration (1 – with duration)
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetExtraServicesWithPrices
+
The invocation of the method GetExtraServicesWithPrices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4506: Строка 4500:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServicesWithPrices
+
The invocation of the method GetExtraServicesWithPrices
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4541: Строка 4535:
 
</div></div><br />
 
</div></div><br />
  
===CalculateSingleCost (Расчет стоимости услуги по ее параметрам стандартным механизмом расчета)===
+
===CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism)===
Метод рассчитывает стоимость услуги по ее параметрам стандартным механизмом расчета.<br />
+
CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism) .<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''SvKey *''' – ключ типа услуги
+
* '''SvKey *''' – the service type key
* '''СountryKey *''' – ключ страны
+
* '''СountryKey *''' – the country key
* '''Сode *''' – ключ услуги
+
* '''Сode *''' – the service key
* '''Subcode1 *''' – параметр цены в зависимости от типа услуги (для проживания ключ типа номера, для трансфера – TransferType)
+
* '''Subcode1 *''' – the price parameter depending on the type of service (for accommodation the room type key, for transfer – TransferType)
* '''Subcode2 *''' – параметр цены в зависимости от типа услуги (для проживания ключ питания, для трансфера точка начала)
+
* '''Subcode2 *''' – price parameter depending on the type of service (for accommodation the pansion key, for transfer the starting point)
* '''Subcode3 *''' – параметр цены в зависимости от типа услуги (для проживания ключ категории номера, для трансфера точка окончания)
+
* '''Subcode3 *''' – the price parameter depending on the type of service (for accommodation the room category key, for transfer the end point)
* '''Subcode4 *''' – параметр цены в зависимости от типа услуги (для проживания размещение)
+
* '''Subcode4 *''' – the price parameter depending on the type of service (for accommodation the accommodation)
* '''TourOperatorGroupKey *''' – ключ группы туроператора
+
* '''TourOperatorGroupKey *''' – the key of the tour operator's grou
* '''TourOperatorKey *''' – ключ туроператора (продавца)
+
* '''TourOperatorKey *''' – the key of the tour operator (seller)
* '''MrKey *''' – ключ рынка
+
* '''MrKey *''' – the market key
* '''FilialKey *''' – ключ филиала
+
* '''FilialKey *''' – the branch key
* '''TafiffKey *''' – ключ тарифа
+
* '''TafiffKey *''' – the tariff key
* '''Pax *''' – Pax по услуге
+
* '''Pax *''' – Pax by service
* '''Ages *''' – список с возрастами детей
+
* '''Ages *''' – the list with the ages of children
* '''CheckInDate *''' – дата «с»
+
* '''CheckInDate *''' – date «from»
* '''CheckOutDate *''' – дата «по»
+
* '''CheckOutDate *''' – date «till»
* '''CityKey *''' – ключ города
+
* '''CityKey *''' – the city key
* '''CityKeyTo *''' – ключ города «куда»
+
* '''CityKeyTo *''' – the key of the city «where»
* '''Rate *''' – код валюты
+
* '''Rate *''' – the currency code
* '''PricePerRoom *''' – за комнату или за человека
+
* '''PricePerRoom *''' – per room or per person
* '''OnlyPublished *''' – учитывать только опубликованные цены
+
* '''OnlyPublished *''' – consider only published prices
* '''ServiceProviderKey *''' –  ключ поставщика услуги
+
* '''ServiceProviderKey *''' –  the key of the service provider
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CalculateSingleCostResult''' – результаты выдачи
+
* '''CalculateSingleCostResult''' – the output results
** '''Brutto''' – рассчитанная брутто цена
+
** '''Brutto''' – the calculated gross price
** '''ProviderKey''' – ключ поставщика услуги
+
** '''ProviderKey''' – the key of the service provider
 
** '''IsCalcBrutto'''
 
** '''IsCalcBrutto'''
** '''CancellationPolicies''' – Политика аннуляции
+
** '''CancellationPolicies''' – the cancellation Policy
** '''PolicyKey''' – ключ политики
+
** '''PolicyKey''' – the policy key
** '''DateFrom''' – дата "от"
+
** '''DateFrom''' – date "from"
** '''DateTo''' – дата "до"
+
** '''DateTo''' – date "till"
** '''PenaltyValue''' – значение штрафа
+
** '''PenaltyValue''' – the penalty value
** '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
+
** '''IsPercent''' - the percentage indicating that the penalty is in "%" (true) or in "nights" (false)
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CalculateSingleCost
+
The invocation of the method CalculateSingleCost
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4620: Строка 4615:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CalculateSingleCost
+
The returning result for the method CalculateSingleCost
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4653: Строка 4648:
 
</div></div><br />
 
</div></div><br />
  
==Методы работы со справочниками==
+
==Methods of working with dictionaries==
  
===GetRegions (Получение списка регионов)===
+
===GetRegions (Receiving the list of the regions)===
Метод возвращает список регионов.
+
The method returns a list of regions.
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''СountryKey *''' – идентификатор страны (-1 для всех)<br />
+
* '''СountryKey *''' – the country ID (-1 for all)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRegionsResult''' – результат поиска
+
* '''GetRegionsResult''' – the search result
** '''Region''' – массив данных
+
** '''Region''' – an array of the data
*** '''Name''' – название региона
+
*** '''Name''' – the name of the region
*** '''ID''' – идентификатор региона
+
*** '''ID''' – ID of the region
*** '''Description''' – описание региона
+
*** '''Description''' – the description of the region
*** '''NameLat''' – наименование региона латиницей
+
*** '''NameLat''' – the name of the region in Latin
*** '''Code''' – код региона
+
*** '''Code''' – the region code
*** '''CodeLat''' – код региона латиницей
+
*** '''CodeLat''' – the region code in Latin
*** '''Unicode''' – код ISO региона
+
*** '''Unicode''' – the ISO code of the region
*** '''CountryID''' – идентификатор страны
+
*** '''CountryID''' – the country ID
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRegions
+
The Invocation of method GetRegions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4685: Строка 4680:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRegions
+
The returning result of method GetRegions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4719: Строка 4714:
 
</div></div><br />
 
</div></div><br />
  
===GetCities (Получение списка городов)===
+
===GetCities (Receiving the list of the cities)===
Метод возвращает список городов.
+
The method returns a list of cities.
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''СountryKey *''' – идентификатор страны (-1 для всех)<br />
+
* '''СountryKey *''' – country ID (-1 for all)
* '''RegionKey *''' – идентификатор региона (-1 для всех)<br />
+
* '''RegionKey *''' – region ID (-1 for all)
Возвращаемый результат:<br />
+
The returning result:
* '''GetCitiesResult''' – результат поиска
+
* '''GetCitiesResult''' – the search result
** '''City''' – массив данных
+
** '''City''' – an array of the data
*** '''Name''' – название города
+
*** '''Name''' – the name of the city
*** '''ID''' – идентификатор города
+
*** '''ID''' – ID of the city
*** '''Description''' – описание города
+
*** '''Description''' – the description of the city
*** '''NameLat''' – наименование города латиницей
+
*** '''NameLat''' – the name of the city in Latin
*** '''Code''' – код города
+
*** '''Code''' – the city code
*** '''CodeLat''' – код города латиницей
+
*** '''CodeLat''' – the city code in Latin
*** '''Unicode''' – код ISO города
+
*** '''Unicode''' – the ISO code of the city
*** '''CountryID''' – идентификатор города
+
*** '''CountryID''' – ID of the city
*** '''RegionID''' – идентификатор региона
+
*** '''RegionID''' – the region ID
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetCities
+
The invocation of the method GetCities
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4752: Строка 4747:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCities
+
The returning result for the method GetCities
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4788: Строка 4783:
 
</div></div><br />
 
</div></div><br />
  
===GetCountries (Получение списка стран)===
+
===GetCountries (Receiving the list of the countries)===
Метод возвращает список стран.<br />
+
The method returns a list of countries.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetCountriesResult''' – результат поиска
+
* '''GetCountriesResult''' – the search result
** '''Country''' – массив данных
+
** '''Country''' – the an array of the data
*** '''Name''' – название страны
+
*** '''Name''' – the name of the country
*** '''ID''' – идентификатор страны
+
*** '''ID''' – the country ID
*** '''Description''' – описание страны
+
*** '''Description''' – the description of the country
*** '''NameLat''' – наименование страны латиницей
+
*** '''NameLat''' – the name of the country in Latin
*** '''Code''' – код страны
+
*** '''Code''' – the country code
*** '''CodeLat''' – код страны латиницей
+
*** '''CodeLat''' – the country code in Latin
*** '''Unicode''' – код ISO страны
+
*** '''Unicode''' – the ISO code of the country
*** '''IsIncoming''' – параметр для внутреннего использования
+
*** '''IsIncoming''' – the parameter for internal use
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetCountries
+
The invocation of the method GetCountries
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4814: Строка 4809:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCountries
+
The returning result for the method GetCountries
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4849: Строка 4844:
 
</div></div><br />
 
</div></div><br />
  
===GetRoomType (Получение списка типов комнат)===
+
===GetRoomType (Receiving the list of the room types)===
Метод возвращает список типов комнат.<br />
+
The method returns a list of room types.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRoomTypeResult''' – результат поиска
+
* '''GetRoomTypeResult''' – the search result
** '''RoomType''' – массив данных
+
** '''RoomType''' – an array of the data
*** '''Name''' – название типа комнаты
+
*** '''Name''' – the name of the room type
*** '''ID''' – идентификатор типа комнаты
+
*** '''ID''' – ID of the room type
*** '''Description''' – описание типа комнаты
+
*** '''Description''' – the description of the room type
*** '''NameLat''' – наименование типа комнаты
+
*** '''NameLat''' – the name of the room type
*** '''Code''' – код типа комнаты
+
*** '''Code''' – the room type code
*** '''CodeLat''' – код типа комнаты латиницей
+
*** '''CodeLat''' – the room type code in Latin
*** '''Unicode''' – код ISO типа комнаты
+
*** '''Unicode''' – the ISO code of the room type
*** '''Places''' – количество основных мест
+
*** '''Places''' – the number of main places
*** '''ExPlaces''' – количество дополнительных мест
+
*** '''ExPlaces''' – the number of additional seats
*** '''PrintOrder''' – печать отчета
+
*** '''PrintOrder''' – the number of additional seats
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRoomType
+
The invocation of the method GetRoomType
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4877: Строка 4872:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomType
+
The returning result for the method GetRoomType
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4928: Строка 4923:
 
</div></div><br />
 
</div></div><br />
  
=== GetRoomCategories (Получение списка категорий комнат)===
+
===GetRoomCategories (Receiving the list of the room categories)===
Метод возвращает список категорий комнат.<br />
+
The method returns a list of room categories.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRoomCategoriesResult''' – результат поиска
+
* '''GetRoomCategoriesResult''' – the search result
** '''RoomCategory''' – массив данных
+
** '''RoomCategory''' – an array of the data
*** '''Name''' – название категории комнаты
+
*** '''Name''' – the name of the room category
*** '''ID''' – идентификатор категории комнаты
+
*** '''ID''' – ID of the room category
*** '''Description''' – описание категории комнаты
+
*** '''Description''' – the description of the room category
*** '''NameLat''' – наименование категории комнаты
+
*** '''NameLat''' – the name of the room category
*** '''Code''' – код категории комнаты
+
*** '''Code''' – the room category code
*** '''CodeLat''' – код категории комнаты латиницей
+
*** '''CodeLat''' – the room category code in Latin
*** '''Unicode''' – код ISO категории комнаты
+
*** '''Unicode''' – the ISO code of the room category
*** '''MainPlaces''' – количество основных мест
+
*** '''MainPlaces''' – the number of main places
*** '''ExtraPlaces''' – количество дополнительных мест
+
*** '''ExtraPlaces''' – the number of additional places
*** '''IsMain''' – параметр для внутреннего пользования
+
*** '''IsMain''' – the parameter for internal use
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRoomCategories
+
The invocation of the method GetRoomCategories
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 4956: Строка 4951:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomCategories
+
The returning result for the method GetRoomCategories
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 4993: Строка 4988:
 
</div></div><br />
 
</div></div><br />
  
=== GetPansions (Получение списка типов питаний)===
+
===GetPansions (Receiving the list of the pansion types)===
Метод возвращает список типов питаний.<br />
+
The method returns a list of types of meals.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetPansionsResult''' – результат поиска
+
* '''GetPansionsResult''' – the search result
** '''Pansion''' – массив данных
+
** '''Pansion''' – the search result
*** '''Name''' – название типа питания
+
*** '''Name''' – the name of the pansion type
*** '''ID''' – идентификатор типа питания
+
*** '''ID''' – ID of the type of pansion
*** '''Description''' – описание типа питания
+
*** '''Description''' – the description of the type of pansion
*** '''NameLat''' – наименование типа питания латиницей
+
*** '''NameLat''' – the name of the type of pansion in Latin
*** '''Code''' – код типа питания
+
*** '''Code''' – the code of the type of pansion
*** '''CodeLat''' – код типа питания латиницей
+
*** '''CodeLat''' – the type of pansion code in Latin
*** '''Unicode''' – код ISO типа питания
+
*** '''Unicode''' – the ISO code of the pansion type
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetPansions
+
The invocation of the method GetPansions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5018: Строка 5013:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetPansions
+
The returning result for the method GetPansions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5059: Строка 5054:
 
</div></div><br />
 
</div></div><br />
  
=== GetRatings (Получение массива категорий (звездностей) отелей)===
+
===GetRatings (Receiving an array of hotel categories (hotel stars))===
Метод возвращает массив категорий отелей.<br />
+
The method returns an array of hotel categories.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRatingsResult''' – результат поиска
+
* '''GetRatingsResult''' – the search result
** '''HotelCategory''' – массив данных
+
** '''HotelCategory''' – an array of the data
*** '''Name''' – название категории отеля
+
*** '''Name''' – the name of the hotel category
*** '''ID''' – идентификатор категории отеля
+
*** '''ID''' – ID of the hotel category
*** '''Description''' – описание категории отеля
+
*** '''Description''' – the description of the hotel category
*** '''NameLat''' – наименование категории отеля латиницей
+
*** '''NameLat''' – the name of the hotel category in Latin
*** '''Code''' – код категории отеля
+
*** '''Code''' – the code of the hotel category
*** '''CodeLat''' – код категории отеля латиницей
+
*** '''CodeLat''' – the code of the hotel category
*** '''Unicode''' – код ISO категории отеля
+
*** '''Unicode''' – the ISO code of the hotel categoryя
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRatings
+
The invocation of the method GetRatings
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5084: Строка 5079:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRatings
+
The returning result for the method GetRatings
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5116: Строка 5111:
 
</div></div><br />
 
</div></div><br />
  
=== GetFlights (Получение списка авиарейсов)===
+
===GetFlights (Receiving the list of the regions)===
Метод возвращает список авиарейсов.<br />
+
The method returns a list of flights.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetFlightsResult''' – результат поиска
+
* '''GetFlightsResult''' – the search result
** '''Flight''' – массив данных
+
** '''Flight''' – an array of the data
*** '''AirportFrom''' – трансферный узел в пункте отбытия
+
*** '''AirportFrom''' – the transfer hub at the departure point
**** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
**** '''Name''' – the name of the transfer node from the [[Master-Interlook:Справочники. Flight numbers|Flight numbers]] dictionary
**** '''ID''' – идентификатор города трансферного узла
+
**** '''ID''' – ID of the city of the transfer node
**** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
**** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
**** '''NameLat''' – наименование трансферного узла
+
**** '''NameLat''' – the name of the transfer node
**** '''Code''' – код трансферного узла
+
**** '''Code''' – the code of the transfer node
**** '''CodeLat''' – код трансферного узла латиницей
+
**** '''CodeLat''' – the code of the transfer node in Latin
**** '''Unicode''' – код ISO трансферного узла
+
**** '''Unicode''' – the ISO code of the transfer node
**** '''RegionID''' – идентификатор региона расположения трансферного узла
+
**** '''RegionID''' – ID of the region of the transfer node location
**** '''CityID''' – идентификатор города расположения трансферного узла
+
**** '''CityID''' – ID of the city where the transfer node is located
*** '''AirportTo''' – трансферный узел в пункте прибытия
+
*** '''AirportTo''' – the transfer hub at the point of arrival
**** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
**** '''Name''' – the name of the transfer node from the [[Master-Interlook:Справочники. Flight numbers|Flight numbers]] dictionary
**** '''ID''' – идентификатор города трансферного узла
+
**** '''ID''' – ID of the city of the transfer node
**** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
**** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
**** '''NameLat''' – наименование трансферного узла
+
**** '''NameLat''' – the name of the transfer node
**** '''Code''' – код трансферного узла
+
**** '''Code''' – the code of the transfer node
**** '''CodeLat''' – код трансферного узла латиницей
+
**** '''CodeLat''' – the code of the transfer node in Latin
**** '''Unicode''' – код ISO трансферного узла
+
**** '''Unicode''' – the ISO code of the transfer node
**** '''RegionID''' – идентификатор региона расположения трансферного узла
+
**** '''RegionID''' – ID of the region of the transfer node location
**** '''CityID''' – идентификатор города расположения трансферного узла
+
**** '''CityID''' – ID of the region of the transfer node location
*** '''TimeFrom''' – время от
+
*** '''TimeFrom''' – time from
*** '''TimeTo''' – время до
+
*** '''TimeTo''' – time to
*** '''DateFrom''' – дата от
+
*** '''DateFrom''' – date from
*** '''DateTo''' – дата до
+
*** '''DateTo''' – date to
 
*** '''IsArrival''' –  
 
*** '''IsArrival''' –  
 
*** '''Available''' –  
 
*** '''Available''' –  
*** '''ID''' – идентификатор строки из таблицы '''Charter''' из БД
+
*** '''ID''' – ID of the row from the Charter table from the database
*** '''Name''' – наименование из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
*** '''Name''' – ID of the row from the Charter table from the database
*** '''Number''' – номер перелета из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
*** '''Number''' – the flight number from the Flight numbers dictionary
*** '''ArrivalFlightNumber''' – номер рейса прибытия из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
*** '''ArrivalFlightNumber''' – the arrival flight number from the Flight numbers dictionary
*** '''DepartureFlightNumber''' – номер рейса вылета из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
*** '''DepartureFlightNumber''' – the departure flight number from the Flight numbers dictionary
  
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetFlights
+
The invocation of the method GetFlights
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5166: Строка 5161:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetFlights
+
The returning result for the method GetFlights
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5213: Строка 5208:
 
</div></div><br />
 
</div></div><br />
  
=== GetAirport (Получение списка трансферных узлов)===
+
===GetAirport (Receiving the list of the transfer nodes)===
Метод возвращает список трансферных узлов.<br />
+
The method returns a list of transfer nodes.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetFlightsResult''' – результат поиска
+
* '''GetFlightsResult''' – the search result
** '''Airport''' – массив данных
+
** '''Airport''' – an array of the data
*** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''Name''' – the name of the transfer node from the Pickup [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
*** '''ID''' – идентификатор трансферного узла
+
*** '''ID''' – ID of the transfer node
*** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
*** '''NameLat''' – название города трансферного узла латиницей
+
*** '''NameLat''' – the name of the city of the transfer node in Latin
*** '''Code''' – код города трансферного узла латиницей
+
*** '''Code''' – the city code of the transfer node in Latin
*** '''CodeLat''' – код города трансферного узла латиницей
+
*** '''CodeLat''' – the city code of the transfer node in Latin
*** '''Unicode''' – код ISO города трансферного узла латиницей
+
*** '''Unicode''' – the ISO code of the city of the transfer node in Latin
*** '''RegionID''' – идентификатор региона расположения трансферного узла
+
*** '''RegionID''' – ID of the region of the transfer node location
*** '''CityID''' – идентификатор города расположения трансферного узла
+
*** '''CityID''' – ID of the city where the transfer node is located
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetAirport
+
The invocation of the method GetAirport
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5240: Строка 5235:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetAirport
+
The returning result for the method GetAirport
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5276: Строка 5271:
 
</div></div><br />
 
</div></div><br />
  
=== GetProviders (Получение списка партнеров, которые являются поставщиками услуг)===
+
===GetProviders (Receiving the list of the partners which are providers of services)===
Метод возвращает список партнеров системы, которые являются поставщиками услуг. <br />
+
The method returns a list of partners of the system who are used to be service providers.<br />
Возвращаемый результат:<br />
+
Returning result:<br />
* '''GetProvidersResult''' – результат поиска
+
* '''GetProvidersResult''' – the search result
** '''Partner''' – массив данных
+
** '''Partner''' – an array of the data
*** '''Name''' – название партнера
+
*** '''Name''' – the name of the partner
*** '''ID''' – идентификатор партера
+
*** '''ID''' – the ID of the stalls
*** '''Description''' – описание партнера
+
*** '''Description''' – the description of the partner
*** '''NameLat''' – название партнера латиницей
+
*** '''NameLat''' – the name of the partner in Latin
*** '''Code''' – код партнера
+
*** '''Code''' – the partner's code
*** '''CodeLat''' – код партнера латиницей
+
*** '''CodeLat''' – the partner code in Latin
*** '''Unicode''' – код ISO партнера
+
*** '''Unicode''' – the partner's ISO code
*** '''PartnersGroupID''' – идентификатор группы партнера
+
*** '''PartnersGroupID''' – ID of the partner's group
*** '''FullName''' – полное название партнера
+
*** '''FullName''' – the full name of the partner
*** '''Fax''' – факс партнера
+
*** '''Fax''' – the partner's fax
*** '''Address''' – адрес партнера
+
*** '''Address''' – the partner's address
*** '''Zip''' – почтовый код партнера
+
*** '''Zip''' – the partner's zip code
*** '''Email''' – e-mail партнера
+
*** '''Email''' – the partner's e-mail
*** '''Phones''' – телефоны партнера
+
*** '''Phones''' – the partner's phones
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetProviders
+
The invocation of the method GetProviders
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5308: Строка 5303:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetProviders
+
The returning result for the method GetProviders
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5354: Строка 5349:
 
</div></div><br />
 
</div></div><br />
  
=== GetTransports (Получение списка транспортных средств)===
+
===GetTransports (Receiving the list of the vehicles)===
Метод возвращает список транспортных средств. <br />
+
The method returns a list of vehicles. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetTransportsResult''' – результат поиска
+
* '''GetTransportsResult''' – the search result
** '''Transport''' – массив данных
+
** '''Transport''' – an array of the data
*** '''Name''' – название транспортного средства
+
*** '''Name''' – the name of the vehicle
*** '''ID''' – идентификатор транспортного средства
+
*** '''ID''' – the vehicle ID
*** '''Description''' – описание транспортного средства
+
*** '''Description''' – the description of the vehicle
*** '''NameLat''' – название транспортного средства латиницей
+
*** '''NameLat''' – the name of the vehicle in Latin
*** '''Code''' – код транспортного средства
+
*** '''Code''' – the vehicle code
*** '''CodeLat''' – код транспортного средства латиницей
+
*** '''CodeLat''' – the vehicle code in Latin
*** '''Unicode''' – код ISO транспортного средства
+
*** '''Unicode''' – the ISO code of the vehicle
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTransports
+
The invocation of the method GetTransports
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5379: Строка 5374:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransports
+
The returning result for the method GetTransports
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5420: Строка 5415:
 
</div></div><br />
 
</div></div><br />
  
=== GetTransferTypes (Получение списка типов трансферов)===
+
===GetTransferTypes (Receiving the list of the transfer types)===
Метод возвращает список типов трансферов. <br />
+
The method returns a list of transfer types. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetTransferTypesResult''' – результат поиска
+
* '''GetTransferTypesResult''' – the search result
** '''Transport''' – массив данных
+
** '''Transport''' – an array of the data
*** '''Name''' – название трансфера
+
*** '''Name''' – the name of the transfer
*** '''ID''' – идентификатор трансфера
+
*** '''ID''' – the transfer ID
*** '''Description''' – описание трансфера
+
*** '''Description''' – the description of the transfer
*** '''NameLat''' – наименование трансфера латиницей
+
*** '''NameLat''' – the name of the transfer in Latin
*** '''Code''' – код трансфера
+
*** '''Code''' – the transfer code
*** '''CodeLat''' – код трансфера латиницей
+
*** '''CodeLat''' – transfer code in Latin
*** '''Unicode''' – код ISO трансфера
+
*** '''Unicode''' – the ISO code of the transfer
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTransferTypes
+
The invocation of the method GetTransferTypes
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5445: Строка 5440:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransferTypes
+
The returning result for the method GetTransferTypes
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5477: Строка 5472:
 
</div></div><br />
 
</div></div><br />
  
=== GetRates (Получение списка валют)===
+
===GetRates (Receiving the list of the currencies)===
Метод возвращает список валют. <br />
+
The method returns a list of currencies. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRatesResult''' – результат поиска
+
* '''GetRatesResult''' – the search result
** '''Rate''' – массив данных
+
** '''Rate''' – an array of the data
*** '''Name''' – название валюты
+
*** '''Name''' – the name of the currency
*** '''ID''' – идентификатор валюты
+
*** '''ID''' – the currency ID
*** '''Description''' – описание валюты
+
*** '''Description''' – the currency description
*** '''NameLat''' – описание валюты латиницей
+
*** '''NameLat''' – the description of the currency in Latin
*** '''Code''' – код валюты
+
*** '''Code''' – the currency code
*** '''CodeLat''' – код валюты латиницей
+
*** '''CodeLat''' – the currency code in Latin
*** '''Unicode''' – код ISO валюты
+
*** '''Unicode''' – the ISO code of the currency
*** '''IsMain''' – признак валюты "главная"
+
*** '''IsMain''' – the currency attribute "main"
*** '''IsNational''' – признак валюты «национальная»
+
*** '''IsNational''' – the currency attribute "national"
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRates
+
The invocation of the method GetRates
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5504: Строка 5499:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRates
+
The returning result for the method GetRates
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5540: Строка 5535:
 
</div></div><br />
 
</div></div><br />
  
=== GetServicePackage (Получение списка вариантов пакетных услуг)===
+
===GetServicePackage (Receiving the list of the options for package services)===
Метод возвращает список вариантов пакетных услуг. <br />
+
The method returns a list of options for package services. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetServicePackageResult''' – результат поиска
+
* '''GetServicePackageResult''' – the search result
** '''ServiceList''' – массив данных
+
** '''ServiceList''' – an array of the data
*** '''Name''' – название варианта
+
*** '''Name''' – the name of the option
*** '''ID''' – идентификатор варианта
+
*** '''ID''' – ID of the option
*** '''Description''' – описание варианта
+
*** '''Description''' – the description of the option
*** '''NameLat''' – описание варианта латиницей
+
*** '''NameLat''' – the description of the option in Latin
*** '''Code''' – код варианта
+
*** '''Code''' – the code of the option
*** '''CodeLat''' – код варианта латиницей
+
*** '''CodeLat''' – the code of the option in Latin
*** '''Unicode''' – код ISO варианта
+
*** '''Unicode''' – the ISO code of the option
*** '''ServiceClaseID''' – идентификатор класса дополнительной услуги
+
*** '''ServiceClaseID''' – ID of the additional service class
*** '''CountryID''' – ключ страны варианта
+
*** '''CountryID''' – the key of the country of the option
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetServicePackage
+
The invocation of the method GetServicePackage
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5567: Строка 5562:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetServicePackage
+
The returning result for the method GetServicePackage
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5603: Строка 5598:
 
</div></div><br />
 
</div></div><br />
  
=== GetDLStatuses (Получение списка статусов услуг)===
+
===GetDLStatuses (Receiving the list of the service statuses)===
Метод возвращает список статусов услуг. <br />
+
The method returns the file status of the service. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetDLStatusesResult''' – результат поиска
+
* '''GetDLStatusesResult''' – the search result
** '''StatusService''' – массив данных
+
** '''StatusService''' – an array of the data
*** '''Name''' – название статуса услуги
+
*** '''Name''' – the name of the
*** '''ID''' – идентификатор статуса услуги
+
*** '''ID''' – the service status ID
*** '''Description''' – описание статуса услуги
+
*** '''Description''' – the description status services
*** '''NameLat''' – описание статуса услуги латиницей
+
*** '''NameLat''' – the description of services in Latin
*** '''Code''' – код статуса услуги
+
*** '''Code''' – the code of service status
*** '''CodeLat''' – код статуса услуги латиницей
+
*** '''CodeLat''' – the code of service status in Latin
*** '''Unicode''' – код ISO статуса услуги
+
*** '''Unicode''' – the ISO code of service status
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetDLStatuses
+
The invocation of the method GetDLStatuses
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5628: Строка 5623:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetDLStatuses
+
The returning result for the method GetDLStatuses
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5669: Строка 5664:
 
</div></div><br />
 
</div></div><br />
  
=== GetTariffs (Получение списка тарифов для определенного типа услуг)===
+
===GetTariffs (Receiving the list of the tariffs for the certain type of services)===
Метод возвращает тарифы для определенного типа услуг. <br />
+
The method returns tariffs for the certain type of service. <br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''SvKey *''' – ключ типа услуги
+
* '''SvKey *''' – the service type key
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetTariffsResult''' – результат поиска
+
* '''GetTariffsResult''' – the search result
** '''Tariff''' – массив данных
+
** '''Tariff''' – an array of the data
*** '''ID''' – идентификатор тарифа
+
*** '''ID''' – the tariff ID
*** '''Name''' – наименование тарифа
+
*** '''Name''' – the name of the tariff
*** '''Description''' – описание тарифа
+
*** '''Description''' – the description of the tariff
*** '''NameLat''' – наименование тарифа латиницей
+
*** '''NameLat''' – the name of the tariff in Latin
*** '''Code''' – код тарифа
+
*** '''Code''' – the code of the tariff
*** '''CodeLat''' – код тарифа латиницей
+
*** '''CodeLat''' – the tariff code in Latin
*** '''Unicode''' – код ISO тарифа
+
*** '''Unicode''' – the ISO code of the tariff
*** '''SvKey''' – ключ типа услуги
+
*** '''SvKey''' – the service type key
*** '''Comment''' – описание
+
*** '''Comment''' – the description
*** '''CreateDate''' – дата создания
+
*** '''CreateDate''' – the creation date
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetTariffs
+
The invocation of the method GetTariffs
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5704: Строка 5699:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTariffs
+
The returning result for the method GetTariffs
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5742: Строка 5737:
 
</div></div><br />
 
</div></div><br />
  
=== GetRoomDescriptions (Получение массива описаний комнат)===
+
===GetRoomDescriptions (Receiving an array of the descriptions of the rooms)===
Метод возвращает массив описаний комнат.<br />
+
The method returns an array of room descriptions.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''RoomTypeId *''' – ключ типа комнаты (0 – для всех)<br />
+
* '''RoomTypeId *''' – the room type key (0 – for all)
* '''RoomCategoryId *''' – ключ категории комнаты (0 – для всех)
+
* '''RoomCategoryId *''' – the room category key (0 – for all)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRoomDescriptionsResult''' – результат поиска
+
* '''GetRoomDescriptionsResult''' – the search result
** '''AdditionalDescription''' – массив данных
+
** '''AdditionalDescription''' – an array of the data
*** '''Name''' – наименование описания комнаты
+
*** '''Name''' – the name of the description of the room
*** '''ID''' – идентификатор описания комнаты
+
*** '''ID''' – the name of the description of the room
*** '''Description''' – описание
+
*** '''Description''' – the description
*** '''NameLat''' – наименование описания комнаты латиницей
+
*** '''NameLat''' – the name of the description of the room in Latin
*** '''Code''' – код описания комнаты
+
*** '''Code''' – the room description code
*** '''CodeLat''' – код описания комнаты латиницей
+
*** '''CodeLat''' – the code of the description of the room in Latin
*** '''Unicode''' – код ISO описания комнаты
+
*** '''Unicode''' – the ISO code of the room description
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRoomDescriptions
+
The invocation of the method GetRoomDescriptions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5773: Строка 5768:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomDescriptions
+
The returning result for the method GetRoomDescriptions
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5796: Строка 5791:
 
</div></div><br />
 
</div></div><br />
  
=== GetAccommodations (Получение размещения отелей)===
+
===GetAccommodations (Receiving the accommodations for the hotel)===
Метод возвращает размещения отелей.<br />
+
The method returns hotel accommodations.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetAccommodationsResult''' – результат поиска
+
* '''GetAccommodationsResult''' – the search result
** '''Message''' – идентификатор размещения
+
** '''Message''' – the accommodation ID
** '''Data''' – массив объектов с данными
+
** '''Data''' – an array of objects with data
*** '''AccomodationInfo''' – массив данных с размещением
+
*** '''AccomodationInfo''' – an array of the data with accommodation
**** '''Id''' – идентификатор размещения
+
**** '''Id''' – the accommodation ID
**** '''Code''' – код размещения
+
**** '''Code''' – the accommodation code
**** '''Name''' – название размещения
+
**** '''Name''' – the name of the accommodation
**** '''IsPerRoom''' – за комнату или за человека
+
**** '''IsPerRoom''' – per room or per person
**** '''NameUnicode''' – название размещения в Unicode
+
**** '''NameUnicode''' – the name of the accommodation in Unicode
**** '''CountAdultMain''' – количество взрослых на главном месте
+
**** '''CountAdultMain''' – the number of adults in the main places
**** '''CountChildMain''' – количество детей на главном месте
+
**** '''CountChildMain''' – the number of children in the main places
**** '''CountAdultExtra''' – количество взрослых на доп. месте
+
**** '''CountAdultExtra''' – the number of adults per additional place
**** '''CountChildExtra''' – количество детей на доп. месте
+
**** '''CountChildExtra''' – the number of children per additional place
**** '''ChildrenAges''' – строка с описание возрастов детей
+
**** '''ChildrenAges''' – the string with a description of the ages of children
**** '''IsWeb''' – доступность для Interlook-Web
+
**** '''IsWeb''' – the accessibility for Interlook-Web
**** '''IsPackage''' – можно ли добавлять в пакет
+
**** '''IsPackage''' – is it possible to add to the package
**** '''UpdateDate''' – дата последнего обновления размещения
+
**** '''UpdateDate''' – the date of the last update of the accommodation
**** '''ClildrenAgesList''' – список с возрастами детей
+
**** '''ClildrenAgesList''' – the list with the ages of children
***** '''AccomadationAge''' – массив данных с возрастом
+
***** '''AccomadationAge''' – an array of the data with age
****** '''Id''' – идентификатор записи
+
****** '''Id''' – ID of the record
****** '''AgeFrom''' – возраст «с»
+
****** '''AgeFrom''' – age «from»
****** '''AgeTo''' – возраст «по»
+
****** '''AgeTo''' – age «to»
****** '''CountMen''' – количество взрослых в размещении
+
****** '''CountMen''' – the number of adults in the accommodation
****** '''IsMain''' – на главном ли месте ребенок этого возраста
+
****** '''IsMain''' – is a child of this age in the main place
****** '''UpdateDate''' – дата последнего обновления записи
+
****** '''UpdateDate''' – the date of the last update of the record
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetAccommodations
+
The invocation of the method GetAccommodations
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5842: Строка 5837:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetAccommodations
+
The returning result for the method GetAccommodations
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5863: Строка 5858:
 
</div></div><br />
 
</div></div><br />
  
=== GetRoomAccommodations (Получение размещения отелей и первых 2 значений возрастов из списка возрастов детей)===
+
===GetRoomAccommodations (Receiving the accommodations for the hotel an 2 first values of ages from the list of childrenages)===
Метод возвращает размещения отелей и первые 2 значения возрастов из списка возрастов детей.<br />
+
The method returns the hotel accommodation and the first 2 values of ages from the list of ages of children.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRoomAccommodationsResult''' – результат поиска
+
* '''GetRoomAccommodationsResult''' – The returning result
** '''RoomAccomodation''' – массив данных
+
** '''RoomAccomodation''' – an array of the data
*** '''Name''' – название размещения
+
*** '''Name''' – the name of the accommodation
*** '''ID''' – идентификатор размещения
+
*** '''ID''' – the accommodation ID
*** '''Description''' – описание размещения
+
*** '''Description''' – the description of the accommodation
*** '''NameLat''' – наименование размещения латиницей
+
*** '''NameLat''' – the name of the accommodation in Latin
*** '''Code''' – код размещения
+
*** '''Code''' – the accommodation code
*** '''CodeLat''' – код размещения латиницей
+
*** '''CodeLat''' – the accommodation code in Latin
*** '''Unicode''' – код ISO размещения
+
*** '''Unicode''' – the ISO code of the accommodation
*** '''PerRoom''' – за комнату
+
*** '''PerRoom''' – per room
*** '''AdultMainPalces''' – количество взрослых основных мест
+
*** '''AdultMainPalces''' – the number of adult main places
*** '''ChildMainPalces''' – количество детских основных мест
+
*** '''ChildMainPalces''' – the number of primary places for children
*** '''AdultExtraPalces''' – количество взрослых дополнительных мест
+
*** '''AdultExtraPalces''' – the number of adult additional places
*** '''ChildExtraPalces''' – количество детских дополнительных мест
+
*** '''ChildExtraPalces''' – the number of additional places for children
*** '''MainPlaces''' – количество основных мест
+
*** '''MainPlaces''' – the number of main places
*** '''ExtraPlaces''' – количество дополнительных мест
+
*** '''ExtraPlaces''' – the number of additional seats
*** '''IsMain''' – есть ли основные места
+
*** '''IsMain''' – the are there any main places
*** '''AgeFrom''' – возраст детей «с»
+
*** '''AgeFrom''' – the age of children «from»
*** '''AgeTo''' – возраст детей «по»
+
*** '''AgeTo''' – the age of children «to»
*** '''Age2From''' – возраст детей «с»
+
*** '''Age2From''' – the age of children «from»
*** '''Age2To''' – возраст детей «по»
+
*** '''Age2To''' – the age of children «to»
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetRoomAccommodations
+
The invocation of the method GetRoomAccommodations
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5900: Строка 5895:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomAccommodations
+
The returning result for the method GetRoomAccommodations
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 5956: Строка 5951:
 
</div></div><br />
 
</div></div><br />
  
===GetClientInfo (Выдача информации по партнёру, к которому относится on-line user)===
+
===GetClientInfo (Issuing information about the partner to which relates the on-line user)===
Метод выдает информацию по партнёру, к которому относится on-line user, под которым осуществлен запрос в методе [[#Connect (Получение аутентификационного токена)|Connect]].<br />
+
The method provides information about the partner to which the on-line user belongs, under which the request was made in the [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]] method .<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[#Connect (Получение аутентификационного токена)|Connect]])<br />  
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />  
Возвращаемый результат:
+
The returning result:
* '''Name''' – наименование партнера
+
* '''Name''' – the name of the partner
* '''MarketName''' – перечень рынков из карточки партнера
+
* '''MarketName''' – the list of markets from the partner card
* '''Address''' – адрес из карточки партнера
+
* '''Address''' – the address from the partner's card
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetClientInfo
+
The invocation of the method GetClientInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 5981: Строка 5976:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Возвращаемый результат метода GetClientInfo
+
The returning result for the method GetClientInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6002: Строка 5997:
 
</div></div><br />
 
</div></div><br />
  
==Методы интеграции с системами оплаты==
+
==Methods of integration with payment systems==
=== GetReservationPenalties (Получение штрафов по путевке до того, как ее аннулировать)===
+
===GetReservationPenalties (Receiving the penalties for the reservation before canceling it)===
Метод возвращает размеры штрафов по путевке до того, как ее аннулировать.<br />  
+
The method returns the amount of penalties for the reservation before it is canceled.<br />  
Работа метода регулируется лицензией.<br />  
+
The operation of the method is regulated by a license.<br />  
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''ReservationKey *''' – ключ путевки
+
* '''ReservationKey *''' – the reservation key
* '''CancellationDate''' – дата аннуляции, на которую выдается условие и сумма штрафа. Если не указана, то получаем все возможные правила аннуляции вплоть до заезда.  
+
* '''CancellationDate''' – the cancellation date on which the condition and the amount of the fine are issued. If not specified, then we get all possible cancellation rules up to arrival.  
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetReservationPenaltiesResult''' – результат поиска
+
* '''GetReservationPenaltiesResult''' – the search result
** '''Penalty''' – штраф
+
** '''Penalty''' – fine
*** '''ServicePenalty''' – сервис штрафов
+
*** '''ServicePenalty''' – the penalty service
**** '''ServiceClassID'''  
+
**** '''ServiceClassID''' – id of the service class
**** '''ID''' – идентификатор штрафа
+
**** '''ID''' – ID of the fine
**** '''Name''' – наименование штрафа
+
**** '''Name''' – the name of the fine
**** '''PenaltyData''' – массив данных штрафа
+
**** '''PenaltyData''' – an array of penalty data
***** '''PenaltyDataInfo''' – массив данных
+
***** '''PenaltyDataInfo''' – an array of data
****** '''TotalPenalty''' – полная сумма штрафа
+
****** '''TotalPenalty''' – the full amount of the penalty
****** '''RateCode''' – код валюты
+
****** '''RateCode''' – the currency code
****** '''PolicyDescription''' – условия штрафа
+
****** '''PolicyDescription''' – the penalty conditions
****** '''CancellationPolicyData''' – массив данных аннуляции
+
****** '''CancellationPolicyData''' – an array of cancellation data
******* '''PolicyKey''' – ключ аннуляции
+
******* '''PolicyKey''' – the cancellation key
******* '''DateFrom''' – дата с
+
******* '''DateFrom''' – date from
******* '''DateTo''' – дата по
+
******* '''DateTo''' – date to
******* '''PenaltyValue''' – значение штрафа
+
******* '''PenaltyValue''' – the penalty value
******* '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
+
******* '''IsPercent''' - the percentage indicating that the penalty is in "%" (''true'') or in "nights" (''false'')
**** '''Hotel''' – отель
+
**** '''Hotel''' – the Hotel
***** '''ID''' – идентификатор отеля
+
***** '''ID''' – the hotel ID
***** '''Name''' – наименование отеля
+
***** '''Name''' – the name of the hotel
**** '''RoomType''' – тип комнаты
+
**** '''RoomType''' – the room type
***** '''ID''' – идентификатор комнаты
+
***** '''ID''' – the Room ID
***** '''Name''' – название комнаты
+
***** '''Name''' – the name of the room
**** '''RoomCategory''' – категория номера
+
**** '''RoomCategory''' – the room category
***** '''ID''' – идентификатор категории номера
+
***** '''ID''' – ID of the room category
***** '''Name''' – наименование категории номера
+
***** '''Name''' – the name of the room category
**** '''Accommodation''' – размещение
+
**** '''Accommodation''' – the accommodation
***** '''ID''' – идентификатор размещения
+
***** '''ID''' – the accommodation ID
***** '''Name''' – наименование размещения
+
***** '''Name''' – the name of the placement
**** '''Pansion''' – тип питания
+
**** '''Pansion''' – the type of pansion supply
***** '''ID''' – идентификатор типа питания
+
***** '''ID''' – ID of the type of pansion supply
***** '''Name''' – наименование типа питания<br />  
+
***** '''Name''' – the name of the type of the pansion<br />  
В случае ошибок получим сообщение с расшифровкой.<br />  
+
In case of errors, we will receive a message with a decryption.<br />  
В случае некорректного Guid получим сообщение:"Invalid user or password (Invalid GUID)".<br />  
+
In case of an incorrect Guid, we will receive the message: "Invalid user or password (Invalid GUID)".<br />  
В случае отсутствия договора с указанным ключом для текущего партнера получим сообщение:"Check the parameter 'reservationKey' = <значение в запросе>. There is no any reservation for you in the database.".<br />  
+
If there is no contract with the specified key for the current partner, we will receive the message:"Check the parameter 'reservationKey' = <value in request>. There is no booking in the database for you.".br />  
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetReservationPenalties
+
The invocation of the method GetReservationPenalties
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6063: Строка 6058:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetReservationPenalties
+
The returning result for the method GetReservationPenalties
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6237: Строка 6232:
 
</div></div><br />
 
</div></div><br />
  
===CreatePayment (Создание платежа по путевке)===
+
===CreatePayment (Creating the payments for the reservation)===
Метод создает платеж по путевке.<br />
+
The method creates the payment for the reservation.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Date *''' – дата создания платежа
+
* '''Date *''' – the date of payment creation
* '''Sum *''' – сумма платежа
+
* '''Sum *''' – the payment amount
* '''CurrencyIsoCode *''' – ISO код валюты платежа
+
* '''CurrencyIsoCode *''' – the ISO code of the payment currency
* '''ReservationCode *''' – код путевки
+
* '''ReservationCode *''' – the reservation code
* '''PaymentId *''' – идентификатор платежа (задается вручную для последующего идентифицирования платежа). Уникальный код, указывается пользователем один раз, не должен повторяться при следующей оплате по данной заявке.
+
* '''PaymentId *''' – the payment ID (set manually for subsequent identification of the payment). The unique code specified by the user once should not be repeated in the next payment for this reservation.
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CreatePaymentResult''' – результат выдачи
+
* '''CreatePaymentResult''' – the output result
** '''0''' – NoError – ошибок нет
+
** '''0''' – NoError – no errors
** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
+
** '''1''' – DogovorNotFound – the reservation with this code was not found
** '''2''' – InternalError – внутренняя ошибка
+
** '''2''' – InternalError – an internal error
** '''3''' – DogovorAnnulate – путевка аннулирована
+
** '''3''' – DogovorAnnulate – the reservation is canceled
** '''4''' – DogovorPayed – путевка оплачена
+
** '''4''' – DogovorPayed – the reservation is paid
** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
+
** '''7''' – ExistingPaymentID – the payment with such an external ID already exists
** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
+
** '''8''' – IncorrectPaymentType – there are payments of prohibited types for the reservation
** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
+
** '''9''' – NotAllowedPartnerKey – the partner on the reservation is not allowed
** '''10''' – FailureSignature – ошибка подписи
+
** '''10''' – FailureSignature – the signature error
** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
+
** '''11''' – NoInvoices – there are no invoices for the reservation
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CreatePayment
+
The invocation of the method CreatePayment
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6282: Строка 6277:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CreatePayment
+
The invocation of the method CreatePayment
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6295: Строка 6290:
 
</div></div><br />
 
</div></div><br />
  
===GetPaymentInformation (Поиск информации о платеже с заданным идентификатором платежа из внешней системы)===
+
===GetPaymentInformation (Searching for the payment information with a specified payment ID from an external system)===
Метод возвращает информацию о платеже с заданным идентификатором платежа из внешней системы.<br />
+
The method returns information about the payment with the specified payment ID from the external system.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''ReservationCode *''' – код путевки
+
* '''ReservationCode *''' – the reservation code
* '''ExternalPaymentId *''' – идентификатор платежа (Параметр PaymentId в запросе метода [[Master-Interlook:IntegrationService#CreatePayment|CreatePayment]])
+
* '''ExternalPaymentId *''' – the payment ID (the PaymentID parameter in the [[Master-Interlook:IntegrationService (en)#CreatePayment (Creating the payments for the reservation)|CreatePayment]] method request)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetPaymentInformationResult''' – результат выдачи
+
* '''GetPaymentInformationResult''' – the output result
** '''IsPaymentExists''' – показывает, есть ли запрошенный платеж
+
** '''IsPaymentExists''' – shows if there is a requested payment
*** '''true''' – платеж с указанным идентификатором по указанной путевке существует
+
*** '''true''' – the payment with the specified ID for the specified reservation exists
*** '''false''' – запрошенного платежа нет
+
*** '''false''' – there is no requested payment
** '''PaymentInformationResult''' – массив данных платежа
+
** '''PaymentInformationResult''' – an array for payment data
*** '''InternalPaymentId''' – идентификатор платежа в системе Interlook,
+
*** '''InternalPaymentId''' – the payment ID in the Interlook system
*** '''DogovorCode''' – код путевки,
+
*** '''DogovorCode''' – the reservation code
*** '''PaymentSum''' – сумма платежа,
+
*** '''PaymentSum''' – the payment amount
*** '''PaymentNationalSum''' – сумма платежа в национальной валюте,
+
*** '''PaymentNationalSum''' – the amount of the payment in the national currency
*** '''PaymentRateISOCode''' – ISO код валюты платежа
+
*** '''PaymentRateISOCode''' – the ISO code of the payment currency
*** '''CreateDate''' – дата проведения платежа
+
*** '''CreateDate''' – the date of payment
** '''ErrorCode''' – код ошибки
+
** '''ErrorCode''' – the error code
*** '''0''' – NoError – ошибок нет
+
*** '''0''' – NoError – no errors
*** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
+
*** '''1''' – DogovorNotFound – the reservation with this code was not found
*** '''2''' – InternalError – внутренняя ошибка
+
*** '''2''' – InternalError – an internal error
*** '''3''' – DogovorAnnulate – путевка аннулирована
+
*** '''3''' – DogovorAnnulate – the reservation is canceled
*** '''4''' – DogovorPayed – путевка оплачена
+
*** '''4''' – DogovorPayed – the reservation is paid
*** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
+
*** '''7''' – ExistingPaymentID – the payment with such an external ID already exists
*** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
+
*** '''8''' – IncorrectPaymentType – there are payments of prohibited types for the reservation
*** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
+
*** '''9''' – NotAllowedPartnerKey – the partner on the reservation is not allowed
*** '''10''' – FailureSignature – ошибка подписи
+
*** '''10''' – FailureSignature – the signature error
*** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
+
*** '''11''' – NoInvoices – there are no invoices for the reservation
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetPaymentInformation
+
The invocation of the method GetPaymentInformation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6344: Строка 6339:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetPaymentInformation
+
The returning result for the method GetPaymentInformation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6368: Строка 6363:
 
</div></div><br />
 
</div></div><br />
  
===GetCancellationPolicyInfoWithPenalty (Получение информации по расчету штрафов по отелю ) ===
+
===GetCancellationPolicyInfoWithPenalty (Receiving the information on the calculation of penalties for the hotel)===
 
<table style="background-color:#ffffcc;color:black" border="1" cellpadding="10" cellspacing="0"><tr><td>
 
<table style="background-color:#ffffcc;color:black" border="1" cellpadding="10" cellspacing="0"><tr><td>
Данный функционал доступен начиная с релиза 11.20<br>
+
This functionality is available starting from release 11.20<br>
 
</td></tr></table><br>
 
</td></tr></table><br>
Метод возвращает информацию по расчету штрафов по отелю.<br />
+
The method returns information about the calculation of penalties for the hotel.<br />
Выдача результатов метода регулируется лицензией.<br />
+
The output of the method results is regulated by the license.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DateFrom *''' – дата начала проживания
+
* '''DateFrom *''' – the start date of the stay
* '''DateTo *''' – дата окончания проживания
+
* '''DateTo *''' – the start date of the stay
* '''HotelKey *''' – идентификатор отеля
+
* '''HotelKey *''' – the hotel ID
* '''PansionKey''' – идентификатор питания
+
* '''PansionKey''' – the pansion ID
* '''AccommodationKey ''' – идентификатор размещения, необязательный если передаем Pax.
+
* '''AccommodationKey ''' – the accommodation ID, optional if we transmit Pax  
* '''RoomTypeKey''' – идентификатор типа комнаты
+
* '''RoomTypeKey''' – the room type ID
* '''RoomCategoryKey''' – идентификатор категории номера
+
* '''RoomCategoryKey''' – ID of the room category
* '''Pax *''' – Pax по услуге
+
* '''Pax *''' – Pax by service
* '''Ages*''' – список с возрастами детей. Если  ищем размещение без детей передаем пустой параметр (<meg:Ages></meg:Ages>)
+
* '''Ages*''' – the list with the ages of children. If we are looking for accommodation without children, we transmit an empty parameter (<meg:Ages></meg:Ages>)
* '''CancellationDate''' – дата аннуляции (если не указана – берется текущая)
+
* '''CancellationDate''' – the cancellation date (if not specified, the current one is taken)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetCancellationPolicyInfoWithPenaltyResult''' – результат выдачи
+
* '''GetCancellationPolicyInfoWithPenaltyResult''' – the output result
** '''CancellationPolicyInfoWithPenalty''' – массив данных
+
** '''CancellationPolicyInfoWithPenalty''' – an array of data
*** '''HotelKey''' – идентификатор отеля
+
*** '''HotelKey''' – the hotel ID
*** '''HotelName''' – наименование отеля
+
*** '''HotelName''' – the name of the hotel
*** '''AccomodatioKey''' – идентификатор размещения
+
*** '''AccomodatioKey''' – the accommodation ID
*** '''AccomodatioName''' – наименование размещения
+
*** '''AccomodatioName''' – the name of the accommodation
*** '''RoomTypeKey''' – идентификатор типа комнаты
+
*** '''RoomTypeKey''' – the room type ID
*** '''RoomTypeName''' – наименование типа комнаты
+
*** '''RoomTypeName''' – the name of the room type
*** '''RoomCategoryKey''' – идентификатор категории номера
+
*** '''RoomCategoryKey''' – ID of the room category
*** '''RoomCategoryName''' – наименование категории номера
+
*** '''RoomCategoryName''' – the name of the room category
*** '''PansionKey''' – идентификатор питания
+
*** '''PansionKey''' – the pansion ID
*** '''PansionName''' – наименование питания
+
*** '''PansionName''' – the name of the food
*** '''PolicyDescripion''' – описание политики аннуляции и полной суммы штрафа
+
*** '''PolicyDescripion''' – the description of the cancellation policy and the full amount of the penalty
*** '''CancellationDate''' – дата аннуляции
+
*** '''CancellationDate''' – the cancellation date
*** '''PolicyData''' – массив данных
+
*** '''PolicyData''' – the cancellation date
**** '''CancellationPolicyWithPenaltyValue''' – массив данных по расчету штрафа
+
**** '''CancellationPolicyWithPenaltyValue''' – an array of data for calculating the penalty
***** '''PolicyKey''' – ключ политики
+
***** '''PolicyKey''' – the policy key
***** '''DateFrom''' – дата "от"
+
***** '''DateFrom''' – the date "from"
***** '''DateTo''' – не задана
+
***** '''DateTo''' – not set
***** '''PenaltyValue''' – значение штрафа
+
***** '''PenaltyValue''' – the penalty value
***** '''IsPercent''' – параметр, указывающий, что штраф в "%" (true) или в "ночах" (false)
+
***** '''IsPercent''' – the parameter indicating that the penalty is in "%" (true) or in "nights" (false)
***** '''PenaltyTotal''' – общая сумма штрафа
+
***** '''PenaltyTotal''' – the total amount of the penalty
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetCancellationPolicyInfoWithPenalty
+
The invocation of the method GetCancellationPolicyInfoWithPenalty
 
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
Строка 6438: Строка 6433:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCancellationPolicyInfoWithPenalty
+
The returning result for the method GetCancellationPolicyInfoWithPenalty
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6491: Строка 6486:
 
</div></div><br />
 
</div></div><br />
  
===CheckReservation (Получение информации о платеже, необходимом для путевки, в выбранной валюте)===
+
===CheckReservation (Receiving the information about the payment required for the reservation in the selected currency)===
Метод возвращает информацию о платеже, необходимом для путевки, в выбранной валюте.<br />
+
The method returns information about the payment required for the reservation in the selected currency.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgCode *''' – код путевки
+
* '''DgCode *''' – the voucher code
* '''CurrencyIsoCode *''' – ISO код валюты платежа
+
* '''CurrencyIsoCode *''' – the ISO code of the payment currency
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CheckReservationResult''' – результат выдачи
+
* '''CheckReservationResult''' – the output result
** '''Amount''' – сумма платежа
+
** '''Amount''' – the payment amount
** '''RateCode''' – ISO код валюты платежа
+
** '''RateCode''' – the ISO code of the payment currency
** '''NationalCurrencyPrice''' – сумма платежа в национальной валюте
+
** '''NationalCurrencyPrice''' – the payment amount in national currency
** '''NationalRateCode''' – ISO код национальной валюты
+
** '''NationalRateCode''' – the ISO code of the national currency
** '''CustomCurrencyPrice''' – сумма платежа в произвольной валюте
+
** '''CustomCurrencyPrice''' – the payment amount in any currency
** '''CustomRateCode''' – ISO код произвольной валюты платежа
+
** '''CustomRateCode''' – the ISO code of any payment currency
** '''ErrorCode''' – код результата
+
** '''ErrorCode''' – the result code
*** '''0''' – NoError – ошибок нет
+
*** '''0''' – NoError – no errors
*** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
+
*** '''1''' – DogovorNotFound – the reservation with this code was not found
*** '''2''' – InternalError – внутренняя ошибка
+
*** '''2''' – InternalError – an internal error
*** '''3''' – DogovorAnnulate – путевка аннулирована
+
*** '''3''' – DogovorAnnulate – the reservation is canceled
*** '''4''' – DogovorPayed – путевка оплачена
+
*** '''4''' – DogovorPayed – the reservation is paid
*** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
+
*** '''7''' – ExistingPaymentID – the payment with such an external ID already exists
*** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
+
*** '''8''' – IncorrectPaymentType – there are payments of prohibited types for the reservation
*** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
+
*** '''9''' – NotAllowedPartnerKey – the partner on the reservation is not allowed
*** '''10''' – FailureSignature – ошибка подписи
+
*** '''10''' – FailureSignature – the signature error
*** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
+
*** '''11''' – NoInvoices – there are no invoices for the reservation
** '''FilialKey''' – идентификатор филиала партнера
+
** '''FilialKey''' – the ID of the partner's branch
** '''BeginTourDate''' – дата начала тура по путевке
+
** '''BeginTourDate''' – the start date of the tour in the reservation
** '''EndTourDate''' – дата окончания тура путевки
+
** '''EndTourDate''' – the end date of the tour package
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CheckReservation
+
The invocation of the method CheckReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6539: Строка 6534:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CheckReservation
+
The returning result for the method CheckReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6563: Строка 6558:
 
</div></div><br />
 
</div></div><br />
  
===CreatePaymentForDogovor (Создание платежа по путевке по выставленному инвойсу)===
+
===CreatePaymentForDogovor (Creating the reservation payment based on issued invoice)===
Метод создает платеж по путевке, у которой выставлен инвойс.<br />
+
The method creates the payment for the reservation that has an invoice.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DgKey *''' – ключ путевки
+
* '''DgKey *''' – the reservation key
* '''Payment *''' – размер платежа
+
* '''Payment *''' – the payment amount
Возвращаемый результат:<br />
+
The returning result:<br />
* '''CreatePaymentForDogovorResult''' – результат выдачи
+
* '''CreatePaymentForDogovorResult''' – the output result
** '''OrderId''' – идентификатор платежа
+
** '''OrderId''' – the payment ID
В случае отсутствия созданного инвойса по путевке получим сообщение: "There is no invoice".
+
If there is no created invoice for the reservation, we will receive the message: "There is no invoice".
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CreatePaymentForDogovor
+
The invocation of the method CreatePaymentForDogovor
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6590: Строка 6586:
 
</soapenv:Envelope>  
 
</soapenv:Envelope>  
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CreatePaymentForDogovor
+
The returning result for the method CreatePaymentForDogovor
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6604: Строка 6600:
 
</div></div><br />
 
</div></div><br />
  
==Метод работы с квотами==
+
==Methods for working with quotas==
=== CheckQuota (Проверка доступности номера отеля на период)===
+
===CheckQuota (Checking the availability of a hotel room for a period) ===
Метод возвращает информацию о доступности номера отеля на период. <br />
+
The method returns information about the availability of the hotel room for the period. <br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''DateFrom''' – дата с
+
* '''DateFrom''' – date from
* '''DateTo''' – дата по
+
* '''DateTo''' – date to
* '''HotelId *''' – ключ отеля
+
* '''HotelId *''' – the hotel key
* '''RoomTypeId *''' – ключ типа комнаты (-1 для всех)
+
* '''RoomTypeId *''' – the room type key (-1 for all)
* '''RoomCategoryId *''' – ключ категории комнаты (-1 для всех)
+
* '''RoomCategoryId *''' – the room category key (-1 for all)
Возвращаемый результат:<br />
+
The returning result:<br />
* '''ServiceResult''' – результат поиска
+
* '''ServiceResult''' – the search result
* '''QuotaSimpleInfo''' – массив данных
+
* '''QuotaSimpleInfo''' – an array of data
** '''RoomTypeId''' – ключ типа комнаты
+
** '''RoomTypeId''' – the room type key
** '''RoomCategoryId''' – ключ категории комнаты
+
** '''RoomCategoryId''' – the room category key
** '''Quota''' – информация о квоте (0 – на запрос, 1 – есть квота, 2 – стоп)
+
** '''Quota''' – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
** '''RoomVariantName''' – наименование варианта комнаты (комбинации из таблицы RoomVariant)
+
** '''RoomVariantName''' – the name of the room option (combinations from the RoomVariant table)
** '''Date''' – не заполняется
+
** '''Date''' – not filled in
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода CheckQuota
+
The invocation of the method CheckQuota
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6643: Строка 6639:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CheckQuota
+
The returning result for the method CheckQuota
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6660: Строка 6656:
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
=== GetQuotaInfo (Проверка доступности номера отеля на период с детализацией по дням)===
 
Метод возвращает информацию о доступности номера отеля на период с детализацией по дням. <br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''DateFrom *''' – дата с
 
* '''DateTo *''' – дата по
 
* '''HotelId *''' – ключ отеля
 
* '''RoomTypeId *''' – ключ типа комнаты (-1 для всех)
 
* '''RoomCategoryId *''' – ключ категории комнаты (-1 для всех)
 
Возвращаемый результат:<br />
 
* '''GetQuotaInfoResult''' – результат поиска
 
* '''QuotaSimpleInfo''' – массив данных
 
** '''RoomTypeId''' – ключ типа комнаты
 
** '''RoomCategoryId''' – ключ категории комнаты
 
** '''Quota''' – информация о квоте (0 – на запрос, 1 – есть квота, 2 – стоп)
 
** '''RoomVariantName''' – наименование варианта комнаты (комбинации из таблицы RoomVariant)
 
** '''Date''' – день
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
===GetQuotaInfo (Checking the availability of a hotel room for a period with details by day)===
 +
МеThe method returns information about the availability of the hotel room for the period with details by day.<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''DateFrom *''' – date from
 +
* '''DateTo *''' – date to
 +
* '''HotelId *''' – the hotel key
 +
* '''RoomTypeId *''' – the room type key (-1 for all)
 +
* '''RoomCategoryId *''' – the room category key (-1 for all)
 +
The returning result:<br />
 +
* '''GetQuotaInfoResult''' – the search result
 +
* '''QuotaSimpleInfo''' – an array of data
 +
** '''RoomTypeId''' – the room type key
 +
** '''RoomCategoryId''' – the room category key
 +
** '''Quota''' – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
 +
** '''RoomVariantName''' – the name of the room options (combinations from the RoomVariant table)
 +
** '''Date''' – the day
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetQuotaInfo
+
The invocation of the method GetQuotaInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6698: Строка 6695:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetQuotaInfo
+
The invocation of the method GetQuotaInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6716: Строка 6713:
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
=== GetChangeQuotaAndStop (Получение информации по квотам и стопам в отеле)===
+
 
Метод передает информацию по квотам и стопам в отеле.
+
===GetChangeQuotaAndStop (Receiving the information on quotas and stops at the hotel)===
Принимаемые параметры запроса (* – обязательный):
+
The method transmits information about quotas and stops at the hotel.<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
Accepted request parameters ( '''*''' required):
* '''HotelKey *''' – ключ отеля
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Date''' – дата, с которой получаем изменения (если не отправляем, то берется текущая)
+
* '''HotelKey *''' – the hotel key
* '''UseRoomDescription *''' – как сопоставляем категорию и тип комнаты (через общее описание комнаты или по-отдельности)
+
* '''Date''' – the date from which we receive the changes (if we do not send them, then the current one is taken)
* '''LoadQuaota *''' – загружать или нет изменения по квотам
+
* '''UseRoomDescription *''' – how to compare the category and type of room (through a general description of the room or separately)
* '''LoadStop *''' – загружать или нет изменения по стопам
+
* '''LoadQuaota *''' – whether or not to upload changes for stops
Возвращаемый результат:<br />
+
* '''LoadStop *''' – whether or not to upload changes for stops
* '''GetChangeQuotaAndStopResult''' – результат поиска
+
The returning result:<br />
** '''QuotaStopInfo''' – массив данных
+
* '''GetChangeQuotaAndStopResult''' – the search result
*** '''ID''' – не используется
+
** '''QuotaStopInfo''' – an array of data
*** '''SvKey''' – ключ сервис класса (для отеля  = 1)
+
*** '''ID''' – not used
*** '''Code''' – ключ отеля
+
*** '''SvKey''' – the service class key (for hotel = 1)
*** '''SubCode1Name''' – название типа комнаты
+
*** '''Code''' – the hotel key
*** '''SubCode1''' – ключ типа комнаты
+
*** '''SubCode1Name''' – the name of the room type
*** '''SubCode2''' – не используется
+
*** '''SubCode1''' – the room type key
*** '''SubCode3Name''' – название категории комнаты
+
*** '''SubCode2''' – not used
*** '''SubCode3''' – ключ категории комнаты
+
*** '''SubCode3Name''' – the name of the room category
*** '''RoomDescriptionID''' – ключ описания комнаты
+
*** '''SubCode3''' – the room category key
*** '''RoomDescriptionName''' – название описания комнаты
+
*** '''RoomDescriptionID''' – the room description key
*** '''Place''' – количество мест (2 и больше, 1 – мест мало или одно, 0 – нет мест в квоте, -1 – стоп отменен (если IsStop=true) или квота удалена(если IsStop=false)), -2 – стоп отменен и квот при этом нет)
+
*** '''RoomDescriptionName''' – the name of the description of the room
*** '''IsStop''' – стоит ли стоп на текущую дату
+
*** '''Place''' – the number of places (2 and more, 1 – there are few or one seats, 0 – there are no seats in the quota, -1 – the stop is canceled (if IsStop=true) or the quota is removed (if IsStop=false)), -2 – the stop is canceled and there are no quotas)
*** '''Date''' – дата текущей квоты (стопа)
+
*** '''IsStop''' – is there a stop on the current date
*** '''UpdateDate''' – дата обновления
+
*** '''Date''' – the date of the current quota (stop)
*** '''Release''' – релиз-период
+
*** '''UpdateDate''' – the update date
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
*** '''Release''' – release period
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetChangeQuotaAndStop
+
The invocation of the method GetChangeQuotaAndStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6763: Строка 6762:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetChangeQuotaAndStop
+
The returning result for the method GetChangeQuotaAndStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6778: Строка 6777:
 
</div></div><br />
 
</div></div><br />
  
=== GetHotelQuotaStopInfo (Получение информации по отелям, у которых были изменения в квотах или стопах с определенной даты)===
+
===GetHotelQuotaStopInfo (Receiving the information on hotels that have had changes in quotas or stops since a certain date)===
Метод  возвращает отели, у которых были изменения в квотах или стопах с определенной даты.<br />
+
The method returns hotels that have had changes in quotas or stops since a certain date.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Date *''' – дата, с которой будем искать отели с измененными квотами или стопами
+
* '''Date *''' – the date from which we will search for hotels with changed quotas or stops
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetHotelQuotaStopResult''' – результат поиска
+
* '''GetHotelQuotaStopResult''' – the search result
** '''HotelQuotaStopInfo''' – массив данных
+
** '''HotelQuotaStopInfo''' – an array of data
*** '''HotelKey''' – ключ отеля
+
*** '''HotelKey''' – the hotel key
*** '''UpdateDateQuota''' – дата последнего изменения в квотах по отелю
+
*** '''UpdateDateQuota''' – the date of the last change in hotel quotas
*** '''UpdateDateStop''' – дата последнего изменения в стопах по отелю
+
*** '''UpdateDateStop''' – the date of the last change in hotel stops
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetHotelQuotaStopInfo
+
The invocation of the method GetHotelQuotaStopInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6806: Строка 6805:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetHotelQuotaStopInfo
+
The returning result for the method GetHotelQuotaStopInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">
Строка 6821: Строка 6820:
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
=== GetQuotaStop (Получение информации по установленным стопам на номера в отеле)===
 
Метод  возвращает информацию по установленным стопам на номера в отеле.<br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Date *''' – дата, с которой будем искать отели с измененными квотами или стопами
 
* '''HotelKey *''' – ключ отеля
 
Возвращаемый результат:<br />
 
* '''GetQuotaStopResult''' – результат поиска
 
** '''QuoteHotel''' – массив данных
 
*** '''Code''' – ключ отеля
 
*** '''StartDate''' – дата начала
 
*** '''EndDate''' – дата окончания
 
*** '''Date''' – дата
 
*** '''CreateDate''' – дата создания
 
*** '''ID''' – не используется
 
*** '''IsRemove''' – удалена или нет
 
*** '''Total''' – количество мест
 
*** '''Sold''' – продано
 
*** '''Free''' – свободно
 
*** '''HotelKey''' – ключ отеля
 
*** '''RoomTypeKey''' – ключ типа комнаты
 
*** '''RoomCategoryKey''' – ключ категории комнаты
 
*** '''QuoteType''' – тип квоты
 
*** '''IsStopSale''' – установлен ли стоп на продажу
 
** '''RoomTypeId''' – ключ типа комнаты
 
** '''RoomCategoryId''' – ключ категории комнаты
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
===GetQuotaStop (Receiving the information on the established stops for hotel rooms)===
 +
GetQuotaStop (Receiving the information on the established stops for hotel rooms) .<br />
 +
Accepted request parameters ( '''*''' – required):
 +
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''Date *''' – the date from which we will search for hotels with changed quotas or stops
 +
* '''HotelKey *''' – the hotel key
 +
The returning result:<br />
 +
* '''GetQuotaStopResult''' – the search result
 +
** '''QuoteHotel''' – an array of data
 +
*** '''Code''' – the hotel key
 +
*** '''StartDate''' – the start date
 +
*** '''EndDate''' – the end date
 +
*** '''Date''' – the date
 +
*** '''CreateDate''' – the creation date
 +
*** '''ID''' – not used
 +
*** '''IsRemove''' – deleted or notет
 +
*** '''Total''' – the number of places
 +
*** '''Sold''' – sold
 +
*** '''Free''' – free
 +
*** '''HotelKey''' – the hotel key
 +
*** '''RoomTypeKey''' – the hotel key
 +
*** '''RoomCategoryKey''' – the room category key
 +
*** '''QuoteType''' – the quota type
 +
*** '''IsStopSale''' – is the stop set for sale
 +
** '''RoomTypeId''' – the room type key
 +
** '''RoomCategoryId''' – the room category key
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
Вызов метода GetQuotaStop
+
The invocation of the method GetQuotaStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
Строка 6865: Строка 6865:
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetQuotaStop
+
The returning result for the method GetQuotaStop
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
 
<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: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">

Текущая версия на 11:11, 21 ноября 2024

Содержание

Introduction

The InterlookIntegrationService API uses the SOAP protocol. SoapUI also can be used to invoke API methods.

Decryption of server errors

If data sent in a request to the service is sent in an incorrect format, in the response of any method the server will return an error indicating in which line in the XML the error is.
"There is an error in the XML document (12, 49)." – in this case, the error is in line 12, in total 49 characters in the line have the error.
In the SoapUI interface, when the cursor is placed anywhere in the request, the line number and the character number in the line are displayed in the right corner of the window.


SOAP UI

  • Date error. Format: DateTime

Request: <meg:DateFrom>2021-10-010</meg:DateFrom>
Response: The server could not read the request. ---> System.InvalidOperationException: There is an error in the XML document (11, 47). ---> System.FormatException: String "2021-10-010" is not a valid AllXsd value

  • Error in the data. Format: Integer

Request: <meg:PageSize>100000f</meg:PageSize>
Response: The server could not read the request. ---> System.InvalidOperationException: There is an error in the XML document (9, 37). ---> System.FormatException: The input string had an incorrect format

The Methods of IntegrationService

The Methods of IntegrationService

Connect (Obtaining an authentication token)

Method obtains the authentication token required to execute the CreateReservation method.
Accepted request parameters ( * – required):

  • Login * – login of the online user
  • Password * – online user's password

The Returning result:

  • ConnectResult – authentication ID (if authentication was successful, we receive the ID, otherwise we receive the error "Connection result code: -1. Invalid login or password")
Example

The Invocation of method Connect

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

The Returning result of method 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://www.megatec.ru/">
         <ConnectResult>9a1e4f2f-a4b0-4d60-8f17-e320031f44de</ConnectResult>
      </ConnectResponse>
   </soap:Body>
</soap:Envelope>


СheckConnect (Checking the connection activity under a specific identifier)

The method checks whether there is an active connection under a specific authentication identifier.
Accepted request parameters ( * – required):

  • Guid * – authentication ID (returns when requesting the Connect method)

The Returning result:

  • CheckConnectResult – authentication ID (true – if the connection is active, false – if there is no connection)
Example

The Invocation of method CheckConnect

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckConnect>
         <!--Optional:-->
         <meg:guid>e5910963-6f5a-4c18-8799-34417675bfe9</meg:guid>
      </meg:CheckConnect>
   </soapenv:Body>
</soapenv:Envelope>

The Returning result of method CheckConnect

<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>
      <CheckConnectResponse xmlns="http://www.megatec.ru/">
         <CheckConnectResult>true</CheckConnectResult>
      </CheckConnectResponse>
   </soap:Body>
</soap:Envelope>


Methods for working with tours

CreateReservation (The booking of the tour)

The method makes a booking of the tour.

After receiving the authentication ID when requesting the Connect method, it should take some time for the cache to load. If a booking request is generated, when the cache is not loaded yet, the user receives the message "System.Exception: The Cache is loading. Try again after some time". In this case, you need to wait a few seconds and repeat the request.
Attention! Booking of mandatory Extra Services like WithCost, Hardlink occurs automatically. Regardless of whether they are transmitted in the request or not.
Rebooking of a tour occurs if the request contains the parameters ExternalId, ID is already available in the Interlook database.

Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Reserv * – class – object of the tour
    • HasInvoices * – is the tour invoice issued
      • true – the invoce has been issued
      • false – the invoce has not been issued
    • Rate * – the currency of the tour
      • ID – the currency ID (if we do not send or send 0 or send value, that is absent in the database, then the currency, that has ID=1 from table Rates of the Database, will be substituted)
    • TouristServices * – an array of services, used by tourists
      • TouristService * – a separate service, used by tourists
        • TouristRoomNumber – the number of the room. If the accommodation is, for example, Double, then we specify the same room number for each tourist. For other services we leave the field empty.
        • TouristID * – the ID of the tourist
        • ServiceID * – the ID of the service
      • Services – an array of services for a tour (of a certain type, depanding on the type of service, for example: ExcursionService, ExtraService, HotelService, TransferService)
        • HotelService * – the parameters for a HotelService type of the service
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams –additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration * – duration of service
          • ID * – id of service using for binding the service to the tourists
          • Hotel * – array of data hotel
            • AdditionalParams – additional parameters (providing as pair key – value)
              • ParameterPair Key – key
                • Value – value
            • ID * – id of hotel
          • Room * – array of data room
            • RoomTypeID * – id of type of the room
            • RoomCategoryID * – id of type of categories
            • RoomAccomodationID * – id of the accommodation types
          • PansionID * – id of the pansion types
        • TransferService – parameters for type of service TransferService
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams – additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration – duration of service. If the parameter is not sent, it is considered Duration=1
          • ID * – id of service using for binding the service to the tourists
          • Transfer * – array of data Transfer
            • ID * – key of transfer from table TransferDirecions (returns in the request for the method GetTransfers)
          • Transport * – array of data Transport
            • ID * – key of transport from table Transport
        • ExtraService – parameters for the service type ExtraService. If there is additional service AddHots WithCosts for the dates of stay, then it is automatically added in the response, there is no need to transmit it.
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams – additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration – duration of service. If the parameter is not sent, it is considered Duration=1
          • ID * – id of service using for binding the service to the tourists
          • Code * – code of the service (return in the request for method GetExtraService)
        • ExcursionService - parameters for the service type Excursion
          • ExternalID – sending when the service changes (arrives in the response for method CreateReservation in parameter ID). When creating a reservation, we send 0 or do not send the parameter.
          • NMen – number of adult tourists (if we do not send this parameter, then the calculation is carried out by NMen = 1)
          • AdditionalParams – additional parameters (represents as a pair key – value)
            • ParameterPair Key – key
              • Value – value
          • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00). If it is not sent, it is considered current
          • Duration – duration of service. If the parameter is not sent, it is considered Duration=1
          • ID * – id of service using for binding the service to the tourists
          • ExcursionID * – id of excursion (returns in the request for method GetExcursions)
          • CountryID – – id of country, if it is not transmitted, then receive -1 in response
          • CityID – id of city
    • Tourists * – array of tourists by service
      • Tourist * – tourist
        • Sex – genger (key = values: Male = 0, Female = 1, Child = 2, Infant = 3)
        • BirthDate * – date of birth of the tourist (in format YYYY-MM-DDT00:00:00)
        • FirstNameLat * – name of the tourist in Latin
        • SurNameLat * – surname of the tourist in Latin
        • AgeType – type of age (Adult = 0, Child = 1, Infant = 2)
        • IsMain – sets the attribute of the main tourist in the tour (Null, 0 – no, 1 – main tourist)
        • ID * – id of tourist using for binding the tourist to the service
        • Phone – phone number of tourist (in international format, for example +70000000000, 70000000000)
        • Email – e-mail address of the tourist
        • ForeignPassport – foreign passport
        • Serie – series
        • Number – number
        • EndDate – date of expire
    • ExternalID – key of the tour from the database Interlook (When creating a new tour, the parameter can be sent as 0 or not sent)
    • • TourOperatorID – key of the tour in the external system (key of touroperator)
    • TourOperatorCode – number from "customer reservation number"
    • ID – key of the tour

Returning result:

  • HasInvoices – is the tour invoice issued
    • true – is issued
    • false – is not issued
  • AgentDiscount – agent discount
  • Rate – currency of the tour
    • Name – name of the currency
    • ID – id of the currency
    • Description – description of the currency
    • NameLat – name of the currency in Latin
    • Code – code of the currency
    • CodeLat – code of the currency in Latin
    • Unicode – ISO-code for the currency
    • IsMain – is the currency main (true – is, false – is not)
    • IsNational – is the currency national (true – is, false – is not)
  • TouristServices – array of services, using by tourists
    • TouristService – parate service, using by tourist
      • ID – id of service, using by tourist
      • TouristRoomNumber – number of room
      • TouristID – id of the tourist (-1 for the new tour)
      • ServiceID – id of the service (-1 for the new tour)
  • Services – an array of services for a tour (of a certain type, depanding on the type of service, for example: ExcursionService, ExtraService, HotelService, TransferService)
    • HotelService – parameters for the service type HotelService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – опиdescription of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
          • Value – value
            • PenaltyCost - an object with the value of the penalty and the conditions under which the penalty was calculated. The display of the parameters is regulated by the license
              • PolicyKey - the key of the penalty condition in the database (-1 – "fake condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)
              • DateFrom - start date of the condition in format YYYY-MM-DDT00:00:00 (can be null, usually for "fake condition": "without penalty till...")
              • DateTo - ate of end (can be null, for "fake condition": "100% after ...")
              • PenaltyValue - the amount of the penalty
              • IsPercent - percent, pointing, that the penalty is in "%" (true) or in "nights" (false)
              • TotalPenalty - total amount of the penalty
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB))
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Hotel – array of the data Hotel
        • Name – name of the hotel
        • ID – id of the hotel
        • Description – description of the hotel
        • NameLat – name of the hotel in Latin
        • Code – code of the hotel
        • CodeLat – code of the hotel in Latin
        • Unicode – ISO-code of the hotel
        • City – array of data City
          • Name – name of the city
          • ID – id of the city
          • Description – description of the city
          • NameLat – name of the city in Latin
          • Code – code of the city
          • CodeLat – code of the city in Latin
          • Unicode – ISO-code of the city
          • Country – array of data Country
            • Name – name of the country
            • ID – id of the country
            • Description – description of the country
            • NameLat – name of the country in Latin
            • Code – code of the country
            • CodeLat – code of the country in Latin
            • Unicode – ISO-code of the country
            • IsIncoming – parameter for inner use
          • CountryID – id of the country in array data City
          • RegionID – id of the region in array data City
        • RegionID – id of the region
        • PriceType – availability of price (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
        • CountCosts – number of prices
        • CityID – id of the city
        • HotelCategoryID – id of the hotel category
      • Room – array of data Room
        • RoomType – array of data Type of the room
          • Name – name of the room type
          • ID – id of the room type
          • Description – description of the room type
          • NameLat – name of the room type in Latin
          • Code – code of the room type
          • CodeLat – code of the room type in Latin
          • Unicode – ISO-code of the room type
          • Places – number of places in room
          • ExPlaces – additional places in room
          • PrintOrder – additional places in room
        • RoomTypeID – id of room type
        • RoomCategory – array of data Room category
          • Name – name of the room category
          • ID – id of the room category
          • Description – description of the room category
          • NameLat – name of the room category in Latin
          • Code – code of the room category
          • CodeLat – code of the room category in Latin
          • Unicode – ISO-code of the room category
          • MainPlaces – number of main places
          • ExtraPlaces – number of additional places
          • IsMain – arameter of inner use
        • RoomCategoryID – id of the room category
        • RoomAccomodation – array of data Accommodation
          • Name – name of the accommodation
          • ID – id of the accommodation
          • Description – description of the accommodation
          • NameLat – name of the accommodation in Latin
          • Code – code of the accommodation
          • CodeLat – code of the accommodation in Latin
          • Unicode – ISO-code of the accommodation
          • PerRoom – per room/per person
          • AdultMainPlaces – number of main places for adults
          • ChildMainPlaces – number of main places for children
          • AdultExtraPlaces – number of additional places for adults
          • ChildExtraPlaces – number of additional places for children
          • MainPlaces – total number of main places
          • ExtraPlaces – total number of additional places
          • IsMain – parameter of inner use
          • AgeFrom – age of first child from
          • AgeTo – age of first child to
          • Age2From – age of second child from
          • Age2To – age of second child to
        • RoomAccomodationID – id of the accommodation
        • ID – id of the room
        • Name – name of the accommodation type
      • RoomID – id of the room
      • PansionID – id of the pansion
    • TransferService – parameters for service type TransferService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key - value)
        • ParameterPair Key – key
          • Value – value
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Transfer – array of data Transfer
        • AdditionalParams – additional parameters (represents as a pair key – value)
          • ParameterPair Key – key
            • Value – value
        • Name – name of the transfer
        • ID – key of the transfer from table TransferDirecion
        • Description – description of the transfer
        • NameLat – name of the transfer in Latin
        • Code – code of the transfer
        • CodeLat – code of the transfer in Latin
        • Unicode – ISO-code of the transfer
        • PlaceFrom – name of the point from
        • PlaceTo – name of the point to
        • CityID – id of the city
        • RegionID – id of the region
      • Transport – array of data Transport
        • Name – name of the transport
        • ID – id of the transport
        • Description – description of the transport
        • NameLat – name of the transport in Latin
        • Code – code of the transport
        • CodeLat – code of the transport in Latin
        • Unicode – ISO-code of the transport
      • PointToID – id of the point to
      • CityKey – key of the city
      • PointToName – name of the point to
      • PointFromID – name of the point to
      • PointFromName – name of the point from
    • ExcursionService – parameters for the service type ExcursionService
      • ExternalID – неnot using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – city key
      • ExcursionID – id of excursion
    • ExtraService – parameters for the service type ExtraService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – fax of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – key of the city providing the service
      • IsPackage – attribute if the service is in package
      • Code – id of the service
      • HasDuration – has service duration or not
  • ID – key of the tour in external system (key of tour operator)
  • Name – name of the tour
  • Brutto – gross price of the tour
  • CountryID – id of the country of the tour
  • CityID – id of the city of the tour
  • PartnerID – id of buyer of the tour
  • AgentDiscount – agent discount
  • Status – status of the tour (Confirmed = 0, NotConfirmed = 1, WaitingConfirmation = 2, Canceled = 3, WaitingCancelation = 4)
  • StartDate – date of the beginning of the tour (in format YYYY-MM-DDT00:00:00)
  • EndDate – date of the end of the tour (in format YYYY-MM-DDT00:00:00)
  • Duration – duration
  • CreationDate – date of the creation of the tour (in format YYYY-MM-DDT00:00:00)
  • CreatorID – id of creator of the tour
  • Tourists – array of the tourists on the tour
    • Tourist – tourist
      • Sex – gender (key = value: Male = 0, Female = 1, Child = 2, Infant = 3)
      • BirthDate – date of birth of the touris (in format YYYY-MM-DDT00:00:00)*** FirstNameLat – name of the tourist in Latin
      • LastNameLat – surname of the tourist in Latin
      • AgeType – type of the age (Adult = 0, Child = 1, Infant = 2)
      • IsMain – sets attribute main tourist on the tour (Null, 0 – no, 1 – tourist is main)
      • ExternalID – parameter for the internal use
      • ID – id of the tourist (-1 for the new tour)
      • Phone – phone number of the tourist (sets according to the template)
      • Email – e-mail address of the tourist
      • ForeignPassport – foreign passport
        • Serie – series
        • Number – number
        • EndDate – date of expire
      • ExternalID – not using
  • OwnerID – id of the creator of the tour
  • ExternalID – key of the tour in the database Interlook
  • TourOperatorID – key of the tour in external system (key of the tour operator)
  • TourOperatorCode – number from "customer reservation number"
  • AdditionalParams – additional parameters (providing as the pair key – value)
    • ParameterPair Key – key
    • Value – value

In case of errors in the request, we receive a message in the response with a transcript of the errors.
In case of an error in the GUID we will receive the message "Invalid user or password (Invalid GUID)."
If the service signature does not match the type declared in the request, we will receive the message "Service labeled as '<Type of service in the request>' is not a <Service type name>".
If there are no tourists in the request, we will receive the message "There is no any tourist. At least one 'Tourist' must be specified."
If the required field is not specified, we will receive the message "Parameter '<Parameter name>' is required."
If there is no record with the specified ID in the database, we will receive the message "There is no <Entity name> with '<Identifier parameter name>' = <Parameter value in the request> in the database."

Example

Ivocating the method CreateReservation:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header/>
   <soap:Body>
      <CreateReservation xmlns="http://www.megatec.ru/">
         <guid>6b311a75-ffa7-428b-8abe-420e9780ed4d</guid>
         <reserv HasInvoices="false">
            <Rate>
               <ID>1</ID>
            </Rate>
            <TouristServices>
               <TouristService>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <TouristID>-1</TouristID>
                  <ServiceID>-1</ServiceID>
               </TouristService>
               <TouristService>
                 <TouristRoomNumber>1</TouristRoomNumber>
                  <TouristID>-2</TouristID>
                  <ServiceID>-1</ServiceID>
               </TouristService>
                 <TouristService>
                <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-2</ServiceID>
               </TouristService>
               <TouristService>
               <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-2</ServiceID>
               </TouristService>
   <TouristService>
                 <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-3</ServiceID>
               </TouristService>
               <TouristService>
                  <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-3</ServiceID>
               </TouristService>
  <TouristService>
                 <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-4</ServiceID>
               </TouristService>
               <TouristService>
                  <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-4</ServiceID>
               </TouristService>
     <TouristService>
                 <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-1</TouristID>
                  <ServiceID>-5</ServiceID>
               </TouristService>
               <TouristService>
                  <TouristRoomNumber></TouristRoomNumber> 
                  <TouristID>-2</TouristID>
                  <ServiceID>-5</ServiceID>
               </TouristService>           
            </TouristServices>
            <Services>
               <Service xsi:type="HotelService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                         <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="CityID">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="isSuccess">
                        <Value xsi:type="xsd:boolean">true</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <Duration>7</Duration>
                  <ID>-1</ID>
                   <Hotel>
                       <ID>2930</ID>
                          </Hotel>
               <Room>
                     <RoomTypeID>3</RoomTypeID>
                     <RoomCategoryID>20</RoomCategoryID>
                     <RoomAccomodationID>5558</RoomAccomodationID>
                  </Room>
                  <PansionID>3</PansionID>
               </Service>
    <Service xsi:type="TransferService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <ID>-2</ID>
                  <Transfer>
                        <ID>606</ID>
                       </Transfer>
                  <Transport>
                    <ID>4</ID>
                   </Transport>
               </Service>
                <Service xsi:type="TransferService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <StartDate>2022-08-27T00:00:00</StartDate>
                  <Duration>1</Duration>
                  <ID>-3</ID>
                  <Transfer>               
                    <ID>604</ID>
               </Transfer>
                  <Transport>
                     <ID>2</ID>
                     </Transport>
                  </Service>	
                  <Service xsi:type="ExtraService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <Duration>1</Duration>
	              <ID>-4</ID>
	              <Code>694</Code>
                   </Service>
                   <Service xsi:type="ExcursionService">
                  <ExternalID>0</ExternalID>
                  <NMen>2</NMen>
                   <StartDate>2022-08-23T00:00:00</StartDate>
                     <ID>-5</ID>
                     <ExcursionID>714</ExcursionID>
                     </Service>
                   </Services>
                 <CountryID>6</CountryID>
                 <CityID>80</CityID>
                    <Tourists>
                     <Tourist Sex="Male"  BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ExternalID="0" ID="-1" Phone="89610553087" Email="dfj@ety.ua">
                     <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
                     </Tourist>
                     <Tourist Name="" Sex="Male" FirstName="" LastName="" SurName="" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" Citizen="" IsMain="false" ExternalID="0" ID="-2" Phone="" Email="">
                      <ForeignPassport EndDate="2025-01-01T00:00:00"/>
                     </Tourist>
                  </Tourists>
                <AdditionalParams>
               <ParameterPair Key="PcnId">
                  <Value xsi:type="xsd:int">116</Value>
               </ParameterPair>
            </AdditionalParams>
             <TourOperatorID>0</TourOperatorID>
             <TourOperatorCode>0</TourOperatorCode>
             <ID>0</ID>
             <ExternalID>0</ExternalID>
         </reserv>
      </CreateReservation>
   </soap:Body>
</soap:Envelope>

The Returning result of method CreateReservation:

<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>
      <CreateReservationResponse xmlns="http://www.megatec.ru/">
         <CreateReservationResult HasInvoices="false">
            <Rate>
               <Name>EU</Name>
               <ID>-13</ID>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
            <TouristServices>
               <TouristService>
                  <ID>368194</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368195</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368197</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368196</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368199</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368198</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368203</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368202</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368201</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368200</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368205</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368204</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
            </TouristServices>
            <Services>
               <Service xsi:type="HotelService">
                  <ExternalID>-1</ExternalID>
                  <Price>3850</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="CancellationPolicy">
                        <Value xsi:type="ArrayOfPenaltyCost">
                           <PenaltyCost>
                              <PolicyKey>-1</PolicyKey>
                              <DateFrom xsi:nil="true"/>
                              <DateTo>2022-08-15T00:00:00</DateTo>
                              <PenaltyValue>0</PenaltyValue>
                              <IsPercent>false</IsPercent>
                              <TotalPenalty>0</TotalPenalty>
                              <Description>If canceled before 15.08.2022, no penalty Penalty value is 0.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>125</PolicyKey>
                              <DateFrom>2022-08-15T00:00:00</DateFrom>
                              <DateTo>2022-08-16T23:59:59</DateTo>
                              <PenaltyValue>6</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>231</TotalPenalty>
                              <Description>If canceled in period 15.08.2022 - 16.08.2022, the penalty will be  6.00 % of the cost of accommodation Penalty value is 231.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>200</PolicyKey>
                              <DateFrom>2022-08-17T00:00:00</DateFrom>
                              <DateTo>2022-08-17T23:59:59</DateTo>
                              <PenaltyValue>11</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>423.5</TotalPenalty>
                              <Description>If canceled in period 17.08.2022 - 17.08.2022, the penalty will be  11.00 % of the cost of accommodation Penalty value is 423.50 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>123</PolicyKey>
                              <DateFrom>2022-08-18T00:00:00</DateFrom>
                              <DateTo>2022-08-19T23:59:59</DateTo>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled in period 18.08.2022 - 19.08.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>208</PolicyKey>
                              <DateFrom>2022-08-20T00:00:00</DateFrom>
                              <DateTo xsi:nil="true"/>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled from 20.08.2022, the penalty will be 20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                        </Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(550,00[kolesnyk2/kolesnyk2]*7) * 1 room = 3850,00</DetailBrutto>
                  <Notes/>
                  <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>8</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>3850</Brutto>
                  <ServiceClassID>0</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168804</ID>
                  <Status>
                     <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                     <ID>1</ID>
                  </Status>
                  <Hotel>
                     <Name>Red</Name>
                     <ID>2930</ID>
                     <Description>4 stars (A)  (Ukraine\Kiev\Kiev)</Description>
                     <Code>Red</Code>
                     <City>
                        <Name>Kiev</Name>
                        <ID>80</ID>
                        <Code>IEV</Code>
                        <Country>
                           <Name>Ukraine</Name>
                           <ID>6</ID>
                           <IsIncoming>true</IsIncoming>
                        </Country>
                        <CountryID>6</CountryID>
                        <RegionID>28</RegionID>
                     </City>
                     <RegionID>28</RegionID>
                     <PriceType>None</PriceType>
                     <CountCosts xsi:nil="true"/>
                     <CityID>80</CityID>
                     <HotelCategoryID>4</HotelCategoryID>
                  </Hotel>
                  <Room>
                     <RoomType>
                        <Name/>
                        <ID>3</ID>
                        <Code>Double Room</Code>
                        <Places>2</Places>
                        <ExPlaces>2</ExPlaces>
                        <PrintOrder>0</PrintOrder>
                     </RoomType>
                     <RoomTypeID>3</RoomTypeID>
                     <RoomCategory>
                        <Name>Jakuzzi</Name>
                        <ID>20</ID>
                        <MainPlaces>0</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>false</IsMain>
                     </RoomCategory>
                     <RoomCategoryID>20</RoomCategoryID>
                     <RoomAccomodation>
                        <Name>2AD</Name>
                        <ID>5558</ID>
                        <PerRoom>false</PerRoom>
                        <AdultMainPalces>0</AdultMainPalces>
                        <ChildMainPalces>0</ChildMainPalces>
                        <AdultExtraPalces>0</AdultExtraPalces>
                        <ChildExtraPalces>0</ChildExtraPalces>
                        <MainPlaces>2</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>true</IsMain>
                        <AgeFrom>0</AgeFrom>
                        <AgeTo>0</AgeTo>
                        <Age2From>0</Age2From>
                        <Age2To>0</Age2To>
                     </RoomAccomodation>
                     <RoomAccomodationID>5558</RoomAccomodationID>
                     <ID>0</ID>
                     <Name/>
                  </Room>
                  <RoomID>0</RoomID>
                  <PansionID>3</PansionID>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-2</ExternalID>
                  <Price>240</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(120,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 240,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>240</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168805</ID>
                  <Status>
                     <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">1</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>606</ID>
                  </Transfer>
                  <Transport>
                     <Name>Mini Bus</Name>
                     <ID>4</ID>
                  </Transport>
                  <PointToId>2930</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Red</PointToName>
                  <PointFromId>1000028</PointFromId>
                  <PointFromName>Kiev ap</PointFromName>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-3</ExternalID>
                  <Price>60</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(15,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 30,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                  <StartDate>2022-08-27T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>60</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168806</ID>
                  <Status>
                     <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">2</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>608</ID>
                  </Transfer>
                  <Transport>
                     <Name>Group</Name>
                     <ID>2</ID>
                  </Transport>
                  <PointToId>1000028</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Kiev ap</PointToName>
                  <PointFromId>2930</PointFromId>
                  <PointFromName>Red</PointFromName>
               </Service>
               <Service xsi:type="ExcursionService">
                  <ExternalID>-5</ExternalID>
                  <Price>120</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(50,00(0-120)[test_exc] * 2 pax) = 100,00</DetailBrutto>
                  <Notes/>
                  <Name>EXC::Kiev City</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>120</Brutto>
                  <ServiceClassID>1</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168808</ID>
                  <Status>
                     <Name>EXC::Kiev City</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <ExcursionID>714</ExcursionID>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>200</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(100,00(0-120)[Регресс] * 2 pax * 1 days) = 200,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>200</Brutto>
                  <ServiceClassID>79</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168807</ID>
                  <Status>
                     <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>694</Code>
                  <HasDuration>false</HasDuration>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>478</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-22T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>478</Brutto>
                  <ServiceClassID>102</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168803</ID>
                  <Status>
                     <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>713</Code>
                  <HasDuration>false</HasDuration>
               </Service>
            </Services>
            <ID>-1</ID>
            <Name>MT140101A62</Name>
            <Brutto>4948</Brutto>
            <CountryID>6</CountryID>
            <CityID>80</CityID>
            <PartnerID>1035</PartnerID>
            <Status>WaitingConfirmation</Status>
            <StartDate>2022-08-20T00:00:00</StartDate>
            <EndDate>2022-08-27T00:00:00</EndDate>
            <Duration>7</Duration>
            <CreationDate>2022-03-04T16:56:48.953</CreationDate>
            <CreatorID>101</CreatorID>
            <Tourists>
               <Tourist Sex="Male" BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ID="88548" Phone="89610553087" Email="dfj@ety.ua">
                  <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
               <Tourist Sex="Male" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" IsMain="false" ID="88549" Phone="" Email="">
                  <ForeignPassport Serie="" Number="" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
            </Tourists>
            <OwnerID xsi:nil="true"/>
            <TourOperatorID>-1</TourOperatorID>
            <TourOperatorCode>0</TourOperatorCode>
            <ExternalID>37263</ExternalID>
            <AdditionalParams>
               <ParameterPair Key="PcnId">
                  <Value xsi:type="xsd:int">116</Value>
               </ParameterPair>
               <ParameterPair Key="IsIntegrationServiceReservation">
                  <Value xsi:type="xsd:boolean">true</Value>
               </ParameterPair>
               <ParameterPair Key="ReservationCost">
                  <Value xsi:type="xsd:double">4948</Value>
               </ParameterPair>
            </AdditionalParams>
         </CreateReservationResult>
      </CreateReservationResponse>
   </soap:Body>
</soap:Envelope>


GetReservation (Getting the reservation by key)

The method receives information about the reservation by the reservation key.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – key of the reservation

Returning result:

  • HasInvoices – is the tour invoice issued
    • true – is issued
    • false – is not issued
  • AgentDiscount – agent discount
  • Rate – currency of the tour
    • Name – name of the currency
    • ID – id of the currency
    • Description – description of the currency
    • NameLat – name of the currency in Latin
    • Code – code of the currency
    • CodeLat – code of the currency in Latin
    • Unicode – ISO-code for the currency
    • IsMain – is the currency main (true – is, false – is not)
    • IsNational – is the currency national (true – is, false – is not)
  • TouristServices – array of services, using by tourists
    • TouristService – parate service, using by tourist
      • ID – id of service, using by tourist
      • TouristRoomNumber – number of room
      • TouristID – id of the tourist (-1 for the new tour)
      • ServiceID – id of the service (-1 for the new tour)
  • Services – an array of services for a tour (of a certain type, depanding on the type of service, for example: ExcursionService, ExtraService, HotelService, TransferService)
    • HotelService – parameters for the service type HotelService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – опиdescription of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
          • Value – value
            • PenaltyCost - an object with the value of the penalty and the conditions under which the penalty was calculated. The display of the parameters is regulated by the license
              • PolicyKey - the key of the penalty condition in the database (-1 – "fake condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)
              • DateFrom - start date of the condition in format YYYY-MM-DDT00:00:00 (can be null, usually for "fake condition": "without penalty till...")
              • DateTo - ate of end (can be null, for "fake condition": "100% after ...")
              • PenaltyValue - the amount of the penalty
              • IsPercent - percent, pointing, that the penalty is in "%" (true) or in "nights" (false)
              • TotalPenalty - total amount of the penalty
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB))
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Hotel – array of the data Hotel
        • Name – name of the hotel
        • ID – id of the hotel
        • Description – description of the hotel
        • NameLat – name of the hotel in Latin
        • Code – code of the hotel
        • CodeLat – code of the hotel in Latin
        • Unicode – ISO-code of the hotel
        • City – array of data City
          • Name – name of the city
          • ID – id of the city
          • Description – description of the city
          • NameLat – name of the city in Latin
          • Code – code of the city
          • CodeLat – code of the city in Latin
          • Unicode – ISO-code of the city
          • Country – array of data Country
            • Name – name of the country
            • ID – id of the country
            • Description – description of the country
            • NameLat – name of the country in Latin
            • Code – code of the country
            • CodeLat – code of the country in Latin
            • Unicode – ISO-code of the country
            • IsIncoming – parameter for inner use
          • CountryID – id of the country in array data City
          • RegionID – id of the region in array data City
        • RegionID – id of the region
        • PriceType – availability of price (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
        • CountCosts – number of prices
        • CityID – id of the city
        • HotelCategoryID – id of the hotel category
      • Room – array of data Room
        • RoomType – array of data Type of the room
          • Name – name of the room type
          • ID – id of the room type
          • Description – description of the room type
          • NameLat – name of the room type in Latin
          • Code – code of the room type
          • CodeLat – code of the room type in Latin
          • Unicode – ISO-code of the room type
          • Places – number of places in room
          • ExPlaces – additional places in room
          • PrintOrder – additional places in room
        • RoomTypeID – id of room type
        • RoomCategory – array of data Room category
          • Name – name of the room category
          • ID – id of the room category
          • Description – description of the room category
          • NameLat – name of the room category in Latin
          • Code – code of the room category
          • CodeLat – code of the room category in Latin
          • Unicode – ISO-code of the room category
          • MainPlaces – number of main places
          • ExtraPlaces – number of additional places
          • IsMain – arameter of inner use
        • RoomCategoryID – id of the room category
        • RoomAccomodation – array of data Accommodation
          • Name – name of the accommodation
          • ID – id of the accommodation
          • Description – description of the accommodation
          • NameLat – name of the accommodation in Latin
          • Code – code of the accommodation
          • CodeLat – code of the accommodation in Latin
          • Unicode – ISO-code of the accommodation
          • PerRoom – per room/per person
          • AdultMainPlaces – number of main places for adults
          • ChildMainPlaces – number of main places for children
          • AdultExtraPlaces – number of additional places for adults
          • ChildExtraPlaces – number of additional places for children
          • MainPlaces – total number of main places
          • ExtraPlaces – total number of additional places
          • IsMain – parameter of inner use
          • AgeFrom – age of first child from
          • AgeTo – age of first child to
          • Age2From – age of second child from
          • Age2To – age of second child to
        • RoomAccomodationID – id of the accommodation
        • ID – id of the room
        • Name – name of the accommodation type
      • RoomID – id of the room
      • PansionID – id of the pansion
    • TransferService – parameters for service type TransferService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key - value)
        • ParameterPair Key – key
          • Value – value
              • Description - description
      • DetailBrutto – gross details
      • Notes – notes for the service
      • Name – name of the service (example for the hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (in format YYYY-MM-DDT00:00:00)
      • StartDay – not using
      • Duration – duration of the service
      • RateBrutto – currency of the gross
      • Brutto – price of the gross
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • Transfer – array of data Transfer
        • AdditionalParams – additional parameters (represents as a pair key – value)
          • ParameterPair Key – key
            • Value – value
        • Name – name of the transfer
        • ID – key of the transfer from table TransferDirecion
        • Description – description of the transfer
        • NameLat – name of the transfer in Latin
        • Code – code of the transfer
        • CodeLat – code of the transfer in Latin
        • Unicode – ISO-code of the transfer
        • PlaceFrom – name of the point from
        • PlaceTo – name of the point to
        • CityID – id of the city
        • RegionID – id of the region
      • Transport – array of data Transport
        • Name – name of the transport
        • ID – id of the transport
        • Description – description of the transport
        • NameLat – name of the transport in Latin
        • Code – code of the transport
        • CodeLat – code of the transport in Latin
        • Unicode – ISO-code of the transport
      • PointToID – id of the point to
      • CityKey – key of the city
      • PointToName – name of the point to
      • PointFromID – name of the point to
      • PointFromName – name of the point from
    • ExcursionService – parameters for the service type ExcursionService
      • ExternalID – неnot using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – address of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – city key
      • ExcursionID – id of excursion
    • ExtraService – parameters for the service type ExtraService
      • ExternalID – not using
      • Price – gross price
      • NMen – number of adult tourists
      • Partner – array of data of the partners
        • Name – name of the partner
        • ID – id of the partner
        • Description – description of the partner
        • NameLat – name of the partner in Latin
        • Code – code of the partner
        • CodeLat – code of the partner in Latin
        • Unicode – ISO-code of the partner
        • PartnersGroupID – id of the groups of partners
        • FullName – full name of the partner
        • Fax – fax of the partner
        • Address – fax of the partner
        • Zip – zip-code of the partner
        • Email – e-mail of the partner
        • Phones – phone number of the partner
      • PartnerID – id of the service provider (can be transmitted as 0 – then it will be picked up automatically by the calculator)
      • Quota – service on a quota (key = value: None = 0, Yes = 1, No = 2, AFew = 3, Request = 4, NoFlight = 5, OnlyAgent = 6, All = 7, NotChecked = 10)
      • PacketKey – id of package of the service
      • AdditionalParams – additional parameters (represents as a pair key – value)
        • ParameterPair Key – key
        • Value – value
      • DetailBrutto – gross details
      • Notes – notes to the service
      • Name – name of the service (example for hotel service: HTL::Delphi/Acropol Hotel/Double Room/2AD/100 m2/BB)
      • StartDate – date of providing service (In format YYYY-MM-DDT:00:00)
      • StartDay – not using
      • Duration – duration of service
      • RateBrutto – the currency of the gross
      • Brutto – gross price
      • ServiceClassID – id of the service class
      • TouristCount – number of tourists, using the service
      • ID – id of the service (-1 for the new tour)
      • Status – status of the service
        • Name – name of the service status
        • ID – id of the service status
        • Description – description of the service status
        • NameLat – name of the service status in Latin
        • Code – code of the service status
        • CodeLat – code of the service status in Latin
        • Unicode – ISO-code of the service status
      • CityKey – key of the city providing the service
      • IsPackage – attribute if the service is in package
      • Code – id of the service
      • HasDuration – has service duration or not
  • ID – key of the tour in external system (key of tour operator)
  • Name – name of the tour
  • Brutto – gross price of the tour
  • CountryID – id of the country of the tour
  • CityID – id of the city of the tour
  • PartnerID – id of buyer of the tour
  • AgentDiscount – agent discount
  • Status – status of the tour (Confirmed = 0, NotConfirmed = 1, WaitingConfirmation = 2, Canceled = 3, WaitingCancelation = 4)
  • StartDate – date of the beginning of the tour (in format YYYY-MM-DDT00:00:00)
  • EndDate – date of the end of the tour (in format YYYY-MM-DDT00:00:00)
  • Duration – duration
  • CreationDate – date of the creation of the tour (in format YYYY-MM-DDT00:00:00)
  • CreatorID – id of creator of the tour
  • Tourists – array of the tourists on the tour
    • Tourist – tourist
      • Sex – gender (key = value: Male = 0, Female = 1, Child = 2, Infant = 3)
      • BirthDate – date of birth of the touris (in format YYYY-MM-DDT00:00:00)*** FirstNameLat – name of the tourist in Latin
      • LastNameLat – surname of the tourist in Latin
      • AgeType – type of the age (Adult = 0, Child = 1, Infant = 2)
      • IsMain – sets attribute main tourist on the tour (Null, 0 – no, 1 – tourist is main)
      • ExternalID – parameter for the internal use
      • ID – id of the tourist (-1 for the new tour)
      • Phone – phone number of the tourist (sets according to the template)
      • Email – e-mail address of the tourist
      • ForeignPassport – foreign passport
        • Serie – series
        • Number – number
        • IssueDate –date of issue
        • EndDate – date of expire
      • ExternalID – not using
  • OwnerID – id of the creator of the tour
  • ExternalID – key of the tour in the database Interlook
  • TourOperatorID – key of the tour in external system (key of the tour operator)
  • TourOperatorCode – number from "customer reservation number"
  • AdditionalParams – additional parameters (providing as the pair key – value)
    • ParameterPair Key – key
    • Value – value
Example

The Invocation of method GetReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservation>
         <!--Optional:-->
         <meg:guid>6b311a75-ffa7-428b-8abe-420e9780ed4d</meg:guid>
         <meg:dgKey>37263</meg:dgKey>
      </meg:GetReservation>
   </soapenv:Body>
</soapenv:Envelope>

Retutning result for method GetReservation

<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>
      <GetReservationResponse xmlns="http://www.megatec.ru/">
         <GetReservationResult HasInvoices="false">
            <Rate>
               <Name>EU</Name>
               <ID>-44</ID>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
            <TouristServices>
               <TouristService>
                  <ID>368194</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368195</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168804</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368197</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368196</ID>
                  <ServiceID>168805</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368199</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368198</ID>
                  <ServiceID>168806</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368203</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368202</ID>
                  <ServiceID>168808</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368201</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368200</ID>
                  <ServiceID>168807</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368205</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88549</TouristID>
               </TouristService>
               <TouristService>
                  <ID>368204</ID>
                  <TouristRoomNumber>1</TouristRoomNumber>
                  <ServiceID>168803</ServiceID>
                  <TouristID>88548</TouristID>
               </TouristService>
            </TouristServices>
            <Services>
               <Service xsi:type="HotelService">
                  <ExternalID>-1</ExternalID>
                  <Price>3850</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="CancellationPolicy">
                        <Value xsi:type="ArrayOfPenaltyCost">
                           <PenaltyCost>
                              <PolicyKey>-1</PolicyKey>
                              <DateFrom xsi:nil="true"/>
                              <DateTo>2022-08-15T00:00:00</DateTo>
                              <PenaltyValue>0</PenaltyValue>
                              <IsPercent>false</IsPercent>
                              <TotalPenalty>0</TotalPenalty>
                              <Description>If canceled before 15.08.2022, no penalty Penalty value is 0.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>125</PolicyKey>
                              <DateFrom>2022-08-15T00:00:00</DateFrom>
                              <DateTo>2022-08-16T23:59:59</DateTo>
                              <PenaltyValue>6</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>231</TotalPenalty>
                              <Description>If canceled in period 15.08.2022 - 16.08.2022, the penalty will be  6.00 % of the cost of accommodation Penalty value is 231.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>200</PolicyKey>
                              <DateFrom>2022-08-17T00:00:00</DateFrom>
                              <DateTo>2022-08-17T23:59:59</DateTo>
                              <PenaltyValue>11</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>423.5</TotalPenalty>
                              <Description>If canceled in period 17.08.2022 - 17.08.2022, the penalty will be  11.00 % of the cost of accommodation Penalty value is 423.50 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>123</PolicyKey>
                              <DateFrom>2022-08-18T00:00:00</DateFrom>
                              <DateTo>2022-08-19T23:59:59</DateTo>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled in period 18.08.2022 - 19.08.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                           <PenaltyCost>
                              <PolicyKey>208</PolicyKey>
                              <DateFrom>2022-08-20T00:00:00</DateFrom>
                              <DateTo xsi:nil="true"/>
                              <PenaltyValue>20</PenaltyValue>
                              <IsPercent>true</IsPercent>
                              <TotalPenalty>770</TotalPenalty>
                              <Description>If canceled from 20.08.2022, the penalty will be 20.00 % of the cost of accommodation Penalty value is 770.00 EU</Description>
                           </PenaltyCost>
                        </Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(550,00[kolesnyk2/kolesnyk2]*7) * 1 room = 3850,00</DetailBrutto>
                  <Notes/>
                  <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>8</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>3850</Brutto>
                  <ServiceClassID>0</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168804</ID>
                  <Status>
                     <Name>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB</Name>
                     <ID>1</ID>
                  </Status>
                  <Hotel>
                     <Name>Red</Name>
                     <ID>2930</ID>
                     <Description>4 stars (A)  (Ukraine\Kiev\Kiev)</Description>
                     <Code>Red</Code>
                     <City>
                        <Name>Kiev</Name>
                        <ID>80</ID>
                        <Code>IEV</Code>
                        <Country>
                           <Name>Ukraine</Name>
                           <ID>6</ID>
                           <IsIncoming>true</IsIncoming>
                        </Country>
                        <CountryID>6</CountryID>
                        <RegionID>28</RegionID>
                     </City>
                     <RegionID>28</RegionID>
                     <PriceType>None</PriceType>
                     <CountCosts xsi:nil="true"/>
                     <CityID>80</CityID>
                     <HotelCategoryID>4</HotelCategoryID>
                  </Hotel>
                  <Room>
                     <RoomType>
                        <Name/>
                        <ID>3</ID>
                        <Code>Double Room</Code>
                        <Places>2</Places>
                        <ExPlaces>2</ExPlaces>
                        <PrintOrder>0</PrintOrder>
                     </RoomType>
                     <RoomTypeID>3</RoomTypeID>
                     <RoomCategory>
                        <Name>Jakuzzi</Name>
                        <ID>20</ID>
                        <MainPlaces>0</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>false</IsMain>
                     </RoomCategory>
                     <RoomCategoryID>20</RoomCategoryID>
                     <RoomAccomodation>
                        <Name>2AD</Name>
                        <ID>5558</ID>
                        <PerRoom>false</PerRoom>
                        <AdultMainPalces>0</AdultMainPalces>
                        <ChildMainPalces>0</ChildMainPalces>
                        <AdultExtraPalces>0</AdultExtraPalces>
                        <ChildExtraPalces>0</ChildExtraPalces>
                        <MainPlaces>2</MainPlaces>
                        <ExtraPlaces>0</ExtraPlaces>
                        <IsMain>true</IsMain>
                        <AgeFrom>0</AgeFrom>
                        <AgeTo>0</AgeTo>
                        <Age2From>0</Age2From>
                        <Age2To>0</Age2To>
                     </RoomAccomodation>
                     <RoomAccomodationID>5558</RoomAccomodationID>
                     <ID>0</ID>
                     <Name/>
                  </Room>
                  <RoomID>0</RoomID>
                  <PansionID>3</PansionID>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-2</ExternalID>
                  <Price>240</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(120,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 240,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                  <StartDate>2022-08-20T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>240</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168805</ID>
                  <Status>
                     <Name>TRF::Arrival transfer/Mini Bus/Kiev ap-Red/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">1</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>606</ID>
                  </Transfer>
                  <Transport>
                     <Name>Mini Bus</Name>
                     <ID>4</ID>
                  </Transport>
                  <PointToId>2930</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Red</PointToName>
                  <PointFromId>1000028</PointFromId>
                  <PointFromName>Kiev ap</PointFromName>
               </Service>
               <Service xsi:type="TransferService">
                  <ExternalID>-3</ExternalID>
                  <Price>60</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="CityToKey">
                        <Value xsi:type="xsd:int">80</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointFromId">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                     <ParameterPair Key="PointToId">
                        <Value xsi:type="xsd:int">1000028</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1171</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(15,00(0-120)[Vedi_test/Vedi_test] * 2 pax) = 30,00</DetailBrutto>
                  <Notes/>
                  <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                  <StartDate>2022-08-27T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>60</Brutto>
                  <ServiceClassID>2</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168806</ID>
                  <Status>
                     <Name>TRF::Departure transfer/Group/Red-Kiev ap/Kiev/</Name>
                     <ID>2</ID>
                  </Status>
                  <Transfer>
                     <AdditionalParams>
                        <ParameterPair Key="SlKey">
                           <Value xsi:type="xsd:int">2</Value>
                        </ParameterPair>
                     </AdditionalParams>
                     <Name/>
                     <ID>608</ID>
                  </Transfer>
                  <Transport>
                     <Name>Group</Name>
                     <ID>2</ID>
                  </Transport>
                  <PointToId>1000028</PointToId>
                  <CityKey>80</CityKey>
                  <PointToName>Kiev ap</PointToName>
                  <PointFromId>2930</PointFromId>
                  <PointFromName>Red</PointFromName>
               </Service>
               <Service xsi:type="ExcursionService">
                  <ExternalID>-5</ExternalID>
                  <Price>120</Price>
                  <NMen>2</NMen>
                  <Partner>
                     <Name>Mouzenidis Travel 1</Name>
                     <ID>1035</ID>
                     <PartnersGroupID>1051</PartnersGroupID>
                     <FullName>Mouzenidis Travel 1</FullName>
                     <Fax>007-(495)-950-4-950</Fax>
                     <Address>37, Leningradskiy prospekt, Moscow, Russia</Address>
                     <Email>aefremov@megatec.ru</Email>
                  </Partner>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(50,00(0-120)[test_exc] * 2 pax) = 100,00</DetailBrutto>
                  <Notes/>
                  <Name>EXC::Kiev City</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>120</Brutto>
                  <ServiceClassID>1</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168808</ID>
                  <Status>
                     <Name>EXC::Kiev City</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <ExcursionID>714</ExcursionID>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>200</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">1035</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(100,00(0-120)[Регресс] * 2 pax * 1 days) = 200,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-23T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>200</Brutto>
                  <ServiceClassID>79</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168807</ID>
                  <Status>
                     <Name>EX::Сейф в номере/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>694</Code>
                  <HasDuration>false</HasDuration>
               </Service>
               <Service xsi:type="ExtraService">
                  <ExternalID xsi:nil="true"/>
                  <Price>478</Price>
                  <NMen>2</NMen>
                  <PartnerID>1035</PartnerID>
                  <Quota>NotChecked</Quota>
                  <PacketKey>0</PacketKey>
                  <AdditionalParams>
                     <ParameterPair Key="HotelDlKey">
                        <Value xsi:type="xsd:int">168804</Value>
                     </ParameterPair>
                     <ParameterPair Key="ContractPrKey">
                        <Value xsi:type="xsd:int">2930</Value>
                     </ParameterPair>
                  </AdditionalParams>
                  <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
                  <Notes/>
                  <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                  <StartDate>2022-08-22T00:00:00</StartDate>
                  <StartDay xsi:nil="true"/>
                  <Duration>1</Duration>
                  <RateBrutto>EU</RateBrutto>
                  <Brutto>478</Brutto>
                  <ServiceClassID>102</ServiceClassID>
                  <TouristCount>2</TouristCount>
                  <ID>168803</ID>
                  <Status>
                     <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
                     <ID>1</ID>
                  </Status>
                  <CityKey>80</CityKey>
                  <IsPackage>false</IsPackage>
                  <Code>713</Code>
                  <HasDuration>false</HasDuration>
               </Service>
            </Services>
            <ID>37263</ID>
            <Name>MT140101A62</Name>
            <Brutto>4948</Brutto>
            <CountryID>6</CountryID>
            <CityID>80</CityID>
            <PartnerID>1035</PartnerID>
            <Status>WaitingConfirmation</Status>
            <StartDate>2022-08-20T00:00:00</StartDate>
            <EndDate>2022-08-27T00:00:00</EndDate>
            <Duration>7</Duration>
            <CreationDate>2022-03-04T16:56:48.953</CreationDate>
            <CreatorID>101</CreatorID>
            <Tourists>
               <Tourist Sex="Male" BirthDate="1979-08-10T00:00:00" FirstNameLat="Alex" SurNameLat="Vladimirov" AgeType="Adult" IsMain="true" ID="88548" Phone="89610553087" Email="dfj@ety.ua">
                  <ForeignPassport Serie="1234" Number="123456" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
               <Tourist Sex="Male" BirthDate="1972-08-11T00:00:00" FirstNameLat="Alexa" SurNameLat="Vladimirovicha" AgeType="Adult" IsMain="false" ID="88549" Phone="" Email="">
                  <ForeignPassport Serie="" Number="" EndDate="2025-01-01T00:00:00"/>
                  <ExternalID>0</ExternalID>
               </Tourist>
            </Tourists>
            <OwnerID xsi:nil="true"/>
            <TourOperatorID>-1</TourOperatorID>
            <TourOperatorCode>0</TourOperatorCode>
            <ExternalID>0</ExternalID>
            <AdditionalParams>
               <ParameterPair Key="PcnId">
                  <Value xsi:type="xsd:int">116</Value>
               </ParameterPair>
            </AdditionalParams>
         </GetReservationResult>
      </GetReservationResponse>
   </soap:Body>
</soap:Envelope>


GetArrivalsByDate (Getting a list of tourists on the start date of the tour)

The method returns data on the list of arrivals in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning.
The ShowhotelReservationsByDate setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.
To enable the setting, you need to go from the Master-Interlook client application to Master-Interlook → Settings → Online users → User → Person connection → edit role.
If the current user does not have the ShowhotelReservationsByDate setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid.

Настройка доступа
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • ArrivalDate * – date of arrival
  • CountryKey – key of the country
  • RegionKey – key of the region
  • CityKey – key of the city
  • HotelKey – key of the hotel

Returning result:

  • GetArrivalsByDateResult – result of the search
    • ReservationId – the reservation number in the Interlook client
    • Email – e-mail address if available
    • Name – the first and last name of the tourist
    • Phone – phone number (displayed in the format of digits only, processed when forming a response)
    • CheckIn – date of arrival
    • CheckOut – departure date
    • HotelId – departure date
    • HasTransferArrival – transfer to the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
    • FlightArrival – direct flight number
    • FlightDeparture – return flight number
    • FlightArrivalTime – departure time of a direct flight
    • FlightDepartureTime – departure time of the return flight
Example

The invocation of the method GetArrivalsByDate

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
<soapenv:Header/>
<soapenv:Body>
<meg:GetArrivalsByDate>
<!--Optional:-->
<meg:guid>96ab8f68-9a13-4845-b338-fdb29be4970b</meg:guid>
<meg:arrivalDate>2021-07-15</meg:arrivalDate>
</meg:GetArrivalsByDate>
</soapenv:Body>
</soapenv:Envelope>

Returning result of the method GetArrivalsByDate

<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>
      <GetArrivalsByDateResponse xmlns="http://www.megatec.ru/">
         <GetArrivalsByDateResult>[{"reservationId":"MT110831A01","email":"","name":"Gusn Genna","phone":"","checkIn"
:"31.08.2021","checkOut":"05.09.2021","hotelId":2945,"hasTransferArrival":false,"hasTransferDeparture"
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetArrivalsByDateResult>
      </GetArrivalsByDateResponse>
   </soap:Body>
</soap:Envelope>


GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)

The method returns data on the list of departures in json format. The method returns data on the main tourist from the reservation. If the main tourist does not have a phone number set, the data of the next tourist on the ticket, who has a phone number set, will be returning.
If the main tourist's hotel accommodation service is canceled, the data of the next tourist who has a phone number will be returning.
The ShowhotelReservationsByDate setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.
To enable the setting, you need to go from the Master-Interlook client application to Master-Interlook → Settings → Online users → User → Person connection → edit role.
If the current user does not have the ShowhotelReservationsByDate setting enabled – there will be no access to this method, a message about insufficient rights will be returning in response. Verification is performed by the authentication identifier Guid.

Настройка доступа
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DepartureDate * – date of departure
  • CountryKey – key of the country
  • RegionKey – key of the country
  • CityKey – key of the city
  • HotelKey – key of the hotel

Returning result:

  • GetDeparturesByDateResult – result of the search
    • ReservationId – the reservation number in the Interlook client
    • Email – e-mail address if available
    • Name – the first and last name of the tourist
    • Phone – phone number (displayed in the format of digits only, processed when forming a response)
    • CheckIn – date of arrival
    • checkOut – departure date
    • HotelId – hotel key
    • HasTransferArrival – transfer to the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
    • HasTransferDeparture – transfer from the hotel (true – there is a transfer to the hotel, if there is no transfer in the application, false is output)
    • FlightArrival – direct flight number
    • FlightDeparture – return flight number
    • FlightArrivalTime – departure time of a direct flight
    • FlightDepartureTime – departure time of the return flight
Example

The invocation of the method GetDeparturesByDate

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetDeparturesByDate>
         <!--Optional:-->
         <meg:guid>a1b232d3-6971-4ede-8ac3-54f43d43c867</meg:guid>
         <meg:departureDate>2021-07-27</meg:departureDate>
      </meg:GetDeparturesByDate>
   </soapenv:Body>
</soapenv:Envelope>

Returning result for the method GetDeparturesByDate

<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>
      <GetDeparturesByDateResponse xmlns="http://www.megatec.ru/">
         <GetDeparturesByDateResult>[{"reservationId":"MT110714A02","email":"","name":"dfsgd gfjf","phone":"","checkIn":"14.07.2021",
"checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture"
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""},{"reservationId":"MT110713A02","email":"","name":"eter rtet","phone":""
,"checkIn":"13.07.2021","checkOut":"27.07.2021","hotelId":2940,"hasTransferArrival":false,"hasTransferDeparture":false,
"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetDeparturesByDateResult>
      </GetDeparturesByDateResponse>
   </soap:Body>
</soap:Envelope>


CancelReservation (Cancellation of the reservation)

The method provides the cancellation of the reservation.
The output of the method results is regulated by the license.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – key of the reservation (not the number)
  • AnnulReasonID * – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database))
  • Note – comment for the cancellation

Returning results.

  • CancelReservationResult – result of the cancellation.

In case of successful cancellation in response we receive full description of the deleted reservation with the date of the cancellation.
In case of an error we receive a transcript of the error in response.
If one of the required parameters is missing or the value is incorrect, we will receive notification" Check the parameter 'dgKey' = 0. There is no such reservation in the database".

Example

The invocation of the method CancelReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CancelReservation>
         <!--Optional:-->
         <meg:guid>e5910963-6f5a-4c18-8799-34417675bfe9</meg:guid>
         <meg:dgKey>36018</meg:dgKey>
         <meg:annulReasonID>1001</meg:annulReasonID>
         <!--Optional:-->
         <meg:note>Проверка штрафа</meg:note>
      </meg:CancelReservation>
   </soapenv:Body>
</soapenv:Envelope>

Returning result for the method CancelReservation

<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>
      <CancelReservationResponse xmlns="http://www.megatec.ru/">
         <CancelReservationResult>
         HTL::Kiev/Maska/Double Room/2AD/Jakuzzi/BB - For cancellation date 19.08.2021, 
         the penalty is 1 night(s). Penalty value is 19.80 EU</CancelReservationResult>
      </CancelReservationResponse>
   </soap:Body>
</soap:Envelope>


CancelReservationExtended (Cancellation of the reservation with input of information about penalties)

The method cancels the reservation and provides information about the penalty.
The output of the method results is regulated by the license.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – key of the reservation (not the number)
  • AnnulReasonID * – key of the reason of the cancellation (1001 – Cancel by the touroperator, 1009 – sdf. If such a cancellation reason key is not available in the database, we will receive the message. There is no this annulating reason in database)
  • Note – comment for the cancellation

Returning results.

  • Number – number of the service
  • ResultMessage – cancellation result with full description. In case of successful cancellation, we receive a full description of the deleted reservation with the cancellation date in the response. In case of an error, we receive a transcript of the error in response.
    • PenaltyCost - an object with the penalty value and the conditions under which the penalty was calculated
      • PolicyKey - the key of the penalty condition in the database (-1 is a "pseudo condition", before the beginning of all conditions, or after the end of all, or there are no conditions at all)*** DateFrom - the start date of the condition in the format YYYY-MM-DDT00:00:00 (can be null, usually for a "pseudo-condition": "without penalty until ...")
      • DateTo - end date (can be null, for "pseudo-condition" : "100% after ...")
      • PenaltyValue - penalty amount
      • IsPercent - percentage indicating that the penalty is in "%" (true) or in "nights" (false)
      • TotalPenalty - full amount of the penalty
      • Description - description


Example

The invocation of the method CancelReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CancelReservationExtended>
         <!--Optional:-->
         <meg:guid>16e129b9-5e69-4f53-808d-2fca840a32c1</meg:guid>
         <meg:dgKey>37084</meg:dgKey>
         <meg:annulReasonID>1001</meg:annulReasonID>
         <!--Optional:-->
         <meg:note>567658</meg:note>
      </meg:CancelReservationExtended>
   </soapenv:Body>
</soapenv:Envelope>

Returning result for method CancelReservation

<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>
      <CancelReservationExtendedResponse xmlns="http://www.megatec.ru/">
         <CancelReservationExtendedResult>
            <CanceledServiceResult>
               <Number>1</Number>
               <ResultMessage>HTL::Kiev/Red/Double Room/2AD/Jakuzzi/BB - If canceled in period 15.02.2022 - 16.02.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 840.00 EU</ResultMessage>
               <PenaltyCost>
                  <PolicyKey>123</PolicyKey>
                  <DateFrom>2022-02-15T00:00:00</DateFrom>
                  <DateTo>2022-02-16T23:59:59</DateTo>
                  <PenaltyValue>20</PenaltyValue>
                  <IsPercent>true</IsPercent>
                  <TotalPenalty>840</TotalPenalty>
                  <Description>If canceled in period 15.02.2022 - 16.02.2022, the penalty will be  20.00 % of the cost of accommodation Penalty value is 840.00 EU</Description>
               </PenaltyCost>
            </CanceledServiceResult>
         </CancelReservationExtendedResult>
      </CancelReservationExtendedResponse>
   </soap:Body>
</soap:Envelope>


GetReservationsFrom (Selection of data by the date of creating of the reservation)

The method outputs data by the date of creation of the voucher.

Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DateFrom * – date from
  • DateTo – date till

Returning results:

  • Key – reservation key
  • Code – reservation number

In case of errors in the request, we receive a message in the response with a transcript of the errors.
In case of an error in the GUID, we will receive the message "Invalid user or password (Invalid GUID)."
If the start date is bigger than the end date, we will receive the message "Parameter 'DateTo' can't be less than 'DateFrom'."
If one of the required parameters is missing, we get the message "Parameter '<parameter value>' is required."

Example

The invocation of the method GetReservationsFrom

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservationsFrom>
         <!--Optional:-->
         <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
         <meg:dateFrom>2021-08-17</meg:dateFrom>
         <meg:dateTo>2021-09-17</meg:dateTo>
      </meg:GetReservationsFrom>
   </soapenv:Body>
</soapenv:Envelope>

Returning result GetReservationsFrom

<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>
      <GetReservationsFromResponse xmlns="http://www.megatec.ru/">
         <GetReservationsFromResult Message="Ok">
            <Data>
               <ReservationKeyCode Key="35990" Code="MT110820A0J"/>
               <ReservationKeyCode Key="35991" Code="MT110820A0K"/>
               <ReservationKeyCode Key="35992" Code="MT110821A01"/>
               <ReservationKeyCode Key="35993" Code="MT110821A02"/>
               <ReservationKeyCode Key="35994" Code="MT110821A03"/>
               <ReservationKeyCode Key="35995" Code="MT110820A0L"/>
               <ReservationKeyCode Key="35996" Code="MT110820A0M"/>
               <ReservationKeyCode Key="35997" Code="MT110820A0N"/>
               <ReservationKeyCode Key="35998" Code="MT110820A0P"/>
               <ReservationKeyCode Key="35999" Code="MT110820A0Q"/>
               <ReservationKeyCode Key="36000" Code="MT110820A0R"/>
               <ReservationKeyCode Key="36001" Code="MT110820A0S"/>
               <ReservationKeyCode Key="36002" Code="MT110820A0T"/>
               <ReservationKeyCode Key="36003" Code="MT110820A0U"/>
               <ReservationKeyCode Key="36004" Code="MT110820A0V"/>
               <ReservationKeyCode Key="36005" Code="MT110820A0W"/>
               <ReservationKeyCode Key="36006" Code="MT110820A0X"/>
               <ReservationKeyCode Key="36007" Code="MT110820A0Y"/>
               <ReservationKeyCode Key="36008" Code="MT110820A0Z"/>
               <ReservationKeyCode Key="36009" Code="MT110820A10"/>
               <ReservationKeyCode Key="36010" Code="MT110820A11"/>
               <ReservationKeyCode Key="36011" Code="MT110820A12"/>
               <ReservationKeyCode Key="36012" Code="MT110820A13"/>
               <ReservationKeyCode Key="36013" Code="MT110820A14"/>
               <ReservationKeyCode Key="36014" Code="MT110829A03"/>
               <ReservationKeyCode Key="36015" Code="MT110829A04"/>
               <ReservationKeyCode Key="36016" Code="MT110827A01"/>
               <ReservationKeyCode Key="36017" Code="MT110827A02"/>
            </Data>
         </GetReservationsFromResult>
      </GetReservationsFromResponse>
   </soap:Body>
</soap:Envelope>


CreateReservationMessage (Creating message for the reservation)

The method creates a message for a specific reservation.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – ticket key
  • Message * – text of the message
  • SenderName * – the name of the sender of the message

Returning result: does not return a result

Example

The invocation of the method CreateReservationMessage

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CreateReservationMessage>
         <!--Optional:-->
         <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
         <meg:dgKey>35950</meg:dgKey>
         <!--Optional:-->
         <meg:message>testmessage</meg:message>
         <!--Optional:-->
         <meg:senderName>testsender</meg:senderName>
      </meg:CreateReservationMessage>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method CreateReservationMessage

<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>
      <CreateReservationMessageResponse xmlns="http://www.megatec.ru/"/>
   </soap:Body>
</soap:Envelope>


GetReservationMessages (Receiving messages for the reservation)

The method receives messages for a specific reservation.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DgKey * – reservation key
  • MessageDirection * – message location directory (default value 1)

Returning results:

  • DogovorMessageItem – search result
    • Id – message ID
    • IsOutgouing – outgoing (true – outgoing, false – incoming)
    • DogovorId – reservation number
    • DateCreate – date the message was created
    • SenderName – the sender's name
    • IsRead – read (true – read, false – not read)
    • TourOperKey – tour operator's key
    • Processed – processing status
    • Text – the text of the message

In case of an error, a transcript of the error will be received.
If there is an error in the Guid, we get the message: "Invalid user or password (Invalid GUID)".
If there is an error in the reservation key, we will receive the message: "Check the parameter 'dgKey' = <value in the request>. There is no any reservation for you in the database".
If there are no messages in the selected directory, we will get the answer: "Ok. There is no any message with 'messageDirection' = <value in the request>".

Example

The invocation of the method GetReservationMessages

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservationMessages>
         <!--Optional:-->
         <meg:guid>b4c08d98-0c24-4e34-abcc-e7794e3225a8</meg:guid>
         <meg:dgKey>35950</meg:dgKey>
         <meg:messageDirection>1</meg:messageDirection>
      </meg:GetReservationMessages>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method GetReservationMessages

<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>
      <GetReservationMessagesResponse xmlns="http://www.megatec.ru/">
         <GetReservationMessagesResult Message="Ok">
            <Data>
               <DogovorMessageItem>
                  <Id>778841</Id>
                  <IsOutgouing>false</IsOutgouing>
                  <DogovorId>35950</DogovorId>
                  <DateCreate>2021-08-23T09:44:13.49</DateCreate>
                  <SenderName>testsender</SenderName>
                  <IsRead>false</IsRead>
                  <TourOperKey>1035</TourOperKey>
                  <Processed>1</Processed>
                  <Text>testmessage</Text>
               </DogovorMessageItem>
               <DogovorMessageItem>
                  <Id>778838</Id>
                  <IsOutgouing>false</IsOutgouing>
                  <DogovorId>35950</DogovorId>
                  <DateCreate>2021-08-23T09:40:37.2</DateCreate>
                  <SenderName>testsender</SenderName>
                  <IsRead>false</IsRead>
                  <TourOperKey>1035</TourOperKey>
                  <Processed>1</Processed>
                  <Text>testmessage</Text>
               </DogovorMessageItem>
               <DogovorMessageItem>
                  <Id>778837</Id>
                  <IsOutgouing>false</IsOutgouing>
                  <DogovorId>35950</DogovorId>
                  <DateCreate>2021-08-23T09:40:28.177</DateCreate>
                  <SenderName>testsender</SenderName>
                  <IsRead>false</IsRead>
                  <TourOperKey>1035</TourOperKey>
                  <Processed>1</Processed>
                  <Text>estmessage</Text>
               </DogovorMessageItem>
            </Data>
         </GetReservationMessagesResult>
      </GetReservationMessagesResponse>
   </soap:Body>
</soap:Envelope>


Search methods

SearchHotelServices (Receiving options of accommodations under request parameters)

The method retrieves possible accommodation options according to the request parameters.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – object with request parameters
    • PageSize * – the page size of the returning data, that is, how many calculated prices to stop at and give the search result. If PageSize = 5 is set, then the search will go by prices and as soon as it gets 5 calculated (but it can sort through prices more, not all prices are suitable) prices, it will output them as a result. The number of sorted internal prices will be displayed in the TotalCount line.
    • RowIndexFrom * – from which line the result must be output from. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in RowIndexFrom, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the TotalCount line)
    • DateFrom * – date «from»
    • DateTo * – date «to»
    • RegionKeys – ids of regions (if cities and hotels are not specified – search wiil be made for all regions, RegionKeys or CityKeys or HotelKeys must be filled in)
    • CityKeys – ids of cities (if hotels are not specified, we are looking for a search for all hotels in cities, RegionKeys, CityKeys or HotelKeys must be filled in)
    • HotelKeys – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
    • RoomDescriptions – IDs of room descriptions. If were not transferred it will search for all
    • PansionKeys – pansion IDs. If were not transferred it will search for all
    • Ages – age of children (if not specified, then accommodation with children will not be searched, tourists are considered adults)
    • Pax * – accommodation
    • Tariffs – IDs of tariffs for which to calculate the result. If you do not transmit it, it will be counted according to the Ordinary tariff
    • CacheGuid – the search ID that speeds up the navigation through the pages. You don't need to transmit it during the first search. The search will return this ID in the ResponseGuid parameter. Then, using paging, we transmit this ID further (but only within the framework of one search!)
    • ResultView – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
    • QuotaTypes – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
    • Mode – do not specify or specify 0

The returning result:

  • DataRequestResult – the search result
    • ResultTable – the table with the result
      • HotelServices – the hotel service
        • HotelName – the name of the hotel
        • HotelKey – the hotel key
        • RtCode – the room type
        • RtKey – the room type key
        • RcName – the room category
        • RcKey – the room category key
        • RdName – type+room category
        • RdKey – key type+room category
        • AcName – type of accommodation
        • AcKey – the key of the accommodation type
        • PnCode – the type of pansion
        • PnKey – the type of pansion key
        • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
        • Cost – the amount of the mandatory surcharge Cost
        • AddHotsCost – the amount of the mandatory AdHot surcharge
        • AddHotsWithCosts – the amount of the mandatory surcharge of the AdHot type With costs (returns -1 if the display setting of the Adhot type With Costs is in the Integration Service Interlook config. Description.
        • DetailBrutto – the price calculation formula
        • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
        • CountryKey – the key of the country where the service is provided
        • CityKey – the key of the city where the service is provided
        • CityName – the name of the city where the service is provided
        • HotelWebSite – the address of the hotel's website
        • TariffId – the tariff ID
        • TariffName – the name of the tariff
        • TariffDescription – the description of the tariff
        • AddHots – the Adhot ID
        • ContractPrKey – the key of the partner providing the service
        • HotelImage – the hotel photo
        • Rate – the currency
        • AddHotsWithCostID – ID of AddHotsWithCost
    • ColunmNames – the name of table columns
      • HotelName – the name of the hotel
      • HotelKey – the hotel key
      • RtCode – the room type
      • RtKey – the room type key
      • RcName – the room category
      • RcKey – the room category key
      • RdName – the type+room category
      • RdKey – the key type+room category
      • AcName – type of accommodation
      • AcKey – the key of the accommodation type
      • PnCode – the type of pansion
      • PnKey – the type of pansion key
      • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
      • Cost – the amount of the mandatory surcharge Cost
      • AddHotsCost – the amount of the mandatory AddHotsCost surcharge
      • DetailBrutto – the price calculation formula
      • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
      • CountryKey – the key of the country where the service is provided
      • CityKey – the key of the city where the service is provided
      • CityName – the name of the city where the service is provided
      • HotelWebSite – the address of the hotel's website
      • TariffId – the tariff ID
      • TariffName – the name of the tariff
      • TariffDescription – the description of the tariff
      • AddHots – the Adhot ID
      • ContractPrKey – the key of the partner providing the service
      • HotelImage – the hotel photo
      • Rate – the currency
      • AddHotsWithCostID – ID of AddHotsWithCost
    • TotalCount – the number of the line where the search ended
    • PageSize – the number of data rows returning
    • PageIndex – the number of the line from which the search was started
    • IsLastPage – when displaying the last page of search results with hotels, the IsLastPage parameter takes the value true. If the IsLastPage parameter is not processed, the following totalCount value will return an empty result for hotels
    • AdditionalData – the list of required Addhots
      • ArrayOfAnyType – an array of service types
        • anyType – the type of service
          • ExternalID – the parameter for internal use
          • Price – the cost
          • NMen – the number of tourists in the reservation
          • PartnerID – the Partner ID
          • Quota – the quota for the service
          • PacketKey – the package key
          • AdditionalParams – an array of additional parameters (represented as a key – value pair)
            • ParameterPair Key – the key
              • Value – the value
          • Tourists – the tourists
          • DetailNetto – netto details
          • DetailBrutto – gross details
          • Notes – notes to the service
          • Name – the name of the service
          • StartDate – the date of providing service (in the format YYYY-MM-DDT00:00:00)
          • StartDay – the day of providing service
          • Duration – the duration of the service
          • RateBrutto – the gross currency
          • Brutto – the gross price
          • RateNetto – the netto currency
          • Netto – the netto price
          • ServiceClassID – the ID of the service class
          • TouristCount – the number of tourists using the service
          • ID – the service ID (-1 for a new reservation)
          • Status – the service status
            • Name – the name of the service status
            • ID – ID of the service status
            • Description – the description of the service status
            • NameLat – the name of the service status in Latin
            • Code – the service status code
            • CodeLat – the service status code in Latin
            • Unicode – ISO code of the service status
          • CityKey – the key of the city where the service is provided
          • IsPackage – the attribute of a package service
          • Code – the service ID
          • HasDuration – is the service with or without duration
    • ResponseGuid – ID of the response that needs to be transmitted if we are moving through the same search using paging

In case of errors in the request, we receive a message in the response with a transcript of the errors.
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."
If the start date is bigger than the end date, we will receive the message "The parameter 'DateTo' can not be less than 'DateFrom'."
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."
If there is no hotel key, city key, region key, we will receive the message "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'."

Example

The invocation of the method SearchHotelServices

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
<meg:SearchHotelServices>
<!--Optional:-->
         <meg:guid>ef5bafbc-722f-4d8b-bdd5-844e8633788f</meg:guid>
         <!--Optional:-->
         <meg:request>
<meg:PageSize>100000</meg:PageSize>
            <meg:RowIndexFrom>1</meg:RowIndexFrom>
            <meg:DateFrom>2021-12-01</meg:DateFrom>
            <meg:DateTo>2021-12-22</meg:DateTo>
            <!--Optional:-->
<meg:RegionKeys>
               <!--Zero or more repetitions:-->
               <meg:int>28</meg:int>
            </meg:RegionKeys>
            <!--Optional:-->
<meg:HotelKeys>
               <!--Zero or more repetitions:-->
               <meg:int>2932</meg:int>
           </meg:HotelKeys>
            <!--Optional:-->
<meg:Ages>
<!--Zero or more repetitions:-->
            </meg:Ages>
            <meg:Pax>2</meg:Pax>
            <!--Optional:-->
<meg:CacheGuid>9f542137-9403-472c-807d-ae839fb2ee29</meg:CacheGuid>
<meg:ResultView>1</meg:ResultView>
            <meg:Mode>0</meg:Mode>
            <!--Optional:-->
<meg:QuotaTypes>
               <!--Zero or more repetitions:-->
             </meg:QuotaTypes>
         </meg:request>
      </meg:SearchHotelServices>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method SearchHotelServices

<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>
      <SearchHotelServicesResponse xmlns="http://www.megatec.ru/">
         <SearchHotelServicesResult Message="Ok">
            <Data>
               <DataRequestResult>
                  <ResultTable>
                     <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
                           <xs:complexType>
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
                                 <xs:element name="HotelServices">
                                    <xs:complexType>
                                       <xs:sequence>
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsWithCostID" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                       </xs:sequence>
                                    </xs:complexType>
                                 </xs:element>
                              </xs:choice>
                           </xs:complexType>
                        </xs:element>
                     </xs:schema>
                     <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
                        <DocumentElement xmlns="">
                           <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Side Sea View</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">8</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room Side Sea View</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">1599</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">BB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">6915.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">6825.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">30.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">60.00</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*21) * 1 room = 6825,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                              <AddHotsWithCostID xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-3,-4</AddHotsWithCostID>
                           </HotelServices>
                           <HotelServices diffgr:id="HotelServices2" msdata:rowOrder="1" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">45</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Side Sea View</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">8</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite Side Sea View</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2480</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">HB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">4</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11335.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11235.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">40.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">60.00</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(535,00[kolesnyk2]*21) * 1 room = 11235,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-2</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                              <AddHotsWithCostID xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-7,-8</AddHotsWithCostID>
                           </HotelServices>
                           <HotelServices diffgr:id="HotelServices3" msdata:rowOrder="2" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">45</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Junior Suite Jakuzzi</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">46528</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">HB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">4</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11343.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">11235.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">48.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">60.00</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(535,00[kolesnyk2]*21) * 1 room = 11235,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                              <AddHotsWithCostID xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">-5,-6</AddHotsWithCostID>
                           </HotelServices>
                        </DocumentElement>
                     </diffgr:diffgram>
                  </ResultTable>
                  <ColunmNames>
                     <string>HotelName</string>
                     <string>HotelKey</string>
                     <string>RtCode</string>
                     <string>RtKey</string>
                     <string>RcName</string>
                     <string>RcKey</string>
                     <string>RdName</string>
                     <string>RdKey</string>
                     <string>AcName</string>
                     <string>AcKey</string>
                     <string>PnCode</string>
                     <string>PnKey</string>
                     <string>TotalCost</string>
                     <string>Cost</string>
                     <string>AddHotsCost</string>
                     <string>AddHotsWithCosts</string>
                     <string>DetailBrutto</string>
                     <string>QuoteType</string>
                     <string>CountryKey</string>
                     <string>CityKey</string>
                     <string>CityName</string>
                     <string>HotelWebSite</string>
                     <string>TariffId</string>
                     <string>TariffName</string>
                     <string>TariffDescription</string>
                     <string>AddHots</string>
                     <string>ContractPrKey</string>
                     <string>HotelImage</string>
                     <string>Rate</string>
                     <string>AddHotsWithCostID</string>
                  </ColunmNames>
                  <TotalCount>4</TotalCount>
                  <PageSize>100000</PageSize>
                  <PageIndex>1</PageIndex>
                  <IsLastPage>true</IsLastPage>
                  <AdditionalData>
                     <ArrayOfAnyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>48</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>48</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>0</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                              <Description/>
                              <NameLat/>
                              <Code/>
                              <CodeLat/>
                              <Unicode/>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>30</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>30</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-1</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                              <Description/>
                              <NameLat/>
                              <Code/>
                              <CodeLat/>
                              <Unicode/>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-2</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                              <Description/>
                              <NameLat/>
                              <Code/>
                              <CodeLat/>
                              <Unicode/>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-3</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-4</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-5</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-6</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-7</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-8</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>40</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-9</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <Tourists/>
                           <DetailNetto/>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <RateNetto/>
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
                           <TouristCount>0</TouristCount>
                           <ID>-10</ID>
                           <CityKey>0</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>639</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                     </ArrayOfAnyType>
                  </AdditionalData>
                  <ResponseGuid>36d4defd-a39d-48c5-8288-32a22822f411</ResponseGuid>
               </DataRequestResult>
            </Data>
         </SearchHotelServicesResult>
      </SearchHotelServicesResponse>
   </soap:Body>
</soap:Envelope>


SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)

The method outputs one minimal (sorted by daily price) calculated price for the hotel.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – object with request parameters
    • PageSize * – from which line to output the result. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in Row Index From, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the totalCount line).
    • RowIndexFrom * – from which line the result must be output from. For the first page, specify RowIndexFrom = 0 – the search starts from the very first price. To get the second page or subsequent search pages in RowIndexFrom, you need to pass the internal price number at which the search for the previous price page stopped (this number will be in the response in the TotalCount line)
    • DateFrom * – date «from»
    • DateTo * – date «to»
    • RegionKeys – ids of regions (if cities and hotels are not specified – search wiil be made for all regions, RegionKeys or CityKeys or HotelKeys must be filled in)
    • CityKeys – ids of cities (if hotels are not specified, we are looking for a search for all hotels in cities, RegionKeys, CityKeys or HotelKeys must be filled in)
    • HotelKeys – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
    • RoomDescriptions – ids of room descriptions. If not transmitted, it will search for everyone (returning when requesting the GetRoomDescriptions method)
    • PansionKeys – pansion IDs. If were not transferred it will search for all (returning when querying the GetPansions method)
    • Ages – age of children
    • Pax * – accommodation
    • Tariffs – IDs of tariffs for which to calculate the result. If you do not transmit it, it will be counted according to the Ordinary tariff (0 – Ordinary, 1 – SPO)
    • CacheGuid – the search ID that speeds up the navigation through the pages. You don't need to transmit it during the first search. The search will return this ID in the ResponseGuid parameter. Then, using paging, we transmit this ID further (but only within the framework of one search!)
    • ResultView – the type of output of the result (1 – sorting by daily price with grouping by hotels, 2 – sorting by daily price)
    • QuotaTypes – filter by quota type (0 – request, 1 – quota, 2 – stop). We get all possible results. If not specified, the value=0
    • Mode – do not specify or specify 0

The returning result:

  • DataRequestResult – the search result
    • ResultTable – the table with the result
      • HotelServices – the hotel service
        • HotelName – the name of the hotel
        • HotelKey – the hotel key
        • RtCode – the room type
        • RtKey – the room type key
        • RcName – the room category
        • RcKey – the room category key
        • RdName – type+room category
        • RdKey – key type+room category
        • AcName – type of accommodation
        • AcKey – the key of the accommodation type
        • PnCode – the type of pansion
        • PnKey – the type of pansion key
        • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
        • Cost – the amount of the mandatory surcharge Cost
        • AddHotsCost – the amount of the mandatory AdHot surcharge
        • AddHotsWithCosts – the amount of the mandatory surcharge of the AdHot type With costs (returns -1 if the display setting of the Adhot type With Costs is in the Integration Service Interlook config. Description.
        • DetailBrutto – the price calculation formula
        • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
        • CountryKey – the key of the country where the service is provided
        • CityKey – the key of the city where the service is provided
        • CityName – the name of the city where the service is provided
        • HotelWebSite – the address of the hotel's website
        • TariffId – the tariff ID
        • TariffName – the name of the tariff
        • TariffDescription – the description of the tariff
        • AddHots – the Adhot ID
        • ContractPrKey – the key of the partner providing the service
        • HotelImage – the hotel photo
        • Rate – the currency
        • AddHotsWithCostID – ID of AddHotsWithCost
    • ColunmNames – the name of table columns
      • HotelName – the name of the hotel
      • HotelKey – the hotel key
      • RtCode – the room type
      • RtKey – the room type key
      • RcName – the room category
      • RcKey – the room category key
      • RdName – the type+room category
      • RdKey – the key type+room category
      • AcName – type of accommodation
      • AcKey – the key of the accommodation type
      • PnCode – the type of pansion
      • PnKey – the type of pansion key
      • TotalCost – the final cost of staying at the hotel including mandatory surcharges Cost + AdHotCost. Sorting by the minimum price is performed by the TotalCost parameter from the lowest price to the highest
      • Cost – the amount of the mandatory surcharge Cost
      • AddHotsCost – the amount of the mandatory AddHotsCost surcharge
      • DetailBrutto – the price calculation formula
      • QuoteType – the type of quota. It can take 3 values: 0 – on request, 1 – in quota, 2 – there is a stop sale.
      • CountryKey – the key of the country where the service is provided
      • CityKey – the key of the city where the service is provided
      • CityName – the name of the city where the service is provided
      • HotelWebSite – the address of the hotel's website
      • TariffId – the tariff ID
      • TariffName – the name of the tariff
      • TariffDescription – the description of the tariff
      • AddHots – the Adhot ID
      • ContractPrKey – the key of the partner providing the service
      • HotelImage – the hotel photo
      • Rate – the currency
      • AddHotsWithCostID – ID of AddHotsWithCost
    • TotalCount – the number of the line where the search ended
    • PageSize – the number of data rows returning
    • PageIndex – the number of the line from which the search was started
    • IsLastPage – when displaying the last page of search results with hotels, the IsLastPage parameter takes the value true. If the IsLastPage parameter is not processed, the following totalCount value will return an empty result for hotels
    • AdditionalData – the list of required Addhots
      • ArrayOfAnyType – an array of service types
        • anyType – the type of service
          • ExternalID – the parameter for internal use
          • Price – the cost
          • NMen – the number of tourists in the reservation
          • PartnerID – the Partner ID
          • Quota – the quota for the service
          • PacketKey – the package key
          • AdditionalParams – an array of additional parameters (represented as a key – value pair)
            • ParameterPair Key – the key
              • Value – the value
          • Tourists – the tourists
          • DetailNetto – netto details
          • DetailBrutto – gross details
          • Notes – notes to the service
          • Name – the name of the service
          • StartDate – the date of providing service (in the format YYYY-MM-DDT00:00:00)
          • StartDay – the day of providing service
          • Duration – the duration of the service
          • RateBrutto – the gross currency
          • Brutto – the gross price
          • RateNetto – the netto currency
          • Netto – the netto price
          • ServiceClassID – the ID of the service class
          • TouristCount – the number of tourists using the service
          • ID – the service ID (-1 for a new reservation)
          • Status – the service status
            • Name – the name of the service status
            • ID – ID of the service status
            • Description – the description of the service status
            • NameLat – the name of the service status in Latin
            • Code – the service status code
            • CodeLat – the service status code in Latin
            • Unicode – ISO code of the service status
          • CityKey – the key of the city where the service is provided
          • IsPackage – the attribute of a package service
          • Code – the service ID
          • HasDuration – is the service with or without duration
    • ResponseGuid – ID of the response that needs to be transmitted if we are moving through the same search using paging

In case of errors in the request, we receive a message in the response with a transcript of the errors/or number of a string with an error.
In case of an error in GUID we receive the message "Invalid user or password (Invalid GUID)."
If the start date is bigger than the end date, we will receive the message "The parameter 'DateTo' can not be less than 'DateFrom'."
If one of the required parameters is missing, we will receive the message "The parameter '<parameter value>' is required."
If there is no hotel key, city key, region key, we will receive the message "At least one of the following parameters must be specified: 'RegionKeys', 'CityKeys' or 'HotelKeys'."

Example

The invocation of the method SearchHotelServicesMinHotel

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:SearchHotelServicesMinHotel>
     <!--Optional:-->
         <meg:guid>138e178e-6c1c-4e5a-9f82-8280cb014804</meg:guid>
         <!--Optional:-->
         <meg:request>
<meg:PageSize>100000</meg:PageSize>
            <meg:RowIndexFrom>0</meg:RowIndexFrom>
            <meg:DateFrom>2021-12-01</meg:DateFrom>
            <meg:DateTo>2022-12-22</meg:DateTo>
            <!--Optional:-->
            <meg:RegionKeys>
               <!--Zero or more repetitions:-->
               <meg:int>6</meg:int>
            </meg:RegionKeys>
            <!--Optional:-->
            <meg:CityKeys>
               <!--Zero or more repetitions:-->
               <meg:int>80</meg:int>
            </meg:CityKeys>
            <!--Optional:-->
            <meg:HotelKeys>
               <!--Zero or more repetitions:-->
               <meg:int>2932</meg:int>
            </meg:HotelKeys>
            <!--Optional:-->
            <meg:RoomDescriptionsKeys>
               <!--Zero or more repetitions:-->
               <meg:int>1894</meg:int>
            </meg:RoomDescriptionsKeys>
            <!--Optional:-->
            <meg:PansionKeys>
               <!--Zero or more repetitions:-->
               <meg:int>3</meg:int>
            </meg:PansionKeys>
            <!--Optional:-->
            <meg:Ages>
               <!--Zero or more repetitions:-->
               <meg:int>0</meg:int>
            </meg:Ages>
            <meg:Pax>2</meg:Pax>
            <!--Optional:-->
            <meg:Tariffs>
               <!--Zero or more repetitions:-->
               <meg:int>0</meg:int>
            </meg:Tariffs>
            <!--Optional:-->
            <meg:CacheGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</meg:CacheGuid>
            <meg:ResultView>1</meg:ResultView>
            <meg:Mode>0</meg:Mode>
            <!--Optional:-->
            <meg:QuotaTypes>
               <!--Zero or more repetitions:-->
               <meg:int>0</meg:int>
            </meg:QuotaTypes>
         </meg:request>
      </meg:SearchHotelServicesMinHotel>
   </soapenv:Body>
</soapenv:Envelope>

Returning result of the method SearchHotelServicesMinHotel

<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>
      <SearchHotelServicesMinHotelResponse xmlns="http://www.megatec.ru/">
         <SearchHotelServicesMinHotelResult Message="Ok">
            <Data>
               <DataRequestResult>
                  <ResultTable>
                     <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
                           <xs:complexType>
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
                                 <xs:element name="HotelServices">
                                    <xs:complexType>
                                       <xs:sequence>
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
                                       </xs:sequence>
                                    </xs:complexType>
                                 </xs:element>
                              </xs:choice>
                           </xs:complexType>
                        </xs:element>
                     </xs:schema>
                     <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
                        <DocumentElement xmlns="">
                           <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
                              <RdName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room Jakuzzi</RdName>
                              <RdKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">1894</RdKey>
                              <AcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">2AD</AcName>
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
                              <PnCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">BB</PnCode>
                              <PnKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</PnKey>
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125470.0000</TotalCost>
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125450.00</Cost>
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">20.00</AddHotsCost>
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHotsWithCosts>
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*386) * 1 room = 125450,00</DetailBrutto>
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
                           </HotelServices>
                        </DocumentElement>
                     </diffgr:diffgram>
                  </ResultTable>
                  <ColunmNames>
                     <string>HotelName</string>
                     <string>HotelKey</string>
                     <string>RtCode</string>
                     <string>RtKey</string>
                     <string>RcName</string>
                     <string>RcKey</string>
                     <string>RdName</string>
                     <string>RdKey</string>
                     <string>AcName</string>
                     <string>AcKey</string>
                     <string>PnCode</string>
                     <string>PnKey</string>
                     <string>TotalCost</string>
                     <string>Cost</string>
                     <string>AddHotsCost</string>
                     <string>AddHotsWithCosts</string>
                     <string>DetailBrutto</string>
                     <string>QuoteType</string>
                     <string>CountryKey</string>
                     <string>CityKey</string>
                     <string>CityName</string>
                     <string>HotelWebSite</string>
                     <string>TariffId</string>
                     <string>TariffName</string>
                     <string>TariffDescription</string>
                     <string>AddHots</string>
                     <string>ContractPrKey</string>
                     <string>HotelImage</string>
                     <string>Rate</string>
                  </ColunmNames>
                  <TotalCount>1</TotalCount>
                  <PageSize>100000</PageSize>
                  <PageIndex>0</PageIndex>
                  <IsLastPage>true</IsLastPage>
                  <AdditionalData>
                     <ArrayOfAnyType>
                        <anyType xsi:type="ExtraService">
                           <ExternalID xsi:nil="true"/>
                           <Price>20</Price>
                           <NMen>0</NMen>
                           <PartnerID>0</PartnerID>
                           <Quota>NotChecked</Quota>
                           <PacketKey>0</PacketKey>
                           <AdditionalParams>
                              <ParameterPair Key="ContractPrKey">
                                 <Value xsi:type="xsd:int">0</Value>
                              </ParameterPair>
                           </AdditionalParams>
                           <DetailBrutto/>
                           <Notes/>
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay xsi:nil="true"/>
                           <Duration>0</Duration>
                           <RateBrutto/>
                           <Brutto>20</Brutto>
                           <ServiceClassID>99</ServiceClassID>
                           <TouristCount xsi:nil="true"/>
                           <ID>0</ID>
                           <Status>
                              <Name>Hardlink</Name>
                              <ID>0</ID>
                           </Status>
                           <CityKey>80</CityKey>
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
                           <HasDuration>false</HasDuration>
                        </anyType>
                     </ArrayOfAnyType>
                  </AdditionalData>
                  <ResponseGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</ResponseGuid>
               </DataRequestResult>
            </Data>
         </SearchHotelServicesMinHotelResult>
      </SearchHotelServicesMinHotelResponse>
   </soap:Body>
</soap:Envelope>


SearchActualCostCalculationVariant (Search for the possible types of rooms, categories of rooms, accommodations and pansions for which there are actual prices for the hotel)

The method provides possible options for room types, room categories, accommodations and pansions for which there are actual prices for the hotel.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters:
    • HotelId * – the hotel ID (required parameter, values 0 and -1 are not allowed)
    • DateFrom * – date «from»
    • DateTo * – date «to»
    • ValidateQuoata – whether to check the quota (true – check, false – no)
    • QuotaTypes – the filter by quota type (0 – request, 1 – quota, 2 – stop)
    • CheckAdHot – whether to take into account prices for mandatory adhots (true – take into account, false – not)
    • Rate * – the code of the currency in which the calculation will be made

The returning result:

  • SearchActualCostCalculationVariantResult – The returning result
    • CostCalculationVariant – an array of the data
      • RoomAccommodationId – the accommodation key
      • RoomTypeId – the room type key
      • RoomCategoryId – the room category key
      • PansionId – the pansion key
      • RoomAccommodationName – the accommodation code
      • RoomTypeName – the room type code
      • RoomCategoryName – the room category code
      • PansionName – the pansion code
      • CountAdult – the number of adults
      • CountChildren – the number of children
      • Quota – the quota value
Example

The invocation of the method SearchActualCostCalculationVariant

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:SearchActualCostCalculationVariant>
         <!--Optional:-->
         <meg:guid>d1ac9f4d-20bd-43e0-b5b5-ad60c3cf0065</meg:guid>
         <!--Optional:-->
         <meg:request HotelId="2940" DateFrom="2021-09-08" DateTo="2021-09-09" ValidateQuota="true" CheckAdHot="true" Rate="1" QuotaTypes="0"/>
      </meg:SearchActualCostCalculationVariant>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method SearchActualCostCalculationVariant

<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>
      <SearchActualCostCalculationVariantResponse xmlns="http://www.megatec.ru/">
         <SearchActualCostCalculationVariantResult Message="Ok">
            <Data>
               <CostCalculationVariant>
                  <RoomAccommodationId>5558</RoomAccommodationId>
                  <RoomTypeId>3</RoomTypeId>
                  <RoomCategoryId>20</RoomCategoryId>
                  <PansionId>3</PansionId>
                  <RoomAccommodationName>2AD</RoomAccommodationName>
                  <RoomTypeName>Double Room</RoomTypeName>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
                  <PansionName>BB</PansionName>
                  <CountAdult>2</CountAdult>
                  <CountChildren>0</CountChildren>
                  <Quota>0</Quota>
               </CostCalculationVariant>
               <CostCalculationVariant>
                  <RoomAccommodationId>5558</RoomAccommodationId>
                  <RoomTypeId>45</RoomTypeId>
                  <RoomCategoryId>20</RoomCategoryId>
                  <PansionId>4</PansionId>
                  <RoomAccommodationName>2AD</RoomAccommodationName>
                  <RoomTypeName>Junior Suite</RoomTypeName>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
                  <PansionName>HB</PansionName>
                  <CountAdult>2</CountAdult>
                  <CountChildren>0</CountChildren>
                  <Quota>0</Quota>
               </CostCalculationVariant>
             </Data>
         </SearchActualCostCalculationVariantResult>
      </SearchActualCostCalculationVariantResponse>
   </soap:Body>
</soap:Envelope>


Methods of working with prices

GetSpoList (Receiving the list of SPOs according to the request)

The method returns a list of SPOs according to the request.
An important point: information is returning only for those Costoffers for which there is a publication to the partner (partner group) of the user who connected to the web service.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the class with request parameters
    • SvKey * – the service class key (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice, 0 or -1 are not accepted)
    • PublicationDateBegin * – the date of publication of the SPO «from»
    • PublicationDateEnd * – the date of publication of the price «till»

The returning result:

  • SPOInfo – the search result
    • ResultTable – the search result
    • Id – SPO ID key
    • Name – the name of the SPO
    • PeriodBeforeCheckIn – the period before arrival
    • SaleDateBegin – the date from which booking is possible
    • SaleDateEnd – the date before which booking is possible
    • Comment – the description of the SPO
    • CreateDate – the creation date
    • UpdateDate – the update date
    • SpoType – the SPO type (Ordinary – 0, Spo – 1)
    • SvKey – the class of service
    • COLinkServices – SPO services
      • COLinkService – the specific SPO service
        • SvKey – the service type key
        • Code – key of the service
        • DurationMin – minimum duration
        • DurationMax – maximum duration
        • IsDisable – is the service blocked
        • DisableDate – the date of blocking
    • COServices – the date of blocking
      • COService – the information about the price of a specific service in this SPO
        • Code – the service ID
        • CostCount – the number of prices for the service in SPO
        • CostLastUpdate – the date of the last change (addition, deletion) of prices for the service in this SPO
Example

The invocation of the method GetSpoList

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetSpoList>
         <!--Optional:-->
         <meg:guid>16f4e0ca-725a-4ffe-8a5e-c41d16ef1b01</meg:guid>
         <!--Optional:-->
         <meg:request SvKey="1" PublicationDateBegin="2021-08-01" PublicationDateEnd="2021-08-04"/>
      </meg:GetSpoList>
   </soapenv:Body>
</soapenv:Envelope>

The returning result of the method GetSpoList

<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>
      <GetSpoListResponse xmlns="http://www.megatec.ru/">
         <GetSpoListResult Message="Ok">
            <Data>
               <SPOInfo Id="2049" Name="Maska Ordinary" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:31:38.35" UpdateDate="2021-08-03T12:32:35.897" SpoType="0" SvKey="1">
                  <COLinkServices>
                     <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
                  </COLinkServices>
                  <XYRules/>
                  <COServices>
                     <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
                     <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
                  </COServices>
               </SPOInfo>
               <SPOInfo Id="2050" Name="Maska 7=6" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:33:37.847" UpdateDate="2021-08-03T12:35:11.367" SpoType="1" SvKey="1">
                  <COLinkServices>
                     <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
                  </COLinkServices>
                  <XYRules>
                     <XYRule ExcludeBy="0" Sign="-" XFrom="2" XTo="7" Y="1"/>
                  </XYRules>
                  <COServices>
                     <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
                     <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
                  </COServices>
               </SPOInfo>
               <SPOInfo Id="2051" Name="Maska 14=12" PeriodBeforeCheckIn="0" SaleDateBegin="0001-01-01T00:00:00" SaleDateEnd="0001-01-01T00:00:00" Comment="" CreateDate="2021-08-03T12:35:15.797" UpdateDate="2021-08-03T12:35:42.75" SpoType="1" SvKey="1">
                  <COLinkServices>
                     <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
                  </COLinkServices>
                  <XYRules>
                     <XYRule ExcludeBy="0" Sign="-" XFrom="8" XTo="14" Y="2"/>
                  </XYRules>
                  <COServices>
                     <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
                     <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
                  </COServices>
               </SPOInfo>
            </Data>
         </GetSpoListResult>
      </GetSpoListResponse>
   </soap:Body>
</soap:Envelope>


GetCosts (Receiving gross price under request parameters)

The method returns the gross price according to the request parameters.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • SpoId * – the SPO key (The CO_Id parameter of the CostOffers table). The SPO list is returning when the GetSpoList method is requested)
    • TariffId * – the tariff key (In the price table corresponds to the CS_CVId parameter). When setting "-1", all tariffs are selected)
    • SvKey * – the type of service (1 – accommodation, 2 – transfer, 4 – excursion, 5 – extraservice)
    • Code * – the service key (For the hotel this is the key from the Partners table. For all other services, this is the SL_KEY from the ServiceList table. You can also get these keys using web service methods: GetServiceList, GetExcursions, GetTransfers, GetHotels)
    • PriceType – the type of accommodation price (0 – per person, 1 – per room, 2 – all)
    • DownloadOnlyActualCosts * – the download of only current prices (1 – get current, 0 – get all)
    • DownloadUpdateCostsFromDate * – download prices only from the selected date (1 – the setting is enabled, 0 – receive everything)
    • CostsUpdateDateBegin * – the date from which to upload prices (used when setting the DownloadUpdateCostsFromDate parameter)

The returning result:

  • GetCostsResult – output results
    • CostInfo – an array of the data
      • Id – the price key
      • SvKey – the service type key
      • SpoId – ID of the SPO
      • Code – the key of the service
      • AgeFrom – age «from»
      • AgeTo – age «to»
      • CreateDate – the date of the creation
      • CheckInDateBegin – the check-in date «from»
      • CheckInDateEnd – the check-in date «till»
      • CheckOutDateBegin – the departure date «from»
      • CheckOutDateEnd – the departure date «till»
      • DateBegin – the price validity date «from»
      • DateEnd – the price validity date «till»
      • UpdateDate – the last date of the price update
      • Price – the value of the price
      • Rate – the currency
      • SubCode1 – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType, for Adhot – the room type key)
      • SubCode2 – the price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the start point, for Adhot – the hotel key)
      • SubCode3 – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – end point, for Adhot – the room category key)
      • SubCode4 – the price parameter depending on the type of service (for accommodation – the accommodation, for Adhot – the accommodation)
      • TariffId – the tariff key
      • Type – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
      • CountryId – the key of the country of the service
      • CityFromId – the key of the service city
      • CityToId – the key of the city of the «where» service (for transfers)
      • TouroperatorId – the tour operator's key
Example

The invocation of the method GetCosts

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetCosts>
         <!--Optional:-->
         <meg:guid>5932b280-c780-4c84-a83a-52b25bc22615</meg:guid>
         <!--Optional:-->
         <meg:request SpoId="2049" TariffId="-1" SvKey="1" Code="2945" PriceType="2" DownloadOnlyActualCosts="0" DownloadUpdateCostsFromDate="0" CostsUpdateDateBegin="2021-08-04"/>
      </meg:GetCosts>
   </soapenv:Body>
</soapenv:Envelope>

The returning result of the method GetCosts

<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>
      <GetCostsResponse xmlns="http://www.megatec.ru/">
         <GetCostsResult Message="Ok">
            <Data>
               <CostInfo Id="7795837" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="30.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="459" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
               <CostInfo Id="7795835" SvKey="1" SpoId="2049" Code="2945" AgeFrom="0" AgeTo="0" CreateDate="2021-08-03T12:56:34.237" CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" DateBegin="2021-01-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2021-08-03T12:56:35.08" Price="10.0000" Rate="EU" SubCode1="2" SubCode2="3" SubCode3="20" SubCode4="7864" TariffId="0" Type="1" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035"/>
           </Data>
         </GetCostsResult>
      </GetCostsResponse>
   </soap:Body>
</soap:Envelope>


SpoPriceMarkDownloaded (Receiving information about availability of a specific SPO for sale)

The method returns information about the availability of a specific SPO for sale.
An important point: information is returning only for those Cost offers for which there is a publication to the partner (partner group) of the user who connected to the web service.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • SpoKey * – SPO key (returning when requesting the GetSpoList method)
  • VariantOfCost – the price option
  • SvKey – the service class key
  • Code – the service code

The returning result:

  • SpoPriceMarkDownloadedResult – The returning result
    • true – SPO is available
    • false – SPO is not available
Example

The invocating of the method SpoPriceMarkDownloaded

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:SpoPriceMarkDownloaded>
         <!--Optional:-->
         <meg:guid>016e9dd9-802e-46fb-bb79-7c44a31d6560</meg:guid>
         <meg:spoKey>2049</meg:spoKey>
         <meg:variantOfCost>0</meg:variantOfCost>
         <meg:svKey>0</meg:svKey>
         <meg:code>0</meg:code>
      </meg:SpoPriceMarkDownloaded>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method SpoPriceMarkDownloaded

<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>
      <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
         <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
      </SpoPriceMarkDownloadedResponse>
   </soap:Body>
</soap:Envelope>


Methods of working with services

GetHotels (Receiving the list of the hotels by parameters)

The method returns a list of hotels by parameters.
Accepted request parameters ( * – required):

  • СountryKey * – the country key (-1 for all)
  • RegionKey * – the region key (-1 for all)
  • СityKey * – the city key (-1 for all)

The returning result:

  • GetHotelsResult – the output results
  • Hotel – the hotel
    • Name – the name of the hotel
    • ID – ID of the hotel
    • Description – the description of the hotel
    • NameLat – the name of the hotel in Latin
    • Code – the code of the hotel
    • CodeLat – the hotel code in Latin
    • Unicode – the ISO code of the hotel
    • City – the hotel city
      • Name – the name of the city
      • ID – ID of the city
      • Description – the description of the city
      • NameLat – the name of the city in Latin
      • Code – the city code
      • CodeLat – the city code in Latin
      • Unicode – the ISO code of the city
      • CountryID – ID of the hotel's country
      • RegionID – ID of the hotel's region
    • RegionID – ID of the hotel's region
    • PriceType – the price type (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
    • CountCosts – the number of hotel p
    • CityId – ID of the hotel's city
    • HotelCategoryID – ID of the hotel category
Example

The invocating of the method GetHotels

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetHotels>
         <meg:countryKey>10</meg:countryKey>
         <meg:regionKey>10</meg:regionKey>
         <meg:cityKey>10</meg:cityKey>
      </meg:GetHotels>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetHotels

<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>
      <GetHotelsResponse xmlns="http://www.megatec.ru/">
         <GetHotelsResult>
            <Hotel>
               <Name>Aegean Blue Hotel</Name>
               <ID>2254</ID>
               <Description>3 stars (B)  (\\Nea KallikratiaABBA)</Description>
               <NameLat/>
               <Code>AGN</Code>
               <CodeLat/>
               <Unicode/>
               <City>
                  <Name>Nea KallikratiaABBA</Name>
                  <ID>10</ID>
                  <Description/>
                  <NameLat/>
                  <Code>NKL</Code>
                  <CodeLat/>
                  <Unicode/>
                  <CountryID>4</CountryID>
                  <RegionID>6</RegionID>
               </City>
               <RegionID>6</RegionID>
               <PriceType>None</PriceType>
               <CountCosts>0</CountCosts>
               <CityID>10</CityID>
               <HotelCategoryID>6</HotelCategoryID>
            </Hotel>
            <Hotel>
               <Name>Alkyonis Hotel</Name>
               <ID>1015</ID>
               <Description>2+ stars (C Sup)   (\\Nea KallikratiaABBA)</Description>
               <NameLat/>
               <Code>ALK</Code>
               <CodeLat/>
               <Unicode/>
               <City>
                  <Name>Nea KallikratiaABBA</Name>
                  <ID>10</ID>
                  <Description/>
                  <NameLat/>
                  <Code>NKL</Code>
                  <CodeLat/>
                  <Unicode/>
                  <CountryID>4</CountryID>
                  <RegionID>6</RegionID>
               </City>
               <RegionID>6</RegionID>
               <PriceType>None</PriceType>
               <CountCosts>0</CountCosts>
               <CityID>10</CityID>
               <HotelCategoryID>7</HotelCategoryID>
            </Hotel>
          </GetHotelsResult>
      </GetHotelsResponse>
   </soap:Body>
</soap:Envelope>


GetTransfers (Receiving the list of the transfers by parameters)

The method returns a list of transfers by parameters.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • СountryKey * – the country key (-1 for all)
    • СityKey * – the city key (-1 for all)
    • RegionKey * – the region key (-1 for all)
    • TypeKey * – the transfer type key (-1 for all)

The returning result:

  • GetTransferResult – the output results
    • TransferDirectionInfo – an array of the data
      • ID – the transfer ID
      • Name – the name
      • TransferTypeID – the transfer type key
      • TransferTypeName – the name of the transfer type
      • CityFromID – ID of the city from where
      • CityFromName – the name of the city from where
      • CityToID – ID of the city to
      • CityToName – the name of the city where
      • PointFromID – ID of the point from where
      • PointFromName – the name of the point from where
      • PointToID – ID of the point to
      • PointToName – the name of the point to
Example

The invocation of the method GetTransfers

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTransfers>
         <!--Optional:-->
         <meg:guid>699cbbac-6acc-4339-9d3c-2a231357d0c1</meg:guid>
         <!--Optional:-->
         <meg:request>
            <meg:CountryKey>10</meg:CountryKey>
            <meg:CityKey>10</meg:CityKey>
            <meg:RegionKey>10</meg:RegionKey>
            <meg:TypeKey>1</meg:TypeKey>
         </meg:request>
      </meg:GetTransfers>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTransfers

<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>
      <GetTransfersResponse xmlns="http://www.megatec.ru/">
         <GetTransfersResult Message="Ok">
            <Data>
               <TransferDirectionInfo Id="527" Name="Arrival transfer: Moscow - All Cities (Finance)" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="1341" PointToName="Finance"/>
               <TransferDirectionInfo Id="530" Name="Arrival transfer: All Cities - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="0" CityFromName="All" CityToId="0" CityToName="All" PointFromId="0" PointFromName="All" PointToId="0" PointToName="All"/>
               <TransferDirectionInfo Id="576" Name="Arrival transfer: Moscow (lalala) - All Cities" TransferTypeId="1" TransferTypeName="Arrival transfer" CityFromId="87" CityFromName="Moscow" CityToId="0" CityToName="All" PointFromId="3" PointFromName="lalala" PointToId="0" PointToName="All"/>
            </Data>
         </GetTransfersResult>
      </GetTransfersResponse>
   </soap:Body>
</soap:Envelope>


GetExcursions (Receiving the list of the excursions by parameters)

The method returns excursions by parameters.
Accepted request parameters ( * – required):

  • СountryKey * – the country key (-1 for all)
  • RegionKey * – the region key (-1 for all)
  • СityKey * – the city key (-1 for all)

The returning result:

  • GetExcursionsResult – the output results
    • Excursion – an array of the data
      • Name – the name of the tour
      • ID – ID of the excursion
      • Description – the description of the tour
      • NameLat – the name of the tour in Latin
      • Code – the code of the excursion
      • CodeLat – the code of the excursion in Latin
      • Unicode – ISO code of the excursion
      • CityID – ID of the city
      • RegionID – the region ID
Example

The invocation of the method GetExcursions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetExcursions>
         <meg:countryKey>5</meg:countryKey>
         <meg:regionKey>5</meg:regionKey>
         <meg:cityKey>5</meg:cityKey>
      </meg:GetExcursions>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetExcursions

<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>
      <GetExcursionsResponse xmlns="http://www.megatec.ru/">
         <GetExcursionsResult>
            <Excursion>
               <Name>Exc21_01_2020</Name>
               <ID>670</ID>
               <Description/>
               <NameLat>Exc21_01_2020</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <CityID>5</CityID>
               <RegionID>16</RegionID>
            </Excursion>
         </GetExcursionsResult>
      </GetExcursionsResponse>
   </soap:Body>
</soap:Envelope>
</soap:Envelope>


GetServiceList (Receiving the list of additional services)

The method returns additional services.
The returning result:

  • GetServiceListResult – the output results
    • ServiceList – an array of the data
      • AdditionalParams – the additional parameters
        • Key – the key
        • Value – the value
      • Name – the name of the additional service
      • ID – ID of the additional service
      • NameLat – the name of the additional service in Latin
      • Code – the code of the additional service
      • CodeLat – the code of the additional service in Latin
      • Unicode – the ISO code of the additional service
      • ServiceClaseID – ID of the additional service class
      • CountryID – ID of the country of the additional service
Example

The invocation of the method GetServiceList

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetServiceList/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetServiceList

<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>
      <GetServiceListResponse xmlns="http://www.megatec.ru/">
         <GetServiceListResult>
            <ServiceList>
               <AdditionalParams>
                  <ParameterPair Key="CountryKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
                  <ParameterPair Key="CityKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
               </AdditionalParams>
               <Name>Extra service class\Cancellation penalty</Name>
               <ID>10</ID>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>1</ServiceClaseID>
               <CountryID>0</CountryID>
            </ServiceList>
            <ServiceList>
               <AdditionalParams>
                  <ParameterPair Key="CountryKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
                  <ParameterPair Key="CityKey">
                     <Value xsi:type="xsd:int">0</Value>
                  </ParameterPair>
               </AdditionalParams>
               <Name>Shop Tour\Shop Tour With Terms</Name>
               <ID>15</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>4</ServiceClaseID>
               <CountryID>0</CountryID>
            </ServiceList>
          </GetServiceListResult>
      </GetServiceListResponse>
   </soap:Body>
</soap:Envelope>


GetExtraServices (Receiving the list of additional services including services of AdHot type)

The method returns a list of additional services, including services of the AdHot type.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • ServiceClassKey * – the additional service class key (-1 for all)
    • СountryKey * – the country key of the additional service (-1 for all)
    • СityKey * – the city key for AdHot (-1 for all)
    • HotelKey * – the hotel key for AdHot (-1 for all)
    • RegionKey * – the region key (-1 for all)
    • TypeKey * – the type of AdHot (-1 – for everyone, 1 – Manual, 2 – HardLink, 3 – WithCosts)

The returning result:

  • GetExtraServicesResult – the output results
    • ExtraServiceInfo – an array of the data
      • Id – ID of the additional service
      • Name – the name of the additional service
      • Description – the description of the additional service
      • ServiceClassId – ID of the class of the additional service
      • IsWeb – the availability of an additional service online
      • DurationType – with or without duration (1 – with duration)
      • UpdateDate – the date of the last update of the additional service
      • IsPartnerLikeHotel – is partner of AdHot is the same as that of accommodation
      • LinkType – the AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
      • IsAddHot – whether the service is AdHot (true – is, false – is not)
      • CountryList – the list of country keys for AdHot (if the collection is empty, it means – for all)
      • CityList – the list of city keys for AdHot (if the collection is empty, it means – for all)
      • HotelList – the list of hotel keys for AdHot (if the collection is empty, it means – for all)
      • RoomTypeList – the list of room type keys for AdHot (if the collection is empty, it means – for all)
      • RoomCategoryList – the list of room category keys for AdHot (if the collection is empty, it means – for all)
      • AccommodationList – the list of accommodation keys for AdHot (if the collection is empty, it means – for all)
      • HotelLinkTypeList – the list of redefinitions of the AdHot type for hotels
        • HotelLinkTypeEx – the redefining the AdHot type for a hotel
          • HotelId – the hotel key
          • ExtraServiceLinkType – the redefined AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
Example

The invocation of the method GetExtraServices

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetExtraServices>
         <!--Optional:-->
         <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
         <!--Optional:-->
         <meg:request>
            <meg:ServiceClassKey>-1</meg:ServiceClassKey>
            <meg:CountryKey>10</meg:CountryKey>
            <meg:CityKey>10</meg:CityKey>
            <meg:HotelKey>10</meg:HotelKey>
            <meg:TypeKey>-1</meg:TypeKey>
         </meg:request>
      </meg:GetExtraServices>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetExtraServices

<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>
      <GetExtraServicesResponse xmlns="http://www.megatec.ru/">
         <GetExtraServicesResult Message="Ok">
            <Data>
               <ExtraServiceInfo Id="293" Name="Air tickets test transmission Greece" Description="" ServiceClassId="15" IsWeb="true" DurationType="1" UpdateDate="2018-04-26T17:55:50.04" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
                  <CountryList/>
                  <CityList/>
                  <HotelList/>
                  <RoomTypeList/>
                  <RoomCategoryList/>
                  <AccommodationList/>
                  <HotelLinkTypeList>
                     <HotelLinkTypeEx HotelId="2830" ExtraServiceLinkType="1"/>
                  </HotelLinkTypeList>
               </ExtraServiceInfo>
               <ExtraServiceInfo Id="433" Name="111111111111111" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.937" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
                  <CountryList/>
                  <CityList/>
                  <HotelList/>
                  <RoomTypeList/>
                  <RoomCategoryList/>
                  <AccommodationList/>
                  <HotelLinkTypeList/>
               </ExtraServiceInfo>
               <ExtraServiceInfo Id="439" Name="3221" Description="" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.967" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
                  <CountryList/>
                  <CityList/>
                  <HotelList/>
                  <RoomTypeList/>
                  <RoomCategoryList/>
                  <AccommodationList/>
                  <HotelLinkTypeList>
                     <HotelLinkTypeEx HotelId="2821" ExtraServiceLinkType="1"/>
                  </HotelLinkTypeList>
               </ExtraServiceInfo>
             </Data>
         </GetExtraServicesResult>
      </GetExtraServicesResponse>
   </soap:Body>
</soap:Envelope>
</soap:Envelope>


GetExtraServiceWithPrices (Receiving the list of additional services including services of AdHot type with prices)

The method returns a list of additional services, including services of the AdHot type with prices.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Request – the object with request parameters
    • HotelKey * – the hotel key for AdHot (-1 for all)
    • DateFrom – the date of validity from
    • DateTo – the date validity before

The returning result:

  • GetExtraServiceWithPricesResult Message="Ok">
    • CostInfo – an array of the data
      • Id – the price key
      • SvKey – the service type key
      • SpoId – ID of the SPO
      • Code – the key of the service
      • AgeFrom – age «from»
      • AgeTo – age «to»
      • CreateDate – the date the price was created
      • CheckInDateBegin – the check-in date «from»
      • CheckInDateEnd – the check-in date «till»
      • CheckOutDateBegin – the departure date «from»
      • CheckOutDateEnd – the departure date «till»
      • DateBegin – the price validity date «from»
      • DateEnd – the price validity date «till»
      • UpdateDate – the last date of the price update
      • Price – the value of the price
      • Rate – the currency
      • SubCode1 – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType, for Adhot – the room type key)
      • SubCode2 – the price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the start point, for Adhot – the hotel key)
      • SubCode3 – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – the end point, for Adhot – the room category key)
      • SubCode4 – the price parameter depending on the type of service (for the accommodation – accommodation, for Adhot – the accommodation)
      • TariffId – the tariff key
      • Type – the price type (1 – group, 0 – non-group. For a hotel per room or per person)
      • CountryId – the key of the country of the service
      • CityFromId – the key of the service city
      • CityToId – the key of the city of the "where" service (for transfers)
      • TouroperatorId – the tour operator's key
      • AdHotName – the name of AdHot
      • LinkType – the AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
      • DurationType – with or without duration (1 – with duration)
Example

The invocation of the method GetExtraServicesWithPrices

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetExtraServiceWithPrices>
         <!--Optional:-->
         <meg:guid>c80b29df-4110-4769-85a5-99ef5def023c</meg:guid>
         <!--Optional:-->
         <meg:request>
            <meg:HotelKey>2930</meg:HotelKey>
            <meg:DateFrom>2022-01-01</meg:DateFrom>
            <meg:DateTo>2022-12-31</meg:DateTo>
         </meg:request>
      </meg:GetExtraServiceWithPrices>
   </soapenv:Body>
</soapenv:Envelope>

The invocation of the method GetExtraServicesWithPrices

<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>
      <GetExtraServiceWithPricesResponse xmlns="http://www.megatec.ru/">
         <GetExtraServiceWithPricesResult Message="Ok" Count="15">
            <Data>
               <CostInfoWithAdHotDescription Id="7795829" SvKey="5" SpoId="2047" Code="471" AgeFrom="0" AgeTo="0" CreateDate="2021-07-26T18:20:02.52" 
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" 
DateBegin="2002-08-01T00:00:00" DateEnd="2023-08-12T00:00:00" UpdateDate="2021-07-26T18:20:03.313" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="2930" 
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="6" CityFromId="80" CityToId="0" TouroperatorId="1035" AdHotName="bonus" LinkType="Manual" 
DurationType="0"/>
               <CostInfoWithAdHotDescription Id="7807924" SvKey="5" SpoId="2029" Code="694" AgeFrom="0" AgeTo="0" CreateDate="2022-12-09T14:24:52.333" 
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" 
DateBegin="2022-02-01T00:00:00" DateEnd="2024-02-01T00:00:00" UpdateDate="2022-12-09T14:24:52.573" Price="3.0000" Rate="EU" SubCode1="0" SubCode2="0" 
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Сейф в номере" LinkType="Manual" 
DurationType="0"/>
               <CostInfoWithAdHotDescription Id="7805052" SvKey="5" SpoId="2136" Code="716" AgeFrom="0" AgeTo="0" CreateDate="2022-01-05T17:16:53.75" 
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00" 
DateBegin="2022-01-01T00:00:00" DateEnd="2025-01-01T00:00:00" UpdateDate="2022-01-05T18:16:55.813" Price="17.0000" Rate="EU" SubCode1="0" SubCode2="0" 
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Maska dinners" LinkType="Manual"
 DurationType="0"/>
               <CostInfoWithAdHotDescription Id="7809780" SvKey="5" SpoId="2604" Code="726" AgeFrom="0" AgeTo="0" CreateDate="2023-02-15T12:29:03.747"
 CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
 DateBegin="2023-02-01T00:00:00" DateEnd="2023-12-31T00:00:00" UpdateDate="2023-02-15T12:29:08.183" Price="0" Rate="USD" SubCode1="0" SubCode2="0" SubCode3="0"
 SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Такса (Тунис)" LinkType="Manual" DurationType="1"/>
            </Data>
         </GetExtraServiceWithPricesResult>
      </GetExtraServiceWithPricesResponse>
   </soap:Body>
</soap:Envelope>


CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism)

CalculateSingleCost (Calculating the cost of the service according to its parameters by a standart calculation mechanism) .
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • SvKey * – the service type key
  • СountryKey * – the country key
  • Сode * – the service key
  • Subcode1 * – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType)
  • Subcode2 * – price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the starting point)
  • Subcode3 * – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – the end point)
  • Subcode4 * – the price parameter depending on the type of service (for accommodation – the accommodation)
  • TourOperatorGroupKey * – the key of the tour operator's grou
  • TourOperatorKey * – the key of the tour operator (seller)
  • MrKey * – the market key
  • FilialKey * – the branch key
  • TafiffKey * – the tariff key
  • Pax * – Pax by service
  • Ages * – the list with the ages of children
  • CheckInDate * – date «from»
  • CheckOutDate * – date «till»
  • CityKey * – the city key
  • CityKeyTo * – the key of the city «where»
  • Rate * – the currency code
  • PricePerRoom * – per room or per person
  • OnlyPublished * – consider only published prices
  • ServiceProviderKey * – the key of the service provider

The returning result:

  • CalculateSingleCostResult – the output results
    • Brutto – the calculated gross price
    • ProviderKey – the key of the service provider
    • IsCalcBrutto
    • CancellationPolicies – the cancellation Policy
    • PolicyKey – the policy key
    • DateFrom – date "from"
    • DateTo – date "till"
    • PenaltyValue – the penalty value
    • IsPercent - the percentage indicating that the penalty is in "%" (true) or in "nights" (false)
Example

The invocation of the method CalculateSingleCost

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CalculateSingleCost>
         <!--Optional:-->
         <meg:guid>823b2df5-a3fe-4153-b43a-accfba1bf86c</meg:guid>
         <meg:svKey>1</meg:svKey>
         <meg:countryKey>1</meg:countryKey>
         <meg:code>1</meg:code>
         <meg:subcode1>1</meg:subcode1>
         <meg:subcode2>1</meg:subcode2>
         <meg:subcode3>1</meg:subcode3>
         <meg:subcode4>1</meg:subcode4>
         <meg:tourOperatorGroupKey>1</meg:tourOperatorGroupKey>
         <meg:tourOperatorKey>1</meg:tourOperatorKey>
         <meg:mrKey>1</meg:mrKey>
         <meg:filialKey>1</meg:filialKey>
         <meg:tafiffKey>1</meg:tafiffKey>
         <meg:pax>1</meg:pax>
         <!--Optional:-->
         <meg:ages>
         <!--Zero or more repetitions:-->
         <meg:int>1</meg:int>
         </meg:ages>
         <meg:checkInDate>2021-08-01</meg:checkInDate>
         <meg:checkOutDate>2021-08-24</meg:checkOutDate>
         <meg:cityKey>1</meg:cityKey>
         <meg:cityKeyTo>1</meg:cityKeyTo>
         <!--Optional:-->
         <meg:rate>1</meg:rate>
         <meg:pricePerRoom>1</meg:pricePerRoom>
         <meg:onlyPublished>1</meg:onlyPublished>
         <meg:serviceProviderKey>1</meg:serviceProviderKey>
      </meg:CalculateSingleCost>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CalculateSingleCost

<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>
      <CalculateSingleCostResponse xmlns="http://www.megatec.ru/">
         <CalculateSingleCostResult>
            <Brutto>50.0000</Brutto>
            <ProviderKey>2943</ProviderKey>
            <IsCalcBrutto>false</IsCalcBrutto>
            <CancellationPolicies>
               <CancellationPolicyData>
                  <PolicyKey>151</PolicyKey>
                  <DateFrom>2021-08-25T00:00:00</DateFrom>
                  <DateTo>2021-08-27T00:00:00</DateTo>
                  <PenaltyValue>3</PenaltyValue>
                  <IsPercent>false</IsPercent>
               </CancellationPolicyData>
               <CancellationPolicyData>
                  <PolicyKey>149</PolicyKey>
                  <DateFrom>2021-08-27T00:00:00</DateFrom>
                  <DateTo>2021-08-31T00:00:00</DateTo>
                  <PenaltyValue>4</PenaltyValue>
                  <IsPercent>false</IsPercent>
               </CancellationPolicyData>
              </CancellationPolicies>
         </CalculateSingleCostResult>
      </CalculateSingleCostResponse>
   </soap:Body>
</soap:Envelope>


Methods of working with dictionaries

GetRegions (Receiving the list of the regions)

The method returns a list of regions. Accepted request parameters ( * – required):

  • СountryKey * – the country ID (-1 for all)

The returning result:

  • GetRegionsResult – the search result
    • Region – an array of the data
      • Name – the name of the region
      • ID – ID of the region
      • Description – the description of the region
      • NameLat – the name of the region in Latin
      • Code – the region code
      • CodeLat – the region code in Latin
      • Unicode – the ISO code of the region
      • CountryID – the country ID
Example

The Invocation of method GetRegions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRegions>
         <meg:countryKey>10</meg:countryKey>
      </meg:GetRegions>
   </soapenv:Body>
</soapenv:Envelope>

The returning result of method GetRegions

<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>
      <GetRegionsResponse xmlns="http://www.megatec.ru/">
         <GetRegionsResult>
            <Region>
               <Name>Chisinau</Name>
               <ID>18</ID>
               <Description/>
               <NameLat/>
               <Code>KIV</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>10</CountryID>
            </Region>
            <Region>
               <Name>Tiraspol</Name>
               <ID>109</ID>
               <Description/>
               <NameLat/>
               <Code>TRS</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>10</CountryID>
            </Region>
         </GetRegionsResult>
      </GetRegionsResponse>
   </soap:Body>
</soap:Envelope>


GetCities (Receiving the list of the cities)

The method returns a list of cities. Accepted request parameters ( * – required):

  • СountryKey * – country ID (-1 for all)
  • RegionKey * – region ID (-1 for all)

The returning result:

  • GetCitiesResult – the search result
    • City – an array of the data
      • Name – the name of the city
      • ID – ID of the city
      • Description – the description of the city
      • NameLat – the name of the city in Latin
      • Code – the city code
      • CodeLat – the city code in Latin
      • Unicode – the ISO code of the city
      • CountryID – ID of the city
      • RegionID – the region ID
Example

The invocation of the method GetCities

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetCities>
         <meg:countryKey>10</meg:countryKey>
         <meg:regionKey>10</meg:regionKey>
      </meg:GetCities>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetCities

<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>
      <GetCitiesResponse xmlns="http://www.megatec.ru/">
         <GetCitiesResult>
            <City>
               <Name>Katerini</Name>
               <ID>153</ID>
               <Description/>
               <NameLat/>
               <Code>KTR</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>4</CountryID>
               <RegionID>10</RegionID>
            </City>
            <City>
               <Name>Leptokaria</Name>
               <ID>24</ID>
               <Description/>
               <NameLat/>
               <Code>LPK</Code>
               <CodeLat/>
               <Unicode/>
               <CountryID>4</CountryID>
               <RegionID>10</RegionID>
            </City>
         </GetCitiesResult>
      </GetCitiesResponse>
   </soap:Body>
</soap:Envelope>


GetCountries (Receiving the list of the countries)

The method returns a list of countries.
The returning result:

  • GetCountriesResult – the search result
    • Country – the an array of the data
      • Name – the name of the country
      • ID – the country ID
      • Description – the description of the country
      • NameLat – the name of the country in Latin
      • Code – the country code
      • CodeLat – the country code in Latin
      • Unicode – the ISO code of the country
      • IsIncoming – the parameter for internal use
Example

The invocation of the method GetCountries

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetCountries/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetCountries

<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>
      <GetCountriesResponse xmlns="http://www.megatec.ru/">
         <GetCountriesResult>
            <Country>
               <Name>Azerbaijan</Name>
               <ID>19</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <IsIncoming>false</IsIncoming>
            </Country>
            <Country>
               <Name>Belarus</Name>
               <ID>7</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <IsIncoming>false</IsIncoming>
            </Country>
            </Country>
         </GetCountriesResult>
      </GetCountriesResponse>
   </soap:Body>
</soap:Envelope>


GetRoomType (Receiving the list of the room types)

The method returns a list of room types.
The returning result:

  • GetRoomTypeResult – the search result
    • RoomType – an array of the data
      • Name – the name of the room type
      • ID – ID of the room type
      • Description – the description of the room type
      • NameLat – the name of the room type
      • Code – the room type code
      • CodeLat – the room type code in Latin
      • Unicode – the ISO code of the room type
      • Places – the number of main places
      • ExPlaces – the number of additional seats
      • PrintOrder – the number of additional seats
Example

The invocation of the method GetRoomType

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomType/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomType

<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: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>
      <GetRoomTypeResponse xmlns="http://www.megatec.ru/">
         <GetRoomTypeResult>
            <RoomType>
               <Name>NOVALUE</Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <Code>-</Code>
               <CodeLat/>
               <Unicode/>
               <Places>0</Places>
               <ExPlaces>0</ExPlaces>
               <PrintOrder>0</PrintOrder>
            </RoomType>
            <RoomType>
               <Name>10</Name>
               <ID>876</ID>
               <Description>111</Description>
               <NameLat/>
               <Code>111</Code>
               <CodeLat/>
               <Unicode/>
               <Places>111</Places>
               <ExPlaces>0</ExPlaces>
               <PrintOrder>0</PrintOrder>
            </RoomType>
            <RoomType>
               <Name>33444</Name>
               <ID>915</ID>
               <Description>12</Description>
               <NameLat/>
               <Code>1123</Code>
               <CodeLat/>
               <Unicode/>
               <Places>1</Places>
               <ExPlaces>0</ExPlaces>
               <PrintOrder>0</PrintOrder>
            </RoomType>
          </GetRoomTypeResult>
      </GetRoomTypeResponse>
   </soap:Body>
</soap:Envelope>


GetRoomCategories (Receiving the list of the room categories)

The method returns a list of room categories.
The returning result:

  • GetRoomCategoriesResult – the search result
    • RoomCategory – an array of the data
      • Name – the name of the room category
      • ID – ID of the room category
      • Description – the description of the room category
      • NameLat – the name of the room category
      • Code – the room category code
      • CodeLat – the room category code in Latin
      • Unicode – the ISO code of the room category
      • MainPlaces – the number of main places
      • ExtraPlaces – the number of additional places
      • IsMain – the parameter for internal use
Example

The invocation of the method GetRoomCategories

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomCategories/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomCategories

<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>
      <GetRoomCategoriesResponse xmlns="http://www.megatec.ru/">
         <GetRoomCategoriesResult>
            <RoomCategory>
               <Name>-</Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <CodeLat/>
               <Unicode/>
               <MainPlaces>0</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>false</IsMain>
            </RoomCategory>
            <RoomCategory>
               <Name>!!!</Name>
               <ID>304</ID>
               <Description/>
               <NameLat/>
               <Code>1</Code>
               <CodeLat/>
               <Unicode/>
               <MainPlaces>0</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>false</IsMain>
             </RoomCategory>
         </GetRoomCategoriesResult>
      </GetRoomCategoriesResponse>
   </soap:Body>
</soap:Envelope>


GetPansions (Receiving the list of the pansion types)

The method returns a list of types of meals.
The returning result:

  • GetPansionsResult – the search result
    • Pansion – the search result
      • Name – the name of the pansion type
      • ID – ID of the type of pansion
      • Description – the description of the type of pansion
      • NameLat – the name of the type of pansion in Latin
      • Code – the code of the type of pansion
      • CodeLat – the type of pansion code in Latin
      • Unicode – the ISO code of the pansion type
Example

The invocation of the method GetPansions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetPansions/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetPansions

<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>
      <GetPansionsResponse xmlns="http://www.megatec.ru/">
         <GetPansionsResult>
            <Pansion>
               <Name>&lt;Not defined></Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <Code>ND</Code>
               <CodeLat/>
               <Unicode/>
            </Pansion>
            <Pansion>
               <Name>Full Board</Name>
               <ID>1</ID>
               <Description/>
               <NameLat/>
               <Code>FB</Code>
               <CodeLat/>
               <Unicode/>
            </Pansion>
            <Pansion>
               <Name>All Inclusive</Name>
               <ID>2</ID>
               <Description/>
               <NameLat/>
               <Code>AL</Code>
               <CodeLat/>
               <Unicode/>
            </Pansion>
        </GetPansionsResult>
      </GetPansionsResponse>
   </soap:Body>
</soap:Envelope>


GetRatings (Receiving an array of hotel categories (hotel stars))

The method returns an array of hotel categories.
The returning result:

  • GetRatingsResult – the search result
    • HotelCategory – an array of the data
      • Name – the name of the hotel category
      • ID – ID of the hotel category
      • Description – the description of the hotel category
      • NameLat – the name of the hotel category in Latin
      • Code – the code of the hotel category
      • CodeLat – the code of the hotel category
      • Unicode – the ISO code of the hotel categoryя
Example

The invocation of the method GetRatings

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRatings/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRatings

<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>
      <GetRatingsResponse xmlns="http://www.megatec.ru/">
         <GetRatingsResult>
            <HotelCategory>
               <Name>Not defined</Name>
               <ID>0</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </HotelCategory>
            <HotelCategory>
               <Name>5 stars (Deluxe)</Name>
               <ID>2</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </HotelCategory>
         </GetRatingsResult>
      </GetRatingsResponse>
   </soap:Body>
</soap:Envelope>


GetFlights (Receiving the list of the regions)

The method returns a list of flights.
The returning result:

  • GetFlightsResult – the search result
    • Flight – an array of the data
      • AirportFrom – the transfer hub at the departure point
        • Name – the name of the transfer node from the Flight numbers dictionary
        • ID – ID of the city of the transfer node
        • Description – the name of the city of the transfer node from the Pickup point list dictionary
        • NameLat – the name of the transfer node
        • Code – the code of the transfer node
        • CodeLat – the code of the transfer node in Latin
        • Unicode – the ISO code of the transfer node
        • RegionID – ID of the region of the transfer node location
        • CityID – ID of the city where the transfer node is located
      • AirportTo – the transfer hub at the point of arrival
        • Name – the name of the transfer node from the Flight numbers dictionary
        • ID – ID of the city of the transfer node
        • Description – the name of the city of the transfer node from the Pickup point list dictionary
        • NameLat – the name of the transfer node
        • Code – the code of the transfer node
        • CodeLat – the code of the transfer node in Latin
        • Unicode – the ISO code of the transfer node
        • RegionID – ID of the region of the transfer node location
        • CityID – ID of the region of the transfer node location
      • TimeFrom – time from
      • TimeTo – time to
      • DateFrom – date from
      • DateTo – date to
      • IsArrival
      • Available
      • ID – ID of the row from the Charter table from the database
      • Name – ID of the row from the Charter table from the database
      • Number – the flight number from the Flight numbers dictionary
      • ArrivalFlightNumber – the arrival flight number from the Flight numbers dictionary
      • DepartureFlightNumber – the departure flight number from the Flight numbers dictionary


Example

The invocation of the method GetFlights

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetFlights/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetFlights

<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>
      <GetFlightsResponse xmlns="http://www.megatec.ru/">
         <GetFlightsResult>
            <Flight>
               <AirportFrom>
                  <Name>Makedonia</Name>
                  <ID>1000001</ID>
                  <Description>Thessaloniki</Description>
                  <NameLat/>
                  <Code/>
                  <CodeLat/>
                  <Unicode/>
                  <RegionID>7</RegionID>
                  <CityID>12</CityID>
               </AirportFrom>
               <AirportTo>
                  <Name>Makedonia</Name>
                  <ID>1000001</ID>
                  <Description>Thessaloniki</Description>
                  <NameLat/>
                  <Code/>
                  <CodeLat/>
                  <Unicode/>
                  <RegionID>7</RegionID>
                  <CityID>12</CityID>
               </AirportTo>
               <TimeFrom>2021-08-31T00:00:00+04:00</TimeFrom>
               <TimeTo>2021-08-31T00:00:00+04:00</TimeTo>
               <DateFrom>2021-08-31T00:00:00+04:00</DateFrom>
               <DateTo>2021-08-31T00:00:00+04:00</DateTo>
               <IsArrival>false</IsArrival>
               <Available>No</Available>
               <ID>4</ID>
               <Name/>
               <Number>NN 283/284 00:01</Number>
            </Flight>
         </GetFlightsResult>
      </GetFlightsResponse>
   </soap:Body>
</soap:Envelope>


GetAirport (Receiving the list of the transfer nodes)

The method returns a list of transfer nodes.
The returning result:

  • GetFlightsResult – the search result
    • Airport – an array of the data
      • Name – the name of the transfer node from the Pickup Pickup point list dictionary
      • ID – ID of the transfer node
      • Description – the name of the city of the transfer node from the Pickup point list dictionary
      • NameLat – the name of the city of the transfer node in Latin
      • Code – the city code of the transfer node in Latin
      • CodeLat – the city code of the transfer node in Latin
      • Unicode – the ISO code of the city of the transfer node in Latin
      • RegionID – ID of the region of the transfer node location
      • CityID – ID of the city where the transfer node is located
Example

The invocation of the method GetAirport

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetAirport/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetAirport

<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>
      <GetAirportResponse xmlns="http://www.megatec.ru/">
         <GetAirportResult>
            <Airport>
               <Name>lalala</Name>
               <ID>3</ID>
               <Description>Moscow</Description>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <RegionID>19</RegionID>
               <CityID>87</CityID>
            </Airport>
            <Airport>
               <Name>El.Venizelos</Name>
               <ID>1004</ID>
               <Description>Athens</Description>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <RegionID>38</RegionID>
               <CityID>55</CityID>
            </Airport>
         </GetAirportResult>
      </GetAirportResponse>
   </soap:Body>
</soap:Envelope>


GetProviders (Receiving the list of the partners which are providers of services)

The method returns a list of partners of the system who are used to be service providers.
Returning result:

  • GetProvidersResult – the search result
    • Partner – an array of the data
      • Name – the name of the partner
      • ID – the ID of the stalls
      • Description – the description of the partner
      • NameLat – the name of the partner in Latin
      • Code – the partner's code
      • CodeLat – the partner code in Latin
      • Unicode – the partner's ISO code
      • PartnersGroupID – ID of the partner's group
      • FullName – the full name of the partner
      • Fax – the partner's fax
      • Address – the partner's address
      • Zip – the partner's zip code
      • Email – the partner's e-mail
      • Phones – the partner's phones
Example

The invocation of the method GetProviders

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetProviders/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetProviders

<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>
      <GetProvidersResponse xmlns="http://www.megatec.ru/">
         <GetProvidersResult>
            <Partner>
               <Name>&lt;All></Name>
               <ID>0</ID>
               <Description/>
               <NameLat>&lt;All></NameLat>
               <Code>&lt;AL</Code>
               <CodeLat/>
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
               <FullName>&lt;All></FullName>
               <Fax/>
               <Address/>
               <Zip/>
               <Email/>
               <Phones/>
            </Partner>
            <Partner>
               <Name>HOTEL CHANGE</Name>
               <ID>1</ID>
               <Description/>
               <NameLat>HOTEL CHANGE</NameLat>
               <Code>HOT</Code>
               <CodeLat/>
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
               <FullName>HOTEL CHANGE</FullName>
               <Fax/>
               <Address/>
               <Zip/>
               <Email/>
               <Phones/>
            </Partner>
         </GetProvidersResult>
      </GetProvidersResponse>
   </soap:Body>
</soap:Envelope>


GetTransports (Receiving the list of the vehicles)

The method returns a list of vehicles.
The returning result:

  • GetTransportsResult – the search result
    • Transport – an array of the data
      • Name – the name of the vehicle
      • ID – the vehicle ID
      • Description – the description of the vehicle
      • NameLat – the name of the vehicle in Latin
      • Code – the vehicle code
      • CodeLat – the vehicle code in Latin
      • Unicode – the ISO code of the vehicle
Example

The invocation of the method GetTransports

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTransports/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTransports

<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>
      <GetTransportsResponse xmlns="http://www.megatec.ru/">
         <GetTransportsResult>
            <Transport>
               <Name>Not defined</Name>
               <ID>0</ID>
               <Description/>
               <NameLat>Not defined</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
            <Transport>
               <Name>Bus</Name>
               <ID>3</ID>
               <Description/>
               <NameLat>Bus</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
            <Transport>
               <Name>Minibus</Name>
               <ID>4</ID>
               <Description/>
               <NameLat>Minibus</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
         </GetTransportsResult>
      </GetTransportsResponse>
   </soap:Body>
</soap:Envelope>


GetTransferTypes (Receiving the list of the transfer types)

The method returns a list of transfer types.
The returning result:

  • GetTransferTypesResult – the search result
    • Transport – an array of the data
      • Name – the name of the transfer
      • ID – the transfer ID
      • Description – the description of the transfer
      • NameLat – the name of the transfer in Latin
      • Code – the transfer code
      • CodeLat – transfer code in Latin
      • Unicode – the ISO code of the transfer
Example

The invocation of the method GetTransferTypes

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTransferTypes/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTransferTypes

<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>
      <GetTransferTypesResponse xmlns="http://www.megatec.ru/">
         <GetTransferTypesResult>
            <Transport>
               <Name>Group</Name>
               <ID>2</ID>
               <Description/>
               <NameLat>Group</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
            <Transport>
               <Name>Ind Car</Name>
               <ID>3</ID>
               <Description/>
               <NameLat>Ind Car</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </Transport>
         </GetTransferTypesResult>
      </GetTransferTypesResponse>
   </soap:Body>
</soap:Envelope>


GetRates (Receiving the list of the currencies)

The method returns a list of currencies.
The returning result:

  • GetRatesResult – the search result
    • Rate – an array of the data
      • Name – the name of the currency
      • ID – the currency ID
      • Description – the currency description
      • NameLat – the description of the currency in Latin
      • Code – the currency code
      • CodeLat – the currency code in Latin
      • Unicode – the ISO code of the currency
      • IsMain – the currency attribute "main"
      • IsNational – the currency attribute "national"
Example

The invocation of the method GetRates

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRates/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRates

<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>
      <GetRatesResponse xmlns="http://www.megatec.ru/">
         <GetRatesResult>
            <Rate>
               <Name>Euro</Name>
               <ID>1</ID>
               <Description/>
               <NameLat/>
               <Code>EU</Code>
               <CodeLat/>
               <Unicode>EUR</Unicode>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
            <Rate>
               <Name>US dollar</Name>
               <ID>2</ID>
               <Description/>
               <NameLat/>
               <Code>USD</Code>
               <CodeLat/>
               <Unicode>USD</Unicode>
               <IsMain>false</IsMain>
               <IsNational>false</IsNational>
            </Rate>
         </GetRatesResult>
      </GetRatesResponse>
   </soap:Body>
</soap:Envelope>


GetServicePackage (Receiving the list of the options for package services)

The method returns a list of options for package services.
The returning result:

  • GetServicePackageResult – the search result
    • ServiceList – an array of the data
      • Name – the name of the option
      • ID – ID of the option
      • Description – the description of the option
      • NameLat – the description of the option in Latin
      • Code – the code of the option
      • CodeLat – the code of the option in Latin
      • Unicode – the ISO code of the option
      • ServiceClaseID – ID of the additional service class
      • CountryID – the key of the country of the option
Example

The invocation of the method GetServicePackage

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetServicePackage/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetServicePackage

<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>
      <GetServicePackageResponse xmlns="http://www.megatec.ru/">
         <GetServicePackageResult>
            <ServiceList>
               <Name>5 days in Antique Greece (4 nights)/DBL BB</Name>
               <ID>21</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>0</ServiceClaseID>
               <CountryID>4</CountryID>
            </ServiceList>
            <ServiceList>
               <Name>5 days in Antique Greece (4 nights)/DBL HB</Name>
               <ID>148</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <ServiceClaseID>0</ServiceClaseID>
               <CountryID>4</CountryID>
            </ServiceList>
         </GetServicePackageResult>
      </GetServicePackageResponse>
   </soap:Body>
</soap:Envelope>


GetDLStatuses (Receiving the list of the service statuses)

The method returns the file status of the service.
The returning result:

  • GetDLStatusesResult – the search result
    • StatusService – an array of the data
      • Name – the name of the
      • ID – the service status ID
      • Description – the description status services
      • NameLat – the description of services in Latin
      • Code – the code of service status
      • CodeLat – the code of service status in Latin
      • Unicode – the ISO code of service status
Example

The invocation of the method GetDLStatuses

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetDLStatuses/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetDLStatuses

<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>
      <GetDLStatusesResponse xmlns="http://www.megatec.ru/">
         <GetDLStatusesResult>
            <StatusService>
               <Name>Wait</Name>
               <ID>1</ID>
               <Description/>
               <NameLat>Wait</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </StatusService>
            <StatusService>
               <Name>Confirmed</Name>
               <ID>2</ID>
               <Description/>
               <NameLat>Confirmed</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </StatusService>
            <StatusService>
               <Name>Not confirmed</Name>
               <ID>4</ID>
               <Description/>
               <NameLat>Not confirmed</NameLat>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </StatusService>
         </GetDLStatusesResult>
      </GetDLStatusesResponse>
   </soap:Body>
</soap:Envelope>


GetTariffs (Receiving the list of the tariffs for the certain type of services)

The method returns tariffs for the certain type of service.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • SvKey * – the service type key

The returning result:

  • GetTariffsResult – the search result
    • Tariff – an array of the data
      • ID – the tariff ID
      • Name – the name of the tariff
      • Description – the description of the tariff
      • NameLat – the name of the tariff in Latin
      • Code – the code of the tariff
      • CodeLat – the tariff code in Latin
      • Unicode – the ISO code of the tariff
      • SvKey – the service type key
      • Comment – the description
      • CreateDate – the creation date
Example

The invocation of the method GetTariffs

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetTariffs>
         <!--Optional:-->
         <meg:guid>6ef6eeb2-a766-4a30-92c0-348d5c2afb94</meg:guid>
         <meg:svKey>1</meg:svKey>
      </meg:GetTariffs>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetTariffs

<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>
      <GetTariffsResponse xmlns="http://www.megatec.ru/">
         <GetTariffsResult>
            <Tariff>
               <Name>!A4</Name>
               <ID>785</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <SVKey>1</SVKey>
               <Comment>A</Comment>
               <CreateDate>2018-11-14T00:00:00</CreateDate>
            </Tariff>
            <Tariff>
               <Name>Info Tour</Name>
               <ID>623</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
               <SVKey>1</SVKey>
               <Comment/>
               <CreateDate>2009-10-01T00:00:00</CreateDate>
            </Tariff>
         </GetTariffsResult>
      </GetTariffsResponse>
   </soap:Body>
</soap:Envelope>


GetRoomDescriptions (Receiving an array of the descriptions of the rooms)

The method returns an array of room descriptions.
Accepted request parameters ( * – required):

  • RoomTypeId * – the room type key (0 – for all)
  • RoomCategoryId * – the room category key (0 – for all)

The returning result:

  • GetRoomDescriptionsResult – the search result
    • AdditionalDescription – an array of the data
      • Name – the name of the description of the room
      • ID – the name of the description of the room
      • Description – the description
      • NameLat – the name of the description of the room in Latin
      • Code – the room description code
      • CodeLat – the code of the description of the room in Latin
      • Unicode – the ISO code of the room description
Example

The invocation of the method GetRoomDescriptions

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomDescriptions>
         <meg:roomTypeId>7</meg:roomTypeId>
         <meg:roomCategoryId>7</meg:roomCategoryId>
      </meg:GetRoomDescriptions>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomDescriptions

<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>
      <GetRoomDescriptionsResponse xmlns="http://www.megatec.ru/">
         <GetRoomDescriptionsResult>
            <AdditionalDescription>
               <Name>Family Room Golf View</Name>
               <ID>1368</ID>
               <Description/>
               <NameLat/>
               <Code/>
               <CodeLat/>
               <Unicode/>
            </AdditionalDescription>
         </GetRoomDescriptionsResult>
      </GetRoomDescriptionsResponse>
   </soap:Body>
</soap:Envelope>


GetAccommodations (Receiving the accommodations for the hotel)

The method returns hotel accommodations.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)

The returning result:

  • GetAccommodationsResult – the search result
    • Message – the accommodation ID
    • Data – an array of objects with data
      • AccomodationInfo – an array of the data with accommodation
        • Id – the accommodation ID
        • Code – the accommodation code
        • Name – the name of the accommodation
        • IsPerRoom – per room or per person
        • NameUnicode – the name of the accommodation in Unicode
        • CountAdultMain – the number of adults in the main places
        • CountChildMain – the number of children in the main places
        • CountAdultExtra – the number of adults per additional place
        • CountChildExtra – the number of children per additional place
        • ChildrenAges – the string with a description of the ages of children
        • IsWeb – the accessibility for Interlook-Web
        • IsPackage – is it possible to add to the package
        • UpdateDate – the date of the last update of the accommodation
        • ClildrenAgesList – the list with the ages of children
          • AccomadationAge – an array of the data with age
            • Id – ID of the record
            • AgeFrom – age «from»
            • AgeTo – age «to»
            • CountMen – the number of adults in the accommodation
            • IsMain – is a child of this age in the main place
            • UpdateDate – the date of the last update of the record
Example

The invocation of the method GetAccommodations

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetAccommodations>
         <!--Optional:-->
         <meg:guid>1b972765-0318-4ca3-9437-cefa99a3959d</meg:guid>
      </meg:GetAccommodations>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetAccommodations

<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>
      <GetAccommodationsResponse xmlns="http://www.megatec.ru/">
         <GetAccommodationsResult Message="Ok">
            <Data>
             <AccomodationInfo Id="7939" Code="1Ad+2Ch(3-12)" Name="1Ad+2Ch(3-12)" IsPerRoom="true" NameUnicode="1Ad+2Ch(3-12)" CountAdultMain="1" CountChildMain="2" CountAdultExtra="0" CountChildExtra="0" ChildrenAges="2Ch(3-12)" IsWeb="true" IsPackage="false" UpdateDate="2020-04-10T18:25:09.3">
                  <ChildrenAgesList>
                     <AccomadationAge Id="6664" AgeFrom="3" AgeTo="12" CountMen="2" IsMain="true" UpdateDate="2020-04-10T18:25:09.293"/>
                  </ChildrenAgesList>
               </AccomodationInfo>
            </Data>
         </GetAccommodationsResult>
      </GetAccommodationsResponse>
   </soap:Body>
</soap:Envelope>


GetRoomAccommodations (Receiving the accommodations for the hotel an 2 first values of ages from the list of childrenages)

The method returns the hotel accommodation and the first 2 values of ages from the list of ages of children.
The returning result:

  • GetRoomAccommodationsResult – The returning result
    • RoomAccomodation – an array of the data
      • Name – the name of the accommodation
      • ID – the accommodation ID
      • Description – the description of the accommodation
      • NameLat – the name of the accommodation in Latin
      • Code – the accommodation code
      • CodeLat – the accommodation code in Latin
      • Unicode – the ISO code of the accommodation
      • PerRoom – per room
      • AdultMainPalces – the number of adult main places
      • ChildMainPalces – the number of primary places for children
      • AdultExtraPalces – the number of adult additional places
      • ChildExtraPalces – the number of additional places for children
      • MainPlaces – the number of main places
      • ExtraPlaces – the number of additional seats
      • IsMain – the are there any main places
      • AgeFrom – the age of children «from»
      • AgeTo – the age of children «to»
      • Age2From – the age of children «from»
      • Age2To – the age of children «to»
Example

The invocation of the method GetRoomAccommodations

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetRoomAccommodations/>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetRoomAccommodations

<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>
      <GetRoomAccommodationsResponse xmlns="http://www.megatec.ru/">
         <GetRoomAccommodationsResult>
            <RoomAccomodation>
               <Name>2Add</Name>
               <ID>15</ID>
               <Description/>
               <NameLat/>
               <Code>2+</Code>
               <CodeLat/>
               <Unicode>2Ad+1Ch(3-5)</Unicode>
               <PerRoom>true</PerRoom>
               <AdultMainPalces>2</AdultMainPalces>
               <ChildMainPalces>4</ChildMainPalces>
               <AdultExtraPalces>0</AdultExtraPalces>
               <ChildExtraPalces>0</ChildExtraPalces>
               <MainPlaces>6</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>true</IsMain>
               <AgeFrom>3</AgeFrom>
               <AgeTo>5</AgeTo>
               <Age2From>0</Age2From>
               <Age2To>0</Age2To>
            </RoomAccomodation>
            <RoomAccomodation>
               <Name>1Ad+1inf</Name>
               <ID>16</ID>
               <Description/>
               <NameLat/>
               <Code>1Ad+1inf</Code>
               <CodeLat/>
               <Unicode>1Ad</Unicode>
               <PerRoom>true</PerRoom>
               <AdultMainPalces>1</AdultMainPalces>
               <ChildMainPalces>0</ChildMainPalces>
               <AdultExtraPalces>0</AdultExtraPalces>
               <ChildExtraPalces>0</ChildExtraPalces>
               <MainPlaces>1</MainPlaces>
               <ExtraPlaces>0</ExtraPlaces>
               <IsMain>true</IsMain>
               <AgeFrom>0</AgeFrom>
               <AgeTo>0</AgeTo>
               <Age2From>0</Age2From>
               <Age2To>0</Age2To>
            </RoomAccomodation>
         </GetRoomAccommodationsResult>
      </GetRoomAccommodationsResponse>
   </soap:Body>
</soap:Envelope>


GetClientInfo (Issuing information about the partner to which relates the on-line user)

The method provides information about the partner to which the on-line user belongs, under which the request was made in the Connect method .
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)

The returning result:

  • Name – the name of the partner
  • MarketName – the list of markets from the partner card
  • Address – the address from the partner's card
Example

The invocation of the method GetClientInfo

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetClientInfo>
         <!--Optional:-->
         <meg:guid>6851ab74-f299-4668-ade8-b8e125b7ad61</meg:guid>
      </meg:GetClientInfo>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetClientInfo

<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>
      <GetClientInfoResponse xmlns="http://www.megatec.ru/">
         <GetClientInfoResult Message="Ok">
            <Data>
               <ClientInfo>
                  <Name>Alpha Tour</Name>
                  <MarketName>Russian Market</MarketName>
                  <Address>Belarus,Minsk,Pobediteley street 23/1-115a A</Address>
               </ClientInfo>
            </Data>
         </GetClientInfoResult>
      </GetClientInfoResponse>
   </soap:Body>
</soap:Envelope>


Methods of integration with payment systems

GetReservationPenalties (Receiving the penalties for the reservation before canceling it)

The method returns the amount of penalties for the reservation before it is canceled.
The operation of the method is regulated by a license.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • ReservationKey * – the reservation key
  • CancellationDate – the cancellation date on which the condition and the amount of the fine are issued. If not specified, then we get all possible cancellation rules up to arrival.

The returning result:

  • GetReservationPenaltiesResult – the search result
    • Penalty – fine
      • ServicePenalty – the penalty service
        • ServiceClassID – id of the service class
        • ID – ID of the fine
        • Name – the name of the fine
        • PenaltyData – an array of penalty data
          • PenaltyDataInfo – an array of data
            • TotalPenalty – the full amount of the penalty
            • RateCode – the currency code
            • PolicyDescription – the penalty conditions
            • CancellationPolicyData – an array of cancellation data
              • PolicyKey – the cancellation key
              • DateFrom – date from
              • DateTo – date to
              • PenaltyValue – the penalty value
              • IsPercent - the percentage indicating that the penalty is in "%" (true) or in "nights" (false)
        • Hotel – the Hotel
          • ID – the hotel ID
          • Name – the name of the hotel
        • RoomType – the room type
          • ID – the Room ID
          • Name – the name of the room
        • RoomCategory – the room category
          • ID – ID of the room category
          • Name – the name of the room category
        • Accommodation – the accommodation
          • ID – the accommodation ID
          • Name – the name of the placement
        • Pansion – the type of pansion supply
          • ID – ID of the type of pansion supply
          • Name – the name of the type of the pansion

In case of errors, we will receive a message with a decryption.
In case of an incorrect Guid, we will receive the message: "Invalid user or password (Invalid GUID)".
If there is no contract with the specified key for the current partner, we will receive the message:"Check the parameter 'reservationKey' = <value in request>. There is no booking in the database for you.".br />

Example

The invocation of the method GetReservationPenalties

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetReservationPenalties>
         <!--Optional:-->
         <meg:guid>9d041308-0e4c-4d07-8486-9e2293f1de75</meg:guid>
         <meg:reservationKey>36080</meg:reservationKey>
         </meg:GetReservationPenalties>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetReservationPenalties

<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>
      <GetReservationPenaltiesResponse xmlns="http://www.megatec.ru/">
         <GetReservationPenaltiesResult>
            <Penalty>
               <ServicePenalty xsi:type="HotelPenalty">
                  <ServiceClassID>0</ServiceClassID>
                  <ID>164217</ID>
                  <Name>HTL::Delphi/Fedriades Hotel /Double Room/2AD/100 m2/BB</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>0</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled before 01.09.2021, no penalty Penalty value is 0.00 EU</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>-1</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo>2021-09-01T00:00:00</DateTo>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                     <PenaltyDataInfo>
                        <TotalPenalty>17.76</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled from 01.09.2021, the penalty will be 2.00 % of the cost of accommodation Penalty value is 17.76 EU</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>73</PolicyKey>
                           <DateFrom>2021-09-01T00:00:00</DateFrom>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>2</PenaltyValue>
                           <IsPercent>true</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
                  <Hotel>
                     <ID>2426</ID>
                     <Name>Fedriades Hotel</Name>
                  </Hotel>
                  <RoomType>
                     <ID>3</ID>
                     <Name>Double Room</Name>
                  </RoomType>
                  <RoomCategory>
                     <ID>47</ID>
                     <Name>100 m2</Name>
                  </RoomCategory>
                  <Accommodation>
                     <ID>5558</ID>
                     <Name>2Ad</Name>
                  </Accommodation>
                  <Pansion>
                     <ID>3</ID>
                     <Name>Bed and Breakfast</Name>
                  </Pansion>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>2</ServiceClassID>
                  <ID>164218</ID>
                  <Name>TRF::Arrival transfer/Mini Bus/El.Venizelos-Fedriades Hotel /Delphi/!AA 910</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>0</TotalPenalty>
                        <RateCode/>
                        <PolicyDescription/>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164219</ID>
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>270</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164220</ID>
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>270</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164222</ID>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>100</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164223</ID>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>100</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
               <ServicePenalty>
                  <ServiceClassID>5</ServiceClassID>
                  <ID>164224</ID>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
                  <PenaltyData>
                     <PenaltyDataInfo>
                        <TotalPenalty>100</TotalPenalty>
                        <RateCode>EU</RateCode>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
                        <CancellationPolicyData>
                           <PolicyKey>0</PolicyKey>
                           <DateFrom xsi:nil="true"/>
                           <DateTo xsi:nil="true"/>
                           <PenaltyValue>0</PenaltyValue>
                           <IsPercent>false</IsPercent>
                        </CancellationPolicyData>
                     </PenaltyDataInfo>
                  </PenaltyData>
               </ServicePenalty>
             </Penalty>
         </GetReservationPenaltiesResult>
      </GetReservationPenaltiesResponse>
   </soap:Body>
</soap:Envelope>


CreatePayment (Creating the payments for the reservation)

The method creates the payment for the reservation.
Accepted request parameters ( * – required):

  • UserToken * – Id of authentification (returns in request for method Connect)
  • Date * – the date of payment creation
  • Sum * – the payment amount
  • CurrencyIsoCode * – the ISO code of the payment currency
  • ReservationCode * – the reservation code
  • PaymentId * – the payment ID (set manually for subsequent identification of the payment). The unique code specified by the user once should not be repeated in the next payment for this reservation.

The returning result:

  • CreatePaymentResult – the output result
    • 0 – NoError – no errors
    • 1 – DogovorNotFound – the reservation with this code was not found
    • 2 – InternalError – an internal error
    • 3 – DogovorAnnulate – the reservation is canceled
    • 4 – DogovorPayed – the reservation is paid
    • 7 – ExistingPaymentID – the payment with such an external ID already exists
    • 8 – IncorrectPaymentType – there are payments of prohibited types for the reservation
    • 9 – NotAllowedPartnerKey – the partner on the reservation is not allowed
    • 10 – FailureSignature – the signature error
    • 11 – NoInvoices – there are no invoices for the reservation
Example

The invocation of the method CreatePayment

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CreatePayment>
         <!--Optional:-->
         <meg:userToken>96ce5daf-f8ca-4dd9-a114-ede84d1d1608</meg:userToken>
         <meg:date>2021-09-10</meg:date>
         <meg:sum>120</meg:sum>
         <!--Optional:-->
         <meg:currencyIsoCode>EUR</meg:currencyIsoCode>
         <!--Optional:-->
         <meg:reservationCode>MT110919A0K</meg:reservationCode>
         <!--Optional:-->
         <meg:paymentId>13</meg:paymentId>
      </meg:CreatePayment>
   </soapenv:Body>
</soapenv:Envelope>

The invocation of the method CreatePayment

<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>
      <CreatePaymentResponse xmlns="http://www.megatec.ru/">
         <CreatePaymentResult>0</CreatePaymentResult>
      </CreatePaymentResponse>
   </soap:Body>
</soap:Envelope>


GetPaymentInformation (Searching for the payment information with a specified payment ID from an external system)

The method returns information about the payment with the specified payment ID from the external system.
Accepted request parameters ( * – required):

  • UserToken * – Id of authentification (returns in request for method Connect)
  • ReservationCode * – the reservation code
  • ExternalPaymentId * – the payment ID (the PaymentID parameter in the CreatePayment method request)

The returning result:

  • GetPaymentInformationResult – the output result
    • IsPaymentExists – shows if there is a requested payment
      • true – the payment with the specified ID for the specified reservation exists
      • false – there is no requested payment
    • PaymentInformationResult – an array for payment data
      • InternalPaymentId – the payment ID in the Interlook system
      • DogovorCode – the reservation code
      • PaymentSum – the payment amount
      • PaymentNationalSum – the amount of the payment in the national currency
      • PaymentRateISOCode – the ISO code of the payment currency
      • CreateDate – the date of payment
    • ErrorCode – the error code
      • 0 – NoError – no errors
      • 1 – DogovorNotFound – the reservation with this code was not found
      • 2 – InternalError – an internal error
      • 3 – DogovorAnnulate – the reservation is canceled
      • 4 – DogovorPayed – the reservation is paid
      • 7 – ExistingPaymentID – the payment with such an external ID already exists
      • 8 – IncorrectPaymentType – there are payments of prohibited types for the reservation
      • 9 – NotAllowedPartnerKey – the partner on the reservation is not allowed
      • 10 – FailureSignature – the signature error
      • 11 – NoInvoices – there are no invoices for the reservation
Example

The invocation of the method GetPaymentInformation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetPaymentInformation>
         <!--Optional:-->
         <meg:userToken>96ce5daf-f8ca-4dd9-a114-ede84d1d1608</meg:userToken>
         <!--Optional:-->
         <meg:reservationCode>MT110919A0K</meg:reservationCode>
         <!--Optional:-->
         <meg:externalPaymentId>12</meg:externalPaymentId>
      </meg:GetPaymentInformation>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetPaymentInformation

<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>
      <GetPaymentInformationResponse xmlns="http://www.megatec.ru/">
         <GetPaymentInformationResult>
            <IsPaymentExists>true</IsPaymentExists>
            <PaymentsShortInformation>
               <InternalPaymentId>1997</InternalPaymentId>
               <DogovorCode>MT110919A0K</DogovorCode>
               <PaymentSum>150</PaymentSum>
               <PaymentNationalSum>150</PaymentNationalSum>
               <PaymentRateISOCode>EUR</PaymentRateISOCode>
               <CreateDate>2021-09-13T18:17:20.837</CreateDate>
            </PaymentsShortInformation>
            <ErrorCode>0</ErrorCode>
         </GetPaymentInformationResult>
      </GetPaymentInformationResponse>
   </soap:Body>
</soap:Envelope>


GetCancellationPolicyInfoWithPenalty (Receiving the information on the calculation of penalties for the hotel)

This functionality is available starting from release 11.20


The method returns information about the calculation of penalties for the hotel.
The output of the method results is regulated by the license.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • DateFrom * – the start date of the stay
  • DateTo * – the start date of the stay
  • HotelKey * – the hotel ID
  • PansionKey – the pansion ID
  • AccommodationKey – the accommodation ID, optional if we transmit Pax
  • RoomTypeKey – the room type ID
  • RoomCategoryKey – ID of the room category
  • Pax * – Pax by service
  • Ages* – the list with the ages of children. If we are looking for accommodation without children, we transmit an empty parameter (<meg:Ages></meg:Ages>)
  • CancellationDate – the cancellation date (if not specified, the current one is taken)

The returning result:

  • GetCancellationPolicyInfoWithPenaltyResult – the output result
    • CancellationPolicyInfoWithPenalty – an array of data
      • HotelKey – the hotel ID
      • HotelName – the name of the hotel
      • AccomodatioKey – the accommodation ID
      • AccomodatioName – the name of the accommodation
      • RoomTypeKey – the room type ID
      • RoomTypeName – the name of the room type
      • RoomCategoryKey – ID of the room category
      • RoomCategoryName – the name of the room category
      • PansionKey – the pansion ID
      • PansionName – the name of the food
      • PolicyDescripion – the description of the cancellation policy and the full amount of the penalty
      • CancellationDate – the cancellation date
      • PolicyData – the cancellation date
        • CancellationPolicyWithPenaltyValue – an array of data for calculating the penalty
          • PolicyKey – the policy key
          • DateFrom – the date "from"
          • DateTo – not set
          • PenaltyValue – the penalty value
          • IsPercent – the parameter indicating that the penalty is in "%" (true) or in "nights" (false)
          • PenaltyTotal – the total amount of the penalty
Example

The invocation of the method GetCancellationPolicyInfoWithPenalty

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
  <soapenv:Header/>
  <soapenv:Body>
     <meg:GetCancellationPolicyInfoWithPenalty>
        <meg:guid>66c8bbb3-53dc-47a0-8ddb-8e08ec68c84c</meg:guid>
        <meg:dateFrom>2021-12-01</meg:dateFrom>
        <meg:dateTo>2021-12-15</meg:dateTo>
        <meg:HotelKey>2942</meg:HotelKey>
        <meg:PansionKey>3</meg:PansionKey>
        <meg:AccommodationKey>5558</meg:AccommodationKey>
        <meg:RoomTypeKey>3</meg:RoomTypeKey>
        <meg:RoomCategoryKey>20</meg:RoomCategoryKey>
        <meg:Pax>2</meg:Pax>
        <meg:Ages>
           <meg:int>14</meg:int>
        </meg:Ages>
        <meg:CancellationDate>2021-11-30</meg:CancellationDate>
     </meg:GetCancellationPolicyInfoWithPenalty>
  </soapenv:Body>

</soapenv:Envelope> </syntaxhighlight> The returning result for the method GetCancellationPolicyInfoWithPenalty

<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>
      <GetCancellationPolicyInfoWithPenaltyResponse xmlns="http://www.megatec.ru/">
         <GetCancellationPolicyInfoWithPenaltyResult Message="Ok">
            <Data>
               <CancellationPolicyInfoWithPenalty>
                  <HotelKey>2942</HotelKey>
                  <HotelName>Green (Kiev) Not defined</HotelName>
                  <AccomodatioKey>5558</AccomodatioKey>
                  <AccomodatioName>2AD</AccomodatioName>
                  <RoomTypeKey>3</RoomTypeKey>
                  <RoomTypeName>Double Room</RoomTypeName>
                  <RoomCategoryKey>20</RoomCategoryKey>
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
                  <PansionKey>3</PansionKey>
                  <PansionName>BB</PansionName>
                  <PolicyDescripion>
                     <string>If canceled in period 30.11.2021 - 30.11.2021, the penalty will be 2 night(s). Penalty value is 690.00 EU</string>
                     <string>If canceled from 01.12.2021, the penalty will be 100.00 % of the cost of accommodation. Penalty value is 4,140.00 EU</string>
                  </PolicyDescripion>
                  <CancellationDate>2021-11-30T00:00:00</CancellationDate>
                  <PolicyData>
                     <CancellationPolicyWithPenaltyValue>
                        <PolicyKey>166</PolicyKey>
                        <DateFrom>2021-11-30T00:00:00</DateFrom>
                        <DateTo>2021-11-30T00:00:00</DateTo>
                        <PenaltyValue>2</PenaltyValue>
                        <IsPercent>false</IsPercent>
                        <PenaltyTotal>690</PenaltyTotal>
                        <Currency>EU</Currency>
                     </CancellationPolicyWithPenaltyValue>
                     <CancellationPolicyWithPenaltyValue>
                        <PolicyKey>-1</PolicyKey>
                        <DateFrom>2021-12-01T00:00:00</DateFrom>
                        <DateTo xsi:nil="true"/>
                        <PenaltyValue>100</PenaltyValue>
                        <IsPercent>true</IsPercent>
                        <PenaltyTotal>4140</PenaltyTotal>
                        <Currency>EU</Currency>
                     </CancellationPolicyWithPenaltyValue>
                  </PolicyData>
               </CancellationPolicyInfoWithPenalty>
            </Data>
         </GetCancellationPolicyInfoWithPenaltyResult>
      </GetCancellationPolicyInfoWithPenaltyResponse>
   </soap:Body>
</soap:Envelope>


CheckReservation (Receiving the information about the payment required for the reservation in the selected currency)

The method returns information about the payment required for the reservation in the selected currency.
Accepted request parameters ( * – required):

  • UserToken * – Id of authentification (returns in request for method Connect)
  • DgCode * – the voucher code
  • CurrencyIsoCode * – the ISO code of the payment currency

The returning result:

  • CheckReservationResult – the output result
    • Amount – the payment amount
    • RateCode – the ISO code of the payment currency
    • NationalCurrencyPrice – the payment amount in national currency
    • NationalRateCode – the ISO code of the national currency
    • CustomCurrencyPrice – the payment amount in any currency
    • CustomRateCode – the ISO code of any payment currency
    • ErrorCode – the result code
      • 0 – NoError – no errors
      • 1 – DogovorNotFound – the reservation with this code was not found
      • 2 – InternalError – an internal error
      • 3 – DogovorAnnulate – the reservation is canceled
      • 4 – DogovorPayed – the reservation is paid
      • 7 – ExistingPaymentID – the payment with such an external ID already exists
      • 8 – IncorrectPaymentType – there are payments of prohibited types for the reservation
      • 9 – NotAllowedPartnerKey – the partner on the reservation is not allowed
      • 10 – FailureSignature – the signature error
      • 11 – NoInvoices – there are no invoices for the reservation
    • FilialKey – the ID of the partner's branch
    • BeginTourDate – the start date of the tour in the reservation
    • EndTourDate – the end date of the tour package
Example

The invocation of the method CheckReservation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckReservation>
         <!--Optional:-->
         <meg:userToken>d9c97f30-e0f5-450a-a802-f50551960d78</meg:userToken>
         <!--Optional:-->
         <meg:dgCode>MT110919A0K</meg:dgCode>
         <!--Optional:-->
         <meg:currencyIsoCode>EUR</meg:currencyIsoCode>
      </meg:CheckReservation>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CheckReservation

<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>
      <CheckReservationResponse xmlns="http://www.megatec.ru/">
         <CheckReservationResult>
            <Amount>1310</Amount>
            <RateCode>EUR</RateCode>
            <NationalCurrencyPrice>1310</NationalCurrencyPrice>
            <NationalRateCode>EUR</NationalRateCode>
            <CustomCurrencyPrice>1310</CustomCurrencyPrice>
            <CustomRateCode>EUR</CustomRateCode>
            <ErrorCode>0</ErrorCode>
            <FilialKey>1199</FilialKey>
            <BeginTourDate>2021-09-19T00:00:00</BeginTourDate>
            <EndTourDate>2021-10-11T00:00:00</EndTourDate>
         </CheckReservationResult>
      </CheckReservationResponse>
   </soap:Body>
</soap:Envelope>


CreatePaymentForDogovor (Creating the reservation payment based on issued invoice)

The method creates the payment for the reservation that has an invoice.
Accepted request parameters ( * – required):

  • Guid * – Id of authentification (returns in request for method Connect)
  • DgKey * – the reservation key
  • Payment * – the payment amount

The returning result:

  • CreatePaymentForDogovorResult – the output result
    • OrderId – the payment ID

If there is no created invoice for the reservation, we will receive the message: "There is no invoice".

Example

The invocation of the method CreatePaymentForDogovor

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CreatePaymentForDogovor>
         <!--Optional:-->
         <meg:guid>92a87a3b-04f8-4cad-bd0f-360fe8bd0a8f</meg:guid>
         <meg:dgKey>36225</meg:dgKey>
         <meg:payment>1500</meg:payment>
      </meg:CreatePaymentForDogovor>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CreatePaymentForDogovor

<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>
      <CreatePaymentForDogovorResponse xmlns="http://www.megatec.ru/">
         <CreatePaymentForDogovorResult/>
         <orderId>2008</orderId>
      </CreatePaymentForDogovorResponse>
   </soap:Body>
</soap:Envelope>


Methods for working with quotas

CheckQuota (Checking the availability of a hotel room for a period)

The method returns information about the availability of the hotel room for the period.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DateFrom – date from
  • DateTo – date to
  • HotelId * – the hotel key
  • RoomTypeId * – the room type key (-1 for all)
  • RoomCategoryId * – the room category key (-1 for all)

The returning result:

  • ServiceResult – the search result
  • QuotaSimpleInfo – an array of data
    • RoomTypeId – the room type key
    • RoomCategoryId – the room category key
    • Quota – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
    • RoomVariantName – the name of the room option (combinations from the RoomVariant table)
    • Date – not filled in
Example

The invocation of the method CheckQuota

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckQuota>
         <!--Optional:-->
         <meg:guid>fcce4f31-dd71-4d70-bbb3-0e279f59eefc</meg:guid>
         <meg:dateFrom>2021-07-13</meg:dateFrom>
         <meg:dateTo>2021-07-30</meg:dateTo>
         <meg:hotelId>2930</meg:hotelId>
         <meg:roomTypeId>-1</meg:roomTypeId>
         <meg:roomCategoryId>-1</meg:roomCategoryId>
      </meg:CheckQuota>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method CheckQuota

<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>
      <CheckQuotaResponse xmlns="http://www.megatec.ru/">
         <CheckQuotaResult Message="Ok">
            <Data>
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="8" Quota="0" RoomVariantName="Single Room Side Sea View" Date="0001-01-01T00:00:00"/>
               <QuotaSimpleInfo RoomTypeId="150" RoomCategoryId="8" Quota="0" RoomVariantName="Double Classical Side Sea View" Date="0001-01-01T00:00:00"/>
            </Data>
         </CheckQuotaResult>
      </CheckQuotaResponse>
   </soap:Body>
</soap:Envelope>


GetQuotaInfo (Checking the availability of a hotel room for a period with details by day)

МеThe method returns information about the availability of the hotel room for the period with details by day.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • DateFrom * – date from
  • DateTo * – date to
  • HotelId * – the hotel key
  • RoomTypeId * – the room type key (-1 for all)
  • RoomCategoryId * – the room category key (-1 for all)

The returning result:

  • GetQuotaInfoResult – the search result
  • QuotaSimpleInfo – an array of data
    • RoomTypeId – the room type key
    • RoomCategoryId – the room category key
    • Quota – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
    • RoomVariantName – the name of the room options (combinations from the RoomVariant table)
    • Date – the day
Example

The invocation of the method GetQuotaInfo

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:CheckQuota>
         <!--Optional:-->
         <meg:guid>fcce4f31-dd71-4d70-bbb3-0e279f59eefc</meg:guid>
         <meg:dateFrom>2021-07-13</meg:dateFrom>
         <meg:dateTo>2021-07-30</meg:dateTo>
         <meg:hotelId>2930</meg:hotelId>
         <meg:roomTypeId>-1</meg:roomTypeId>
         <meg:roomCategoryId>-1</meg:roomCategoryId>
      </meg:CheckQuota>
   </soapenv:Body>
</soapenv:Envelope>

The invocation of the method GetQuotaInfo

<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>
      <CheckQuotaResponse xmlns="http://www.megatec.ru/">
         <CheckQuotaResult Message="Ok">
            <Data>
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="8" Quota="0" RoomVariantName="Single Room Side Sea View" Date="0001-01-01T00:00:00"/>
               <QuotaSimpleInfo RoomTypeId="150" RoomCategoryId="8" Quota="0" RoomVariantName="Double Classical Side Sea View" Date="0001-01-01T00:00:00"/>
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="6" Quota="0" RoomVariantName="Single Room Standard" Date="0001-01-01T00:00:00"/>
            </Data>
         </CheckQuotaResult>
      </CheckQuotaResponse>
   </soap:Body>
</soap:Envelope>


GetChangeQuotaAndStop (Receiving the information on quotas and stops at the hotel)

The method transmits information about quotas and stops at the hotel.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • HotelKey * – the hotel key
  • Date – the date from which we receive the changes (if we do not send them, then the current one is taken)
  • UseRoomDescription * – how to compare the category and type of room (through a general description of the room or separately)
  • LoadQuaota * – whether or not to upload changes for stops
  • LoadStop * – whether or not to upload changes for stops

The returning result:

  • GetChangeQuotaAndStopResult – the search result
    • QuotaStopInfo – an array of data
      • ID – not used
      • SvKey – the service class key (for hotel = 1)
      • Code – the hotel key
      • SubCode1Name – the name of the room type
      • SubCode1 – the room type key
      • SubCode2 – not used
      • SubCode3Name – the name of the room category
      • SubCode3 – the room category key
      • RoomDescriptionID – the room description key
      • RoomDescriptionName – the name of the description of the room
      • Place – the number of places (2 and more, 1 – there are few or one seats, 0 – there are no seats in the quota, -1 – the stop is canceled (if IsStop=true) or the quota is removed (if IsStop=false)), -2 – the stop is canceled and there are no quotas)
      • IsStop – is there a stop on the current date
      • Date – the date of the current quota (stop)
      • UpdateDate – the update date
      • Release – release period
Example

The invocation of the method GetChangeQuotaAndStop

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetChangeQuotaAndStop>
         <!--Optional:-->
         <meg:guid>7e4781f3-cef1-4b05-b6aa-ef9bb091f055</meg:guid>
         <meg:hotelKey>2942</meg:hotelKey>
         <meg:date>2023-11-01T21:17:00</meg:date>
         <meg:UseRoomDescription>true</meg:UseRoomDescription>
         <meg:LoadQuota>true</meg:LoadQuota>
         <meg:LoadStop>false</meg:LoadStop>
      </meg:GetChangeQuotaAndStop>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetChangeQuotaAndStop

<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>
      <GetChangeQuotaAndStopResponse xmlns="http://www.megatec.ru/">
         <GetChangeQuotaAndStopResult>
            <QuotaStopInfo ID="0" SvKey="1" Code="2942" SubCode1Name="Double Room" SubCode1="3" SubCode2="0" SubCode3Name="Inner View" SubCode3="19" RoomDescriptionID="4076" RoomDescriptionName="Double Room Inner View" Place="2" IsStop="false" Date="2023-11-08T00:00:00" UpdateDate="2023-11-01T21:18:18.63" Release="3"/>
         </GetChangeQuotaAndStopResult>
      </GetChangeQuotaAndStopResponse>
   </soap:Body>
</soap:Envelope>


GetHotelQuotaStopInfo (Receiving the information on hotels that have had changes in quotas or stops since a certain date)

The method returns hotels that have had changes in quotas or stops since a certain date.
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Date * – the date from which we will search for hotels with changed quotas or stops

The returning result:

  • GetHotelQuotaStopResult – the search result
    • HotelQuotaStopInfo – an array of data
      • HotelKey – the hotel key
      • UpdateDateQuota – the date of the last change in hotel quotas
      • UpdateDateStop – the date of the last change in hotel stops
Example

The invocation of the method GetHotelQuotaStopInfo

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetHotelQuotaStopInfo>
         <!--Optional:-->
         <meg:guid>99c047a9-a1e9-4a8c-b585-3c09239b3fa3</meg:guid>
         <meg:date>2021-07-13</meg:date>
      </meg:GetHotelQuotaStopInfo>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetHotelQuotaStopInfo

<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>
      <GetHotelQuotaStopInfoResponse xmlns="http://www.megatec.ru/">
         <GetHotelQuotaStopInfoResult>
            <HotelQuotaStopInfo HotelKey="2930" UpdateDateQuota="2021-08-18T12:51:26.037+04:00" UpdateDateStop="2021-08-18T12:51:26.037+04:00"/>
            <HotelQuotaStopInfo HotelKey="2932" UpdateDateQuota="2021-08-31T16:57:32.213+04:00" UpdateDateStop="0001-01-01T00:00:00"/>
        </GetHotelQuotaStopInfoResult>
      </GetHotelQuotaStopInfoResponse>
   </soap:Body>
</soap:Envelope>


GetQuotaStop (Receiving the information on the established stops for hotel rooms)

GetQuotaStop (Receiving the information on the established stops for hotel rooms) .
Accepted request parameters ( * – required):

  • Guid * – id of authentification (returns in request for method Connect)
  • Date * – the date from which we will search for hotels with changed quotas or stops
  • HotelKey * – the hotel key

The returning result:

  • GetQuotaStopResult – the search result
    • QuoteHotel – an array of data
      • Code – the hotel key
      • StartDate – the start date
      • EndDate – the end date
      • Date – the date
      • CreateDate – the creation date
      • ID – not used
      • IsRemove – deleted or notет
      • Total – the number of places
      • Sold – sold
      • Free – free
      • HotelKey – the hotel key
      • RoomTypeKey – the hotel key
      • RoomCategoryKey – the room category key
      • QuoteType – the quota type
      • IsStopSale – is the stop set for sale
    • RoomTypeId – the room type key
    • RoomCategoryId – the room category key
Example

The invocation of the method GetQuotaStop

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
   <soapenv:Header/>
   <soapenv:Body>
      <meg:GetQuotaStop>
         <!--Optional:-->
         <meg:guid>eb99a14f-d4ad-4b90-a37f-a93550eb1c74</meg:guid>
         <meg:date>2021-07-13</meg:date>
         <meg:hotelKey>2941</meg:hotelKey>
      </meg:GetQuotaStop>
   </soapenv:Body>
</soapenv:Envelope>

The returning result for the method GetQuotaStop

<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>
      <GetQuotaStopResponse xmlns="http://www.megatec.ru/">
         <GetQuotaStopResult>
            <QuoteHotel Code="0" StartDate="2021-07-13T00:00:00" EndDate="2021-07-13T00:00:00" Date="2021-07-13T00:00:00" CreateDate="2021-09-14T00:00:00+04:00" ID="-1" IsRemove="true" Total="0" Sold="0" Free="0" HotelKey="2941" RoomTypeKey="0" RoomCategoryKey="0" QuoteType="NotSet" IsStopSale="true">
               <RelizPeriod>0</RelizPeriod>
            </QuoteHotel>
            <QuoteHotel Code="0" StartDate="2021-07-14T00:00:00" EndDate="2021-07-14T00:00:00" Date="2021-07-14T00:00:00" CreateDate="2021-09-14T00:00:00+04:00" ID="-1" IsRemove="true" Total="0" Sold="0" Free="0" HotelKey="2941" RoomTypeKey="0" RoomCategoryKey="0" QuoteType="NotSet" IsStopSale="true">
               <RelizPeriod>0</RelizPeriod>
            </QuoteHotel>
         </GetQuotaStopResult>
      </GetQuotaStopResponse>
   </soap:Body>
</soap:Envelope>