@tennac-booking/sdk 1.0.218 → 1.0.219

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 (122) hide show
  1. package/.openapi-generator/FILES +24 -41
  2. package/README.md +38 -64
  3. package/api.ts +1733 -3004
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1419 -2447
  8. package/dist/api.js +932 -1382
  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 +1419 -2447
  16. package/dist/esm/api.js +915 -1369
  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/AgendaBooking.md +0 -2
  28. package/docs/BookingPopulated.md +1 -9
  29. package/docs/BookingSummary.md +0 -4
  30. package/docs/BookingsApi.md +79 -25
  31. package/docs/BookingsStaffApi.md +57 -1
  32. package/docs/BookingsUserApi.md +6 -6
  33. package/docs/CheckInPlayerSumupRequest.md +22 -0
  34. package/docs/CheckInPlayerSumupResponse.md +24 -0
  35. package/docs/CheckInSumupPaymentInfo.md +26 -0
  36. package/docs/ClubPageResponse.md +0 -14
  37. package/docs/ClubPricingPeriodResponse.md +6 -6
  38. package/docs/ClubReservationSettingsResponse.md +2 -2
  39. package/docs/ClubResponse.md +2 -12
  40. package/docs/ClubSummary.md +0 -6
  41. package/docs/CreateOpenBookingRequest.md +2 -4
  42. package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -4
  43. package/docs/EventBookingDetailSummary.md +0 -2
  44. package/docs/EventBookingResponse.md +0 -2
  45. package/docs/EventResponse.md +0 -2
  46. package/docs/EventsApi.md +0 -58
  47. package/docs/EventsStaffApi.md +25 -119
  48. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +0 -2
  49. package/docs/GetOpenBookingPrice200Response.md +24 -0
  50. package/docs/GetOpenBookingPriceRequest.md +26 -0
  51. package/docs/IUserAttributes.md +0 -4
  52. package/docs/JoinPriceEstimateResponse.md +38 -0
  53. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
  54. package/docs/MyClubInfosResponse.md +2 -0
  55. package/docs/OpenBookingInfo.md +2 -4
  56. package/docs/OpenBookingSlotInfo.md +24 -0
  57. package/docs/PaymentIntentResult.md +28 -0
  58. package/docs/{SupportedLanguage.md → PaymentProviderType.md} +3 -3
  59. package/docs/{CourtEnvironment.md → PaymentStatus.md} +7 -3
  60. package/docs/PaymentsStaffApi.md +124 -0
  61. package/docs/PublicEmailApi.md +4 -4
  62. package/docs/QuickReservationClubSummary.md +0 -12
  63. package/docs/SportResponse.md +0 -2
  64. package/docs/StaffEventBookingResponse.md +0 -2
  65. package/docs/StaffEventsPaginatedResponse.md +26 -0
  66. package/docs/StaffUserProfileResponse.md +0 -4
  67. package/docs/SubscriptionPlanDiscountResponse.md +0 -2
  68. package/docs/SubscriptionPlanDiscountUpdateRequest.md +0 -2
  69. package/docs/SumUpApi.md +63 -0
  70. package/docs/SumUpManagerApi.md +332 -0
  71. package/docs/SumupAccountStatusResponse.md +32 -0
  72. package/docs/{VerifyVerificationCodeResponse.md → SumupCancelPaymentRequest.md} +5 -5
  73. package/docs/{RequestVerificationCodeResponse.md → SumupConnectUrlResponse.md} +5 -5
  74. package/docs/SumupCreatePaymentRequest.md +32 -0
  75. package/docs/SumupOAuthCallbackResponse.md +24 -0
  76. package/docs/SumupPairReaderRequest.md +22 -0
  77. package/docs/{MarkNotificationsReadResponse.md → SumupPairReaderResponse.md} +5 -5
  78. package/docs/SumupReaderInfo.md +34 -0
  79. package/docs/{Health200Response.md → SumupReadersResponse.md} +5 -7
  80. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  81. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  82. package/docs/UserClubMembership.md +0 -2
  83. package/docs/UserProfileResponse.md +0 -12
  84. package/docs/UsersApi.md +0 -273
  85. package/docs/WaitListStaffApi.md +0 -55
  86. package/index.ts +1 -1
  87. package/package.json +1 -1
  88. package/docs/AuthApi.md +0 -113
  89. package/docs/ClubPageResponseClubCustomerStatus.md +0 -27
  90. package/docs/ClubPricingPeriodPayload.md +0 -32
  91. package/docs/ComingEventsPageResponse.md +0 -22
  92. package/docs/EstimateOpenBookingJoinRequest.md +0 -24
  93. package/docs/JobResult.md +0 -24
  94. package/docs/JobsApi.md +0 -367
  95. package/docs/JoinOpenBookingRequest.md +0 -28
  96. package/docs/MarkNotificationsReadRequest.md +0 -22
  97. package/docs/NotificationData.md +0 -22
  98. package/docs/NotificationParticipantPreview.md +0 -22
  99. package/docs/NotificationPreview.md +0 -60
  100. package/docs/NotificationResponse.md +0 -36
  101. package/docs/NotificationType.md +0 -26
  102. package/docs/OpenBookingBasePriceResponse.md +0 -24
  103. package/docs/OpenBookingJoinEstimateResponse.md +0 -26
  104. package/docs/OpenBookingPriceBody.md +0 -26
  105. package/docs/PartnerSearchItem.md +0 -28
  106. package/docs/PartnerSearchResponse.md +0 -22
  107. package/docs/PartnerSearchResponseMeta.md +0 -26
  108. package/docs/PricingPeriodDiscount.md +0 -24
  109. package/docs/QuickReservationCourtType.md +0 -10
  110. package/docs/RequestOrganizationEmailCodeBody.md +0 -22
  111. package/docs/RequestOrganizationEmailCodeResponse.md +0 -22
  112. package/docs/RequestVerificationCodeBody.md +0 -26
  113. package/docs/StaffEventsPageResponse.md +0 -22
  114. package/docs/UserNextBookingSummary.md +0 -26
  115. package/docs/UserNotificationsResponse.md +0 -22
  116. package/docs/UserNotificationsResponseMeta.md +0 -28
  117. package/docs/VerifyOrganizationEmailCodeBody.md +0 -24
  118. package/docs/VerifyOrganizationEmailCodeResponse.md +0 -22
  119. package/docs/VerifyVerificationCodeBody.md +0 -24
  120. package/docs/WaitListEntryWithPlayer.md +0 -44
  121. package/docs/WaitListPlayer.md +0 -28
  122. package/docs/WaitListPlayersListResponse.md +0 -22
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.214
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,11 +61,6 @@ export const BookingStatus = {
61
61
  Canceled: 'canceled',
62
62
  NoShow: 'no-show'
63
63
  };
64
- export const BookingSummaryUserParticipationStatusEnum = {
65
- Participant: 'participant',
66
- WaitingJoinPayment: 'waitingJoinPayment',
67
- Waitlist: 'waitlist'
68
- };
69
64
  export const CaptureResultTypeEnum = {
70
65
  CreatorPayment: 'creator_payment',
71
66
  PlayerPayment: 'player_payment'
@@ -83,15 +78,6 @@ export const ClubRoleResponseRoleEnum = {
83
78
  Manager: 'manager',
84
79
  Staff: 'staff'
85
80
  };
86
- /**
87
- *
88
- * @export
89
- * @enum {string}
90
- */
91
- export const CourtEnvironment = {
92
- Indoor: 'indoor',
93
- Outdoor: 'outdoor'
94
- };
95
81
  /**
96
82
  *
97
83
  * @export
@@ -141,11 +127,6 @@ export const DiscountType = {
141
127
  Percentage: 'percentage',
142
128
  OffPeak: 'off_peak'
143
129
  };
144
- export const EventBookingDetailSummaryUserParticipationStatusEnum = {
145
- Participant: 'participant',
146
- WaitingJoinPayment: 'waitingJoinPayment',
147
- Waitlist: 'waitlist'
148
- };
149
130
  /**
150
131
  *
151
132
  * @export
@@ -245,23 +226,6 @@ export const InvoiceStatusSETUPPENDING = {
245
226
  export const InvoiceStatusSETUPSUCCESS = {
246
227
  SetupSuccess: 'setup_success'
247
228
  };
248
- /**
249
- *
250
- * @export
251
- * @enum {string}
252
- */
253
- export const NotificationType = {
254
- BookingCreated: 'booking_created',
255
- BookingSetupRequired: 'booking_setup_required',
256
- BookingCancelled: 'booking_cancelled',
257
- BookingReminder: 'booking_reminder',
258
- EventRegistrationConfirmed: 'event_registration_confirmed',
259
- EventReminder: 'event_reminder',
260
- OpenBookingJoined: 'open_booking_joined',
261
- OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
262
- WaitlistSpotAvailable: 'waitlist_spot_available',
263
- WaitlistConfirmed: 'waitlist_confirmed'
264
- };
265
229
  export const PartialPublicAccessSettingsPaymentModeEnum = {
266
230
  Free: 'free',
267
231
  AccessFee: 'access_fee',
@@ -288,6 +252,26 @@ export const PaymentMethod = {
288
252
  OnsiteCash: 'onsite_cash',
289
253
  Free: 'free'
290
254
  };
255
+ /**
256
+ *
257
+ * @export
258
+ * @enum {string}
259
+ */
260
+ export const PaymentProviderType = {
261
+ Stripe: 'stripe',
262
+ Sumup: 'sumup'
263
+ };
264
+ /**
265
+ *
266
+ * @export
267
+ * @enum {string}
268
+ */
269
+ export const PaymentStatus = {
270
+ Pending: 'pending',
271
+ Succeeded: 'succeeded',
272
+ Failed: 'failed',
273
+ Cancelled: 'cancelled'
274
+ };
291
275
  /**
292
276
  *
293
277
  * @export
@@ -316,15 +300,6 @@ export const PublicAccessSettingsPaymentModeEnum = {
316
300
  AccessFee: 'access_fee',
317
301
  PerCourt: 'per_court'
318
302
  };
319
- /**
320
- *
321
- * @export
322
- * @enum {string}
323
- */
324
- export const QuickReservationCourtType = {
325
- Indoor: 'indoor',
326
- Outdoor: 'outdoor'
327
- };
328
303
  export const RecurringDefinitionResponseRecurringTypeEnum = {
329
304
  Daily: 'daily',
330
305
  Weekly: 'weekly',
@@ -362,15 +337,6 @@ export const StaffUserProfileResponseCreatedFromEnum = {
362
337
  App: 'app',
363
338
  Website: 'website'
364
339
  };
365
- /**
366
- *
367
- * @export
368
- * @enum {string}
369
- */
370
- export const SupportedLanguage = {
371
- Fr: 'fr',
372
- En: 'en'
373
- };
374
340
  /**
375
341
  *
376
342
  * @export
@@ -459,11 +425,6 @@ export const VisibilityType = {
459
425
  Private: 'private',
460
426
  Invitation: 'invitation'
461
427
  };
462
- export const WaitListEntryWithPlayerTargetTypeEnum = {
463
- Event: 'event',
464
- Booking: 'booking',
465
- EventBooking: 'event_booking'
466
- };
467
428
  export const WaitListResponseTargetTypeEnum = {
468
429
  Event: 'event',
469
430
  Booking: 'booking',
@@ -483,166 +444,6 @@ export const WeekdayKey = {
483
444
  Saturday: 'saturday',
484
445
  Sunday: 'sunday'
485
446
  };
486
- /**
487
- * AuthApi - axios parameter creator
488
- * @export
489
- */
490
- export const AuthApiAxiosParamCreator = function (configuration) {
491
- return {
492
- /**
493
- *
494
- * @param {RequestVerificationCodeBody} requestVerificationCodeBody
495
- * @param {*} [options] Override http request option.
496
- * @throws {RequiredError}
497
- */
498
- requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
499
- // verify required parameter 'requestVerificationCodeBody' is not null or undefined
500
- assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
501
- const localVarPath = `/api/auth/verification-code`;
502
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
503
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
504
- let baseOptions;
505
- if (configuration) {
506
- baseOptions = configuration.baseOptions;
507
- }
508
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
509
- const localVarHeaderParameter = {};
510
- const localVarQueryParameter = {};
511
- localVarHeaderParameter['Content-Type'] = 'application/json';
512
- setSearchParams(localVarUrlObj, localVarQueryParameter);
513
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
514
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
515
- localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration);
516
- return {
517
- url: toPathString(localVarUrlObj),
518
- options: localVarRequestOptions,
519
- };
520
- }),
521
- /**
522
- *
523
- * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
524
- * @param {*} [options] Override http request option.
525
- * @throws {RequiredError}
526
- */
527
- verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
528
- // verify required parameter 'verifyVerificationCodeBody' is not null or undefined
529
- assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
530
- const localVarPath = `/api/auth/verification-code/verify`;
531
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
532
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
533
- let baseOptions;
534
- if (configuration) {
535
- baseOptions = configuration.baseOptions;
536
- }
537
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
538
- const localVarHeaderParameter = {};
539
- const localVarQueryParameter = {};
540
- localVarHeaderParameter['Content-Type'] = 'application/json';
541
- setSearchParams(localVarUrlObj, localVarQueryParameter);
542
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
543
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
544
- localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration);
545
- return {
546
- url: toPathString(localVarUrlObj),
547
- options: localVarRequestOptions,
548
- };
549
- }),
550
- };
551
- };
552
- /**
553
- * AuthApi - functional programming interface
554
- * @export
555
- */
556
- export const AuthApiFp = function (configuration) {
557
- const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
558
- return {
559
- /**
560
- *
561
- * @param {RequestVerificationCodeBody} requestVerificationCodeBody
562
- * @param {*} [options] Override http request option.
563
- * @throws {RequiredError}
564
- */
565
- requestVerificationCode(requestVerificationCodeBody, options) {
566
- return __awaiter(this, void 0, void 0, function* () {
567
- var _a, _b, _c;
568
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
569
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
570
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
571
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
572
- });
573
- },
574
- /**
575
- *
576
- * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
577
- * @param {*} [options] Override http request option.
578
- * @throws {RequiredError}
579
- */
580
- verifyVerificationCode(verifyVerificationCodeBody, options) {
581
- return __awaiter(this, void 0, void 0, function* () {
582
- var _a, _b, _c;
583
- const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
584
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
585
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
586
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
587
- });
588
- },
589
- };
590
- };
591
- /**
592
- * AuthApi - factory interface
593
- * @export
594
- */
595
- export const AuthApiFactory = function (configuration, basePath, axios) {
596
- const localVarFp = AuthApiFp(configuration);
597
- return {
598
- /**
599
- *
600
- * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
601
- * @param {*} [options] Override http request option.
602
- * @throws {RequiredError}
603
- */
604
- requestVerificationCode(requestParameters, options) {
605
- return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
606
- },
607
- /**
608
- *
609
- * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
610
- * @param {*} [options] Override http request option.
611
- * @throws {RequiredError}
612
- */
613
- verifyVerificationCode(requestParameters, options) {
614
- return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
615
- },
616
- };
617
- };
618
- /**
619
- * AuthApi - object-oriented interface
620
- * @export
621
- * @class AuthApi
622
- * @extends {BaseAPI}
623
- */
624
- export class AuthApi extends BaseAPI {
625
- /**
626
- *
627
- * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
628
- * @param {*} [options] Override http request option.
629
- * @throws {RequiredError}
630
- * @memberof AuthApi
631
- */
632
- requestVerificationCode(requestParameters, options) {
633
- return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
634
- }
635
- /**
636
- *
637
- * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
638
- * @param {*} [options] Override http request option.
639
- * @throws {RequiredError}
640
- * @memberof AuthApi
641
- */
642
- verifyVerificationCode(requestParameters, options) {
643
- return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
644
- }
645
- }
646
447
  /**
647
448
  * BookingsApi - axios parameter creator
648
449
  * @export
@@ -679,18 +480,16 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
679
480
  };
680
481
  }),
681
482
  /**
682
- * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
483
+ * Estimer le prix pour rejoindre une réservation ouverte
683
484
  * @param {string} bookingId
684
- * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
485
+ * @param {number} [creditToUseInCents]
685
486
  * @param {*} [options] Override http request option.
686
487
  * @throws {RequiredError}
687
488
  */
688
- estimateOpenBookingJoin: (bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1) => __awaiter(this, [bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1], void 0, function* (bookingId, estimateOpenBookingJoinRequest, options = {}) {
489
+ estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
689
490
  // verify required parameter 'bookingId' is not null or undefined
690
- assertParamExists('estimateOpenBookingJoin', 'bookingId', bookingId);
691
- // verify required parameter 'estimateOpenBookingJoinRequest' is not null or undefined
692
- assertParamExists('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
693
- const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
491
+ assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
492
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate`
694
493
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
695
494
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
696
495
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -698,17 +497,18 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
698
497
  if (configuration) {
699
498
  baseOptions = configuration.baseOptions;
700
499
  }
701
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
500
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
702
501
  const localVarHeaderParameter = {};
703
502
  const localVarQueryParameter = {};
704
503
  // authentication bearerAuth required
705
504
  // http bearer authentication required
706
505
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
707
- localVarHeaderParameter['Content-Type'] = 'application/json';
506
+ if (creditToUseInCents !== undefined) {
507
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
508
+ }
708
509
  setSearchParams(localVarUrlObj, localVarQueryParameter);
709
510
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
710
511
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
711
- localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
712
512
  return {
713
513
  url: toPathString(localVarUrlObj),
714
514
  options: localVarRequestOptions,
@@ -807,15 +607,50 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
807
607
  };
808
608
  }),
809
609
  /**
810
- * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
610
+ * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
611
+ * @param {string} bookingId
612
+ * @param {number} [creditToUseInCents]
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
617
+ // verify required parameter 'bookingId' is not null or undefined
618
+ assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId);
619
+ const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
620
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
622
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
623
+ let baseOptions;
624
+ if (configuration) {
625
+ baseOptions = configuration.baseOptions;
626
+ }
627
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
628
+ const localVarHeaderParameter = {};
629
+ const localVarQueryParameter = {};
630
+ // authentication bearerAuth required
631
+ // http bearer authentication required
632
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
633
+ if (creditToUseInCents !== undefined) {
634
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
635
+ }
636
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
637
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
638
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
639
+ return {
640
+ url: toPathString(localVarUrlObj),
641
+ options: localVarRequestOptions,
642
+ };
643
+ }),
644
+ /**
645
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
811
646
  * @param {string} bookingId
812
647
  * @param {*} [options] Override http request option.
813
648
  * @throws {RequiredError}
814
649
  */
815
- getOpenBookingBasePrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
650
+ getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
816
651
  // verify required parameter 'bookingId' is not null or undefined
817
- assertParamExists('getOpenBookingBasePrice', 'bookingId', bookingId);
818
- const localVarPath = `/api/bookings/{bookingId}/open/base-price`
652
+ assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId);
653
+ const localVarPath = `/api/bookings/{bookingId}/open/join-price`
819
654
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
820
655
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
821
656
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -939,15 +774,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
939
774
  /**
940
775
  *
941
776
  * @param {string} bookingId
942
- * @param {JoinOpenBookingRequest} joinOpenBookingRequest
777
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
943
778
  * @param {*} [options] Override http request option.
944
779
  * @throws {RequiredError}
945
780
  */
946
- joinOpenBooking: (bookingId_1, joinOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenBookingRequest, options = {}) {
781
+ joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
947
782
  // verify required parameter 'bookingId' is not null or undefined
948
783
  assertParamExists('joinOpenBooking', 'bookingId', bookingId);
949
- // verify required parameter 'joinOpenBookingRequest' is not null or undefined
950
- assertParamExists('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest);
784
+ // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
785
+ assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
951
786
  const localVarPath = `/api/bookings/{bookingId}/open/join`
952
787
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
953
788
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -966,7 +801,7 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
966
801
  setSearchParams(localVarUrlObj, localVarQueryParameter);
967
802
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
968
803
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
969
- localVarRequestOptions.data = serializeDataIfNeeded(joinOpenBookingRequest, localVarRequestOptions, configuration);
804
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
970
805
  return {
971
806
  url: toPathString(localVarUrlObj),
972
807
  options: localVarRequestOptions,
@@ -1028,18 +863,18 @@ export const BookingsApiFp = function (configuration) {
1028
863
  });
1029
864
  },
1030
865
  /**
1031
- * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
866
+ * Estimer le prix pour rejoindre une réservation ouverte
1032
867
  * @param {string} bookingId
1033
- * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
868
+ * @param {number} [creditToUseInCents]
1034
869
  * @param {*} [options] Override http request option.
1035
870
  * @throws {RequiredError}
1036
871
  */
1037
- estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options) {
872
+ estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
1038
873
  return __awaiter(this, void 0, void 0, function* () {
1039
874
  var _a, _b, _c;
1040
- const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options);
875
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
1041
876
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1042
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
877
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1043
878
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1044
879
  });
1045
880
  },
@@ -1089,17 +924,33 @@ export const BookingsApiFp = function (configuration) {
1089
924
  });
1090
925
  },
1091
926
  /**
1092
- * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
927
+ * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
928
+ * @param {string} bookingId
929
+ * @param {number} [creditToUseInCents]
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ */
933
+ getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
934
+ return __awaiter(this, void 0, void 0, function* () {
935
+ var _a, _b, _c;
936
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
937
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
938
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
939
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
940
+ });
941
+ },
942
+ /**
943
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1093
944
  * @param {string} bookingId
1094
945
  * @param {*} [options] Override http request option.
1095
946
  * @throws {RequiredError}
1096
947
  */
1097
- getOpenBookingBasePrice(bookingId, options) {
948
+ getOpenBookingJoinPrice(bookingId, options) {
1098
949
  return __awaiter(this, void 0, void 0, function* () {
1099
950
  var _a, _b, _c;
1100
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingBasePrice(bookingId, options);
951
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
1101
952
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1102
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingBasePrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
953
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1103
954
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1104
955
  });
1105
956
  },
@@ -1146,14 +997,14 @@ export const BookingsApiFp = function (configuration) {
1146
997
  /**
1147
998
  *
1148
999
  * @param {string} bookingId
1149
- * @param {JoinOpenBookingRequest} joinOpenBookingRequest
1000
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
1150
1001
  * @param {*} [options] Override http request option.
1151
1002
  * @throws {RequiredError}
1152
1003
  */
1153
- joinOpenBooking(bookingId, joinOpenBookingRequest, options) {
1004
+ joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
1154
1005
  return __awaiter(this, void 0, void 0, function* () {
1155
1006
  var _a, _b, _c;
1156
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
1007
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
1157
1008
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1158
1009
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1159
1010
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1193,13 +1044,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1193
1044
  return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
1194
1045
  },
1195
1046
  /**
1196
- * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
1197
- * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1047
+ * Estimer le prix pour rejoindre une réservation ouverte
1048
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1198
1049
  * @param {*} [options] Override http request option.
1199
1050
  * @throws {RequiredError}
1200
1051
  */
1201
- estimateOpenBookingJoin(requestParameters, options) {
1202
- return localVarFp.estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(axios, basePath));
1052
+ estimateOpenBookingJoinPrice(requestParameters, options) {
1053
+ return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1203
1054
  },
1204
1055
  /**
1205
1056
  * Obtenir l\'historique d\'une réservation par ID
@@ -1229,13 +1080,22 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1229
1080
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
1230
1081
  },
1231
1082
  /**
1232
- * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
1233
- * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1083
+ * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
1084
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1234
1085
  * @param {*} [options] Override http request option.
1235
1086
  * @throws {RequiredError}
1236
1087
  */
1237
- getOpenBookingBasePrice(requestParameters, options) {
1238
- return localVarFp.getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1088
+ getJoinPriceEstimate(requestParameters, options) {
1089
+ return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1090
+ },
1091
+ /**
1092
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1093
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ */
1097
+ getOpenBookingJoinPrice(requestParameters, options) {
1098
+ return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1239
1099
  },
1240
1100
  /**
1241
1101
  *
@@ -1262,7 +1122,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1262
1122
  * @throws {RequiredError}
1263
1123
  */
1264
1124
  joinOpenBooking(requestParameters, options) {
1265
- return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
1125
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
1266
1126
  },
1267
1127
  /**
1268
1128
  *
@@ -1293,14 +1153,14 @@ export class BookingsApi extends BaseAPI {
1293
1153
  return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
1294
1154
  }
1295
1155
  /**
1296
- * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
1297
- * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1156
+ * Estimer le prix pour rejoindre une réservation ouverte
1157
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1298
1158
  * @param {*} [options] Override http request option.
1299
1159
  * @throws {RequiredError}
1300
1160
  * @memberof BookingsApi
1301
1161
  */
1302
- estimateOpenBookingJoin(requestParameters, options) {
1303
- return BookingsApiFp(this.configuration).estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(this.axios, this.basePath));
1162
+ estimateOpenBookingJoinPrice(requestParameters, options) {
1163
+ return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1304
1164
  }
1305
1165
  /**
1306
1166
  * Obtenir l\'historique d\'une réservation par ID
@@ -1333,14 +1193,24 @@ export class BookingsApi extends BaseAPI {
1333
1193
  return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
1334
1194
  }
1335
1195
  /**
1336
- * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
1337
- * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1196
+ * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
1197
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1198
+ * @param {*} [options] Override http request option.
1199
+ * @throws {RequiredError}
1200
+ * @memberof BookingsApi
1201
+ */
1202
+ getJoinPriceEstimate(requestParameters, options) {
1203
+ return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1204
+ }
1205
+ /**
1206
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1207
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1338
1208
  * @param {*} [options] Override http request option.
1339
1209
  * @throws {RequiredError}
1340
1210
  * @memberof BookingsApi
1341
1211
  */
1342
- getOpenBookingBasePrice(requestParameters, options) {
1343
- return BookingsApiFp(this.configuration).getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1212
+ getOpenBookingJoinPrice(requestParameters, options) {
1213
+ return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1344
1214
  }
1345
1215
  /**
1346
1216
  *
@@ -1370,7 +1240,7 @@ export class BookingsApi extends BaseAPI {
1370
1240
  * @memberof BookingsApi
1371
1241
  */
1372
1242
  joinOpenBooking(requestParameters, options) {
1373
- return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
1243
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
1374
1244
  }
1375
1245
  /**
1376
1246
  *
@@ -1560,7 +1430,7 @@ export class BookingsManagerApi extends BaseAPI {
1560
1430
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1561
1431
  return {
1562
1432
  /**
1563
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1433
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1564
1434
  * @param {string} bookingId
1565
1435
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1566
1436
  * @param {*} [options] Override http request option.
@@ -1595,6 +1465,42 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1595
1465
  options: localVarRequestOptions,
1596
1466
  };
1597
1467
  }),
1468
+ /**
1469
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1470
+ * @param {string} bookingId
1471
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1472
+ * @param {*} [options] Override http request option.
1473
+ * @throws {RequiredError}
1474
+ */
1475
+ checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
1476
+ // verify required parameter 'bookingId' is not null or undefined
1477
+ assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId);
1478
+ // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
1479
+ assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
1480
+ const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
1481
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
1482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1484
+ let baseOptions;
1485
+ if (configuration) {
1486
+ baseOptions = configuration.baseOptions;
1487
+ }
1488
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1489
+ const localVarHeaderParameter = {};
1490
+ const localVarQueryParameter = {};
1491
+ // authentication bearerAuth required
1492
+ // http bearer authentication required
1493
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1494
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1495
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1497
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1498
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
1499
+ return {
1500
+ url: toPathString(localVarUrlObj),
1501
+ options: localVarRequestOptions,
1502
+ };
1503
+ }),
1598
1504
  /**
1599
1505
  * Créer une réservation pour un joueur depuis l\'espace staff
1600
1506
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1839,7 +1745,7 @@ export const BookingsStaffApiFp = function (configuration) {
1839
1745
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1840
1746
  return {
1841
1747
  /**
1842
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1748
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1843
1749
  * @param {string} bookingId
1844
1750
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1845
1751
  * @param {*} [options] Override http request option.
@@ -1855,7 +1761,23 @@ export const BookingsStaffApiFp = function (configuration) {
1855
1761
  });
1856
1762
  },
1857
1763
  /**
1858
- * Créer une réservation pour un joueur depuis l\'espace staff
1764
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1765
+ * @param {string} bookingId
1766
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1767
+ * @param {*} [options] Override http request option.
1768
+ * @throws {RequiredError}
1769
+ */
1770
+ checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
1771
+ return __awaiter(this, void 0, void 0, function* () {
1772
+ var _a, _b, _c;
1773
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
1774
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1775
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1776
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1777
+ });
1778
+ },
1779
+ /**
1780
+ * Créer une réservation pour un joueur depuis l\'espace staff
1859
1781
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
1860
1782
  * @param {*} [options] Override http request option.
1861
1783
  * @throws {RequiredError}
@@ -1973,7 +1895,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1973
1895
  const localVarFp = BookingsStaffApiFp(configuration);
1974
1896
  return {
1975
1897
  /**
1976
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1898
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1977
1899
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1978
1900
  * @param {*} [options] Override http request option.
1979
1901
  * @throws {RequiredError}
@@ -1981,6 +1903,15 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1981
1903
  checkInPlayer(requestParameters, options) {
1982
1904
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1983
1905
  },
1906
+ /**
1907
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1908
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
1909
+ * @param {*} [options] Override http request option.
1910
+ * @throws {RequiredError}
1911
+ */
1912
+ checkInPlayerWithSumup(requestParameters, options) {
1913
+ return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
1914
+ },
1984
1915
  /**
1985
1916
  * Créer une réservation pour un joueur depuis l\'espace staff
1986
1917
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -2054,7 +1985,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
2054
1985
  */
2055
1986
  export class BookingsStaffApi extends BaseAPI {
2056
1987
  /**
2057
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1988
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
2058
1989
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
2059
1990
  * @param {*} [options] Override http request option.
2060
1991
  * @throws {RequiredError}
@@ -2063,6 +1994,16 @@ export class BookingsStaffApi extends BaseAPI {
2063
1994
  checkInPlayer(requestParameters, options) {
2064
1995
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
2065
1996
  }
1997
+ /**
1998
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1999
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
2000
+ * @param {*} [options] Override http request option.
2001
+ * @throws {RequiredError}
2002
+ * @memberof BookingsStaffApi
2003
+ */
2004
+ checkInPlayerWithSumup(requestParameters, options) {
2005
+ return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
2006
+ }
2066
2007
  /**
2067
2008
  * Créer une réservation pour un joueur depuis l\'espace staff
2068
2009
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -2237,13 +2178,13 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2237
2178
  }),
2238
2179
  /**
2239
2180
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2240
- * @param {OpenBookingPriceBody} openBookingPriceBody
2181
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2241
2182
  * @param {*} [options] Override http request option.
2242
2183
  * @throws {RequiredError}
2243
2184
  */
2244
- getOpenBookingPrice: (openBookingPriceBody_1, ...args_1) => __awaiter(this, [openBookingPriceBody_1, ...args_1], void 0, function* (openBookingPriceBody, options = {}) {
2245
- // verify required parameter 'openBookingPriceBody' is not null or undefined
2246
- assertParamExists('getOpenBookingPrice', 'openBookingPriceBody', openBookingPriceBody);
2185
+ getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
2186
+ // verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
2187
+ assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
2247
2188
  const localVarPath = `/api/bookings/open/booking-price`;
2248
2189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2249
2190
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2261,7 +2202,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2261
2202
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2262
2203
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2263
2204
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2264
- localVarRequestOptions.data = serializeDataIfNeeded(openBookingPriceBody, localVarRequestOptions, configuration);
2205
+ localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
2265
2206
  return {
2266
2207
  url: toPathString(localVarUrlObj),
2267
2208
  options: localVarRequestOptions,
@@ -2359,14 +2300,14 @@ export const BookingsUserApiFp = function (configuration) {
2359
2300
  },
2360
2301
  /**
2361
2302
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2362
- * @param {OpenBookingPriceBody} openBookingPriceBody
2303
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2363
2304
  * @param {*} [options] Override http request option.
2364
2305
  * @throws {RequiredError}
2365
2306
  */
2366
- getOpenBookingPrice(openBookingPriceBody, options) {
2307
+ getOpenBookingPrice(getOpenBookingPriceRequest, options) {
2367
2308
  return __awaiter(this, void 0, void 0, function* () {
2368
2309
  var _a, _b, _c;
2369
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(openBookingPriceBody, options);
2310
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
2370
2311
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2371
2312
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2372
2313
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2431,7 +2372,7 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
2431
2372
  * @throws {RequiredError}
2432
2373
  */
2433
2374
  getOpenBookingPrice(requestParameters, options) {
2434
- return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
2375
+ return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
2435
2376
  },
2436
2377
  /**
2437
2378
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -2489,7 +2430,7 @@ export class BookingsUserApi extends BaseAPI {
2489
2430
  * @memberof BookingsUserApi
2490
2431
  */
2491
2432
  getOpenBookingPrice(requestParameters, options) {
2492
- return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
2433
+ return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
2493
2434
  }
2494
2435
  /**
2495
2436
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -9519,41 +9460,6 @@ export const EventsApiAxiosParamCreator = function (configuration) {
9519
9460
  options: localVarRequestOptions,
9520
9461
  };
9521
9462
  }),
9522
- /**
9523
- * Get upcoming events for a club with pagination (max 10 per page)
9524
- * @param {string} [clubId]
9525
- * @param {number} [page]
9526
- * @param {*} [options] Override http request option.
9527
- * @throws {RequiredError}
9528
- */
9529
- getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
9530
- const localVarPath = `/api/events/coming`;
9531
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9532
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9533
- let baseOptions;
9534
- if (configuration) {
9535
- baseOptions = configuration.baseOptions;
9536
- }
9537
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9538
- const localVarHeaderParameter = {};
9539
- const localVarQueryParameter = {};
9540
- // authentication bearerAuth required
9541
- // http bearer authentication required
9542
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9543
- if (clubId !== undefined) {
9544
- localVarQueryParameter['clubId'] = clubId;
9545
- }
9546
- if (page !== undefined) {
9547
- localVarQueryParameter['page'] = page;
9548
- }
9549
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9550
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9551
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9552
- return {
9553
- url: toPathString(localVarUrlObj),
9554
- options: localVarRequestOptions,
9555
- };
9556
- }),
9557
9463
  /**
9558
9464
  * Get a specific event by ID
9559
9465
  * @param {string} eventId
@@ -9880,22 +9786,6 @@ export const EventsApiFp = function (configuration) {
9880
9786
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9881
9787
  });
9882
9788
  },
9883
- /**
9884
- * Get upcoming events for a club with pagination (max 10 per page)
9885
- * @param {string} [clubId]
9886
- * @param {number} [page]
9887
- * @param {*} [options] Override http request option.
9888
- * @throws {RequiredError}
9889
- */
9890
- getComingEvent(clubId, page, options) {
9891
- return __awaiter(this, void 0, void 0, function* () {
9892
- var _a, _b, _c;
9893
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
9894
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9895
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9896
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9897
- });
9898
- },
9899
9789
  /**
9900
9790
  * Get a specific event by ID
9901
9791
  * @param {string} eventId
@@ -10059,15 +9949,6 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
10059
9949
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10060
9950
  return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
10061
9951
  },
10062
- /**
10063
- * Get upcoming events for a club with pagination (max 10 per page)
10064
- * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10065
- * @param {*} [options] Override http request option.
10066
- * @throws {RequiredError}
10067
- */
10068
- getComingEvent(requestParameters = {}, options) {
10069
- return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
10070
- },
10071
9952
  /**
10072
9953
  * Get a specific event by ID
10073
9954
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -10179,16 +10060,6 @@ export class EventsApi extends BaseAPI {
10179
10060
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10180
10061
  return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
10181
10062
  }
10182
- /**
10183
- * Get upcoming events for a club with pagination (max 10 per page)
10184
- * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10185
- * @param {*} [options] Override http request option.
10186
- * @throws {RequiredError}
10187
- * @memberof EventsApi
10188
- */
10189
- getComingEvent(requestParameters = {}, options) {
10190
- return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
10191
- }
10192
10063
  /**
10193
10064
  * Get a specific event by ID
10194
10065
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -11014,12 +10885,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
11014
10885
  };
11015
10886
  }),
11016
10887
  /**
11017
- *
10888
+ * Get a specific event by ID (staff)
10889
+ * @param {string} eventId
11018
10890
  * @param {*} [options] Override http request option.
11019
10891
  * @throws {RequiredError}
11020
10892
  */
11021
- getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11022
- const localVarPath = `/api/events/staff/getEvents/drafts`;
10893
+ getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10894
+ // verify required parameter 'eventId' is not null or undefined
10895
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId);
10896
+ const localVarPath = `/api/events/staff/{eventId}`
10897
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
11023
10898
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11024
10899
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11025
10900
  let baseOptions;
@@ -11041,16 +10916,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
11041
10916
  };
11042
10917
  }),
11043
10918
  /**
11044
- * Get a specific event by ID (staff)
11045
- * @param {string} eventId
10919
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11046
10920
  * @param {*} [options] Override http request option.
11047
10921
  * @throws {RequiredError}
11048
10922
  */
11049
- getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
11050
- // verify required parameter 'eventId' is not null or undefined
11051
- assertParamExists('getEventByIdForStaff', 'eventId', eventId);
11052
- const localVarPath = `/api/events/staff/{eventId}`
11053
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10923
+ getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10924
+ const localVarPath = `/api/events/staff/getEvents`;
11054
10925
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11055
10926
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11056
10927
  let baseOptions;
@@ -11118,60 +10989,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
11118
10989
  options: localVarRequestOptions,
11119
10990
  };
11120
10991
  }),
11121
- /**
11122
- *
11123
- * @param {*} [options] Override http request option.
11124
- * @throws {RequiredError}
11125
- */
11126
- getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11127
- const localVarPath = `/api/events/staff/getEvents/past`;
11128
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11129
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11130
- let baseOptions;
11131
- if (configuration) {
11132
- baseOptions = configuration.baseOptions;
11133
- }
11134
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11135
- const localVarHeaderParameter = {};
11136
- const localVarQueryParameter = {};
11137
- // authentication bearerAuth required
11138
- // http bearer authentication required
11139
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11140
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11141
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11142
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11143
- return {
11144
- url: toPathString(localVarUrlObj),
11145
- options: localVarRequestOptions,
11146
- };
11147
- }),
11148
- /**
11149
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11150
- * @param {*} [options] Override http request option.
11151
- * @throws {RequiredError}
11152
- */
11153
- getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11154
- const localVarPath = `/api/events/staff/getEvents/upcoming`;
11155
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11156
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11157
- let baseOptions;
11158
- if (configuration) {
11159
- baseOptions = configuration.baseOptions;
11160
- }
11161
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11162
- const localVarHeaderParameter = {};
11163
- const localVarQueryParameter = {};
11164
- // authentication bearerAuth required
11165
- // http bearer authentication required
11166
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11167
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11168
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11169
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11170
- return {
11171
- url: toPathString(localVarUrlObj),
11172
- options: localVarRequestOptions,
11173
- };
11174
- }),
11175
10992
  /**
11176
10993
  * Get events for the week view (30 day sliding window)
11177
10994
  * @param {string} [clubId]
@@ -11264,31 +11081,31 @@ export const EventsStaffApiFp = function (configuration) {
11264
11081
  });
11265
11082
  },
11266
11083
  /**
11267
- *
11084
+ * Get a specific event by ID (staff)
11085
+ * @param {string} eventId
11268
11086
  * @param {*} [options] Override http request option.
11269
11087
  * @throws {RequiredError}
11270
11088
  */
11271
- getDraftEventsByClub(options) {
11089
+ getEventByIdForStaff(eventId, options) {
11272
11090
  return __awaiter(this, void 0, void 0, function* () {
11273
11091
  var _a, _b, _c;
11274
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
11092
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11275
11093
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11276
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11094
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11277
11095
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11278
11096
  });
11279
11097
  },
11280
11098
  /**
11281
- * Get a specific event by ID (staff)
11282
- * @param {string} eventId
11099
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11283
11100
  * @param {*} [options] Override http request option.
11284
11101
  * @throws {RequiredError}
11285
11102
  */
11286
- getEventByIdForStaff(eventId, options) {
11103
+ getEventsByClub(options) {
11287
11104
  return __awaiter(this, void 0, void 0, function* () {
11288
11105
  var _a, _b, _c;
11289
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11106
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
11290
11107
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11291
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11108
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11292
11109
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11293
11110
  });
11294
11111
  },
@@ -11311,34 +11128,6 @@ export const EventsStaffApiFp = function (configuration) {
11311
11128
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11312
11129
  });
11313
11130
  },
11314
- /**
11315
- *
11316
- * @param {*} [options] Override http request option.
11317
- * @throws {RequiredError}
11318
- */
11319
- getPastEventsByClub(options) {
11320
- return __awaiter(this, void 0, void 0, function* () {
11321
- var _a, _b, _c;
11322
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
11323
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11324
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11325
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11326
- });
11327
- },
11328
- /**
11329
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11330
- * @param {*} [options] Override http request option.
11331
- * @throws {RequiredError}
11332
- */
11333
- getUpcomingEventsByClub(options) {
11334
- return __awaiter(this, void 0, void 0, function* () {
11335
- var _a, _b, _c;
11336
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
11337
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11338
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11339
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11340
- });
11341
- },
11342
11131
  /**
11343
11132
  * Get events for the week view (30 day sliding window)
11344
11133
  * @param {string} [clubId]
@@ -11385,14 +11174,6 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11385
11174
  getDailyEvents(requestParameters = {}, options) {
11386
11175
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11387
11176
  },
11388
- /**
11389
- *
11390
- * @param {*} [options] Override http request option.
11391
- * @throws {RequiredError}
11392
- */
11393
- getDraftEventsByClub(options) {
11394
- return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
11395
- },
11396
11177
  /**
11397
11178
  * Get a specific event by ID (staff)
11398
11179
  * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
@@ -11403,29 +11184,21 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11403
11184
  return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11404
11185
  },
11405
11186
  /**
11406
- * Get events for the entire month view (including recurring occurrences)
11407
- * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
11408
- * @param {*} [options] Override http request option.
11409
- * @throws {RequiredError}
11410
- */
11411
- getMonthlyEvents(requestParameters = {}, options) {
11412
- return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11413
- },
11414
- /**
11415
- *
11187
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11416
11188
  * @param {*} [options] Override http request option.
11417
11189
  * @throws {RequiredError}
11418
11190
  */
11419
- getPastEventsByClub(options) {
11420
- return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
11191
+ getEventsByClub(options) {
11192
+ return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
11421
11193
  },
11422
11194
  /**
11423
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11195
+ * Get events for the entire month view (including recurring occurrences)
11196
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
11424
11197
  * @param {*} [options] Override http request option.
11425
11198
  * @throws {RequiredError}
11426
11199
  */
11427
- getUpcomingEventsByClub(options) {
11428
- return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
11200
+ getMonthlyEvents(requestParameters = {}, options) {
11201
+ return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11429
11202
  },
11430
11203
  /**
11431
11204
  * Get events for the week view (30 day sliding window)
@@ -11465,15 +11238,6 @@ export class EventsStaffApi extends BaseAPI {
11465
11238
  getDailyEvents(requestParameters = {}, options) {
11466
11239
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11467
11240
  }
11468
- /**
11469
- *
11470
- * @param {*} [options] Override http request option.
11471
- * @throws {RequiredError}
11472
- * @memberof EventsStaffApi
11473
- */
11474
- getDraftEventsByClub(options) {
11475
- return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
11476
- }
11477
11241
  /**
11478
11242
  * Get a specific event by ID (staff)
11479
11243
  * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
@@ -11485,32 +11249,23 @@ export class EventsStaffApi extends BaseAPI {
11485
11249
  return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11486
11250
  }
11487
11251
  /**
11488
- * Get events for the entire month view (including recurring occurrences)
11489
- * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
11490
- * @param {*} [options] Override http request option.
11491
- * @throws {RequiredError}
11492
- * @memberof EventsStaffApi
11493
- */
11494
- getMonthlyEvents(requestParameters = {}, options) {
11495
- return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11496
- }
11497
- /**
11498
- *
11252
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11499
11253
  * @param {*} [options] Override http request option.
11500
11254
  * @throws {RequiredError}
11501
11255
  * @memberof EventsStaffApi
11502
11256
  */
11503
- getPastEventsByClub(options) {
11504
- return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
11257
+ getEventsByClub(options) {
11258
+ return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
11505
11259
  }
11506
11260
  /**
11507
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11261
+ * Get events for the entire month view (including recurring occurrences)
11262
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
11508
11263
  * @param {*} [options] Override http request option.
11509
11264
  * @throws {RequiredError}
11510
11265
  * @memberof EventsStaffApi
11511
11266
  */
11512
- getUpcomingEventsByClub(options) {
11513
- return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
11267
+ getMonthlyEvents(requestParameters = {}, options) {
11268
+ return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11514
11269
  }
11515
11270
  /**
11516
11271
  * Get events for the week view (30 day sliding window)
@@ -11669,509 +11424,182 @@ export class ImagesApi extends BaseAPI {
11669
11424
  }
11670
11425
  }
11671
11426
  /**
11672
- * JobsApi - axios parameter creator
11427
+ * PaymentsStaffApi - axios parameter creator
11673
11428
  * @export
11674
11429
  */
11675
- export const JobsApiAxiosParamCreator = function (configuration) {
11430
+ export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
11676
11431
  return {
11677
11432
  /**
11678
- * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
11679
- * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11433
+ * Cancel a SumUp reader checkout.
11434
+ * @param {string} clubId
11435
+ * @param {string} paymentId
11436
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11680
11437
  * @param {*} [options] Override http request option.
11681
11438
  * @throws {RequiredError}
11682
11439
  */
11683
- captureExpiringAuthorizations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11684
- const localVarPath = `/api/jobs/capture-expiring-authorizations`;
11440
+ cancelSumupPayment: (clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1], void 0, function* (clubId, paymentId, sumupCancelPaymentRequest, options = {}) {
11441
+ // verify required parameter 'clubId' is not null or undefined
11442
+ assertParamExists('cancelSumupPayment', 'clubId', clubId);
11443
+ // verify required parameter 'paymentId' is not null or undefined
11444
+ assertParamExists('cancelSumupPayment', 'paymentId', paymentId);
11445
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
11446
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
11447
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
11685
11448
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11686
11449
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11687
11450
  let baseOptions;
11688
11451
  if (configuration) {
11689
11452
  baseOptions = configuration.baseOptions;
11690
11453
  }
11691
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11692
11455
  const localVarHeaderParameter = {};
11693
11456
  const localVarQueryParameter = {};
11457
+ // authentication bearerAuth required
11458
+ // http bearer authentication required
11459
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11460
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11694
11461
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11695
11462
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11696
11463
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11464
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
11697
11465
  return {
11698
11466
  url: toPathString(localVarUrlObj),
11699
11467
  options: localVarRequestOptions,
11700
11468
  };
11701
11469
  }),
11702
11470
  /**
11703
- * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
11704
- * @summary Capture les paiements autorisés pour les réservations passées
11471
+ * Start a SumUp reader checkout (manual payment trigger).
11472
+ * @param {string} clubId
11473
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11705
11474
  * @param {*} [options] Override http request option.
11706
11475
  * @throws {RequiredError}
11707
11476
  */
11708
- capturePastReservations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11709
- const localVarPath = `/api/jobs/capture-past-reservations`;
11477
+ createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
11478
+ // verify required parameter 'clubId' is not null or undefined
11479
+ assertParamExists('createSumupPayment', 'clubId', clubId);
11480
+ // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
11481
+ assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
11482
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup`
11483
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
11710
11484
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11711
11485
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11712
11486
  let baseOptions;
11713
11487
  if (configuration) {
11714
11488
  baseOptions = configuration.baseOptions;
11715
11489
  }
11716
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11490
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11717
11491
  const localVarHeaderParameter = {};
11718
11492
  const localVarQueryParameter = {};
11493
+ // authentication bearerAuth required
11494
+ // http bearer authentication required
11495
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11496
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11719
11497
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11720
11498
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11721
11499
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11500
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
11722
11501
  return {
11723
11502
  url: toPathString(localVarUrlObj),
11724
11503
  options: localVarRequestOptions,
11725
11504
  };
11726
11505
  }),
11506
+ };
11507
+ };
11508
+ /**
11509
+ * PaymentsStaffApi - functional programming interface
11510
+ * @export
11511
+ */
11512
+ export const PaymentsStaffApiFp = function (configuration) {
11513
+ const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration);
11514
+ return {
11727
11515
  /**
11728
- * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
11729
- * @summary Expire les réservations en attente de paiement
11516
+ * Cancel a SumUp reader checkout.
11517
+ * @param {string} clubId
11518
+ * @param {string} paymentId
11519
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11730
11520
  * @param {*} [options] Override http request option.
11731
11521
  * @throws {RequiredError}
11732
11522
  */
11733
- expireBookingWaitingPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11734
- const localVarPath = `/api/jobs/expire-booking-waiting-payments`;
11735
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11736
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11737
- let baseOptions;
11738
- if (configuration) {
11739
- baseOptions = configuration.baseOptions;
11740
- }
11741
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11742
- const localVarHeaderParameter = {};
11743
- const localVarQueryParameter = {};
11744
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11745
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11746
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11747
- return {
11748
- url: toPathString(localVarUrlObj),
11749
- options: localVarRequestOptions,
11750
- };
11751
- }),
11752
- /**
11753
- * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
11754
- * @summary Expire les paiements en attente sur la waitlist
11755
- * @param {*} [options] Override http request option.
11756
- * @throws {RequiredError}
11757
- */
11758
- expireWaitlistPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11759
- const localVarPath = `/api/jobs/expire-waitlist-payments`;
11760
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11761
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11762
- let baseOptions;
11763
- if (configuration) {
11764
- baseOptions = configuration.baseOptions;
11765
- }
11766
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11767
- const localVarHeaderParameter = {};
11768
- const localVarQueryParameter = {};
11769
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11770
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11771
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11772
- return {
11773
- url: toPathString(localVarUrlObj),
11774
- options: localVarRequestOptions,
11775
- };
11776
- }),
11777
- /**
11778
- * Route de santé pour vérifier que le service jobs est opérationnel
11779
- * @summary Health check pour les jobs
11780
- * @param {*} [options] Override http request option.
11781
- * @throws {RequiredError}
11782
- */
11783
- health: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11784
- const localVarPath = `/api/jobs/health`;
11785
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11786
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11787
- let baseOptions;
11788
- if (configuration) {
11789
- baseOptions = configuration.baseOptions;
11790
- }
11791
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11792
- const localVarHeaderParameter = {};
11793
- const localVarQueryParameter = {};
11794
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11795
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11796
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11797
- return {
11798
- url: toPathString(localVarUrlObj),
11799
- options: localVarRequestOptions,
11800
- };
11801
- }),
11802
- /**
11803
- * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
11804
- * @summary Génère les créneaux futurs et nettoie les anciens
11805
- * @param {*} [options] Override http request option.
11806
- * @throws {RequiredError}
11807
- */
11808
- maintainSlots: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11809
- const localVarPath = `/api/jobs/maintain-slots`;
11810
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11811
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11812
- let baseOptions;
11813
- if (configuration) {
11814
- baseOptions = configuration.baseOptions;
11815
- }
11816
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11817
- const localVarHeaderParameter = {};
11818
- const localVarQueryParameter = {};
11819
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11820
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11821
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11822
- return {
11823
- url: toPathString(localVarUrlObj),
11824
- options: localVarRequestOptions,
11825
- };
11826
- }),
11827
- /**
11828
- * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
11829
- * @summary Libère les anciennes réservations terminées
11830
- * @param {*} [options] Override http request option.
11831
- * @throws {RequiredError}
11832
- */
11833
- releaseOldBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11834
- const localVarPath = `/api/jobs/release-old-bookings`;
11835
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11836
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11837
- let baseOptions;
11838
- if (configuration) {
11839
- baseOptions = configuration.baseOptions;
11840
- }
11841
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11842
- const localVarHeaderParameter = {};
11843
- const localVarQueryParameter = {};
11844
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11845
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11846
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11847
- return {
11848
- url: toPathString(localVarUrlObj),
11849
- options: localVarRequestOptions,
11850
- };
11851
- }),
11852
- /**
11853
- * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
11854
- * @summary Envoie des emails de rappel 24h avant les réservations et événements
11855
- * @param {*} [options] Override http request option.
11856
- * @throws {RequiredError}
11857
- */
11858
- sendBookingReminders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11859
- const localVarPath = `/api/jobs/send-booking-reminders`;
11860
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11861
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11862
- let baseOptions;
11863
- if (configuration) {
11864
- baseOptions = configuration.baseOptions;
11865
- }
11866
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11867
- const localVarHeaderParameter = {};
11868
- const localVarQueryParameter = {};
11869
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11870
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11871
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11872
- return {
11873
- url: toPathString(localVarUrlObj),
11874
- options: localVarRequestOptions,
11875
- };
11876
- }),
11877
- };
11878
- };
11879
- /**
11880
- * JobsApi - functional programming interface
11881
- * @export
11882
- */
11883
- export const JobsApiFp = function (configuration) {
11884
- const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration);
11885
- return {
11886
- /**
11887
- * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
11888
- * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11889
- * @param {*} [options] Override http request option.
11890
- * @throws {RequiredError}
11891
- */
11892
- captureExpiringAuthorizations(options) {
11893
- return __awaiter(this, void 0, void 0, function* () {
11894
- var _a, _b, _c;
11895
- const localVarAxiosArgs = yield localVarAxiosParamCreator.captureExpiringAuthorizations(options);
11896
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11897
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.captureExpiringAuthorizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11898
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11899
- });
11900
- },
11901
- /**
11902
- * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
11903
- * @summary Capture les paiements autorisés pour les réservations passées
11904
- * @param {*} [options] Override http request option.
11905
- * @throws {RequiredError}
11906
- */
11907
- capturePastReservations(options) {
11908
- return __awaiter(this, void 0, void 0, function* () {
11909
- var _a, _b, _c;
11910
- const localVarAxiosArgs = yield localVarAxiosParamCreator.capturePastReservations(options);
11911
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11912
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.capturePastReservations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11913
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11914
- });
11915
- },
11916
- /**
11917
- * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
11918
- * @summary Expire les réservations en attente de paiement
11919
- * @param {*} [options] Override http request option.
11920
- * @throws {RequiredError}
11921
- */
11922
- expireBookingWaitingPayments(options) {
11923
- return __awaiter(this, void 0, void 0, function* () {
11924
- var _a, _b, _c;
11925
- const localVarAxiosArgs = yield localVarAxiosParamCreator.expireBookingWaitingPayments(options);
11926
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11927
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireBookingWaitingPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11928
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11929
- });
11930
- },
11931
- /**
11932
- * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
11933
- * @summary Expire les paiements en attente sur la waitlist
11934
- * @param {*} [options] Override http request option.
11935
- * @throws {RequiredError}
11936
- */
11937
- expireWaitlistPayments(options) {
11938
- return __awaiter(this, void 0, void 0, function* () {
11939
- var _a, _b, _c;
11940
- const localVarAxiosArgs = yield localVarAxiosParamCreator.expireWaitlistPayments(options);
11941
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11942
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireWaitlistPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11943
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11944
- });
11945
- },
11946
- /**
11947
- * Route de santé pour vérifier que le service jobs est opérationnel
11948
- * @summary Health check pour les jobs
11949
- * @param {*} [options] Override http request option.
11950
- * @throws {RequiredError}
11951
- */
11952
- health(options) {
11953
- return __awaiter(this, void 0, void 0, function* () {
11954
- var _a, _b, _c;
11955
- const localVarAxiosArgs = yield localVarAxiosParamCreator.health(options);
11956
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11957
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.health']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11958
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11959
- });
11960
- },
11961
- /**
11962
- * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
11963
- * @summary Génère les créneaux futurs et nettoie les anciens
11964
- * @param {*} [options] Override http request option.
11965
- * @throws {RequiredError}
11966
- */
11967
- maintainSlots(options) {
11968
- return __awaiter(this, void 0, void 0, function* () {
11969
- var _a, _b, _c;
11970
- const localVarAxiosArgs = yield localVarAxiosParamCreator.maintainSlots(options);
11971
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11972
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.maintainSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11973
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11974
- });
11975
- },
11976
- /**
11977
- * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
11978
- * @summary Libère les anciennes réservations terminées
11979
- * @param {*} [options] Override http request option.
11980
- * @throws {RequiredError}
11981
- */
11982
- releaseOldBookings(options) {
11523
+ cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
11983
11524
  return __awaiter(this, void 0, void 0, function* () {
11984
11525
  var _a, _b, _c;
11985
- const localVarAxiosArgs = yield localVarAxiosParamCreator.releaseOldBookings(options);
11526
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
11986
11527
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11987
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.releaseOldBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11528
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11988
11529
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11989
11530
  });
11990
11531
  },
11991
11532
  /**
11992
- * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
11993
- * @summary Envoie des emails de rappel 24h avant les réservations et événements
11533
+ * Start a SumUp reader checkout (manual payment trigger).
11534
+ * @param {string} clubId
11535
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11994
11536
  * @param {*} [options] Override http request option.
11995
11537
  * @throws {RequiredError}
11996
11538
  */
11997
- sendBookingReminders(options) {
11539
+ createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
11998
11540
  return __awaiter(this, void 0, void 0, function* () {
11999
11541
  var _a, _b, _c;
12000
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sendBookingReminders(options);
11542
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
12001
11543
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12002
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.sendBookingReminders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11544
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12003
11545
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12004
11546
  });
12005
11547
  },
12006
11548
  };
12007
11549
  };
12008
11550
  /**
12009
- * JobsApi - factory interface
11551
+ * PaymentsStaffApi - factory interface
12010
11552
  * @export
12011
11553
  */
12012
- export const JobsApiFactory = function (configuration, basePath, axios) {
12013
- const localVarFp = JobsApiFp(configuration);
11554
+ export const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
11555
+ const localVarFp = PaymentsStaffApiFp(configuration);
12014
11556
  return {
12015
11557
  /**
12016
- * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
12017
- * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
12018
- * @param {*} [options] Override http request option.
12019
- * @throws {RequiredError}
12020
- */
12021
- captureExpiringAuthorizations(options) {
12022
- return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
12023
- },
12024
- /**
12025
- * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
12026
- * @summary Capture les paiements autorisés pour les réservations passées
12027
- * @param {*} [options] Override http request option.
12028
- * @throws {RequiredError}
12029
- */
12030
- capturePastReservations(options) {
12031
- return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
12032
- },
12033
- /**
12034
- * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
12035
- * @summary Expire les réservations en attente de paiement
12036
- * @param {*} [options] Override http request option.
12037
- * @throws {RequiredError}
12038
- */
12039
- expireBookingWaitingPayments(options) {
12040
- return localVarFp.expireBookingWaitingPayments(options).then((request) => request(axios, basePath));
12041
- },
12042
- /**
12043
- * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
12044
- * @summary Expire les paiements en attente sur la waitlist
12045
- * @param {*} [options] Override http request option.
12046
- * @throws {RequiredError}
12047
- */
12048
- expireWaitlistPayments(options) {
12049
- return localVarFp.expireWaitlistPayments(options).then((request) => request(axios, basePath));
12050
- },
12051
- /**
12052
- * Route de santé pour vérifier que le service jobs est opérationnel
12053
- * @summary Health check pour les jobs
12054
- * @param {*} [options] Override http request option.
12055
- * @throws {RequiredError}
12056
- */
12057
- health(options) {
12058
- return localVarFp.health(options).then((request) => request(axios, basePath));
12059
- },
12060
- /**
12061
- * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
12062
- * @summary Génère les créneaux futurs et nettoie les anciens
12063
- * @param {*} [options] Override http request option.
12064
- * @throws {RequiredError}
12065
- */
12066
- maintainSlots(options) {
12067
- return localVarFp.maintainSlots(options).then((request) => request(axios, basePath));
12068
- },
12069
- /**
12070
- * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
12071
- * @summary Libère les anciennes réservations terminées
11558
+ * Cancel a SumUp reader checkout.
11559
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
12072
11560
  * @param {*} [options] Override http request option.
12073
11561
  * @throws {RequiredError}
12074
11562
  */
12075
- releaseOldBookings(options) {
12076
- return localVarFp.releaseOldBookings(options).then((request) => request(axios, basePath));
11563
+ cancelSumupPayment(requestParameters, options) {
11564
+ return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
12077
11565
  },
12078
11566
  /**
12079
- * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12080
- * @summary Envoie des emails de rappel 24h avant les réservations et événements
11567
+ * Start a SumUp reader checkout (manual payment trigger).
11568
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
12081
11569
  * @param {*} [options] Override http request option.
12082
11570
  * @throws {RequiredError}
12083
11571
  */
12084
- sendBookingReminders(options) {
12085
- return localVarFp.sendBookingReminders(options).then((request) => request(axios, basePath));
11572
+ createSumupPayment(requestParameters, options) {
11573
+ return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
12086
11574
  },
12087
11575
  };
12088
11576
  };
12089
11577
  /**
12090
- * JobsApi - object-oriented interface
11578
+ * PaymentsStaffApi - object-oriented interface
12091
11579
  * @export
12092
- * @class JobsApi
11580
+ * @class PaymentsStaffApi
12093
11581
  * @extends {BaseAPI}
12094
11582
  */
12095
- export class JobsApi extends BaseAPI {
12096
- /**
12097
- * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
12098
- * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
12099
- * @param {*} [options] Override http request option.
12100
- * @throws {RequiredError}
12101
- * @memberof JobsApi
12102
- */
12103
- captureExpiringAuthorizations(options) {
12104
- return JobsApiFp(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
12105
- }
12106
- /**
12107
- * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
12108
- * @summary Capture les paiements autorisés pour les réservations passées
12109
- * @param {*} [options] Override http request option.
12110
- * @throws {RequiredError}
12111
- * @memberof JobsApi
12112
- */
12113
- capturePastReservations(options) {
12114
- return JobsApiFp(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
12115
- }
12116
- /**
12117
- * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
12118
- * @summary Expire les réservations en attente de paiement
12119
- * @param {*} [options] Override http request option.
12120
- * @throws {RequiredError}
12121
- * @memberof JobsApi
12122
- */
12123
- expireBookingWaitingPayments(options) {
12124
- return JobsApiFp(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
12125
- }
12126
- /**
12127
- * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
12128
- * @summary Expire les paiements en attente sur la waitlist
12129
- * @param {*} [options] Override http request option.
12130
- * @throws {RequiredError}
12131
- * @memberof JobsApi
12132
- */
12133
- expireWaitlistPayments(options) {
12134
- return JobsApiFp(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
12135
- }
12136
- /**
12137
- * Route de santé pour vérifier que le service jobs est opérationnel
12138
- * @summary Health check pour les jobs
12139
- * @param {*} [options] Override http request option.
12140
- * @throws {RequiredError}
12141
- * @memberof JobsApi
12142
- */
12143
- health(options) {
12144
- return JobsApiFp(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
12145
- }
12146
- /**
12147
- * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
12148
- * @summary Génère les créneaux futurs et nettoie les anciens
12149
- * @param {*} [options] Override http request option.
12150
- * @throws {RequiredError}
12151
- * @memberof JobsApi
12152
- */
12153
- maintainSlots(options) {
12154
- return JobsApiFp(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
12155
- }
11583
+ export class PaymentsStaffApi extends BaseAPI {
12156
11584
  /**
12157
- * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
12158
- * @summary Libère les anciennes réservations terminées
11585
+ * Cancel a SumUp reader checkout.
11586
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
12159
11587
  * @param {*} [options] Override http request option.
12160
11588
  * @throws {RequiredError}
12161
- * @memberof JobsApi
11589
+ * @memberof PaymentsStaffApi
12162
11590
  */
12163
- releaseOldBookings(options) {
12164
- return JobsApiFp(this.configuration).releaseOldBookings(options).then((request) => request(this.axios, this.basePath));
11591
+ cancelSumupPayment(requestParameters, options) {
11592
+ return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
12165
11593
  }
12166
11594
  /**
12167
- * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12168
- * @summary Envoie des emails de rappel 24h avant les réservations et événements
11595
+ * Start a SumUp reader checkout (manual payment trigger).
11596
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
12169
11597
  * @param {*} [options] Override http request option.
12170
11598
  * @throws {RequiredError}
12171
- * @memberof JobsApi
11599
+ * @memberof PaymentsStaffApi
12172
11600
  */
12173
- sendBookingReminders(options) {
12174
- return JobsApiFp(this.configuration).sendBookingReminders(options).then((request) => request(this.axios, this.basePath));
11601
+ createSumupPayment(requestParameters, options) {
11602
+ return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
12175
11603
  }
12176
11604
  }
12177
11605
  /**
@@ -12215,9 +11643,9 @@ export const PublicEmailApiAxiosParamCreator = function (configuration) {
12215
11643
  * @param {*} [options] Override http request option.
12216
11644
  * @throws {RequiredError}
12217
11645
  */
12218
- requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11646
+ requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
12219
11647
  // verify required parameter 'requestEmailCodeBody' is not null or undefined
12220
- assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11648
+ assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
12221
11649
  const localVarPath = `/api/public-email/request-verification-code`;
12222
11650
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12223
11651
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -12297,12 +11725,12 @@ export const PublicEmailApiFp = function (configuration) {
12297
11725
  * @param {*} [options] Override http request option.
12298
11726
  * @throws {RequiredError}
12299
11727
  */
12300
- requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
11728
+ requestVerificationCode(requestEmailCodeBody, options) {
12301
11729
  return __awaiter(this, void 0, void 0, function* () {
12302
11730
  var _a, _b, _c;
12303
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
11731
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
12304
11732
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12305
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11733
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12306
11734
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12307
11735
  });
12308
11736
  },
@@ -12341,12 +11769,12 @@ export const PublicEmailApiFactory = function (configuration, basePath, axios) {
12341
11769
  },
12342
11770
  /**
12343
11771
  *
12344
- * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
11772
+ * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
12345
11773
  * @param {*} [options] Override http request option.
12346
11774
  * @throws {RequiredError}
12347
11775
  */
12348
- requestPublicEmailVerificationCode(requestParameters, options) {
12349
- return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
11776
+ requestVerificationCode(requestParameters, options) {
11777
+ return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
12350
11778
  },
12351
11779
  /**
12352
11780
  *
@@ -12378,13 +11806,13 @@ export class PublicEmailApi extends BaseAPI {
12378
11806
  }
12379
11807
  /**
12380
11808
  *
12381
- * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
11809
+ * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
12382
11810
  * @param {*} [options] Override http request option.
12383
11811
  * @throws {RequiredError}
12384
11812
  * @memberof PublicEmailApi
12385
11813
  */
12386
- requestPublicEmailVerificationCode(requestParameters, options) {
12387
- return PublicEmailApiFp(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
11814
+ requestVerificationCode(requestParameters, options) {
11815
+ return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
12388
11816
  }
12389
11817
  /**
12390
11818
  *
@@ -13571,21 +12999,561 @@ export class SubscriptionsUserApi extends BaseAPI {
13571
12999
  }
13572
13000
  }
13573
13001
  /**
13574
- * UserApi - axios parameter creator
13002
+ * SumUpApi - axios parameter creator
13575
13003
  * @export
13576
13004
  */
13577
- export const UserApiAxiosParamCreator = function (configuration) {
13005
+ export const SumUpApiAxiosParamCreator = function (configuration) {
13578
13006
  return {
13579
13007
  /**
13580
- * Récupère les informations du club de l\'utilisateur
13581
- * @param {string} clubId
13008
+ * OAuth callback for SumUp.
13009
+ * @param {string} code
13010
+ * @param {string} state
13582
13011
  * @param {*} [options] Override http request option.
13583
13012
  * @throws {RequiredError}
13584
13013
  */
13585
- getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13586
- // verify required parameter 'clubId' is not null or undefined
13587
- assertParamExists('getMyClubInfos', 'clubId', clubId);
13588
- const localVarPath = `/api/users/me/club-infos`;
13014
+ sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
13015
+ // verify required parameter 'code' is not null or undefined
13016
+ assertParamExists('sumupOauthCallback', 'code', code);
13017
+ // verify required parameter 'state' is not null or undefined
13018
+ assertParamExists('sumupOauthCallback', 'state', state);
13019
+ const localVarPath = `/api/sumup/oauth/callback`;
13020
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13021
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13022
+ let baseOptions;
13023
+ if (configuration) {
13024
+ baseOptions = configuration.baseOptions;
13025
+ }
13026
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13027
+ const localVarHeaderParameter = {};
13028
+ const localVarQueryParameter = {};
13029
+ if (code !== undefined) {
13030
+ localVarQueryParameter['code'] = code;
13031
+ }
13032
+ if (state !== undefined) {
13033
+ localVarQueryParameter['state'] = state;
13034
+ }
13035
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13036
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13037
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13038
+ return {
13039
+ url: toPathString(localVarUrlObj),
13040
+ options: localVarRequestOptions,
13041
+ };
13042
+ }),
13043
+ };
13044
+ };
13045
+ /**
13046
+ * SumUpApi - functional programming interface
13047
+ * @export
13048
+ */
13049
+ export const SumUpApiFp = function (configuration) {
13050
+ const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration);
13051
+ return {
13052
+ /**
13053
+ * OAuth callback for SumUp.
13054
+ * @param {string} code
13055
+ * @param {string} state
13056
+ * @param {*} [options] Override http request option.
13057
+ * @throws {RequiredError}
13058
+ */
13059
+ sumupOauthCallback(code, state, options) {
13060
+ return __awaiter(this, void 0, void 0, function* () {
13061
+ var _a, _b, _c;
13062
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
13063
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13064
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13065
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13066
+ });
13067
+ },
13068
+ };
13069
+ };
13070
+ /**
13071
+ * SumUpApi - factory interface
13072
+ * @export
13073
+ */
13074
+ export const SumUpApiFactory = function (configuration, basePath, axios) {
13075
+ const localVarFp = SumUpApiFp(configuration);
13076
+ return {
13077
+ /**
13078
+ * OAuth callback for SumUp.
13079
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13080
+ * @param {*} [options] Override http request option.
13081
+ * @throws {RequiredError}
13082
+ */
13083
+ sumupOauthCallback(requestParameters, options) {
13084
+ return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
13085
+ },
13086
+ };
13087
+ };
13088
+ /**
13089
+ * SumUpApi - object-oriented interface
13090
+ * @export
13091
+ * @class SumUpApi
13092
+ * @extends {BaseAPI}
13093
+ */
13094
+ export class SumUpApi extends BaseAPI {
13095
+ /**
13096
+ * OAuth callback for SumUp.
13097
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13098
+ * @param {*} [options] Override http request option.
13099
+ * @throws {RequiredError}
13100
+ * @memberof SumUpApi
13101
+ */
13102
+ sumupOauthCallback(requestParameters, options) {
13103
+ return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
13104
+ }
13105
+ }
13106
+ /**
13107
+ * SumUpManagerApi - axios parameter creator
13108
+ * @export
13109
+ */
13110
+ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13111
+ return {
13112
+ /**
13113
+ * Disconnect SumUp account for a club.
13114
+ * @param {string} clubId
13115
+ * @param {*} [options] Override http request option.
13116
+ * @throws {RequiredError}
13117
+ */
13118
+ disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13119
+ // verify required parameter 'clubId' is not null or undefined
13120
+ assertParamExists('disconnectSumup', 'clubId', clubId);
13121
+ const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
13122
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13124
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13125
+ let baseOptions;
13126
+ if (configuration) {
13127
+ baseOptions = configuration.baseOptions;
13128
+ }
13129
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13130
+ const localVarHeaderParameter = {};
13131
+ const localVarQueryParameter = {};
13132
+ // authentication bearerAuth required
13133
+ // http bearer authentication required
13134
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13137
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13138
+ return {
13139
+ url: toPathString(localVarUrlObj),
13140
+ options: localVarRequestOptions,
13141
+ };
13142
+ }),
13143
+ /**
13144
+ * Start SumUp OAuth connection for a club.
13145
+ * @param {string} clubId
13146
+ * @param {*} [options] Override http request option.
13147
+ * @throws {RequiredError}
13148
+ */
13149
+ getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13150
+ // verify required parameter 'clubId' is not null or undefined
13151
+ assertParamExists('getSumupConnectUrl', 'clubId', clubId);
13152
+ const localVarPath = `/api/clubs/{clubId}/sumup/connect`
13153
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13156
+ let baseOptions;
13157
+ if (configuration) {
13158
+ baseOptions = configuration.baseOptions;
13159
+ }
13160
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13161
+ const localVarHeaderParameter = {};
13162
+ const localVarQueryParameter = {};
13163
+ // authentication bearerAuth required
13164
+ // http bearer authentication required
13165
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13168
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13169
+ return {
13170
+ url: toPathString(localVarUrlObj),
13171
+ options: localVarRequestOptions,
13172
+ };
13173
+ }),
13174
+ /**
13175
+ * Get SumUp connection status for a club.
13176
+ * @param {string} clubId
13177
+ * @param {*} [options] Override http request option.
13178
+ * @throws {RequiredError}
13179
+ */
13180
+ getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13181
+ // verify required parameter 'clubId' is not null or undefined
13182
+ assertParamExists('getSumupStatus', 'clubId', clubId);
13183
+ const localVarPath = `/api/clubs/{clubId}/sumup/status`
13184
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13187
+ let baseOptions;
13188
+ if (configuration) {
13189
+ baseOptions = configuration.baseOptions;
13190
+ }
13191
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13192
+ const localVarHeaderParameter = {};
13193
+ const localVarQueryParameter = {};
13194
+ // authentication bearerAuth required
13195
+ // http bearer authentication required
13196
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13199
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13200
+ return {
13201
+ url: toPathString(localVarUrlObj),
13202
+ options: localVarRequestOptions,
13203
+ };
13204
+ }),
13205
+ /**
13206
+ * List SumUp readers for a club.
13207
+ * @param {string} clubId
13208
+ * @param {*} [options] Override http request option.
13209
+ * @throws {RequiredError}
13210
+ */
13211
+ listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13212
+ // verify required parameter 'clubId' is not null or undefined
13213
+ assertParamExists('listSumupReaders', 'clubId', clubId);
13214
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13215
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13218
+ let baseOptions;
13219
+ if (configuration) {
13220
+ baseOptions = configuration.baseOptions;
13221
+ }
13222
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13223
+ const localVarHeaderParameter = {};
13224
+ const localVarQueryParameter = {};
13225
+ // authentication bearerAuth required
13226
+ // http bearer authentication required
13227
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13230
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13231
+ return {
13232
+ url: toPathString(localVarUrlObj),
13233
+ options: localVarRequestOptions,
13234
+ };
13235
+ }),
13236
+ /**
13237
+ * Pair a SumUp reader with a club.
13238
+ * @param {string} clubId
13239
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13240
+ * @param {*} [options] Override http request option.
13241
+ * @throws {RequiredError}
13242
+ */
13243
+ pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
13244
+ // verify required parameter 'clubId' is not null or undefined
13245
+ assertParamExists('pairSumupReader', 'clubId', clubId);
13246
+ // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13247
+ assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13248
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
13249
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13251
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13252
+ let baseOptions;
13253
+ if (configuration) {
13254
+ baseOptions = configuration.baseOptions;
13255
+ }
13256
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13257
+ const localVarHeaderParameter = {};
13258
+ const localVarQueryParameter = {};
13259
+ // authentication bearerAuth required
13260
+ // http bearer authentication required
13261
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13262
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13263
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13265
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13266
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13267
+ return {
13268
+ url: toPathString(localVarUrlObj),
13269
+ options: localVarRequestOptions,
13270
+ };
13271
+ }),
13272
+ /**
13273
+ * Select a SumUp reader for a club.
13274
+ * @param {string} clubId
13275
+ * @param {string} readerId
13276
+ * @param {*} [options] Override http request option.
13277
+ * @throws {RequiredError}
13278
+ */
13279
+ selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13280
+ // verify required parameter 'clubId' is not null or undefined
13281
+ assertParamExists('selectSumupReader', 'clubId', clubId);
13282
+ // verify required parameter 'readerId' is not null or undefined
13283
+ assertParamExists('selectSumupReader', 'readerId', readerId);
13284
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
13285
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13286
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13289
+ let baseOptions;
13290
+ if (configuration) {
13291
+ baseOptions = configuration.baseOptions;
13292
+ }
13293
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13294
+ const localVarHeaderParameter = {};
13295
+ const localVarQueryParameter = {};
13296
+ // authentication bearerAuth required
13297
+ // http bearer authentication required
13298
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13301
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13302
+ return {
13303
+ url: toPathString(localVarUrlObj),
13304
+ options: localVarRequestOptions,
13305
+ };
13306
+ }),
13307
+ };
13308
+ };
13309
+ /**
13310
+ * SumUpManagerApi - functional programming interface
13311
+ * @export
13312
+ */
13313
+ export const SumUpManagerApiFp = function (configuration) {
13314
+ const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration);
13315
+ return {
13316
+ /**
13317
+ * Disconnect SumUp account for a club.
13318
+ * @param {string} clubId
13319
+ * @param {*} [options] Override http request option.
13320
+ * @throws {RequiredError}
13321
+ */
13322
+ disconnectSumup(clubId, options) {
13323
+ return __awaiter(this, void 0, void 0, function* () {
13324
+ var _a, _b, _c;
13325
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
13326
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13327
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13328
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13329
+ });
13330
+ },
13331
+ /**
13332
+ * Start SumUp OAuth connection for a club.
13333
+ * @param {string} clubId
13334
+ * @param {*} [options] Override http request option.
13335
+ * @throws {RequiredError}
13336
+ */
13337
+ getSumupConnectUrl(clubId, options) {
13338
+ return __awaiter(this, void 0, void 0, function* () {
13339
+ var _a, _b, _c;
13340
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
13341
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13342
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13343
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13344
+ });
13345
+ },
13346
+ /**
13347
+ * Get SumUp connection status for a club.
13348
+ * @param {string} clubId
13349
+ * @param {*} [options] Override http request option.
13350
+ * @throws {RequiredError}
13351
+ */
13352
+ getSumupStatus(clubId, options) {
13353
+ return __awaiter(this, void 0, void 0, function* () {
13354
+ var _a, _b, _c;
13355
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
13356
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13357
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13358
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13359
+ });
13360
+ },
13361
+ /**
13362
+ * List SumUp readers for a club.
13363
+ * @param {string} clubId
13364
+ * @param {*} [options] Override http request option.
13365
+ * @throws {RequiredError}
13366
+ */
13367
+ listSumupReaders(clubId, options) {
13368
+ return __awaiter(this, void 0, void 0, function* () {
13369
+ var _a, _b, _c;
13370
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
13371
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13372
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13373
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13374
+ });
13375
+ },
13376
+ /**
13377
+ * Pair a SumUp reader with a club.
13378
+ * @param {string} clubId
13379
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13380
+ * @param {*} [options] Override http request option.
13381
+ * @throws {RequiredError}
13382
+ */
13383
+ pairSumupReader(clubId, sumupPairReaderRequest, options) {
13384
+ return __awaiter(this, void 0, void 0, function* () {
13385
+ var _a, _b, _c;
13386
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
13387
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13388
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13389
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13390
+ });
13391
+ },
13392
+ /**
13393
+ * Select a SumUp reader for a club.
13394
+ * @param {string} clubId
13395
+ * @param {string} readerId
13396
+ * @param {*} [options] Override http request option.
13397
+ * @throws {RequiredError}
13398
+ */
13399
+ selectSumupReader(clubId, readerId, options) {
13400
+ return __awaiter(this, void 0, void 0, function* () {
13401
+ var _a, _b, _c;
13402
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
13403
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13404
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13405
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13406
+ });
13407
+ },
13408
+ };
13409
+ };
13410
+ /**
13411
+ * SumUpManagerApi - factory interface
13412
+ * @export
13413
+ */
13414
+ export const SumUpManagerApiFactory = function (configuration, basePath, axios) {
13415
+ const localVarFp = SumUpManagerApiFp(configuration);
13416
+ return {
13417
+ /**
13418
+ * Disconnect SumUp account for a club.
13419
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13420
+ * @param {*} [options] Override http request option.
13421
+ * @throws {RequiredError}
13422
+ */
13423
+ disconnectSumup(requestParameters, options) {
13424
+ return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
13425
+ },
13426
+ /**
13427
+ * Start SumUp OAuth connection for a club.
13428
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13429
+ * @param {*} [options] Override http request option.
13430
+ * @throws {RequiredError}
13431
+ */
13432
+ getSumupConnectUrl(requestParameters, options) {
13433
+ return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
13434
+ },
13435
+ /**
13436
+ * Get SumUp connection status for a club.
13437
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13438
+ * @param {*} [options] Override http request option.
13439
+ * @throws {RequiredError}
13440
+ */
13441
+ getSumupStatus(requestParameters, options) {
13442
+ return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
13443
+ },
13444
+ /**
13445
+ * List SumUp readers for a club.
13446
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13447
+ * @param {*} [options] Override http request option.
13448
+ * @throws {RequiredError}
13449
+ */
13450
+ listSumupReaders(requestParameters, options) {
13451
+ return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
13452
+ },
13453
+ /**
13454
+ * Pair a SumUp reader with a club.
13455
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13456
+ * @param {*} [options] Override http request option.
13457
+ * @throws {RequiredError}
13458
+ */
13459
+ pairSumupReader(requestParameters, options) {
13460
+ return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
13461
+ },
13462
+ /**
13463
+ * Select a SumUp reader for a club.
13464
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13465
+ * @param {*} [options] Override http request option.
13466
+ * @throws {RequiredError}
13467
+ */
13468
+ selectSumupReader(requestParameters, options) {
13469
+ return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13470
+ },
13471
+ };
13472
+ };
13473
+ /**
13474
+ * SumUpManagerApi - object-oriented interface
13475
+ * @export
13476
+ * @class SumUpManagerApi
13477
+ * @extends {BaseAPI}
13478
+ */
13479
+ export class SumUpManagerApi extends BaseAPI {
13480
+ /**
13481
+ * Disconnect SumUp account for a club.
13482
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13483
+ * @param {*} [options] Override http request option.
13484
+ * @throws {RequiredError}
13485
+ * @memberof SumUpManagerApi
13486
+ */
13487
+ disconnectSumup(requestParameters, options) {
13488
+ return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13489
+ }
13490
+ /**
13491
+ * Start SumUp OAuth connection for a club.
13492
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13493
+ * @param {*} [options] Override http request option.
13494
+ * @throws {RequiredError}
13495
+ * @memberof SumUpManagerApi
13496
+ */
13497
+ getSumupConnectUrl(requestParameters, options) {
13498
+ return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13499
+ }
13500
+ /**
13501
+ * Get SumUp connection status for a club.
13502
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13503
+ * @param {*} [options] Override http request option.
13504
+ * @throws {RequiredError}
13505
+ * @memberof SumUpManagerApi
13506
+ */
13507
+ getSumupStatus(requestParameters, options) {
13508
+ return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13509
+ }
13510
+ /**
13511
+ * List SumUp readers for a club.
13512
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13513
+ * @param {*} [options] Override http request option.
13514
+ * @throws {RequiredError}
13515
+ * @memberof SumUpManagerApi
13516
+ */
13517
+ listSumupReaders(requestParameters, options) {
13518
+ return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13519
+ }
13520
+ /**
13521
+ * Pair a SumUp reader with a club.
13522
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13523
+ * @param {*} [options] Override http request option.
13524
+ * @throws {RequiredError}
13525
+ * @memberof SumUpManagerApi
13526
+ */
13527
+ pairSumupReader(requestParameters, options) {
13528
+ return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
13529
+ }
13530
+ /**
13531
+ * Select a SumUp reader for a club.
13532
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13533
+ * @param {*} [options] Override http request option.
13534
+ * @throws {RequiredError}
13535
+ * @memberof SumUpManagerApi
13536
+ */
13537
+ selectSumupReader(requestParameters, options) {
13538
+ return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13539
+ }
13540
+ }
13541
+ /**
13542
+ * UserApi - axios parameter creator
13543
+ * @export
13544
+ */
13545
+ export const UserApiAxiosParamCreator = function (configuration) {
13546
+ return {
13547
+ /**
13548
+ * Récupère les informations du club de l\'utilisateur
13549
+ * @param {string} clubId
13550
+ * @param {*} [options] Override http request option.
13551
+ * @throws {RequiredError}
13552
+ */
13553
+ getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13554
+ // verify required parameter 'clubId' is not null or undefined
13555
+ assertParamExists('getMyClubInfos', 'clubId', clubId);
13556
+ const localVarPath = `/api/users/me/club-infos`;
13589
13557
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13590
13558
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13591
13559
  let baseOptions;
@@ -14304,47 +14272,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14304
14272
  options: localVarRequestOptions,
14305
14273
  };
14306
14274
  }),
14307
- /**
14308
- *
14309
- * @param {number} [limit]
14310
- * @param {number} [skip]
14311
- * @param {any} [includeRead]
14312
- * @param {*} [options] Override http request option.
14313
- * @throws {RequiredError}
14314
- */
14315
- getUserNotifications: (limit_1, skip_1, includeRead_1, ...args_1) => __awaiter(this, [limit_1, skip_1, includeRead_1, ...args_1], void 0, function* (limit, skip, includeRead, options = {}) {
14316
- const localVarPath = `/api/users/me/notifications`;
14317
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
14318
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14319
- let baseOptions;
14320
- if (configuration) {
14321
- baseOptions = configuration.baseOptions;
14322
- }
14323
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14324
- const localVarHeaderParameter = {};
14325
- const localVarQueryParameter = {};
14326
- // authentication bearerAuth required
14327
- // http bearer authentication required
14328
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14329
- if (limit !== undefined) {
14330
- localVarQueryParameter['limit'] = limit;
14331
- }
14332
- if (skip !== undefined) {
14333
- localVarQueryParameter['skip'] = skip;
14334
- }
14335
- if (includeRead !== undefined) {
14336
- for (const [key, value] of Object.entries(includeRead)) {
14337
- localVarQueryParameter[key] = value;
14338
- }
14339
- }
14340
- setSearchParams(localVarUrlObj, localVarQueryParameter);
14341
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14342
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14343
- return {
14344
- url: toPathString(localVarUrlObj),
14345
- options: localVarRequestOptions,
14346
- };
14347
- }),
14348
14275
  /**
14349
14276
  *
14350
14277
  * @param {string} id
@@ -14532,38 +14459,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14532
14459
  options: localVarRequestOptions,
14533
14460
  };
14534
14461
  }),
14535
- /**
14536
- *
14537
- * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
14538
- * @param {*} [options] Override http request option.
14539
- * @throws {RequiredError}
14540
- */
14541
- markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
14542
- // verify required parameter 'markNotificationsReadRequest' is not null or undefined
14543
- assertParamExists('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
14544
- const localVarPath = `/api/users/me/notifications/read`;
14545
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
14546
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14547
- let baseOptions;
14548
- if (configuration) {
14549
- baseOptions = configuration.baseOptions;
14550
- }
14551
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14552
- const localVarHeaderParameter = {};
14553
- const localVarQueryParameter = {};
14554
- // authentication bearerAuth required
14555
- // http bearer authentication required
14556
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14557
- localVarHeaderParameter['Content-Type'] = 'application/json';
14558
- setSearchParams(localVarUrlObj, localVarQueryParameter);
14559
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14560
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14561
- localVarRequestOptions.data = serializeDataIfNeeded(markNotificationsReadRequest, localVarRequestOptions, configuration);
14562
- return {
14563
- url: toPathString(localVarUrlObj),
14564
- options: localVarRequestOptions,
14565
- };
14566
- }),
14567
14462
  /**
14568
14463
  *
14569
14464
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -14687,59 +14582,27 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14687
14582
  * @param {string} favoritePlayerId
14688
14583
  * @param {*} [options] Override http request option.
14689
14584
  * @throws {RequiredError}
14690
- */
14691
- removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
14692
- // verify required parameter 'favoritePlayerId' is not null or undefined
14693
- assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
14694
- const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
14695
- .replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
14696
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
14697
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14698
- let baseOptions;
14699
- if (configuration) {
14700
- baseOptions = configuration.baseOptions;
14701
- }
14702
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
14703
- const localVarHeaderParameter = {};
14704
- const localVarQueryParameter = {};
14705
- // authentication bearerAuth required
14706
- // http bearer authentication required
14707
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14708
- setSearchParams(localVarUrlObj, localVarQueryParameter);
14709
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14710
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14711
- return {
14712
- url: toPathString(localVarUrlObj),
14713
- options: localVarRequestOptions,
14714
- };
14715
- }),
14716
- /**
14717
- *
14718
- * @param {AddOrganizationRequest} addOrganizationRequest
14719
- * @param {*} [options] Override http request option.
14720
- * @throws {RequiredError}
14721
- */
14722
- removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
14723
- // verify required parameter 'addOrganizationRequest' is not null or undefined
14724
- assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
14725
- const localVarPath = `/api/users/me/remove-organization`;
14585
+ */
14586
+ removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
14587
+ // verify required parameter 'favoritePlayerId' is not null or undefined
14588
+ assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
14589
+ const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
14590
+ .replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
14726
14591
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14727
14592
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14728
14593
  let baseOptions;
14729
14594
  if (configuration) {
14730
14595
  baseOptions = configuration.baseOptions;
14731
14596
  }
14732
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14597
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
14733
14598
  const localVarHeaderParameter = {};
14734
14599
  const localVarQueryParameter = {};
14735
14600
  // authentication bearerAuth required
14736
14601
  // http bearer authentication required
14737
14602
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14738
- localVarHeaderParameter['Content-Type'] = 'application/json';
14739
14603
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14740
14604
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14741
14605
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14742
- localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
14743
14606
  return {
14744
14607
  url: toPathString(localVarUrlObj),
14745
14608
  options: localVarRequestOptions,
@@ -14747,11 +14610,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14747
14610
  }),
14748
14611
  /**
14749
14612
  *
14613
+ * @param {AddOrganizationRequest} addOrganizationRequest
14750
14614
  * @param {*} [options] Override http request option.
14751
14615
  * @throws {RequiredError}
14752
14616
  */
14753
- requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14754
- const localVarPath = `/api/users/me/request-email-verification`;
14617
+ removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
14618
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
14619
+ assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
14620
+ const localVarPath = `/api/users/me/remove-organization`;
14755
14621
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14756
14622
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14757
14623
  let baseOptions;
@@ -14764,9 +14630,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14764
14630
  // authentication bearerAuth required
14765
14631
  // http bearer authentication required
14766
14632
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14633
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14767
14634
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14768
14635
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14769
14636
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14637
+ localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
14770
14638
  return {
14771
14639
  url: toPathString(localVarUrlObj),
14772
14640
  options: localVarRequestOptions,
@@ -14774,14 +14642,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14774
14642
  }),
14775
14643
  /**
14776
14644
  *
14777
- * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
14778
14645
  * @param {*} [options] Override http request option.
14779
14646
  * @throws {RequiredError}
14780
14647
  */
14781
- requestOrganizationCode: (requestOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [requestOrganizationEmailCodeBody_1, ...args_1], void 0, function* (requestOrganizationEmailCodeBody, options = {}) {
14782
- // verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
14783
- assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
14784
- const localVarPath = `/api/users/me/request-organization-code`;
14648
+ requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14649
+ const localVarPath = `/api/users/me/request-email-verification`;
14785
14650
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14786
14651
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14787
14652
  let baseOptions;
@@ -14794,11 +14659,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14794
14659
  // authentication bearerAuth required
14795
14660
  // http bearer authentication required
14796
14661
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14797
- localVarHeaderParameter['Content-Type'] = 'application/json';
14798
14662
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14799
14663
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14800
14664
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14801
- localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
14802
14665
  return {
14803
14666
  url: toPathString(localVarUrlObj),
14804
14667
  options: localVarRequestOptions,
@@ -14862,51 +14725,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14862
14725
  options: localVarRequestOptions,
14863
14726
  };
14864
14727
  }),
14865
- /**
14866
- *
14867
- * @param {string} q
14868
- * @param {number} [page]
14869
- * @param {number} [limit]
14870
- * @param {Array<string>} [excludeIds]
14871
- * @param {*} [options] Override http request option.
14872
- * @throws {RequiredError}
14873
- */
14874
- searchPartner: (q_1, page_1, limit_1, excludeIds_1, ...args_1) => __awaiter(this, [q_1, page_1, limit_1, excludeIds_1, ...args_1], void 0, function* (q, page, limit, excludeIds, options = {}) {
14875
- // verify required parameter 'q' is not null or undefined
14876
- assertParamExists('searchPartner', 'q', q);
14877
- const localVarPath = `/api/users/searchPartner`;
14878
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
14879
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14880
- let baseOptions;
14881
- if (configuration) {
14882
- baseOptions = configuration.baseOptions;
14883
- }
14884
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14885
- const localVarHeaderParameter = {};
14886
- const localVarQueryParameter = {};
14887
- // authentication bearerAuth required
14888
- // http bearer authentication required
14889
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14890
- if (q !== undefined) {
14891
- localVarQueryParameter['q'] = q;
14892
- }
14893
- if (page !== undefined) {
14894
- localVarQueryParameter['page'] = page;
14895
- }
14896
- if (limit !== undefined) {
14897
- localVarQueryParameter['limit'] = limit;
14898
- }
14899
- if (excludeIds) {
14900
- localVarQueryParameter['excludeIds'] = excludeIds;
14901
- }
14902
- setSearchParams(localVarUrlObj, localVarQueryParameter);
14903
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14904
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14905
- return {
14906
- url: toPathString(localVarUrlObj),
14907
- options: localVarRequestOptions,
14908
- };
14909
- }),
14910
14728
  /**
14911
14729
  *
14912
14730
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -15122,38 +14940,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
15122
14940
  options: localVarRequestOptions,
15123
14941
  };
15124
14942
  }),
15125
- /**
15126
- *
15127
- * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
15128
- * @param {*} [options] Override http request option.
15129
- * @throws {RequiredError}
15130
- */
15131
- verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
15132
- // verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
15133
- assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
15134
- const localVarPath = `/api/users/me/verify-organization-code`;
15135
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15136
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15137
- let baseOptions;
15138
- if (configuration) {
15139
- baseOptions = configuration.baseOptions;
15140
- }
15141
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15142
- const localVarHeaderParameter = {};
15143
- const localVarQueryParameter = {};
15144
- // authentication bearerAuth required
15145
- // http bearer authentication required
15146
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15147
- localVarHeaderParameter['Content-Type'] = 'application/json';
15148
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15149
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15150
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15151
- localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
15152
- return {
15153
- url: toPathString(localVarUrlObj),
15154
- options: localVarRequestOptions,
15155
- };
15156
- }),
15157
14943
  };
15158
14944
  };
15159
14945
  /**
@@ -15465,23 +15251,6 @@ export const UsersApiFp = function (configuration) {
15465
15251
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15466
15252
  });
15467
15253
  },
15468
- /**
15469
- *
15470
- * @param {number} [limit]
15471
- * @param {number} [skip]
15472
- * @param {any} [includeRead]
15473
- * @param {*} [options] Override http request option.
15474
- * @throws {RequiredError}
15475
- */
15476
- getUserNotifications(limit, skip, includeRead, options) {
15477
- return __awaiter(this, void 0, void 0, function* () {
15478
- var _a, _b, _c;
15479
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
15480
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15481
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15482
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15483
- });
15484
- },
15485
15254
  /**
15486
15255
  *
15487
15256
  * @param {string} id
@@ -15566,21 +15335,6 @@ export const UsersApiFp = function (configuration) {
15566
15335
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15567
15336
  });
15568
15337
  },
15569
- /**
15570
- *
15571
- * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
15572
- * @param {*} [options] Override http request option.
15573
- * @throws {RequiredError}
15574
- */
15575
- markNotificationsRead(markNotificationsReadRequest, options) {
15576
- return __awaiter(this, void 0, void 0, function* () {
15577
- var _a, _b, _c;
15578
- const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
15579
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15580
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.markNotificationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15581
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15582
- });
15583
- },
15584
15338
  /**
15585
15339
  *
15586
15340
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -15685,21 +15439,6 @@ export const UsersApiFp = function (configuration) {
15685
15439
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15686
15440
  });
15687
15441
  },
15688
- /**
15689
- *
15690
- * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
15691
- * @param {*} [options] Override http request option.
15692
- * @throws {RequiredError}
15693
- */
15694
- requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
15695
- return __awaiter(this, void 0, void 0, function* () {
15696
- var _a, _b, _c;
15697
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
15698
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15699
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15700
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15701
- });
15702
- },
15703
15442
  /**
15704
15443
  *
15705
15444
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -15730,24 +15469,6 @@ export const UsersApiFp = function (configuration) {
15730
15469
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15731
15470
  });
15732
15471
  },
15733
- /**
15734
- *
15735
- * @param {string} q
15736
- * @param {number} [page]
15737
- * @param {number} [limit]
15738
- * @param {Array<string>} [excludeIds]
15739
- * @param {*} [options] Override http request option.
15740
- * @throws {RequiredError}
15741
- */
15742
- searchPartner(q, page, limit, excludeIds, options) {
15743
- return __awaiter(this, void 0, void 0, function* () {
15744
- var _a, _b, _c;
15745
- const localVarAxiosArgs = yield localVarAxiosParamCreator.searchPartner(q, page, limit, excludeIds, options);
15746
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15747
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.searchPartner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15748
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15749
- });
15750
- },
15751
15472
  /**
15752
15473
  *
15753
15474
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -15853,21 +15574,6 @@ export const UsersApiFp = function (configuration) {
15853
15574
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15854
15575
  });
15855
15576
  },
15856
- /**
15857
- *
15858
- * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
15859
- * @param {*} [options] Override http request option.
15860
- * @throws {RequiredError}
15861
- */
15862
- verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
15863
- return __awaiter(this, void 0, void 0, function* () {
15864
- var _a, _b, _c;
15865
- const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
15866
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15867
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15868
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15869
- });
15870
- },
15871
15577
  };
15872
15578
  };
15873
15579
  /**
@@ -16049,15 +15755,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16049
15755
  getUserEvents(requestParameters = {}, options) {
16050
15756
  return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
16051
15757
  },
16052
- /**
16053
- *
16054
- * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16055
- * @param {*} [options] Override http request option.
16056
- * @throws {RequiredError}
16057
- */
16058
- getUserNotifications(requestParameters = {}, options) {
16059
- return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
16060
- },
16061
15758
  /**
16062
15759
  *
16063
15760
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -16103,15 +15800,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16103
15800
  loginClubMember(requestParameters, options) {
16104
15801
  return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
16105
15802
  },
16106
- /**
16107
- *
16108
- * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16109
- * @param {*} [options] Override http request option.
16110
- * @throws {RequiredError}
16111
- */
16112
- markNotificationsRead(requestParameters, options) {
16113
- return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
16114
- },
16115
15803
  /**
16116
15804
  *
16117
15805
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -16174,15 +15862,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16174
15862
  requestEmailVerification(options) {
16175
15863
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
16176
15864
  },
16177
- /**
16178
- *
16179
- * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
16180
- * @param {*} [options] Override http request option.
16181
- * @throws {RequiredError}
16182
- */
16183
- requestOrganizationCode(requestParameters, options) {
16184
- return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
16185
- },
16186
15865
  /**
16187
15866
  *
16188
15867
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -16201,15 +15880,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16201
15880
  resetPassword(requestParameters, options) {
16202
15881
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
16203
15882
  },
16204
- /**
16205
- *
16206
- * @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
16207
- * @param {*} [options] Override http request option.
16208
- * @throws {RequiredError}
16209
- */
16210
- searchPartner(requestParameters, options) {
16211
- return localVarFp.searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(axios, basePath));
16212
- },
16213
15883
  /**
16214
15884
  *
16215
15885
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -16273,15 +15943,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16273
15943
  verifyOrganization(requestParameters, options) {
16274
15944
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
16275
15945
  },
16276
- /**
16277
- *
16278
- * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
16279
- * @param {*} [options] Override http request option.
16280
- * @throws {RequiredError}
16281
- */
16282
- verifyOrganizationCode(requestParameters, options) {
16283
- return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
16284
- },
16285
15946
  };
16286
15947
  };
16287
15948
  /**
@@ -16483,16 +16144,6 @@ export class UsersApi extends BaseAPI {
16483
16144
  getUserEvents(requestParameters = {}, options) {
16484
16145
  return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
16485
16146
  }
16486
- /**
16487
- *
16488
- * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16489
- * @param {*} [options] Override http request option.
16490
- * @throws {RequiredError}
16491
- * @memberof UsersApi
16492
- */
16493
- getUserNotifications(requestParameters = {}, options) {
16494
- return UsersApiFp(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
16495
- }
16496
16147
  /**
16497
16148
  *
16498
16149
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -16543,16 +16194,6 @@ export class UsersApi extends BaseAPI {
16543
16194
  loginClubMember(requestParameters, options) {
16544
16195
  return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
16545
16196
  }
16546
- /**
16547
- *
16548
- * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16549
- * @param {*} [options] Override http request option.
16550
- * @throws {RequiredError}
16551
- * @memberof UsersApi
16552
- */
16553
- markNotificationsRead(requestParameters, options) {
16554
- return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
16555
- }
16556
16197
  /**
16557
16198
  *
16558
16199
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -16622,16 +16263,6 @@ export class UsersApi extends BaseAPI {
16622
16263
  requestEmailVerification(options) {
16623
16264
  return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
16624
16265
  }
16625
- /**
16626
- *
16627
- * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
16628
- * @param {*} [options] Override http request option.
16629
- * @throws {RequiredError}
16630
- * @memberof UsersApi
16631
- */
16632
- requestOrganizationCode(requestParameters, options) {
16633
- return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
16634
- }
16635
16266
  /**
16636
16267
  *
16637
16268
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -16652,16 +16283,6 @@ export class UsersApi extends BaseAPI {
16652
16283
  resetPassword(requestParameters, options) {
16653
16284
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
16654
16285
  }
16655
- /**
16656
- *
16657
- * @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
16658
- * @param {*} [options] Override http request option.
16659
- * @throws {RequiredError}
16660
- * @memberof UsersApi
16661
- */
16662
- searchPartner(requestParameters, options) {
16663
- return UsersApiFp(this.configuration).searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(this.axios, this.basePath));
16664
- }
16665
16286
  /**
16666
16287
  *
16667
16288
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -16732,16 +16353,6 @@ export class UsersApi extends BaseAPI {
16732
16353
  verifyOrganization(requestParameters, options) {
16733
16354
  return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
16734
16355
  }
16735
- /**
16736
- *
16737
- * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
16738
- * @param {*} [options] Override http request option.
16739
- * @throws {RequiredError}
16740
- * @memberof UsersApi
16741
- */
16742
- verifyOrganizationCode(requestParameters, options) {
16743
- return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
16744
- }
16745
16356
  }
16746
16357
  /**
16747
16358
  * WaitListApi - axios parameter creator
@@ -17461,37 +17072,6 @@ export const WaitListStaffApiAxiosParamCreator = function (configuration) {
17461
17072
  options: localVarRequestOptions,
17462
17073
  };
17463
17074
  }),
17464
- /**
17465
- * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17466
- * @param {string} eventId
17467
- * @param {*} [options] Override http request option.
17468
- * @throws {RequiredError}
17469
- */
17470
- getEventWaitListPlayers: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
17471
- // verify required parameter 'eventId' is not null or undefined
17472
- assertParamExists('getEventWaitListPlayers', 'eventId', eventId);
17473
- const localVarPath = `/api/waitlist/event/{eventId}/players`
17474
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
17475
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
17476
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17477
- let baseOptions;
17478
- if (configuration) {
17479
- baseOptions = configuration.baseOptions;
17480
- }
17481
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17482
- const localVarHeaderParameter = {};
17483
- const localVarQueryParameter = {};
17484
- // authentication bearerAuth required
17485
- // http bearer authentication required
17486
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17487
- setSearchParams(localVarUrlObj, localVarQueryParameter);
17488
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17489
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17490
- return {
17491
- url: toPathString(localVarUrlObj),
17492
- options: localVarRequestOptions,
17493
- };
17494
- }),
17495
17075
  /**
17496
17076
  * Forcer le traitement de la waitlist pour un booking (staff only)
17497
17077
  * @param {string} bookingId
@@ -17639,21 +17219,6 @@ export const WaitListStaffApiFp = function (configuration) {
17639
17219
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17640
17220
  });
17641
17221
  },
17642
- /**
17643
- * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17644
- * @param {string} eventId
17645
- * @param {*} [options] Override http request option.
17646
- * @throws {RequiredError}
17647
- */
17648
- getEventWaitListPlayers(eventId, options) {
17649
- return __awaiter(this, void 0, void 0, function* () {
17650
- var _a, _b, _c;
17651
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
17652
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17653
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WaitListStaffApi.getEventWaitListPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17654
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17655
- });
17656
- },
17657
17222
  /**
17658
17223
  * Forcer le traitement de la waitlist pour un booking (staff only)
17659
17224
  * @param {string} bookingId
@@ -17735,15 +17300,6 @@ export const WaitListStaffApiFactory = function (configuration, basePath, axios)
17735
17300
  getEventWaitList(requestParameters, options) {
17736
17301
  return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
17737
17302
  },
17738
- /**
17739
- * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17740
- * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
17741
- * @param {*} [options] Override http request option.
17742
- * @throws {RequiredError}
17743
- */
17744
- getEventWaitListPlayers(requestParameters, options) {
17745
- return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
17746
- },
17747
17303
  /**
17748
17304
  * Forcer le traitement de la waitlist pour un booking (staff only)
17749
17305
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
@@ -17810,16 +17366,6 @@ export class WaitListStaffApi extends BaseAPI {
17810
17366
  getEventWaitList(requestParameters, options) {
17811
17367
  return WaitListStaffApiFp(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
17812
17368
  }
17813
- /**
17814
- * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17815
- * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
17816
- * @param {*} [options] Override http request option.
17817
- * @throws {RequiredError}
17818
- * @memberof WaitListStaffApi
17819
- */
17820
- getEventWaitListPlayers(requestParameters, options) {
17821
- return WaitListStaffApiFp(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
17822
- }
17823
17369
  /**
17824
17370
  * Forcer le traitement de la waitlist pour un booking (staff only)
17825
17371
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.