@tennac-booking/sdk 1.0.16 → 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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +19 -2
  3. package/api.ts +1043 -52
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +779 -44
  8. package/dist/api.js +455 -4
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +779 -44
  16. package/dist/esm/api.js +444 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingPaymentStatusResponse.md +24 -0
  28. package/docs/BookingPaymentStatusResponseBooking.md +26 -0
  29. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
  30. package/docs/BookingPaymentStatusResponseSummary.md +28 -0
  31. package/docs/BookingsApi.md +68 -0
  32. package/docs/CancelBookingRequest.md +20 -0
  33. package/docs/CancelBookingResponse.md +2 -2
  34. package/docs/CancelBookingResponseBooking.md +6 -6
  35. package/docs/CheckInPlayersRequest.md +20 -0
  36. package/docs/CheckInPlayersResponse.md +30 -0
  37. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
  38. package/docs/ClubInfoResponse.md +2 -0
  39. package/docs/CourtResponse.md +14 -14
  40. package/docs/ManagerBookingsApi.md +243 -0
  41. package/docs/ManagerCancelBookingRequest.md +20 -0
  42. package/docs/ManagerCancelBookingResponse.md +2 -2
  43. package/docs/ManagerCancelBookingResponseBooking.md +6 -6
  44. package/docs/NoShowFeeResponse.md +30 -0
  45. package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
  46. package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,10 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
30
+ Stripe: 'stripe',
31
+ Onsite: 'onsite'
32
+ };
29
33
  /**
30
34
  *
31
35
  * @export
@@ -66,6 +70,14 @@ export const CreatePriceRequestIntervalEnum = {
66
70
  export const ManagerCancelBookingResponseBookingStatusEnum = {
67
71
  Cancelled: 'cancelled'
68
72
  };
73
+ export const NoShowFeeResponseCaptureResultsInnerTypeEnum = {
74
+ CreatorPayment: 'creator_payment',
75
+ PlayerPayment: 'player_payment'
76
+ };
77
+ export const NoShowFeeResponseCaptureResultsInnerStatusEnum = {
78
+ Captured: 'captured',
79
+ Failed: 'failed'
80
+ };
69
81
  /**
70
82
  * Méthode de paiement
71
83
  * @export
@@ -365,6 +377,437 @@ export class AdminClubsApi extends BaseAPI {
365
377
  return AdminClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
366
378
  }
367
379
  }
380
+ /**
381
+ * BookingsApi - axios parameter creator
382
+ * @export
383
+ */
384
+ export const BookingsApiAxiosParamCreator = function (configuration) {
385
+ return {
386
+ /**
387
+ * 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.
388
+ * @summary Annuler une réservation (créateur uniquement)
389
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
390
+ * @param {CancelBookingRequest} cancelBookingRequest
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ cancelBooking: (bookingId_1, cancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, cancelBookingRequest_1, ...args_1], void 0, function* (bookingId, cancelBookingRequest, options = {}) {
395
+ // verify required parameter 'bookingId' is not null or undefined
396
+ assertParamExists('cancelBooking', 'bookingId', bookingId);
397
+ // verify required parameter 'cancelBookingRequest' is not null or undefined
398
+ assertParamExists('cancelBooking', 'cancelBookingRequest', cancelBookingRequest);
399
+ const localVarPath = `/api/bookings/{bookingId}/cancel`
400
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
401
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
402
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
403
+ let baseOptions;
404
+ if (configuration) {
405
+ baseOptions = configuration.baseOptions;
406
+ }
407
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
408
+ const localVarHeaderParameter = {};
409
+ const localVarQueryParameter = {};
410
+ // authentication bearerAuth required
411
+ // http bearer authentication required
412
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
413
+ localVarHeaderParameter['Content-Type'] = 'application/json';
414
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
415
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
416
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
417
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelBookingRequest, localVarRequestOptions, configuration);
418
+ return {
419
+ url: toPathString(localVarUrlObj),
420
+ options: localVarRequestOptions,
421
+ };
422
+ }),
423
+ };
424
+ };
425
+ /**
426
+ * BookingsApi - functional programming interface
427
+ * @export
428
+ */
429
+ export const BookingsApiFp = function (configuration) {
430
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
431
+ return {
432
+ /**
433
+ * 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.
434
+ * @summary Annuler une réservation (créateur uniquement)
435
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
436
+ * @param {CancelBookingRequest} cancelBookingRequest
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ cancelBooking(bookingId, cancelBookingRequest, options) {
441
+ return __awaiter(this, void 0, void 0, function* () {
442
+ var _a, _b, _c;
443
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
444
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
445
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.cancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
446
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
447
+ });
448
+ },
449
+ };
450
+ };
451
+ /**
452
+ * BookingsApi - factory interface
453
+ * @export
454
+ */
455
+ export const BookingsApiFactory = function (configuration, basePath, axios) {
456
+ const localVarFp = BookingsApiFp(configuration);
457
+ return {
458
+ /**
459
+ * 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.
460
+ * @summary Annuler une réservation (créateur uniquement)
461
+ * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ cancelBooking(requestParameters, options) {
466
+ return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
467
+ },
468
+ };
469
+ };
470
+ /**
471
+ * BookingsApi - object-oriented interface
472
+ * @export
473
+ * @class BookingsApi
474
+ * @extends {BaseAPI}
475
+ */
476
+ export class BookingsApi extends BaseAPI {
477
+ /**
478
+ * 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.
479
+ * @summary Annuler une réservation (créateur uniquement)
480
+ * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ * @memberof BookingsApi
484
+ */
485
+ cancelBooking(requestParameters, options) {
486
+ return BookingsApiFp(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
487
+ }
488
+ }
489
+ /**
490
+ * ManagerBookingsApi - axios parameter creator
491
+ * @export
492
+ */
493
+ export const ManagerBookingsApiAxiosParamCreator = function (configuration) {
494
+ return {
495
+ /**
496
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
497
+ * @summary Appliquer les frais de no-show
498
+ * @param {string} bookingId ID MongoDB de la réservation
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ applyNoShowFee: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
503
+ // verify required parameter 'bookingId' is not null or undefined
504
+ assertParamExists('applyNoShowFee', 'bookingId', bookingId);
505
+ const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
506
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
508
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
509
+ let baseOptions;
510
+ if (configuration) {
511
+ baseOptions = configuration.baseOptions;
512
+ }
513
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
514
+ const localVarHeaderParameter = {};
515
+ const localVarQueryParameter = {};
516
+ // authentication bearerAuth required
517
+ // http bearer authentication required
518
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
519
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
522
+ return {
523
+ url: toPathString(localVarUrlObj),
524
+ options: localVarRequestOptions,
525
+ };
526
+ }),
527
+ /**
528
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
529
+ * @summary Enregistrer l\'arrivée des joueurs
530
+ * @param {string} bookingId ID MongoDB de la réservation
531
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
536
+ // verify required parameter 'bookingId' is not null or undefined
537
+ assertParamExists('checkInPlayers', 'bookingId', bookingId);
538
+ // verify required parameter 'checkInPlayersRequest' is not null or undefined
539
+ assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
540
+ const localVarPath = `/api/bookings/{bookingId}/checkin-players`
541
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
543
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
544
+ let baseOptions;
545
+ if (configuration) {
546
+ baseOptions = configuration.baseOptions;
547
+ }
548
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
549
+ const localVarHeaderParameter = {};
550
+ const localVarQueryParameter = {};
551
+ // authentication bearerAuth required
552
+ // http bearer authentication required
553
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
554
+ localVarHeaderParameter['Content-Type'] = 'application/json';
555
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
556
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
557
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
558
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration);
559
+ return {
560
+ url: toPathString(localVarUrlObj),
561
+ options: localVarRequestOptions,
562
+ };
563
+ }),
564
+ /**
565
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
566
+ * @summary Obtenir le statut des paiements d\'une réservation
567
+ * @param {string} bookingId ID MongoDB de la réservation
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ getBookingPaymentStatus: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
572
+ // verify required parameter 'bookingId' is not null or undefined
573
+ assertParamExists('getBookingPaymentStatus', 'bookingId', bookingId);
574
+ const localVarPath = `/api/bookings/{bookingId}/payment-status`
575
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
576
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
577
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
578
+ let baseOptions;
579
+ if (configuration) {
580
+ baseOptions = configuration.baseOptions;
581
+ }
582
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
583
+ const localVarHeaderParameter = {};
584
+ const localVarQueryParameter = {};
585
+ // authentication bearerAuth required
586
+ // http bearer authentication required
587
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
588
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
589
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
590
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
591
+ return {
592
+ url: toPathString(localVarUrlObj),
593
+ options: localVarRequestOptions,
594
+ };
595
+ }),
596
+ /**
597
+ * 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.
598
+ * @summary Annuler une réservation (gestionnaire)
599
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
600
+ * @param {ManagerCancelBookingRequest} managerCancelBookingRequest
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ managerCancelBooking: (bookingId_1, managerCancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, managerCancelBookingRequest_1, ...args_1], void 0, function* (bookingId, managerCancelBookingRequest, options = {}) {
605
+ // verify required parameter 'bookingId' is not null or undefined
606
+ assertParamExists('managerCancelBooking', 'bookingId', bookingId);
607
+ // verify required parameter 'managerCancelBookingRequest' is not null or undefined
608
+ assertParamExists('managerCancelBooking', 'managerCancelBookingRequest', managerCancelBookingRequest);
609
+ const localVarPath = `/api/bookings/{bookingId}/manager-cancel`
610
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
613
+ let baseOptions;
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
618
+ const localVarHeaderParameter = {};
619
+ const localVarQueryParameter = {};
620
+ // authentication bearerAuth required
621
+ // http bearer authentication required
622
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
623
+ localVarHeaderParameter['Content-Type'] = 'application/json';
624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
626
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
627
+ localVarRequestOptions.data = serializeDataIfNeeded(managerCancelBookingRequest, localVarRequestOptions, configuration);
628
+ return {
629
+ url: toPathString(localVarUrlObj),
630
+ options: localVarRequestOptions,
631
+ };
632
+ }),
633
+ };
634
+ };
635
+ /**
636
+ * ManagerBookingsApi - functional programming interface
637
+ * @export
638
+ */
639
+ export const ManagerBookingsApiFp = function (configuration) {
640
+ const localVarAxiosParamCreator = ManagerBookingsApiAxiosParamCreator(configuration);
641
+ return {
642
+ /**
643
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
644
+ * @summary Appliquer les frais de no-show
645
+ * @param {string} bookingId ID MongoDB de la réservation
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ */
649
+ applyNoShowFee(bookingId, options) {
650
+ return __awaiter(this, void 0, void 0, function* () {
651
+ var _a, _b, _c;
652
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.applyNoShowFee(bookingId, options);
653
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
654
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.applyNoShowFee']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
655
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
656
+ });
657
+ },
658
+ /**
659
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
660
+ * @summary Enregistrer l\'arrivée des joueurs
661
+ * @param {string} bookingId ID MongoDB de la réservation
662
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ checkInPlayers(bookingId, checkInPlayersRequest, options) {
667
+ return __awaiter(this, void 0, void 0, function* () {
668
+ var _a, _b, _c;
669
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
670
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
671
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
672
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
673
+ });
674
+ },
675
+ /**
676
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
677
+ * @summary Obtenir le statut des paiements d\'une réservation
678
+ * @param {string} bookingId ID MongoDB de la réservation
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ getBookingPaymentStatus(bookingId, options) {
683
+ return __awaiter(this, void 0, void 0, function* () {
684
+ var _a, _b, _c;
685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPaymentStatus(bookingId, options);
686
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
687
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.getBookingPaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
688
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
689
+ });
690
+ },
691
+ /**
692
+ * 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.
693
+ * @summary Annuler une réservation (gestionnaire)
694
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
695
+ * @param {ManagerCancelBookingRequest} managerCancelBookingRequest
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ managerCancelBooking(bookingId, managerCancelBookingRequest, options) {
700
+ return __awaiter(this, void 0, void 0, function* () {
701
+ var _a, _b, _c;
702
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.managerCancelBooking(bookingId, managerCancelBookingRequest, options);
703
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
704
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.managerCancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
705
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
706
+ });
707
+ },
708
+ };
709
+ };
710
+ /**
711
+ * ManagerBookingsApi - factory interface
712
+ * @export
713
+ */
714
+ export const ManagerBookingsApiFactory = function (configuration, basePath, axios) {
715
+ const localVarFp = ManagerBookingsApiFp(configuration);
716
+ return {
717
+ /**
718
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
719
+ * @summary Appliquer les frais de no-show
720
+ * @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ */
724
+ applyNoShowFee(requestParameters, options) {
725
+ return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
726
+ },
727
+ /**
728
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
729
+ * @summary Enregistrer l\'arrivée des joueurs
730
+ * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ checkInPlayers(requestParameters, options) {
735
+ return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
736
+ },
737
+ /**
738
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
739
+ * @summary Obtenir le statut des paiements d\'une réservation
740
+ * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ */
744
+ getBookingPaymentStatus(requestParameters, options) {
745
+ return localVarFp.getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(axios, basePath));
746
+ },
747
+ /**
748
+ * 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.
749
+ * @summary Annuler une réservation (gestionnaire)
750
+ * @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ */
754
+ managerCancelBooking(requestParameters, options) {
755
+ return localVarFp.managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(axios, basePath));
756
+ },
757
+ };
758
+ };
759
+ /**
760
+ * ManagerBookingsApi - object-oriented interface
761
+ * @export
762
+ * @class ManagerBookingsApi
763
+ * @extends {BaseAPI}
764
+ */
765
+ export class ManagerBookingsApi extends BaseAPI {
766
+ /**
767
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
768
+ * @summary Appliquer les frais de no-show
769
+ * @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ * @memberof ManagerBookingsApi
773
+ */
774
+ applyNoShowFee(requestParameters, options) {
775
+ return ManagerBookingsApiFp(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
776
+ }
777
+ /**
778
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
779
+ * @summary Enregistrer l\'arrivée des joueurs
780
+ * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ * @memberof ManagerBookingsApi
784
+ */
785
+ checkInPlayers(requestParameters, options) {
786
+ return ManagerBookingsApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
787
+ }
788
+ /**
789
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
790
+ * @summary Obtenir le statut des paiements d\'une réservation
791
+ * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ * @memberof ManagerBookingsApi
795
+ */
796
+ getBookingPaymentStatus(requestParameters, options) {
797
+ return ManagerBookingsApiFp(this.configuration).getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
798
+ }
799
+ /**
800
+ * 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.
801
+ * @summary Annuler une réservation (gestionnaire)
802
+ * @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ * @memberof ManagerBookingsApi
806
+ */
807
+ managerCancelBooking(requestParameters, options) {
808
+ return ManagerBookingsApiFp(this.configuration).managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
809
+ }
810
+ }
368
811
  /**
369
812
  * ManagerClubCourtsApi - axios parameter creator
370
813
  * @export
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pickle Ball API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.14
8
+ * The version of the OpenAPI document: 1.0.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,24 @@
1
+ # BookingPaymentStatusResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **booking** | [**BookingPaymentStatusResponseBooking**](BookingPaymentStatusResponseBooking.md) | | [optional] [default to undefined]
9
+ **paymentStatus** | [**Array<BookingPaymentStatusResponsePaymentStatusInner>**](BookingPaymentStatusResponsePaymentStatusInner.md) | | [optional] [default to undefined]
10
+ **summary** | [**BookingPaymentStatusResponseSummary**](BookingPaymentStatusResponseSummary.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BookingPaymentStatusResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: BookingPaymentStatusResponse = {
18
+ booking,
19
+ paymentStatus,
20
+ summary,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # BookingPaymentStatusResponseBooking
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **status** | **string** | | [optional] [default to undefined]
10
+ **isCreatorPayingAll** | **boolean** | | [optional] [default to undefined]
11
+ **totalPrice** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { BookingPaymentStatusResponseBooking } from '@tennac-booking/sdk';
17
+
18
+ const instance: BookingPaymentStatusResponseBooking = {
19
+ id,
20
+ status,
21
+ isCreatorPayingAll,
22
+ totalPrice,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,36 @@
1
+ # BookingPaymentStatusResponsePaymentStatusInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | | [optional] [default to undefined]
9
+ **playerName** | **string** | | [optional] [default to undefined]
10
+ **playerEmail** | **string** | | [optional] [default to undefined]
11
+ **amount** | **number** | | [optional] [default to undefined]
12
+ **paymentMethod** | **string** | | [optional] [default to undefined]
13
+ **status** | **string** | | [optional] [default to undefined]
14
+ **accepted** | **boolean** | | [optional] [default to undefined]
15
+ **hasPaid** | **boolean** | | [optional] [default to undefined]
16
+ **needsCheckIn** | **boolean** | Indique si le joueur a besoin d\'être enregistré (paiement sur place en attente) | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { BookingPaymentStatusResponsePaymentStatusInner } from '@tennac-booking/sdk';
22
+
23
+ const instance: BookingPaymentStatusResponsePaymentStatusInner = {
24
+ playerId,
25
+ playerName,
26
+ playerEmail,
27
+ amount,
28
+ paymentMethod,
29
+ status,
30
+ accepted,
31
+ hasPaid,
32
+ needsCheckIn,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)