@autobusal/providers 1.40.5 → 1.40.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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.40.6 (2026-08-26)
4
+
5
+ - settings types: addons gains `flex` and `seats` entries (both optional).
6
+
3
7
  ## 1.40.4
4
8
 
5
9
  ### Fixed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.40.5",
3
+ "version": "1.40.6",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
7
- }
7
+ }
package/types/settings.ts CHANGED
@@ -67,6 +67,20 @@ export interface SettingsData {
67
67
  * bought. Optional so an older payload cannot crash the checkout.
68
68
  */
69
69
  sms?: { available: boolean, price: number }
70
+
71
+ // Edited: Ferjolt Ozuni - Date: 2026-08-03 / typed 2026-08-26
72
+ // Flexible Ticket: `available` only - the real offer and price are
73
+ // per-booking (Orders\FlexController).
74
+ flex?: { available: boolean, price: number }
75
+
76
+ /**
77
+ * Edited: Claude - Date: 2026-08-26
78
+ * Seat selection. `available: true` is what flips checkout from the
79
+ * legacy required-free pick to optional-and-priced; `price` is per
80
+ * hand-picked seat, display only - the server prices the charge.
81
+ * Optional so an older payload cannot crash the checkout.
82
+ */
83
+ seats?: { available: boolean, price: number }
70
84
  }
71
85
 
72
86
  // Edited: Ferjolt Ozuni - Date: 2026-07-31