Протокол 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.

71 lines
2.4 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:complexType name="AbstractResponse">
  12. <xs:sequence>
  13. <xs:element name="Error" minOccurs="0">
  14. <xs:complexType>
  15. <xs:sequence>
  16. <xs:element name="code" type="xs:string" minOccurs="1"/>
  17. <xs:element name="message" type="xs:string" minOccurs="1"/>
  18. </xs:sequence>
  19. </xs:complexType>
  20. </xs:element>
  21. </xs:sequence>
  22. </xs:complexType>
  23. <xs:simpleType name="UidType">
  24. <xs:restriction base="xs:string">
  25. <xs:length value="36"/>
  26. </xs:restriction>
  27. </xs:simpleType>
  28. <xs:complexType name="RouteKey">
  29. <xs:sequence>
  30. <xs:element name="dispatchStationUid" type="UidType"/>
  31. <xs:element name="arrivalStationUid" type="UidType"/>
  32. <xs:element name="dispatchTime" type="xs:time"/>
  33. </xs:sequence>
  34. </xs:complexType>
  35. <xs:simpleType name="ErrorCode">
  36. <xs:restriction base="xs:string">
  37. <xs:enumeration value="INTERNAL"/>
  38. <xs:enumeration value="NOT_FOUND"/>
  39. <xs:enumeration value="SEAT_OCCUPIED"/>
  40. <xs:enumeration value="PERSONAL_DATA_INCORRECT"/>
  41. </xs:restriction>
  42. </xs:simpleType>
  43. <xs:element name="UpdateTicketRequest">
  44. <xs:complexType>
  45. <c:sequence>
  46. <xs:element name="tripId" type="IDType" minOccurs="1"/>
  47. <xs:element name="RouteKey" type="RouteKey" minOccurs="1"/>
  48. <xs:element name="date" type="xs:date" minOccurs="1"/>
  49. <xs:element name="ticketId" type="IDType" minOccurs="1"/>
  50. <xs:element name="isGone" type="xs:boolean" minOccurs="0"/>
  51. </c:sequence>
  52. </xs:complexType>
  53. </xs:element>
  54. <xs:element name="UpdateTicketResponse">
  55. <xs:complexType>
  56. <xs:complexContent>
  57. <xs:extension base="AbstractResponse"/>
  58. </xs:complexContent>
  59. </xs:complexType>
  60. </xs:element>
  61. </xs:schema>