Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple BookingNotes #370

Merged
merged 13 commits into from
Jun 29, 2023
37 changes: 29 additions & 8 deletions OJP/OJP_FareSupport.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
<xs:annotation>
<xs:documentation>========================================== Fare Authority ==========================================</xs:documentation>
</xs:annotation>
<xs:complexType name="BookingNoteStructure">
<xs:annotation>
<xs:documentation>A structure for booking notes.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="BookingNote" type="BookingNoteType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BookingNoteType">
<xs:annotation>
<xs:documentation>An element of the BookingNotes or as a single BookingNote.</xs:documentation>
sgrossberndt marked this conversation as resolved.
Show resolved Hide resolved
</xs:annotation>
<xs:attribute name="order" type="xs:positiveInteger"/>
sgrossberndt marked this conversation as resolved.
Show resolved Hide resolved
</xs:complexType>
<xs:simpleType name="FareAuthorityCodeType">
<xs:annotation>
<xs:documentation>Identifier of a Fare Authority.</xs:documentation>
Expand Down Expand Up @@ -182,7 +196,7 @@
<!-- ======================================================================= -->
<xs:simpleType name="BookingMethodEnumeration">
<xs:annotation>
<xs:documentation>Allowed values for Flexible Booking method.</xs:documentation>
<xs:documentation>Allowed values for a booking method.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="callDriver"/>
Expand All @@ -198,12 +212,12 @@
</xs:simpleType>
<xs:complexType name="BookingMethodListOfEnumerations">
<xs:annotation>
<xs:documentation>List of values for Flexible Booking values.</xs:documentation>
<xs:documentation>List of values for booking values.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="BookingMethod" type="BookingMethodEnumeration" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Flexible booking methods.</xs:documentation>
<xs:documentation>Booking methods.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
Expand Down Expand Up @@ -446,11 +460,18 @@
<xs:documentation>URL for booking.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="BookingNote" type="InternationalTextStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Note about booking the FLEXIBLE LINE.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:element name="BookingNote" type="BookingNoteType" minOccurs="0">
<xs:annotation>
<xs:documentation>Note about booking the LINE (deprecated).</xs:documentation>
sgrossberndt marked this conversation as resolved.
Show resolved Hide resolved
</xs:annotation>
</xs:element>
<xs:element name="BookingNotes" type="BookingNoteStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Notes about booking the LINE.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:group>
Expand Down
Loading