Skip to content

Commit

Permalink
Improved documentation, removed superfluous EntitlementProductRef ele…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
sgrossberndt committed Sep 28, 2022
1 parent 7aa6125 commit 2ef1bdb
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions OJP/OJP_FareSupport.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -211,46 +211,49 @@
</xs:element>
<xs:complexType name="EntitlementProductListStructure">
<xs:annotation>
<xs:documentation>A list of ENTITLEMENT PRODUCT references</xs:documentation>
<xs:documentation>A list of ENTITLEMENT PRODUCTs</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="EntitlementProduct" type="EntitlementProductStructure" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>[a specific form of TRAVEL DOCUMENT in TM and NeTEx] a precondition to access a service or to purchase a FARE PRODUCT issued by an organisation that may not be a PT operator (eg: military card, concessionary card, etc) </xs:documentation>
<xs:documentation>[a specific form of TRAVEL DOCUMENT in TM and NeTEx] Precondition to access a service or to purchase a FARE PRODUCT issued by an organisation that may not be a PT operator (e.g. military card, concessionary card, ...). In most cases, ENTITLEMENT PRODUCTs offer discounts, e.g. the "BahnCard50" of "Deutsche Bahn".</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="EntitlementProductCodeType">
<xs:annotation>
<xs:documentation>Identifier of a traveller card (f.e. BahnCard50, BahnCard50First etc.).</xs:documentation>
<xs:documentation>Identifier of an ENTITLEMENT PRODUCT (e.g. BahnCard50, BahnCard50First, military card, concessionary card, ...). It is defined by the fare authority.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:NMTOKEN"/>
</xs:simpleType>
<xs:complexType name="EntitlementProductStructure">
<xs:annotation>
<xs:documentation>Reference to a a precondition to access a service or to purchase a FARE PRODUCT issued by an organisation that may not be a PT operator (eg: military card, concessionary card, etc).</xs:documentation>
<xs:documentation>[a specific form of TRAVEL DOCUMENT in TM and NeTEx] Precondition to access a service or to purchase a FARE PRODUCT issued by an organisation that may not be a PT operator (e.g. military card, concessionary card, ...). In most cases, ENTITLEMENT PRODUCTs offer discounts, e.g. the "BahnCard50" of "Deutsche Bahn".</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="FareAuthorityRef"/>
<xs:element name="EntitlementProductRef" type="EntitlementProductCodeType"/>
<xs:element ref="FareAuthorityRef">
<xs:annotation>
<xs:documentation>Reference to the fare authority that issued the ENTITLEMENT PRODUCT</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EntitlementProductRef" type="EntitlementProductCodeType">
<xs:annotation>
<xs:documentation>Identifier of the ENTITLEMENT PRODUCT (e.g. BahnCard50, BahnCard50First, ...)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ValidityPeriod" type="siri:HalfOpenTimestampOutputRangeStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Validity period of the ENTITLEMENT PRODUCT</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="EntitlementProductName" type="xs:string">
<xs:annotation>
<xs:documentation>The name of the entitlement product</xs:documentation>
<xs:documentation>Name of the ENTITLEMENT PRODUCT</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="EntitlementProductRef" type="EntitlementProductCodeType">
<xs:annotation>
<xs:documentation>Reference to a a precondition to access a service or to purchase a FARE PRODUCT issued by an organisation that may not be a PT operator (eg: military card, concessionary card, etc).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="FareProductStructure">
<xs:annotation>
<xs:documentation>[related to FARE PRODUCT in TM and NeTEx] different FARE PRODUCTs that may be available with related information</xs:documentation>
Expand Down Expand Up @@ -317,7 +320,7 @@
</xs:element>
<xs:element name="RequiredCard" type="EntitlementProductStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>One or more traveller cards that are needed for purchase of this FareProduct. In most cases traveller cards offer discounts, f.e. BahnCard50 of Deutsche Bahn.</xs:documentation>
<xs:documentation>One or more ENTITLEMENT PRODUCTs required for the purchase of this FareProduct. In most cases, ENTITLEMENT PRODUCTs offer discounts, e.g. the "BahnCard50" of "Deutsche Bahn".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ValidFor" type="PassengerCategoryEnumeration" minOccurs="0" maxOccurs="unbounded">
Expand Down

0 comments on commit 2ef1bdb

Please sign in to comment.