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

Материал из Megatec
Перейти к: навигация, поиск
[досмотренная версия][досмотренная версия]
(CreateReservation (The booking of the tour))
(Метод работы с квотами)
 
(не показано 14 промежуточных версий этого же участника)
Строка 101: Строка 101:
 
Rebooking of a tour occurs if the request contains the parameters ExternalId, ID is already available in the Interlook database.<br /><br />
 
Rebooking of a tour occurs if the request contains the parameters ExternalId, ID is already available in the Interlook database.<br /><br />
 
Accepted request parameters ( '''*''' – required):
 
Accepted request parameters ( '''*''' – required):
* '''Guid *''' – authentification ID (returns when requesting the [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]] method)
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 
* '''Reserv *''' – class – object of the tour  
 
* '''Reserv *''' – class – object of the tour  
 
** '''HasInvoices  *''' – is the tour invoice issued
 
** '''HasInvoices  *''' – is the tour invoice issued
Строка 110: Строка 110:
 
** '''TouristServices *''' – an array of services, used by tourists
 
** '''TouristServices *''' – an array of services, used by tourists
 
*** '''TouristService *''' – a separate service, 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.
+
**** '''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
 
**** '''TouristID *''' – the ID of the tourist
 
**** '''ServiceID *''' – the ID of the service  
 
**** '''ServiceID *''' – the ID of the service  
Строка 124: Строка 124:
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''Hotel *''' – array of data hotel
 
***** '''Hotel *''' – array of data hotel
****** '''AdditionalParams''' – o AdditionalParams – additional parameters (providing as pair key – value)
+
****** '''AdditionalParams''' – additional parameters (providing as pair key – value)
 
******* '''ParameterPair Key''' – key
 
******* '''ParameterPair Key''' – key
 
******** '''Value''' – value
 
******** '''Value''' – value
Строка 143: Строка 143:
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''ID *''' – id of service using for binding the service to the tourists
 
***** '''Transfer *''' – array of data Transfer
 
***** '''Transfer *''' – array of data Transfer
****** '''ID *''' – key of transfer from table TransferDirecions (returns in the request for the method [[Master-Interlook:IntegrationService (en)#GetTransfers (получение списка трансферов)|GetTransfers]])
+
****** '''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]])
 
***** '''Transport *''' – array of data Transport
 
***** '''Transport *''' – array of data Transport
 
****** '''ID *''' – key of transport from table Transport
 
****** '''ID *''' – key of transport from table Transport
Строка 155: Строка 155:
 
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
 
***** '''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
 
***** '''ID *''' – id of service using for binding the service to the tourists
***** '''Code *''' – code of the service (return in the request for method [[Master-Interlook:IntegrationService (en)#GetExtraService (получение списка сервисов)|GetExtraService]])   
+
***** '''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]])   
 
**** '''ExcursionService''' - parameters for the service type '''Excursion'''
 
**** '''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.
 
***** '''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.
Строка 165: Строка 165:
 
***** '''Duration''' – duration of service. If the parameter is not sent, it is considered Duration=1
 
***** '''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
 
***** '''ID *''' – id of service using for binding the service to the tourists
***** '''ExcursionID *''' – id of excursion (returns in the request for method [[Master-Interlook:IntegrationService (en)#GetExcursions (получение списка экскурсий)|GetExcursions]])<br />     
+
***** '''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 />     
 
***** '''CountryID'''  – – id of country, if it is not transmitted, then receive -1 in response  
 
***** '''CountryID'''  – – id of country, if it is not transmitted, then receive -1 in response  
 
***** '''CityID''' – id of city
 
***** '''CityID''' – id of city
Строка 714: Строка 714:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Возвращаемый результат метода CreateReservation:
+
The Returning result of method CreateReservation:
 
<syntaxhighlight lang="java" enclose="div">
 
<syntaxhighlight lang="java" enclose="div">
  
Строка 1227: Строка 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
*** '''ServiceID''' – идентификатор услуги (''-1'' для новой путевки)
 
* '''Services''' – массив услуг по путевке (определенного типа, в зависимости от типа услуги, например: '''ExcursionService''', '''ExtraService''', '''HotelService''', '''TransferService''')
 
** '''HotelService''' – параметры для услуги типа HotelService
 
*** '''ExternalID''' –  не используется
 
*** '''Price''' – цена брутто
 
*** '''NMen''' – количество взрослых туристов
 
*** '''Partner''' – массив данных партнера
 
**** '''Name''' – наименование партнера
 
**** '''ID''' – идентификатор партнера
 
**** '''Description''' – описание партнера
 
**** '''NameLat''' – наименование партнера латиницей
 
**** '''Code''' – код партнера
 
**** '''CodeLat''' – код партнера латиницей
 
**** '''Unicode''' – код ISO партнера
 
**** '''PartnersGroupID''' – идентификатор группы партнера
 
**** '''FullName''' – полное наименование партнера
 
**** '''Fax''' – факс партнера
 
**** '''Address''' – адрес партнера
 
**** '''Zip''' – почтовый код партнера
 
**** '''Email''' – email партнера
 
**** '''Phones''' – телефон партнера
 
*** '''PartnerID''' – идентификатор поставщика услуги (можно передать 0 – тогда он подберется автоматически расчетчиком)
 
 
                   <NMen>2</NMen>
 
                   <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>
 
                   <PartnerID>1035</PartnerID>
 
                   <Quota>NotChecked</Quota>
 
                   <Quota>NotChecked</Quota>
 
                   <PacketKey>0</PacketKey>
 
                   <PacketKey>0</PacketKey>
 
                   <AdditionalParams>
 
                   <AdditionalParams>
                    <ParameterPair Key="HotelDlKey">
 
                        <Value xsi:type="xsd:int">168804</Value>
 
                    </ParameterPair>
 
 
                     <ParameterPair Key="ContractPrKey">
 
                     <ParameterPair Key="ContractPrKey">
 
                         <Value xsi:type="xsd:int">2930</Value>
 
                         <Value xsi:type="xsd:int">2930</Value>
 
                     </ParameterPair>
 
                     </ParameterPair>
                  </AdditionalParams>
+
                    <ParameterPair Key="CancellationPolicy">
                  <DetailBrutto>(239,00(0-120)[тестэкстрарэд220822] * 2 pax * 1 days) = 478,00</DetailBrutto>
+
                        <Value xsi:type="ArrayOfPenaltyCost">
                  <Notes/>
+
                          <PenaltyCost>
                  <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
+
                              <PolicyKey>-1</PolicyKey>
                  <StartDate>2022-08-22T00:00:00</StartDate>
+
                              <DateFrom xsi:nil="true"/>
                  <StartDay xsi:nil="true"/>
+
                              <DateTo>2022-08-15T00:00:00</DateTo>
                  <Duration>1</Duration>
+
                              <PenaltyValue>0</PenaltyValue>
                  <RateBrutto>EU</RateBrutto>
+
                              <IsPercent>false</IsPercent>
                  <Brutto>478</Brutto>
+
                              <TotalPenalty>0</TotalPenalty>
                  <ServiceClassID>102</ServiceClassID>
+
                              <Description>If canceled before 15.08.2022, no penalty Penalty value is 0.00 EU</Description>
                  <TouristCount>2</TouristCount>
+
                          </PenaltyCost>
                  <ID>168803</ID>
+
                          <PenaltyCost>
                  <Status>
+
                              <PolicyKey>125</PolicyKey>
                    <Name>EX::efremov2/Red/Double Room/2AD/Jakuzzi(Kiev)</Name>
+
                              <DateFrom>2022-08-15T00:00:00</DateFrom>
                    <ID>1</ID>
+
                              <DateTo>2022-08-16T23:59:59</DateTo>
                  </Status>
+
                              <PenaltyValue>6</PenaltyValue>
                  <CityKey>80</CityKey>
+
                              <IsPercent>true</IsPercent>
                  <IsPackage>false</IsPackage>
+
                              <TotalPenalty>231</TotalPenalty>
                  <Code>713</Code>
+
                              <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>
                  <HasDuration>false</HasDuration>
+
                          </PenaltyCost>
              </Service>
+
                          <PenaltyCost>
            </Services>
+
                              <PolicyKey>200</PolicyKey>
            <ID>37263</ID>
+
                              <DateFrom>2022-08-17T00:00:00</DateFrom>
            <Name>MT140101A62</Name>
+
                              <DateTo>2022-08-17T23:59:59</DateTo>
            <Brutto>4948</Brutto>
+
                              <PenaltyValue>11</PenaltyValue>
            <CountryID>6</CountryID>
+
                              <IsPercent>true</IsPercent>
            <CityID>80</CityID>
+
                              <TotalPenalty>423.5</TotalPenalty>
            <PartnerID>1035</PartnerID>
+
                              <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>
            <Status>WaitingConfirmation</Status>
+
                          </PenaltyCost>
            <StartDate>2022-08-20T00:00:00</StartDate>
+
                          <PenaltyCost>
            <EndDate>2022-08-27T00:00:00</EndDate>
+
                              <PolicyKey>123</PolicyKey>
            <Duration>7</Duration>
+
                              <DateFrom>2022-08-18T00:00:00</DateFrom>
            <CreationDate>2022-03-04T16:56:48.953</CreationDate>
+
                              <DateTo>2022-08-19T23:59:59</DateTo>
            <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=
 
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода SearchHotelServices<br />
+
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" 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>
 
   <soap:Body>
      <SearchHotelServicesResponse xmlns="http://www.megatec.ru/">
+
      <GetArrivalsByDateResponse xmlns="http://www.megatec.ru/">
        <SearchHotelServicesResult Message="Ok">
+
        <GetArrivalsByDateResult>[{"reservationId":"MT110831A01","email":"","name":"Gusn Genna","phone":"","checkIn"
            <Data>
+
:"31.08.2021","checkOut":"05.09.2021","hotelId":2945,"hasTransferArrival":false,"hasTransferDeparture"
              <DataRequestResult>
+
:false,"flightArrival":"","flightDeparture":"","flightArrivalTime":"","flightDepartureTime":""}]</GetArrivalsByDateResult>
                  <ResultTable>
+
      </GetArrivalsByDateResponse>
                    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+
  </soap:Body>
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
+
</soap:Envelope>
                          <xs:complexType>
+
</syntaxhighlight>
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
+
</TD></TR></TABLE>
                                <xs:element name="HotelServices">
+
</div></div><br />
                                    <xs:complexType>
+
 
                                      <xs:sequence>
+
===GetDeparturesByDate (Receiving the list of the tourists for the date of the end of the tour)===
                                          <xs:element name="HotelName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="HotelKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
The '''ShowhotelReservationsByDate''' setting is responsible for the accessibility of the method for the user. By default, the setting is disabled.<br />
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
+
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 />
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"
+
<br />[[Файл:Ea_33.png|Настройка доступа]]<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 />
 +
* '''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:<br />
 +
* '''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
 
                         <anyType xsi:type="ExtraService">
 
                         <anyType xsi:type="ExtraService">
 
                           <ExternalID>0</ExternalID>
 
                           <ExternalID>0</ExternalID>
                           <Price>40</Price>
+
                           <Price>48</Price>
 
                           <NMen>0</NMen>
 
                           <NMen>0</NMen>
 
                           <PartnerID>0</PartnerID>
 
                           <PartnerID>0</PartnerID>
Строка 3271: Строка 2949:
 
                           <DetailBrutto/>
 
                           <DetailBrutto/>
 
                           <Notes/>
 
                           <Notes/>
                           <Name>тестовый ужин на 100921</Name>
+
                           <Name>Hardlink</Name>
                           <StartDate>2021-12-05T00:00:00</StartDate>
+
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDay>0</StartDay>
 
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
+
                           <Duration>0</Duration>
 
                           <RateBrutto/>
 
                           <RateBrutto/>
                           <Brutto>40</Brutto>
+
                           <Brutto>48</Brutto>
 
                           <RateNetto/>
 
                           <RateNetto/>
 
                           <Netto>0</Netto>
 
                           <Netto>0</Netto>
                           <ServiceClassID>70</ServiceClassID>
+
                           <ServiceClassID>99</ServiceClassID>
 
                           <TouristCount>0</TouristCount>
 
                           <TouristCount>0</TouristCount>
                           <ID>-9</ID>
+
                           <ID>0</ID>
                           <CityKey>0</CityKey>
+
                          <Status>
 +
                              <Name>Hardlink</Name>
 +
                              <ID>0</ID>
 +
                              <Description/>
 +
                              <NameLat/>
 +
                              <Code/>
 +
                              <CodeLat/>
 +
                              <Unicode/>
 +
                          </Status>
 +
                           <CityKey>80</CityKey>
 
                           <IsPackage>false</IsPackage>
 
                           <IsPackage>false</IsPackage>
                           <Code>704</Code>
+
                           <Code>699</Code>
 
                           <HasDuration>false</HasDuration>
 
                           <HasDuration>false</HasDuration>
 
                         </anyType>
 
                         </anyType>
 
                         <anyType xsi:type="ExtraService">
 
                         <anyType xsi:type="ExtraService">
 
                           <ExternalID>0</ExternalID>
 
                           <ExternalID>0</ExternalID>
                           <Price>20</Price>
+
                           <Price>30</Price>
 
                           <NMen>0</NMen>
 
                           <NMen>0</NMen>
 
                           <PartnerID>0</PartnerID>
 
                           <PartnerID>0</PartnerID>
Строка 3303: Строка 2990:
 
                           <DetailBrutto/>
 
                           <DetailBrutto/>
 
                           <Notes/>
 
                           <Notes/>
                           <Name>_Прачечная, химчистка</Name>
+
                           <Name>Hardlink</Name>
 
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDay>0</StartDay>
 
                           <StartDay>0</StartDay>
                           <Duration>1</Duration>
+
                           <Duration>0</Duration>
 
                           <RateBrutto/>
 
                           <RateBrutto/>
                           <Brutto>20</Brutto>
+
                           <Brutto>30</Brutto>
 
                           <RateNetto/>
 
                           <RateNetto/>
 
                           <Netto>0</Netto>
 
                           <Netto>0</Netto>
                           <ServiceClassID>78</ServiceClassID>
+
                           <ServiceClassID>99</ServiceClassID>
 
                           <TouristCount>0</TouristCount>
 
                           <TouristCount>0</TouristCount>
                           <ID>-10</ID>
+
                           <ID>-1</ID>
                           <CityKey>0</CityKey>
+
                          <Status>
                           <IsPackage>false</IsPackage>
+
                              <Name>Hardlink</Name>
                           <Code>639</Code>
+
                              <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>
 
                           <HasDuration>false</HasDuration>
 
                         </anyType>
 
                         </anyType>
                    </ArrayOfAnyType>
 
                  </AdditionalData>
 
                  <ResponseGuid>36d4defd-a39d-48c5-8288-32a22822f411</ResponseGuid>
 
              </DataRequestResult>
 
            </Data>
 
        </SearchHotelServicesResult>
 
      </SearchHotelServicesResponse>
 
  </soap:Body>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
===SearchHotelServicesMinHotel (Получение одной минимальной рассчитанной цены для отеля)===
 
Метод выводит одну минимальную (сортировка по суточной цене) рассчитанную цену для отеля.<br />
 
Принимаемые параметры запроса ( * – обязательный):<br />
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Request ''' – объект с параметрами запроса
 
** '''PageSize *''' – размер страницы возвращаемых данных, то есть на каком количестве рассчитанных цен останавливаться и выдавать результат поиска. Если задано PageSize = 5, то поиск пойдет по ценам и как только наберет 5 рассчитанных (но перебрать цен он может больше, не все цены подходят) цен, выдаст их в результат. Количество перебранных внутренних цен будет выдано в строке TotalCount.
 
** '''RowIndexFrom *''' – с какой строчки выдавать результат.  Для первой страницы указываем RowIndexFrom = 0 – перебор идет с самой первой цены. Чтобы получить вторую страницу или последующие страницы поиска в RowIndexFrom надо передавать внутренний номер цены на котором остановился поиск предыдущей страницы цен (этот номер будет в ответе в строке TotalCount)
 
** '''DateFrom *''' – дата «С»
 
** '''DateTo *''' – дата «По»
 
** '''RegionKeys''' – идентификаторы регионов (если не заданы города и отели – поиск по всем регионам, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
 
** '''CityKeys''' – идентификаторы городов (если не заданы отели – ищем поиск для всех отелей городов, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
 
** '''HotelKeys''' – идентификаторы отелей (если заданы отели – поиск только для них, должно быть заполнено RegionKeys или CityKeys или HotelKeys)
 
** '''RoomDescriptions''' – идентификаторы описаний комнат. Если не предавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetRoomFescriptions|GetRoomFescriptions]])<br />
 
** '''PansionKeys''' – идентификаторы питаний. Если не передавать будет искать для всех (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetPansions|GetPansions]])
 
** '''Ages''' – возраст детей
 
** '''Pax *''' – размещение
 
** '''Tariffs''' – идентификаторы тарифов по которым рассчитывать результат. Если не передавать будет считать по тарифу Ordinary (0 - Ordinary, 1 - SPO)
 
** '''CacheGuid''' – идентификатор поиска, который ускоряет переход по страницам. При первом поиске его передавать не нужно. Поиск вернет этот идентификатор в параметре ResponseGuid. Далее, используя пейджинг, передаем этот идентификатор дальше (но только в рамках одного поиска!)
 
** '''ResultView''' – тип вывода результата (1 – cортировка по суточной цене с группировкой по отелям, 2 – сортировка по суточной цене)
 
** '''QuotaTypes''' – фильтр по типу квоты(0 – запрос, 1 – квота, 2 – стоп). Получаем все возможные результаты. Если не указано, то значение=0
 
** ''' Mode''' – не указываем или указываем 0
 
 
Возвращаемый результат:<br />
 
* '''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">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода SearchHotelServicesMinHotel<br />
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода SearchHotelServicesMinHotel<br />
 
<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: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">
 
                         <anyType xsi:type="ExtraService">
                           <ExternalID xsi:nil="true"/>
+
                           <ExternalID>0</ExternalID>
 
                           <Price>20</Price>
 
                           <Price>20</Price>
 
                           <NMen>0</NMen>
 
                           <NMen>0</NMen>
Строка 3670: Строка 3228:
 
                               </ParameterPair>
 
                               </ParameterPair>
 
                           </AdditionalParams>
 
                           </AdditionalParams>
 +
                          <Tourists/>
 +
                          <DetailNetto/>
 
                           <DetailBrutto/>
 
                           <DetailBrutto/>
 
                           <Notes/>
 
                           <Notes/>
                           <Name>Hardlink</Name>
+
                           <Name>_Прачечная, химчистка</Name>
 
                           <StartDate>2021-12-01T00:00:00</StartDate>
 
                           <StartDate>2021-12-01T00:00:00</StartDate>
                           <StartDay xsi:nil="true"/>
+
                           <StartDay>0</StartDay>
                           <Duration>0</Duration>
+
                           <Duration>1</Duration>
 
                           <RateBrutto/>
 
                           <RateBrutto/>
 
                           <Brutto>20</Brutto>
 
                           <Brutto>20</Brutto>
                           <ServiceClassID>99</ServiceClassID>
+
                           <RateNetto/>
                           <TouristCount xsi:nil="true"/>
+
                           <Netto>0</Netto>
                           <ID>0</ID>
+
                           <ServiceClassID>78</ServiceClassID>
                           <Status>
+
                           <TouristCount>0</TouristCount>
                              <Name>Hardlink</Name>
+
                          <ID>-8</ID>
                              <ID>0</ID>
+
                           <CityKey>0</CityKey>
                          </Status>
 
                           <CityKey>80</CityKey>
 
 
                           <IsPackage>false</IsPackage>
 
                           <IsPackage>false</IsPackage>
                           <Code>699</Code>
+
                           <Code>639</Code>
 
                           <HasDuration>false</HasDuration>
 
                           <HasDuration>false</HasDuration>
 
                         </anyType>
 
                         </anyType>
                    </ArrayOfAnyType>
+
                        <anyType xsi:type="ExtraService">
                  </AdditionalData>
+
                          <ExternalID>0</ExternalID>
                  <ResponseGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</ResponseGuid>
+
                          <Price>40</Price>
              </DataRequestResult>
+
                          <NMen>0</NMen>
            </Data>
+
                          <PartnerID>0</PartnerID>
        </SearchHotelServicesMinHotelResult>
+
                          <Quota>NotChecked</Quota>
      </SearchHotelServicesMinHotelResponse>
+
                          <PacketKey>0</PacketKey>
  </soap:Body>
+
                          <AdditionalParams>
</soap:Envelope>
+
                              <ParameterPair Key="ContractPrKey">
</syntaxhighlight>
+
                                <Value xsi:type="xsd:int">0</Value>
</TD></TR></TABLE>
+
                              </ParameterPair>
</div></div><br />
+
                          </AdditionalParams>
 
+
                          <Tourists/>
===SearchActualCostCalculationVariant (Поиск возможных вариантов типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю)===
+
                          <DetailNetto/>
Метод выдает возможные варианты типов комнат, категорий комнат, размещений и питаний на которые есть актуальные цены по отелю.<br />
+
                          <DetailBrutto/>
Принимаемые параметры запроса ( * – обязательный):<br />
+
                          <Notes/>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                          <Name>тестовый ужин на 100921</Name>
* '''Request ''' – объект с параметрами запроса:
+
                          <StartDate>2021-12-05T00:00:00</StartDate>
** '''HotelId *''' – идентификатор отеля (обязательный параметр, значения 0 и -1 не допустимы)
+
                          <StartDay>0</StartDay>
** '''DateFrom *''' – дата «с»
+
                          <Duration>1</Duration>
** '''DateTo *''' – дата «по»
+
                          <RateBrutto/>
** '''ValidateQuoata''' – проверять ли квоту (true – проверять, false – нет)
+
                          <Brutto>40</Brutto>
** '''QuotaTypes''' – фильтр по типу квоты (0 – запрос, 1 – квота, 2 – стоп)
+
                          <RateNetto/>
** '''CheckAdHot''' – учитывать ли цены на обязательные адхоты (true – учитывать, false – нет)
+
                          <Netto>0</Netto>
** '''Rate *''' – код валюты, в которой будет вестись расчет
+
                          <ServiceClassID>70</ServiceClassID>
Возвращаемый результат:<br />
+
                          <TouristCount>0</TouristCount>
* '''SearchActualCostCalculationVariantResult''' – результат поиска
+
                          <ID>-9</ID>
** '''CostCalculationVariant''' – массив данных
+
                          <CityKey>0</CityKey>
*** '''RoomAccommodationId''' – ключ размещения
+
                          <IsPackage>false</IsPackage>
*** '''RoomTypeId''' – ключ типа комнаты
+
                          <Code>704</Code>
*** '''RoomCategoryId''' – ключ категории комнаты
+
                          <HasDuration>false</HasDuration>
*** '''PansionId''' – ключ питания
+
                        </anyType>
*** '''RoomAccommodationName''' – код размещения
+
                        <anyType xsi:type="ExtraService">
*** '''RoomTypeName''' – код типа комнаты
+
                          <ExternalID>0</ExternalID>
*** '''RoomCategoryName''' – код категории комнаты
+
                          <Price>20</Price>
*** '''PansionName''' – код питания
+
                          <NMen>0</NMen>
*** '''CountAdult''' – количество взрослых
+
                          <PartnerID>0</PartnerID>
*** '''CountChildren''' – количество детей
+
                          <Quota>NotChecked</Quota>
*** '''Quota''' – значение квоты
+
                          <PacketKey>0</PacketKey>
 
+
                          <AdditionalParams>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                              <ParameterPair Key="ContractPrKey">
<div class="mw-collapsible-content">
+
                                <Value xsi:type="xsd:int">0</Value>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                              </ParameterPair>
Вызов метода SearchActualCostCalculationVariant
+
                          </AdditionalParams>
<syntaxhighlight lang="java" enclose="div">
+
                          <Tourists/>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                          <DetailNetto/>
  <soapenv:Header/>
+
                          <DetailBrutto/>
  <soapenv:Body>
+
                          <Notes/>
      <meg:SearchActualCostCalculationVariant>
+
                          <Name>_Прачечная, химчистка</Name>
        <!--Optional:-->
+
                          <StartDate>2021-12-01T00:00:00</StartDate>
        <meg:guid>d1ac9f4d-20bd-43e0-b5b5-ad60c3cf0065</meg:guid>
+
                          <StartDay>0</StartDay>
        <!--Optional:-->
+
                          <Duration>1</Duration>
        <meg:request HotelId="2940" DateFrom="2021-09-08" DateTo="2021-09-09" ValidateQuota="true" CheckAdHot="true" Rate="1" QuotaTypes="0"/>
+
                          <RateBrutto/>
      </meg:SearchActualCostCalculationVariant>
+
                          <Brutto>20</Brutto>
  </soapenv:Body>
+
                          <RateNetto/>
</soapenv:Envelope>
+
                          <Netto>0</Netto>
</syntaxhighlight>
+
                          <ServiceClassID>78</ServiceClassID>
Возвращаемый результат метода SearchActualCostCalculationVariant
+
                          <TouristCount>0</TouristCount>
<syntaxhighlight lang="java" enclose="div">
+
                          <ID>-10</ID>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
                          <CityKey>0</CityKey>
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
                          <IsPackage>false</IsPackage>
  <soap:Body>
+
                          <Code>639</Code>
      <SearchActualCostCalculationVariantResponse xmlns="http://www.megatec.ru/">
+
                          <HasDuration>false</HasDuration>
        <SearchActualCostCalculationVariantResult Message="Ok">
+
                        </anyType>
            <Data>
+
                    </ArrayOfAnyType>
              <CostCalculationVariant>
+
                   </AdditionalData>
                  <RoomAccommodationId>5558</RoomAccommodationId>
+
                   <ResponseGuid>36d4defd-a39d-48c5-8288-32a22822f411</ResponseGuid>
                  <RoomTypeId>3</RoomTypeId>
+
               </DataRequestResult>
                  <RoomCategoryId>20</RoomCategoryId>
+
            </Data>
                  <PansionId>3</PansionId>
+
         </SearchHotelServicesResult>
                  <RoomAccommodationName>2AD</RoomAccommodationName>
+
       </SearchHotelServicesResponse>
                  <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:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 3790: Строка 3325:
 
</div></div><br />
 
</div></div><br />
  
==Методы работы с ценами==
+
===SearchHotelServicesMinHotel (Receiving one minimal calculated price for the hotel)===
===GetSpoList (Получение списка SPO согласно запросу)===
+
The method outputs one minimal (sorted by daily price) calculated price for the hotel.<br />
Метод возвращает  список SPO согласно запросу.<br />
+
Accepted request parameters ( '''*''' required):<br />
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<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
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
** '''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).
* '''Request''' – класс с параметрами запроса
+
** '''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)
** '''SvKey *''' – ключ класса услуги (1 – проживание, 2 трансфер, 4 – экскурсия, 5 – экстрасервис, 0 или -1 не принимаются)
+
** '''DateFrom *''' – date «from»
** '''PublicationDateBegin *''' – дата публикации SPO «с»
+
** '''DateTo *''' – date «to»
** '''PublicationDateEnd *''' – дата публикации цены «по»
+
** '''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)
Возвращаемый результат:<br />
+
** '''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)
* '''SPOInfo''' – результат поиска
+
** '''HotelKeys''' – hotel IDs (if hotels are specified, search will be made only for them, RegionKeys, CityKeys or HotelKeys must be filled in)
** '''ResultTable''' – таблица с результатом
+
** '''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 />
** '''Id''' ключ SPO
+
** '''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)
** '''Name''' – название SPO
+
** '''Ages''' – age of children
** '''PeriodBeforeCheckIn''' – период до заезда
+
** '''Pax *''' – accommodation
** '''SaleDateBegin''' – дата с которой возможно бронирование
+
** '''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)
** '''SaleDateEnd''' – дата до которой возможно бронирование
+
** '''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!)
** '''Comment''' – описание SPO
+
** '''ResultView''' – the type of output of the result (1 sorting by daily price with grouping by hotels, 2 sorting by daily price)
** '''CreateDate''' – дата создания
+
** '''QuotaTypes''' – filter by quota type (0 request, 1 quota, 2 stop). We get all possible results. If not specified, the value=0
** '''UpdateDate''' – дата обновления
+
** ''' Mode''' – do not specify or specify 0
** '''SpoType''' – тип SPO (Ordinary – 0, Spo – 1)
 
** '''SvKey''' класс услуги
 
** '''COLinkServices''' – услуги SPO
 
*** '''COLinkService''' – конкретная услуга SPO
 
**** '''SvKey''' –  ключ типа услуги
 
**** '''Code''' – ключ услуги
 
**** '''DurationMin''' минимальная продолжительность
 
**** '''DurationMax''' максимальная продолжительность
 
**** '''IsDisable''' – заблокирована ли услуга
 
**** '''DisableDate''' дата блокировки
 
** '''COServices''' информация о ценах на услуги в этом SPO
 
*** '''COService''' информация о цене на конкретную услугу в этом SPO
 
**** '''Code''' – идентификатор услуги
 
**** '''CostCount''' – количество цен для услуги в SPO
 
**** '''CostLastUpdate''' – дата последнего изменения (добавления, удаления) цен для услуги в этом СПО
 
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
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 />
 +
 
 +
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetSpoList>
+
       <meg:SearchHotelServicesMinHotel>
 +
    <!--Optional:-->
 +
        <meg:guid>138e178e-6c1c-4e5a-9f82-8280cb014804</meg:guid>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>16f4e0ca-725a-4ffe-8a5e-c41d16ef1b01</meg:guid>
+
         <meg:request>
        <!--Optional:-->
+
<meg:PageSize>100000</meg:PageSize>
        <meg:request SvKey="1" PublicationDateBegin="2021-08-01" PublicationDateEnd="2021-08-04"/>
+
            <meg:RowIndexFrom>0</meg:RowIndexFrom>
      </meg:GetSpoList>
+
            <meg:DateFrom>2021-12-01</meg:DateFrom>
  </soapenv:Body>
+
            <meg:DateTo>2022-12-22</meg:DateTo>
</soapenv:Envelope>
+
            <!--Optional:-->
</syntaxhighlight>
+
            <meg:RegionKeys>
Возвращаемый результат метода GetSpoList
+
              <!--Zero or more repetitions:-->
<syntaxhighlight lang="java" enclose="div">
+
              <meg:int>6</meg:int>
<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">
+
            </meg:RegionKeys>
  <soap:Body>
+
            <!--Optional:-->
      <GetSpoListResponse xmlns="http://www.megatec.ru/">
+
            <meg:CityKeys>
        <GetSpoListResult Message="Ok">
+
              <!--Zero or more repetitions:-->
             <Data>
+
              <meg:int>80</meg:int>
               <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">
+
            </meg:CityKeys>
                  <COLinkServices>
+
            <!--Optional:-->
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
             <meg:HotelKeys>
                  </COLinkServices>
+
               <!--Zero or more repetitions:-->
                  <XYRules/>
+
              <meg:int>2932</meg:int>
                  <COServices>
+
            </meg:HotelKeys>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
            <!--Optional:-->
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
            <meg:RoomDescriptionsKeys>
                  </COServices>
+
              <!--Zero or more repetitions:-->
              </SPOInfo>
+
              <meg:int>1894</meg:int>
              <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">
+
            </meg:RoomDescriptionsKeys>
                  <COLinkServices>
+
            <!--Optional:-->
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
            <meg:PansionKeys>
                  </COLinkServices>
+
              <!--Zero or more repetitions:-->
                  <XYRules>
+
              <meg:int>3</meg:int>
                    <XYRule ExcludeBy="0" Sign="-" XFrom="2" XTo="7" Y="1"/>
+
            </meg:PansionKeys>
                  </XYRules>
+
            <!--Optional:-->
                  <COServices>
+
            <meg:Ages>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
              <!--Zero or more repetitions:-->
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
              <meg:int>0</meg:int>
                  </COServices>
+
            </meg:Ages>
              </SPOInfo>
+
            <meg:Pax>2</meg:Pax>
              <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">
+
            <!--Optional:-->
                  <COLinkServices>
+
            <meg:Tariffs>
                    <COLinkService SvKey="1" Code="2945" DurationMin="0" DurationMax="0" IsDisable="false" DisableDate="0001-01-01T00:00:00"/>
+
              <!--Zero or more repetitions:-->
                  </COLinkServices>
+
              <meg:int>0</meg:int>
                  <XYRules>
+
            </meg:Tariffs>
                    <XYRule ExcludeBy="0" Sign="-" XFrom="8" XTo="14" Y="2"/>
+
            <!--Optional:-->
                  </XYRules>
+
            <meg:CacheGuid>f7f9dd22-5a50-455b-8cf0-f0a21153b650</meg:CacheGuid>
                  <COServices>
+
            <meg:ResultView>1</meg:ResultView>
                    <COService Code="2945" CostCount="50" CostLastUpdate="2021-08-03T12:56:35.08"/>
+
            <meg:Mode>0</meg:Mode>
                    <COService Code="2945" CostCount="4" CostLastUpdate="2021-08-03T17:47:22.58"/>
+
            <!--Optional:-->
                  </COServices>
+
            <meg:QuotaTypes>
              </SPOInfo>
+
              <!--Zero or more repetitions:-->
             </Data>
+
              <meg:int>0</meg:int>
         </GetSpoListResult>
+
             </meg:QuotaTypes>
       </GetSpoListResponse>
+
         </meg:request>
   </soap:Body>
+
       </meg:SearchHotelServicesMinHotel>
</soap:Envelope>
+
   </soapenv:Body>
 +
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
</TD></TR></TABLE>
+
Returning result of the method SearchHotelServicesMinHotel<br />
</div></div><br />
+
<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">
===GetCosts (Получение брутто цены по параметрам запроса)===
+
   <soap:Body>
Метод возвращает брутто цены по параметрам запроса.<br />
+
       <SearchHotelServicesMinHotelResponse xmlns="http://www.megatec.ru/">
Принимаемые параметры запроса ( * – обязательный):
+
         <SearchHotelServicesMinHotelResult Message="Ok">
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Request''' – объект с параметрами запроса
 
** '''SpoId *''' – ключ SPO ((Параметр CO_Id таблицы CostOffers). Список SPO возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoList (Получение списка СПО согласно запросу)|GetSpoList]])<br />
 
** '''TariffId *''' – ключ тарифа ((В таблице цен соответствует параметру CS_CVId). При установке "-1" подбираются все тарифы)
 
** '''SvKey *''' – тип услуги(1 – проживание, 2 – трансфер, 4 – экскурсия, 5 – экстрасервис)
 
** '''Code *''' – ключ услуги (Для отеля это ключ из таблицы Partners. Для всех остальных  услуг – это ключ SL_KEY из таблицы ServiceList. Так же эти ключи можно получить методами веб сервиса: GetServiceList, GetExcursions, GetTransfers, GetHotels)
 
** '''PriceType''' – тип цены проживания (0 – за человека, 1 – за комнату, 2 – все). Если не указан, то запрашивается 2.
 
** '''DownloadOnlyActualCosts *''' – закачка только актуальных цен (1 – получать актуальные, 0 – получать все) 
 
** '''DownloadUpdateCostsFromDate *''' – закачивать цены только с выбранной даты (1 – настройка включена, 0 – получаем все)
 
** '''CostsUpdateDateBegin *''' – дата, с которой закачивать цены (используется при установке параметра DownloadUpdateCostsFromDate)
 
Возвращаемый результат:<br />
 
* '''GetCostsResult''' – результаты выдачи
 
** '''CostInfo''' – массив данных
 
*** '''Id''' – ключ цены
 
*** '''SvKey''' – ключ типа услуги
 
*** '''SpoId''' – идентификатор SPO
 
*** '''Code''' – ключ услуги
 
*** '''AgeFrom''' – возраст «с»
 
*** '''AgeTo''' – возраст «по»
 
*** '''CreateDate''' – дата создания цены
 
*** '''CheckInDateBegin''' – дата заезда «с»
 
*** '''CheckInDateEnd''' – дата заезда «до»
 
*** '''CheckOutDateBegin''' – дата выезда «с»
 
*** '''CheckOutDateEnd''' – дата выезда «до»
 
*** '''DateBegin''' – дата действия цены «с»
 
*** '''DateEnd''' – дата действия цены «до»
 
*** '''UpdateDate''' – последняя дата обновления цены
 
*** '''Price''' – значение цены
 
*** '''Rate''' – валюта
 
*** '''SubCode1''' – параметр цены в зависимости от типа услуги (для проживания – ключ типа номера, для трансфера – TransferType, для Adhot – ключ типа комнаты)
 
*** '''SubCode2''' – параметр цены в зависимости от типа услуги (для проживания – ключ питания, для трансфера – точка начала, для Adhot – ключ отеля)
 
*** '''SubCode3''' – параметр цены в зависимости от типа услуги (для проживания – ключ категории номера, для трансфера – точка окончания, для Adhot – ключ категории комнаты)
 
*** '''SubCode4''' – параметр цены в зависимости от типа услуги (для проживания – размещение, для Adhot – размещение)
 
*** '''TariffId''' – ключ тарифа
 
*** '''Type''' – тип цены (1 – групповая, 0 – негрупповая. Для отеля за комнату или за человека.)
 
*** '''CountryId''' – ключ страны услуги
 
*** '''CityFromId''' – ключ города услуги
 
*** '''CityToId''' – ключ города услуги «куда» (для трансферов)
 
*** '''TouroperatorId''' – ключ туроператора
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetCosts
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода GetCosts
 
<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:Body>
 
       <GetCostsResponse xmlns="http://www.megatec.ru/">
 
         <GetCostsResult Message="Ok">
 
 
             <Data>
 
             <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"/>
+
               <DataRequestResult>
              <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"/>
+
                  <ResultTable>
          </Data>
+
                    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        </GetCostsResult>
+
                        <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="HotelServices" msdata:UseCurrentLocale="true">
      </GetCostsResponse>
+
                          <xs:complexType>
  </soap:Body>
+
                              <xs:choice minOccurs="0" maxOccurs="unbounded">
</soap:Envelope>
+
                                <xs:element name="HotelServices">
</syntaxhighlight>
+
                                    <xs:complexType>
</TD></TR></TABLE>
+
                                      <xs:sequence>
</div></div><br />
+
                                          <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"/>
===SpoPriceMarkDownloaded (Получение информации о доступности конкретного SPO для продажи)===
+
                                          <xs:element name="RtCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Метод возвращает информацию о доступности конкретного SPO для продажи.<br />
+
                                          <xs:element name="RtKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Важный момент: возвращается информация только по тем Costoffers, на которые есть публикация партнеру (группе партнера) пользователя, которые подключились к веб сервису.<br />
+
                                          <xs:element name="RcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Принимаемые параметры запроса (* – обязательный):<br />
+
                                          <xs:element name="RcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                                          <xs:element name="RdName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''SpoKey *''' – ключ SPO (возвращается при запросе к методу [[Master-Interlook:IntegrationService#GetSpoLList (получение списка SPO согласно запросу)|GetSpoLList]])
+
                                          <xs:element name="RdKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''VariantOfCost''' – вариант цены
+
                                          <xs:element name="AcName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''SvKey''' – ключ класса услуги
+
                                          <xs:element name="AcKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''Code''' – код услуги
+
                                          <xs:element name="PnCode" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Возвращаемый результат:<br />
+
                                          <xs:element name="PnKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
* '''SpoPriceMarkDownloadedResult''' – результат поиска
+
                                          <xs:element name="TotalCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
** '''true''' – SPO доступно
+
                                          <xs:element name="Cost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
** '''false''' – SPO недоступно
+
                                          <xs:element name="AddHotsCost" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                                          <xs:element name="AddHotsWithCosts" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<div class="mw-collapsible-content">
+
                                          <xs:element name="DetailBrutto" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                                          <xs:element name="QuoteType" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
Вызов метода SpoPriceMarkDownloaded
+
                                          <xs:element name="CountryKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<syntaxhighlight lang="java" enclose="div">
+
                                          <xs:element name="CityKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                                          <xs:element name="CityName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
  <soapenv:Header/>
+
                                          <xs:element name="HotelWebSite" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
  <soapenv:Body>
+
                                          <xs:element name="TariffId" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
      <meg:SpoPriceMarkDownloaded>
+
                                          <xs:element name="TariffName" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <!--Optional:-->
+
                                          <xs:element name="TariffDescription" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:guid>016e9dd9-802e-46fb-bb79-7c44a31d6560</meg:guid>
+
                                          <xs:element name="AddHots" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:spoKey>2049</meg:spoKey>
+
                                          <xs:element name="ContractPrKey" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:variantOfCost>0</meg:variantOfCost>
+
                                          <xs:element name="HotelImage" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:svKey>0</meg:svKey>
+
                                          <xs:element name="Rate" msdata:DataType="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:anyType" minOccurs="0"/>
        <meg:code>0</meg:code>
+
                                      </xs:sequence>
      </meg:SpoPriceMarkDownloaded>
+
                                    </xs:complexType>
  </soapenv:Body>
+
                                </xs:element>
</soapenv:Envelope>
+
                              </xs:choice>
</syntaxhighlight>
+
                          </xs:complexType>
Возвращаемый результат метода SpoPriceMarkDownloaded
+
                        </xs:element>
<syntaxhighlight lang="java" enclose="div">
+
                    </xs:schema>
<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">
+
                    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
  <soap:Body>
+
                        <DocumentElement xmlns="">
      <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
+
                          <HotelServices diffgr:id="HotelServices1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
        <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
+
                              <HotelName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">One (Kiev) 4 stars (A)</HotelName>
      </SpoPriceMarkDownloadedResponse>
+
                              <HotelKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</HotelKey>
  </soap:Body>
+
                              <RtCode xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Double Room</RtCode>
</soap:Envelope>
+
                              <RtKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">3</RtKey>
</syntaxhighlight>
+
                              <RcName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Jakuzzi</RcName>
</TD></TR></TABLE>
+
                              <RcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">20</RcKey>
</div></div><br />
+
                              <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>
===GetHotels (Получение списка отелей по параметрам)===
+
                              <AcKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">5558</AcKey>
Метод возвращает список отелей по параметрам.<br />
+
                              <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>
* '''СountryKey *''' – ключ страны (-1 для всех)
+
                              <TotalCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125470.0000</TotalCost>
* '''RegionKey *''' – ключ региона (-1 для всех)
+
                              <Cost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">125450.00</Cost>
* '''СityKey *''' – ключ города (-1 для всех)
+
                              <AddHotsCost xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">20.00</AddHotsCost>
Возвращаемый результат:<br />
+
                              <AddHotsWithCosts xsi:type="xs:decimal" xmlns:xs="http://www.w3.org/2001/XMLSchema">-1</AddHotsWithCosts>
* '''GetHotelsResult''' – результаты выдачи
+
                              <DetailBrutto xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">(325,00[kolesnyk2]*386) * 1 room = 125450,00</DetailBrutto>
* '''Hotel''' – отель
+
                              <QuoteType xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</QuoteType>
** '''Name''' – название отеля
+
                              <CountryKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">6</CountryKey>
** '''ID''' – идентификатор отеля
+
                              <CityKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">80</CityKey>
** '''Description''' – описание отеля
+
                              <CityName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Kiev</CityName>
** '''NameLat''' – название отеля латиницей
+
                              <HotelWebSite xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
** '''Code''' – код отеля
+
                              <TariffId xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</TariffId>
** '''CodeLat''' – код отеля латиницей
+
                              <TariffName xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">Ordinary</TariffName>
** '''Unicode''' – код ISO отеля
+
                              <TariffDescription xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
** '''City''' – город отеля
+
                              <AddHots xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</AddHots>
*** '''Name''' – название города
+
                              <ContractPrKey xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2932</ContractPrKey>
*** '''ID''' – идентификатор города
+
                              <Rate xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">EU</Rate>
*** '''Description''' – описание города
+
                          </HotelServices>
*** '''NameLat''' – название города латиницей
+
                        </DocumentElement>
*** '''Code''' – код города
+
                    </diffgr:diffgram>
*** '''CodeLat''' – код города латиницей
+
                  </ResultTable>
*** '''Unicode''' – код ISO города
+
                  <ColunmNames>
*** '''CountryID''' – идентификатор страны отеля
+
                    <string>HotelName</string>
*** '''RegionID''' – идентификатор региона отеля
+
                    <string>HotelKey</string>
** '''RegionID''' – идентификатор региона отеля
+
                    <string>RtCode</string>
** '''PriceType''' – тип цены (PerPerson = 0, PerRoom = 1, All = 2, None = 1000)
+
                    <string>RtKey</string>
** '''CountCosts''' – количество цен на отель
+
                    <string>RcName</string>
** '''CityId''' – идентификатор города отеля
+
                    <string>RcKey</string>
** '''HotelCategoryID''' – идентификатор категории отеля
+
                    <string>RdName</string>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                    <string>RdKey</string>
<div class="mw-collapsible-content">
+
                    <string>AcName</string>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                    <string>AcKey</string>
Вызов метода GetHotels
+
                    <string>PnCode</string>
<syntaxhighlight lang="java" enclose="div">
+
                    <string>PnKey</string>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                    <string>TotalCost</string>
  <soapenv:Header/>
+
                    <string>Cost</string>
  <soapenv:Body>
+
                    <string>AddHotsCost</string>
      <meg:GetHotels>
+
                    <string>AddHotsWithCosts</string>
        <meg:countryKey>10</meg:countryKey>
+
                    <string>DetailBrutto</string>
        <meg:regionKey>10</meg:regionKey>
+
                    <string>QuoteType</string>
         <meg:cityKey>10</meg:cityKey>
+
                    <string>CountryKey</string>
       </meg:GetHotels>
+
                    <string>CityKey</string>
   </soapenv:Body>
+
                    <string>CityName</string>
</soapenv:Envelope>
+
                    <string>HotelWebSite</string>
</syntaxhighlight>
+
                    <string>TariffId</string>
Возвращаемый результат метода GetHotels
+
                    <string>TariffName</string>
<syntaxhighlight lang="java" enclose="div">
+
                    <string>TariffDescription</string>
<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">
+
                    <string>AddHots</string>
   <soap:Body>
+
                    <string>ContractPrKey</string>
       <GetHotelsResponse xmlns="http://www.megatec.ru/">
+
                    <string>HotelImage</string>
         <GetHotelsResult>
+
                    <string>Rate</string>
             <Hotel>
+
                  </ColunmNames>
              <Name>Aegean Blue Hotel</Name>
+
                  <TotalCount>1</TotalCount>
              <ID>2254</ID>
+
                  <PageSize>100000</PageSize>
              <Description>3 stars (B)  (\\Nea KallikratiaABBA)</Description>
+
                  <PageIndex>0</PageIndex>
              <NameLat/>
+
                  <IsLastPage>true</IsLastPage>
               <Code>AGN</Code>
+
                  <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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===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.<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 ''' – 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:<br />
 +
* '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method SearchActualCostCalculationVariant
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method SearchActualCostCalculationVariant
 +
<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: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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
==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.<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 *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
 +
* '''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:<br />
 +
* '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetSpoList
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result of the method GetSpoList
 +
<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: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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetCosts (Receiving gross price under request parameters)===
 +
The method returns the gross price according to the request parameters.<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 />
 +
* '''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 [[Master-Interlook:IntegrationService (en)#GetSpoList (Receiving the list of SPOs according to the request)|GetSpoList]] method is requested)<br />
 +
** '''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:<br />
 +
* '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetCosts
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result of the method GetCosts
 +
<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: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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===SpoPriceMarkDownloaded (Receiving information about availability of a specific SPO for sale)===
 +
The method returns information about the availability of a specific SPO for sale.<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 />
 +
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 />
 +
* '''SpoKey *''' – SPO key (returning when requesting the [[Master-Interlook:IntegrationService (en)#GetSpoList (Receiving the list of SPOs according to the request)|GetSpoList]] method)
 +
* '''VariantOfCost''' – the price option
 +
* '''SvKey''' – the service class key
 +
* '''Code''' – the service code
 +
The returning result:<br />
 +
* '''SpoPriceMarkDownloadedResult''' – The returning result
 +
** '''true''' – SPO is available
 +
** '''false''' – SPO is not available
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocating of the method SpoPriceMarkDownloaded
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method SpoPriceMarkDownloaded
 +
<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:Body>
 +
      <SpoPriceMarkDownloadedResponse xmlns="http://www.megatec.ru/">
 +
        <SpoPriceMarkDownloadedResult>true</SpoPriceMarkDownloadedResult>
 +
      </SpoPriceMarkDownloadedResponse>
 +
  </soap:Body>
 +
</soap:Envelope>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
==Methods of working with services==
 +
===GetHotels (Receiving the list of the hotels by parameters)===
 +
The method returns a list of hotels by parameters.<br />
 +
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:<br />
 +
* '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocating of the method GetHotels
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method GetHotels
 +
<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: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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetTransfers (Receiving the list of the transfers by parameters)===
 +
The method returns a list of transfers by parameters.<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 />
 +
* '''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:<br />
 +
* '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetTransfers
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method GetTransfers
 +
<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: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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===GetExcursions (Receiving the list of the excursions by parameters)===
 +
The method returns excursions by parameters.<br />
 +
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:<br />
 +
* '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetExcursions
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method GetExcursions
 +
<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: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/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <City>
+
               <CityID>5</CityID>
                  <Name>Nea KallikratiaABBA</Name>
+
              <RegionID>16</RegionID>
                  <ID>10</ID>
+
            </Excursion>
                  <Description/>
+
        </GetExcursionsResult>
                  <NameLat/>
+
      </GetExcursionsResponse>
                  <Code>NKL</Code>
+
  </soap:Body>
                  <CodeLat/>
+
</soap:Envelope>
                  <Unicode/>
+
</soap:Envelope>
                  <CountryID>4</CountryID>
+
</syntaxhighlight>
                  <RegionID>6</RegionID>
+
</TD></TR></TABLE>
              </City>
+
</div></div><br />
              <RegionID>6</RegionID>
+
 
              <PriceType>None</PriceType>
+
===GetServiceList (Receiving the list of additional services)===
              <CountCosts>0</CountCosts>
+
The method returns additional services.<br />
              <CityID>10</CityID>
+
The returning result:<br />
               <HotelCategoryID>6</HotelCategoryID>
+
* '''GetServiceListResult''' – the output results
            </Hotel>
+
** '''ServiceList''' – an array of the data
            <Hotel>
+
*** '''AdditionalParams''' – the additional parameters
              <Name>Alkyonis Hotel</Name>
+
**** '''Key''' – the key
               <ID>1015</ID>
+
**** '''Value''' – the value
               <Description>2+ stars (C Sup)  (\\Nea KallikratiaABBA)</Description>
+
*** '''Name''' – the name of the additional service
               <NameLat/>
+
*** '''ID''' – ID of the additional service
               <Code>ALK</Code>
+
*** '''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
 +
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetServiceList
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method GetServiceList
 +
<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: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/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <City>
+
               <ServiceClaseID>1</ServiceClaseID>
                  <Name>Nea KallikratiaABBA</Name>
+
              <CountryID>0</CountryID>
                  <ID>10</ID>
+
            </ServiceList>
                  <Description/>
+
            <ServiceList>
                   <NameLat/>
+
              <AdditionalParams>
                  <Code>NKL</Code>
+
                   <ParameterPair Key="CountryKey">
                   <CodeLat/>
+
                    <Value xsi:type="xsd:int">0</Value>
                   <Unicode/>
+
                   </ParameterPair>
                  <CountryID>4</CountryID>
+
                   <ParameterPair Key="CityKey">
                   <RegionID>6</RegionID>
+
                    <Value xsi:type="xsd:int">0</Value>
               </City>
+
                   </ParameterPair>
               <RegionID>6</RegionID>
+
              </AdditionalParams>
               <PriceType>None</PriceType>
+
               <Name>Shop Tour\Shop Tour With Terms</Name>
               <CountCosts>0</CountCosts>
+
               <ID>15</ID>
               <CityID>10</CityID>
+
               <Description/>
               <HotelCategoryID>7</HotelCategoryID>
+
              <NameLat/>
             </Hotel>
+
               <Code/>
           </GetHotelsResult>
+
              <CodeLat/>
       </GetHotelsResponse>
+
              <Unicode/>
 +
               <ServiceClaseID>4</ServiceClaseID>
 +
               <CountryID>0</CountryID>
 +
             </ServiceList>
 +
           </GetServiceListResult>
 +
       </GetServiceListResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4129: Строка 4332:
 
</div></div><br />
 
</div></div><br />
  
===GetTransfers (Получение списка трансферов по параметрам)===
+
===GetExtraServices (Receiving the list of additional services including services of AdHot type)===
Метод возвращает список трансферов по параметрам.<br />
+
The method returns a list of additional services, including services of the AdHot type.<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
** '''СountryKey *''' – ключ страны (-1 для всех)
+
** '''ServiceClassKey *''' – the additional service class key (-1 for all)
** '''СityKey *''' – ключ города (-1 для всех)
+
** '''СountryKey *''' – the country key of the additional service (-1 for all)
** '''RegionKey *''' – ключ региона (-1 для всех)
+
** '''СityKey *''' – the city key for AdHot (-1 for all)
** '''TypeKey *''' – ключ типа трансфера (-1 для всех)
+
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
Возвращаемый результат:<br />
+
** '''RegionKey *''' – the region key (-1 for all)
* '''GetTransferResult''' – результаты выдачи
+
** '''TypeKey *''' – the type of AdHot (-1 – for everyone, 1 – Manual, 2 – HardLink, 3 – WithCosts)
** '''TransferDirectionInfo''' – массив данных
+
The returning result:<br />
*** '''ID''' – идентификатор трансфера
+
* '''GetExtraServicesResult''' – the output results
*** '''Name''' – название
+
** '''ExtraServiceInfo''' – an array of the data
*** '''TransferTypeID''' – ключ типа трансфера
+
*** '''Id''' – ID of the additional service
*** '''TransferTypeName''' – название типа трансфера
+
*** '''Name''' – the name of the additional service
*** '''CityFromID''' – идентификатор города откуда
+
*** '''Description''' – the description of the additional service
*** '''CityFromName''' – название города откуда
+
*** '''ServiceClassId''' – ID of the class of the additional service
*** '''CityToID''' – идентификатор города куда
+
*** '''IsWeb''' – the availability of an additional service online
*** '''CityToName''' – название города куда
+
*** '''DurationType''' – with or without duration (1 – with duration)
*** '''PointFromID''' – идентификатор точки откуда
+
*** '''UpdateDate''' – the date of the last update of the additional service
*** '''PointFromName''' – название точки откуда
+
*** '''IsPartnerLikeHotel''' – is partner of AdHot is the same as that of accommodation
*** '''PointToID''' – идентификатор точки куда
+
*** '''LinkType''' – the AdHot type (1 – Manual, 2 – HardLink, 3 – WithCosts)
*** '''PointToName''' – название точки куда
+
*** '''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)
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTransfers>
+
       <meg:GetExtraServices>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>699cbbac-6acc-4339-9d3c-2a231357d0c1</meg:guid>
+
         <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
 
         <!--Optional:-->
 
         <!--Optional:-->
 
         <meg:request>
 
         <meg:request>
 +
            <meg:ServiceClassKey>-1</meg:ServiceClassKey>
 
             <meg:CountryKey>10</meg:CountryKey>
 
             <meg:CountryKey>10</meg:CountryKey>
 
             <meg:CityKey>10</meg:CityKey>
 
             <meg:CityKey>10</meg:CityKey>
             <meg:RegionKey>10</meg:RegionKey>
+
             <meg:HotelKey>10</meg:HotelKey>
             <meg:TypeKey>1</meg:TypeKey>
+
             <meg:TypeKey>-1</meg:TypeKey>
 
         </meg:request>
 
         </meg:request>
       </meg:GetTransfers>
+
       </meg:GetExtraServices>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransfers
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetTransfersResponse xmlns="http://www.megatec.ru/">
+
       <GetExtraServicesResponse xmlns="http://www.megatec.ru/">
         <GetTransfersResult Message="Ok">
+
         <GetExtraServicesResult Message="Ok">
 
             <Data>
 
             <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"/>
+
               <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">
               <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"/>
+
                  <CountryList/>
               <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"/>
+
                  <CityList/>
            </Data>
+
                  <HotelList/>
         </GetTransfersResult>
+
                  <RoomTypeList/>
       </GetTransfersResponse>
+
                  <RoomCategoryList/>
   </soap:Body>
+
                  <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>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Строка 4195: Строка 4438:
 
</div></div><br />
 
</div></div><br />
  
===GetExcursions (Получение списка экскурсий по параметрам)===
+
===GetExtraServiceWithPrices (Receiving the list of additional services including services of AdHot type with prices)===
Метод возвращает экскурсии по параметрам.<br />
+
The method returns a list of additional services, including services of the AdHot type with prices.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):<br />
* '''СountryKey *''' – ключ страны (-1 для всех)
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''RegionKey *''' – ключ региона (-1 для всех)
+
* '''Request''' – the object with request parameters
* '''СityKey *''' – ключ города (-1 для всех)
+
** '''HotelKey *''' – the hotel key for AdHot (-1 for all)
Возвращаемый результат:<br />
+
** '''DateFrom''' – the date of validity from
* '''GetExcursionsResult''' – результаты выдачи
+
** '''DateTo''' – the date validity before
** '''Excursion''' – массив данных
+
The returning result:<br />
*** '''Name''' – название экскурсии
+
* '''GetExtraServiceWithPricesResult Message="Ok">
*** '''ID''' – идентификатор экскурсии
+
** '''CostInfo''' – an array of the data
*** '''Description''' – описание экскурсии
+
*** '''Id''' – the price key
*** '''NameLat''' – название экскурсии латиницей
+
*** '''SvKey''' – the service type key
*** '''Code''' – код экскурсии
+
*** '''SpoId''' – ID of the SPO
*** '''CodeLat''' – код экскурсии латиницей
+
*** '''Code''' – the key of the service
*** '''Unicode''' – код ISO экскурсии
+
*** '''AgeFrom''' – age «from»
*** '''CityID''' – идентификатор города
+
*** '''AgeTo''' – age «to»
*** '''RegionID''' – идентификатор региона
+
*** '''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)
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetExcursions>
+
       <meg:GetExtraServiceWithPrices>
         <meg:countryKey>5</meg:countryKey>
+
        <!--Optional:-->
         <meg:regionKey>5</meg:regionKey>
+
         <meg:guid>c80b29df-4110-4769-85a5-99ef5def023c</meg:guid>
        <meg:cityKey>5</meg:cityKey>
+
         <!--Optional:-->
       </meg:GetExcursions>
+
        <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:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExcursions
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetExcursionsResponse xmlns="http://www.megatec.ru/">
+
       <GetExtraServiceWithPricesResponse xmlns="http://www.megatec.ru/">
         <GetExcursionsResult>
+
         <GetExtraServiceWithPricesResult Message="Ok" Count="15">
             <Excursion>
+
             <Data>
               <Name>Exc21_01_2020</Name>
+
               <CostInfoWithAdHotDescription Id="7795829" SvKey="5" SpoId="2047" Code="471" AgeFrom="0" AgeTo="0" CreateDate="2021-07-26T18:20:02.52"
               <ID>670</ID>
+
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
              <Description/>
+
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"
              <NameLat>Exc21_01_2020</NameLat>
+
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="6" CityFromId="80" CityToId="0" TouroperatorId="1035" AdHotName="bonus" LinkType="Manual"
               <Code/>
+
DurationType="0"/>
              <CodeLat/>
+
               <CostInfoWithAdHotDescription Id="7807924" SvKey="5" SpoId="2029" Code="694" AgeFrom="0" AgeTo="0" CreateDate="2022-12-09T14:24:52.333"
              <Unicode/>
+
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
               <CityID>5</CityID>
+
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"
              <RegionID>16</RegionID>
+
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Сейф в номере" LinkType="Manual"
             </Excursion>
+
DurationType="0"/>
         </GetExcursionsResult>
+
               <CostInfoWithAdHotDescription Id="7805052" SvKey="5" SpoId="2136" Code="716" AgeFrom="0" AgeTo="0" CreateDate="2022-01-05T17:16:53.75"
       </GetExcursionsResponse>
+
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:Body>
</soap:Envelope>
 
 
</soap:Envelope>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Строка 4256: Строка 4535:
 
</div></div><br />
 
</div></div><br />
  
===GetServiceList (Получение списка дополнительных услуг)===
+
===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 />
Возвращаемый результат:<br />
+
Accepted request parameters ( '''*''' – required):
* '''GetServiceListResult''' – результаты выдачи
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
** '''ServiceList''' – массив данных
+
* '''SvKey *''' – the service type key
*** '''AdditionalParams''' – дополнительные параметры
+
* '''СountryKey *''' – the country key
**** '''Key''' – ключ
+
* '''Сode *''' – the service key
**** '''Value''' – значение
+
* '''Subcode1 *''' – the price parameter depending on the type of service (for accommodation – the room type key, for transfer – TransferType)
*** '''Name''' – название дополнительной услуги
+
* '''Subcode2 *''' – price parameter depending on the type of service (for accommodation – the pansion key, for transfer – the starting point)
*** '''ID''' – идентификатор дополнительной услуги
+
* '''Subcode3 *''' – the price parameter depending on the type of service (for accommodation – the room category key, for transfer – the end point)
*** '''NameLat''' – название дополнительной услуги латиницей
+
* '''Subcode4 *''' – the price parameter depending on the type of service (for accommodation – the accommodation)
*** '''Code''' – код дополнительной услуги
+
* '''TourOperatorGroupKey *''' – the key of the tour operator's grou
*** '''CodeLat''' – код дополнительной услуги латиницей
+
* '''TourOperatorKey *''' – the key of the tour operator (seller)
*** '''Unicode''' – код ISO дополнительной услуги
+
* '''MrKey *''' – the market key
*** '''ServiceClaseID''' – идентификатор класса дополнительной услуги
+
* '''FilialKey *''' – the branch key
*** '''CountryID''' – идентификатор страны дополнительной услуги
+
* '''TafiffKey *''' – the tariff key
+
* '''Pax *''' – Pax by service
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
* '''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:<br />
 +
* '''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)
 +
 
 +
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetServiceList/>
+
       <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:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetServiceList
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetServiceListResponse xmlns="http://www.megatec.ru/">
+
       <CalculateSingleCostResponse xmlns="http://www.megatec.ru/">
         <GetServiceListResult>
+
         <CalculateSingleCostResult>
             <ServiceList>
+
             <Brutto>50.0000</Brutto>
               <AdditionalParams>
+
            <ProviderKey>2943</ProviderKey>
                   <ParameterPair Key="CountryKey">
+
            <IsCalcBrutto>false</IsCalcBrutto>
                    <Value xsi:type="xsd:int">0</Value>
+
            <CancellationPolicies>
                   </ParameterPair>
+
               <CancellationPolicyData>
                   <ParameterPair Key="CityKey">
+
                   <PolicyKey>151</PolicyKey>
                    <Value xsi:type="xsd:int">0</Value>
+
                  <DateFrom>2021-08-25T00:00:00</DateFrom>
                   </ParameterPair>
+
                  <DateTo>2021-08-27T00:00:00</DateTo>
              </AdditionalParams>
+
                   <PenaltyValue>3</PenaltyValue>
               <Name>Extra service class\Cancellation penalty</Name>
+
                   <IsPercent>false</IsPercent>
              <ID>10</ID>
+
              </CancellationPolicyData>
              <NameLat/>
+
              <CancellationPolicyData>
              <Code/>
+
                  <PolicyKey>149</PolicyKey>
              <CodeLat/>
+
                  <DateFrom>2021-08-27T00:00:00</DateFrom>
              <Unicode/>
+
                  <DateTo>2021-08-31T00:00:00</DateTo>
              <ServiceClaseID>1</ServiceClaseID>
+
                   <PenaltyValue>4</PenaltyValue>
              <CountryID>0</CountryID>
+
                  <IsPercent>false</IsPercent>
            </ServiceList>
+
               </CancellationPolicyData>
            <ServiceList>
+
              </CancellationPolicies>
              <AdditionalParams>
+
        </CalculateSingleCostResult>
                  <ParameterPair Key="CountryKey">
+
      </CalculateSingleCostResponse>
                    <Value xsi:type="xsd:int">0</Value>
+
  </soap:Body>
                  </ParameterPair>
+
</soap:Envelope>
                  <ParameterPair Key="CityKey">
+
</syntaxhighlight>
                    <Value xsi:type="xsd:int">0</Value>
+
</TD></TR></TABLE>
                  </ParameterPair>
+
</div></div><br />
               </AdditionalParams>
+
 
               <Name>Shop Tour\Shop Tour With Terms</Name>
+
==Methods of working with dictionaries==
               <ID>15</ID>
+
 
 +
===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:<br />
 +
* '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The Invocation of method GetRegions
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result of method GetRegions
 +
<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: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/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>TRS</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
              <ServiceClaseID>4</ServiceClaseID>
+
               <CountryID>10</CountryID>
               <CountryID>0</CountryID>
+
             </Region>
             </ServiceList>
+
        </GetRegionsResult>
          </GetServiceListResult>
+
       </GetRegionsResponse>
       </GetServiceListResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4336: Строка 4714:
 
</div></div><br />
 
</div></div><br />
  
===GetExtraServices (Получение списка дополнительных услуг включая услуги типа AdHot)===
+
===GetCities (Receiving the list of the cities)===
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot.<br />
+
The method returns a list of cities.
Принимаемые параметры запроса ( * – обязательный):<br />
+
Accepted request parameters ( '''*''' – required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''СountryKey *''' – country ID (-1 for all)
* '''Request''' – объект с параметрами запроса
+
* '''RegionKey *''' – region ID (-1 for all)
** '''ServiceClassKey *''' – ключ класса дополнительной услуги (-1 для всех)
+
The returning result:
** '''СountryKey *''' – ключ страны дополнительной услуги (-1 для всех)
+
* '''GetCitiesResult''' – the search result
** '''СityKey *''' – ключ города  для AdHot (-1 для всех)
+
** '''City''' – an array of the data
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
+
*** '''Name''' – the name of the city
** '''RegionKey *''' – ключ региона (-1 для всех)
+
*** '''ID''' – ID of the city
** '''TypeKey *''' – тип AdHot (-1 – для всех, 1 – Manual, 2 – HardLink, 3 – WithCosts)
+
*** '''Description''' – the description of the city
Возвращаемый результат:<br />
+
*** '''NameLat''' – the name of the city in Latin
* '''GetExtraServicesResult''' – результаты выдачи
+
*** '''Code''' – the city code
** '''ExtraServiceInfo''' – массив данных
+
*** '''CodeLat''' – the city code in Latin
*** '''Id''' – идентификатор дополнительной услуги
+
*** '''Unicode''' – the ISO code of the city
*** '''Name''' – название дополнительной услуги
+
*** '''CountryID''' – ID of the city
*** '''Description''' – описание  дополнительной услуги
+
*** '''RegionID''' – the region ID
*** '''ServiceClassId''' – идентификатор класса дополнительной услуги
 
*** '''IsWeb''' – доступность дополнительной услуги в онлайн
 
*** '''DurationType''' – c продолжительностью или без (1 – с продолжительностью)
 
*** '''UpdateDate''' – дата последнего обновления дополнительной услуги
 
*** '''IsPartnerLikeHotel''' – партнер у AdHot  такой же как и у проживания
 
*** '''LinkType''' – тип AdHot (1 - Manual, 2 – HardLink, 3 - WithCosts)
 
*** '''IsAddHot''' – является ли услуга AdHot (true – является, false – не является)
 
*** '''CountryList''' – список ключей стран для AdHot (если коллекция пустая – значит для всех)
 
*** '''CityList''' – список ключей городов для AdHot (если коллекция пустая – значит для всех)
 
*** '''HotelList''' – список ключей отелей для AdHot (если коллекция пустая – значит для всех)
 
*** '''RoomTypeList''' – список ключей типов комнат для AdHot (если коллекция пустая – значит для всех)
 
*** '''RoomCategoryList''' – список ключей категорий комнат для AdHot (если коллекция пустая – значит для всех)
 
*** '''AccommodationList''' – список ключей размещений для AdHot (если коллекция пустая – значит для всех)
 
*** '''HotelLinkTypeList''' – список переопределений типа AdHot для отелей
 
**** '''HotelLinkTypeEx''' – переопределение типа AdHot для отеля
 
***** '''HotelId''' – ключ отеля
 
***** '''ExtraServiceLinkType''' – переопределенный тип AdHot (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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetExtraServices>
+
       <meg:GetCities>
        <!--Optional:-->
+
         <meg:countryKey>10</meg:countryKey>
         <meg:guid>e7f7b188-611b-4a01-bcff-b7117c222e1f</meg:guid>
+
         <meg:regionKey>10</meg:regionKey>
         <!--Optional:-->
+
       </meg:GetCities>
        <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:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServices
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetExtraServicesResponse xmlns="http://www.megatec.ru/">
+
       <GetCitiesResponse xmlns="http://www.megatec.ru/">
         <GetExtraServicesResult Message="Ok">
+
         <GetCitiesResult>
             <Data>
+
             <City>
               <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">
+
               <Name>Katerini</Name>
                  <CountryList/>
+
              <ID>153</ID>
                  <CityList/>
+
              <Description/>
                  <HotelList/>
+
              <NameLat/>
                  <RoomTypeList/>
+
              <Code>KTR</Code>
                  <RoomCategoryList/>
+
              <CodeLat/>
                  <AccommodationList/>
+
               <Unicode/>
                  <HotelLinkTypeList>
+
               <CountryID>4</CountryID>
                    <HotelLinkTypeEx HotelId="2830" ExtraServiceLinkType="1"/>
+
              <RegionID>10</RegionID>
                  </HotelLinkTypeList>
+
            </City>
               </ExtraServiceInfo>
+
            <City>
               <ExtraServiceInfo Id="433" Name="111111111111111" ServiceClassId="36" IsWeb="true" DurationType="0" UpdateDate="2018-09-19T10:52:06.937" IsPartnerLikeHotel="false" LinkType="1" IsAddHot="true">
+
              <Name>Leptokaria</Name>
                  <CountryList/>
+
               <ID>24</ID>
                  <CityList/>
+
               <Description/>
                  <HotelList/>
+
              <NameLat/>
                  <RoomTypeList/>
+
              <Code>LPK</Code>
                  <RoomCategoryList/>
+
              <CodeLat/>
                  <AccommodationList/>
+
              <Unicode/>
                  <HotelLinkTypeList/>
+
              <CountryID>4</CountryID>
               </ExtraServiceInfo>
+
              <RegionID>10</RegionID>
               <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">
+
            </City>
                  <CountryList/>
+
         </GetCitiesResult>
                  <CityList/>
+
       </GetCitiesResponse>
                  <HotelList/>
 
                  <RoomTypeList/>
 
                  <RoomCategoryList/>
 
                  <AccommodationList/>
 
                  <HotelLinkTypeList>
 
                    <HotelLinkTypeEx HotelId="2821" ExtraServiceLinkType="1"/>
 
                  </HotelLinkTypeList>
 
              </ExtraServiceInfo>
 
            </Data>
 
         </GetExtraServicesResult>
 
       </GetExtraServicesResponse>
 
 
   </soap:Body>
 
   </soap:Body>
</soap:Envelope>
 
 
</soap:Envelope>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Строка 4442: Строка 4783:
 
</div></div><br />
 
</div></div><br />
  
===GetExtraServiceWithPrices (Получение списка дополнительных услуг включая услуги типа AdHot с ценами)===
+
===GetCountries (Receiving the list of the countries)===
Метод возвращает список дополнительных услуг, в том числе и услуги типа AdHot с ценами.<br />
+
The method returns a list of countries.<br />
Принимаемые параметры запроса ( * – обязательный):<br />
+
The returning result:<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''GetCountriesResult''' – the search result
* '''Request''' – объект с параметрами запроса
+
** '''Country''' – the an array of the data
** '''HotelKey *''' – ключ отеля для AdHot (-1 для всех)
+
*** '''Name''' – the name of the country
** '''DateFrom''' – дата действия от
+
*** '''ID''' – the country ID
** '''DateTo''' – дата действия до
+
*** '''Description''' – the description of the country
Возвращаемый результат:<br />
+
*** '''NameLat''' – the name of the country in Latin
* '''GetExtraServiceWithPricesResult Message="Ok">
+
*** '''Code''' – the country code
** '''CostInfo''' – массив данных
+
*** '''CodeLat''' – the country code in Latin
*** '''Id''' – ключ цены
+
*** '''Unicode''' – the ISO code of the country
*** '''SvKey''' – ключ типа услуги
+
*** '''IsIncoming''' – the parameter for internal use
*** '''SpoId''' – идентификатор SPO
 
*** '''Code''' – ключ услуги
 
*** '''AgeFrom''' – возраст «с»
 
*** '''AgeTo''' – возраст «по»
 
*** '''CreateDate''' – дата создания цены
 
*** '''CheckInDateBegin''' – дата заезда «с»
 
*** '''CheckInDateEnd''' – дата заезда «до»
 
*** '''CheckOutDateBegin''' – дата выезда «с»
 
*** '''CheckOutDateEnd''' – дата выезда «до»
 
*** '''DateBegin''' – дата действия цены «с»
 
*** '''DateEnd''' – дата действия цены «до»
 
*** '''UpdateDate''' – последняя дата обновления цены
 
*** '''Price''' – значение цены
 
*** '''Rate''' – валюта
 
*** '''SubCode1''' – параметр цены в зависимости от типа услуги (для проживания – ключ типа номера, для трансфера – TransferType, для Adhot – ключ типа комнаты)
 
*** '''SubCode2''' – параметр цены в зависимости от типа услуги (для проживания – ключ питания, для трансфера – точка начала, для Adhot – ключ отеля)
 
*** '''SubCode3''' – параметр цены в зависимости от типа услуги (для проживания – ключ категории номера, для трансфера – точка окончания, для Adhot – ключ категории комнаты)
 
*** '''SubCode4''' – параметр цены в зависимости от типа услуги (для проживания – размещение, для Adhot – размещение)
 
*** '''TariffId''' – ключ тарифа
 
*** '''Type''' – тип цены (1 – групповая, 0 – негрупповая. Для отеля за комнату или за человека.)
 
*** '''CountryId''' – ключ страны услуги
 
*** '''CityFromId''' – ключ города услуги
 
*** '''CityToId''' – ключ города услуги «куда» (для трансферов)
 
*** '''TouroperatorId''' – ключ туроператора
 
*** '''AdHotName''' – название доп. услуги в отеле
 
*** '''LinkType''' – тип доп. услуги в отеле: 1 - Manual (услуга, добавляемая по желанию), 2 – HardLink (обязательная услуга в отеле), 3 - WithCosts (обязательная услуга, добавляемая при наличии цены в период бронирования отеля)
 
*** '''DurationType''' – услуга c продолжительностью или без (1 – цена указана за сутки, 0 - цена указана за весь период проживания)
 
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetExtraServiceWithPrices>
+
       <meg:GetCountries/>
        <!--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:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetExtraServicesWithPrices
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetExtraServiceWithPricesResponse xmlns="http://www.megatec.ru/">
+
       <GetCountriesResponse xmlns="http://www.megatec.ru/">
         <GetExtraServiceWithPricesResult Message="Ok" Count="15">
+
         <GetCountriesResult>
             <Data>
+
             <Country>
               <CostInfoWithAdHotDescription Id="7795829" SvKey="5" SpoId="2047" Code="471" AgeFrom="0" AgeTo="0" CreateDate="2021-07-26T18:20:02.52"
+
               <Name>Azerbaijan</Name>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
              <ID>19</ID>
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"
+
              <Description/>
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="6" CityFromId="80" CityToId="0" TouroperatorId="1035" AdHotName="bonus" LinkType="Manual"
+
              <NameLat/>
DurationType="0"/>
+
               <Code/>
               <CostInfoWithAdHotDescription Id="7807924" SvKey="5" SpoId="2029" Code="694" AgeFrom="0" AgeTo="0" CreateDate="2022-12-09T14:24:52.333"
+
              <CodeLat/>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
              <Unicode/>
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"
+
              <IsIncoming>false</IsIncoming>
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Сейф в номере" LinkType="Manual"
+
            </Country>
DurationType="0"/>
+
            <Country>
               <CostInfoWithAdHotDescription Id="7805052" SvKey="5" SpoId="2136" Code="716" AgeFrom="0" AgeTo="0" CreateDate="2022-01-05T17:16:53.75"
+
               <Name>Belarus</Name>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
              <ID>7</ID>
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"
+
              <Description/>
SubCode3="0" SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Maska dinners" LinkType="Manual"
+
              <NameLat/>
DurationType="0"/>
+
              <Code/>
               <CostInfoWithAdHotDescription Id="7809780" SvKey="5" SpoId="2604" Code="726" AgeFrom="0" AgeTo="0" CreateDate="2023-02-15T12:29:03.747"
+
               <CodeLat/>
CheckInDateBegin="0001-01-01T00:00:00" CheckInDateEnd="0001-01-01T00:00:00" CheckOutDateBegin="0001-01-01T00:00:00" CheckOutDateEnd="0001-01-01T00:00:00"
+
              <Unicode/>
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"
+
              <IsIncoming>false</IsIncoming>
SubCode4="0" TariffId="0" Type="0" CountryId="0" CityFromId="0" CityToId="0" TouroperatorId="1035" AdHotName="Такса (Тунис)" LinkType="Manual" DurationType="1"/>
+
            </Country>
             </Data>
+
             </Country>
         </GetExtraServiceWithPricesResult>
+
         </GetCountriesResult>
       </GetExtraServiceWithPricesResponse>
+
       </GetCountriesResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4539: Строка 4844:
 
</div></div><br />
 
</div></div><br />
  
===CalculateSingleCost (Расчет стоимости услуги по ее параметрам стандартным механизмом расчета)===
+
===GetRoomType (Receiving the list of the room types)===
Метод рассчитывает стоимость услуги по ее параметрам стандартным механизмом расчета.<br />
+
The method returns a list of room types.<br />
Принимаемые параметры запроса ( * – обязательный):
+
The returning result:<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''GetRoomTypeResult''' – the search result
* '''SvKey *''' – ключ типа услуги
+
** '''RoomType''' – an array of the data
* '''СountryKey *''' – ключ страны
+
*** '''Name''' – the name of the room type
* '''Сode *''' – ключ услуги
+
*** '''ID''' – ID of the room type
* '''Subcode1 *''' – параметр цены в зависимости от типа услуги (для проживания – ключ типа номера, для трансфера – TransferType)
+
*** '''Description''' – the description of the room type
* '''Subcode2 *''' – параметр цены в зависимости от типа услуги (для проживания – ключ питания, для трансфера – точка начала)
+
*** '''NameLat''' – the name of the room type
* '''Subcode3 *''' – параметр цены в зависимости от типа услуги (для проживания – ключ категории номера, для трансфера – точка окончания)
+
*** '''Code''' – the room type code
* '''Subcode4 *''' – параметр цены в зависимости от типа услуги (для проживания – размещение)
+
*** '''CodeLat''' – the room type code in Latin
* '''TourOperatorGroupKey *''' – ключ группы туроператора
+
*** '''Unicode''' – the ISO code of the room type
* '''TourOperatorKey *''' – ключ туроператора (продавца)
+
*** '''Places''' – the number of main places
* '''MrKey *''' – ключ рынка
+
*** '''ExPlaces''' – the number of additional seats
* '''FilialKey *''' – ключ филиала
+
*** '''PrintOrder''' – the number of additional seats
* '''TafiffKey *''' – ключ тарифа
+
 
* '''Pax *''' – Pax по услуге
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
* '''Ages *''' – список с возрастами детей
 
* '''CheckInDate *''' – дата «с»
 
* '''CheckOutDate *''' – дата «по»
 
* '''CityKey *''' – ключ города
 
* '''CityKeyTo *''' – ключ города «куда»
 
* '''Rate *''' – код валюты
 
* '''PricePerRoom *''' – за комнату или за человека
 
* '''OnlyPublished *''' – учитывать только опубликованные цены
 
* '''ServiceProviderKey *''' – ключ поставщика услуги
 
Возвращаемый результат:<br />
 
* '''CalculateSingleCostResult''' – результаты выдачи
 
** '''Brutto''' – рассчитанная брутто цена
 
** '''ProviderKey''' – ключ поставщика услуги
 
** '''IsCalcBrutto'''
 
** '''CancellationPolicies''' – Политика аннуляции
 
** '''PolicyKey''' – ключ политики
 
** '''DateFrom''' – дата "от"
 
** '''DateTo''' – дата "до"
 
** '''PenaltyValue''' – значение штрафа
 
** '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
 
<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>
Вызов метода CalculateSingleCost
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:CalculateSingleCost>
+
       <meg:GetRoomType/>
        <!--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:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CalculateSingleCost
+
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">
 +
  <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>
 
   <soap:Body>
       <CalculateSingleCostResponse xmlns="http://www.megatec.ru/">
+
       <GetRoomTypeResponse xmlns="http://www.megatec.ru/">
         <CalculateSingleCostResult>
+
         <GetRoomTypeResult>
             <Brutto>50.0000</Brutto>
+
             <RoomType>
             <ProviderKey>2943</ProviderKey>
+
              <Name>NOVALUE</Name>
            <IsCalcBrutto>false</IsCalcBrutto>
+
              <ID>0</ID>
            <CancellationPolicies>
+
              <Description/>
               <CancellationPolicyData>
+
              <NameLat/>
                  <PolicyKey>151</PolicyKey>
+
              <Code>-</Code>
                  <DateFrom>2021-08-25T00:00:00</DateFrom>
+
              <CodeLat/>
                  <DateTo>2021-08-27T00:00:00</DateTo>
+
              <Unicode/>
                  <PenaltyValue>3</PenaltyValue>
+
              <Places>0</Places>
                  <IsPercent>false</IsPercent>
+
              <ExPlaces>0</ExPlaces>
               </CancellationPolicyData>
+
              <PrintOrder>0</PrintOrder>
               <CancellationPolicyData>
+
             </RoomType>
                  <PolicyKey>149</PolicyKey>
+
            <RoomType>
                  <DateFrom>2021-08-27T00:00:00</DateFrom>
+
              <Name>10</Name>
                  <DateTo>2021-08-31T00:00:00</DateTo>
+
              <ID>876</ID>
                  <PenaltyValue>4</PenaltyValue>
+
              <Description>111</Description>
                  <IsPercent>false</IsPercent>
+
               <NameLat/>
               </CancellationPolicyData>
+
              <Code>111</Code>
              </CancellationPolicies>
+
              <CodeLat/>
        </CalculateSingleCostResult>
+
              <Unicode/>
       </CalculateSingleCostResponse>
+
              <Places>111</Places>
   </soap:Body>
+
              <ExPlaces>0</ExPlaces>
</soap:Envelope>
+
              <PrintOrder>0</PrintOrder>
</syntaxhighlight>
+
            </RoomType>
</TD></TR></TABLE>
+
            <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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
  
==Методы работы со справочниками==
+
===GetRoomCategories (Receiving the list of the room categories)===
 +
The method returns a list of room categories.<br />
 +
The returning result:<br />
 +
* '''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
  
===GetRegions (Получение списка регионов)===
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
Метод возвращает список регионов.
 
Принимаемые параметры запроса (* – обязательный):
 
* '''СountryKey *''' – идентификатор страны (-1 для всех)<br />
 
Возвращаемый результат:<br />
 
* '''GetRegionsResult''' – результат поиска
 
** '''Region''' – массив данных
 
*** '''Name''' – название региона
 
*** '''ID''' – идентификатор региона
 
*** '''Description''' – описание региона
 
*** '''NameLat''' – наименование региона латиницей
 
*** '''Code''' – код региона
 
*** '''CodeLat''' – код региона латиницей
 
*** '''Unicode''' – код ISO региона
 
*** '''CountryID''' – идентификатор страны
 
 
 
<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>
Вызов метода GetRegions
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRegions>
+
       <meg:GetRoomCategories/>
        <meg:countryKey>10</meg:countryKey>
 
      </meg:GetRegions>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRegions
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetRegionsResponse xmlns="http://www.megatec.ru/">
+
       <GetRoomCategoriesResponse xmlns="http://www.megatec.ru/">
         <GetRegionsResult>
+
         <GetRoomCategoriesResult>
             <Region>
+
             <RoomCategory>
               <Name>Chisinau</Name>
+
               <Name>-</Name>
               <ID>18</ID>
+
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
              <Code>KIV</Code>
 
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <CountryID>10</CountryID>
+
               <MainPlaces>0</MainPlaces>
             </Region>
+
              <ExtraPlaces>0</ExtraPlaces>
             <Region>
+
              <IsMain>false</IsMain>
               <Name>Tiraspol</Name>
+
             </RoomCategory>
               <ID>109</ID>
+
             <RoomCategory>
 +
               <Name>!!!</Name>
 +
               <ID>304</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code>TRS</Code>
+
               <Code>1</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <CountryID>10</CountryID>
+
               <MainPlaces>0</MainPlaces>
            </Region>
+
              <ExtraPlaces>0</ExtraPlaces>
         </GetRegionsResult>
+
              <IsMain>false</IsMain>
       </GetRegionsResponse>
+
            </RoomCategory>
 +
         </GetRoomCategoriesResult>
 +
       </GetRoomCategoriesResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4717: Строка 4988:
 
</div></div><br />
 
</div></div><br />
  
===GetCities (Получение списка городов)===
+
===GetPansions (Receiving the list of the pansion types)===
Метод возвращает список городов.
+
The method returns a list of types of meals.<br />
Принимаемые параметры запроса (* – обязательный):
+
The returning result:<br />
* '''СountryKey *''' – идентификатор страны (-1 для всех)<br />
+
* '''GetPansionsResult''' – the search result
* '''RegionKey *''' – идентификатор региона (-1 для всех)<br />
+
** '''Pansion''' – the search result
Возвращаемый результат:<br />
+
*** '''Name''' – the name of the pansion type
* '''GetCitiesResult''' – результат поиска
+
*** '''ID''' – ID of the type of pansion
** '''City''' – массив данных
+
*** '''Description''' – the description of the type of pansion
*** '''Name''' – название города
+
*** '''NameLat''' – the name of the type of pansion in Latin
*** '''ID''' – идентификатор города
+
*** '''Code''' – the code of the type of pansion
*** '''Description''' – описание города
+
*** '''CodeLat''' – the type of pansion code in Latin
*** '''NameLat''' – наименование города латиницей
+
*** '''Unicode''' – the ISO code of the pansion type
*** '''Code''' – код города
 
*** '''CodeLat''' – код города латиницей
 
*** '''Unicode''' – код ISO города
 
*** '''CountryID''' – идентификатор города
 
*** '''RegionID''' – идентификатор региона
 
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetCities>
+
       <meg:GetPansions/>
        <meg:countryKey>10</meg:countryKey>
 
        <meg:regionKey>10</meg:regionKey>
 
      </meg:GetCities>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCities
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetCitiesResponse xmlns="http://www.megatec.ru/">
+
       <GetPansionsResponse xmlns="http://www.megatec.ru/">
         <GetCitiesResult>
+
         <GetPansionsResult>
             <City>
+
             <Pansion>
               <Name>Katerini</Name>
+
               <Name>&lt;Not defined></Name>
               <ID>153</ID>
+
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code>KTR</Code>
+
               <Code>ND</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
              <CountryID>4</CountryID>
+
             </Pansion>
              <RegionID>10</RegionID>
+
             <Pansion>
             </City>
+
               <Name>Full Board</Name>
             <City>
+
               <ID>1</ID>
               <Name>Leptokaria</Name>
 
               <ID>24</ID>
 
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code>LPK</Code>
+
               <Code>FB</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <CountryID>4</CountryID>
+
            </Pansion>
               <RegionID>10</RegionID>
+
            <Pansion>
             </City>
+
              <Name>All Inclusive</Name>
        </GetCitiesResult>
+
              <ID>2</ID>
       </GetCitiesResponse>
+
              <Description/>
 +
               <NameLat/>
 +
              <Code>AL</Code>
 +
               <CodeLat/>
 +
              <Unicode/>
 +
             </Pansion>
 +
        </GetPansionsResult>
 +
       </GetPansionsResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4786: Строка 5054:
 
</div></div><br />
 
</div></div><br />
  
===GetCountries (Получение списка стран)===
+
===GetRatings (Receiving an array of hotel categories (hotel stars))===
Метод возвращает список стран.<br />
+
The method returns an array of hotel categories.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetCountriesResult''' – результат поиска
+
* '''GetRatingsResult''' – the search result
** '''Country''' – массив данных
+
** '''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я
*** '''IsIncoming''' – параметр для внутреннего использования
 
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetCountries/>
+
       <meg:GetRatings/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCountries
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetCountriesResponse xmlns="http://www.megatec.ru/">
+
       <GetRatingsResponse xmlns="http://www.megatec.ru/">
         <GetCountriesResult>
+
         <GetRatingsResult>
             <Country>
+
             <HotelCategory>
               <Name>Azerbaijan</Name>
+
               <Name>Not defined</Name>
               <ID>19</ID>
+
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
Строка 4826: Строка 5093:
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
              <IsIncoming>false</IsIncoming>
+
             </HotelCategory>
             </Country>
+
             <HotelCategory>
             <Country>
+
               <Name>5 stars (Deluxe)</Name>
               <Name>Belarus</Name>
+
               <ID>2</ID>
               <ID>7</ID>
 
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
Строка 4836: Строка 5102:
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
              <IsIncoming>false</IsIncoming>
+
             </HotelCategory>
            </Country>
+
         </GetRatingsResult>
             </Country>
+
       </GetRatingsResponse>
         </GetCountriesResult>
 
       </GetCountriesResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4847: Строка 5111:
 
</div></div><br />
 
</div></div><br />
  
===GetRoomType (Получение списка типов комнат)===
+
===GetFlights (Receiving the list of the regions)===
Метод возвращает список типов комнат.<br />
+
The method returns a list of flights.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRoomTypeResult''' – результат поиска
+
* '''GetFlightsResult''' – the search result
** '''RoomType''' – массив данных
+
** '''Flight''' – an array of the data
*** '''Name''' – название типа комнаты
+
*** '''AirportFrom''' – the transfer hub at the departure point
*** '''ID''' – идентификатор типа комнаты
+
**** '''Name''' – the name of the transfer node from the [[Master-Interlook:Справочники. Flight numbers|Flight numbers]] dictionary
*** '''Description''' – описание типа комнаты
+
**** '''ID''' – ID of the city of the transfer node
*** '''NameLat''' – наименование типа комнаты
+
**** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|Pickup point list]] dictionary
*** '''Code''' – код типа комнаты
+
**** '''NameLat''' – the name of the transfer node
*** '''CodeLat''' – код типа комнаты латиницей
+
**** '''Code''' – the code of the transfer node
*** '''Unicode''' – код ISO типа комнаты
+
**** '''CodeLat''' – the code of the transfer node in Latin
*** '''Places''' – количество основных мест
+
**** '''Unicode''' – the ISO code of the transfer node
*** '''ExPlaces''' – количество дополнительных мест
+
**** '''RegionID''' – ID of the region of the transfer node location
*** '''PrintOrder''' – печать отчета
+
**** '''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 [[Master-Interlook:Справочники. Flight numbers|Flight numbers]] dictionary
 +
**** '''ID''' – ID of the city of the transfer node
 +
**** '''Description''' – the name of the city of the transfer node from the [[Master-Interlook:Справочники. Pickup point list|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
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRoomType/>
+
       <meg:GetFlights/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomType
+
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">
  <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>
 
   <soap:Body>
       <GetRoomTypeResponse xmlns="http://www.megatec.ru/">
+
       <GetFlightsResponse xmlns="http://www.megatec.ru/">
         <GetRoomTypeResult>
+
         <GetFlightsResult>
             <RoomType>
+
             <Flight>
               <Name>NOVALUE</Name>
+
               <AirportFrom>
              <ID>0</ID>
+
                  <Name>Makedonia</Name>
              <Description/>
+
                  <ID>1000001</ID>
              <NameLat/>
+
                  <Description>Thessaloniki</Description>
              <Code>-</Code>
+
                  <NameLat/>
              <CodeLat/>
+
                  <Code/>
              <Unicode/>
+
                  <CodeLat/>
              <Places>0</Places>
+
                  <Unicode/>
              <ExPlaces>0</ExPlaces>
+
                  <RegionID>7</RegionID>
               <PrintOrder>0</PrintOrder>
+
                  <CityID>12</CityID>
            </RoomType>
+
               </AirportFrom>
            <RoomType>
+
              <AirportTo>
              <Name>10</Name>
+
                  <Name>Makedonia</Name>
              <ID>876</ID>
+
                  <ID>1000001</ID>
              <Description>111</Description>
+
                  <Description>Thessaloniki</Description>
              <NameLat/>
+
                  <NameLat/>
              <Code>111</Code>
+
                  <Code/>
              <CodeLat/>
+
                  <CodeLat/>
              <Unicode/>
+
                  <Unicode/>
              <Places>111</Places>
+
                  <RegionID>7</RegionID>
              <ExPlaces>0</ExPlaces>
+
                  <CityID>12</CityID>
               <PrintOrder>0</PrintOrder>
+
               </AirportTo>
            </RoomType>
+
              <TimeFrom>2021-08-31T00:00:00+04:00</TimeFrom>
            <RoomType>
+
               <TimeTo>2021-08-31T00:00:00+04:00</TimeTo>
               <Name>33444</Name>
+
               <DateFrom>2021-08-31T00:00:00+04:00</DateFrom>
               <ID>915</ID>
+
               <DateTo>2021-08-31T00:00:00+04:00</DateTo>
               <Description>12</Description>
+
               <IsArrival>false</IsArrival>
              <NameLat/>
+
               <Available>No</Available>
               <Code>1123</Code>
+
               <ID>4</ID>
               <CodeLat/>
+
               <Name/>
              <Unicode/>
+
               <Number>NN 283/284 00:01</Number>
               <Places>1</Places>
+
             </Flight>
               <ExPlaces>0</ExPlaces>
+
        </GetFlightsResult>
               <PrintOrder>0</PrintOrder>
+
       </GetFlightsResponse>
             </RoomType>
 
          </GetRoomTypeResult>
 
       </GetRoomTypeResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4926: Строка 5208:
 
</div></div><br />
 
</div></div><br />
  
=== GetRoomCategories (Получение списка категорий комнат)===
+
===GetAirport (Receiving the list of the transfer nodes)===
Метод возвращает список категорий комнат.<br />
+
The method returns a list of transfer nodes.<br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRoomCategoriesResult''' – результат поиска
+
* '''GetFlightsResult''' – the search result
** '''RoomCategory''' – массив данных
+
** '''Airport''' – an array of the data
*** '''Name''' – название категории комнаты
+
*** '''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''' – описание категории комнаты
+
*** '''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
*** '''MainPlaces''' – количество основных мест
+
*** '''RegionID''' – ID of the region of the transfer node location
*** '''ExtraPlaces''' – количество дополнительных мест
+
*** '''CityID''' – ID of the city where the transfer node is located
*** '''IsMain''' – параметр для внутреннего пользования
 
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRoomCategories/>
+
       <meg:GetAirport/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRoomCategories
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetRoomCategoriesResponse xmlns="http://www.megatec.ru/">
+
       <GetAirportResponse xmlns="http://www.megatec.ru/">
         <GetRoomCategoriesResult>
+
         <GetAirportResult>
             <RoomCategory>
+
             <Airport>
               <Name>-</Name>
+
               <Name>lalala</Name>
               <ID>0</ID>
+
               <ID>3</ID>
               <Description/>
+
               <Description>Moscow</Description>
 
               <NameLat/>
 
               <NameLat/>
 +
              <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <MainPlaces>0</MainPlaces>
+
               <RegionID>19</RegionID>
               <ExtraPlaces>0</ExtraPlaces>
+
               <CityID>87</CityID>
              <IsMain>false</IsMain>
+
             </Airport>
             </RoomCategory>
+
             <Airport>
             <RoomCategory>
+
               <Name>El.Venizelos</Name>
               <Name>!!!</Name>
+
               <ID>1004</ID>
               <ID>304</ID>
+
               <Description>Athens</Description>
               <Description/>
 
 
               <NameLat/>
 
               <NameLat/>
               <Code>1</Code>
+
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <MainPlaces>0</MainPlaces>
+
               <RegionID>38</RegionID>
               <ExtraPlaces>0</ExtraPlaces>
+
               <CityID>55</CityID>
              <IsMain>false</IsMain>
+
            </Airport>
            </RoomCategory>
+
         </GetAirportResult>
         </GetRoomCategoriesResult>
+
       </GetAirportResponse>
       </GetRoomCategoriesResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 4991: Строка 5271:
 
</div></div><br />
 
</div></div><br />
  
=== GetPansions (Получение списка типов питаний)===
+
===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 />
* '''GetPansionsResult''' – результат поиска
+
* '''GetProvidersResult''' – the search result
** '''Pansion''' – массив данных
+
** '''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''' – 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
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetPansions/>
+
       <meg:GetProviders/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetPansions
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetPansionsResponse xmlns="http://www.megatec.ru/">
+
       <GetProvidersResponse xmlns="http://www.megatec.ru/">
         <GetPansionsResult>
+
         <GetProvidersResult>
             <Pansion>
+
             <Partner>
               <Name>&lt;Not defined></Name>
+
               <Name>&lt;All></Name>
 
               <ID>0</ID>
 
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>&lt;All></NameLat>
               <Code>ND</Code>
+
               <Code>&lt;AL</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Pansion>
+
              <PartnersGroupID>0</PartnersGroupID>
             <Pansion>
+
              <FullName>&lt;All></FullName>
               <Name>Full Board</Name>
+
              <Fax/>
 +
              <Address/>
 +
              <Zip/>
 +
              <Email/>
 +
              <Phones/>
 +
             </Partner>
 +
             <Partner>
 +
               <Name>HOTEL CHANGE</Name>
 
               <ID>1</ID>
 
               <ID>1</ID>
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>HOTEL CHANGE</NameLat>
               <Code>FB</Code>
+
               <Code>HOT</Code>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
            </Pansion>
+
               <PartnersGroupID>0</PartnersGroupID>
            <Pansion>
+
               <FullName>HOTEL CHANGE</FullName>
               <Name>All Inclusive</Name>
+
               <Fax/>
               <ID>2</ID>
+
               <Address/>
               <Description/>
+
               <Zip/>
               <NameLat/>
+
               <Email/>
               <Code>AL</Code>
+
               <Phones/>
               <CodeLat/>
+
             </Partner>
               <Unicode/>
+
        </GetProvidersResult>
             </Pansion>
+
       </GetProvidersResponse>
        </GetPansionsResult>
 
       </GetPansionsResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5057: Строка 5349:
 
</div></div><br />
 
</div></div><br />
  
=== GetRatings (Получение массива категорий (звездностей) отелей)===
+
===GetTransports (Receiving the list of the vehicles)===
Метод возвращает массив категорий отелей.<br />
+
The method returns a list of vehicles. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetRatingsResult''' – результат поиска
+
* '''GetTransportsResult''' – the search result
** '''HotelCategory''' – массив данных
+
** '''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>
Вызов метода GetRatings
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRatings/>
+
       <meg:GetTransports/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRatings
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetRatingsResponse xmlns="http://www.megatec.ru/">
+
       <GetTransportsResponse xmlns="http://www.megatec.ru/">
         <GetRatingsResult>
+
         <GetTransportsResult>
             <HotelCategory>
+
             <Transport>
 
               <Name>Not defined</Name>
 
               <Name>Not defined</Name>
 
               <ID>0</ID>
 
               <ID>0</ID>
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>Not defined</NameLat>
 +
              <Code/>
 +
              <CodeLat/>
 +
              <Unicode/>
 +
            </Transport>
 +
            <Transport>
 +
              <Name>Bus</Name>
 +
              <ID>3</ID>
 +
              <Description/>
 +
              <NameLat>Bus</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </HotelCategory>
+
             </Transport>
             <HotelCategory>
+
             <Transport>
               <Name>5 stars (Deluxe)</Name>
+
               <Name>Minibus</Name>
               <ID>2</ID>
+
               <ID>4</ID>
 
               <Description/>
 
               <Description/>
               <NameLat/>
+
               <NameLat>Minibus</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </HotelCategory>
+
             </Transport>
         </GetRatingsResult>
+
         </GetTransportsResult>
       </GetRatingsResponse>
+
       </GetTransportsResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5114: Строка 5415:
 
</div></div><br />
 
</div></div><br />
  
=== GetFlights (Получение списка авиарейсов)===
+
===GetTransferTypes (Receiving the list of the transfer types)===
Метод возвращает список авиарейсов.<br />
+
The method returns a list of transfer types. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetFlightsResult''' – результат поиска
+
* '''GetTransferTypesResult''' – the search result
** '''Flight''' – массив данных
+
** '''Transport''' – an array of the data
*** '''AirportFrom''' – трансферный узел в пункте отбытия
+
*** '''Name''' – the name of the transfer
**** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
+
*** '''ID''' – the transfer ID
**** '''ID''' – идентификатор города трансферного узла
+
*** '''Description''' – the description of the transfer
**** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''NameLat''' – the name of the transfer in Latin
**** '''NameLat''' – наименование трансферного узла
+
*** '''Code''' – the transfer code
**** '''Code''' – код трансферного узла
+
*** '''CodeLat''' – transfer code in Latin
**** '''CodeLat''' – код трансферного узла латиницей
+
*** '''Unicode''' – the ISO code of the transfer
**** '''Unicode''' – код ISO трансферного узла
 
**** '''RegionID''' – идентификатор региона расположения трансферного узла
 
**** '''CityID''' – идентификатор города расположения трансферного узла
 
*** '''AirportTo''' – трансферный узел в пункте прибытия
 
**** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
**** '''ID''' – идентификатор города трансферного узла
 
**** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
 
**** '''NameLat''' – наименование трансферного узла
 
**** '''Code''' – код трансферного узла
 
**** '''CodeLat''' – код трансферного узла латиницей
 
**** '''Unicode''' – код ISO трансферного узла
 
**** '''RegionID''' – идентификатор региона расположения трансферного узла
 
**** '''CityID''' – идентификатор города расположения трансферного узла
 
*** '''TimeFrom''' – время от
 
*** '''TimeTo''' – время до
 
*** '''DateFrom''' – дата от
 
*** '''DateTo''' – дата до
 
*** '''IsArrival''' –
 
*** '''Available''' –
 
*** '''ID''' – идентификатор строки из таблицы '''Charter''' из БД
 
*** '''Name''' – наименование из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
*** '''Number''' – номер перелета из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
*** '''ArrivalFlightNumber''' – номер рейса прибытия из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
*** '''DepartureFlightNumber''' – номер рейса вылета из справочника [[Master-Interlook:Справочники. Flight numbers|Flight numbers]]
 
  
 
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
<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>
Вызов метода GetFlights
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetFlights/>
+
       <meg:GetTransferTypes/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetFlights
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetFlightsResponse xmlns="http://www.megatec.ru/">
+
       <GetTransferTypesResponse xmlns="http://www.megatec.ru/">
         <GetFlightsResult>
+
         <GetTransferTypesResult>
             <Flight>
+
             <Transport>
               <AirportFrom>
+
               <Name>Group</Name>
                  <Name>Makedonia</Name>
+
              <ID>2</ID>
                  <ID>1000001</ID>
+
              <Description/>
                  <Description>Thessaloniki</Description>
+
              <NameLat>Group</NameLat>
                  <NameLat/>
+
              <Code/>
                  <Code/>
+
              <CodeLat/>
                  <CodeLat/>
+
              <Unicode/>
                  <Unicode/>
+
            </Transport>
                  <RegionID>7</RegionID>
+
            <Transport>
                  <CityID>12</CityID>
+
               <Name>Ind Car</Name>
               </AirportFrom>
+
              <ID>3</ID>
              <AirportTo>
+
              <Description/>
                  <Name>Makedonia</Name>
+
              <NameLat>Ind Car</NameLat>
                  <ID>1000001</ID>
+
               <Code/>
                  <Description>Thessaloniki</Description>
+
               <CodeLat/>
                  <NameLat/>
+
               <Unicode/>
                  <Code/>
+
             </Transport>
                  <CodeLat/>
+
         </GetTransferTypesResult>
                  <Unicode/>
+
       </GetTransferTypesResponse>
                  <RegionID>7</RegionID>
+
   </soap:Body>
                  <CityID>12</CityID>
+
</soap:Envelope>
               </AirportTo>
+
</syntaxhighlight>
               <TimeFrom>2021-08-31T00:00:00+04:00</TimeFrom>
+
</TD></TR></TABLE>
               <TimeTo>2021-08-31T00:00:00+04:00</TimeTo>
+
</div></div><br />
              <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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
  
=== GetAirport (Получение списка трансферных узлов)===
+
===GetRates (Receiving the list of the currencies)===
Метод возвращает список трансферных узлов.<br />
+
The method returns a list of currencies. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetFlightsResult''' – результат поиска
+
* '''GetRatesResult''' – the search result
** '''Airport''' – массив данных
+
** '''Rate''' – an array of the data
*** '''Name''' – название трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''Name''' – the name of the currency
*** '''ID''' – идентификатор трансферного узла
+
*** '''ID''' – the currency ID
*** '''Description''' – название города трансферного узла из справочника [[Master-Interlook:Справочники. Pickup point list|Pickup point list]]
+
*** '''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
*** '''RegionID''' – идентификатор региона расположения трансферного узла
+
*** '''IsMain''' – the currency attribute "main"
*** '''CityID''' – идентификатор города расположения трансферного узла
+
*** '''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>
Вызов метода GetAirport
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetAirport/>
+
       <meg:GetRates/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetAirport
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetAirportResponse xmlns="http://www.megatec.ru/">
+
       <GetRatesResponse xmlns="http://www.megatec.ru/">
         <GetAirportResult>
+
         <GetRatesResult>
             <Airport>
+
             <Rate>
               <Name>lalala</Name>
+
               <Name>Euro</Name>
               <ID>3</ID>
+
               <ID>1</ID>
               <Description>Moscow</Description>
+
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>EU</Code>
 
               <CodeLat/>
 
               <CodeLat/>
               <Unicode/>
+
               <Unicode>EUR</Unicode>
               <RegionID>19</RegionID>
+
               <IsMain>false</IsMain>
               <CityID>87</CityID>
+
               <IsNational>false</IsNational>
             </Airport>
+
             </Rate>
             <Airport>
+
             <Rate>
               <Name>El.Venizelos</Name>
+
               <Name>US dollar</Name>
               <ID>1004</ID>
+
               <ID>2</ID>
               <Description>Athens</Description>
+
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>USD</Code>
 
               <CodeLat/>
 
               <CodeLat/>
               <Unicode/>
+
               <Unicode>USD</Unicode>
               <RegionID>38</RegionID>
+
               <IsMain>false</IsMain>
               <CityID>55</CityID>
+
               <IsNational>false</IsNational>
             </Airport>
+
             </Rate>
         </GetAirportResult>
+
         </GetRatesResult>
       </GetAirportResponse>
+
       </GetRatesResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5274: Строка 5535:
 
</div></div><br />
 
</div></div><br />
  
=== GetProviders (Получение списка партнеров, которые являются поставщиками услуг)===
+
===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 />
* '''GetProvidersResult''' – результат поиска
+
* '''GetServicePackageResult''' – the search result
** '''Partner''' – массив данных
+
** '''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
*** '''PartnersGroupID''' – идентификатор группы партнера
+
*** '''ServiceClaseID''' – ID of the additional service class
*** '''FullName''' – полное название партнера
+
*** '''CountryID''' – the key of the country of the option
*** '''Fax''' – факс партнера
 
*** '''Address''' – адрес партнера
 
*** '''Zip''' –  почтовый код партнера
 
*** '''Email''' – e-mail партнера
 
*** '''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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetProviders/>
+
       <meg:GetServicePackage/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetProviders
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetProvidersResponse xmlns="http://www.megatec.ru/">
+
       <GetServicePackageResponse xmlns="http://www.megatec.ru/">
         <GetProvidersResult>
+
         <GetServicePackageResult>
             <Partner>
+
             <ServiceList>
               <Name>&lt;All></Name>
+
               <Name>5 days in Antique Greece (4 nights)/DBL BB</Name>
               <ID>0</ID>
+
               <ID>21</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>&lt;All></NameLat>
+
               <NameLat/>
               <Code>&lt;AL</Code>
+
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
+
               <ServiceClaseID>0</ServiceClaseID>
               <FullName>&lt;All></FullName>
+
               <CountryID>4</CountryID>
              <Fax/>
+
             </ServiceList>
              <Address/>
+
             <ServiceList>
              <Zip/>
+
               <Name>5 days in Antique Greece (4 nights)/DBL HB</Name>
              <Email/>
+
               <ID>148</ID>
              <Phones/>
+
               <Description/>
             </Partner>
+
               <NameLat/>
             <Partner>
+
               <Code/>
               <Name>HOTEL CHANGE</Name>
 
               <ID>1</ID>
 
               <Description/>
 
               <NameLat>HOTEL CHANGE</NameLat>
 
               <Code>HOT</Code>
 
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
               <PartnersGroupID>0</PartnersGroupID>
+
               <ServiceClaseID>0</ServiceClaseID>
               <FullName>HOTEL CHANGE</FullName>
+
               <CountryID>4</CountryID>
              <Fax/>
+
             </ServiceList>
              <Address/>
+
         </GetServicePackageResult>
              <Zip/>
+
       </GetServicePackageResponse>
              <Email/>
 
              <Phones/>
 
             </Partner>
 
         </GetProvidersResult>
 
       </GetProvidersResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5352: Строка 5598:
 
</div></div><br />
 
</div></div><br />
  
=== GetTransports (Получение списка транспортных средств)===
+
===GetDLStatuses (Receiving the list of the service statuses)===
Метод возвращает список транспортных средств. <br />
+
The method returns the file status of the service. <br />
Возвращаемый результат:<br />
+
The returning result:<br />
* '''GetTransportsResult''' – результат поиска
+
* '''GetDLStatusesResult''' – the search result
** '''Transport''' – массив данных
+
** '''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>
Вызов метода GetTransports
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTransports/>
+
       <meg:GetDLStatuses/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransports
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetTransportsResponse xmlns="http://www.megatec.ru/">
+
       <GetDLStatusesResponse xmlns="http://www.megatec.ru/">
         <GetTransportsResult>
+
         <GetDLStatusesResult>
             <Transport>
+
             <StatusService>
               <Name>Not defined</Name>
+
               <Name>Wait</Name>
               <ID>0</ID>
+
               <ID>1</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Not defined</NameLat>
+
               <NameLat>Wait</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
             </StatusService>
             <Transport>
+
             <StatusService>
               <Name>Bus</Name>
+
               <Name>Confirmed</Name>
               <ID>3</ID>
+
               <ID>2</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Bus</NameLat>
+
               <NameLat>Confirmed</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
             </StatusService>
             <Transport>
+
             <StatusService>
               <Name>Minibus</Name>
+
               <Name>Not confirmed</Name>
 
               <ID>4</ID>
 
               <ID>4</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Minibus</NameLat>
+
               <NameLat>Not confirmed</NameLat>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
             </StatusService>
         </GetTransportsResult>
+
         </GetDLStatusesResult>
       </GetTransportsResponse>
+
       </GetDLStatusesResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5418: Строка 5664:
 
</div></div><br />
 
</div></div><br />
  
=== GetTransferTypes (Получение списка типов трансферов)===
+
===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 />
Возвращаемый результат:<br />
+
Accepted request parameters ( '''*''' – required):
* '''GetTransferTypesResult''' – результат поиска
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
** '''Transport''' – массив данных
+
* '''SvKey *''' – the service type key
*** '''Name''' – название трансфера
+
The returning result:<br />
*** '''ID''' – идентификатор трансфера
+
* '''GetTariffsResult''' – the search result
*** '''Description''' – описание трансфера
+
** '''Tariff''' – an array of the data
*** '''NameLat''' – наименование трансфера латиницей
+
*** '''ID''' – the tariff ID
*** '''Code''' – код трансфера
+
*** '''Name''' – the name of the tariff
*** '''CodeLat''' – код трансфера латиницей
+
*** '''Description''' – the description of the tariff
*** '''Unicode''' – код ISO трансфера
+
*** '''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
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTransferTypes/>
+
       <meg:GetTariffs>
 +
        <!--Optional:-->
 +
        <meg:guid>6ef6eeb2-a766-4a30-92c0-348d5c2afb94</meg:guid>
 +
        <meg:svKey>1</meg:svKey>
 +
      </meg:GetTariffs>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTransferTypes
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetTransferTypesResponse xmlns="http://www.megatec.ru/">
+
       <GetTariffsResponse xmlns="http://www.megatec.ru/">
         <GetTransferTypesResult>
+
         <GetTariffsResult>
             <Transport>
+
             <Tariff>
               <Name>Group</Name>
+
               <Name>!A4</Name>
               <ID>2</ID>
+
               <ID>785</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Group</NameLat>
+
               <NameLat/>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
              <SVKey>1</SVKey>
             <Transport>
+
              <Comment>A</Comment>
               <Name>Ind Car</Name>
+
              <CreateDate>2018-11-14T00:00:00</CreateDate>
               <ID>3</ID>
+
             </Tariff>
 +
             <Tariff>
 +
               <Name>Info Tour</Name>
 +
               <ID>623</ID>
 
               <Description/>
 
               <Description/>
               <NameLat>Ind Car</NameLat>
+
               <NameLat/>
 
               <Code/>
 
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
 
               <Unicode/>
 
               <Unicode/>
             </Transport>
+
              <SVKey>1</SVKey>
         </GetTransferTypesResult>
+
              <Comment/>
       </GetTransferTypesResponse>
+
              <CreateDate>2009-10-01T00:00:00</CreateDate>
 +
             </Tariff>
 +
         </GetTariffsResult>
 +
       </GetTariffsResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5475: Строка 5737:
 
</div></div><br />
 
</div></div><br />
  
=== GetRates (Получение списка валют)===
+
===GetRoomDescriptions (Receiving an array of the descriptions of the rooms)===
Метод возвращает список валют. <br />
+
The method returns an array of room descriptions.<br />
Возвращаемый результат:<br />
+
Accepted request parameters ( '''*''' – required):
* '''GetRatesResult''' – результат поиска
+
* '''RoomTypeId *''' – the room type key (0 – for all)
** '''Rate''' – массив данных
+
* '''RoomCategoryId *''' – the room category key (0 – for all)
*** '''Name''' – название валюты
+
The returning result:<br />
*** '''ID''' – идентификатор валюты
+
* '''GetRoomDescriptionsResult''' – the search result
*** '''Description''' – описание валюты
+
** '''AdditionalDescription''' – an array of the data
*** '''NameLat''' – описание валюты латиницей
+
*** '''Name''' – the name of the description of the room
*** '''Code''' – код валюты
+
*** '''ID''' – the name of the description of the room
*** '''CodeLat''' – код валюты латиницей
+
*** '''Description''' – the description
*** '''Unicode''' – код ISO валюты
+
*** '''NameLat''' – the name of the description of the room in Latin
*** '''IsMain''' – признак валюты "главная"
+
*** '''Code''' – the room description code
*** '''IsNational''' – признак валюты «национальная»
+
*** '''CodeLat''' – the code of the description of the room in Latin
 +
*** '''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>
Вызов метода GetRates
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetRates/>
+
       <meg:GetRoomDescriptions>
 +
        <meg:roomTypeId>7</meg:roomTypeId>
 +
        <meg:roomCategoryId>7</meg:roomCategoryId>
 +
      </meg:GetRoomDescriptions>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetRates
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetRatesResponse xmlns="http://www.megatec.ru/">
+
       <GetRoomDescriptionsResponse xmlns="http://www.megatec.ru/">
         <GetRatesResult>
+
         <GetRoomDescriptionsResult>
             <Rate>
+
             <AdditionalDescription>
               <Name>Euro</Name>
+
               <Name>Family Room Golf View</Name>
               <ID>1</ID>
+
               <ID>1368</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code>EU</Code>
+
               <Code/>
 
               <CodeLat/>
 
               <CodeLat/>
               <Unicode>EUR</Unicode>
+
               <Unicode/>
              <IsMain>false</IsMain>
+
            </AdditionalDescription>
              <IsNational>false</IsNational>
+
        </GetRoomDescriptionsResult>
            </Rate>
+
      </GetRoomDescriptionsResponse>
            <Rate>
+
  </soap:Body>
              <Name>US dollar</Name>
+
</soap:Envelope>
              <ID>2</ID>
+
</syntaxhighlight>
              <Description/>
+
</TD></TR></TABLE>
              <NameLat/>
+
</div></div><br />
              <Code>USD</Code>
+
 
              <CodeLat/>
+
===GetAccommodations (Receiving the accommodations for the hotel)===
              <Unicode>USD</Unicode>
+
The method returns hotel accommodations.<br />
              <IsMain>false</IsMain>
+
Accepted request parameters ( '''*''' – required):
              <IsNational>false</IsNational>
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
             </Rate>
+
The returning result:<br />
         </GetRatesResult>
+
* '''GetAccommodationsResult''' – the search result
       </GetRatesResponse>
+
** '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method GetAccommodations
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method GetAccommodations
 +
<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: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:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5538: Строка 5858:
 
</div></div><br />
 
</div></div><br />
  
=== GetServicePackage (Получение списка вариантов пакетных услуг)===
+
===GetRoomAccommodations (Receiving the accommodations for the hotel an 2 first values of ages from the list of childrenages)===
Метод возвращает список вариантов пакетных услуг. <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 />
* '''GetServicePackageResult''' – результат поиска
+
* '''GetRoomAccommodationsResult''' – The returning result
** '''ServiceList''' – массив данных
+
** '''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
*** '''ServiceClaseID''' – идентификатор класса дополнительной услуги
+
*** '''PerRoom''' – per room
*** '''CountryID''' – ключ страны варианта
+
*** '''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»
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetServicePackage/>
+
       <meg:GetRoomAccommodations/>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetServicePackage
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetServicePackageResponse xmlns="http://www.megatec.ru/">
+
       <GetRoomAccommodationsResponse xmlns="http://www.megatec.ru/">
         <GetServicePackageResult>
+
         <GetRoomAccommodationsResult>
             <ServiceList>
+
             <RoomAccomodation>
               <Name>5 days in Antique Greece (4 nights)/DBL BB</Name>
+
               <Name>2Add</Name>
               <ID>21</ID>
+
               <ID>15</ID>
 
               <Description/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>2+</Code>
 
               <CodeLat/>
 
               <CodeLat/>
               <Unicode/>
+
               <Unicode>2Ad+1Ch(3-5)</Unicode>
               <ServiceClaseID>0</ServiceClaseID>
+
              <PerRoom>true</PerRoom>
               <CountryID>4</CountryID>
+
              <AdultMainPalces>2</AdultMainPalces>
             </ServiceList>
+
              <ChildMainPalces>4</ChildMainPalces>
             <ServiceList>
+
              <AdultExtraPalces>0</AdultExtraPalces>
               <Name>5 days in Antique Greece (4 nights)/DBL HB</Name>
+
               <ChildExtraPalces>0</ChildExtraPalces>
               <ID>148</ID>
+
               <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/>
 
               <Description/>
 
               <NameLat/>
 
               <NameLat/>
               <Code/>
+
               <Code>1Ad+1inf</Code>
 
               <CodeLat/>
 
               <CodeLat/>
               <Unicode/>
+
               <Unicode>1Ad</Unicode>
               <ServiceClaseID>0</ServiceClaseID>
+
              <PerRoom>true</PerRoom>
               <CountryID>4</CountryID>
+
              <AdultMainPalces>1</AdultMainPalces>
             </ServiceList>
+
              <ChildMainPalces>0</ChildMainPalces>
         </GetServicePackageResult>
+
              <AdultExtraPalces>0</AdultExtraPalces>
       </GetServicePackageResponse>
+
               <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:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5601: Строка 5951:
 
</div></div><br />
 
</div></div><br />
  
=== GetDLStatuses (Получение списка статусов услуг)===
+
===GetClientInfo (Issuing information about the partner to which relates the on-line user)===
Метод возвращает список статусов услуг. <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 />
Возвращаемый результат:<br />
+
Accepted request parameters ( '''*''' – required):
* '''GetDLStatusesResult''' – результат поиска
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
** '''StatusService''' – массив данных
+
The returning result:
*** '''Name''' – название статуса услуги
+
* '''Name''' – the name of the partner
*** '''ID''' – идентификатор статуса услуги
+
* '''MarketName''' – the list of markets from the partner card
*** '''Description''' – описание статуса услуги
+
* '''Address''' – the address from the partner's card
*** '''NameLat''' – описание статуса услуги латиницей
 
*** '''Code''' – код статуса услуги
 
*** '''CodeLat''' – код статуса услуги латиницей
 
*** '''Unicode''' – код ISO статуса услуги
 
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetDLStatuses/>
+
       <meg:GetClientInfo>
 +
        <!--Optional:-->
 +
        <meg:guid>6851ab74-f299-4668-ade8-b8e125b7ad61</meg:guid>
 +
      </meg:GetClientInfo>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetDLStatuses
+
 
 +
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetDLStatusesResponse xmlns="http://www.megatec.ru/">
+
       <GetClientInfoResponse xmlns="http://www.megatec.ru/">
         <GetDLStatusesResult>
+
         <GetClientInfoResult Message="Ok">
             <StatusService>
+
             <Data>
              <Name>Wait</Name>
+
               <ClientInfo>
              <ID>1</ID>
+
                  <Name>Alpha Tour</Name>
              <Description/>
+
                  <MarketName>Russian Market</MarketName>
              <NameLat>Wait</NameLat>
+
                  <Address>Belarus,Minsk,Pobediteley street 23/1-115a A</Address>
              <Code/>
+
               </ClientInfo>
              <CodeLat/>
+
             </Data>
              <Unicode/>
+
         </GetClientInfoResult>
            </StatusService>
+
       </GetClientInfoResponse>
            <StatusService>
+
   </soap:Body>
              <Name>Confirmed</Name>
+
</soap:Envelope>
              <ID>2</ID>
+
</syntaxhighlight>
               <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>
 
</syntaxhighlight>
 
 
</TD></TR></TABLE>
 
</TD></TR></TABLE>
 
</div></div><br />
 
</div></div><br />
  
=== GetTariffs (Получение списка тарифов для определенного типа услуг)===
+
==Methods of integration with payment systems==
Метод возвращает тарифы для определенного типа услуг. <br />
+
===GetReservationPenalties (Receiving the penalties for the reservation before canceling it)===
Принимаемые параметры запроса ( * – обязательный):
+
The method returns the amount of penalties for the reservation before it is canceled.<br />
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
The operation of the method is regulated by a license.<br />  
* '''SvKey *''' – ключ типа услуги
+
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 />
* '''GetTariffsResult''' – результат поиска
+
* '''ReservationKey *''' – the reservation key
** '''Tariff''' – массив данных
+
* '''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.
*** '''ID''' – идентификатор тарифа
+
The returning result:<br />
*** '''Name''' – наименование тарифа
+
* '''GetReservationPenaltiesResult''' – the search result
*** '''Description''' – описание тарифа
+
** '''Penalty''' – fine
*** '''NameLat''' – наименование тарифа латиницей
+
*** '''ServicePenalty''' – the penalty service
*** '''Code''' – код тарифа
+
**** '''ServiceClassID''' – id of the service class
*** '''CodeLat''' – код тарифа латиницей
+
**** '''ID''' – ID of the fine
*** '''Unicode''' – код ISO тарифа
+
**** '''Name''' – the name of the fine
*** '''SvKey''' – ключ типа услуги
+
**** '''PenaltyData''' – an array of penalty data
*** '''Comment''' – описание
+
***** '''PenaltyDataInfo''' – an array of data
*** '''CreateDate''' – дата создания
+
****** '''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<br />
 +
In case of errors, we will receive a message with a decryption.<br />
 +
In case of an incorrect Guid, we will receive the message: "Invalid user or password (Invalid GUID)".<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>
Вызов метода GetTariffs
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetTariffs>
+
       <meg:GetReservationPenalties>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>6ef6eeb2-a766-4a30-92c0-348d5c2afb94</meg:guid>
+
         <meg:guid>9d041308-0e4c-4d07-8486-9e2293f1de75</meg:guid>
         <meg:svKey>1</meg:svKey>
+
         <meg:reservationKey>36080</meg:reservationKey>
      </meg:GetTariffs>
+
        </meg:GetReservationPenalties>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetTariffs
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetTariffsResponse xmlns="http://www.megatec.ru/">
+
       <GetReservationPenaltiesResponse xmlns="http://www.megatec.ru/">
         <GetTariffsResult>
+
         <GetReservationPenaltiesResult>
             <Tariff>
+
             <Penalty>
               <Name>!A4</Name>
+
               <ServicePenalty xsi:type="HotelPenalty">
              <ID>785</ID>
+
                  <ServiceClassID>0</ServiceClassID>
              <Description/>
+
                  <ID>164217</ID>
              <NameLat/>
+
                  <Name>HTL::Delphi/Fedriades Hotel /Double Room/2AD/100 m2/BB</Name>
              <Code/>
+
                  <PenaltyData>
              <CodeLat/>
+
                    <PenaltyDataInfo>
              <Unicode/>
+
                        <TotalPenalty>0</TotalPenalty>
              <SVKey>1</SVKey>
+
                        <RateCode>EU</RateCode>
              <Comment>A</Comment>
+
                        <PolicyDescription>If canceled before 01.09.2021, no penalty Penalty value is 0.00 EU</PolicyDescription>
              <CreateDate>2018-11-14T00:00:00</CreateDate>
+
                        <CancellationPolicyData>
            </Tariff>
+
                          <PolicyKey>-1</PolicyKey>
            <Tariff>
+
                          <DateFrom xsi:nil="true"/>
              <Name>Info Tour</Name>
+
                          <DateTo>2021-09-01T00:00:00</DateTo>
              <ID>623</ID>
+
                          <PenaltyValue>0</PenaltyValue>
              <Description/>
+
                          <IsPercent>false</IsPercent>
              <NameLat/>
+
                        </CancellationPolicyData>
              <Code/>
+
                    </PenaltyDataInfo>
              <CodeLat/>
+
                    <PenaltyDataInfo>
              <Unicode/>
+
                        <TotalPenalty>17.76</TotalPenalty>
              <SVKey>1</SVKey>
+
                        <RateCode>EU</RateCode>
              <Comment/>
+
                        <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>
              <CreateDate>2009-10-01T00:00:00</CreateDate>
+
                        <CancellationPolicyData>
            </Tariff>
+
                          <PolicyKey>73</PolicyKey>
        </GetTariffsResult>
+
                          <DateFrom>2021-09-01T00:00:00</DateFrom>
      </GetTariffsResponse>
+
                          <DateTo xsi:nil="true"/>
  </soap:Body>
+
                          <PenaltyValue>2</PenaltyValue>
</soap:Envelope>
+
                          <IsPercent>true</IsPercent>
</syntaxhighlight>
+
                        </CancellationPolicyData>
</TD></TR></TABLE>
+
                    </PenaltyDataInfo>
</div></div><br />
+
                  </PenaltyData>
 
+
                  <Hotel>
=== GetRoomDescriptions (Получение массива описаний комнат)===
+
                    <ID>2426</ID>
Метод возвращает массив описаний комнат.<br />
+
                    <Name>Fedriades Hotel</Name>
Принимаемые параметры запроса ( * – обязательный):
+
                  </Hotel>
* '''RoomTypeId *''' – ключ типа комнаты (0 – для всех)<br />
+
                  <RoomType>
* '''RoomCategoryId *''' – ключ категории комнаты (0 – для всех)
+
                    <ID>3</ID>
Возвращаемый результат:<br />
+
                    <Name>Double Room</Name>
* '''GetRoomDescriptionsResult''' – результат поиска
+
                  </RoomType>
** '''AdditionalDescription''' – массив данных
+
                  <RoomCategory>
*** '''Name''' – наименование описания комнаты
+
                    <ID>47</ID>
*** '''ID''' – идентификатор описания комнаты
+
                    <Name>100 m2</Name>
*** '''Description''' – описание
+
                  </RoomCategory>
*** '''NameLat''' – наименование описания комнаты латиницей
+
                  <Accommodation>
*** '''Code''' – код описания комнаты
+
                    <ID>5558</ID>
*** '''CodeLat''' – код описания комнаты латиницей
+
                    <Name>2Ad</Name>
*** '''Unicode''' – код ISO описания комнаты
+
                  </Accommodation>
 
+
                  <Pansion>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                    <ID>3</ID>
<div class="mw-collapsible-content">
+
                    <Name>Bed and Breakfast</Name>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                  </Pansion>
Вызов метода GetRoomDescriptions
+
              </ServicePenalty>
<syntaxhighlight lang="java" enclose="div">
+
              <ServicePenalty>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                  <ServiceClassID>2</ServiceClassID>
  <soapenv:Header/>
+
                  <ID>164218</ID>
  <soapenv:Body>
+
                  <Name>TRF::Arrival transfer/Mini Bus/El.Venizelos-Fedriades Hotel /Delphi/!AA 910</Name>
      <meg:GetRoomDescriptions>
+
                  <PenaltyData>
        <meg:roomTypeId>7</meg:roomTypeId>
+
                    <PenaltyDataInfo>
        <meg:roomCategoryId>7</meg:roomCategoryId>
+
                        <TotalPenalty>0</TotalPenalty>
      </meg:GetRoomDescriptions>
+
                        <RateCode/>
  </soapenv:Body>
+
                        <PolicyDescription/>
</soapenv:Envelope>
+
                    </PenaltyDataInfo>
</syntaxhighlight>
+
                  </PenaltyData>
Возвращаемый результат метода GetRoomDescriptions
+
              </ServicePenalty>
<syntaxhighlight lang="java" enclose="div">
+
              <ServicePenalty>
<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">
+
                  <ServiceClassID>5</ServiceClassID>
  <soap:Body>
+
                  <ID>164219</ID>
      <GetRoomDescriptionsResponse xmlns="http://www.megatec.ru/">
+
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
        <GetRoomDescriptionsResult>
+
                  <PenaltyData>
            <AdditionalDescription>
+
                    <PenaltyDataInfo>
              <Name>Family Room Golf View</Name>
+
                        <TotalPenalty>270</TotalPenalty>
              <ID>1368</ID>
+
                        <RateCode>EU</RateCode>
              <Description/>
+
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
              <NameLat/>
+
                        <CancellationPolicyData>
              <Code/>
+
                          <PolicyKey>0</PolicyKey>
              <CodeLat/>
+
                          <DateFrom xsi:nil="true"/>
              <Unicode/>
+
                          <DateTo xsi:nil="true"/>
            </AdditionalDescription>
+
                          <PenaltyValue>0</PenaltyValue>
        </GetRoomDescriptionsResult>
+
                          <IsPercent>false</IsPercent>
      </GetRoomDescriptionsResponse>
+
                        </CancellationPolicyData>
  </soap:Body>
+
                    </PenaltyDataInfo>
</soap:Envelope>
+
                  </PenaltyData>
</syntaxhighlight>
+
              </ServicePenalty>
</TD></TR></TABLE>
+
              <ServicePenalty>
</div></div><br />
+
                  <ServiceClassID>5</ServiceClassID>
 
+
                  <ID>164220</ID>
=== GetAccommodations (Получение размещения отелей)===
+
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
Метод возвращает размещения отелей.<br />
+
                   <PenaltyData>
Принимаемые параметры запроса ( * – обязательный):
+
                     <PenaltyDataInfo>
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
                        <TotalPenalty>270</TotalPenalty>
Возвращаемый результат:<br />
+
                        <RateCode>EU</RateCode>
* '''GetAccommodationsResult''' – результат поиска
+
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
** '''Message''' – идентификатор размещения
+
                        <CancellationPolicyData>
** '''Data''' – массив объектов с данными
+
                          <PolicyKey>0</PolicyKey>
*** '''AccomodationInfo''' – массив данных с размещением
+
                          <DateFrom xsi:nil="true"/>
**** '''Id''' – идентификатор размещения
+
                          <DateTo xsi:nil="true"/>
**** '''Code''' – код размещения
+
                          <PenaltyValue>0</PenaltyValue>
**** '''Name''' – название размещения
+
                          <IsPercent>false</IsPercent>
**** '''IsPerRoom''' – за комнату или за человека
+
                        </CancellationPolicyData>
**** '''NameUnicode''' – название размещения в Unicode
+
                    </PenaltyDataInfo>
**** '''CountAdultMain''' – количество взрослых на главном месте
+
                  </PenaltyData>
**** '''CountChildMain''' – количество детей на главном месте
+
              </ServicePenalty>
**** '''CountAdultExtra''' – количество взрослых на доп. месте
+
              <ServicePenalty>
**** '''CountChildExtra''' – количество детей на доп. месте
+
                  <ServiceClassID>5</ServiceClassID>
**** '''ChildrenAges''' – строка с описание возрастов детей
+
                  <ID>164222</ID>
**** '''IsWeb''' – доступность для Interlook-Web
+
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
**** '''IsPackage''' – можно ли добавлять в пакет
+
                  <PenaltyData>
**** '''UpdateDate''' – дата последнего обновления размещения
+
                    <PenaltyDataInfo>
**** '''ClildrenAgesList''' – список с возрастами детей
+
                        <TotalPenalty>100</TotalPenalty>
***** '''AccomadationAge''' – массив данных с возрастом
+
                        <RateCode>EU</RateCode>
****** '''Id''' – идентификатор записи
+
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
****** '''AgeFrom''' – возраст «с»
+
                        <CancellationPolicyData>
****** '''AgeTo''' – возраст «по»
+
                          <PolicyKey>0</PolicyKey>
****** '''CountMen''' – количество взрослых в размещении
+
                          <DateFrom xsi:nil="true"/>
****** '''IsMain''' – на главном ли месте ребенок этого возраста
+
                          <DateTo xsi:nil="true"/>
****** '''UpdateDate''' – дата последнего обновления записи
+
                          <PenaltyValue>0</PenaltyValue>
 
+
                          <IsPercent>false</IsPercent>
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
+
                        </CancellationPolicyData>
<div class="mw-collapsible-content">
+
                    </PenaltyDataInfo>
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
+
                  </PenaltyData>
Вызов метода GetAccommodations
+
               </ServicePenalty>
<syntaxhighlight lang="java" enclose="div">
+
               <ServicePenalty>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
                  <ServiceClassID>5</ServiceClassID>
  <soapenv:Header/>
+
                  <ID>164223</ID>
  <soapenv:Body>
+
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
      <meg:GetAccommodations>
+
                  <PenaltyData>
        <!--Optional:-->
+
                    <PenaltyDataInfo>
        <meg:guid>1b972765-0318-4ca3-9437-cefa99a3959d</meg:guid>
+
                        <TotalPenalty>100</TotalPenalty>
      </meg:GetAccommodations>
+
                        <RateCode>EU</RateCode>
  </soapenv:Body>
+
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
</soapenv:Envelope>
+
                        <CancellationPolicyData>
</syntaxhighlight>
+
                          <PolicyKey>0</PolicyKey>
Возвращаемый результат метода GetAccommodations
+
                          <DateFrom xsi:nil="true"/>
<syntaxhighlight lang="java" enclose="div">
+
                          <DateTo xsi:nil="true"/>
<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">
+
                          <PenaltyValue>0</PenaltyValue>
  <soap:Body>
+
                          <IsPercent>false</IsPercent>
      <GetAccommodationsResponse xmlns="http://www.megatec.ru/">
+
                        </CancellationPolicyData>
        <GetAccommodationsResult Message="Ok">
+
                    </PenaltyDataInfo>
            <Data>
+
                  </PenaltyData>
            <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">
+
              </ServicePenalty>
                   <ChildrenAgesList>
+
              <ServicePenalty>
                     <AccomadationAge Id="6664" AgeFrom="3" AgeTo="12" CountMen="2" IsMain="true" UpdateDate="2020-04-10T18:25:09.293"/>
+
                  <ServiceClassID>5</ServiceClassID>
                  </ChildrenAgesList>
+
                  <ID>164224</ID>
              </AccomodationInfo>
+
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
            </Data>
+
                  <PenaltyData>
        </GetAccommodationsResult>
+
                    <PenaltyDataInfo>
      </GetAccommodationsResponse>
+
                        <TotalPenalty>100</TotalPenalty>
  </soap:Body>
+
                        <RateCode>EU</RateCode>
</soap:Envelope>
+
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
</syntaxhighlight>
+
                        <CancellationPolicyData>
</TD></TR></TABLE>
+
                          <PolicyKey>0</PolicyKey>
</div></div><br />
+
                          <DateFrom xsi:nil="true"/>
 
+
                          <DateTo xsi:nil="true"/>
=== GetRoomAccommodations (Получение размещения отелей и первых 2 значений возрастов из списка возрастов детей)===
+
                          <PenaltyValue>0</PenaltyValue>
Метод возвращает размещения отелей и первые 2 значения возрастов из списка возрастов детей.<br />
+
                          <IsPercent>false</IsPercent>
Возвращаемый результат:<br />
+
                        </CancellationPolicyData>
* '''GetRoomAccommodationsResult''' – результат поиска
+
                    </PenaltyDataInfo>
** '''RoomAccomodation''' – массив данных
+
                  </PenaltyData>
*** '''Name''' – название размещения
+
               </ServicePenalty>
*** '''ID''' – идентификатор размещения
+
            </Penalty>
*** '''Description''' – описание размещения
+
         </GetReservationPenaltiesResult>
*** '''NameLat''' – наименование размещения латиницей
+
       </GetReservationPenaltiesResponse>
*** '''Code''' – код размещения
 
*** '''CodeLat''' – код размещения латиницей
 
*** '''Unicode''' – код ISO размещения
 
*** '''PerRoom''' – за комнату
 
*** '''AdultMainPalces''' – количество взрослых основных мест
 
*** '''ChildMainPalces''' – количество детских основных мест
 
*** '''AdultExtraPalces''' – количество взрослых дополнительных мест
 
*** '''ChildExtraPalces''' – количество детских дополнительных мест
 
*** '''MainPlaces''' – количество основных мест
 
*** '''ExtraPlaces''' – количество дополнительных мест
 
*** '''IsMain''' – есть ли основные места
 
*** '''AgeFrom''' – возраст детей «с»
 
*** '''AgeTo''' – возраст детей «по»
 
*** '''Age2From''' – возраст детей «с»
 
*** '''Age2To''' – возраст детей «по»
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetRoomAccommodations
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода GetRoomAccommodations
 
<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: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:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 5954: Строка 6232:
 
</div></div><br />
 
</div></div><br />
  
===GetClientInfo (Выдача информации по партнёру, к которому относится on-line user)===
+
===CreatePayment (Creating the payments for the reservation)===
Метод выдает информацию по партнёру, к которому относится on-line user, под которым осуществлен запрос в методе [[#Connect (Получение аутентификационного токена)|Connect]].<br />
+
The method creates the payment for the reservation.<br />
Принимаемые параметры запроса ( * – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[#Connect (Получение аутентификационного токена)|Connect]])<br />  
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
Возвращаемый результат:
+
* '''Date *''' – the date of payment creation
* '''Name''' – наименование партнера
+
* '''Sum *''' – the payment amount
* '''MarketName''' – перечень рынков из карточки партнера
+
* '''CurrencyIsoCode *''' – the ISO code of the payment currency
* '''Address''' – адрес из карточки партнера
+
* '''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:<br />
 +
* '''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
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetClientInfo>
+
       <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:-->
 
         <!--Optional:-->
         <meg:guid>6851ab74-f299-4668-ade8-b8e125b7ad61</meg:guid>
+
         <meg:currencyIsoCode>EUR</meg:currencyIsoCode>
       </meg:GetClientInfo>
+
        <!--Optional:-->
   </soapenv:Body>
+
        <meg:reservationCode>MT110919A0K</meg:reservationCode>
 +
        <!--Optional:-->
 +
        <meg:paymentId>13</meg:paymentId>
 +
       </meg:CreatePayment>
 +
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
The invocation of the method CreatePayment
Возвращаемый результат метода 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">
 
   <soap:Body>
 
   <soap:Body>
       <GetClientInfoResponse xmlns="http://www.megatec.ru/">
+
       <CreatePaymentResponse xmlns="http://www.megatec.ru/">
         <GetClientInfoResult Message="Ok">
+
         <CreatePaymentResult>0</CreatePaymentResult>
            <Data>
+
       </CreatePaymentResponse>
              <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:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 6000: Строка 6290:
 
</div></div><br />
 
</div></div><br />
  
==Методы интеграции с системами оплаты==
+
===GetPaymentInformation (Searching for the payment information with a specified payment ID from an external system)===
=== GetReservationPenalties (Получение штрафов по путевке до того, как ее аннулировать)===
+
The method returns information about the payment with the specified payment ID from the external system.<br />
Метод возвращает размеры штрафов по путевке до того, как ее аннулировать.<br />
+
Accepted request parameters ( '''*''' required):
Работа метода регулируется лицензией.<br />  
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
Принимаемые параметры запроса (* – обязательный):
+
* '''ReservationCode *''' – the reservation code
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''ExternalPaymentId *''' – the payment ID (the PaymentID parameter in the [[Master-Interlook:IntegrationService (en)#CreatePayment (Creating the payments for the reservation)|CreatePayment]] method request)
* '''ReservationKey *''' – ключ путевки
+
The returning result:<br />
* '''CancellationDate''' – дата аннуляции, на которую выдается условие и сумма штрафа. Если не указана, то получаем все возможные правила аннуляции вплоть до заезда.
+
* '''GetPaymentInformationResult''' – the output result
Возвращаемый результат:<br />
+
** '''IsPaymentExists''' – shows if there is a requested payment
* '''GetReservationPenaltiesResult''' – результат поиска
+
*** '''true''' – the payment with the specified ID for the specified reservation exists
** '''Penalty''' – штраф
+
*** '''false''' – there is no requested payment
*** '''ServicePenalty''' – сервис штрафов
+
** '''PaymentInformationResult''' – an array for payment data
**** '''ServiceClassID'''  
+
*** '''InternalPaymentId''' – the payment ID in the Interlook system
**** '''ID''' – идентификатор штрафа
+
*** '''DogovorCode''' – the reservation code
**** '''Name''' – наименование штрафа
+
*** '''PaymentSum''' – the payment amount
**** '''PenaltyData''' – массив данных штрафа
+
*** '''PaymentNationalSum''' – the amount of the payment in the national currency
***** '''PenaltyDataInfo''' – массив данных
+
*** '''PaymentRateISOCode''' – the ISO code of the payment currency
****** '''TotalPenalty''' – полная сумма штрафа
+
*** '''CreateDate''' – the date of payment
****** '''RateCode''' – код валюты
+
** '''ErrorCode''' – the error code
****** '''PolicyDescription''' – условия штрафа
+
*** '''0''' – NoError – no errors
****** '''CancellationPolicyData''' – массив данных аннуляции
+
*** '''1''' – DogovorNotFound the reservation with this code was not found
******* '''PolicyKey''' – ключ аннуляции
+
*** '''2''' – InternalError an internal error
******* '''DateFrom''' – дата с
+
*** '''3''' – DogovorAnnulate the reservation is canceled
******* '''DateTo''' дата по
+
*** '''4''' – DogovorPayed the reservation is paid
******* '''PenaltyValue''' – значение штрафа
+
*** '''7''' – ExistingPaymentID the payment with such an external ID already exists
******* '''IsPercent''' - процент, указывающий,  что штраф в "%" (''true'') или в "ночах" (''false'')
+
*** '''8''' – IncorrectPaymentType there are payments of prohibited types for the reservation
**** '''Hotel''' отель
+
*** '''9''' – NotAllowedPartnerKey the partner on the reservation is not allowed
***** '''ID''' – идентификатор отеля
+
*** '''10''' – FailureSignature the signature error
***** '''Name''' наименование отеля
+
*** '''11''' – NoInvoices there are no invoices for the reservation
**** '''RoomType''' – тип комнаты
 
***** '''ID''' идентификатор комнаты
 
***** '''Name''' – название комнаты
 
**** '''RoomCategory''' категория номера
 
***** '''ID''' – идентификатор категории номера
 
***** '''Name''' наименование категории номера
 
**** '''Accommodation''' – размещение
 
***** '''ID''' идентификатор размещения
 
***** '''Name''' – наименование размещения
 
**** '''Pansion''' тип питания
 
***** '''ID''' – идентификатор типа питания
 
***** '''Name''' наименование типа питания<br />
 
В случае ошибок получим сообщение с расшифровкой.<br />
 
В случае некорректного Guid получим сообщение:"Invalid user or password (Invalid GUID)".<br />
 
В случае отсутствия договора с указанным ключом для текущего партнера получим сообщение:"Check the parameter 'reservationKey' = <значение в запросе>. 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>
Вызов метода GetReservationPenalties
+
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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetReservationPenalties>
+
       <meg:GetPaymentInformation>
 +
        <!--Optional:-->
 +
        <meg:userToken>96ce5daf-f8ca-4dd9-a114-ede84d1d1608</meg:userToken>
 +
        <!--Optional:-->
 +
        <meg:reservationCode>MT110919A0K</meg:reservationCode>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:guid>9d041308-0e4c-4d07-8486-9e2293f1de75</meg:guid>
+
         <meg:externalPaymentId>12</meg:externalPaymentId>
        <meg:reservationKey>36080</meg:reservationKey>
+
      </meg:GetPaymentInformation>
        </meg:GetReservationPenalties>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetReservationPenalties
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetReservationPenaltiesResponse xmlns="http://www.megatec.ru/">
+
       <GetPaymentInformationResponse xmlns="http://www.megatec.ru/">
         <GetReservationPenaltiesResult>
+
         <GetPaymentInformationResult>
             <Penalty>
+
             <IsPaymentExists>true</IsPaymentExists>
              <ServicePenalty xsi:type="HotelPenalty">
+
            <PaymentsShortInformation>
                  <ServiceClassID>0</ServiceClassID>
+
              <InternalPaymentId>1997</InternalPaymentId>
                  <ID>164217</ID>
+
              <DogovorCode>MT110919A0K</DogovorCode>
                  <Name>HTL::Delphi/Fedriades Hotel /Double Room/2AD/100 m2/BB</Name>
+
              <PaymentSum>150</PaymentSum>
                  <PenaltyData>
+
              <PaymentNationalSum>150</PaymentNationalSum>
                    <PenaltyDataInfo>
+
              <PaymentRateISOCode>EUR</PaymentRateISOCode>
                        <TotalPenalty>0</TotalPenalty>
+
              <CreateDate>2021-09-13T18:17:20.837</CreateDate>
                        <RateCode>EU</RateCode>
+
            </PaymentsShortInformation>
                        <PolicyDescription>If canceled before 01.09.2021, no penalty Penalty value is 0.00 EU</PolicyDescription>
+
            <ErrorCode>0</ErrorCode>
                        <CancellationPolicyData>
+
        </GetPaymentInformationResult>
                          <PolicyKey>-1</PolicyKey>
+
      </GetPaymentInformationResponse>
                          <DateFrom xsi:nil="true"/>
+
  </soap:Body>
                          <DateTo>2021-09-01T00:00:00</DateTo>
+
</soap:Envelope>
                          <PenaltyValue>0</PenaltyValue>
+
</syntaxhighlight>
                          <IsPercent>false</IsPercent>
+
</TD></TR></TABLE>
                        </CancellationPolicyData>
+
</div></div><br />
                    </PenaltyDataInfo>
+
 
                    <PenaltyDataInfo>
+
===GetCancellationPolicyInfoWithPenalty (Receiving the information on the calculation of penalties for the hotel)===
                        <TotalPenalty>17.76</TotalPenalty>
+
<table style="background-color:#ffffcc;color:black" border="1" cellpadding="10" cellspacing="0"><tr><td>
                        <RateCode>EU</RateCode>
+
This functionality is available starting from release 11.20<br>
                        <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>
+
</td></tr></table><br>
                        <CancellationPolicyData>
+
The method returns information about the calculation of penalties for the hotel.<br />
                          <PolicyKey>73</PolicyKey>
+
The output of the method results is regulated by the license.<br />
                          <DateFrom>2021-09-01T00:00:00</DateFrom>
+
Accepted request parameters ( '''*''' – required):
                          <DateTo xsi:nil="true"/>
+
* '''Guid *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
                          <PenaltyValue>2</PenaltyValue>
+
* '''DateFrom *''' – the start date of the stay
                          <IsPercent>true</IsPercent>
+
* '''DateTo *''' – the start date of the stay
                        </CancellationPolicyData>
+
* '''HotelKey *''' – the hotel ID
                    </PenaltyDataInfo>
+
* '''PansionKey''' – the pansion ID
                  </PenaltyData>
+
* '''AccommodationKey ''' – the accommodation ID, optional if we transmit Pax
                  <Hotel>
+
* '''RoomTypeKey''' – the room type ID
                    <ID>2426</ID>
+
* '''RoomCategoryKey''' – ID of the room category
                    <Name>Fedriades Hotel</Name>
+
* '''Pax *''' – Pax by service
                  </Hotel>
+
* '''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>)
                  <RoomType>
+
* '''CancellationDate''' – the cancellation date (if not specified, the current one is taken)
                    <ID>3</ID>
+
The returning result:<br />
                    <Name>Double Room</Name>
+
* '''GetCancellationPolicyInfoWithPenaltyResult''' – the output result
                  </RoomType>
+
** '''CancellationPolicyInfoWithPenalty''' – an array of data
                  <RoomCategory>
+
*** '''HotelKey''' – the hotel ID
                    <ID>47</ID>
+
*** '''HotelName''' – the name of the hotel
                    <Name>100 m2</Name>
+
*** '''AccomodatioKey''' – the accommodation ID
                  </RoomCategory>
+
*** '''AccomodatioName''' – the name of the accommodation
                  <Accommodation>
+
*** '''RoomTypeKey''' – the room type ID
                    <ID>5558</ID>
+
*** '''RoomTypeName''' – the name of the room type
                    <Name>2Ad</Name>
+
*** '''RoomCategoryKey''' – ID of the room category
                  </Accommodation>
+
*** '''RoomCategoryName''' – the name of the room category
                  <Pansion>
+
*** '''PansionKey''' – the pansion ID
                    <ID>3</ID>
+
*** '''PansionName''' – the name of the food
                    <Name>Bed and Breakfast</Name>
+
*** '''PolicyDescripion''' – the description of the cancellation policy and the full amount of the penalty
                  </Pansion>
+
*** '''CancellationDate''' – the cancellation date
              </ServicePenalty>
+
*** '''PolicyData''' – the cancellation date
              <ServicePenalty>
+
**** '''CancellationPolicyWithPenaltyValue''' – an array of data for calculating the penalty
                  <ServiceClassID>2</ServiceClassID>
+
***** '''PolicyKey''' – the policy key
                  <ID>164218</ID>
+
***** '''DateFrom''' – the date "from"
                  <Name>TRF::Arrival transfer/Mini Bus/El.Venizelos-Fedriades Hotel /Delphi/!AA 910</Name>
+
***** '''DateTo''' – not set
                  <PenaltyData>
+
***** '''PenaltyValue''' – the penalty value
                    <PenaltyDataInfo>
+
***** '''IsPercent''' – the parameter indicating that the penalty is in "%" (true) or in "nights" (false)
                        <TotalPenalty>0</TotalPenalty>
+
***** '''PenaltyTotal''' – the total amount of the penalty
                        <RateCode/>
+
 
                        <PolicyDescription/>
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
                    </PenaltyDataInfo>
+
<div class="mw-collapsible-content">
                  </PenaltyData>
+
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
              </ServicePenalty>
+
The invocation of the method GetCancellationPolicyInfoWithPenalty
              <ServicePenalty>
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
                  <ServiceClassID>5</ServiceClassID>
+
  <soapenv:Header/>
                  <ID>164219</ID>
+
  <soapenv:Body>
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
+
      <meg:GetCancellationPolicyInfoWithPenalty>
                  <PenaltyData>
+
      <!--Optional:-->
                    <PenaltyDataInfo>
+
        <meg:guid>66c8bbb3-53dc-47a0-8ddb-8e08ec68c84c</meg:guid>
                        <TotalPenalty>270</TotalPenalty>
+
        <meg:dateFrom>2021-12-01</meg:dateFrom>
                        <RateCode>EU</RateCode>
+
        <meg:dateTo>2021-12-15</meg:dateTo>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
+
        <meg:HotelKey>2942</meg:HotelKey>
                        <CancellationPolicyData>
+
        <meg:PansionKey>3</meg:PansionKey>
                          <PolicyKey>0</PolicyKey>
+
        <meg:AccommodationKey>5558</meg:AccommodationKey>
                          <DateFrom xsi:nil="true"/>
+
        <meg:RoomTypeKey>3</meg:RoomTypeKey>
                          <DateTo xsi:nil="true"/>
+
        <meg:RoomCategoryKey>20</meg:RoomCategoryKey>
                          <PenaltyValue>0</PenaltyValue>
+
        <meg:Pax>2</meg:Pax>
                          <IsPercent>false</IsPercent>
+
        <!--Optional:-->
                        </CancellationPolicyData>
+
        <meg:Ages>
                    </PenaltyDataInfo>
+
            <!--Zero or more repetitions:-->
                  </PenaltyData>
+
            <meg:int>14</meg:int>
              </ServicePenalty>
+
        </meg:Ages>
              <ServicePenalty>
+
        <meg:CancellationDate>2021-11-30</meg:CancellationDate>
                  <ServiceClassID>5</ServiceClassID>
+
      </meg:GetCancellationPolicyInfoWithPenalty>
                  <ID>164220</ID>
+
  </soapenv:Body>
                  <Name>EX::adhot 2/Fedriades Hotel /Double Room/2AD/100 m2 (Hard link) (Delphi)</Name>
+
</soapenv:Envelope>
                  <PenaltyData>
+
</syntaxhighlight>
                    <PenaltyDataInfo>
+
The returning result for the method GetCancellationPolicyInfoWithPenalty
                        <TotalPenalty>270</TotalPenalty>
+
<syntaxhighlight lang="java" enclose="div">
                        <RateCode>EU</RateCode>
+
<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">
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
+
  <soap:Body>
                        <CancellationPolicyData>
+
      <GetCancellationPolicyInfoWithPenaltyResponse xmlns="http://www.megatec.ru/">
                          <PolicyKey>0</PolicyKey>
+
        <GetCancellationPolicyInfoWithPenaltyResult Message="Ok">
                          <DateFrom xsi:nil="true"/>
+
            <Data>
                          <DateTo xsi:nil="true"/>
+
              <CancellationPolicyInfoWithPenalty>
                          <PenaltyValue>0</PenaltyValue>
+
                  <HotelKey>2942</HotelKey>
                          <IsPercent>false</IsPercent>
+
                  <HotelName>Green (Kiev) Not defined</HotelName>
                        </CancellationPolicyData>
+
                  <AccomodatioKey>5558</AccomodatioKey>
                    </PenaltyDataInfo>
+
                  <AccomodatioName>2AD</AccomodatioName>
                   </PenaltyData>
+
                  <RoomTypeKey>3</RoomTypeKey>
              </ServicePenalty>
+
                  <RoomTypeName>Double Room</RoomTypeName>
              <ServicePenalty>
+
                  <RoomCategoryKey>20</RoomCategoryKey>
                   <ServiceClassID>5</ServiceClassID>
+
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
                   <ID>164222</ID>
+
                   <PansionKey>3</PansionKey>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
+
                   <PansionName>BB</PansionName>
                  <PenaltyData>
+
                   <PolicyDescripion>
                     <PenaltyDataInfo>
+
                    <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>
                        <TotalPenalty>100</TotalPenalty>
+
                     <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>
                        <RateCode>EU</RateCode>
+
                  </PolicyDescripion>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
+
                  <CancellationDate>2021-11-30T00:00:00</CancellationDate>
                        <CancellationPolicyData>
+
                  <PolicyData>
                          <PolicyKey>0</PolicyKey>
+
                    <CancellationPolicyWithPenaltyValue>
                          <DateFrom xsi:nil="true"/>
+
                        <PolicyKey>166</PolicyKey>
                          <DateTo xsi:nil="true"/>
+
                        <DateFrom>2021-11-30T00:00:00</DateFrom>
                          <PenaltyValue>0</PenaltyValue>
+
                        <DateTo>2021-11-30T00:00:00</DateTo>
                          <IsPercent>false</IsPercent>
+
                        <PenaltyValue>2</PenaltyValue>
                         </CancellationPolicyData>
+
                        <IsPercent>false</IsPercent>
                    </PenaltyDataInfo>
+
                         <PenaltyTotal>690</PenaltyTotal>
                  </PenaltyData>
+
                        <Currency>EU</Currency>
              </ServicePenalty>
+
                    </CancellationPolicyWithPenaltyValue>
              <ServicePenalty>
+
                    <CancellationPolicyWithPenaltyValue>
                  <ServiceClassID>5</ServiceClassID>
+
                        <PolicyKey>-1</PolicyKey>
                  <ID>164223</ID>
+
                        <DateFrom>2021-12-01T00:00:00</DateFrom>
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
+
                        <DateTo xsi:nil="true"/>
                  <PenaltyData>
+
                        <PenaltyValue>100</PenaltyValue>
                    <PenaltyDataInfo>
+
                        <IsPercent>true</IsPercent>
                         <TotalPenalty>100</TotalPenalty>
+
                         <PenaltyTotal>4140</PenaltyTotal>
                         <RateCode>EU</RateCode>
+
                         <Currency>EU</Currency>
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
+
                    </CancellationPolicyWithPenaltyValue>
                        <CancellationPolicyData>
+
                  </PolicyData>
                          <PolicyKey>0</PolicyKey>
+
              </CancellationPolicyInfoWithPenalty>
                          <DateFrom xsi:nil="true"/>
+
            </Data>
                          <DateTo xsi:nil="true"/>
+
        </GetCancellationPolicyInfoWithPenaltyResult>
                          <PenaltyValue>0</PenaltyValue>
+
      </GetCancellationPolicyInfoWithPenaltyResponse>
                          <IsPercent>false</IsPercent>
+
  </soap:Body>
                        </CancellationPolicyData>
+
</soap:Envelope>
                    </PenaltyDataInfo>
+
</syntaxhighlight>
                  </PenaltyData>
+
</TD></TR></TABLE>
              </ServicePenalty>
+
</div></div><br />
              <ServicePenalty>
+
 
                  <ServiceClassID>5</ServiceClassID>
+
===CheckReservation (Receiving the information about the payment required for the reservation in the selected currency)===
                  <ID>164224</ID>
+
The method returns information about the payment required for the reservation in the selected currency.<br />
                  <Name>EX::Test with cost/Fedriades Hotel /Double Room/2AD/100 m2(Delphi)</Name>
+
Accepted request parameters ( '''*''' – required):
                  <PenaltyData>
+
* '''UserToken *''' – Id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
                    <PenaltyDataInfo>
+
* '''DgCode *''' – the voucher code
                        <TotalPenalty>100</TotalPenalty>
+
* '''CurrencyIsoCode *''' – the ISO code of the payment currency
                        <RateCode>EU</RateCode>
+
The returning result:<br />
                        <PolicyDescription>If canceled, the penalty is 100 % of the cost</PolicyDescription>
+
* '''CheckReservationResult''' – the output result
                        <CancellationPolicyData>
+
** '''Amount''' – the payment amount
                          <PolicyKey>0</PolicyKey>
+
** '''RateCode''' – the ISO code of the payment currency
                          <DateFrom xsi:nil="true"/>
+
** '''NationalCurrencyPrice''' – the payment amount in national currency
                          <DateTo xsi:nil="true"/>
+
** '''NationalRateCode''' – the ISO code of the national currency
                          <PenaltyValue>0</PenaltyValue>
+
** '''CustomCurrencyPrice''' – the payment amount in any currency
                          <IsPercent>false</IsPercent>
+
** '''CustomRateCode''' – the ISO code of any payment currency
                        </CancellationPolicyData>
+
** '''ErrorCode''' – the result code
                    </PenaltyDataInfo>
+
*** '''0''' – NoError – no errors
                  </PenaltyData>
+
*** '''1''' – DogovorNotFound – the reservation with this code was not found
              </ServicePenalty>
+
*** '''2''' – InternalError – an internal error
            </Penalty>
+
*** '''3''' – DogovorAnnulate – the reservation is canceled
         </GetReservationPenaltiesResult>
+
*** '''4''' – DogovorPayed – the reservation is paid
       </GetReservationPenaltiesResponse>
+
*** '''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
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method CheckReservation
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method CheckReservation
 +
<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: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>
 +
</syntaxhighlight>
 +
</TD></TR></TABLE>
 +
</div></div><br />
 +
 
 +
===CreatePaymentForDogovor (Creating the reservation payment based on issued invoice)===
 +
The method creates the payment for the reservation that has an invoice.<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 />
 +
* '''DgKey *''' – the reservation key
 +
* '''Payment *''' – the payment amount
 +
The returning result:<br />
 +
* '''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".
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
 +
<div class="mw-collapsible-content">
 +
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 +
The invocation of the method CreatePaymentForDogovor
 +
<syntaxhighlight lang="java" enclose="div">
 +
<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>
 +
</syntaxhighlight>
 +
The returning result for the method CreatePaymentForDogovor
 +
<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:Body>
 +
      <CreatePaymentForDogovorResponse xmlns="http://www.megatec.ru/">
 +
        <CreatePaymentForDogovorResult/>
 +
        <orderId>2008</orderId>
 +
       </CreatePaymentForDogovorResponse>
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 6235: Строка 6600:
 
</div></div><br />
 
</div></div><br />
  
===CreatePayment (Создание платежа по путевке)===
+
==Methods for working with quotas==
Метод создает платеж по путевке.<br />
+
===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. <br />
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
Accepted request parameters ( '''*''' required):
* '''Date *''' – дата создания платежа
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
* '''Sum *''' – сумма платежа
+
* '''DateFrom''' – date from
* '''CurrencyIsoCode *''' – ISO код валюты платежа
+
* '''DateTo''' – date to
* '''ReservationCode *''' – код путевки
+
* '''HotelId *''' – the hotel key
* '''PaymentId *''' – идентификатор платежа (задается вручную для последующего идентифицирования платежа). Уникальный код, указывается пользователем один раз, не должен повторяться при следующей оплате по данной заявке.
+
* '''RoomTypeId *''' – the room type key (-1 for all)
Возвращаемый результат:<br />
+
* '''RoomCategoryId *''' – the room category key (-1 for all)
* '''CreatePaymentResult''' – результат выдачи
+
The returning result:<br />
** '''0''' – NoError – ошибок нет
+
* '''ServiceResult''' – the search result
** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
+
* '''QuotaSimpleInfo''' – an array of data
** '''2''' – InternalError – внутренняя ошибка
+
** '''RoomTypeId''' – the room type key
** '''3''' – DogovorAnnulate путевка аннулирована
+
** '''RoomCategoryId''' – the room category key
** '''4''' DogovorPayed путевка оплачена
+
** '''Quota''' – the information about the quota (0 on request, 1 there is a quota, 2 stop)
** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
+
** '''RoomVariantName''' – the name of the room option (combinations from the RoomVariant table)
** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
+
** '''Date''' – not filled in
** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
 
** '''10''' – FailureSignature – ошибка подписи
 
** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
 
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:CreatePayment>
+
       <meg:CheckQuota>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:userToken>96ce5daf-f8ca-4dd9-a114-ede84d1d1608</meg:userToken>
+
         <meg:guid>fcce4f31-dd71-4d70-bbb3-0e279f59eefc</meg:guid>
         <meg:date>2021-09-10</meg:date>
+
         <meg:dateFrom>2021-07-13</meg:dateFrom>
         <meg:sum>120</meg:sum>
+
         <meg:dateTo>2021-07-30</meg:dateTo>
        <!--Optional:-->
+
         <meg:hotelId>2930</meg:hotelId>
         <meg:currencyIsoCode>EUR</meg:currencyIsoCode>
+
         <meg:roomTypeId>-1</meg:roomTypeId>
        <!--Optional:-->
+
         <meg:roomCategoryId>-1</meg:roomCategoryId>
         <meg:reservationCode>MT110919A0K</meg:reservationCode>
+
       </meg:CheckQuota>
        <!--Optional:-->
 
         <meg:paymentId>13</meg:paymentId>
 
       </meg:CreatePayment>
 
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода CreatePayment
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <CreatePaymentResponse xmlns="http://www.megatec.ru/">
+
       <CheckQuotaResponse xmlns="http://www.megatec.ru/">
         <CreatePaymentResult>0</CreatePaymentResult>
+
         <CheckQuotaResult Message="Ok">
       </CreatePaymentResponse>
+
            <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:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 6293: Строка 6657:
 
</div></div><br />
 
</div></div><br />
  
===GetPaymentInformation (Поиск информации о платеже с заданным идентификатором платежа из внешней системы)===
+
===GetQuotaInfo (Checking the availability of a hotel room for a period with details by day)===
Метод возвращает информацию о платеже с заданным идентификатором платежа из внешней системы.<br />
+
МеThe method returns information about the availability of the hotel room for the period with details by day.<br />
Принимаемые параметры запроса (* – обязательный):
+
Accepted request parameters ( '''*''' required):
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[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 />
* '''ReservationCode *''' – код путевки
+
* '''DateFrom *''' – date from
* '''ExternalPaymentId *''' – идентификатор платежа (Параметр PaymentId в запросе метода [[Master-Interlook:IntegrationService#CreatePayment|CreatePayment]])
+
* '''DateTo *''' – date to
Возвращаемый результат:<br />
+
* '''HotelId *''' – the hotel key
* '''GetPaymentInformationResult''' – результат выдачи
+
* '''RoomTypeId *''' – the room type key (-1 for all)
** '''IsPaymentExists''' – показывает, есть ли запрошенный платеж
+
* '''RoomCategoryId *''' – the room category key (-1 for all)
*** '''true''' – платеж с указанным идентификатором по указанной путевке существует
+
The returning result:<br />
*** '''false''' – запрошенного платежа нет
+
* '''GetQuotaInfoResult''' – the search result
** '''PaymentInformationResult''' – массив данных платежа
+
* '''QuotaSimpleInfo''' – an array of data
*** '''InternalPaymentId''' – идентификатор платежа в системе Interlook,
+
** '''RoomTypeId''' – the room type key
*** '''DogovorCode''' – код путевки,
+
** '''RoomCategoryId''' – the room category key
*** '''PaymentSum''' – сумма платежа,
+
** '''Quota''' – the information about the quota (0 – on request, 1 – there is a quota, 2 – stop)
*** '''PaymentNationalSum''' – сумма платежа в национальной валюте,
+
** '''RoomVariantName''' – the name of the room options (combinations from the RoomVariant table)
*** '''PaymentRateISOCode''' – ISO код валюты платежа
+
** '''Date''' – the day
*** '''CreateDate''' – дата проведения платежа
 
** '''ErrorCode''' – код ошибки
 
*** '''0''' NoError – ошибок нет
 
*** '''1''' DogovorNotFound – путевка с таким кодом не найдена
 
*** '''2''' InternalError – внутренняя ошибка
 
*** '''3''' – DogovorAnnulate – путевка аннулирована
 
*** '''4''' – DogovorPayed – путевка оплачена
 
*** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
 
*** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
 
*** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
 
*** '''10''' – FailureSignature – ошибка подписи
 
*** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
 
  
<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 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/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetPaymentInformation>
+
       <meg:CheckQuota>
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:userToken>96ce5daf-f8ca-4dd9-a114-ede84d1d1608</meg:userToken>
+
         <meg:guid>fcce4f31-dd71-4d70-bbb3-0e279f59eefc</meg:guid>
         <!--Optional:-->
+
         <meg:dateFrom>2021-07-13</meg:dateFrom>
         <meg:reservationCode>MT110919A0K</meg:reservationCode>
+
        <meg:dateTo>2021-07-30</meg:dateTo>
         <!--Optional:-->
+
         <meg:hotelId>2930</meg:hotelId>
         <meg:externalPaymentId>12</meg:externalPaymentId>
+
         <meg:roomTypeId>-1</meg:roomTypeId>
       </meg:GetPaymentInformation>
+
         <meg:roomCategoryId>-1</meg:roomCategoryId>
 +
       </meg:CheckQuota>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetPaymentInformation
+
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">
 
   <soap:Body>
 
   <soap:Body>
       <GetPaymentInformationResponse xmlns="http://www.megatec.ru/">
+
       <CheckQuotaResponse xmlns="http://www.megatec.ru/">
         <GetPaymentInformationResult>
+
         <CheckQuotaResult Message="Ok">
             <IsPaymentExists>true</IsPaymentExists>
+
             <Data>
            <PaymentsShortInformation>
+
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="8" Quota="0" RoomVariantName="Single Room Side Sea View" Date="0001-01-01T00:00:00"/>
               <InternalPaymentId>1997</InternalPaymentId>
+
               <QuotaSimpleInfo RoomTypeId="150" RoomCategoryId="8" Quota="0" RoomVariantName="Double Classical Side Sea View" Date="0001-01-01T00:00:00"/>
               <DogovorCode>MT110919A0K</DogovorCode>
+
               <QuotaSimpleInfo RoomTypeId="2" RoomCategoryId="6" Quota="0" RoomVariantName="Single Room Standard" Date="0001-01-01T00:00:00"/>
              <PaymentSum>150</PaymentSum>
+
             </Data>
               <PaymentNationalSum>150</PaymentNationalSum>
+
         </CheckQuotaResult>
              <PaymentRateISOCode>EUR</PaymentRateISOCode>
+
       </CheckQuotaResponse>
              <CreateDate>2021-09-13T18:17:20.837</CreateDate>
 
            </PaymentsShortInformation>
 
             <ErrorCode>0</ErrorCode>
 
         </GetPaymentInformationResult>
 
       </GetPaymentInformationResponse>
 
 
   </soap:Body>
 
   </soap:Body>
 
</soap:Envelope>
 
</soap:Envelope>
Строка 6366: Строка 6714:
 
</div></div><br />
 
</div></div><br />
  
===GetCancellationPolicyInfoWithPenalty (Получение информации по расчету штрафов по отелю ) ===
+
===GetChangeQuotaAndStop (Receiving the information on quotas and stops at the hotel)===
<table style="background-color:#ffffcc;color:black" border="1" cellpadding="10" cellspacing="0"><tr><td>
+
The method transmits information about quotas and stops at the hotel.<br />
Данный функционал доступен начиная с релиза 11.20<br>
+
Accepted request parameters ( '''*''' required):
</td></tr></table><br>
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
Метод возвращает информацию по расчету штрафов по отелю.<br />
+
* '''HotelKey *''' – the hotel key
Выдача результатов метода регулируется лицензией.<br />
+
* '''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)
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
+
* '''LoadQuaota *''' – whether or not to upload changes for stops
* '''DateFrom *''' – дата начала проживания
+
* '''LoadStop *''' – whether or not to upload changes for stops
* '''DateTo *''' – дата окончания проживания
+
The returning result:<br />
* '''HotelKey *''' – идентификатор отеля
+
* '''GetChangeQuotaAndStopResult''' – the search result
* '''PansionKey''' – идентификатор питания
+
** '''QuotaStopInfo''' – an array of data
* '''AccommodationKey ''' – идентификатор размещения, необязательный если передаем Pax.
+
*** '''ID''' – not used
* '''RoomTypeKey''' – идентификатор типа комнаты
+
*** '''SvKey''' – the service class key (for hotel = 1)
* '''RoomCategoryKey''' – идентификатор категории номера
+
*** '''Code''' – the hotel key
* '''Pax *''' – Pax по услуге
+
*** '''SubCode1Name''' – the name of the room type
* '''Ages*''' – список с возрастами детей. Если  ищем размещение без детей передаем пустой параметр (<meg:Ages></meg:Ages>)
+
*** '''SubCode1''' – the room type key
* '''CancellationDate''' – дата аннуляции (если не указана – берется текущая)
+
*** '''SubCode2''' – not used
Возвращаемый результат:<br />
+
*** '''SubCode3Name''' – the name of the room category
* '''GetCancellationPolicyInfoWithPenaltyResult''' – результат выдачи
+
*** '''SubCode3''' – the room category key
** '''CancellationPolicyInfoWithPenalty''' – массив данных
+
*** '''RoomDescriptionID''' – the room description key
*** '''HotelKey''' – идентификатор отеля
+
*** '''RoomDescriptionName''' – the name of the description of the room
*** '''HotelName''' – наименование отеля
+
*** '''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)
*** '''AccomodatioKey''' – идентификатор размещения
+
*** '''IsStop''' – is there a stop on the current date
*** '''AccomodatioName''' – наименование размещения
+
*** '''Date''' – the date of the current quota (stop)
*** '''RoomTypeKey''' – идентификатор типа комнаты
+
*** '''UpdateDate''' – the update date
*** '''RoomTypeName''' – наименование типа комнаты
+
*** '''Release''' – release period
*** '''RoomCategoryKey''' – идентификатор категории номера
 
*** '''RoomCategoryName''' – наименование категории номера
 
*** '''PansionKey''' – идентификатор питания
 
*** '''PansionName''' – наименование питания
 
*** '''PolicyDescripion''' – описание политики аннуляции и полной суммы штрафа
 
*** '''CancellationDate''' дата аннуляции
 
*** '''PolicyData''' массив данных
 
**** '''CancellationPolicyWithPenaltyValue''' массив данных по расчету штрафа
 
***** '''PolicyKey''' ключ политики
 
***** '''DateFrom''' – дата "от"
 
***** '''DateTo''' – не задана
 
***** '''PenaltyValue''' – значение штрафа
 
***** '''IsPercent''' – параметр, указывающий, что штраф в "%" (true) или в "ночах" (false)
 
***** '''PenaltyTotal''' – общая сумма штрафа
 
  
<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 GetChangeQuotaAndStop
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
+
<syntaxhighlight lang="java" enclose="div">
 +
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
   <soapenv:Body>
       <meg:GetCancellationPolicyInfoWithPenalty>
+
       <meg:GetChangeQuotaAndStop>
      <!--Optional:-->
 
        <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>
 
 
         <!--Optional:-->
 
         <!--Optional:-->
         <meg:Ages>
+
         <meg:guid>7e4781f3-cef1-4b05-b6aa-ef9bb091f055</meg:guid>
            <!--Zero or more repetitions:-->
+
        <meg:hotelKey>2942</meg:hotelKey>
            <meg:int>14</meg:int>
+
        <meg:date>2023-11-01T21:17:00</meg:date>
         </meg:Ages>
+
        <meg:UseRoomDescription>true</meg:UseRoomDescription>
         <meg:CancellationDate>2021-11-30</meg:CancellationDate>
+
         <meg:LoadQuota>true</meg:LoadQuota>
       </meg:GetCancellationPolicyInfoWithPenalty>
+
         <meg:LoadStop>false</meg:LoadStop>
 +
       </meg:GetChangeQuotaAndStop>
 
   </soapenv:Body>
 
   </soapenv:Body>
 
</soapenv:Envelope>
 
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
Возвращаемый результат метода GetCancellationPolicyInfoWithPenalty
+
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">
 
   <soap:Body>
 
   <soap:Body>
      <GetCancellationPolicyInfoWithPenaltyResponse xmlns="http://www.megatec.ru/">
+
       <GetChangeQuotaAndStopResponse xmlns="http://www.megatec.ru/">
        <GetCancellationPolicyInfoWithPenaltyResult Message="Ok">
+
         <GetChangeQuotaAndStopResult>
            <Data>
+
             <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"/>
              <CancellationPolicyInfoWithPenalty>
+
         </GetChangeQuotaAndStopResult>
                  <HotelKey>2942</HotelKey>
+
       </GetChangeQuotaAndStopResponse>
                  <HotelName>Green (Kiev) Not defined</HotelName>
+
   </soap:Body>
                  <AccomodatioKey>5558</AccomodatioKey>
+
</soap:Envelope>
                  <AccomodatioName>2AD</AccomodatioName>
+
</syntaxhighlight>
                  <RoomTypeKey>3</RoomTypeKey>
+
</TD></TR></TABLE>
                  <RoomTypeName>Double Room</RoomTypeName>
+
</div></div><br />
                  <RoomCategoryKey>20</RoomCategoryKey>
+
 
                  <RoomCategoryName>Jakuzzi</RoomCategoryName>
+
===GetHotelQuotaStopInfo (Receiving the information on hotels that have had changes in quotas or stops since a certain date)===
                  <PansionKey>3</PansionKey>
+
The method returns hotels that have had changes in quotas or stops since a certain date.<br />
                  <PansionName>BB</PansionName>
+
Accepted request parameters ( '''*''' required):
                  <PolicyDescripion>
+
* '''Guid *''' – id of authentification (returns in request for method [[Master-Interlook:IntegrationService (en)#Connect (Obtaining an authentication token)|Connect]])<br />
                    <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>
+
* '''Date *''' – the date from which we will search for hotels with changed quotas or stops
                    <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>
+
The returning result:<br />
                  </PolicyDescripion>
+
* '''GetHotelQuotaStopResult''' – the search result
                  <CancellationDate>2021-11-30T00:00:00</CancellationDate>
+
** '''HotelQuotaStopInfo''' – an array of data
                  <PolicyData>
+
*** '''HotelKey''' – the hotel key
                    <CancellationPolicyWithPenaltyValue>
+
*** '''UpdateDateQuota''' – the date of the last change in hotel quotas
                        <PolicyKey>166</PolicyKey>
+
*** '''UpdateDateStop''' – the date of the last change in hotel stops
                        <DateFrom>2021-11-30T00:00:00</DateFrom>
+
 
                        <DateTo>2021-11-30T00:00:00</DateTo>
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Example
                        <PenaltyValue>2</PenaltyValue>
+
<div class="mw-collapsible-content">
                        <IsPercent>false</IsPercent>
+
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
                        <PenaltyTotal>690</PenaltyTotal>
+
The invocation of the method GetHotelQuotaStopInfo
                        <Currency>EU</Currency>
+
<syntaxhighlight lang="java" enclose="div">
                    </CancellationPolicyWithPenaltyValue>
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
                    <CancellationPolicyWithPenaltyValue>
+
   <soapenv:Header/>
                        <PolicyKey>-1</PolicyKey>
+
   <soapenv:Body>
                        <DateFrom>2021-12-01T00:00:00</DateFrom>
+
       <meg:GetHotelQuotaStopInfo>
                        <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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
===CheckReservation (Получение информации о платеже, необходимом для путевки, в выбранной валюте)===
 
Метод возвращает информацию о платеже, необходимом для путевки, в выбранной валюте.<br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''UserToken *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''DgCode *''' – код путевки
 
* '''CurrencyIsoCode *''' – ISO код валюты платежа
 
Возвращаемый результат:<br />
 
* '''CheckReservationResult''' – результат выдачи
 
** '''Amount''' – сумма платежа
 
** '''RateCode''' – ISO код валюты платежа
 
** '''NationalCurrencyPrice''' – сумма платежа в национальной валюте
 
** '''NationalRateCode''' – ISO код национальной валюты
 
** '''CustomCurrencyPrice''' – сумма платежа в произвольной валюте
 
** '''CustomRateCode''' – ISO код произвольной валюты платежа
 
** '''ErrorCode''' – код результата
 
*** '''0''' – NoError – ошибок нет
 
*** '''1''' – DogovorNotFound – путевка с таким кодом не найдена
 
*** '''2''' – InternalError – внутренняя ошибка
 
*** '''3''' – DogovorAnnulate – путевка аннулирована
 
*** '''4''' – DogovorPayed – путевка оплачена
 
*** '''7''' – ExistingPaymentID – платеж с таким внешним идентификатором уже существует
 
*** '''8''' – IncorrectPaymentType – по путевке есть платежи запрещенных типов
 
*** '''9''' – NotAllowedPartnerKey – партнер по путевке не разрешен
 
*** '''10''' – FailureSignature – ошибка подписи
 
*** '''11''' – NoInvoices – нет инвойсов (счетов) по путевке
 
** '''FilialKey''' – идентификатор филиала партнера
 
** '''BeginTourDate''' – дата начала тура по путевке
 
** '''EndTourDate''' – дата окончания тура путевки
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода CheckReservation
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода CheckReservation
 
<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: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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
===CreatePaymentForDogovor (Создание платежа по путевке по выставленному инвойсу)===
 
Метод создает платеж по путевке, у которой выставлен инвойс.<br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''DgKey *''' – ключ путевки
 
* '''Payment *''' – размер платежа
 
Возвращаемый результат:<br />
 
* '''CreatePaymentForDogovorResult''' – результат выдачи
 
** '''OrderId''' – идентификатор платежа
 
В случае отсутствия созданного инвойса по путевке получим сообщение: "There is no invoice".
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода CreatePaymentForDogovor
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода CreatePaymentForDogovor
 
<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:Body>
 
      <CreatePaymentForDogovorResponse xmlns="http://www.megatec.ru/">
 
        <CreatePaymentForDogovorResult/>
 
        <orderId>2008</orderId>
 
      </CreatePaymentForDogovorResponse>
 
  </soap:Body>
 
</soap:Envelope>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
==Метод работы с квотами==
 
=== CheckQuota (Проверка доступности номера отеля на период)===
 
Метод возвращает информацию о доступности номера отеля на период. <br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''DateFrom''' – дата с
 
* '''DateTo''' – дата по
 
* '''HotelId *''' – ключ отеля
 
* '''RoomTypeId *''' – ключ типа комнаты (-1 для всех)
 
* '''RoomCategoryId *''' – ключ категории комнаты (-1 для всех)
 
Возвращаемый результат:<br />
 
* '''ServiceResult''' – результат поиска
 
* '''QuotaSimpleInfo''' – массив данных
 
** '''RoomTypeId''' – ключ типа комнаты
 
** '''RoomCategoryId''' – ключ категории комнаты
 
** '''Quota''' – информация о квоте (0 – на запрос, 1 – есть квота, 2 – стоп)
 
** '''RoomVariantName''' – наименование варианта комнаты (комбинации из таблицы RoomVariant)
 
** '''Date''' – не заполняется
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода CheckQuota
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода CheckQuota
 
<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: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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</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">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetQuotaInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода GetQuotaInfo
 
<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: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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
=== GetChangeQuotaAndStop (Получение информации по квотам и стопам в отеле)===
 
Метод передает информацию по квотам и стопам в отеле.
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''HotelKey *''' – ключ отеля
 
* '''Date''' – дата, с которой получаем изменения (если не отправляем, то берется текущая)
 
* '''UseRoomDescription *''' – как сопоставляем категорию и тип комнаты (через общее описание комнаты или по-отдельности)
 
* '''LoadQuaota *''' – загружать или нет изменения по квотам
 
* '''LoadStop *''' – загружать или нет изменения по стопам
 
Возвращаемый результат:<br />
 
* '''GetChangeQuotaAndStopResult''' – результат поиска
 
** '''QuotaStopInfo''' – массив данных
 
*** '''ID''' – не используется
 
*** '''SvKey''' – ключ сервис класса (для отеля  = 1)
 
*** '''Code''' – ключ отеля
 
*** '''SubCode1Name''' – название типа комнаты
 
*** '''SubCode1''' – ключ типа комнаты
 
*** '''SubCode2''' – не используется
 
*** '''SubCode3Name''' – название категории комнаты
 
*** '''SubCode3''' – ключ категории комнаты
 
*** '''RoomDescriptionID''' – ключ описания комнаты
 
*** '''RoomDescriptionName''' – название описания комнаты
 
*** '''Place''' – количество мест (2 и больше, 1 – мест мало или одно, 0 – нет мест в квоте, -1 – стоп отменен (если IsStop=true)  или квота удалена(если IsStop=false)), -2 – стоп отменен и квот при этом нет)
 
*** '''IsStop''' – стоит ли стоп на текущую дату
 
*** '''Date''' – дата текущей квоты (стопа)
 
*** '''UpdateDate''' – дата обновления
 
*** '''Release''' – релиз-период
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetChangeQuotaAndStop
 
<syntaxhighlight lang="java" enclose="div">
 
<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>
 
</syntaxhighlight>
 
Возвращаемый результат метода GetChangeQuotaAndStop
 
<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: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>
 
</syntaxhighlight>
 
</TD></TR></TABLE>
 
</div></div><br />
 
 
 
=== GetHotelQuotaStopInfo (Получение информации по отелям, у которых были изменения в квотах или стопах с определенной даты)===
 
Метод  возвращает отели, у которых были изменения в квотах или стопах с определенной даты.<br />
 
Принимаемые параметры запроса (* – обязательный):
 
* '''Guid *''' – идентификатор аутентификации (возвращается при запросе к методу [[Master-Interlook:IntegrationService#Connect (получение аутентификационного токена)|Connect]])<br />
 
* '''Date *''' – дата, с которой будем искать отели с измененными квотами или стопами
 
Возвращаемый результат:<br />
 
* '''GetHotelQuotaStopResult''' – результат поиска
 
** '''HotelQuotaStopInfo''' – массив данных
 
*** '''HotelKey''' – ключ отеля
 
*** '''UpdateDateQuota''' – дата последнего изменения в квотах по отелю
 
*** '''UpdateDateStop''' – дата последнего изменения в стопах по отелю
 
 
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:900px">Пример
 
<div class="mw-collapsible-content">
 
<TABLE STYLE="border: 0.1em dashed #2F6FAB; margin: 8px; padding: 8px" WIDTH="99%"><TR><TD>
 
Вызов метода GetHotelQuotaStopInfo
 
<syntaxhighlight lang="java" enclose="div">
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:meg="http://www.megatec.ru/">
 
   <soapenv:Header/>
 
   <soapenv:Body>
 
       <meg:GetHotelQuotaStopInfo>
 
 
         <!--Optional:-->
 
         <!--Optional:-->
 
         <meg:guid>99c047a9-a1e9-4a8c-b585-3c09239b3fa3</meg:guid>
 
         <meg:guid>99c047a9-a1e9-4a8c-b585-3c09239b3fa3</meg:guid>
Строка 6804: Строка 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">
Строка 6819: Строка 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/">
Строка 6863: Строка 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>