@tennac-booking/sdk 1.0.18 → 1.0.19

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/api.ts CHANGED
@@ -182,6 +182,168 @@ export interface Booking {
182
182
  }
183
183
 
184
184
 
185
+ /**
186
+ *
187
+ * @export
188
+ * @interface BookingPaymentStatusResponse
189
+ */
190
+ export interface BookingPaymentStatusResponse {
191
+ /**
192
+ *
193
+ * @type {BookingPaymentStatusResponseBooking}
194
+ * @memberof BookingPaymentStatusResponse
195
+ */
196
+ 'booking'?: BookingPaymentStatusResponseBooking;
197
+ /**
198
+ *
199
+ * @type {Array<BookingPaymentStatusResponsePaymentStatusInner>}
200
+ * @memberof BookingPaymentStatusResponse
201
+ */
202
+ 'paymentStatus'?: Array<BookingPaymentStatusResponsePaymentStatusInner>;
203
+ /**
204
+ *
205
+ * @type {BookingPaymentStatusResponseSummary}
206
+ * @memberof BookingPaymentStatusResponse
207
+ */
208
+ 'summary'?: BookingPaymentStatusResponseSummary;
209
+ }
210
+ /**
211
+ *
212
+ * @export
213
+ * @interface BookingPaymentStatusResponseBooking
214
+ */
215
+ export interface BookingPaymentStatusResponseBooking {
216
+ /**
217
+ *
218
+ * @type {string}
219
+ * @memberof BookingPaymentStatusResponseBooking
220
+ */
221
+ 'id'?: string;
222
+ /**
223
+ *
224
+ * @type {string}
225
+ * @memberof BookingPaymentStatusResponseBooking
226
+ */
227
+ 'status'?: string;
228
+ /**
229
+ *
230
+ * @type {boolean}
231
+ * @memberof BookingPaymentStatusResponseBooking
232
+ */
233
+ 'isCreatorPayingAll'?: boolean;
234
+ /**
235
+ *
236
+ * @type {number}
237
+ * @memberof BookingPaymentStatusResponseBooking
238
+ */
239
+ 'totalPrice'?: number;
240
+ }
241
+ /**
242
+ *
243
+ * @export
244
+ * @interface BookingPaymentStatusResponsePaymentStatusInner
245
+ */
246
+ export interface BookingPaymentStatusResponsePaymentStatusInner {
247
+ /**
248
+ *
249
+ * @type {string}
250
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
251
+ */
252
+ 'playerId'?: string;
253
+ /**
254
+ *
255
+ * @type {string}
256
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
257
+ */
258
+ 'playerName'?: string;
259
+ /**
260
+ *
261
+ * @type {string}
262
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
263
+ */
264
+ 'playerEmail'?: string;
265
+ /**
266
+ *
267
+ * @type {number}
268
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
269
+ */
270
+ 'amount'?: number;
271
+ /**
272
+ *
273
+ * @type {string}
274
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
275
+ */
276
+ 'paymentMethod'?: BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum;
277
+ /**
278
+ *
279
+ * @type {string}
280
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
281
+ */
282
+ 'status'?: string;
283
+ /**
284
+ *
285
+ * @type {boolean}
286
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
287
+ */
288
+ 'accepted'?: boolean;
289
+ /**
290
+ *
291
+ * @type {boolean}
292
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
293
+ */
294
+ 'hasPaid'?: boolean;
295
+ /**
296
+ * Indique si le joueur a besoin d\'être enregistré (paiement sur place en attente)
297
+ * @type {boolean}
298
+ * @memberof BookingPaymentStatusResponsePaymentStatusInner
299
+ */
300
+ 'needsCheckIn'?: boolean;
301
+ }
302
+
303
+ export const BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
304
+ Stripe: 'stripe',
305
+ Onsite: 'onsite'
306
+ } as const;
307
+
308
+ export type BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = typeof BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum[keyof typeof BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum];
309
+
310
+ /**
311
+ *
312
+ * @export
313
+ * @interface BookingPaymentStatusResponseSummary
314
+ */
315
+ export interface BookingPaymentStatusResponseSummary {
316
+ /**
317
+ *
318
+ * @type {number}
319
+ * @memberof BookingPaymentStatusResponseSummary
320
+ */
321
+ 'totalPlayers'?: number;
322
+ /**
323
+ *
324
+ * @type {number}
325
+ * @memberof BookingPaymentStatusResponseSummary
326
+ */
327
+ 'playersWhoHavePaid'?: number;
328
+ /**
329
+ *
330
+ * @type {number}
331
+ * @memberof BookingPaymentStatusResponseSummary
332
+ */
333
+ 'playersNeedingCheckIn'?: number;
334
+ /**
335
+ *
336
+ * @type {number}
337
+ * @memberof BookingPaymentStatusResponseSummary
338
+ */
339
+ 'totalAmount'?: number;
340
+ /**
341
+ *
342
+ * @type {number}
343
+ * @memberof BookingPaymentStatusResponseSummary
344
+ */
345
+ 'paidAmount'?: number;
346
+ }
185
347
  /**
186
348
  *
187
349
  * @export
@@ -233,6 +395,19 @@ export const BookingStatus = {
233
395
  export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
234
396
 
235
397
 
398
+ /**
399
+ *
400
+ * @export
401
+ * @interface CancelBookingRequest
402
+ */
403
+ export interface CancelBookingRequest {
404
+ /**
405
+ * ID de l\'utilisateur créateur pour vérification
406
+ * @type {string}
407
+ * @memberof CancelBookingRequest
408
+ */
409
+ 'userId': string;
410
+ }
236
411
  /**
237
412
  *
238
413
  * @export
@@ -240,17 +415,17 @@ export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
240
415
  */
241
416
  export interface CancelBookingResponse {
242
417
  /**
243
- * Message de confirmation
418
+ *
244
419
  * @type {string}
245
420
  * @memberof CancelBookingResponse
246
421
  */
247
- 'message': string;
422
+ 'message'?: string;
248
423
  /**
249
424
  *
250
425
  * @type {CancelBookingResponseBooking}
251
426
  * @memberof CancelBookingResponse
252
427
  */
253
- 'booking': CancelBookingResponseBooking;
428
+ 'booking'?: CancelBookingResponseBooking;
254
429
  }
255
430
  /**
256
431
  *
@@ -259,37 +434,37 @@ export interface CancelBookingResponse {
259
434
  */
260
435
  export interface CancelBookingResponseBooking {
261
436
  /**
262
- * ID de la réservation
437
+ *
263
438
  * @type {string}
264
439
  * @memberof CancelBookingResponseBooking
265
440
  */
266
- 'id': string;
441
+ 'id'?: string;
267
442
  /**
268
- * Nouveau statut de la réservation
443
+ *
269
444
  * @type {string}
270
445
  * @memberof CancelBookingResponseBooking
271
446
  */
272
- 'status': CancelBookingResponseBookingStatusEnum;
447
+ 'status'?: CancelBookingResponseBookingStatusEnum;
273
448
  /**
274
- * Date et heure d\'annulation
449
+ *
275
450
  * @type {string}
276
451
  * @memberof CancelBookingResponseBooking
277
452
  */
278
- 'cancelledAt': string;
453
+ 'cancelledAt'?: string;
279
454
  /**
280
- * ID de l\'utilisateur qui a annulé
455
+ *
281
456
  * @type {string}
282
457
  * @memberof CancelBookingResponseBooking
283
458
  */
284
- 'cancelledBy': string;
459
+ 'cancelledBy'?: string;
285
460
  /**
286
- * Indique si annulé par un gestionnaire
461
+ *
287
462
  * @type {boolean}
288
463
  * @memberof CancelBookingResponseBooking
289
464
  */
290
- 'cancelledByManager': boolean;
465
+ 'cancelledByManager'?: boolean;
291
466
  /**
292
- * Raison de l\'annulation (si fournie)
467
+ *
293
468
  * @type {string}
294
469
  * @memberof CancelBookingResponseBooking
295
470
  */
@@ -334,6 +509,117 @@ export interface ChangePasswordResponse {
334
509
  */
335
510
  'message'?: string;
336
511
  }
512
+ /**
513
+ *
514
+ * @export
515
+ * @interface CheckInPlayersRequest
516
+ */
517
+ export interface CheckInPlayersRequest {
518
+ /**
519
+ * Liste des IDs des joueurs qui ont payé/sont arrivés
520
+ * @type {Array<string>}
521
+ * @memberof CheckInPlayersRequest
522
+ */
523
+ 'playerIds': Array<string>;
524
+ }
525
+ /**
526
+ *
527
+ * @export
528
+ * @interface CheckInPlayersResponse
529
+ */
530
+ export interface CheckInPlayersResponse {
531
+ /**
532
+ *
533
+ * @type {string}
534
+ * @memberof CheckInPlayersResponse
535
+ */
536
+ 'message'?: string;
537
+ /**
538
+ *
539
+ * @type {Array<CheckInPlayersResponseCheckedInPlayersInner>}
540
+ * @memberof CheckInPlayersResponse
541
+ */
542
+ 'checkedInPlayers'?: Array<CheckInPlayersResponseCheckedInPlayersInner>;
543
+ /**
544
+ *
545
+ * @type {Array<string>}
546
+ * @memberof CheckInPlayersResponse
547
+ */
548
+ 'notFoundPlayers'?: Array<string>;
549
+ /**
550
+ *
551
+ * @type {boolean}
552
+ * @memberof CheckInPlayersResponse
553
+ */
554
+ 'allPlayersCheckedIn'?: boolean;
555
+ /**
556
+ *
557
+ * @type {boolean}
558
+ * @memberof CheckInPlayersResponse
559
+ */
560
+ 'bookingFullyPaid'?: boolean;
561
+ /**
562
+ *
563
+ * @type {number}
564
+ * @memberof CheckInPlayersResponse
565
+ */
566
+ 'totalPlayers'?: number;
567
+ }
568
+ /**
569
+ *
570
+ * @export
571
+ * @interface CheckInPlayersResponseCheckedInPlayersInner
572
+ */
573
+ export interface CheckInPlayersResponseCheckedInPlayersInner {
574
+ /**
575
+ *
576
+ * @type {string}
577
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
578
+ */
579
+ 'playerId'?: string;
580
+ /**
581
+ *
582
+ * @type {string}
583
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
584
+ */
585
+ 'invoiceId'?: string;
586
+ /**
587
+ *
588
+ * @type {number}
589
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
590
+ */
591
+ 'amount'?: number;
592
+ /**
593
+ *
594
+ * @type {string}
595
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
596
+ */
597
+ 'previousStatus'?: string;
598
+ /**
599
+ *
600
+ * @type {string}
601
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
602
+ */
603
+ 'newStatus'?: string;
604
+ /**
605
+ *
606
+ * @type {string}
607
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
608
+ */
609
+ 'status'?: string;
610
+ /**
611
+ *
612
+ * @type {string}
613
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
614
+ */
615
+ 'paymentMethod'?: string;
616
+ /**
617
+ *
618
+ * @type {string}
619
+ * @memberof CheckInPlayersResponseCheckedInPlayersInner
620
+ */
621
+ 'note'?: string;
622
+ }
337
623
  /**
338
624
  *
339
625
  * @export
@@ -485,6 +771,12 @@ export interface ClubInfoResponse {
485
771
  * @memberof ClubInfoResponse
486
772
  */
487
773
  'website'?: string;
774
+ /**
775
+ *
776
+ * @type {string}
777
+ * @memberof ClubInfoResponse
778
+ */
779
+ 'rib'?: string;
488
780
  /**
489
781
  *
490
782
  * @type {string}
@@ -1872,6 +2164,19 @@ export interface LoginResponse {
1872
2164
  */
1873
2165
  'sessionEnd': number;
1874
2166
  }
2167
+ /**
2168
+ *
2169
+ * @export
2170
+ * @interface ManagerCancelBookingRequest
2171
+ */
2172
+ export interface ManagerCancelBookingRequest {
2173
+ /**
2174
+ * Raison obligatoire de l\'annulation par le gestionnaire
2175
+ * @type {string}
2176
+ * @memberof ManagerCancelBookingRequest
2177
+ */
2178
+ 'reason': string;
2179
+ }
1875
2180
  /**
1876
2181
  *
1877
2182
  * @export
@@ -1879,17 +2184,17 @@ export interface LoginResponse {
1879
2184
  */
1880
2185
  export interface ManagerCancelBookingResponse {
1881
2186
  /**
1882
- * Message de confirmation
2187
+ *
1883
2188
  * @type {string}
1884
2189
  * @memberof ManagerCancelBookingResponse
1885
2190
  */
1886
- 'message': string;
2191
+ 'message'?: string;
1887
2192
  /**
1888
2193
  *
1889
2194
  * @type {ManagerCancelBookingResponseBooking}
1890
2195
  * @memberof ManagerCancelBookingResponse
1891
2196
  */
1892
- 'booking': ManagerCancelBookingResponseBooking;
2197
+ 'booking'?: ManagerCancelBookingResponseBooking;
1893
2198
  }
1894
2199
  /**
1895
2200
  *
@@ -1898,41 +2203,41 @@ export interface ManagerCancelBookingResponse {
1898
2203
  */
1899
2204
  export interface ManagerCancelBookingResponseBooking {
1900
2205
  /**
1901
- * ID de la réservation
2206
+ *
1902
2207
  * @type {string}
1903
2208
  * @memberof ManagerCancelBookingResponseBooking
1904
2209
  */
1905
- 'id': string;
2210
+ 'id'?: string;
1906
2211
  /**
1907
- * Nouveau statut de la réservation
2212
+ *
1908
2213
  * @type {string}
1909
2214
  * @memberof ManagerCancelBookingResponseBooking
1910
2215
  */
1911
- 'status': ManagerCancelBookingResponseBookingStatusEnum;
2216
+ 'status'?: ManagerCancelBookingResponseBookingStatusEnum;
1912
2217
  /**
1913
- * Raison de l\'annulation par le gestionnaire
2218
+ *
1914
2219
  * @type {string}
1915
2220
  * @memberof ManagerCancelBookingResponseBooking
1916
2221
  */
1917
- 'cancellationReason': string;
2222
+ 'cancellationReason'?: string;
1918
2223
  /**
1919
- * Date et heure d\'annulation
2224
+ *
1920
2225
  * @type {string}
1921
2226
  * @memberof ManagerCancelBookingResponseBooking
1922
2227
  */
1923
- 'cancelledAt': string;
2228
+ 'cancelledAt'?: string;
1924
2229
  /**
1925
- * ID du gestionnaire qui a annulé
2230
+ *
1926
2231
  * @type {string}
1927
2232
  * @memberof ManagerCancelBookingResponseBooking
1928
2233
  */
1929
- 'cancelledBy': string;
2234
+ 'cancelledBy'?: string;
1930
2235
  /**
1931
- * Toujours true pour les annulations par gestionnaire
2236
+ *
1932
2237
  * @type {boolean}
1933
2238
  * @memberof ManagerCancelBookingResponseBooking
1934
2239
  */
1935
- 'cancelledByManager': boolean;
2240
+ 'cancelledByManager'?: boolean;
1936
2241
  }
1937
2242
 
1938
2243
  export const ManagerCancelBookingResponseBookingStatusEnum = {
@@ -1941,39 +2246,170 @@ export const ManagerCancelBookingResponseBookingStatusEnum = {
1941
2246
 
1942
2247
  export type ManagerCancelBookingResponseBookingStatusEnum = typeof ManagerCancelBookingResponseBookingStatusEnum[keyof typeof ManagerCancelBookingResponseBookingStatusEnum];
1943
2248
 
1944
- /**
1945
- * Méthode de paiement
1946
- * @export
1947
- * @enum {string}
1948
- */
1949
-
1950
- export const PaymentMethod = {
1951
- Online: 'online',
1952
- Onsite: 'onsite'
1953
- } as const;
1954
-
1955
- export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
1956
-
1957
-
1958
2249
  /**
1959
2250
  *
1960
2251
  * @export
1961
- * @interface PlayerWithPaymentMethod
2252
+ * @interface NoShowFeeResponse
1962
2253
  */
1963
- export interface PlayerWithPaymentMethod {
2254
+ export interface NoShowFeeResponse {
1964
2255
  /**
1965
- * ID du joueur
2256
+ *
1966
2257
  * @type {string}
1967
- * @memberof PlayerWithPaymentMethod
2258
+ * @memberof NoShowFeeResponse
1968
2259
  */
1969
- 'id': string;
2260
+ 'message'?: string;
1970
2261
  /**
1971
2262
  *
1972
- * @type {PaymentMethod}
1973
- * @memberof PlayerWithPaymentMethod
2263
+ * @type {number}
2264
+ * @memberof NoShowFeeResponse
1974
2265
  */
1975
- 'paymentMethod': PaymentMethod;
1976
- }
2266
+ 'totalExpected'?: number;
2267
+ /**
2268
+ *
2269
+ * @type {number}
2270
+ * @memberof NoShowFeeResponse
2271
+ */
2272
+ 'totalCaptured'?: number;
2273
+ /**
2274
+ *
2275
+ * @type {number}
2276
+ * @memberof NoShowFeeResponse
2277
+ */
2278
+ 'missingAmount'?: number;
2279
+ /**
2280
+ *
2281
+ * @type {Array<NoShowFeeResponseCaptureResultsInner>}
2282
+ * @memberof NoShowFeeResponse
2283
+ */
2284
+ 'captureResults'?: Array<NoShowFeeResponseCaptureResultsInner>;
2285
+ /**
2286
+ *
2287
+ * @type {NoShowFeeResponseCreatorChargeResult}
2288
+ * @memberof NoShowFeeResponse
2289
+ */
2290
+ 'creatorChargeResult'?: NoShowFeeResponseCreatorChargeResult;
2291
+ }
2292
+ /**
2293
+ *
2294
+ * @export
2295
+ * @interface NoShowFeeResponseCaptureResultsInner
2296
+ */
2297
+ export interface NoShowFeeResponseCaptureResultsInner {
2298
+ /**
2299
+ *
2300
+ * @type {string}
2301
+ * @memberof NoShowFeeResponseCaptureResultsInner
2302
+ */
2303
+ 'type'?: NoShowFeeResponseCaptureResultsInnerTypeEnum;
2304
+ /**
2305
+ *
2306
+ * @type {string}
2307
+ * @memberof NoShowFeeResponseCaptureResultsInner
2308
+ */
2309
+ 'playerId'?: string;
2310
+ /**
2311
+ *
2312
+ * @type {string}
2313
+ * @memberof NoShowFeeResponseCaptureResultsInner
2314
+ */
2315
+ 'paymentIntentId'?: string;
2316
+ /**
2317
+ *
2318
+ * @type {number}
2319
+ * @memberof NoShowFeeResponseCaptureResultsInner
2320
+ */
2321
+ 'amount'?: number;
2322
+ /**
2323
+ *
2324
+ * @type {string}
2325
+ * @memberof NoShowFeeResponseCaptureResultsInner
2326
+ */
2327
+ 'status'?: NoShowFeeResponseCaptureResultsInnerStatusEnum;
2328
+ /**
2329
+ *
2330
+ * @type {string}
2331
+ * @memberof NoShowFeeResponseCaptureResultsInner
2332
+ */
2333
+ 'error'?: string;
2334
+ }
2335
+
2336
+ export const NoShowFeeResponseCaptureResultsInnerTypeEnum = {
2337
+ CreatorPayment: 'creator_payment',
2338
+ PlayerPayment: 'player_payment'
2339
+ } as const;
2340
+
2341
+ export type NoShowFeeResponseCaptureResultsInnerTypeEnum = typeof NoShowFeeResponseCaptureResultsInnerTypeEnum[keyof typeof NoShowFeeResponseCaptureResultsInnerTypeEnum];
2342
+ export const NoShowFeeResponseCaptureResultsInnerStatusEnum = {
2343
+ Captured: 'captured',
2344
+ Failed: 'failed'
2345
+ } as const;
2346
+
2347
+ export type NoShowFeeResponseCaptureResultsInnerStatusEnum = typeof NoShowFeeResponseCaptureResultsInnerStatusEnum[keyof typeof NoShowFeeResponseCaptureResultsInnerStatusEnum];
2348
+
2349
+ /**
2350
+ *
2351
+ * @export
2352
+ * @interface NoShowFeeResponseCreatorChargeResult
2353
+ */
2354
+ export interface NoShowFeeResponseCreatorChargeResult {
2355
+ /**
2356
+ *
2357
+ * @type {boolean}
2358
+ * @memberof NoShowFeeResponseCreatorChargeResult
2359
+ */
2360
+ 'success'?: boolean;
2361
+ /**
2362
+ *
2363
+ * @type {string}
2364
+ * @memberof NoShowFeeResponseCreatorChargeResult
2365
+ */
2366
+ 'paymentIntentId'?: string;
2367
+ /**
2368
+ *
2369
+ * @type {number}
2370
+ * @memberof NoShowFeeResponseCreatorChargeResult
2371
+ */
2372
+ 'amount'?: number;
2373
+ /**
2374
+ *
2375
+ * @type {string}
2376
+ * @memberof NoShowFeeResponseCreatorChargeResult
2377
+ */
2378
+ 'error'?: string;
2379
+ }
2380
+ /**
2381
+ * Méthode de paiement
2382
+ * @export
2383
+ * @enum {string}
2384
+ */
2385
+
2386
+ export const PaymentMethod = {
2387
+ Online: 'online',
2388
+ Onsite: 'onsite'
2389
+ } as const;
2390
+
2391
+ export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
2392
+
2393
+
2394
+ /**
2395
+ *
2396
+ * @export
2397
+ * @interface PlayerWithPaymentMethod
2398
+ */
2399
+ export interface PlayerWithPaymentMethod {
2400
+ /**
2401
+ * ID du joueur
2402
+ * @type {string}
2403
+ * @memberof PlayerWithPaymentMethod
2404
+ */
2405
+ 'id': string;
2406
+ /**
2407
+ *
2408
+ * @type {PaymentMethod}
2409
+ * @memberof PlayerWithPaymentMethod
2410
+ */
2411
+ 'paymentMethod': PaymentMethod;
2412
+ }
1977
2413
 
1978
2414
 
1979
2415
  /**
@@ -3481,6 +3917,561 @@ export class AdminClubsApi extends BaseAPI {
3481
3917
 
3482
3918
 
3483
3919
 
3920
+ /**
3921
+ * BookingsApi - axios parameter creator
3922
+ * @export
3923
+ */
3924
+ export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
3925
+ return {
3926
+ /**
3927
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
3928
+ * @summary Annuler une réservation (créateur uniquement)
3929
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
3930
+ * @param {CancelBookingRequest} cancelBookingRequest
3931
+ * @param {*} [options] Override http request option.
3932
+ * @throws {RequiredError}
3933
+ */
3934
+ cancelBooking: async (bookingId: string, cancelBookingRequest: CancelBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3935
+ // verify required parameter 'bookingId' is not null or undefined
3936
+ assertParamExists('cancelBooking', 'bookingId', bookingId)
3937
+ // verify required parameter 'cancelBookingRequest' is not null or undefined
3938
+ assertParamExists('cancelBooking', 'cancelBookingRequest', cancelBookingRequest)
3939
+ const localVarPath = `/api/bookings/{bookingId}/cancel`
3940
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
3941
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3942
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3943
+ let baseOptions;
3944
+ if (configuration) {
3945
+ baseOptions = configuration.baseOptions;
3946
+ }
3947
+
3948
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3949
+ const localVarHeaderParameter = {} as any;
3950
+ const localVarQueryParameter = {} as any;
3951
+
3952
+ // authentication bearerAuth required
3953
+ // http bearer authentication required
3954
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3955
+
3956
+
3957
+
3958
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3959
+
3960
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3961
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3962
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3963
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelBookingRequest, localVarRequestOptions, configuration)
3964
+
3965
+ return {
3966
+ url: toPathString(localVarUrlObj),
3967
+ options: localVarRequestOptions,
3968
+ };
3969
+ },
3970
+ }
3971
+ };
3972
+
3973
+ /**
3974
+ * BookingsApi - functional programming interface
3975
+ * @export
3976
+ */
3977
+ export const BookingsApiFp = function(configuration?: Configuration) {
3978
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
3979
+ return {
3980
+ /**
3981
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
3982
+ * @summary Annuler une réservation (créateur uniquement)
3983
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
3984
+ * @param {CancelBookingRequest} cancelBookingRequest
3985
+ * @param {*} [options] Override http request option.
3986
+ * @throws {RequiredError}
3987
+ */
3988
+ async cancelBooking(bookingId: string, cancelBookingRequest: CancelBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelBookingResponse>> {
3989
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
3990
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3991
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.cancelBooking']?.[localVarOperationServerIndex]?.url;
3992
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3993
+ },
3994
+ }
3995
+ };
3996
+
3997
+ /**
3998
+ * BookingsApi - factory interface
3999
+ * @export
4000
+ */
4001
+ export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4002
+ const localVarFp = BookingsApiFp(configuration)
4003
+ return {
4004
+ /**
4005
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
4006
+ * @summary Annuler une réservation (créateur uniquement)
4007
+ * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
4008
+ * @param {*} [options] Override http request option.
4009
+ * @throws {RequiredError}
4010
+ */
4011
+ cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelBookingResponse> {
4012
+ return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
4013
+ },
4014
+ };
4015
+ };
4016
+
4017
+ /**
4018
+ * Request parameters for cancelBooking operation in BookingsApi.
4019
+ * @export
4020
+ * @interface BookingsApiCancelBookingRequest
4021
+ */
4022
+ export interface BookingsApiCancelBookingRequest {
4023
+ /**
4024
+ * ID MongoDB de la réservation à annuler
4025
+ * @type {string}
4026
+ * @memberof BookingsApiCancelBooking
4027
+ */
4028
+ readonly bookingId: string
4029
+
4030
+ /**
4031
+ *
4032
+ * @type {CancelBookingRequest}
4033
+ * @memberof BookingsApiCancelBooking
4034
+ */
4035
+ readonly cancelBookingRequest: CancelBookingRequest
4036
+ }
4037
+
4038
+ /**
4039
+ * BookingsApi - object-oriented interface
4040
+ * @export
4041
+ * @class BookingsApi
4042
+ * @extends {BaseAPI}
4043
+ */
4044
+ export class BookingsApi extends BaseAPI {
4045
+ /**
4046
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
4047
+ * @summary Annuler une réservation (créateur uniquement)
4048
+ * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
4049
+ * @param {*} [options] Override http request option.
4050
+ * @throws {RequiredError}
4051
+ * @memberof BookingsApi
4052
+ */
4053
+ public cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig) {
4054
+ return BookingsApiFp(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
4055
+ }
4056
+ }
4057
+
4058
+
4059
+
4060
+ /**
4061
+ * ManagerBookingsApi - axios parameter creator
4062
+ * @export
4063
+ */
4064
+ export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Configuration) {
4065
+ return {
4066
+ /**
4067
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
4068
+ * @summary Appliquer les frais de no-show
4069
+ * @param {string} bookingId ID MongoDB de la réservation
4070
+ * @param {*} [options] Override http request option.
4071
+ * @throws {RequiredError}
4072
+ */
4073
+ applyNoShowFee: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4074
+ // verify required parameter 'bookingId' is not null or undefined
4075
+ assertParamExists('applyNoShowFee', 'bookingId', bookingId)
4076
+ const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
4077
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
4078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4079
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4080
+ let baseOptions;
4081
+ if (configuration) {
4082
+ baseOptions = configuration.baseOptions;
4083
+ }
4084
+
4085
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4086
+ const localVarHeaderParameter = {} as any;
4087
+ const localVarQueryParameter = {} as any;
4088
+
4089
+ // authentication bearerAuth required
4090
+ // http bearer authentication required
4091
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4092
+
4093
+
4094
+
4095
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4097
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4098
+
4099
+ return {
4100
+ url: toPathString(localVarUrlObj),
4101
+ options: localVarRequestOptions,
4102
+ };
4103
+ },
4104
+ /**
4105
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
4106
+ * @summary Enregistrer l\'arrivée des joueurs
4107
+ * @param {string} bookingId ID MongoDB de la réservation
4108
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
4109
+ * @param {*} [options] Override http request option.
4110
+ * @throws {RequiredError}
4111
+ */
4112
+ checkInPlayers: async (bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4113
+ // verify required parameter 'bookingId' is not null or undefined
4114
+ assertParamExists('checkInPlayers', 'bookingId', bookingId)
4115
+ // verify required parameter 'checkInPlayersRequest' is not null or undefined
4116
+ assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest)
4117
+ const localVarPath = `/api/bookings/{bookingId}/checkin-players`
4118
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
4119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4120
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4121
+ let baseOptions;
4122
+ if (configuration) {
4123
+ baseOptions = configuration.baseOptions;
4124
+ }
4125
+
4126
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4127
+ const localVarHeaderParameter = {} as any;
4128
+ const localVarQueryParameter = {} as any;
4129
+
4130
+ // authentication bearerAuth required
4131
+ // http bearer authentication required
4132
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4133
+
4134
+
4135
+
4136
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4137
+
4138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4140
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4141
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
4142
+
4143
+ return {
4144
+ url: toPathString(localVarUrlObj),
4145
+ options: localVarRequestOptions,
4146
+ };
4147
+ },
4148
+ /**
4149
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
4150
+ * @summary Obtenir le statut des paiements d\'une réservation
4151
+ * @param {string} bookingId ID MongoDB de la réservation
4152
+ * @param {*} [options] Override http request option.
4153
+ * @throws {RequiredError}
4154
+ */
4155
+ getBookingPaymentStatus: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4156
+ // verify required parameter 'bookingId' is not null or undefined
4157
+ assertParamExists('getBookingPaymentStatus', 'bookingId', bookingId)
4158
+ const localVarPath = `/api/bookings/{bookingId}/payment-status`
4159
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
4160
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4161
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4162
+ let baseOptions;
4163
+ if (configuration) {
4164
+ baseOptions = configuration.baseOptions;
4165
+ }
4166
+
4167
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4168
+ const localVarHeaderParameter = {} as any;
4169
+ const localVarQueryParameter = {} as any;
4170
+
4171
+ // authentication bearerAuth required
4172
+ // http bearer authentication required
4173
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4174
+
4175
+
4176
+
4177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4179
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4180
+
4181
+ return {
4182
+ url: toPathString(localVarUrlObj),
4183
+ options: localVarRequestOptions,
4184
+ };
4185
+ },
4186
+ /**
4187
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
4188
+ * @summary Annuler une réservation (gestionnaire)
4189
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
4190
+ * @param {ManagerCancelBookingRequest} managerCancelBookingRequest
4191
+ * @param {*} [options] Override http request option.
4192
+ * @throws {RequiredError}
4193
+ */
4194
+ managerCancelBooking: async (bookingId: string, managerCancelBookingRequest: ManagerCancelBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4195
+ // verify required parameter 'bookingId' is not null or undefined
4196
+ assertParamExists('managerCancelBooking', 'bookingId', bookingId)
4197
+ // verify required parameter 'managerCancelBookingRequest' is not null or undefined
4198
+ assertParamExists('managerCancelBooking', 'managerCancelBookingRequest', managerCancelBookingRequest)
4199
+ const localVarPath = `/api/bookings/{bookingId}/manager-cancel`
4200
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
4201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4202
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4203
+ let baseOptions;
4204
+ if (configuration) {
4205
+ baseOptions = configuration.baseOptions;
4206
+ }
4207
+
4208
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4209
+ const localVarHeaderParameter = {} as any;
4210
+ const localVarQueryParameter = {} as any;
4211
+
4212
+ // authentication bearerAuth required
4213
+ // http bearer authentication required
4214
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4215
+
4216
+
4217
+
4218
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4219
+
4220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4222
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4223
+ localVarRequestOptions.data = serializeDataIfNeeded(managerCancelBookingRequest, localVarRequestOptions, configuration)
4224
+
4225
+ return {
4226
+ url: toPathString(localVarUrlObj),
4227
+ options: localVarRequestOptions,
4228
+ };
4229
+ },
4230
+ }
4231
+ };
4232
+
4233
+ /**
4234
+ * ManagerBookingsApi - functional programming interface
4235
+ * @export
4236
+ */
4237
+ export const ManagerBookingsApiFp = function(configuration?: Configuration) {
4238
+ const localVarAxiosParamCreator = ManagerBookingsApiAxiosParamCreator(configuration)
4239
+ return {
4240
+ /**
4241
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
4242
+ * @summary Appliquer les frais de no-show
4243
+ * @param {string} bookingId ID MongoDB de la réservation
4244
+ * @param {*} [options] Override http request option.
4245
+ * @throws {RequiredError}
4246
+ */
4247
+ async applyNoShowFee(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NoShowFeeResponse>> {
4248
+ const localVarAxiosArgs = await localVarAxiosParamCreator.applyNoShowFee(bookingId, options);
4249
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4250
+ const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.applyNoShowFee']?.[localVarOperationServerIndex]?.url;
4251
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4252
+ },
4253
+ /**
4254
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
4255
+ * @summary Enregistrer l\'arrivée des joueurs
4256
+ * @param {string} bookingId ID MongoDB de la réservation
4257
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
4258
+ * @param {*} [options] Override http request option.
4259
+ * @throws {RequiredError}
4260
+ */
4261
+ async checkInPlayers(bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayersResponse>> {
4262
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
4263
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4264
+ const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
4265
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4266
+ },
4267
+ /**
4268
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
4269
+ * @summary Obtenir le statut des paiements d\'une réservation
4270
+ * @param {string} bookingId ID MongoDB de la réservation
4271
+ * @param {*} [options] Override http request option.
4272
+ * @throws {RequiredError}
4273
+ */
4274
+ async getBookingPaymentStatus(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPaymentStatusResponse>> {
4275
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPaymentStatus(bookingId, options);
4276
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4277
+ const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.getBookingPaymentStatus']?.[localVarOperationServerIndex]?.url;
4278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4279
+ },
4280
+ /**
4281
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
4282
+ * @summary Annuler une réservation (gestionnaire)
4283
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
4284
+ * @param {ManagerCancelBookingRequest} managerCancelBookingRequest
4285
+ * @param {*} [options] Override http request option.
4286
+ * @throws {RequiredError}
4287
+ */
4288
+ async managerCancelBooking(bookingId: string, managerCancelBookingRequest: ManagerCancelBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerCancelBookingResponse>> {
4289
+ const localVarAxiosArgs = await localVarAxiosParamCreator.managerCancelBooking(bookingId, managerCancelBookingRequest, options);
4290
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4291
+ const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.managerCancelBooking']?.[localVarOperationServerIndex]?.url;
4292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4293
+ },
4294
+ }
4295
+ };
4296
+
4297
+ /**
4298
+ * ManagerBookingsApi - factory interface
4299
+ * @export
4300
+ */
4301
+ export const ManagerBookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4302
+ const localVarFp = ManagerBookingsApiFp(configuration)
4303
+ return {
4304
+ /**
4305
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
4306
+ * @summary Appliquer les frais de no-show
4307
+ * @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
4308
+ * @param {*} [options] Override http request option.
4309
+ * @throws {RequiredError}
4310
+ */
4311
+ applyNoShowFee(requestParameters: ManagerBookingsApiApplyNoShowFeeRequest, options?: RawAxiosRequestConfig): AxiosPromise<NoShowFeeResponse> {
4312
+ return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
4313
+ },
4314
+ /**
4315
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
4316
+ * @summary Enregistrer l\'arrivée des joueurs
4317
+ * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
4318
+ * @param {*} [options] Override http request option.
4319
+ * @throws {RequiredError}
4320
+ */
4321
+ checkInPlayers(requestParameters: ManagerBookingsApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
4322
+ return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
4323
+ },
4324
+ /**
4325
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
4326
+ * @summary Obtenir le statut des paiements d\'une réservation
4327
+ * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
4328
+ * @param {*} [options] Override http request option.
4329
+ * @throws {RequiredError}
4330
+ */
4331
+ getBookingPaymentStatus(requestParameters: ManagerBookingsApiGetBookingPaymentStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPaymentStatusResponse> {
4332
+ return localVarFp.getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(axios, basePath));
4333
+ },
4334
+ /**
4335
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
4336
+ * @summary Annuler une réservation (gestionnaire)
4337
+ * @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
4338
+ * @param {*} [options] Override http request option.
4339
+ * @throws {RequiredError}
4340
+ */
4341
+ managerCancelBooking(requestParameters: ManagerBookingsApiManagerCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerCancelBookingResponse> {
4342
+ return localVarFp.managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(axios, basePath));
4343
+ },
4344
+ };
4345
+ };
4346
+
4347
+ /**
4348
+ * Request parameters for applyNoShowFee operation in ManagerBookingsApi.
4349
+ * @export
4350
+ * @interface ManagerBookingsApiApplyNoShowFeeRequest
4351
+ */
4352
+ export interface ManagerBookingsApiApplyNoShowFeeRequest {
4353
+ /**
4354
+ * ID MongoDB de la réservation
4355
+ * @type {string}
4356
+ * @memberof ManagerBookingsApiApplyNoShowFee
4357
+ */
4358
+ readonly bookingId: string
4359
+ }
4360
+
4361
+ /**
4362
+ * Request parameters for checkInPlayers operation in ManagerBookingsApi.
4363
+ * @export
4364
+ * @interface ManagerBookingsApiCheckInPlayersRequest
4365
+ */
4366
+ export interface ManagerBookingsApiCheckInPlayersRequest {
4367
+ /**
4368
+ * ID MongoDB de la réservation
4369
+ * @type {string}
4370
+ * @memberof ManagerBookingsApiCheckInPlayers
4371
+ */
4372
+ readonly bookingId: string
4373
+
4374
+ /**
4375
+ *
4376
+ * @type {CheckInPlayersRequest}
4377
+ * @memberof ManagerBookingsApiCheckInPlayers
4378
+ */
4379
+ readonly checkInPlayersRequest: CheckInPlayersRequest
4380
+ }
4381
+
4382
+ /**
4383
+ * Request parameters for getBookingPaymentStatus operation in ManagerBookingsApi.
4384
+ * @export
4385
+ * @interface ManagerBookingsApiGetBookingPaymentStatusRequest
4386
+ */
4387
+ export interface ManagerBookingsApiGetBookingPaymentStatusRequest {
4388
+ /**
4389
+ * ID MongoDB de la réservation
4390
+ * @type {string}
4391
+ * @memberof ManagerBookingsApiGetBookingPaymentStatus
4392
+ */
4393
+ readonly bookingId: string
4394
+ }
4395
+
4396
+ /**
4397
+ * Request parameters for managerCancelBooking operation in ManagerBookingsApi.
4398
+ * @export
4399
+ * @interface ManagerBookingsApiManagerCancelBookingRequest
4400
+ */
4401
+ export interface ManagerBookingsApiManagerCancelBookingRequest {
4402
+ /**
4403
+ * ID MongoDB de la réservation à annuler
4404
+ * @type {string}
4405
+ * @memberof ManagerBookingsApiManagerCancelBooking
4406
+ */
4407
+ readonly bookingId: string
4408
+
4409
+ /**
4410
+ *
4411
+ * @type {ManagerCancelBookingRequest}
4412
+ * @memberof ManagerBookingsApiManagerCancelBooking
4413
+ */
4414
+ readonly managerCancelBookingRequest: ManagerCancelBookingRequest
4415
+ }
4416
+
4417
+ /**
4418
+ * ManagerBookingsApi - object-oriented interface
4419
+ * @export
4420
+ * @class ManagerBookingsApi
4421
+ * @extends {BaseAPI}
4422
+ */
4423
+ export class ManagerBookingsApi extends BaseAPI {
4424
+ /**
4425
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
4426
+ * @summary Appliquer les frais de no-show
4427
+ * @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
4428
+ * @param {*} [options] Override http request option.
4429
+ * @throws {RequiredError}
4430
+ * @memberof ManagerBookingsApi
4431
+ */
4432
+ public applyNoShowFee(requestParameters: ManagerBookingsApiApplyNoShowFeeRequest, options?: RawAxiosRequestConfig) {
4433
+ return ManagerBookingsApiFp(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
4434
+ }
4435
+
4436
+ /**
4437
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
4438
+ * @summary Enregistrer l\'arrivée des joueurs
4439
+ * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
4440
+ * @param {*} [options] Override http request option.
4441
+ * @throws {RequiredError}
4442
+ * @memberof ManagerBookingsApi
4443
+ */
4444
+ public checkInPlayers(requestParameters: ManagerBookingsApiCheckInPlayersRequest, options?: RawAxiosRequestConfig) {
4445
+ return ManagerBookingsApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
4446
+ }
4447
+
4448
+ /**
4449
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
4450
+ * @summary Obtenir le statut des paiements d\'une réservation
4451
+ * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
4452
+ * @param {*} [options] Override http request option.
4453
+ * @throws {RequiredError}
4454
+ * @memberof ManagerBookingsApi
4455
+ */
4456
+ public getBookingPaymentStatus(requestParameters: ManagerBookingsApiGetBookingPaymentStatusRequest, options?: RawAxiosRequestConfig) {
4457
+ return ManagerBookingsApiFp(this.configuration).getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
4458
+ }
4459
+
4460
+ /**
4461
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
4462
+ * @summary Annuler une réservation (gestionnaire)
4463
+ * @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
4464
+ * @param {*} [options] Override http request option.
4465
+ * @throws {RequiredError}
4466
+ * @memberof ManagerBookingsApi
4467
+ */
4468
+ public managerCancelBooking(requestParameters: ManagerBookingsApiManagerCancelBookingRequest, options?: RawAxiosRequestConfig) {
4469
+ return ManagerBookingsApiFp(this.configuration).managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
4470
+ }
4471
+ }
4472
+
4473
+
4474
+
3484
4475
  /**
3485
4476
  * ManagerClubCourtsApi - axios parameter creator
3486
4477
  * @export