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

Add number of available tickets per fare product #371

Merged
merged 8 commits into from
Jun 20, 2023
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
5 changes: 5 additions & 0 deletions OJP/OJP_FareSupport.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@
</xs:annotation>
</xs:element>
<xs:group ref="FareProductPriceGroup"/>
<xs:element name="FareQuota" type="xs:integer" minOccurs="0">
<xs:annotation>
<xs:documentation>Remaining offered tickets in this FARE PRODUCT. When absent, the number of remaining tickets is unknown or it is not limited. In most cases if the FareQuota is zero then the FareProduct is not shown.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="FareProductValidityGroup"/>
<xs:group ref="FareProductBookingGroup"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ <h1>OJP - <strong>O</strong>pen API for distributed <strong>J</strong>ourney <st
<!--======= row--><tr><td class="tableblock halign-left valign-top" colspan="2"><p class="tableblock"><code>NetPrice</code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><span title="optional, single">0:1</span></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><em>xs:decimal</em></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Net FareProduct price as decimal number for accounting purposes.</p></td></tr>
<!--======= row--><tr><td class="tableblock halign-left valign-top" colspan="2"><p class="tableblock"><code>Currency</code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><span title="optional, single">0:1</span></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><em>xs:NMTOKEN</em></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">iso 4217 currency code, e.g. EUR for Euro or GBP for Pound Sterling </p></td></tr>
<!--======= row--><tr><td class="tableblock halign-left valign-top" colspan="2"><p class="tableblock"><code>VatRate</code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><span title="optional, single">0:1</span></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><em><a href="#Percentage" title="Percentage">Percentage</a></em></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Rate of value added tax.</p></td></tr>
<!--Group FareProductPriceGroup ──────┘--><!--Group FareProductValidityGroup ──────┐-->
<!--Group FareProductPriceGroup ──────┘--><!--======= row--><tr><td class="tableblock halign-left valign-top"><p class="tableblock"/></td><td class="tableblock halign-left valign-top" colspan="2"><p class="tableblock"><code>FareQuota</code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><span title="optional, single">0:1</span></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><em>xs:integer</em></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Remaining offered tickets in this FARE PRODUCT. When absent, the number of remaining tickets is unknown or it is not limited. In most cases if the FareQuota is zero then the FareProduct is not shown.</p></td></tr><!--Group FareProductValidityGroup ──────┐-->
<!--======= row--><tr><td class="tableblock halign-left valign-top" rowspan="7"><a href="#FareProductValidityGroup" title="FareProductValidityGroup">FareProductValidity</a></td><td class="tableblock halign-left valign-top" colspan="2"><p class="tableblock"><code>FareClass</code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><span title="optional, single">0:1</span></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><em>siri:FareClassEnumeration</em></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Fare class for which the FareProduct is valid (Transmodel: CLASS OF USE).</p></td></tr>
<!--======= row--><tr><td class="tableblock halign-left valign-top" colspan="2"><p class="tableblock"><code>RequiredCard</code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><span title="optional, multiple">0:*</span></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><em>+<a href="#EntitlementProductStructure" title="EntitlementProductStructure">EntitlementProduct</a></em></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">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".</p></td></tr>
<!--======= row--><tr><td class="tableblock halign-left valign-top" colspan="2"><p class="tableblock"><code>ValidFor</code></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><span title="optional, multiple">0:*</span></p></td><td class="tableblock halign-left valign-top"><p class="tableblock"><em><a href="#PassengerCategoryEnumeration" title="PassengerCategoryEnumeration">PassengerCategory</a></em></p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Sequence of all passenger categories for which this FareProduct is valid.</p></td></tr>
Expand Down
1 change: 1 addition & 0 deletions examples/functions/fare/FareResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<FareAuthorityText>Mybuxi</FareAuthorityText>
<NetPrice>15</NetPrice>
<Currency>CHF</Currency>
<FareQuota>20</FareQuota>
<FareClass>economyClass</FareClass>
<SaleUrl>
<Label>
Expand Down