@autobusal/routes-order 1.33.5 → 1.33.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.33.6
4
+
5
+ ### Fixed
6
+
7
+ - **The return date strip asks the API for return-leg pricing** (new leg parameter) - it used to quote one-way fares over days the buyer pays the round-trip difference for. (Audit BOOK-02-b; needs obtapi >= 2.4.63.)
8
+
3
9
  ## 1.33.5
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/routes-order",
3
- "version": "1.33.5",
3
+ "version": "1.33.6",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/services.ts CHANGED
@@ -104,7 +104,11 @@ export const useGetDates = (step1: RoutesSearchForm, type: ('departure' | '_retu
104
104
  .get('/api/routes/search/dates', {
105
105
  params: {
106
106
  ...step,
107
- number
107
+ number,
108
+ // which half of a round trip this strip prices (BOOK-02-b):
109
+ // the from/to swap above handles the direction, this handles
110
+ // the FARE - a return leg sells at adult_return
111
+ leg: type === '_return' ? 'return' : 'departure'
108
112
  }
109
113
  })
110
114
  .then(response => (