Протокол AV5 для интеграции систем продажи электронных билетов перевозчиков и системы GDS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

648 lines
26 KiB

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/XMLSchema"
  3. elementFormDefault="qualified"
  4. attributeFormDefault="qualified">
  5. <xs:simpleType name="IDType">
  6. <xs:restriction base="xs:string">
  7. <xs:maxLength value="36"/>
  8. <xs:minLength value="1"/>
  9. </xs:restriction>
  10. </xs:simpleType>
  11. <xs:simpleType name="NameType">
  12. <xs:restriction base="xs:string">
  13. <xs:maxLength value="100"/>
  14. <xs:minLength value="1"/>
  15. </xs:restriction>
  16. </xs:simpleType>
  17. <xs:simpleType name="OkatoType">
  18. <xs:restriction base="xs:string">
  19. <xs:length value="11"/>
  20. </xs:restriction>
  21. </xs:simpleType>
  22. <xs:simpleType name="InnType">
  23. <xs:restriction base="xs:string">
  24. <xs:maxLength value="16"/>
  25. <xs:minLength value="10"/>
  26. </xs:restriction>
  27. </xs:simpleType>
  28. <xs:simpleType name="SimpleStringType">
  29. <xs:restriction base="xs:string">
  30. <xs:maxLength value="100"/>
  31. <xs:minLength value="0"/>
  32. </xs:restriction>
  33. </xs:simpleType>
  34. <xs:complexType name="AbstractResponse">
  35. <xs:sequence>
  36. <xs:element name="Error" minOccurs="0">
  37. <xs:complexType>
  38. <xs:sequence>
  39. <xs:element name="code" type="xs:string" minOccurs="1"/>
  40. <xs:element name="message" type="xs:string" minOccurs="1"/>
  41. </xs:sequence>
  42. </xs:complexType>
  43. </xs:element>
  44. </xs:sequence>
  45. </xs:complexType>
  46. <xs:simpleType name="UidType">
  47. <xs:restriction base="xs:string">
  48. <xs:length value="36"/>
  49. </xs:restriction>
  50. </xs:simpleType>
  51. <xs:complexType name="RouteKey">
  52. <xs:sequence>
  53. <xs:element name="dispatchStationUid" type="UidType"/>
  54. <xs:element name="arrivalStationUid" type="UidType"/>
  55. <xs:element name="dispatchTime" type="xs:time"/>
  56. </xs:sequence>
  57. </xs:complexType>
  58. <xs:complexType name="Agent">
  59. <xs:sequence>
  60. <xs:element name="name" type="NameType" minOccurs="0"/>
  61. <xs:element name="inn" type="InnType" minOccurs="1"/>
  62. </xs:sequence>
  63. </xs:complexType>
  64. <xs:complexType name="Station">
  65. <xs:sequence>
  66. <xs:element name="id" type="IDType" minOccurs="1"/>
  67. <xs:element name="name" type="NameType" minOccurs="1"/>
  68. <xs:element name="okato" type="OkatoType" minOccurs="0"/>
  69. <xs:element name="region" type="SimpleStringType" minOccurs="0"/>
  70. </xs:sequence>
  71. </xs:complexType>
  72. <xs:simpleType name="TripType">
  73. <xs:restriction base="xs:string">
  74. <xs:enumeration value="INTERNATIONAL"/>
  75. <xs:enumeration value="INTERREGIONAL"/>
  76. <xs:enumeration value="ADJACENT_INTERREGIONAL"/>
  77. <xs:enumeration value="INTERMUNICIPAL"/>
  78. <xs:enumeration value="MUNICIPAL"/>
  79. </xs:restriction>
  80. </xs:simpleType>
  81. <xs:simpleType name="TripStatus">
  82. <xs:restriction base="xs:string">
  83. <xs:enumeration value="ON_SALE"/>
  84. <xs:enumeration value="SUSPENDED"/>
  85. <xs:enumeration value="CANCELED"/>
  86. <xs:enumeration value="DISPATCHED"/>
  87. <xs:enumeration value="UNKNOWN"/>
  88. </xs:restriction>
  89. </xs:simpleType>
  90. <xs:simpleType name="TripClass">
  91. <xs:restriction base="xs:string">
  92. <xs:enumeration value="REGULAR"/>
  93. <xs:enumeration value="CUSTOM"/>
  94. </xs:restriction>
  95. </xs:simpleType>
  96. <xs:simpleType name="TicketClass">
  97. <xs:restriction base="xs:string">
  98. <xs:enumeration value="PASSENGER"/>
  99. <xs:enumeration value="BAGGAGE"/>
  100. <xs:enumeration value="WITHOUT_SEAT"/>
  101. </xs:restriction>
  102. </xs:simpleType>
  103. <xs:simpleType name="GenderType">
  104. <xs:restriction base="xs:string">
  105. <xs:enumeration value="MALE"/>
  106. <xs:enumeration value="FEMALE"/>
  107. </xs:restriction>
  108. </xs:simpleType>
  109. <xs:simpleType name="ErrorCode">
  110. <xs:restriction base="xs:string">
  111. <xs:enumeration value="INTERNAL"/>
  112. <xs:enumeration value="NOT_FOUND"/>
  113. <xs:enumeration value="SEAT_OCCUPIED"/>
  114. <xs:enumeration value="PERSONAL_DATA_INCORRECT"/>
  115. </xs:restriction>
  116. </xs:simpleType>
  117. <xs:simpleType name="TicketStatus">
  118. <xs:restriction base="xs:string">
  119. <xs:enumeration value="RESERVED"/>
  120. <xs:enumeration value="SOLD"/>
  121. <xs:enumeration value="CANCELED"/>
  122. <xs:enumeration value="RETURNED"/>
  123. </xs:restriction>
  124. </xs:simpleType>
  125. <xs:complexType name="Trip">
  126. <xs:sequence>
  127. <xs:element name="id" type="IDType" minOccurs="1"/>
  128. <xs:element name="name" type="NameType" minOccurs="1"/>
  129. <xs:element name="num" type="xs:string" minOccurs="0"/>
  130. <xs:element name="dispatchDate" type="xs:dateTime" minOccurs="1"/>
  131. <xs:element name="arrivalDate" type="xs:dateTime" minOccurs="1"/>
  132. <xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
  133. <xs:element name="dispatchStationName" type="NameType" minOccurs="1"/>
  134. <xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
  135. <xs:element name="arrivalStationName" type="NameType" minOccurs="1"/>
  136. <xs:element name="price" type="xs:decimal" minOccurs="1"/>
  137. <xs:element name="carrierName" type="NameType" minOccurs="0"/>
  138. <xs:element name="carrierInn" type="InnType" minOccurs="1"/>
  139. <xs:element name="busInfo" type="xs:string" minOccurs="1"/>
  140. <xs:element name="platform" type="xs:string" minOccurs="0"/>
  141. <xs:element name="type" type="TripType" minOccurs="1"/>
  142. <xs:element name="status" type="TripStatus" minOccurs="1"/>
  143. <xs:element name="tripClass" type="TripClass" minOccurs="0"/>
  144. <xs:element name="seatCount" type="xs:int" minOccurs="1"/>
  145. <xs:element name="freeSeatCount" type="xs:int" minOccurs="1"/>
  146. <xs:element name="routeKey" type="RouteKey" minOccurs="0"/>
  147. </xs:sequence>
  148. </xs:complexType>
  149. <xs:complexType name="Seat">
  150. <xs:sequence>
  151. <xs:element name="id" type="IDType" minOccurs="1"/>
  152. <xs:element name="num" type="xs:int" minOccurs="1"/>
  153. </xs:sequence>
  154. </xs:complexType>
  155. <xs:complexType name="Passenger">
  156. <xs:sequence>
  157. <xs:element name="firstName" type="xs:string" minOccurs="1"/>
  158. <xs:element name="lastName" type="xs:string" minOccurs="1"/>
  159. <xs:element name="middleName" type="xs:string" minOccurs="0"/>
  160. <xs:element name="docNum" type="xs:string" minOccurs="0"/>
  161. <xs:element name="docSeries" type="xs:string" minOccurs="0"/>
  162. <xs:element name="docTypeId" type="IDType" minOccurs="1"/>
  163. <xs:element name="birthday" type="xs:date" minOccurs="0"/>
  164. <xs:element name="citizenshipISO2" minOccurs="0">
  165. <xs:simpleType>
  166. <xs:restriction base="xs:string">
  167. <xs:length value="2"/>
  168. </xs:restriction>
  169. </xs:simpleType>
  170. </xs:element>
  171. <xs:element name="gender" type="GenderType" minOccurs="0"/>
  172. <xs:element name="phone" type="xs:string" minOccurs="0"/>
  173. <xs:element name="info" type="xs:string" minOccurs="0"/>
  174. </xs:sequence>
  175. </xs:complexType>
  176. <xs:complexType name="Sale">
  177. <xs:sequence>
  178. <xs:element name="seatId" type="IDType" minOccurs="0"/>
  179. <xs:element name="ticketTypeId" type="IDType" minOccurs="1"/>
  180. <xs:element name="Passenger" type="Passenger" minOccurs="0"/>
  181. </xs:sequence>
  182. </xs:complexType>
  183. <xs:complexType name="TripStop">
  184. <xs:sequence>
  185. <xs:element name="id" type="IDType" minOccurs="1"/>
  186. <xs:element name="name" type="NameType" minOccurs="1"/>
  187. <xs:element name="regionName" type="NameType" minOccurs="0"/>
  188. <xs:element name="dispatchDate" type="xs:dateTime" minOccurs="1"/>
  189. <xs:element name="arrivalDate" type="xs:dateTime" minOccurs="1"/>
  190. <xs:element name="stopTime" type="xs:int" minOccurs="0"/>
  191. <xs:element name="distance" type="xs:int" minOccurs="0"/>
  192. <xs:element name="price" type="xs:decimal" minOccurs="1"/>
  193. </xs:sequence>
  194. </xs:complexType>
  195. <xs:complexType name="TicketType">
  196. <xs:sequence>
  197. <xs:element name="id" type="IDType" minOccurs="1"/>
  198. <xs:element name="name" type="NameType" minOccurs="1"/>
  199. <xs:element name="price" type="xs:decimal" minOccurs="1"/>
  200. <xs:element name="ticketClass" type="TicketClass" minOccurs="1"/>
  201. </xs:sequence>
  202. </xs:complexType>
  203. <xs:complexType name="DocumentType">
  204. <xs:sequence>
  205. <xs:element name="id" type="IDType" minOccurs="1"/>
  206. <xs:element name="name" type="NameType" minOccurs="1"/>
  207. </xs:sequence>
  208. </xs:complexType>
  209. <xs:complexType name="Ticket">
  210. <xs:sequence>
  211. <xs:element name="id" type="IDType" minOccurs="1"/>
  212. <xs:element name="number" type="xs:string" minOccurs="0"/>
  213. <xs:element name="series" type="xs:string" minOccurs="0"/>
  214. <xs:element name="created" type="xs:dateTime" minOccurs="1"/>
  215. <xs:element name="returned" type="xs:dateTime" minOccurs="1"/>
  216. <xs:element name="status" type="TicketStatus" minOccurs="1"/>
  217. <xs:element name="ticketClass" type="TicketClass" minOccurs="1"/>
  218. <xs:element name="typeId" type="IDType" minOccurs="1"/>
  219. <xs:element name="routeNum" type="xs:string" minOccurs="0"/>
  220. <xs:element name="routeName" type="NameType" minOccurs="1"/>
  221. <xs:element name="busInfo" type="xs:string" minOccurs="1"/>
  222. <xs:element name="carrierName" type="xs:string" minOccurs="0"/>
  223. <xs:element name="carrierInn" type="InnType" minOccurs="1"/>
  224. <xs:element name="platform" type="xs:string" minOccurs="0"/>
  225. <xs:element name="dispatchDate" type="xs:dateTime" minOccurs="1"/>
  226. <xs:element name="arrivalDate" type="xs:dateTime" minOccurs="1"/>
  227. <xs:element name="dispatchStation" type="xs:string" minOccurs="1"/>
  228. <xs:element name="arrivalStation" type="xs:string" minOccurs="1"/>
  229. <xs:element name="seatNum" type="xs:int" minOccurs="1"/>
  230. <xs:element name="Passenger" type="Passenger" minOccurs="0"/>
  231. <xs:element name="fare" type="xs:decimal" minOccurs="1"/>
  232. <xs:element name="fees" type="xs:decimal" minOccurs="1"/>
  233. <xs:element name="repayment" type="xs:decimal" minOccurs="0"/>
  234. <xs:element name="insuranceInfo" type="xs:string" minOccurs="1"/>
  235. </xs:sequence>
  236. </xs:complexType>
  237. <xs:complexType name="TicketFare">
  238. <xs:sequence>
  239. <xs:element name="ticketId" type="IDType" minOccurs="1"/>
  240. <xs:element name="fare" type="xs:decimal" minOccurs="1"/>
  241. </xs:sequence>
  242. </xs:complexType>
  243. <xs:element name="EchoRequest">
  244. <xs:complexType>
  245. <xs:sequence>
  246. <xs:element name="message" type="xs:string" minOccurs="1"/>
  247. </xs:sequence>
  248. </xs:complexType>
  249. </xs:element>
  250. <xs:element name="EchoResponse">
  251. <xs:complexType>
  252. <xs:complexContent>
  253. <xs:extension base="AbstractResponse">
  254. <xs:sequence>
  255. <xs:element name="Body">
  256. <xs:complexType>
  257. <xs:sequence>
  258. <xs:element name="message" minOccurs="1" type="xs:string"/>
  259. </xs:sequence>
  260. </xs:complexType>
  261. </xs:element>
  262. </xs:sequence>
  263. </xs:extension>
  264. </xs:complexContent>
  265. </xs:complexType>
  266. </xs:element>
  267. <xs:element name="GetDispatchStationsRequest">
  268. <xs:complexType>
  269. </xs:complexType>
  270. </xs:element>
  271. <xs:element name="GetDispatchStationsResponse">
  272. <xs:complexType>
  273. <xs:complexContent>
  274. <xs:extension base="AbstractResponse">
  275. <xs:sequence>
  276. <xs:element name="Body">
  277. <xs:complexType>
  278. <xs:sequence>
  279. <xs:element name="Station" type="Station" maxOccurs="unbounded"/>
  280. </xs:sequence>
  281. </xs:complexType>
  282. </xs:element>
  283. </xs:sequence>
  284. </xs:extension>
  285. </xs:complexContent>
  286. </xs:complexType>
  287. </xs:element>
  288. <xs:element name="GetArrivalStationsRequest">
  289. <xs:complexType>
  290. <xs:sequence>
  291. <xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
  292. </xs:sequence>
  293. </xs:complexType>
  294. </xs:element>
  295. <xs:element name="GetArrivalStationsResponse">
  296. <xs:complexType>
  297. <xs:complexContent>
  298. <xs:extension base="AbstractResponse">
  299. <xs:sequence>
  300. <xs:element name="Body">
  301. <xs:complexType>
  302. <xs:sequence>
  303. <xs:element name="Station" type="Station" maxOccurs="unbounded"/>
  304. </xs:sequence>
  305. </xs:complexType>
  306. </xs:element>
  307. </xs:sequence>
  308. </xs:extension>
  309. </xs:complexContent>
  310. </xs:complexType>
  311. </xs:element>
  312. <xs:element name="SearchTripsRequest">
  313. <xs:complexType>
  314. <xs:sequence>
  315. <xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
  316. <xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
  317. <xs:element name="date" type="xs:date" minOccurs="1"/>
  318. <xs:element name="Agent" type="Agent" minOccurs="0"/>
  319. </xs:sequence>
  320. </xs:complexType>
  321. </xs:element>
  322. <xs:element name="SearchTripsResponse">
  323. <xs:complexType>
  324. <xs:complexContent>
  325. <xs:extension base="AbstractResponse">
  326. <xs:sequence>
  327. <xs:element name="Body">
  328. <xs:complexType>
  329. <xs:sequence>
  330. <xs:element name="Trip" type="Trip" maxOccurs="unbounded"/>
  331. </xs:sequence>
  332. </xs:complexType>
  333. </xs:element>
  334. </xs:sequence>
  335. </xs:extension>
  336. </xs:complexContent>
  337. </xs:complexType>
  338. </xs:element>
  339. <xs:element name="GetTicketTypesRequest">
  340. <xs:complexType>
  341. <xs:sequence>
  342. <xs:element name="tripId" type="IDType" minOccurs="1"/>
  343. <xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
  344. <xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
  345. <xs:element name="Agent" type="Agent" minOccurs="0"/>
  346. </xs:sequence>
  347. </xs:complexType>
  348. </xs:element>
  349. <xs:element name="GetTicketTypesResponse">
  350. <xs:complexType>
  351. <xs:complexContent>
  352. <xs:extension base="AbstractResponse">
  353. <xs:sequence>
  354. <xs:element name="Body">
  355. <xs:complexType>
  356. <xs:sequence>
  357. <xs:element name="TicketType" type="TicketType" maxOccurs="unbounded" minOccurs="1"/>
  358. </xs:sequence>
  359. </xs:complexType>
  360. </xs:element>
  361. </xs:sequence>
  362. </xs:extension>
  363. </xs:complexContent>
  364. </xs:complexType>
  365. </xs:element>
  366. <xs:element name="GetDocumentTypesRequest">
  367. <xs:complexType>
  368. <xs:sequence>
  369. <xs:element name="tripId" type="IDType" minOccurs="1"/>
  370. <xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
  371. <xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
  372. </xs:sequence>
  373. </xs:complexType>
  374. </xs:element>
  375. <xs:element name="GetDocumentTypesResponse">
  376. <xs:complexType>
  377. <xs:complexContent>
  378. <xs:extension base="AbstractResponse">
  379. <xs:sequence>
  380. <xs:element name="Body">
  381. <xs:complexType>
  382. <xs:sequence>
  383. <xs:element name="DocumentType" type="DocumentType" maxOccurs="unbounded" minOccurs="1"/>
  384. </xs:sequence>
  385. </xs:complexType>
  386. </xs:element>
  387. </xs:sequence>
  388. </xs:extension>
  389. </xs:complexContent>
  390. </xs:complexType>
  391. </xs:element>
  392. <xs:element name="GetTripStopsRequest">
  393. <xs:complexType>
  394. <xs:sequence>
  395. <xs:element name="tripId" type="IDType" minOccurs="1"/>
  396. </xs:sequence>
  397. </xs:complexType>
  398. </xs:element>
  399. <xs:element name="GetTripStopsResponse">
  400. <xs:complexType>
  401. <xs:complexContent>
  402. <xs:extension base="AbstractResponse">
  403. <xs:sequence>
  404. <xs:element name="Body">
  405. <xs:complexType>
  406. <xs:sequence>
  407. <xs:element name="Stop" type="TripStop" maxOccurs="unbounded" minOccurs="1"/>
  408. </xs:sequence>
  409. </xs:complexType>
  410. </xs:element>
  411. </xs:sequence>
  412. </xs:extension>
  413. </xs:complexContent>
  414. </xs:complexType>
  415. </xs:element>
  416. <xs:element name="BookOrderRequest">
  417. <xs:complexType>
  418. <xs:sequence>
  419. <xs:element name="tripId" type="IDType" minOccurs="1"/>
  420. <xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
  421. <xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
  422. <xs:element name="Sale" type="Sale" minOccurs="0" maxOccurs="unbounded"/>
  423. <xs:element name="Agent" type="Agent" minOccurs="0"/>
  424. </xs:sequence>
  425. </xs:complexType>
  426. </xs:element>
  427. <xs:element name="BookOrderResponse">
  428. <xs:complexType>
  429. <xs:complexContent>
  430. <xs:extension base="AbstractResponse">
  431. <xs:sequence>
  432. <xs:element name="Body">
  433. <xs:complexType>
  434. <xs:sequence>
  435. <xs:element name="orderId" type="IDType" minOccurs="1"/>
  436. <xs:element name="lifetime" type="xs:int" minOccurs="1"/>
  437. </xs:sequence>
  438. </xs:complexType>
  439. </xs:element>
  440. </xs:sequence>
  441. </xs:extension>
  442. </xs:complexContent>
  443. </xs:complexType>
  444. </xs:element>
  445. <xs:element name="GetOrderRequest">
  446. <xs:complexType>
  447. <xs:sequence>
  448. <xs:element name="orderId" type="IDType" minOccurs="1"/>
  449. </xs:sequence>
  450. </xs:complexType>
  451. </xs:element>
  452. <xs:element name="GetOrderResponse">
  453. <xs:complexType>
  454. <xs:complexContent>
  455. <xs:extension base="AbstractResponse">
  456. <xs:sequence>
  457. <xs:element name="Body">
  458. <xs:complexType>
  459. <xs:sequence>
  460. <xs:element name="orderId" type="IDType" minOccurs="1"/>
  461. <xs:element name="Ticket" type="Ticket" minOccurs="1" maxOccurs="unbounded"/>
  462. </xs:sequence>
  463. </xs:complexType>
  464. </xs:element>
  465. </xs:sequence>
  466. </xs:extension>
  467. </xs:complexContent>
  468. </xs:complexType>
  469. </xs:element>
  470. <xs:element name="ConfirmOrderRequest">
  471. <xs:complexType>
  472. <xs:sequence>
  473. <xs:element name="orderId" type="IDType" minOccurs="1"/>
  474. <xs:element name="Agent" type="Agent" minOccurs="1"/>
  475. <xs:element name="TicketFare" maxOccurs="unbounded" type="TicketFare"/>
  476. </xs:sequence>
  477. </xs:complexType>
  478. </xs:element>
  479. <xs:element name="ConfirmOrderResponse">
  480. <xs:complexType>
  481. <xs:complexContent>
  482. <xs:extension base="AbstractResponse">
  483. <xs:sequence>
  484. <xs:element name="Body">
  485. <xs:complexType>
  486. <xs:sequence>
  487. <xs:element name="orderId" type="IDType" minOccurs="1"/>
  488. <xs:element name="Ticket" type="Ticket" minOccurs="1" maxOccurs="unbounded"/>
  489. </xs:sequence>
  490. </xs:complexType>
  491. </xs:element>
  492. </xs:sequence>
  493. </xs:extension>
  494. </xs:complexContent>
  495. </xs:complexType>
  496. </xs:element>
  497. <xs:element name="CancelTicketRequest">
  498. <xs:complexType>
  499. <xs:sequence>
  500. <xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
  501. <xs:element name="Agent" type="Agent" minOccurs="1"/>
  502. </xs:sequence>
  503. </xs:complexType>
  504. </xs:element>
  505. <xs:element name="CancelTicketResponse">
  506. <xs:complexType>
  507. <xs:complexContent>
  508. <xs:extension base="AbstractResponse">
  509. <xs:sequence>
  510. <xs:element name="Body">
  511. <xs:complexType>
  512. <xs:sequence>
  513. <xs:element name="Ticket" type="Ticket" minOccurs="1" maxOccurs="unbounded"/>
  514. </xs:sequence>
  515. </xs:complexType>
  516. </xs:element>
  517. </xs:sequence>
  518. </xs:extension>
  519. </xs:complexContent>
  520. </xs:complexType>
  521. </xs:element>
  522. <xs:element name="ReturnTicketRequest">
  523. <xs:complexType>
  524. <xs:sequence>
  525. <xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
  526. <xs:element name="Agent" type="Agent" minOccurs="1"/>
  527. </xs:sequence>
  528. </xs:complexType>
  529. </xs:element>
  530. <xs:element name="ReturnTicketResponse">
  531. <xs:complexType>
  532. <xs:complexContent>
  533. <xs:extension base="AbstractResponse">
  534. <xs:sequence>
  535. <xs:element name="Body">
  536. <xs:complexType>
  537. <xs:sequence>
  538. <xs:element name="Ticket" type="Ticket" minOccurs="1" maxOccurs="unbounded"/>
  539. </xs:sequence>
  540. </xs:complexType>
  541. </xs:element>
  542. </xs:sequence>
  543. </xs:extension>
  544. </xs:complexContent>
  545. </xs:complexType>
  546. </xs:element>
  547. <xs:element name="UpdateTicketRequest">
  548. <xs:complexType>
  549. <xs:sequence>
  550. <xs:element name="ticketId" type="IDType"/>
  551. <xs:element name="Passenger" type="Passenger" />
  552. </xs:sequence>
  553. </xs:complexType>
  554. </xs:element>
  555. <xs:element name="UpdateTicketResponse">
  556. <xs:complexType>
  557. <xs:complexContent>
  558. <xs:restriction base="AbstractResponse"/>
  559. </xs:complexContent>
  560. </xs:complexType>
  561. </xs:element>
  562. <xs:element name="GetFreeSeatsRequest">
  563. <xs:complexType>
  564. <xs:choice>
  565. <xs:sequence>
  566. <xs:element name="tripId" type="IDType" minOccurs="1"/>
  567. <xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
  568. <xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
  569. </xs:sequence>
  570. </xs:choice>
  571. </xs:complexType>
  572. </xs:element>
  573. <xs:element name="GetFreeSeatsResponse">
  574. <xs:complexType>
  575. <xs:complexContent>
  576. <xs:extension base="AbstractResponse">
  577. <xs:sequence>
  578. <xs:element name="Body">
  579. <xs:complexType>
  580. <xs:choice>
  581. <xs:element name="Seat" type="Seat" maxOccurs="unbounded"/>
  582. </xs:choice>
  583. </xs:complexType>
  584. </xs:element>
  585. </xs:sequence>
  586. </xs:extension>
  587. </xs:complexContent>
  588. </xs:complexType>
  589. </xs:element>
  590. </xs:schema>