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

Define VATRate as percentage instead of enum #228

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions OJP/OJP_FareSupport.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@
<xs:enumeration value="economy"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="VatRateEnumeration">
<xs:simpleType name="Percentage">
<xs:annotation>
<xs:documentation>Enumeration of Value Added Tax rates.</xs:documentation>
<xs:documentation>A percentage value between 0 and 100</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="no"/>
<xs:enumeration value="full"/>
<xs:enumeration value="half"/>
<xs:enumeration value="mixed"/>
<xs:enumeration value="unknown"/>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0"/>
<xs:maxInclusive value="100.0"/>
</xs:restriction>
</xs:simpleType>
<xs:annotation>
Expand Down Expand Up @@ -300,9 +297,9 @@
<xs:documentation>iso 4217 currency code, e.g. EUR for Euro or GBP for Pound Sterling </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VatRate" type="VatRateEnumeration" minOccurs="0">
<xs:element name="VatRate" type="Percentage" minOccurs="0">
<xs:annotation>
<xs:documentation>Rate of value added tax. Default is unknown.</xs:documentation>
<xs:documentation>Rate of value added tax.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
Expand Down
Loading