@autobusal/providers 1.41.1 → 1.41.2
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/package.json +1 -1
- package/types/settings.ts +22 -13
package/package.json
CHANGED
package/types/settings.ts
CHANGED
|
@@ -216,20 +216,29 @@ export interface LabelSettings {
|
|
|
216
216
|
name: string
|
|
217
217
|
},
|
|
218
218
|
|
|
219
|
+
/**
|
|
220
|
+
* Claude - 2026-08-29 (Ferjolt: "remove the tab and proceed with the
|
|
221
|
+
* rename").
|
|
222
|
+
*
|
|
223
|
+
* ONE SETTING LEFT. The six multipliers that were here - label / general
|
|
224
|
+
* / visitor, each with an agent and an operator rate - adjusted
|
|
225
|
+
* commissions after a BKT sale, which was the card surcharge done the
|
|
226
|
+
* wrong way round: recovered quietly from the operator and the agent
|
|
227
|
+
* rather than asked of the person paying. Payments\Surcharge replaced
|
|
228
|
+
* them and their admin tab is gone.
|
|
229
|
+
*
|
|
230
|
+
* `direct_sale` (formerly `reservation`, which named nothing - every
|
|
231
|
+
* booking is a reservation) is the extra commission an OPERATOR pays us
|
|
232
|
+
* when a sale comes through the brand's own website rather than through
|
|
233
|
+
* an agent. A percentage now, not the raw multiplier it used to be: 5
|
|
234
|
+
* means 5%. See obtapi's Comissions\Calculate::obtComission, which is
|
|
235
|
+
* where it is explained in full, and where it is the only reader.
|
|
236
|
+
*
|
|
237
|
+
* Optional so an older obtapi, or a brand whose settings predate the
|
|
238
|
+
* rename, reads as "charges nothing extra" rather than as NaN.
|
|
239
|
+
*/
|
|
219
240
|
comissions: {
|
|
220
|
-
|
|
221
|
-
agent: number
|
|
222
|
-
operator: number
|
|
223
|
-
}
|
|
224
|
-
general: {
|
|
225
|
-
agent: number
|
|
226
|
-
operator: number
|
|
227
|
-
}
|
|
228
|
-
visitor: {
|
|
229
|
-
agent: number
|
|
230
|
-
operator: number
|
|
231
|
-
}
|
|
232
|
-
reservation: number
|
|
241
|
+
direct_sale?: number
|
|
233
242
|
}
|
|
234
243
|
|
|
235
244
|
social: {
|