-
Notifications
You must be signed in to change notification settings - Fork 14
/
IBIS-IP_TicketInformationService_V1.0.xsd
130 lines (130 loc) · 6.58 KB
/
IBIS-IP_TicketInformationService_V1.0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0"?>
<!-- Mit XMLSpy v2012 rel. 2 sp1 (http://www.altova.com) von Dirk Weißer (INIT GmbH) bearbeitet -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="IBIS-IP_common_V1.0.xsd"/>
<xs:include schemaLocation="IBIS-IP_Enumerations_V1.0.xsd"/>
<!--==== TicketingService Operations ====-->
<xs:group name="TicketingServiceGroup">
<xs:sequence>
<xs:element name="TicketingService.SetRazziaRequest" type="TicketingService.SetRazziaRequestStructure"/>
<xs:element name="TicketingService.GetTariffInformationResponse" type="TicketingService.GetTariffInformationResponseStructure"/>
<xs:element name="TicketingService.RetrieveTariffInformationRequest" type="TicketingService.RetrieveTariffInformationRequestStructure"/>
<xs:element name="TicketingService.RetrieveTariffInformationResponse" type="TicketingService.GetTariffInformationResponseStructure"/>
<xs:element name="TicketingService.ValidateTicketRequest" type="TicketingService.ValidateTicketRequestStructure"/>
<xs:element name="TicketingService.ValidateTicketResponse" type="TicketingService.ValidateTicketResponseStructure"/>
<xs:element name="TicketingService.GetValidationResult" type="TicketingService.GetValidationResultResponseStructure"/>
</xs:sequence>
</xs:group>
<!--=== ServiceDefinitions ===-->
<!--++ SetRazzia ++-->
<xs:element name="TicketingService.SetRazziaRequest" type="TicketingService.SetRazziaRequestStructure"/>
<xs:complexType name="TicketingService.SetRazziaRequestStructure">
<xs:sequence>
<xs:element name="TicketInformationRazziaStatus" type="TicketRazziaInformationEnumeration"/>
</xs:sequence>
</xs:complexType>
<!--++ GetTariffInformation ++-->
<xs:element name="TicketingService.GetTariffInformationResponse" type="TicketingService.GetTariffInformationResponseStructure"/>
<xs:complexType name="TicketingService.GetTariffInformationResponseStructure">
<xs:choice>
<xs:element name="TicketingService.GetTariffInformationResponseData" type="TicketingService.GetTariffInformationResponseDataStructure"/>
<xs:element name="OperationErrorMessage" type="IBIS-IP.string"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="TicketingService.GetTariffInformationResponseDataStructure">
<xs:sequence>
<xs:element name="DefaultLanguage" type="IBIS-IP.language"/>
<xs:element name="TimeStamp" type="IBIS-IP.dateTime"/>
<xs:group ref="TariffInformationGroup"/>
</xs:sequence>
</xs:complexType>
<!--++ RetrieveTariffInformation ++-->
<xs:element name="TicketingService.RetrieveTariffInformationRequest" type="TicketingService.RetrieveTariffInformationRequestStructure"/>
<xs:complexType name="TicketingService.RetrieveTariffInformationRequestStructure">
<xs:sequence>
<xs:element name="TripRef" type="IBIS-IP.NMTOKEN"/>
<xs:element name="LineRef" type="IBIS-IP.NMTOKEN"/>
<xs:element name="StopRef" type="IBIS-IP.NMTOKEN"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TicketingService.RetrieveTariffInformationResponse" type="TicketingService.GetTariffInformationResponseStructure"/>
<!--++ ValidateTicket ++-->
<xs:element name="TicketingService.ValidateTicketRequest" type="TicketingService.ValidateTicketRequestStructure"/>
<xs:complexType name="TicketingService.ValidateTicketRequestStructure">
<xs:sequence>
<xs:element name="CardType" type="CardType"/>
<xs:element name="CardApplInformation" type="CardApplInformations" minOccurs="0"/>
<xs:group ref="CardTicketDataBlocks"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TicketingService.ValidateTicketResponse" type="TicketingService.ValidateTicketResponseStructure"/>
<xs:complexType name="TicketingService.ValidateTicketResponseStructure">
<xs:choice>
<xs:element name="TicketingService.ValidationResponseData" type="TicketingService.ValidateTicketResponseDataStructure"/>
<xs:element name="OperationErrorMessage" type="IBIS-IP.string"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="TicketingService.ValidateTicketResponseDataStructure">
<xs:sequence>
<xs:element name="TimeStamp" type="IBIS-IP.dateTime"/>
<xs:element name="GlobalCardStatus" type="GlobalCardStatus"/>
<xs:element name="CardType" type="CardType"/>
<xs:group ref="CardApplikationValidation" minOccurs="0"/>
<xs:group ref="CardDataValidation"/>
</xs:sequence>
</xs:complexType>
<!--++ GetValidationResult ++-->
<xs:element name="TicketingService.GetValidationResult" type="TicketingService.GetValidationResultResponseStructure"/>
<xs:complexType name="TicketingService.GetValidationResultResponseStructure">
<xs:choice>
<xs:element name="ValidationResultData" type="TicketingService.ValidationResultDataStructure"/>
<xs:element name="OperationErrorMessage" type="IBIS-IP.string"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="TicketingService.ValidationResultDataStructure">
<xs:sequence>
<xs:element name="TimeStamp" type="IBIS-IP.dateTime"/>
<xs:element name="ValidationResult" type="TicketValidationEnumeration"/>
</xs:sequence>
</xs:complexType>
<!--==== Group Definitions ====-->
<xs:group name="CardApplikationValidation">
<xs:sequence>
<xs:element name="CardApplStatusCode" type="IBIS-IP.unsignedInt">
<xs:annotation>
<xs:documentation>Code according EN 1545</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CardApplikationInformation" type="CardApplInformations"/>
</xs:sequence>
</xs:group>
<xs:group name="CardDataValidation">
<xs:sequence>
<xs:element name="CardValidationCode" type="IBIS-IP.unsignedInt">
<xs:annotation>
<xs:documentation>Validatiocode according KA-Spezification of Cardticketdata append fom data</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CardTicketData" type="CardTicketData"/>
</xs:sequence>
</xs:group>
<xs:group name="CardTicketDataBlocks">
<xs:sequence>
<xs:element name="NumberOfCardTicketDataBlocks" type="IBIS-IP.unsignedInt"/>
<xs:element name="CardTicketDataBlock" type="CardTicketData" maxOccurs="unbounded"/>
</xs:sequence>
</xs:group>
<xs:group name="TariffInformationGroup">
<xs:sequence>
<xs:element name="TripRef" type="IBIS-IP.NMTOKEN"/>
<xs:element name="Line" type="LineInformationStructure"/>
<xs:element name="StopPointTariffInformation" type="StopPointTariffInformationStructure"/>
<xs:element name="ShortTripStopList" type="ShortTripStopListStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>This are the stops
for a short trip ticket</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
</xs:schema>