XML - результаты поиска/Поиск туров — различия между версиями
Материал из TourClient - Руководство пользователя
Akme (обсуждение | вклад) |
Jeka (обсуждение | вклад) |
||
Строка 5: | Строка 5: | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<root> | <root> | ||
− | < | + | <Tours> |
− | < | + | <Tour> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<id>3145968261@511</id> | <id>3145968261@511</id> | ||
+ | <operatorId>308</operatorId> | ||
+ | |||
<cityId>1000</cityId> | <cityId>1000</cityId> | ||
<countryId>12</countryId> | <countryId>12</countryId> | ||
− | |||
<roomSizeId>14</roomSizeId> | <roomSizeId>14</roomSizeId> | ||
− | <departure | + | |
− | + | <departure>2014-07-10</departure> | |
− | + | <arrival>2014-07-17</arrival> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <arrival | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<duration>7</duration> | <duration>7</duration> | ||
<ticket>1</ticket> | <ticket>1</ticket> | ||
+ | <directFlight>false</directFlight> | ||
+ | |||
<price>18000</price> | <price>18000</price> | ||
− | <currency | + | <currency>2</currency> |
− | + | ||
− | + | ||
− | + | ||
<priceIsApprox>true</priceIsApprox> | <priceIsApprox>true</priceIsApprox> | ||
+ | |||
<priceOrig>500</priceOrig> | <priceOrig>500</priceOrig> | ||
− | <currencyOrig> | + | <currencyOrig>1</currencyOrig> |
− | + | ||
− | + | ||
− | + | ||
<prevPriceOrig>0</prevPriceOrig> | <prevPriceOrig>0</prevPriceOrig> | ||
<priceDiffPercent>0</priceDiffPercent> | <priceDiffPercent>0</priceDiffPercent> | ||
+ | |||
<ch1From>0</ch1From> | <ch1From>0</ch1From> | ||
<ch1Till>0</ch1Till> | <ch1Till>0</ch1Till> | ||
<ch2From>0</ch2From> | <ch2From>0</ch2From> | ||
<ch2Till>0</ch2Till> | <ch2Till>0</ch2Till> | ||
− | + | ||
<resortId>4</resortId> | <resortId>4</resortId> | ||
<resortPlaceId>2392</resortPlaceId> | <resortPlaceId>2392</resortPlaceId> | ||
Строка 96: | Строка 42: | ||
<roomTypeId>4</roomTypeId> | <roomTypeId>4</roomTypeId> | ||
<roomViewId>22</roomViewId> | <roomViewId>22</roomViewId> | ||
− | + | ||
− | <isStop></isStop> | + | <isStop>false</isStop> |
− | <isStopAllocation></isStopAllocation> | + | <isStopAllocation>false</isStopAllocation> |
− | <isStopFlight></isStopFlight> | + | <isStopFlight>false</isStopFlight> |
− | + | ||
− | + | <OnlineSeatsState> | |
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
<allocation>1</allocation> | <allocation>1</allocation> | ||
<flightThereEco>1</flightThereEco> | <flightThereEco>1</flightThereEco> | ||
Строка 111: | Строка 53: | ||
<flightThereBus>2</flightThereBus> | <flightThereBus>2</flightThereBus> | ||
<flightBackBus>2</flightBackBus> | <flightBackBus>2</flightBackBus> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<isStopFlight>false</isStopFlight> | <isStopFlight>false</isStopFlight> | ||
<isStopAllocation>false</isStopAllocation> | <isStopAllocation>false</isStopAllocation> | ||
− | </ | + | </OnlineSeatsState> |
− | < | + | |
+ | <ExtraCharges> | ||
+ | <visa> | ||
+ | <min>25</min> | ||
+ | <max>25</max> | ||
+ | <currency>1</currency> | ||
+ | </visa> | ||
+ | <feeFuel> | ||
+ | <min>0</min> | ||
+ | <max>40</max> | ||
+ | <currency>1</currency> | ||
+ | </feeFuel> | ||
+ | </ExtraCharges> | ||
+ | |||
+ | |||
+ | <City> | ||
<id>1000</id> | <id>1000</id> | ||
<name>Москва</name> | <name>Москва</name> | ||
− | + | </City> | |
− | + | ||
− | + | <Country> | |
− | + | ||
− | < | + | |
<id>12</id> | <id>12</id> | ||
<name>Египет</name> | <name>Египет</name> | ||
− | + | </Country> | |
− | < | + | |
− | + | <Operator> | |
− | + | <id>308</id> | |
− | < | + | <name>Troyka</name> |
+ | </Operator> | ||
+ | |||
+ | <RoomSize> | ||
<id>14</id> | <id>14</id> | ||
<name>DBL</name> | <name>DBL</name> | ||
Строка 146: | Строка 92: | ||
<adults>2</adults> | <adults>2</adults> | ||
<children>0</children> | <children>0</children> | ||
− | </ | + | </RoomSize> |
− | < | + | |
+ | <Resort> | ||
<id>4</id> | <id>4</id> | ||
<name>Хургада</name> | <name>Хургада</name> | ||
− | + | </Resort> | |
− | < | + | |
− | < | + | <ResortPlace> |
− | </ | + | <id>2392</id> |
− | + | <name>Эль-Дахар</name> | |
− | < | + | </ResortPlace> |
+ | |||
+ | <Allocation> | ||
<id>12395</id> | <id>12395</id> | ||
<name>Sea View</name> | <name>Sea View</name> | ||
− | <rate | + | <rate>2.5</rate> |
− | + | </Allocation> | |
− | + | ||
− | + | <AllocCat> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
<id>7</id> | <id>7</id> | ||
<name>2*</name> | <name>2*</name> | ||
− | </ | + | </AllocCat> |
− | < | + | |
+ | <Meal> | ||
<id>1</id> | <id>1</id> | ||
<name>AI</name> | <name>AI</name> | ||
− | |||
<description>питание+напитки местного производства</description> | <description>питание+напитки местного производства</description> | ||
− | </ | + | </Meal> |
− | < | + | |
+ | <RoomType> | ||
<id>13</id> | <id>13</id> | ||
<name>Executive</name> | <name>Executive</name> | ||
<description>улучш. номер "Executive"</description> | <description>улучш. номер "Executive"</description> | ||
− | + | </RoomType> | |
− | + | ||
− | + | <RoomView> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
<id>22</id> | <id>22</id> | ||
<name>ROH</name> | <name>ROH</name> | ||
− | |||
<description>без опред. вида из номера</description> | <description>без опред. вида из номера</description> | ||
− | </ | + | </RoomView> |
− | + | ||
− | </ | + | </Tour> |
− | </ | + | </Tours> |
− | </root> | + | </root> |
</source> | </source> |
Версия 12:22, 30 июня 2014
Данные тура
<?xml version="1.0" encoding="UTF-8"?> <root> <Tours> <Tour> <id>3145968261@511</id> <operatorId>308</operatorId> <cityId>1000</cityId> <countryId>12</countryId> <roomSizeId>14</roomSizeId> <departure>2014-07-10</departure> <arrival>2014-07-17</arrival> <duration>7</duration> <ticket>1</ticket> <directFlight>false</directFlight> <price>18000</price> <currency>2</currency> <priceIsApprox>true</priceIsApprox> <priceOrig>500</priceOrig> <currencyOrig>1</currencyOrig> <prevPriceOrig>0</prevPriceOrig> <priceDiffPercent>0</priceDiffPercent> <ch1From>0</ch1From> <ch1Till>0</ch1Till> <ch2From>0</ch2From> <ch2Till>0</ch2Till> <resortId>4</resortId> <resortPlaceId>2392</resortPlaceId> <allocationId>12395</allocationId> <allocCatId>7</allocCatId> <mealId>2</mealId> <roomTypeId>4</roomTypeId> <roomViewId>22</roomViewId> <isStop>false</isStop> <isStopAllocation>false</isStopAllocation> <isStopFlight>false</isStopFlight> <OnlineSeatsState> <allocation>1</allocation> <flightThereEco>1</flightThereEco> <flightBackEco>1</flightBackEco> <flightThereBus>2</flightThereBus> <flightBackBus>2</flightBackBus> <isStopFlight>false</isStopFlight> <isStopAllocation>false</isStopAllocation> </OnlineSeatsState> <ExtraCharges> <visa> <min>25</min> <max>25</max> <currency>1</currency> </visa> <feeFuel> <min>0</min> <max>40</max> <currency>1</currency> </feeFuel> </ExtraCharges> <City> <id>1000</id> <name>Москва</name> </City> <Country> <id>12</id> <name>Египет</name> </Country> <Operator> <id>308</id> <name>Troyka</name> </Operator> <RoomSize> <id>14</id> <name>DBL</name> <description>2-е взрослых</description> <adults>2</adults> <children>0</children> </RoomSize> <Resort> <id>4</id> <name>Хургада</name> </Resort> <ResortPlace> <id>2392</id> <name>Эль-Дахар</name> </ResortPlace> <Allocation> <id>12395</id> <name>Sea View</name> <rate>2.5</rate> </Allocation> <AllocCat> <id>7</id> <name>2*</name> </AllocCat> <Meal> <id>1</id> <name>AI</name> <description>питание+напитки местного производства</description> </Meal> <RoomType> <id>13</id> <name>Executive</name> <description>улучш. номер "Executive"</description> </RoomType> <RoomView> <id>22</id> <name>ROH</name> <description>без опред. вида из номера</description> </RoomView> </Tour> </Tours> </root>
Статусы
Запрос
<?xml version="1.0" encoding="UTF-8"?> <root> <city>111</city> <country>111</country> <roomSize>14</roomSize> <resort> <id>111</id> <id>222</id> <id>333</id> </resort> <resortPlace> <id>111</id> <id>222</id> <id>333</id> </resortPlace> <allocation> <id>111</id> <id>222</id> <id>333</id> </allocation> <allocationType>...</allocationType> <restType>...</restType> <allocCat>...</allocCat> <meal>...</meal> <thRateIndex>1</thRateIndex> <priceFrom>500</priceFrom> <priceTill>50000</priceTill> <durationf>.</durationf> <durationt>.</durationt> <ticket>.</ticket> <departuref>.</departuref> <departuret>.</departuret> <rate>3.56</rate> <currency></currency> <childAge1></childAge1> <childAge2></childAge2> <roomViewType></roomViewType> <roomApartType></roomApartType> <allocPlaceType></allocPlaceType> <allocPlaceValue></allocPlaceValue> <operator></operator> <page></page> <pageSize></pageSize> <__key></__key> </root>