@tennac-booking/sdk 1.0.228 → 1.0.229

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 (136) hide show
  1. package/.openapi-generator/FILES +51 -29
  2. package/README.md +76 -48
  3. package/api.ts +4783 -3563
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +4841 -3732
  8. package/dist/api.js +2058 -1812
  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 +4841 -3732
  16. package/dist/esm/api.js +1788 -1538
  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 +2 -0
  28. package/docs/AuthApi.md +113 -0
  29. package/docs/BookingClubInfo.md +2 -0
  30. package/docs/BookingPopulated.md +9 -1
  31. package/docs/BookingSummary.md +6 -4
  32. package/docs/BookingsApi.md +29 -80
  33. package/docs/BookingsStaffApi.md +1 -57
  34. package/docs/BookingsUserApi.md +58 -6
  35. package/docs/{CheckInPlayerSumupResponse.md → CloseOpenBookingResponse.md} +5 -7
  36. package/docs/ClubPageResponse.md +16 -0
  37. package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
  38. package/docs/ClubPageResponseSportsIdsLookup.md +23 -0
  39. package/docs/ClubPricingPeriodPayload.md +32 -0
  40. package/docs/ClubPricingPeriodResponse.md +6 -6
  41. package/docs/ClubReservationSettingsResponse.md +2 -2
  42. package/docs/ClubResponse.md +12 -2
  43. package/docs/ClubSummary.md +6 -0
  44. package/docs/ComingEventsPageResponse.md +22 -0
  45. package/docs/CourtEnvironment.md +10 -0
  46. package/docs/CreateBookingRequest.md +0 -2
  47. package/docs/CreateOpenBookingRequest.md +6 -4
  48. package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
  49. package/docs/EstimateOpenBookingJoinRequest.md +24 -0
  50. package/docs/EventBookingDetailSummary.md +2 -0
  51. package/docs/EventBookingResponse.md +2 -0
  52. package/docs/EventResponse.md +2 -0
  53. package/docs/EventsApi.md +113 -0
  54. package/docs/EventsStaffApi.md +119 -25
  55. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
  56. package/docs/GetOpenEventBookingsBySport200Response.md +20 -0
  57. package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +46 -0
  58. package/docs/{SumupPairReaderResponse.md → Health200Response.md} +7 -5
  59. package/docs/IUserAttributes.md +4 -0
  60. package/docs/{SumupReaderInfoDevice.md → JobResult.md} +9 -7
  61. package/docs/JobsApi.md +367 -0
  62. package/docs/JoinOpenBookingRequest.md +28 -0
  63. package/docs/MarkNotificationsReadRequest.md +22 -0
  64. package/docs/{SumupConnectUrlResponse.md → MarkNotificationsReadResponse.md} +5 -5
  65. package/docs/MyClubInfosResponse.md +0 -2
  66. package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
  67. package/docs/NotificationData.md +22 -0
  68. package/docs/NotificationInitiator.md +28 -0
  69. package/docs/NotificationParticipantPreview.md +24 -0
  70. package/docs/NotificationPreview.md +78 -0
  71. package/docs/NotificationResponse.md +46 -0
  72. package/docs/{SumupUpdateReaderRequest.md → NotificationResponseClub.md} +7 -5
  73. package/docs/NotificationSlotPreview.md +24 -0
  74. package/docs/NotificationSportPreview.md +24 -0
  75. package/docs/{SumupReaderStatusResponse.md → NotificationTargetPreview.md} +7 -5
  76. package/docs/NotificationType.md +26 -0
  77. package/docs/OpenBookingBasePriceResponse.md +24 -0
  78. package/docs/OpenBookingInfo.md +7 -5
  79. package/docs/OpenBookingJoinEstimateResponse.md +26 -0
  80. package/docs/OpenBookingPriceBody.md +26 -0
  81. package/docs/PartnerSearchItem.md +28 -0
  82. package/docs/PartnerSearchResponse.md +22 -0
  83. package/docs/PartnerSearchResponseMeta.md +26 -0
  84. package/docs/PlayerPrice.md +3 -1
  85. package/docs/PricingPeriodDiscount.md +24 -0
  86. package/docs/PublicEmailApi.md +4 -4
  87. package/docs/QuickReservationClubSummary.md +12 -0
  88. package/docs/QuickReservationCourtType.md +10 -0
  89. package/docs/RequestOrganizationEmailCodeBody.md +22 -0
  90. package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
  91. package/docs/RequestVerificationCodeBody.md +26 -0
  92. package/docs/{SumupReaderResponse.md → RequestVerificationCodeResponse.md} +5 -5
  93. package/docs/SportResponse.md +2 -0
  94. package/docs/StaffEventBookingResponse.md +2 -0
  95. package/docs/StaffEventsPageResponse.md +22 -0
  96. package/docs/StaffUserProfileResponse.md +4 -0
  97. package/docs/SubscriptionPlanDiscountResponse.md +2 -0
  98. package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
  99. package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
  100. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  101. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  102. package/docs/UserClubMembership.md +2 -0
  103. package/docs/UserNextBookingSummary.md +26 -0
  104. package/docs/UserNotificationsResponse.md +22 -0
  105. package/docs/UserNotificationsResponseMeta.md +28 -0
  106. package/docs/UserProfileResponse.md +12 -0
  107. package/docs/UsersApi.md +273 -0
  108. package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
  109. package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
  110. package/docs/VerifyVerificationCodeBody.md +24 -0
  111. package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
  112. package/docs/WaitListEntryWithPlayer.md +44 -0
  113. package/docs/WaitListPlayer.md +28 -0
  114. package/docs/WaitListPlayersListResponse.md +22 -0
  115. package/docs/WaitListStaffApi.md +55 -0
  116. package/index.ts +1 -1
  117. package/package.json +1 -1
  118. package/docs/CheckInPlayerSumupRequest.md +0 -22
  119. package/docs/CheckInSumupPaymentInfo.md +0 -26
  120. package/docs/GetOpenBookingPrice200Response.md +0 -24
  121. package/docs/GetOpenBookingPriceRequest.md +0 -26
  122. package/docs/JoinPriceEstimateResponse.md +0 -38
  123. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
  124. package/docs/OpenBookingSlotInfo.md +0 -24
  125. package/docs/PaymentIntentResult.md +0 -28
  126. package/docs/PaymentsStaffApi.md +0 -124
  127. package/docs/StaffEventsPaginatedResponse.md +0 -26
  128. package/docs/SumUpApi.md +0 -63
  129. package/docs/SumUpManagerApi.md +0 -617
  130. package/docs/SumupAccountStatusResponse.md +0 -32
  131. package/docs/SumupCreatePaymentRequest.md +0 -32
  132. package/docs/SumupOAuthCallbackResponse.md +0 -24
  133. package/docs/SumupPairReaderRequest.md +0 -24
  134. package/docs/SumupReaderInfo.md +0 -42
  135. package/docs/SumupReaderStatusInfo.md +0 -32
  136. package/docs/SumupReadersResponse.md +0 -20
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.177
7
+ * The version of the OpenAPI document: 1.0.224
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,6 +61,11 @@ 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
+ };
64
69
  export const CaptureResultTypeEnum = {
65
70
  CreatorPayment: 'creator_payment',
66
71
  PlayerPayment: 'player_payment'
@@ -78,6 +83,15 @@ export const ClubRoleResponseRoleEnum = {
78
83
  Manager: 'manager',
79
84
  Staff: 'staff'
80
85
  };
86
+ /**
87
+ *
88
+ * @export
89
+ * @enum {string}
90
+ */
91
+ export const CourtEnvironment = {
92
+ Indoor: 'indoor',
93
+ Outdoor: 'outdoor'
94
+ };
81
95
  /**
82
96
  *
83
97
  * @export
@@ -127,6 +141,11 @@ export const DiscountType = {
127
141
  Percentage: 'percentage',
128
142
  OffPeak: 'off_peak'
129
143
  };
144
+ export const EventBookingDetailSummaryUserParticipationStatusEnum = {
145
+ Participant: 'participant',
146
+ WaitingJoinPayment: 'waitingJoinPayment',
147
+ Waitlist: 'waitlist'
148
+ };
130
149
  /**
131
150
  *
132
151
  * @export
@@ -226,6 +245,39 @@ export const InvoiceStatusSETUPPENDING = {
226
245
  export const InvoiceStatusSETUPSUCCESS = {
227
246
  SetupSuccess: 'setup_success'
228
247
  };
248
+ /**
249
+ *
250
+ * @export
251
+ * @enum {string}
252
+ */
253
+ export const NotificationActorType = {
254
+ User: 'user',
255
+ Club: 'club',
256
+ System: 'system'
257
+ };
258
+ export const NotificationTargetPreviewTypeEnum = {
259
+ Booking: 'booking',
260
+ Event: 'event',
261
+ Waitlist: 'waitlist',
262
+ Unknown: 'unknown'
263
+ };
264
+ /**
265
+ *
266
+ * @export
267
+ * @enum {string}
268
+ */
269
+ export const NotificationType = {
270
+ BookingCreated: 'booking_created',
271
+ BookingSetupRequired: 'booking_setup_required',
272
+ BookingCancelled: 'booking_cancelled',
273
+ BookingReminder: 'booking_reminder',
274
+ EventRegistrationConfirmed: 'event_registration_confirmed',
275
+ EventReminder: 'event_reminder',
276
+ OpenBookingJoined: 'open_booking_joined',
277
+ OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
278
+ WaitlistSpotAvailable: 'waitlist_spot_available',
279
+ WaitlistConfirmed: 'waitlist_confirmed'
280
+ };
229
281
  export const PartialPublicAccessSettingsPaymentModeEnum = {
230
282
  Free: 'free',
231
283
  AccessFee: 'access_fee',
@@ -252,26 +304,6 @@ export const PaymentMethod = {
252
304
  OnsiteCash: 'onsite_cash',
253
305
  Free: 'free'
254
306
  };
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
- };
275
307
  /**
276
308
  *
277
309
  * @export
@@ -300,6 +332,15 @@ export const PublicAccessSettingsPaymentModeEnum = {
300
332
  AccessFee: 'access_fee',
301
333
  PerCourt: 'per_court'
302
334
  };
335
+ /**
336
+ *
337
+ * @export
338
+ * @enum {string}
339
+ */
340
+ export const QuickReservationCourtType = {
341
+ Indoor: 'indoor',
342
+ Outdoor: 'outdoor'
343
+ };
303
344
  export const RecurringDefinitionResponseRecurringTypeEnum = {
304
345
  Daily: 'daily',
305
346
  Weekly: 'weekly',
@@ -337,6 +378,15 @@ export const StaffUserProfileResponseCreatedFromEnum = {
337
378
  App: 'app',
338
379
  Website: 'website'
339
380
  };
381
+ /**
382
+ *
383
+ * @export
384
+ * @enum {string}
385
+ */
386
+ export const SupportedLanguage = {
387
+ Fr: 'fr',
388
+ En: 'en'
389
+ };
340
390
  /**
341
391
  *
342
392
  * @export
@@ -425,6 +475,11 @@ export const VisibilityType = {
425
475
  Private: 'private',
426
476
  Invitation: 'invitation'
427
477
  };
478
+ export const WaitListEntryWithPlayerTargetTypeEnum = {
479
+ Event: 'event',
480
+ Booking: 'booking',
481
+ EventBooking: 'event_booking'
482
+ };
428
483
  export const WaitListResponseTargetTypeEnum = {
429
484
  Event: 'event',
430
485
  Booking: 'booking',
@@ -444,6 +499,166 @@ export const WeekdayKey = {
444
499
  Saturday: 'saturday',
445
500
  Sunday: 'sunday'
446
501
  };
502
+ /**
503
+ * AuthApi - axios parameter creator
504
+ * @export
505
+ */
506
+ export const AuthApiAxiosParamCreator = function (configuration) {
507
+ return {
508
+ /**
509
+ *
510
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
515
+ // verify required parameter 'requestVerificationCodeBody' is not null or undefined
516
+ assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
517
+ const localVarPath = `/api/auth/verification-code`;
518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
519
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
520
+ let baseOptions;
521
+ if (configuration) {
522
+ baseOptions = configuration.baseOptions;
523
+ }
524
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
525
+ const localVarHeaderParameter = {};
526
+ const localVarQueryParameter = {};
527
+ localVarHeaderParameter['Content-Type'] = 'application/json';
528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
530
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
531
+ localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration);
532
+ return {
533
+ url: toPathString(localVarUrlObj),
534
+ options: localVarRequestOptions,
535
+ };
536
+ }),
537
+ /**
538
+ *
539
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
544
+ // verify required parameter 'verifyVerificationCodeBody' is not null or undefined
545
+ assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
546
+ const localVarPath = `/api/auth/verification-code/verify`;
547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
549
+ let baseOptions;
550
+ if (configuration) {
551
+ baseOptions = configuration.baseOptions;
552
+ }
553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
554
+ const localVarHeaderParameter = {};
555
+ const localVarQueryParameter = {};
556
+ localVarHeaderParameter['Content-Type'] = 'application/json';
557
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
559
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
560
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration);
561
+ return {
562
+ url: toPathString(localVarUrlObj),
563
+ options: localVarRequestOptions,
564
+ };
565
+ }),
566
+ };
567
+ };
568
+ /**
569
+ * AuthApi - functional programming interface
570
+ * @export
571
+ */
572
+ export const AuthApiFp = function (configuration) {
573
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
574
+ return {
575
+ /**
576
+ *
577
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ requestVerificationCode(requestVerificationCodeBody, options) {
582
+ return __awaiter(this, void 0, void 0, function* () {
583
+ var _a, _b, _c;
584
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
585
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
586
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
587
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
588
+ });
589
+ },
590
+ /**
591
+ *
592
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ verifyVerificationCode(verifyVerificationCodeBody, options) {
597
+ return __awaiter(this, void 0, void 0, function* () {
598
+ var _a, _b, _c;
599
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
600
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
601
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
602
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
603
+ });
604
+ },
605
+ };
606
+ };
607
+ /**
608
+ * AuthApi - factory interface
609
+ * @export
610
+ */
611
+ export const AuthApiFactory = function (configuration, basePath, axios) {
612
+ const localVarFp = AuthApiFp(configuration);
613
+ return {
614
+ /**
615
+ *
616
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ requestVerificationCode(requestParameters, options) {
621
+ return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
622
+ },
623
+ /**
624
+ *
625
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ verifyVerificationCode(requestParameters, options) {
630
+ return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
631
+ },
632
+ };
633
+ };
634
+ /**
635
+ * AuthApi - object-oriented interface
636
+ * @export
637
+ * @class AuthApi
638
+ * @extends {BaseAPI}
639
+ */
640
+ export class AuthApi extends BaseAPI {
641
+ /**
642
+ *
643
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof AuthApi
647
+ */
648
+ requestVerificationCode(requestParameters, options) {
649
+ return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
650
+ }
651
+ /**
652
+ *
653
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof AuthApi
657
+ */
658
+ verifyVerificationCode(requestParameters, options) {
659
+ return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
660
+ }
661
+ }
447
662
  /**
448
663
  * BookingsApi - axios parameter creator
449
664
  * @export
@@ -480,16 +695,18 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
480
695
  };
481
696
  }),
482
697
  /**
483
- * Estimer le prix pour rejoindre une réservation ouverte
698
+ * 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.
484
699
  * @param {string} bookingId
485
- * @param {number} [creditToUseInCents]
700
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
486
701
  * @param {*} [options] Override http request option.
487
702
  * @throws {RequiredError}
488
703
  */
489
- estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
704
+ estimateOpenBookingJoin: (bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1) => __awaiter(this, [bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1], void 0, function* (bookingId, estimateOpenBookingJoinRequest, options = {}) {
490
705
  // verify required parameter 'bookingId' is not null or undefined
491
- assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
492
- const localVarPath = `/api/bookings/{bookingId}/open/estimate`
706
+ assertParamExists('estimateOpenBookingJoin', 'bookingId', bookingId);
707
+ // verify required parameter 'estimateOpenBookingJoinRequest' is not null or undefined
708
+ assertParamExists('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
709
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
493
710
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
494
711
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
495
712
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -497,18 +714,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
497
714
  if (configuration) {
498
715
  baseOptions = configuration.baseOptions;
499
716
  }
500
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
717
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
501
718
  const localVarHeaderParameter = {};
502
719
  const localVarQueryParameter = {};
503
720
  // authentication bearerAuth required
504
721
  // http bearer authentication required
505
722
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
506
- if (creditToUseInCents !== undefined) {
507
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
508
- }
723
+ localVarHeaderParameter['Content-Type'] = 'application/json';
509
724
  setSearchParams(localVarUrlObj, localVarQueryParameter);
510
725
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
726
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
727
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
512
728
  return {
513
729
  url: toPathString(localVarUrlObj),
514
730
  options: localVarRequestOptions,
@@ -607,50 +823,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
607
823
  };
608
824
  }),
609
825
  /**
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
826
+ * 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 stocké lors de la création.
646
827
  * @param {string} bookingId
647
828
  * @param {*} [options] Override http request option.
648
829
  * @throws {RequiredError}
649
830
  */
650
- getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
831
+ getOpenBookingBasePrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
651
832
  // verify required parameter 'bookingId' is not null or undefined
652
- assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId);
653
- const localVarPath = `/api/bookings/{bookingId}/open/join-price`
833
+ assertParamExists('getOpenBookingBasePrice', 'bookingId', bookingId);
834
+ const localVarPath = `/api/bookings/{bookingId}/open/base-price`
654
835
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
655
836
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
656
837
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -675,10 +856,11 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
675
856
  /**
676
857
  *
677
858
  * @param {string} [clubId]
859
+ * @param {string} [sportId]
678
860
  * @param {*} [options] Override http request option.
679
861
  * @throws {RequiredError}
680
862
  */
681
- getOpenBookings: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
863
+ getOpenBookings: (clubId_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, sportId_1, ...args_1], void 0, function* (clubId, sportId, options = {}) {
682
864
  const localVarPath = `/api/bookings/open`;
683
865
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
684
866
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -695,6 +877,9 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
695
877
  if (clubId !== undefined) {
696
878
  localVarQueryParameter['clubId'] = clubId;
697
879
  }
880
+ if (sportId !== undefined) {
881
+ localVarQueryParameter['sportId'] = sportId;
882
+ }
698
883
  setSearchParams(localVarUrlObj, localVarQueryParameter);
699
884
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
700
885
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -774,15 +959,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
774
959
  /**
775
960
  *
776
961
  * @param {string} bookingId
777
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
962
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
778
963
  * @param {*} [options] Override http request option.
779
964
  * @throws {RequiredError}
780
965
  */
781
- joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
966
+ joinOpenBooking: (bookingId_1, joinOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenBookingRequest, options = {}) {
782
967
  // verify required parameter 'bookingId' is not null or undefined
783
968
  assertParamExists('joinOpenBooking', 'bookingId', bookingId);
784
- // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
785
- assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
969
+ // verify required parameter 'joinOpenBookingRequest' is not null or undefined
970
+ assertParamExists('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest);
786
971
  const localVarPath = `/api/bookings/{bookingId}/open/join`
787
972
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
788
973
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -801,7 +986,7 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
801
986
  setSearchParams(localVarUrlObj, localVarQueryParameter);
802
987
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
803
988
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
804
- localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
989
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenBookingRequest, localVarRequestOptions, configuration);
805
990
  return {
806
991
  url: toPathString(localVarUrlObj),
807
992
  options: localVarRequestOptions,
@@ -863,18 +1048,18 @@ export const BookingsApiFp = function (configuration) {
863
1048
  });
864
1049
  },
865
1050
  /**
866
- * Estimer le prix pour rejoindre une réservation ouverte
1051
+ * 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.
867
1052
  * @param {string} bookingId
868
- * @param {number} [creditToUseInCents]
1053
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
869
1054
  * @param {*} [options] Override http request option.
870
1055
  * @throws {RequiredError}
871
1056
  */
872
- estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
1057
+ estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options) {
873
1058
  return __awaiter(this, void 0, void 0, function* () {
874
1059
  var _a, _b, _c;
875
- const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
1060
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options);
876
1061
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
877
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1062
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
878
1063
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
879
1064
  });
880
1065
  },
@@ -924,46 +1109,31 @@ export const BookingsApiFp = function (configuration) {
924
1109
  });
925
1110
  },
926
1111
  /**
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
1112
+ * 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 stocké lors de la création.
944
1113
  * @param {string} bookingId
945
1114
  * @param {*} [options] Override http request option.
946
1115
  * @throws {RequiredError}
947
1116
  */
948
- getOpenBookingJoinPrice(bookingId, options) {
1117
+ getOpenBookingBasePrice(bookingId, options) {
949
1118
  return __awaiter(this, void 0, void 0, function* () {
950
1119
  var _a, _b, _c;
951
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
1120
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingBasePrice(bookingId, options);
952
1121
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
953
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1122
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingBasePrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
954
1123
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
955
1124
  });
956
1125
  },
957
1126
  /**
958
1127
  *
959
1128
  * @param {string} [clubId]
1129
+ * @param {string} [sportId]
960
1130
  * @param {*} [options] Override http request option.
961
1131
  * @throws {RequiredError}
962
1132
  */
963
- getOpenBookings(clubId, options) {
1133
+ getOpenBookings(clubId, sportId, options) {
964
1134
  return __awaiter(this, void 0, void 0, function* () {
965
1135
  var _a, _b, _c;
966
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookings(clubId, options);
1136
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookings(clubId, sportId, options);
967
1137
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
968
1138
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
969
1139
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -997,14 +1167,14 @@ export const BookingsApiFp = function (configuration) {
997
1167
  /**
998
1168
  *
999
1169
  * @param {string} bookingId
1000
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
1170
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
1001
1171
  * @param {*} [options] Override http request option.
1002
1172
  * @throws {RequiredError}
1003
1173
  */
1004
- joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
1174
+ joinOpenBooking(bookingId, joinOpenBookingRequest, options) {
1005
1175
  return __awaiter(this, void 0, void 0, function* () {
1006
1176
  var _a, _b, _c;
1007
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
1177
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
1008
1178
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1009
1179
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1010
1180
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1044,13 +1214,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1044
1214
  return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
1045
1215
  },
1046
1216
  /**
1047
- * Estimer le prix pour rejoindre une réservation ouverte
1048
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1217
+ * 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.
1218
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1049
1219
  * @param {*} [options] Override http request option.
1050
1220
  * @throws {RequiredError}
1051
1221
  */
1052
- estimateOpenBookingJoinPrice(requestParameters, options) {
1053
- return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1222
+ estimateOpenBookingJoin(requestParameters, options) {
1223
+ return localVarFp.estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(axios, basePath));
1054
1224
  },
1055
1225
  /**
1056
1226
  * Obtenir l\'historique d\'une réservation par ID
@@ -1080,22 +1250,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1080
1250
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
1081
1251
  },
1082
1252
  /**
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.
1253
+ * 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 stocké lors de la création.
1254
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1085
1255
  * @param {*} [options] Override http request option.
1086
1256
  * @throws {RequiredError}
1087
1257
  */
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));
1258
+ getOpenBookingBasePrice(requestParameters, options) {
1259
+ return localVarFp.getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1099
1260
  },
1100
1261
  /**
1101
1262
  *
@@ -1104,7 +1265,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1104
1265
  * @throws {RequiredError}
1105
1266
  */
1106
1267
  getOpenBookings(requestParameters = {}, options) {
1107
- return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
1268
+ return localVarFp.getOpenBookings(requestParameters.clubId, requestParameters.sportId, options).then((request) => request(axios, basePath));
1108
1269
  },
1109
1270
  /**
1110
1271
  * Recherche des créneaux disponibles pour une réservation rapide
@@ -1122,7 +1283,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1122
1283
  * @throws {RequiredError}
1123
1284
  */
1124
1285
  joinOpenBooking(requestParameters, options) {
1125
- return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
1286
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
1126
1287
  },
1127
1288
  /**
1128
1289
  *
@@ -1153,14 +1314,14 @@ export class BookingsApi extends BaseAPI {
1153
1314
  return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
1154
1315
  }
1155
1316
  /**
1156
- * Estimer le prix pour rejoindre une réservation ouverte
1157
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1317
+ * 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.
1318
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1158
1319
  * @param {*} [options] Override http request option.
1159
1320
  * @throws {RequiredError}
1160
1321
  * @memberof BookingsApi
1161
1322
  */
1162
- estimateOpenBookingJoinPrice(requestParameters, options) {
1163
- return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1323
+ estimateOpenBookingJoin(requestParameters, options) {
1324
+ return BookingsApiFp(this.configuration).estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(this.axios, this.basePath));
1164
1325
  }
1165
1326
  /**
1166
1327
  * Obtenir l\'historique d\'une réservation par ID
@@ -1193,24 +1354,14 @@ export class BookingsApi extends BaseAPI {
1193
1354
  return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
1194
1355
  }
1195
1356
  /**
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.
1357
+ * 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 stocké lors de la création.
1358
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1208
1359
  * @param {*} [options] Override http request option.
1209
1360
  * @throws {RequiredError}
1210
1361
  * @memberof BookingsApi
1211
1362
  */
1212
- getOpenBookingJoinPrice(requestParameters, options) {
1213
- return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1363
+ getOpenBookingBasePrice(requestParameters, options) {
1364
+ return BookingsApiFp(this.configuration).getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1214
1365
  }
1215
1366
  /**
1216
1367
  *
@@ -1220,7 +1371,7 @@ export class BookingsApi extends BaseAPI {
1220
1371
  * @memberof BookingsApi
1221
1372
  */
1222
1373
  getOpenBookings(requestParameters = {}, options) {
1223
- return BookingsApiFp(this.configuration).getOpenBookings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
1374
+ return BookingsApiFp(this.configuration).getOpenBookings(requestParameters.clubId, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
1224
1375
  }
1225
1376
  /**
1226
1377
  * Recherche des créneaux disponibles pour une réservation rapide
@@ -1240,7 +1391,7 @@ export class BookingsApi extends BaseAPI {
1240
1391
  * @memberof BookingsApi
1241
1392
  */
1242
1393
  joinOpenBooking(requestParameters, options) {
1243
- return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
1394
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
1244
1395
  }
1245
1396
  /**
1246
1397
  *
@@ -1430,7 +1581,7 @@ export class BookingsManagerApi extends BaseAPI {
1430
1581
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1431
1582
  return {
1432
1583
  /**
1433
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1584
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1434
1585
  * @param {string} bookingId
1435
1586
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1436
1587
  * @param {*} [options] Override http request option.
@@ -1466,19 +1617,15 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1466
1617
  };
1467
1618
  }),
1468
1619
  /**
1469
- * Check-in d\'un joueur avec création d\'un checkout SumUp
1470
- * @param {string} bookingId
1471
- * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1620
+ * Créer une réservation pour un joueur depuis l\'espace staff
1621
+ * @param {StaffCreateBookingRequest} staffCreateBookingRequest
1472
1622
  * @param {*} [options] Override http request option.
1473
1623
  * @throws {RequiredError}
1474
1624
  */
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)));
1625
+ createStaffBooking: (staffCreateBookingRequest_1, ...args_1) => __awaiter(this, [staffCreateBookingRequest_1, ...args_1], void 0, function* (staffCreateBookingRequest, options = {}) {
1626
+ // verify required parameter 'staffCreateBookingRequest' is not null or undefined
1627
+ assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest);
1628
+ const localVarPath = `/api/bookings/staff`;
1482
1629
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1483
1630
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1484
1631
  let baseOptions;
@@ -1495,39 +1642,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1495
1642
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1496
1643
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1497
1644
  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
- }),
1504
- /**
1505
- * Créer une réservation pour un joueur depuis l\'espace staff
1506
- * @param {StaffCreateBookingRequest} staffCreateBookingRequest
1507
- * @param {*} [options] Override http request option.
1508
- * @throws {RequiredError}
1509
- */
1510
- createStaffBooking: (staffCreateBookingRequest_1, ...args_1) => __awaiter(this, [staffCreateBookingRequest_1, ...args_1], void 0, function* (staffCreateBookingRequest, options = {}) {
1511
- // verify required parameter 'staffCreateBookingRequest' is not null or undefined
1512
- assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest);
1513
- const localVarPath = `/api/bookings/staff`;
1514
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1516
- let baseOptions;
1517
- if (configuration) {
1518
- baseOptions = configuration.baseOptions;
1519
- }
1520
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1521
- const localVarHeaderParameter = {};
1522
- const localVarQueryParameter = {};
1523
- // authentication bearerAuth required
1524
- // http bearer authentication required
1525
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1526
- localVarHeaderParameter['Content-Type'] = 'application/json';
1527
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1528
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1529
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1530
- localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration);
1645
+ localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration);
1531
1646
  return {
1532
1647
  url: toPathString(localVarUrlObj),
1533
1648
  options: localVarRequestOptions,
@@ -1745,7 +1860,7 @@ export const BookingsStaffApiFp = function (configuration) {
1745
1860
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1746
1861
  return {
1747
1862
  /**
1748
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1863
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1749
1864
  * @param {string} bookingId
1750
1865
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1751
1866
  * @param {*} [options] Override http request option.
@@ -1760,22 +1875,6 @@ export const BookingsStaffApiFp = function (configuration) {
1760
1875
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1761
1876
  });
1762
1877
  },
1763
- /**
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
1878
  /**
1780
1879
  * Créer une réservation pour un joueur depuis l\'espace staff
1781
1880
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1895,7 +1994,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1895
1994
  const localVarFp = BookingsStaffApiFp(configuration);
1896
1995
  return {
1897
1996
  /**
1898
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1997
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1899
1998
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1900
1999
  * @param {*} [options] Override http request option.
1901
2000
  * @throws {RequiredError}
@@ -1903,15 +2002,6 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1903
2002
  checkInPlayer(requestParameters, options) {
1904
2003
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1905
2004
  },
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
- },
1915
2005
  /**
1916
2006
  * Créer une réservation pour un joueur depuis l\'espace staff
1917
2007
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -1985,7 +2075,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1985
2075
  */
1986
2076
  export class BookingsStaffApi extends BaseAPI {
1987
2077
  /**
1988
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
2078
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1989
2079
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1990
2080
  * @param {*} [options] Override http request option.
1991
2081
  * @throws {RequiredError}
@@ -1994,16 +2084,6 @@ export class BookingsStaffApi extends BaseAPI {
1994
2084
  checkInPlayer(requestParameters, options) {
1995
2085
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1996
2086
  }
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
- }
2007
2087
  /**
2008
2088
  * Créer une réservation pour un joueur depuis l\'espace staff
2009
2089
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -2112,6 +2192,37 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2112
2192
  options: localVarRequestOptions,
2113
2193
  };
2114
2194
  }),
2195
+ /**
2196
+ * Fermer une réservation ouverte et la passer en ACTIVE Accessible uniquement au créateur de la réservation
2197
+ * @param {string} bookingId
2198
+ * @param {*} [options] Override http request option.
2199
+ * @throws {RequiredError}
2200
+ */
2201
+ closeOpenBooking: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
2202
+ // verify required parameter 'bookingId' is not null or undefined
2203
+ assertParamExists('closeOpenBooking', 'bookingId', bookingId);
2204
+ const localVarPath = `/api/bookings/{bookingId}/close`
2205
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
2206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2208
+ let baseOptions;
2209
+ if (configuration) {
2210
+ baseOptions = configuration.baseOptions;
2211
+ }
2212
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2213
+ const localVarHeaderParameter = {};
2214
+ const localVarQueryParameter = {};
2215
+ // authentication bearerAuth required
2216
+ // http bearer authentication required
2217
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2221
+ return {
2222
+ url: toPathString(localVarUrlObj),
2223
+ options: localVarRequestOptions,
2224
+ };
2225
+ }),
2115
2226
  /**
2116
2227
  * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
2117
2228
  * @param {CreateBookingRequest} createBookingRequest
@@ -2178,13 +2289,13 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2178
2289
  }),
2179
2290
  /**
2180
2291
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2181
- * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2292
+ * @param {OpenBookingPriceBody} openBookingPriceBody
2182
2293
  * @param {*} [options] Override http request option.
2183
2294
  * @throws {RequiredError}
2184
2295
  */
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);
2296
+ getOpenBookingPrice: (openBookingPriceBody_1, ...args_1) => __awaiter(this, [openBookingPriceBody_1, ...args_1], void 0, function* (openBookingPriceBody, options = {}) {
2297
+ // verify required parameter 'openBookingPriceBody' is not null or undefined
2298
+ assertParamExists('getOpenBookingPrice', 'openBookingPriceBody', openBookingPriceBody);
2188
2299
  const localVarPath = `/api/bookings/open/booking-price`;
2189
2300
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2190
2301
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2202,7 +2313,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2202
2313
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2203
2314
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2204
2315
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2205
- localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
2316
+ localVarRequestOptions.data = serializeDataIfNeeded(openBookingPriceBody, localVarRequestOptions, configuration);
2206
2317
  return {
2207
2318
  url: toPathString(localVarUrlObj),
2208
2319
  options: localVarRequestOptions,
@@ -2268,6 +2379,21 @@ export const BookingsUserApiFp = function (configuration) {
2268
2379
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2269
2380
  });
2270
2381
  },
2382
+ /**
2383
+ * Fermer une réservation ouverte et la passer en ACTIVE Accessible uniquement au créateur de la réservation
2384
+ * @param {string} bookingId
2385
+ * @param {*} [options] Override http request option.
2386
+ * @throws {RequiredError}
2387
+ */
2388
+ closeOpenBooking(bookingId, options) {
2389
+ return __awaiter(this, void 0, void 0, function* () {
2390
+ var _a, _b, _c;
2391
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.closeOpenBooking(bookingId, options);
2392
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2393
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.closeOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2394
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2395
+ });
2396
+ },
2271
2397
  /**
2272
2398
  * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
2273
2399
  * @param {CreateBookingRequest} createBookingRequest
@@ -2300,14 +2426,14 @@ export const BookingsUserApiFp = function (configuration) {
2300
2426
  },
2301
2427
  /**
2302
2428
  * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2303
- * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2429
+ * @param {OpenBookingPriceBody} openBookingPriceBody
2304
2430
  * @param {*} [options] Override http request option.
2305
2431
  * @throws {RequiredError}
2306
2432
  */
2307
- getOpenBookingPrice(getOpenBookingPriceRequest, options) {
2433
+ getOpenBookingPrice(openBookingPriceBody, options) {
2308
2434
  return __awaiter(this, void 0, void 0, function* () {
2309
2435
  var _a, _b, _c;
2310
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
2436
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(openBookingPriceBody, options);
2311
2437
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2312
2438
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2313
2439
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2347,6 +2473,15 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
2347
2473
  cancelBooking(requestParameters, options) {
2348
2474
  return localVarFp.cancelBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
2349
2475
  },
2476
+ /**
2477
+ * Fermer une réservation ouverte et la passer en ACTIVE Accessible uniquement au créateur de la réservation
2478
+ * @param {BookingsUserApiCloseOpenBookingRequest} requestParameters Request parameters.
2479
+ * @param {*} [options] Override http request option.
2480
+ * @throws {RequiredError}
2481
+ */
2482
+ closeOpenBooking(requestParameters, options) {
2483
+ return localVarFp.closeOpenBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
2484
+ },
2350
2485
  /**
2351
2486
  * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
2352
2487
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
@@ -2372,7 +2507,7 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
2372
2507
  * @throws {RequiredError}
2373
2508
  */
2374
2509
  getOpenBookingPrice(requestParameters, options) {
2375
- return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
2510
+ return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
2376
2511
  },
2377
2512
  /**
2378
2513
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -2402,6 +2537,16 @@ export class BookingsUserApi extends BaseAPI {
2402
2537
  cancelBooking(requestParameters, options) {
2403
2538
  return BookingsUserApiFp(this.configuration).cancelBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
2404
2539
  }
2540
+ /**
2541
+ * Fermer une réservation ouverte et la passer en ACTIVE Accessible uniquement au créateur de la réservation
2542
+ * @param {BookingsUserApiCloseOpenBookingRequest} requestParameters Request parameters.
2543
+ * @param {*} [options] Override http request option.
2544
+ * @throws {RequiredError}
2545
+ * @memberof BookingsUserApi
2546
+ */
2547
+ closeOpenBooking(requestParameters, options) {
2548
+ return BookingsUserApiFp(this.configuration).closeOpenBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
2549
+ }
2405
2550
  /**
2406
2551
  * Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
2407
2552
  * @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
@@ -2430,7 +2575,7 @@ export class BookingsUserApi extends BaseAPI {
2430
2575
  * @memberof BookingsUserApi
2431
2576
  */
2432
2577
  getOpenBookingPrice(requestParameters, options) {
2433
- return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
2578
+ return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
2434
2579
  }
2435
2580
  /**
2436
2581
  * Mettre à jour une réservation ouverte (description et niveau minimal)
@@ -9460,6 +9605,41 @@ export const EventsApiAxiosParamCreator = function (configuration) {
9460
9605
  options: localVarRequestOptions,
9461
9606
  };
9462
9607
  }),
9608
+ /**
9609
+ * Get upcoming events for a club with pagination (max 10 per page)
9610
+ * @param {string} [clubId]
9611
+ * @param {number} [page]
9612
+ * @param {*} [options] Override http request option.
9613
+ * @throws {RequiredError}
9614
+ */
9615
+ getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
9616
+ const localVarPath = `/api/events/coming`;
9617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9619
+ let baseOptions;
9620
+ if (configuration) {
9621
+ baseOptions = configuration.baseOptions;
9622
+ }
9623
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9624
+ const localVarHeaderParameter = {};
9625
+ const localVarQueryParameter = {};
9626
+ // authentication bearerAuth required
9627
+ // http bearer authentication required
9628
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9629
+ if (clubId !== undefined) {
9630
+ localVarQueryParameter['clubId'] = clubId;
9631
+ }
9632
+ if (page !== undefined) {
9633
+ localVarQueryParameter['page'] = page;
9634
+ }
9635
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9636
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9637
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9638
+ return {
9639
+ url: toPathString(localVarUrlObj),
9640
+ options: localVarRequestOptions,
9641
+ };
9642
+ }),
9463
9643
  /**
9464
9644
  * Get a specific event by ID
9465
9645
  * @param {string} eventId
@@ -9555,6 +9735,38 @@ export const EventsApiAxiosParamCreator = function (configuration) {
9555
9735
  options: localVarRequestOptions,
9556
9736
  };
9557
9737
  }),
9738
+ /**
9739
+ *
9740
+ * @param {string} [clubId]
9741
+ * @param {string} [sportId]
9742
+ * @param {*} [options] Override http request option.
9743
+ * @throws {RequiredError}
9744
+ */
9745
+ getOpenEventBookingsBySport: (clubId_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, sportId_1, ...args_1], void 0, function* (clubId, sportId, options = {}) {
9746
+ const localVarPath = `/api/events/open/by-sport`;
9747
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9748
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9749
+ let baseOptions;
9750
+ if (configuration) {
9751
+ baseOptions = configuration.baseOptions;
9752
+ }
9753
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9754
+ const localVarHeaderParameter = {};
9755
+ const localVarQueryParameter = {};
9756
+ if (clubId !== undefined) {
9757
+ localVarQueryParameter['clubId'] = clubId;
9758
+ }
9759
+ if (sportId !== undefined) {
9760
+ localVarQueryParameter['sportId'] = sportId;
9761
+ }
9762
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9763
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9764
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9765
+ return {
9766
+ url: toPathString(localVarUrlObj),
9767
+ options: localVarRequestOptions,
9768
+ };
9769
+ }),
9558
9770
  /**
9559
9771
  * Get all published events for a club
9560
9772
  * @param {string} [clubId]
@@ -9786,6 +9998,22 @@ export const EventsApiFp = function (configuration) {
9786
9998
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9787
9999
  });
9788
10000
  },
10001
+ /**
10002
+ * Get upcoming events for a club with pagination (max 10 per page)
10003
+ * @param {string} [clubId]
10004
+ * @param {number} [page]
10005
+ * @param {*} [options] Override http request option.
10006
+ * @throws {RequiredError}
10007
+ */
10008
+ getComingEvent(clubId, page, options) {
10009
+ return __awaiter(this, void 0, void 0, function* () {
10010
+ var _a, _b, _c;
10011
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
10012
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10013
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10014
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10015
+ });
10016
+ },
9789
10017
  /**
9790
10018
  * Get a specific event by ID
9791
10019
  * @param {string} eventId
@@ -9833,6 +10061,22 @@ export const EventsApiFp = function (configuration) {
9833
10061
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9834
10062
  });
9835
10063
  },
10064
+ /**
10065
+ *
10066
+ * @param {string} [clubId]
10067
+ * @param {string} [sportId]
10068
+ * @param {*} [options] Override http request option.
10069
+ * @throws {RequiredError}
10070
+ */
10071
+ getOpenEventBookingsBySport(clubId, sportId, options) {
10072
+ return __awaiter(this, void 0, void 0, function* () {
10073
+ var _a, _b, _c;
10074
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookingsBySport(clubId, sportId, options);
10075
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10076
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getOpenEventBookingsBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10077
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10078
+ });
10079
+ },
9836
10080
  /**
9837
10081
  * Get all published events for a club
9838
10082
  * @param {string} [clubId]
@@ -9949,6 +10193,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
9949
10193
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
9950
10194
  return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
9951
10195
  },
10196
+ /**
10197
+ * Get upcoming events for a club with pagination (max 10 per page)
10198
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10199
+ * @param {*} [options] Override http request option.
10200
+ * @throws {RequiredError}
10201
+ */
10202
+ getComingEvent(requestParameters = {}, options) {
10203
+ return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
10204
+ },
9952
10205
  /**
9953
10206
  * Get a specific event by ID
9954
10207
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -9976,6 +10229,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
9976
10229
  getOpenEventBookings(requestParameters = {}, options) {
9977
10230
  return localVarFp.getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(axios, basePath));
9978
10231
  },
10232
+ /**
10233
+ *
10234
+ * @param {EventsApiGetOpenEventBookingsBySportRequest} requestParameters Request parameters.
10235
+ * @param {*} [options] Override http request option.
10236
+ * @throws {RequiredError}
10237
+ */
10238
+ getOpenEventBookingsBySport(requestParameters = {}, options) {
10239
+ return localVarFp.getOpenEventBookingsBySport(requestParameters.clubId, requestParameters.sportId, options).then((request) => request(axios, basePath));
10240
+ },
9979
10241
  /**
9980
10242
  * Get all published events for a club
9981
10243
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -10060,6 +10322,16 @@ export class EventsApi extends BaseAPI {
10060
10322
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10061
10323
  return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
10062
10324
  }
10325
+ /**
10326
+ * Get upcoming events for a club with pagination (max 10 per page)
10327
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10328
+ * @param {*} [options] Override http request option.
10329
+ * @throws {RequiredError}
10330
+ * @memberof EventsApi
10331
+ */
10332
+ getComingEvent(requestParameters = {}, options) {
10333
+ return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
10334
+ }
10063
10335
  /**
10064
10336
  * Get a specific event by ID
10065
10337
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -10090,6 +10362,16 @@ export class EventsApi extends BaseAPI {
10090
10362
  getOpenEventBookings(requestParameters = {}, options) {
10091
10363
  return EventsApiFp(this.configuration).getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
10092
10364
  }
10365
+ /**
10366
+ *
10367
+ * @param {EventsApiGetOpenEventBookingsBySportRequest} requestParameters Request parameters.
10368
+ * @param {*} [options] Override http request option.
10369
+ * @throws {RequiredError}
10370
+ * @memberof EventsApi
10371
+ */
10372
+ getOpenEventBookingsBySport(requestParameters = {}, options) {
10373
+ return EventsApiFp(this.configuration).getOpenEventBookingsBySport(requestParameters.clubId, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
10374
+ }
10093
10375
  /**
10094
10376
  * Get all published events for a club
10095
10377
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -10885,16 +11167,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10885
11167
  };
10886
11168
  }),
10887
11169
  /**
10888
- * Get a specific event by ID (staff)
10889
- * @param {string} eventId
11170
+ *
10890
11171
  * @param {*} [options] Override http request option.
10891
11172
  * @throws {RequiredError}
10892
11173
  */
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)));
11174
+ getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11175
+ const localVarPath = `/api/events/staff/getEvents/drafts`;
10898
11176
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10899
11177
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10900
11178
  let baseOptions;
@@ -10916,12 +11194,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10916
11194
  };
10917
11195
  }),
10918
11196
  /**
10919
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11197
+ * Get a specific event by ID (staff)
11198
+ * @param {string} eventId
10920
11199
  * @param {*} [options] Override http request option.
10921
11200
  * @throws {RequiredError}
10922
11201
  */
10923
- getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10924
- const localVarPath = `/api/events/staff/getEvents`;
11202
+ getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
11203
+ // verify required parameter 'eventId' is not null or undefined
11204
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId);
11205
+ const localVarPath = `/api/events/staff/{eventId}`
11206
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10925
11207
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10926
11208
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10927
11209
  let baseOptions;
@@ -10990,17 +11272,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10990
11272
  };
10991
11273
  }),
10992
11274
  /**
10993
- * Get events for the week view (30 day sliding window)
10994
- * @param {string} [clubId]
10995
- * @param {string} [date]
10996
- * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
10997
- * @param {GetWeeklyEventsTypeEnum} [type]
10998
- * @param {string} [sportId]
11275
+ *
10999
11276
  * @param {*} [options] Override http request option.
11000
11277
  * @throws {RequiredError}
11001
11278
  */
11002
- getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
11003
- const localVarPath = `/api/events/calendar/weekly`;
11279
+ getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11280
+ const localVarPath = `/api/events/staff/getEvents/past`;
11004
11281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11005
11282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11006
11283
  let baseOptions;
@@ -11013,21 +11290,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
11013
11290
  // authentication bearerAuth required
11014
11291
  // http bearer authentication required
11015
11292
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11016
- if (clubId !== undefined) {
11017
- localVarQueryParameter['clubId'] = clubId;
11018
- }
11019
- if (date !== undefined) {
11020
- localVarQueryParameter['date'] = date;
11021
- }
11022
- if (visibilityType !== undefined) {
11023
- localVarQueryParameter['visibilityType'] = visibilityType;
11024
- }
11025
- if (type !== undefined) {
11026
- localVarQueryParameter['type'] = type;
11027
- }
11028
- if (sportId !== undefined) {
11029
- localVarQueryParameter['sportId'] = sportId;
11030
- }
11031
11293
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11032
11294
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11033
11295
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -11036,11 +11298,85 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
11036
11298
  options: localVarRequestOptions,
11037
11299
  };
11038
11300
  }),
11039
- };
11040
- };
11041
- /**
11042
- * EventsStaffApi - functional programming interface
11043
- * @export
11301
+ /**
11302
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11303
+ * @param {*} [options] Override http request option.
11304
+ * @throws {RequiredError}
11305
+ */
11306
+ getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11307
+ const localVarPath = `/api/events/staff/getEvents/upcoming`;
11308
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11309
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11310
+ let baseOptions;
11311
+ if (configuration) {
11312
+ baseOptions = configuration.baseOptions;
11313
+ }
11314
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11315
+ const localVarHeaderParameter = {};
11316
+ const localVarQueryParameter = {};
11317
+ // authentication bearerAuth required
11318
+ // http bearer authentication required
11319
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11320
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11321
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11322
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11323
+ return {
11324
+ url: toPathString(localVarUrlObj),
11325
+ options: localVarRequestOptions,
11326
+ };
11327
+ }),
11328
+ /**
11329
+ * Get events for the week view (30 day sliding window)
11330
+ * @param {string} [clubId]
11331
+ * @param {string} [date]
11332
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
11333
+ * @param {GetWeeklyEventsTypeEnum} [type]
11334
+ * @param {string} [sportId]
11335
+ * @param {*} [options] Override http request option.
11336
+ * @throws {RequiredError}
11337
+ */
11338
+ getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
11339
+ const localVarPath = `/api/events/calendar/weekly`;
11340
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11341
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11342
+ let baseOptions;
11343
+ if (configuration) {
11344
+ baseOptions = configuration.baseOptions;
11345
+ }
11346
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11347
+ const localVarHeaderParameter = {};
11348
+ const localVarQueryParameter = {};
11349
+ // authentication bearerAuth required
11350
+ // http bearer authentication required
11351
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11352
+ if (clubId !== undefined) {
11353
+ localVarQueryParameter['clubId'] = clubId;
11354
+ }
11355
+ if (date !== undefined) {
11356
+ localVarQueryParameter['date'] = date;
11357
+ }
11358
+ if (visibilityType !== undefined) {
11359
+ localVarQueryParameter['visibilityType'] = visibilityType;
11360
+ }
11361
+ if (type !== undefined) {
11362
+ localVarQueryParameter['type'] = type;
11363
+ }
11364
+ if (sportId !== undefined) {
11365
+ localVarQueryParameter['sportId'] = sportId;
11366
+ }
11367
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11368
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11369
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11370
+ return {
11371
+ url: toPathString(localVarUrlObj),
11372
+ options: localVarRequestOptions,
11373
+ };
11374
+ }),
11375
+ };
11376
+ };
11377
+ /**
11378
+ * EventsStaffApi - functional programming interface
11379
+ * @export
11044
11380
  */
11045
11381
  export const EventsStaffApiFp = function (configuration) {
11046
11382
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
@@ -11081,31 +11417,31 @@ export const EventsStaffApiFp = function (configuration) {
11081
11417
  });
11082
11418
  },
11083
11419
  /**
11084
- * Get a specific event by ID (staff)
11085
- * @param {string} eventId
11420
+ *
11086
11421
  * @param {*} [options] Override http request option.
11087
11422
  * @throws {RequiredError}
11088
11423
  */
11089
- getEventByIdForStaff(eventId, options) {
11424
+ getDraftEventsByClub(options) {
11090
11425
  return __awaiter(this, void 0, void 0, function* () {
11091
11426
  var _a, _b, _c;
11092
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11427
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
11093
11428
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11094
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11429
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11095
11430
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11096
11431
  });
11097
11432
  },
11098
11433
  /**
11099
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11434
+ * Get a specific event by ID (staff)
11435
+ * @param {string} eventId
11100
11436
  * @param {*} [options] Override http request option.
11101
11437
  * @throws {RequiredError}
11102
11438
  */
11103
- getEventsByClub(options) {
11439
+ getEventByIdForStaff(eventId, options) {
11104
11440
  return __awaiter(this, void 0, void 0, function* () {
11105
11441
  var _a, _b, _c;
11106
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
11442
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11107
11443
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11108
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11444
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11109
11445
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11110
11446
  });
11111
11447
  },
@@ -11128,6 +11464,34 @@ export const EventsStaffApiFp = function (configuration) {
11128
11464
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11129
11465
  });
11130
11466
  },
11467
+ /**
11468
+ *
11469
+ * @param {*} [options] Override http request option.
11470
+ * @throws {RequiredError}
11471
+ */
11472
+ getPastEventsByClub(options) {
11473
+ return __awaiter(this, void 0, void 0, function* () {
11474
+ var _a, _b, _c;
11475
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
11476
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11477
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11478
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11479
+ });
11480
+ },
11481
+ /**
11482
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11483
+ * @param {*} [options] Override http request option.
11484
+ * @throws {RequiredError}
11485
+ */
11486
+ getUpcomingEventsByClub(options) {
11487
+ return __awaiter(this, void 0, void 0, function* () {
11488
+ var _a, _b, _c;
11489
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
11490
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11491
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11492
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11493
+ });
11494
+ },
11131
11495
  /**
11132
11496
  * Get events for the week view (30 day sliding window)
11133
11497
  * @param {string} [clubId]
@@ -11175,21 +11539,21 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11175
11539
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11176
11540
  },
11177
11541
  /**
11178
- * Get a specific event by ID (staff)
11179
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11542
+ *
11180
11543
  * @param {*} [options] Override http request option.
11181
11544
  * @throws {RequiredError}
11182
11545
  */
11183
- getEventByIdForStaff(requestParameters, options) {
11184
- return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11546
+ getDraftEventsByClub(options) {
11547
+ return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
11185
11548
  },
11186
11549
  /**
11187
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11550
+ * Get a specific event by ID (staff)
11551
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11188
11552
  * @param {*} [options] Override http request option.
11189
11553
  * @throws {RequiredError}
11190
11554
  */
11191
- getEventsByClub(options) {
11192
- return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
11555
+ getEventByIdForStaff(requestParameters, options) {
11556
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11193
11557
  },
11194
11558
  /**
11195
11559
  * Get events for the entire month view (including recurring occurrences)
@@ -11200,6 +11564,22 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11200
11564
  getMonthlyEvents(requestParameters = {}, options) {
11201
11565
  return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11202
11566
  },
11567
+ /**
11568
+ *
11569
+ * @param {*} [options] Override http request option.
11570
+ * @throws {RequiredError}
11571
+ */
11572
+ getPastEventsByClub(options) {
11573
+ return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
11574
+ },
11575
+ /**
11576
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11577
+ * @param {*} [options] Override http request option.
11578
+ * @throws {RequiredError}
11579
+ */
11580
+ getUpcomingEventsByClub(options) {
11581
+ return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
11582
+ },
11203
11583
  /**
11204
11584
  * Get events for the week view (30 day sliding window)
11205
11585
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11239,23 +11619,23 @@ export class EventsStaffApi extends BaseAPI {
11239
11619
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11240
11620
  }
11241
11621
  /**
11242
- * Get a specific event by ID (staff)
11243
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11622
+ *
11244
11623
  * @param {*} [options] Override http request option.
11245
11624
  * @throws {RequiredError}
11246
11625
  * @memberof EventsStaffApi
11247
11626
  */
11248
- getEventByIdForStaff(requestParameters, options) {
11249
- return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11627
+ getDraftEventsByClub(options) {
11628
+ return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
11250
11629
  }
11251
11630
  /**
11252
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11631
+ * Get a specific event by ID (staff)
11632
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11253
11633
  * @param {*} [options] Override http request option.
11254
11634
  * @throws {RequiredError}
11255
11635
  * @memberof EventsStaffApi
11256
11636
  */
11257
- getEventsByClub(options) {
11258
- return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
11637
+ getEventByIdForStaff(requestParameters, options) {
11638
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11259
11639
  }
11260
11640
  /**
11261
11641
  * Get events for the entire month view (including recurring occurrences)
@@ -11267,6 +11647,24 @@ export class EventsStaffApi extends BaseAPI {
11267
11647
  getMonthlyEvents(requestParameters = {}, options) {
11268
11648
  return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11269
11649
  }
11650
+ /**
11651
+ *
11652
+ * @param {*} [options] Override http request option.
11653
+ * @throws {RequiredError}
11654
+ * @memberof EventsStaffApi
11655
+ */
11656
+ getPastEventsByClub(options) {
11657
+ return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
11658
+ }
11659
+ /**
11660
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11661
+ * @param {*} [options] Override http request option.
11662
+ * @throws {RequiredError}
11663
+ * @memberof EventsStaffApi
11664
+ */
11665
+ getUpcomingEventsByClub(options) {
11666
+ return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
11667
+ }
11270
11668
  /**
11271
11669
  * Get events for the week view (30 day sliding window)
11272
11670
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11424,272 +11822,206 @@ export class ImagesApi extends BaseAPI {
11424
11822
  }
11425
11823
  }
11426
11824
  /**
11427
- * PaymentsStaffApi - axios parameter creator
11825
+ * JobsApi - axios parameter creator
11428
11826
  * @export
11429
11827
  */
11430
- export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
11828
+ export const JobsApiAxiosParamCreator = function (configuration) {
11431
11829
  return {
11432
11830
  /**
11433
- * Cancel a SumUp reader checkout.
11434
- * @param {string} clubId
11435
- * @param {string} paymentId
11436
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11831
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
11832
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11437
11833
  * @param {*} [options] Override http request option.
11438
11834
  * @throws {RequiredError}
11439
11835
  */
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)));
11836
+ captureExpiringAuthorizations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11837
+ const localVarPath = `/api/jobs/capture-expiring-authorizations`;
11448
11838
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11449
11839
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11450
11840
  let baseOptions;
11451
11841
  if (configuration) {
11452
11842
  baseOptions = configuration.baseOptions;
11453
11843
  }
11454
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11844
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11455
11845
  const localVarHeaderParameter = {};
11456
11846
  const localVarQueryParameter = {};
11457
- // authentication bearerAuth required
11458
- // http bearer authentication required
11459
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11460
- localVarHeaderParameter['Content-Type'] = 'application/json';
11461
11847
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11462
11848
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11463
11849
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11464
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
11465
11850
  return {
11466
11851
  url: toPathString(localVarUrlObj),
11467
11852
  options: localVarRequestOptions,
11468
11853
  };
11469
11854
  }),
11470
11855
  /**
11471
- * Start a SumUp reader checkout (manual payment trigger).
11472
- * @param {string} clubId
11473
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11856
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
11857
+ * @summary Capture les paiements autorisés pour les réservations passées
11474
11858
  * @param {*} [options] Override http request option.
11475
11859
  * @throws {RequiredError}
11476
11860
  */
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)));
11861
+ capturePastReservations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11862
+ const localVarPath = `/api/jobs/capture-past-reservations`;
11484
11863
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11485
11864
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11486
11865
  let baseOptions;
11487
11866
  if (configuration) {
11488
11867
  baseOptions = configuration.baseOptions;
11489
11868
  }
11490
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11869
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11491
11870
  const localVarHeaderParameter = {};
11492
11871
  const localVarQueryParameter = {};
11493
- // authentication bearerAuth required
11494
- // http bearer authentication required
11495
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11496
- localVarHeaderParameter['Content-Type'] = 'application/json';
11497
11872
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11498
11873
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11499
11874
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11500
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
11501
11875
  return {
11502
11876
  url: toPathString(localVarUrlObj),
11503
11877
  options: localVarRequestOptions,
11504
11878
  };
11505
11879
  }),
11506
- };
11507
- };
11508
- /**
11509
- * PaymentsStaffApi - functional programming interface
11510
- * @export
11511
- */
11512
- export const PaymentsStaffApiFp = function (configuration) {
11513
- const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration);
11514
- return {
11515
- /**
11516
- * Cancel a SumUp reader checkout.
11517
- * @param {string} clubId
11518
- * @param {string} paymentId
11519
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11520
- * @param {*} [options] Override http request option.
11521
- * @throws {RequiredError}
11522
- */
11523
- cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
11524
- return __awaiter(this, void 0, void 0, function* () {
11525
- var _a, _b, _c;
11526
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
11527
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11528
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11529
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11530
- });
11531
- },
11532
11880
  /**
11533
- * Start a SumUp reader checkout (manual payment trigger).
11534
- * @param {string} clubId
11535
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11536
- * @param {*} [options] Override http request option.
11537
- * @throws {RequiredError}
11538
- */
11539
- createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
11540
- return __awaiter(this, void 0, void 0, function* () {
11541
- var _a, _b, _c;
11542
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
11543
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11544
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11545
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11546
- });
11547
- },
11548
- };
11549
- };
11550
- /**
11551
- * PaymentsStaffApi - factory interface
11552
- * @export
11553
- */
11554
- export const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
11555
- const localVarFp = PaymentsStaffApiFp(configuration);
11556
- return {
11557
- /**
11558
- * Cancel a SumUp reader checkout.
11559
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11560
- * @param {*} [options] Override http request option.
11561
- * @throws {RequiredError}
11562
- */
11563
- cancelSumupPayment(requestParameters, options) {
11564
- return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
11565
- },
11566
- /**
11567
- * Start a SumUp reader checkout (manual payment trigger).
11568
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11569
- * @param {*} [options] Override http request option.
11570
- * @throws {RequiredError}
11571
- */
11572
- createSumupPayment(requestParameters, options) {
11573
- return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
11574
- },
11575
- };
11576
- };
11577
- /**
11578
- * PaymentsStaffApi - object-oriented interface
11579
- * @export
11580
- * @class PaymentsStaffApi
11581
- * @extends {BaseAPI}
11582
- */
11583
- export class PaymentsStaffApi extends BaseAPI {
11584
- /**
11585
- * Cancel a SumUp reader checkout.
11586
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11587
- * @param {*} [options] Override http request option.
11588
- * @throws {RequiredError}
11589
- * @memberof PaymentsStaffApi
11590
- */
11591
- cancelSumupPayment(requestParameters, options) {
11592
- return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
11593
- }
11594
- /**
11595
- * Start a SumUp reader checkout (manual payment trigger).
11596
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11597
- * @param {*} [options] Override http request option.
11598
- * @throws {RequiredError}
11599
- * @memberof PaymentsStaffApi
11600
- */
11601
- createSumupPayment(requestParameters, options) {
11602
- return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
11603
- }
11604
- }
11605
- /**
11606
- * PublicEmailApi - axios parameter creator
11607
- * @export
11608
- */
11609
- export const PublicEmailApiAxiosParamCreator = function (configuration) {
11610
- return {
11611
- /**
11612
- *
11613
- * @param {EmailExistsRequestBody} emailExistsRequestBody
11881
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
11882
+ * @summary Expire les réservations en attente de paiement
11614
11883
  * @param {*} [options] Override http request option.
11615
11884
  * @throws {RequiredError}
11616
11885
  */
11617
- authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
11618
- // verify required parameter 'emailExistsRequestBody' is not null or undefined
11619
- assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
11620
- const localVarPath = `/api/public-email/auth-email-exists`;
11886
+ expireBookingWaitingPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11887
+ const localVarPath = `/api/jobs/expire-booking-waiting-payments`;
11621
11888
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11622
11889
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11623
11890
  let baseOptions;
11624
11891
  if (configuration) {
11625
11892
  baseOptions = configuration.baseOptions;
11626
11893
  }
11627
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11894
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11628
11895
  const localVarHeaderParameter = {};
11629
11896
  const localVarQueryParameter = {};
11630
- localVarHeaderParameter['Content-Type'] = 'application/json';
11631
11897
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11632
11898
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11633
11899
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11634
- localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
11635
11900
  return {
11636
11901
  url: toPathString(localVarUrlObj),
11637
11902
  options: localVarRequestOptions,
11638
11903
  };
11639
11904
  }),
11640
11905
  /**
11641
- *
11642
- * @param {RequestEmailCodeBody} requestEmailCodeBody
11906
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
11907
+ * @summary Expire les paiements en attente sur la waitlist
11643
11908
  * @param {*} [options] Override http request option.
11644
11909
  * @throws {RequiredError}
11645
11910
  */
11646
- requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11647
- // verify required parameter 'requestEmailCodeBody' is not null or undefined
11648
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11649
- const localVarPath = `/api/public-email/request-verification-code`;
11911
+ expireWaitlistPayments: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11912
+ const localVarPath = `/api/jobs/expire-waitlist-payments`;
11650
11913
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11651
11914
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11652
11915
  let baseOptions;
11653
11916
  if (configuration) {
11654
11917
  baseOptions = configuration.baseOptions;
11655
11918
  }
11656
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11919
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11657
11920
  const localVarHeaderParameter = {};
11658
11921
  const localVarQueryParameter = {};
11659
- localVarHeaderParameter['Content-Type'] = 'application/json';
11660
11922
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11661
11923
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11662
11924
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11663
- localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
11664
11925
  return {
11665
11926
  url: toPathString(localVarUrlObj),
11666
11927
  options: localVarRequestOptions,
11667
11928
  };
11668
11929
  }),
11669
11930
  /**
11670
- *
11671
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
11931
+ * Route de santé pour vérifier que le service jobs est opérationnel
11932
+ * @summary Health check pour les jobs
11672
11933
  * @param {*} [options] Override http request option.
11673
11934
  * @throws {RequiredError}
11674
11935
  */
11675
- verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
11676
- // verify required parameter 'verifyEmailCodeBody' is not null or undefined
11677
- assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
11678
- const localVarPath = `/api/public-email/verify-code`;
11936
+ health: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11937
+ const localVarPath = `/api/jobs/health`;
11679
11938
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11680
11939
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11681
11940
  let baseOptions;
11682
11941
  if (configuration) {
11683
11942
  baseOptions = configuration.baseOptions;
11684
11943
  }
11685
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11944
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11945
+ const localVarHeaderParameter = {};
11946
+ const localVarQueryParameter = {};
11947
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11948
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11949
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11950
+ return {
11951
+ url: toPathString(localVarUrlObj),
11952
+ options: localVarRequestOptions,
11953
+ };
11954
+ }),
11955
+ /**
11956
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
11957
+ * @summary Génère les créneaux futurs et nettoie les anciens
11958
+ * @param {*} [options] Override http request option.
11959
+ * @throws {RequiredError}
11960
+ */
11961
+ maintainSlots: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11962
+ const localVarPath = `/api/jobs/maintain-slots`;
11963
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11964
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11965
+ let baseOptions;
11966
+ if (configuration) {
11967
+ baseOptions = configuration.baseOptions;
11968
+ }
11969
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11970
+ const localVarHeaderParameter = {};
11971
+ const localVarQueryParameter = {};
11972
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11973
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11974
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11975
+ return {
11976
+ url: toPathString(localVarUrlObj),
11977
+ options: localVarRequestOptions,
11978
+ };
11979
+ }),
11980
+ /**
11981
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
11982
+ * @summary Libère les anciennes réservations terminées
11983
+ * @param {*} [options] Override http request option.
11984
+ * @throws {RequiredError}
11985
+ */
11986
+ releaseOldBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11987
+ const localVarPath = `/api/jobs/release-old-bookings`;
11988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11990
+ let baseOptions;
11991
+ if (configuration) {
11992
+ baseOptions = configuration.baseOptions;
11993
+ }
11994
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11995
+ const localVarHeaderParameter = {};
11996
+ const localVarQueryParameter = {};
11997
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11998
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11999
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12000
+ return {
12001
+ url: toPathString(localVarUrlObj),
12002
+ options: localVarRequestOptions,
12003
+ };
12004
+ }),
12005
+ /**
12006
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12007
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
12008
+ * @param {*} [options] Override http request option.
12009
+ * @throws {RequiredError}
12010
+ */
12011
+ sendBookingReminders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
12012
+ const localVarPath = `/api/jobs/send-booking-reminders`;
12013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12015
+ let baseOptions;
12016
+ if (configuration) {
12017
+ baseOptions = configuration.baseOptions;
12018
+ }
12019
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11686
12020
  const localVarHeaderParameter = {};
11687
12021
  const localVarQueryParameter = {};
11688
- localVarHeaderParameter['Content-Type'] = 'application/json';
11689
12022
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11690
12023
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11691
12024
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11692
- localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration);
11693
12025
  return {
11694
12026
  url: toPathString(localVarUrlObj),
11695
12027
  options: localVarRequestOptions,
@@ -11698,149 +12030,319 @@ export const PublicEmailApiAxiosParamCreator = function (configuration) {
11698
12030
  };
11699
12031
  };
11700
12032
  /**
11701
- * PublicEmailApi - functional programming interface
12033
+ * JobsApi - functional programming interface
11702
12034
  * @export
11703
12035
  */
11704
- export const PublicEmailApiFp = function (configuration) {
11705
- const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration);
12036
+ export const JobsApiFp = function (configuration) {
12037
+ const localVarAxiosParamCreator = JobsApiAxiosParamCreator(configuration);
11706
12038
  return {
11707
12039
  /**
11708
- *
11709
- * @param {EmailExistsRequestBody} emailExistsRequestBody
12040
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
12041
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11710
12042
  * @param {*} [options] Override http request option.
11711
12043
  * @throws {RequiredError}
11712
12044
  */
11713
- authEmailExists(emailExistsRequestBody, options) {
12045
+ captureExpiringAuthorizations(options) {
11714
12046
  return __awaiter(this, void 0, void 0, function* () {
11715
12047
  var _a, _b, _c;
11716
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
12048
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.captureExpiringAuthorizations(options);
11717
12049
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11718
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12050
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.captureExpiringAuthorizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11719
12051
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11720
12052
  });
11721
12053
  },
11722
12054
  /**
11723
- *
11724
- * @param {RequestEmailCodeBody} requestEmailCodeBody
12055
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
12056
+ * @summary Capture les paiements autorisés pour les réservations passées
11725
12057
  * @param {*} [options] Override http request option.
11726
12058
  * @throws {RequiredError}
11727
12059
  */
11728
- requestVerificationCode(requestEmailCodeBody, options) {
12060
+ capturePastReservations(options) {
11729
12061
  return __awaiter(this, void 0, void 0, function* () {
11730
12062
  var _a, _b, _c;
11731
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
12063
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.capturePastReservations(options);
11732
12064
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11733
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12065
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.capturePastReservations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11734
12066
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11735
12067
  });
11736
12068
  },
11737
12069
  /**
11738
- *
11739
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
12070
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
12071
+ * @summary Expire les réservations en attente de paiement
11740
12072
  * @param {*} [options] Override http request option.
11741
12073
  * @throws {RequiredError}
11742
12074
  */
11743
- verifyCode(verifyEmailCodeBody, options) {
12075
+ expireBookingWaitingPayments(options) {
11744
12076
  return __awaiter(this, void 0, void 0, function* () {
11745
12077
  var _a, _b, _c;
11746
- const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
12078
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.expireBookingWaitingPayments(options);
11747
12079
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11748
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12080
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireBookingWaitingPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12081
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12082
+ });
12083
+ },
12084
+ /**
12085
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
12086
+ * @summary Expire les paiements en attente sur la waitlist
12087
+ * @param {*} [options] Override http request option.
12088
+ * @throws {RequiredError}
12089
+ */
12090
+ expireWaitlistPayments(options) {
12091
+ return __awaiter(this, void 0, void 0, function* () {
12092
+ var _a, _b, _c;
12093
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.expireWaitlistPayments(options);
12094
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12095
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireWaitlistPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12096
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12097
+ });
12098
+ },
12099
+ /**
12100
+ * Route de santé pour vérifier que le service jobs est opérationnel
12101
+ * @summary Health check pour les jobs
12102
+ * @param {*} [options] Override http request option.
12103
+ * @throws {RequiredError}
12104
+ */
12105
+ health(options) {
12106
+ return __awaiter(this, void 0, void 0, function* () {
12107
+ var _a, _b, _c;
12108
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.health(options);
12109
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12110
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.health']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12111
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12112
+ });
12113
+ },
12114
+ /**
12115
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
12116
+ * @summary Génère les créneaux futurs et nettoie les anciens
12117
+ * @param {*} [options] Override http request option.
12118
+ * @throws {RequiredError}
12119
+ */
12120
+ maintainSlots(options) {
12121
+ return __awaiter(this, void 0, void 0, function* () {
12122
+ var _a, _b, _c;
12123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.maintainSlots(options);
12124
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12125
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.maintainSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12127
+ });
12128
+ },
12129
+ /**
12130
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
12131
+ * @summary Libère les anciennes réservations terminées
12132
+ * @param {*} [options] Override http request option.
12133
+ * @throws {RequiredError}
12134
+ */
12135
+ releaseOldBookings(options) {
12136
+ return __awaiter(this, void 0, void 0, function* () {
12137
+ var _a, _b, _c;
12138
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.releaseOldBookings(options);
12139
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12140
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.releaseOldBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12141
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12142
+ });
12143
+ },
12144
+ /**
12145
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12146
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
12147
+ * @param {*} [options] Override http request option.
12148
+ * @throws {RequiredError}
12149
+ */
12150
+ sendBookingReminders(options) {
12151
+ return __awaiter(this, void 0, void 0, function* () {
12152
+ var _a, _b, _c;
12153
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sendBookingReminders(options);
12154
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12155
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.sendBookingReminders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11749
12156
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11750
12157
  });
11751
12158
  },
11752
12159
  };
11753
12160
  };
11754
12161
  /**
11755
- * PublicEmailApi - factory interface
12162
+ * JobsApi - factory interface
11756
12163
  * @export
11757
12164
  */
11758
- export const PublicEmailApiFactory = function (configuration, basePath, axios) {
11759
- const localVarFp = PublicEmailApiFp(configuration);
12165
+ export const JobsApiFactory = function (configuration, basePath, axios) {
12166
+ const localVarFp = JobsApiFp(configuration);
11760
12167
  return {
11761
12168
  /**
11762
- *
11763
- * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12169
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
12170
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11764
12171
  * @param {*} [options] Override http request option.
11765
12172
  * @throws {RequiredError}
11766
12173
  */
11767
- authEmailExists(requestParameters, options) {
11768
- return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
12174
+ captureExpiringAuthorizations(options) {
12175
+ return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
11769
12176
  },
11770
12177
  /**
11771
- *
11772
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
12178
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
12179
+ * @summary Capture les paiements autorisés pour les réservations passées
11773
12180
  * @param {*} [options] Override http request option.
11774
12181
  * @throws {RequiredError}
11775
12182
  */
11776
- requestVerificationCode(requestParameters, options) {
11777
- return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
12183
+ capturePastReservations(options) {
12184
+ return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
11778
12185
  },
11779
12186
  /**
11780
- *
11781
- * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
12187
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
12188
+ * @summary Expire les réservations en attente de paiement
11782
12189
  * @param {*} [options] Override http request option.
11783
12190
  * @throws {RequiredError}
11784
12191
  */
11785
- verifyCode(requestParameters, options) {
11786
- return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
12192
+ expireBookingWaitingPayments(options) {
12193
+ return localVarFp.expireBookingWaitingPayments(options).then((request) => request(axios, basePath));
12194
+ },
12195
+ /**
12196
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
12197
+ * @summary Expire les paiements en attente sur la waitlist
12198
+ * @param {*} [options] Override http request option.
12199
+ * @throws {RequiredError}
12200
+ */
12201
+ expireWaitlistPayments(options) {
12202
+ return localVarFp.expireWaitlistPayments(options).then((request) => request(axios, basePath));
12203
+ },
12204
+ /**
12205
+ * Route de santé pour vérifier que le service jobs est opérationnel
12206
+ * @summary Health check pour les jobs
12207
+ * @param {*} [options] Override http request option.
12208
+ * @throws {RequiredError}
12209
+ */
12210
+ health(options) {
12211
+ return localVarFp.health(options).then((request) => request(axios, basePath));
12212
+ },
12213
+ /**
12214
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
12215
+ * @summary Génère les créneaux futurs et nettoie les anciens
12216
+ * @param {*} [options] Override http request option.
12217
+ * @throws {RequiredError}
12218
+ */
12219
+ maintainSlots(options) {
12220
+ return localVarFp.maintainSlots(options).then((request) => request(axios, basePath));
12221
+ },
12222
+ /**
12223
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
12224
+ * @summary Libère les anciennes réservations terminées
12225
+ * @param {*} [options] Override http request option.
12226
+ * @throws {RequiredError}
12227
+ */
12228
+ releaseOldBookings(options) {
12229
+ return localVarFp.releaseOldBookings(options).then((request) => request(axios, basePath));
12230
+ },
12231
+ /**
12232
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12233
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
12234
+ * @param {*} [options] Override http request option.
12235
+ * @throws {RequiredError}
12236
+ */
12237
+ sendBookingReminders(options) {
12238
+ return localVarFp.sendBookingReminders(options).then((request) => request(axios, basePath));
11787
12239
  },
11788
12240
  };
11789
12241
  };
11790
12242
  /**
11791
- * PublicEmailApi - object-oriented interface
12243
+ * JobsApi - object-oriented interface
11792
12244
  * @export
11793
- * @class PublicEmailApi
12245
+ * @class JobsApi
11794
12246
  * @extends {BaseAPI}
11795
12247
  */
11796
- export class PublicEmailApi extends BaseAPI {
12248
+ export class JobsApi extends BaseAPI {
11797
12249
  /**
11798
- *
11799
- * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12250
+ * Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
12251
+ * @summary Capture les autorisations Stripe qui expirent dans moins de 4h
11800
12252
  * @param {*} [options] Override http request option.
11801
12253
  * @throws {RequiredError}
11802
- * @memberof PublicEmailApi
12254
+ * @memberof JobsApi
11803
12255
  */
11804
- authEmailExists(requestParameters, options) {
11805
- return PublicEmailApiFp(this.configuration).authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(this.axios, this.basePath));
12256
+ captureExpiringAuthorizations(options) {
12257
+ return JobsApiFp(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
11806
12258
  }
11807
12259
  /**
11808
- *
11809
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
12260
+ * Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
12261
+ * @summary Capture les paiements autorisés pour les réservations passées
11810
12262
  * @param {*} [options] Override http request option.
11811
12263
  * @throws {RequiredError}
11812
- * @memberof PublicEmailApi
12264
+ * @memberof JobsApi
11813
12265
  */
11814
- requestVerificationCode(requestParameters, options) {
11815
- return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
12266
+ capturePastReservations(options) {
12267
+ return JobsApiFp(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
11816
12268
  }
11817
12269
  /**
11818
- *
11819
- * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
12270
+ * Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
12271
+ * @summary Expire les réservations en attente de paiement
11820
12272
  * @param {*} [options] Override http request option.
11821
12273
  * @throws {RequiredError}
11822
- * @memberof PublicEmailApi
12274
+ * @memberof JobsApi
11823
12275
  */
11824
- verifyCode(requestParameters, options) {
11825
- return PublicEmailApiFp(this.configuration).verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
12276
+ expireBookingWaitingPayments(options) {
12277
+ return JobsApiFp(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
12278
+ }
12279
+ /**
12280
+ * Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
12281
+ * @summary Expire les paiements en attente sur la waitlist
12282
+ * @param {*} [options] Override http request option.
12283
+ * @throws {RequiredError}
12284
+ * @memberof JobsApi
12285
+ */
12286
+ expireWaitlistPayments(options) {
12287
+ return JobsApiFp(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
12288
+ }
12289
+ /**
12290
+ * Route de santé pour vérifier que le service jobs est opérationnel
12291
+ * @summary Health check pour les jobs
12292
+ * @param {*} [options] Override http request option.
12293
+ * @throws {RequiredError}
12294
+ * @memberof JobsApi
12295
+ */
12296
+ health(options) {
12297
+ return JobsApiFp(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
12298
+ }
12299
+ /**
12300
+ * Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
12301
+ * @summary Génère les créneaux futurs et nettoie les anciens
12302
+ * @param {*} [options] Override http request option.
12303
+ * @throws {RequiredError}
12304
+ * @memberof JobsApi
12305
+ */
12306
+ maintainSlots(options) {
12307
+ return JobsApiFp(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
12308
+ }
12309
+ /**
12310
+ * Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
12311
+ * @summary Libère les anciennes réservations terminées
12312
+ * @param {*} [options] Override http request option.
12313
+ * @throws {RequiredError}
12314
+ * @memberof JobsApi
12315
+ */
12316
+ releaseOldBookings(options) {
12317
+ return JobsApiFp(this.configuration).releaseOldBookings(options).then((request) => request(this.axios, this.basePath));
12318
+ }
12319
+ /**
12320
+ * Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
12321
+ * @summary Envoie des emails de rappel 24h avant les réservations et événements
12322
+ * @param {*} [options] Override http request option.
12323
+ * @throws {RequiredError}
12324
+ * @memberof JobsApi
12325
+ */
12326
+ sendBookingReminders(options) {
12327
+ return JobsApiFp(this.configuration).sendBookingReminders(options).then((request) => request(this.axios, this.basePath));
11826
12328
  }
11827
12329
  }
11828
12330
  /**
11829
- * SportsManagerApi - axios parameter creator
12331
+ * PublicEmailApi - axios parameter creator
11830
12332
  * @export
11831
12333
  */
11832
- export const SportsManagerApiAxiosParamCreator = function (configuration) {
12334
+ export const PublicEmailApiAxiosParamCreator = function (configuration) {
11833
12335
  return {
11834
12336
  /**
11835
- * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
11836
- * @param {CreateSportRequest} createSportRequest
12337
+ *
12338
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
11837
12339
  * @param {*} [options] Override http request option.
11838
12340
  * @throws {RequiredError}
11839
12341
  */
11840
- createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
11841
- // verify required parameter 'createSportRequest' is not null or undefined
11842
- assertParamExists('createSport', 'createSportRequest', createSportRequest);
11843
- const localVarPath = `/api/sports`;
12342
+ authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
12343
+ // verify required parameter 'emailExistsRequestBody' is not null or undefined
12344
+ assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
12345
+ const localVarPath = `/api/public-email/auth-email-exists`;
11844
12346
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11845
12347
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11846
12348
  let baseOptions;
@@ -11850,40 +12352,263 @@ export const SportsManagerApiAxiosParamCreator = function (configuration) {
11850
12352
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11851
12353
  const localVarHeaderParameter = {};
11852
12354
  const localVarQueryParameter = {};
11853
- // authentication bearerAuth required
11854
- // http bearer authentication required
11855
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11856
12355
  localVarHeaderParameter['Content-Type'] = 'application/json';
11857
12356
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11858
12357
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11859
12358
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11860
- localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration);
12359
+ localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
11861
12360
  return {
11862
12361
  url: toPathString(localVarUrlObj),
11863
12362
  options: localVarRequestOptions,
11864
12363
  };
11865
12364
  }),
11866
12365
  /**
11867
- * Supprime un sport (interdit si vérifié)
11868
- * @param {string} id
12366
+ *
12367
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
11869
12368
  * @param {*} [options] Override http request option.
11870
12369
  * @throws {RequiredError}
11871
12370
  */
11872
- deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
11873
- // verify required parameter 'id' is not null or undefined
11874
- assertParamExists('deleteSport', 'id', id);
11875
- const localVarPath = `/api/sports/{id}`
11876
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12371
+ requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
12372
+ // verify required parameter 'requestEmailCodeBody' is not null or undefined
12373
+ assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
12374
+ const localVarPath = `/api/public-email/request-verification-code`;
11877
12375
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11878
12376
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11879
12377
  let baseOptions;
11880
12378
  if (configuration) {
11881
12379
  baseOptions = configuration.baseOptions;
11882
12380
  }
11883
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12381
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11884
12382
  const localVarHeaderParameter = {};
11885
12383
  const localVarQueryParameter = {};
11886
- // authentication bearerAuth required
12384
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12385
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12386
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12387
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12388
+ localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
12389
+ return {
12390
+ url: toPathString(localVarUrlObj),
12391
+ options: localVarRequestOptions,
12392
+ };
12393
+ }),
12394
+ /**
12395
+ *
12396
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
12397
+ * @param {*} [options] Override http request option.
12398
+ * @throws {RequiredError}
12399
+ */
12400
+ verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
12401
+ // verify required parameter 'verifyEmailCodeBody' is not null or undefined
12402
+ assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
12403
+ const localVarPath = `/api/public-email/verify-code`;
12404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12405
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12406
+ let baseOptions;
12407
+ if (configuration) {
12408
+ baseOptions = configuration.baseOptions;
12409
+ }
12410
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12411
+ const localVarHeaderParameter = {};
12412
+ const localVarQueryParameter = {};
12413
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12414
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12415
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12416
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12417
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration);
12418
+ return {
12419
+ url: toPathString(localVarUrlObj),
12420
+ options: localVarRequestOptions,
12421
+ };
12422
+ }),
12423
+ };
12424
+ };
12425
+ /**
12426
+ * PublicEmailApi - functional programming interface
12427
+ * @export
12428
+ */
12429
+ export const PublicEmailApiFp = function (configuration) {
12430
+ const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration);
12431
+ return {
12432
+ /**
12433
+ *
12434
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
12435
+ * @param {*} [options] Override http request option.
12436
+ * @throws {RequiredError}
12437
+ */
12438
+ authEmailExists(emailExistsRequestBody, options) {
12439
+ return __awaiter(this, void 0, void 0, function* () {
12440
+ var _a, _b, _c;
12441
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
12442
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12443
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12444
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12445
+ });
12446
+ },
12447
+ /**
12448
+ *
12449
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
12450
+ * @param {*} [options] Override http request option.
12451
+ * @throws {RequiredError}
12452
+ */
12453
+ requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
12454
+ return __awaiter(this, void 0, void 0, function* () {
12455
+ var _a, _b, _c;
12456
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
12457
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12458
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12459
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12460
+ });
12461
+ },
12462
+ /**
12463
+ *
12464
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
12465
+ * @param {*} [options] Override http request option.
12466
+ * @throws {RequiredError}
12467
+ */
12468
+ verifyCode(verifyEmailCodeBody, options) {
12469
+ return __awaiter(this, void 0, void 0, function* () {
12470
+ var _a, _b, _c;
12471
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
12472
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12473
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12474
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12475
+ });
12476
+ },
12477
+ };
12478
+ };
12479
+ /**
12480
+ * PublicEmailApi - factory interface
12481
+ * @export
12482
+ */
12483
+ export const PublicEmailApiFactory = function (configuration, basePath, axios) {
12484
+ const localVarFp = PublicEmailApiFp(configuration);
12485
+ return {
12486
+ /**
12487
+ *
12488
+ * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12489
+ * @param {*} [options] Override http request option.
12490
+ * @throws {RequiredError}
12491
+ */
12492
+ authEmailExists(requestParameters, options) {
12493
+ return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
12494
+ },
12495
+ /**
12496
+ *
12497
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
12498
+ * @param {*} [options] Override http request option.
12499
+ * @throws {RequiredError}
12500
+ */
12501
+ requestPublicEmailVerificationCode(requestParameters, options) {
12502
+ return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
12503
+ },
12504
+ /**
12505
+ *
12506
+ * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
12507
+ * @param {*} [options] Override http request option.
12508
+ * @throws {RequiredError}
12509
+ */
12510
+ verifyCode(requestParameters, options) {
12511
+ return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
12512
+ },
12513
+ };
12514
+ };
12515
+ /**
12516
+ * PublicEmailApi - object-oriented interface
12517
+ * @export
12518
+ * @class PublicEmailApi
12519
+ * @extends {BaseAPI}
12520
+ */
12521
+ export class PublicEmailApi extends BaseAPI {
12522
+ /**
12523
+ *
12524
+ * @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
12525
+ * @param {*} [options] Override http request option.
12526
+ * @throws {RequiredError}
12527
+ * @memberof PublicEmailApi
12528
+ */
12529
+ authEmailExists(requestParameters, options) {
12530
+ return PublicEmailApiFp(this.configuration).authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(this.axios, this.basePath));
12531
+ }
12532
+ /**
12533
+ *
12534
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
12535
+ * @param {*} [options] Override http request option.
12536
+ * @throws {RequiredError}
12537
+ * @memberof PublicEmailApi
12538
+ */
12539
+ requestPublicEmailVerificationCode(requestParameters, options) {
12540
+ return PublicEmailApiFp(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
12541
+ }
12542
+ /**
12543
+ *
12544
+ * @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
12545
+ * @param {*} [options] Override http request option.
12546
+ * @throws {RequiredError}
12547
+ * @memberof PublicEmailApi
12548
+ */
12549
+ verifyCode(requestParameters, options) {
12550
+ return PublicEmailApiFp(this.configuration).verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
12551
+ }
12552
+ }
12553
+ /**
12554
+ * SportsManagerApi - axios parameter creator
12555
+ * @export
12556
+ */
12557
+ export const SportsManagerApiAxiosParamCreator = function (configuration) {
12558
+ return {
12559
+ /**
12560
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
12561
+ * @param {CreateSportRequest} createSportRequest
12562
+ * @param {*} [options] Override http request option.
12563
+ * @throws {RequiredError}
12564
+ */
12565
+ createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
12566
+ // verify required parameter 'createSportRequest' is not null or undefined
12567
+ assertParamExists('createSport', 'createSportRequest', createSportRequest);
12568
+ const localVarPath = `/api/sports`;
12569
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12570
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12571
+ let baseOptions;
12572
+ if (configuration) {
12573
+ baseOptions = configuration.baseOptions;
12574
+ }
12575
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12576
+ const localVarHeaderParameter = {};
12577
+ const localVarQueryParameter = {};
12578
+ // authentication bearerAuth required
12579
+ // http bearer authentication required
12580
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12581
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12582
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12583
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12584
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12585
+ localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration);
12586
+ return {
12587
+ url: toPathString(localVarUrlObj),
12588
+ options: localVarRequestOptions,
12589
+ };
12590
+ }),
12591
+ /**
12592
+ * Supprime un sport (interdit si vérifié)
12593
+ * @param {string} id
12594
+ * @param {*} [options] Override http request option.
12595
+ * @throws {RequiredError}
12596
+ */
12597
+ deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
12598
+ // verify required parameter 'id' is not null or undefined
12599
+ assertParamExists('deleteSport', 'id', id);
12600
+ const localVarPath = `/api/sports/{id}`
12601
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12604
+ let baseOptions;
12605
+ if (configuration) {
12606
+ baseOptions = configuration.baseOptions;
12607
+ }
12608
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12609
+ const localVarHeaderParameter = {};
12610
+ const localVarQueryParameter = {};
12611
+ // authentication bearerAuth required
11887
12612
  // http bearer authentication required
11888
12613
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11889
12614
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -12809,1090 +13534,193 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
12809
13534
  * @param {*} [options] Override http request option.
12810
13535
  * @throws {RequiredError}
12811
13536
  */
12812
- subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
12813
- // verify required parameter 'subscribeRequestBody' is not null or undefined
12814
- assertParamExists('subscribe', 'subscribeRequestBody', subscribeRequestBody);
12815
- const localVarPath = `/api/subscriptions/subscribe`;
12816
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12817
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12818
- let baseOptions;
12819
- if (configuration) {
12820
- baseOptions = configuration.baseOptions;
12821
- }
12822
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12823
- const localVarHeaderParameter = {};
12824
- const localVarQueryParameter = {};
12825
- // authentication bearerAuth required
12826
- // http bearer authentication required
12827
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12828
- localVarHeaderParameter['Content-Type'] = 'application/json';
12829
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12830
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12831
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12832
- localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
12833
- return {
12834
- url: toPathString(localVarUrlObj),
12835
- options: localVarRequestOptions,
12836
- };
12837
- }),
12838
- };
12839
- };
12840
- /**
12841
- * SubscriptionsUserApi - functional programming interface
12842
- * @export
12843
- */
12844
- export const SubscriptionsUserApiFp = function (configuration) {
12845
- const localVarAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator(configuration);
12846
- return {
12847
- /**
12848
- * Annuler un abonnement à la fin de la période (auth classique)
12849
- * @param {string} clubId
12850
- * @param {string} subscriptionId
12851
- * @param {*} [options] Override http request option.
12852
- * @throws {RequiredError}
12853
- */
12854
- cancel(clubId, subscriptionId, options) {
12855
- return __awaiter(this, void 0, void 0, function* () {
12856
- var _a, _b, _c;
12857
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
12858
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12859
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12860
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12861
- });
12862
- },
12863
- /**
12864
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
12865
- * @param {*} [options] Override http request option.
12866
- * @throws {RequiredError}
12867
- */
12868
- mySubscriptions(options) {
12869
- return __awaiter(this, void 0, void 0, function* () {
12870
- var _a, _b, _c;
12871
- const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
12872
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12873
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12874
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12875
- });
12876
- },
12877
- /**
12878
- * Reprendre un abonnement annulé en fin de période (auth classique)
12879
- * @param {string} clubId
12880
- * @param {string} subscriptionId
12881
- * @param {*} [options] Override http request option.
12882
- * @throws {RequiredError}
12883
- */
12884
- resume(clubId, subscriptionId, options) {
12885
- return __awaiter(this, void 0, void 0, function* () {
12886
- var _a, _b, _c;
12887
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
12888
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12889
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12890
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12891
- });
12892
- },
12893
- /**
12894
- * S\'abonner à un plan (auth classique)
12895
- * @param {SubscribeRequestBody} subscribeRequestBody
12896
- * @param {*} [options] Override http request option.
12897
- * @throws {RequiredError}
12898
- */
12899
- subscribe(subscribeRequestBody, options) {
12900
- return __awaiter(this, void 0, void 0, function* () {
12901
- var _a, _b, _c;
12902
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
12903
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12904
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12905
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12906
- });
12907
- },
12908
- };
12909
- };
12910
- /**
12911
- * SubscriptionsUserApi - factory interface
12912
- * @export
12913
- */
12914
- export const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
12915
- const localVarFp = SubscriptionsUserApiFp(configuration);
12916
- return {
12917
- /**
12918
- * Annuler un abonnement à la fin de la période (auth classique)
12919
- * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
12920
- * @param {*} [options] Override http request option.
12921
- * @throws {RequiredError}
12922
- */
12923
- cancel(requestParameters, options) {
12924
- return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
12925
- },
12926
- /**
12927
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
12928
- * @param {*} [options] Override http request option.
12929
- * @throws {RequiredError}
12930
- */
12931
- mySubscriptions(options) {
12932
- return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
12933
- },
12934
- /**
12935
- * Reprendre un abonnement annulé en fin de période (auth classique)
12936
- * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
12937
- * @param {*} [options] Override http request option.
12938
- * @throws {RequiredError}
12939
- */
12940
- resume(requestParameters, options) {
12941
- return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
12942
- },
12943
- /**
12944
- * S\'abonner à un plan (auth classique)
12945
- * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
12946
- * @param {*} [options] Override http request option.
12947
- * @throws {RequiredError}
12948
- */
12949
- subscribe(requestParameters, options) {
12950
- return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
12951
- },
12952
- };
12953
- };
12954
- /**
12955
- * SubscriptionsUserApi - object-oriented interface
12956
- * @export
12957
- * @class SubscriptionsUserApi
12958
- * @extends {BaseAPI}
12959
- */
12960
- export class SubscriptionsUserApi extends BaseAPI {
12961
- /**
12962
- * Annuler un abonnement à la fin de la période (auth classique)
12963
- * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
12964
- * @param {*} [options] Override http request option.
12965
- * @throws {RequiredError}
12966
- * @memberof SubscriptionsUserApi
12967
- */
12968
- cancel(requestParameters, options) {
12969
- return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
12970
- }
12971
- /**
12972
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
12973
- * @param {*} [options] Override http request option.
12974
- * @throws {RequiredError}
12975
- * @memberof SubscriptionsUserApi
12976
- */
12977
- mySubscriptions(options) {
12978
- return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
12979
- }
12980
- /**
12981
- * Reprendre un abonnement annulé en fin de période (auth classique)
12982
- * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
12983
- * @param {*} [options] Override http request option.
12984
- * @throws {RequiredError}
12985
- * @memberof SubscriptionsUserApi
12986
- */
12987
- resume(requestParameters, options) {
12988
- return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
12989
- }
12990
- /**
12991
- * S\'abonner à un plan (auth classique)
12992
- * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
12993
- * @param {*} [options] Override http request option.
12994
- * @throws {RequiredError}
12995
- * @memberof SubscriptionsUserApi
12996
- */
12997
- subscribe(requestParameters, options) {
12998
- return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
12999
- }
13000
- }
13001
- /**
13002
- * SumUpApi - axios parameter creator
13003
- * @export
13004
- */
13005
- export const SumUpApiAxiosParamCreator = function (configuration) {
13006
- return {
13007
- /**
13008
- * OAuth callback for SumUp.
13009
- * @param {string} code
13010
- * @param {string} state
13011
- * @param {*} [options] Override http request option.
13012
- * @throws {RequiredError}
13013
- */
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
- * Pair a SumUp reader with a club.
13114
- * @param {string} clubId
13115
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13116
- * @param {*} [options] Override http request option.
13117
- * @throws {RequiredError}
13118
- */
13119
- createSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
13120
- // verify required parameter 'clubId' is not null or undefined
13121
- assertParamExists('createSumupReader', 'clubId', clubId);
13122
- // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13123
- assertParamExists('createSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13124
- const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13125
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13126
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13127
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13128
- let baseOptions;
13129
- if (configuration) {
13130
- baseOptions = configuration.baseOptions;
13131
- }
13132
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13133
- const localVarHeaderParameter = {};
13134
- const localVarQueryParameter = {};
13135
- // authentication bearerAuth required
13136
- // http bearer authentication required
13137
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13138
- localVarHeaderParameter['Content-Type'] = 'application/json';
13139
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13140
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13141
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13142
- localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13143
- return {
13144
- url: toPathString(localVarUrlObj),
13145
- options: localVarRequestOptions,
13146
- };
13147
- }),
13148
- /**
13149
- * Delete a SumUp reader.
13150
- * @param {string} clubId
13151
- * @param {string} readerId
13152
- * @param {*} [options] Override http request option.
13153
- * @throws {RequiredError}
13154
- */
13155
- deleteSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13156
- // verify required parameter 'clubId' is not null or undefined
13157
- assertParamExists('deleteSumupReader', 'clubId', clubId);
13158
- // verify required parameter 'readerId' is not null or undefined
13159
- assertParamExists('deleteSumupReader', 'readerId', readerId);
13160
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
13161
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13162
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13163
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13164
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13165
- let baseOptions;
13166
- if (configuration) {
13167
- baseOptions = configuration.baseOptions;
13168
- }
13169
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
13170
- const localVarHeaderParameter = {};
13171
- const localVarQueryParameter = {};
13172
- // authentication bearerAuth required
13173
- // http bearer authentication required
13174
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13175
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13176
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13177
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13178
- return {
13179
- url: toPathString(localVarUrlObj),
13180
- options: localVarRequestOptions,
13181
- };
13182
- }),
13183
- /**
13184
- * Disconnect SumUp account for a club.
13185
- * @param {string} clubId
13186
- * @param {*} [options] Override http request option.
13187
- * @throws {RequiredError}
13188
- */
13189
- disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13190
- // verify required parameter 'clubId' is not null or undefined
13191
- assertParamExists('disconnectSumup', 'clubId', clubId);
13192
- const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
13193
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13194
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13195
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13196
- let baseOptions;
13197
- if (configuration) {
13198
- baseOptions = configuration.baseOptions;
13199
- }
13200
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13201
- const localVarHeaderParameter = {};
13202
- const localVarQueryParameter = {};
13203
- // authentication bearerAuth required
13204
- // http bearer authentication required
13205
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13206
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13207
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13208
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13209
- return {
13210
- url: toPathString(localVarUrlObj),
13211
- options: localVarRequestOptions,
13212
- };
13213
- }),
13214
- /**
13215
- * Start SumUp OAuth connection for a club.
13216
- * @param {string} clubId
13217
- * @param {*} [options] Override http request option.
13218
- * @throws {RequiredError}
13219
- */
13220
- getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13221
- // verify required parameter 'clubId' is not null or undefined
13222
- assertParamExists('getSumupConnectUrl', 'clubId', clubId);
13223
- const localVarPath = `/api/clubs/{clubId}/sumup/connect`
13224
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13225
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13226
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13227
- let baseOptions;
13228
- if (configuration) {
13229
- baseOptions = configuration.baseOptions;
13230
- }
13231
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13232
- const localVarHeaderParameter = {};
13233
- const localVarQueryParameter = {};
13234
- // authentication bearerAuth required
13235
- // http bearer authentication required
13236
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13237
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13238
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13239
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13240
- return {
13241
- url: toPathString(localVarUrlObj),
13242
- options: localVarRequestOptions,
13243
- };
13244
- }),
13245
- /**
13246
- * Retrieve a SumUp reader.
13247
- * @param {string} clubId
13248
- * @param {string} readerId
13249
- * @param {*} [options] Override http request option.
13250
- * @throws {RequiredError}
13251
- */
13252
- getSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13253
- // verify required parameter 'clubId' is not null or undefined
13254
- assertParamExists('getSumupReader', 'clubId', clubId);
13255
- // verify required parameter 'readerId' is not null or undefined
13256
- assertParamExists('getSumupReader', 'readerId', readerId);
13257
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
13258
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13259
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13260
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13261
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13262
- let baseOptions;
13263
- if (configuration) {
13264
- baseOptions = configuration.baseOptions;
13265
- }
13266
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13267
- const localVarHeaderParameter = {};
13268
- const localVarQueryParameter = {};
13269
- // authentication bearerAuth required
13270
- // http bearer authentication required
13271
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13272
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13273
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13274
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13275
- return {
13276
- url: toPathString(localVarUrlObj),
13277
- options: localVarRequestOptions,
13278
- };
13279
- }),
13280
- /**
13281
- * Get SumUp reader status.
13282
- * @param {string} clubId
13283
- * @param {string} readerId
13284
- * @param {*} [options] Override http request option.
13285
- * @throws {RequiredError}
13286
- */
13287
- getSumupReaderStatus: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13288
- // verify required parameter 'clubId' is not null or undefined
13289
- assertParamExists('getSumupReaderStatus', 'clubId', clubId);
13290
- // verify required parameter 'readerId' is not null or undefined
13291
- assertParamExists('getSumupReaderStatus', 'readerId', readerId);
13292
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/status`
13293
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13294
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13295
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13296
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13297
- let baseOptions;
13298
- if (configuration) {
13299
- baseOptions = configuration.baseOptions;
13300
- }
13301
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13302
- const localVarHeaderParameter = {};
13303
- const localVarQueryParameter = {};
13304
- // authentication bearerAuth required
13305
- // http bearer authentication required
13306
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13307
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13308
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13309
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13310
- return {
13311
- url: toPathString(localVarUrlObj),
13312
- options: localVarRequestOptions,
13313
- };
13314
- }),
13315
- /**
13316
- * Get SumUp connection status for a club.
13317
- * @param {string} clubId
13318
- * @param {*} [options] Override http request option.
13319
- * @throws {RequiredError}
13320
- */
13321
- getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13322
- // verify required parameter 'clubId' is not null or undefined
13323
- assertParamExists('getSumupStatus', 'clubId', clubId);
13324
- const localVarPath = `/api/clubs/{clubId}/sumup/status`
13325
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13326
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13327
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13328
- let baseOptions;
13329
- if (configuration) {
13330
- baseOptions = configuration.baseOptions;
13331
- }
13332
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13333
- const localVarHeaderParameter = {};
13334
- const localVarQueryParameter = {};
13335
- // authentication bearerAuth required
13336
- // http bearer authentication required
13337
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13338
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13339
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13340
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13341
- return {
13342
- url: toPathString(localVarUrlObj),
13343
- options: localVarRequestOptions,
13344
- };
13345
- }),
13346
- /**
13347
- * List SumUp readers for a club.
13348
- * @param {string} clubId
13349
- * @param {*} [options] Override http request option.
13350
- * @throws {RequiredError}
13351
- */
13352
- listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13353
- // verify required parameter 'clubId' is not null or undefined
13354
- assertParamExists('listSumupReaders', 'clubId', clubId);
13355
- const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13356
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13357
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13358
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13359
- let baseOptions;
13360
- if (configuration) {
13361
- baseOptions = configuration.baseOptions;
13362
- }
13363
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13364
- const localVarHeaderParameter = {};
13365
- const localVarQueryParameter = {};
13366
- // authentication bearerAuth required
13367
- // http bearer authentication required
13368
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13369
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13370
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13371
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13372
- return {
13373
- url: toPathString(localVarUrlObj),
13374
- options: localVarRequestOptions,
13375
- };
13376
- }),
13377
- /**
13378
- * Pair a SumUp reader with a club.
13379
- * @param {string} clubId
13380
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13381
- * @param {*} [options] Override http request option.
13382
- * @throws {RequiredError}
13383
- */
13384
- pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
13385
- // verify required parameter 'clubId' is not null or undefined
13386
- assertParamExists('pairSumupReader', 'clubId', clubId);
13387
- // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13388
- assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13389
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
13390
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13391
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13392
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13393
- let baseOptions;
13394
- if (configuration) {
13395
- baseOptions = configuration.baseOptions;
13396
- }
13397
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13398
- const localVarHeaderParameter = {};
13399
- const localVarQueryParameter = {};
13400
- // authentication bearerAuth required
13401
- // http bearer authentication required
13402
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13403
- localVarHeaderParameter['Content-Type'] = 'application/json';
13404
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13405
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13406
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13407
- localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13408
- return {
13409
- url: toPathString(localVarUrlObj),
13410
- options: localVarRequestOptions,
13411
- };
13412
- }),
13413
- /**
13414
- * Select a SumUp reader for a club.
13415
- * @param {string} clubId
13416
- * @param {string} readerId
13417
- * @param {*} [options] Override http request option.
13418
- * @throws {RequiredError}
13419
- */
13420
- selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13421
- // verify required parameter 'clubId' is not null or undefined
13422
- assertParamExists('selectSumupReader', 'clubId', clubId);
13423
- // verify required parameter 'readerId' is not null or undefined
13424
- assertParamExists('selectSumupReader', 'readerId', readerId);
13425
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
13426
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13427
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13428
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13429
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13430
- let baseOptions;
13431
- if (configuration) {
13432
- baseOptions = configuration.baseOptions;
13433
- }
13434
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13435
- const localVarHeaderParameter = {};
13436
- const localVarQueryParameter = {};
13437
- // authentication bearerAuth required
13438
- // http bearer authentication required
13439
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13440
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13441
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13442
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13443
- return {
13444
- url: toPathString(localVarUrlObj),
13445
- options: localVarRequestOptions,
13446
- };
13447
- }),
13448
- /**
13449
- * Update a SumUp reader.
13450
- * @param {string} clubId
13451
- * @param {string} readerId
13452
- * @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
13453
- * @param {*} [options] Override http request option.
13454
- * @throws {RequiredError}
13455
- */
13456
- updateSumupReader: (clubId_1, readerId_1, sumupUpdateReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, sumupUpdateReaderRequest_1, ...args_1], void 0, function* (clubId, readerId, sumupUpdateReaderRequest, options = {}) {
13457
- // verify required parameter 'clubId' is not null or undefined
13458
- assertParamExists('updateSumupReader', 'clubId', clubId);
13459
- // verify required parameter 'readerId' is not null or undefined
13460
- assertParamExists('updateSumupReader', 'readerId', readerId);
13461
- // verify required parameter 'sumupUpdateReaderRequest' is not null or undefined
13462
- assertParamExists('updateSumupReader', 'sumupUpdateReaderRequest', sumupUpdateReaderRequest);
13463
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
13464
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13465
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13466
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13467
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13468
- let baseOptions;
13469
- if (configuration) {
13470
- baseOptions = configuration.baseOptions;
13471
- }
13472
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
13473
- const localVarHeaderParameter = {};
13474
- const localVarQueryParameter = {};
13475
- // authentication bearerAuth required
13476
- // http bearer authentication required
13477
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13478
- localVarHeaderParameter['Content-Type'] = 'application/json';
13479
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13480
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13481
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13482
- localVarRequestOptions.data = serializeDataIfNeeded(sumupUpdateReaderRequest, localVarRequestOptions, configuration);
13483
- return {
13484
- url: toPathString(localVarUrlObj),
13485
- options: localVarRequestOptions,
13486
- };
13487
- }),
13488
- };
13489
- };
13490
- /**
13491
- * SumUpManagerApi - functional programming interface
13492
- * @export
13493
- */
13494
- export const SumUpManagerApiFp = function (configuration) {
13495
- const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration);
13496
- return {
13497
- /**
13498
- * Pair a SumUp reader with a club.
13499
- * @param {string} clubId
13500
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13501
- * @param {*} [options] Override http request option.
13502
- * @throws {RequiredError}
13503
- */
13504
- createSumupReader(clubId, sumupPairReaderRequest, options) {
13505
- return __awaiter(this, void 0, void 0, function* () {
13506
- var _a, _b, _c;
13507
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupReader(clubId, sumupPairReaderRequest, options);
13508
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13509
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.createSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13510
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13511
- });
13512
- },
13513
- /**
13514
- * Delete a SumUp reader.
13515
- * @param {string} clubId
13516
- * @param {string} readerId
13517
- * @param {*} [options] Override http request option.
13518
- * @throws {RequiredError}
13519
- */
13520
- deleteSumupReader(clubId, readerId, options) {
13521
- return __awaiter(this, void 0, void 0, function* () {
13522
- var _a, _b, _c;
13523
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSumupReader(clubId, readerId, options);
13524
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13525
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.deleteSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13526
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13527
- });
13528
- },
13529
- /**
13530
- * Disconnect SumUp account for a club.
13531
- * @param {string} clubId
13532
- * @param {*} [options] Override http request option.
13533
- * @throws {RequiredError}
13534
- */
13535
- disconnectSumup(clubId, options) {
13536
- return __awaiter(this, void 0, void 0, function* () {
13537
- var _a, _b, _c;
13538
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
13539
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13540
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13541
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13542
- });
13543
- },
13544
- /**
13545
- * Start SumUp OAuth connection for a club.
13546
- * @param {string} clubId
13547
- * @param {*} [options] Override http request option.
13548
- * @throws {RequiredError}
13549
- */
13550
- getSumupConnectUrl(clubId, options) {
13551
- return __awaiter(this, void 0, void 0, function* () {
13552
- var _a, _b, _c;
13553
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
13554
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13555
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13556
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13557
- });
13558
- },
13559
- /**
13560
- * Retrieve a SumUp reader.
13561
- * @param {string} clubId
13562
- * @param {string} readerId
13563
- * @param {*} [options] Override http request option.
13564
- * @throws {RequiredError}
13565
- */
13566
- getSumupReader(clubId, readerId, options) {
13567
- return __awaiter(this, void 0, void 0, function* () {
13568
- var _a, _b, _c;
13569
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupReader(clubId, readerId, options);
13570
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13571
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13572
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13573
- });
13574
- },
13575
- /**
13576
- * Get SumUp reader status.
13577
- * @param {string} clubId
13578
- * @param {string} readerId
13579
- * @param {*} [options] Override http request option.
13580
- * @throws {RequiredError}
13581
- */
13582
- getSumupReaderStatus(clubId, readerId, options) {
13583
- return __awaiter(this, void 0, void 0, function* () {
13584
- var _a, _b, _c;
13585
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupReaderStatus(clubId, readerId, options);
13586
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13587
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupReaderStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13588
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13589
- });
13590
- },
13591
- /**
13592
- * Get SumUp connection status for a club.
13593
- * @param {string} clubId
13594
- * @param {*} [options] Override http request option.
13595
- * @throws {RequiredError}
13596
- */
13597
- getSumupStatus(clubId, options) {
13598
- return __awaiter(this, void 0, void 0, function* () {
13599
- var _a, _b, _c;
13600
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
13601
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13602
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13603
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13604
- });
13605
- },
13537
+ subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
13538
+ // verify required parameter 'subscribeRequestBody' is not null or undefined
13539
+ assertParamExists('subscribe', 'subscribeRequestBody', subscribeRequestBody);
13540
+ const localVarPath = `/api/subscriptions/subscribe`;
13541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13542
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13543
+ let baseOptions;
13544
+ if (configuration) {
13545
+ baseOptions = configuration.baseOptions;
13546
+ }
13547
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13548
+ const localVarHeaderParameter = {};
13549
+ const localVarQueryParameter = {};
13550
+ // authentication bearerAuth required
13551
+ // http bearer authentication required
13552
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13553
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13554
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13556
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13557
+ localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
13558
+ return {
13559
+ url: toPathString(localVarUrlObj),
13560
+ options: localVarRequestOptions,
13561
+ };
13562
+ }),
13563
+ };
13564
+ };
13565
+ /**
13566
+ * SubscriptionsUserApi - functional programming interface
13567
+ * @export
13568
+ */
13569
+ export const SubscriptionsUserApiFp = function (configuration) {
13570
+ const localVarAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator(configuration);
13571
+ return {
13606
13572
  /**
13607
- * List SumUp readers for a club.
13573
+ * Annuler un abonnement à la fin de la période (auth classique)
13608
13574
  * @param {string} clubId
13575
+ * @param {string} subscriptionId
13609
13576
  * @param {*} [options] Override http request option.
13610
13577
  * @throws {RequiredError}
13611
13578
  */
13612
- listSumupReaders(clubId, options) {
13579
+ cancel(clubId, subscriptionId, options) {
13613
13580
  return __awaiter(this, void 0, void 0, function* () {
13614
13581
  var _a, _b, _c;
13615
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
13582
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
13616
13583
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13617
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13584
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13618
13585
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13619
13586
  });
13620
13587
  },
13621
13588
  /**
13622
- * Pair a SumUp reader with a club.
13623
- * @param {string} clubId
13624
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13589
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13625
13590
  * @param {*} [options] Override http request option.
13626
13591
  * @throws {RequiredError}
13627
13592
  */
13628
- pairSumupReader(clubId, sumupPairReaderRequest, options) {
13593
+ mySubscriptions(options) {
13629
13594
  return __awaiter(this, void 0, void 0, function* () {
13630
13595
  var _a, _b, _c;
13631
- const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
13596
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
13632
13597
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13633
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13598
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13634
13599
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13635
13600
  });
13636
13601
  },
13637
13602
  /**
13638
- * Select a SumUp reader for a club.
13603
+ * Reprendre un abonnement annulé en fin de période (auth classique)
13639
13604
  * @param {string} clubId
13640
- * @param {string} readerId
13605
+ * @param {string} subscriptionId
13641
13606
  * @param {*} [options] Override http request option.
13642
13607
  * @throws {RequiredError}
13643
13608
  */
13644
- selectSumupReader(clubId, readerId, options) {
13609
+ resume(clubId, subscriptionId, options) {
13645
13610
  return __awaiter(this, void 0, void 0, function* () {
13646
13611
  var _a, _b, _c;
13647
- const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
13612
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
13648
13613
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13649
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13614
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13650
13615
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13651
13616
  });
13652
13617
  },
13653
13618
  /**
13654
- * Update a SumUp reader.
13655
- * @param {string} clubId
13656
- * @param {string} readerId
13657
- * @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
13619
+ * S\'abonner à un plan (auth classique)
13620
+ * @param {SubscribeRequestBody} subscribeRequestBody
13658
13621
  * @param {*} [options] Override http request option.
13659
13622
  * @throws {RequiredError}
13660
13623
  */
13661
- updateSumupReader(clubId, readerId, sumupUpdateReaderRequest, options) {
13624
+ subscribe(subscribeRequestBody, options) {
13662
13625
  return __awaiter(this, void 0, void 0, function* () {
13663
13626
  var _a, _b, _c;
13664
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSumupReader(clubId, readerId, sumupUpdateReaderRequest, options);
13627
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
13665
13628
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13666
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.updateSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13629
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13667
13630
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13668
13631
  });
13669
13632
  },
13670
13633
  };
13671
13634
  };
13672
13635
  /**
13673
- * SumUpManagerApi - factory interface
13636
+ * SubscriptionsUserApi - factory interface
13674
13637
  * @export
13675
13638
  */
13676
- export const SumUpManagerApiFactory = function (configuration, basePath, axios) {
13677
- const localVarFp = SumUpManagerApiFp(configuration);
13639
+ export const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
13640
+ const localVarFp = SubscriptionsUserApiFp(configuration);
13678
13641
  return {
13679
13642
  /**
13680
- * Pair a SumUp reader with a club.
13681
- * @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
13682
- * @param {*} [options] Override http request option.
13683
- * @throws {RequiredError}
13684
- */
13685
- createSumupReader(requestParameters, options) {
13686
- return localVarFp.createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
13687
- },
13688
- /**
13689
- * Delete a SumUp reader.
13690
- * @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
13691
- * @param {*} [options] Override http request option.
13692
- * @throws {RequiredError}
13693
- */
13694
- deleteSumupReader(requestParameters, options) {
13695
- return localVarFp.deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13696
- },
13697
- /**
13698
- * Disconnect SumUp account for a club.
13699
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13700
- * @param {*} [options] Override http request option.
13701
- * @throws {RequiredError}
13702
- */
13703
- disconnectSumup(requestParameters, options) {
13704
- return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
13705
- },
13706
- /**
13707
- * Start SumUp OAuth connection for a club.
13708
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13709
- * @param {*} [options] Override http request option.
13710
- * @throws {RequiredError}
13711
- */
13712
- getSumupConnectUrl(requestParameters, options) {
13713
- return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
13714
- },
13715
- /**
13716
- * Retrieve a SumUp reader.
13717
- * @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
13718
- * @param {*} [options] Override http request option.
13719
- * @throws {RequiredError}
13720
- */
13721
- getSumupReader(requestParameters, options) {
13722
- return localVarFp.getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13723
- },
13724
- /**
13725
- * Get SumUp reader status.
13726
- * @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
13727
- * @param {*} [options] Override http request option.
13728
- * @throws {RequiredError}
13729
- */
13730
- getSumupReaderStatus(requestParameters, options) {
13731
- return localVarFp.getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13732
- },
13733
- /**
13734
- * Get SumUp connection status for a club.
13735
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13736
- * @param {*} [options] Override http request option.
13737
- * @throws {RequiredError}
13738
- */
13739
- getSumupStatus(requestParameters, options) {
13740
- return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
13741
- },
13742
- /**
13743
- * List SumUp readers for a club.
13744
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13643
+ * Annuler un abonnement à la fin de la période (auth classique)
13644
+ * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
13745
13645
  * @param {*} [options] Override http request option.
13746
13646
  * @throws {RequiredError}
13747
13647
  */
13748
- listSumupReaders(requestParameters, options) {
13749
- return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
13648
+ cancel(requestParameters, options) {
13649
+ return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
13750
13650
  },
13751
13651
  /**
13752
- * Pair a SumUp reader with a club.
13753
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13652
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13754
13653
  * @param {*} [options] Override http request option.
13755
13654
  * @throws {RequiredError}
13756
13655
  */
13757
- pairSumupReader(requestParameters, options) {
13758
- return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
13656
+ mySubscriptions(options) {
13657
+ return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
13759
13658
  },
13760
13659
  /**
13761
- * Select a SumUp reader for a club.
13762
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13660
+ * Reprendre un abonnement annulé en fin de période (auth classique)
13661
+ * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
13763
13662
  * @param {*} [options] Override http request option.
13764
13663
  * @throws {RequiredError}
13765
13664
  */
13766
- selectSumupReader(requestParameters, options) {
13767
- return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13665
+ resume(requestParameters, options) {
13666
+ return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
13768
13667
  },
13769
13668
  /**
13770
- * Update a SumUp reader.
13771
- * @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
13669
+ * S\'abonner à un plan (auth classique)
13670
+ * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
13772
13671
  * @param {*} [options] Override http request option.
13773
13672
  * @throws {RequiredError}
13774
13673
  */
13775
- updateSumupReader(requestParameters, options) {
13776
- return localVarFp.updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(axios, basePath));
13674
+ subscribe(requestParameters, options) {
13675
+ return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
13777
13676
  },
13778
13677
  };
13779
13678
  };
13780
13679
  /**
13781
- * SumUpManagerApi - object-oriented interface
13680
+ * SubscriptionsUserApi - object-oriented interface
13782
13681
  * @export
13783
- * @class SumUpManagerApi
13682
+ * @class SubscriptionsUserApi
13784
13683
  * @extends {BaseAPI}
13785
13684
  */
13786
- export class SumUpManagerApi extends BaseAPI {
13787
- /**
13788
- * Pair a SumUp reader with a club.
13789
- * @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
13790
- * @param {*} [options] Override http request option.
13791
- * @throws {RequiredError}
13792
- * @memberof SumUpManagerApi
13793
- */
13794
- createSumupReader(requestParameters, options) {
13795
- return SumUpManagerApiFp(this.configuration).createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
13796
- }
13797
- /**
13798
- * Delete a SumUp reader.
13799
- * @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
13800
- * @param {*} [options] Override http request option.
13801
- * @throws {RequiredError}
13802
- * @memberof SumUpManagerApi
13803
- */
13804
- deleteSumupReader(requestParameters, options) {
13805
- return SumUpManagerApiFp(this.configuration).deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13806
- }
13807
- /**
13808
- * Disconnect SumUp account for a club.
13809
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13810
- * @param {*} [options] Override http request option.
13811
- * @throws {RequiredError}
13812
- * @memberof SumUpManagerApi
13813
- */
13814
- disconnectSumup(requestParameters, options) {
13815
- return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13816
- }
13817
- /**
13818
- * Start SumUp OAuth connection for a club.
13819
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13820
- * @param {*} [options] Override http request option.
13821
- * @throws {RequiredError}
13822
- * @memberof SumUpManagerApi
13823
- */
13824
- getSumupConnectUrl(requestParameters, options) {
13825
- return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13826
- }
13827
- /**
13828
- * Retrieve a SumUp reader.
13829
- * @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
13830
- * @param {*} [options] Override http request option.
13831
- * @throws {RequiredError}
13832
- * @memberof SumUpManagerApi
13833
- */
13834
- getSumupReader(requestParameters, options) {
13835
- return SumUpManagerApiFp(this.configuration).getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13836
- }
13837
- /**
13838
- * Get SumUp reader status.
13839
- * @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
13840
- * @param {*} [options] Override http request option.
13841
- * @throws {RequiredError}
13842
- * @memberof SumUpManagerApi
13843
- */
13844
- getSumupReaderStatus(requestParameters, options) {
13845
- return SumUpManagerApiFp(this.configuration).getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13846
- }
13847
- /**
13848
- * Get SumUp connection status for a club.
13849
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13850
- * @param {*} [options] Override http request option.
13851
- * @throws {RequiredError}
13852
- * @memberof SumUpManagerApi
13853
- */
13854
- getSumupStatus(requestParameters, options) {
13855
- return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13856
- }
13685
+ export class SubscriptionsUserApi extends BaseAPI {
13857
13686
  /**
13858
- * List SumUp readers for a club.
13859
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13687
+ * Annuler un abonnement à la fin de la période (auth classique)
13688
+ * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
13860
13689
  * @param {*} [options] Override http request option.
13861
13690
  * @throws {RequiredError}
13862
- * @memberof SumUpManagerApi
13691
+ * @memberof SubscriptionsUserApi
13863
13692
  */
13864
- listSumupReaders(requestParameters, options) {
13865
- return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13693
+ cancel(requestParameters, options) {
13694
+ return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
13866
13695
  }
13867
13696
  /**
13868
- * Pair a SumUp reader with a club.
13869
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13697
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
13870
13698
  * @param {*} [options] Override http request option.
13871
13699
  * @throws {RequiredError}
13872
- * @memberof SumUpManagerApi
13700
+ * @memberof SubscriptionsUserApi
13873
13701
  */
13874
- pairSumupReader(requestParameters, options) {
13875
- return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
13702
+ mySubscriptions(options) {
13703
+ return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
13876
13704
  }
13877
13705
  /**
13878
- * Select a SumUp reader for a club.
13879
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13706
+ * Reprendre un abonnement annulé en fin de période (auth classique)
13707
+ * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
13880
13708
  * @param {*} [options] Override http request option.
13881
13709
  * @throws {RequiredError}
13882
- * @memberof SumUpManagerApi
13710
+ * @memberof SubscriptionsUserApi
13883
13711
  */
13884
- selectSumupReader(requestParameters, options) {
13885
- return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13712
+ resume(requestParameters, options) {
13713
+ return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
13886
13714
  }
13887
13715
  /**
13888
- * Update a SumUp reader.
13889
- * @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
13716
+ * S\'abonner à un plan (auth classique)
13717
+ * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
13890
13718
  * @param {*} [options] Override http request option.
13891
13719
  * @throws {RequiredError}
13892
- * @memberof SumUpManagerApi
13720
+ * @memberof SubscriptionsUserApi
13893
13721
  */
13894
- updateSumupReader(requestParameters, options) {
13895
- return SumUpManagerApiFp(this.configuration).updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(this.axios, this.basePath));
13722
+ subscribe(requestParameters, options) {
13723
+ return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
13896
13724
  }
13897
13725
  }
13898
13726
  /**
@@ -14629,6 +14457,47 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14629
14457
  options: localVarRequestOptions,
14630
14458
  };
14631
14459
  }),
14460
+ /**
14461
+ *
14462
+ * @param {number} [limit]
14463
+ * @param {number} [skip]
14464
+ * @param {any} [includeRead]
14465
+ * @param {*} [options] Override http request option.
14466
+ * @throws {RequiredError}
14467
+ */
14468
+ 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 = {}) {
14469
+ const localVarPath = `/api/users/me/notifications`;
14470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14472
+ let baseOptions;
14473
+ if (configuration) {
14474
+ baseOptions = configuration.baseOptions;
14475
+ }
14476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14477
+ const localVarHeaderParameter = {};
14478
+ const localVarQueryParameter = {};
14479
+ // authentication bearerAuth required
14480
+ // http bearer authentication required
14481
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14482
+ if (limit !== undefined) {
14483
+ localVarQueryParameter['limit'] = limit;
14484
+ }
14485
+ if (skip !== undefined) {
14486
+ localVarQueryParameter['skip'] = skip;
14487
+ }
14488
+ if (includeRead !== undefined) {
14489
+ for (const [key, value] of Object.entries(includeRead)) {
14490
+ localVarQueryParameter[key] = value;
14491
+ }
14492
+ }
14493
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14495
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14496
+ return {
14497
+ url: toPathString(localVarUrlObj),
14498
+ options: localVarRequestOptions,
14499
+ };
14500
+ }),
14632
14501
  /**
14633
14502
  *
14634
14503
  * @param {string} id
@@ -14816,6 +14685,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14816
14685
  options: localVarRequestOptions,
14817
14686
  };
14818
14687
  }),
14688
+ /**
14689
+ *
14690
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
14691
+ * @param {*} [options] Override http request option.
14692
+ * @throws {RequiredError}
14693
+ */
14694
+ markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
14695
+ // verify required parameter 'markNotificationsReadRequest' is not null or undefined
14696
+ assertParamExists('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
14697
+ const localVarPath = `/api/users/me/notifications/read`;
14698
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14699
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14700
+ let baseOptions;
14701
+ if (configuration) {
14702
+ baseOptions = configuration.baseOptions;
14703
+ }
14704
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14705
+ const localVarHeaderParameter = {};
14706
+ const localVarQueryParameter = {};
14707
+ // authentication bearerAuth required
14708
+ // http bearer authentication required
14709
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14710
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14711
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14712
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14713
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14714
+ localVarRequestOptions.data = serializeDataIfNeeded(markNotificationsReadRequest, localVarRequestOptions, configuration);
14715
+ return {
14716
+ url: toPathString(localVarUrlObj),
14717
+ options: localVarRequestOptions,
14718
+ };
14719
+ }),
14819
14720
  /**
14820
14721
  *
14821
14722
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -14951,15 +14852,47 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14951
14852
  if (configuration) {
14952
14853
  baseOptions = configuration.baseOptions;
14953
14854
  }
14954
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
14855
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
14856
+ const localVarHeaderParameter = {};
14857
+ const localVarQueryParameter = {};
14858
+ // authentication bearerAuth required
14859
+ // http bearer authentication required
14860
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14861
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14862
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14863
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14864
+ return {
14865
+ url: toPathString(localVarUrlObj),
14866
+ options: localVarRequestOptions,
14867
+ };
14868
+ }),
14869
+ /**
14870
+ *
14871
+ * @param {AddOrganizationRequest} addOrganizationRequest
14872
+ * @param {*} [options] Override http request option.
14873
+ * @throws {RequiredError}
14874
+ */
14875
+ removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
14876
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
14877
+ assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
14878
+ const localVarPath = `/api/users/me/remove-organization`;
14879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14881
+ let baseOptions;
14882
+ if (configuration) {
14883
+ baseOptions = configuration.baseOptions;
14884
+ }
14885
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14955
14886
  const localVarHeaderParameter = {};
14956
14887
  const localVarQueryParameter = {};
14957
14888
  // authentication bearerAuth required
14958
14889
  // http bearer authentication required
14959
14890
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14891
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14960
14892
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14961
14893
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14962
14894
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14895
+ localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
14963
14896
  return {
14964
14897
  url: toPathString(localVarUrlObj),
14965
14898
  options: localVarRequestOptions,
@@ -14967,14 +14900,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14967
14900
  }),
14968
14901
  /**
14969
14902
  *
14970
- * @param {AddOrganizationRequest} addOrganizationRequest
14971
14903
  * @param {*} [options] Override http request option.
14972
14904
  * @throws {RequiredError}
14973
14905
  */
14974
- removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
14975
- // verify required parameter 'addOrganizationRequest' is not null or undefined
14976
- assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
14977
- const localVarPath = `/api/users/me/remove-organization`;
14906
+ requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
14907
+ const localVarPath = `/api/users/me/request-email-verification`;
14978
14908
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14979
14909
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14980
14910
  let baseOptions;
@@ -14987,11 +14917,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14987
14917
  // authentication bearerAuth required
14988
14918
  // http bearer authentication required
14989
14919
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14990
- localVarHeaderParameter['Content-Type'] = 'application/json';
14991
14920
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14992
14921
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14993
14922
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14994
- localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
14995
14923
  return {
14996
14924
  url: toPathString(localVarUrlObj),
14997
14925
  options: localVarRequestOptions,
@@ -14999,11 +14927,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14999
14927
  }),
15000
14928
  /**
15001
14929
  *
14930
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
15002
14931
  * @param {*} [options] Override http request option.
15003
14932
  * @throws {RequiredError}
15004
14933
  */
15005
- requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
15006
- const localVarPath = `/api/users/me/request-email-verification`;
14934
+ requestOrganizationCode: (requestOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [requestOrganizationEmailCodeBody_1, ...args_1], void 0, function* (requestOrganizationEmailCodeBody, options = {}) {
14935
+ // verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
14936
+ assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
14937
+ const localVarPath = `/api/users/me/request-organization-code`;
15007
14938
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15008
14939
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15009
14940
  let baseOptions;
@@ -15016,9 +14947,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
15016
14947
  // authentication bearerAuth required
15017
14948
  // http bearer authentication required
15018
14949
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14950
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15019
14951
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15020
14952
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15021
14953
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14954
+ localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
15022
14955
  return {
15023
14956
  url: toPathString(localVarUrlObj),
15024
14957
  options: localVarRequestOptions,
@@ -15082,6 +15015,51 @@ export const UsersApiAxiosParamCreator = function (configuration) {
15082
15015
  options: localVarRequestOptions,
15083
15016
  };
15084
15017
  }),
15018
+ /**
15019
+ *
15020
+ * @param {string} q
15021
+ * @param {number} [page]
15022
+ * @param {number} [limit]
15023
+ * @param {Array<string>} [excludeIds]
15024
+ * @param {*} [options] Override http request option.
15025
+ * @throws {RequiredError}
15026
+ */
15027
+ 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 = {}) {
15028
+ // verify required parameter 'q' is not null or undefined
15029
+ assertParamExists('searchPartner', 'q', q);
15030
+ const localVarPath = `/api/users/searchPartner`;
15031
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15032
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15033
+ let baseOptions;
15034
+ if (configuration) {
15035
+ baseOptions = configuration.baseOptions;
15036
+ }
15037
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15038
+ const localVarHeaderParameter = {};
15039
+ const localVarQueryParameter = {};
15040
+ // authentication bearerAuth required
15041
+ // http bearer authentication required
15042
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15043
+ if (q !== undefined) {
15044
+ localVarQueryParameter['q'] = q;
15045
+ }
15046
+ if (page !== undefined) {
15047
+ localVarQueryParameter['page'] = page;
15048
+ }
15049
+ if (limit !== undefined) {
15050
+ localVarQueryParameter['limit'] = limit;
15051
+ }
15052
+ if (excludeIds) {
15053
+ localVarQueryParameter['excludeIds'] = excludeIds;
15054
+ }
15055
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15056
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15057
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15058
+ return {
15059
+ url: toPathString(localVarUrlObj),
15060
+ options: localVarRequestOptions,
15061
+ };
15062
+ }),
15085
15063
  /**
15086
15064
  *
15087
15065
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -15297,6 +15275,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
15297
15275
  options: localVarRequestOptions,
15298
15276
  };
15299
15277
  }),
15278
+ /**
15279
+ *
15280
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
15281
+ * @param {*} [options] Override http request option.
15282
+ * @throws {RequiredError}
15283
+ */
15284
+ verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
15285
+ // verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
15286
+ assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
15287
+ const localVarPath = `/api/users/me/verify-organization-code`;
15288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15289
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15290
+ let baseOptions;
15291
+ if (configuration) {
15292
+ baseOptions = configuration.baseOptions;
15293
+ }
15294
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15295
+ const localVarHeaderParameter = {};
15296
+ const localVarQueryParameter = {};
15297
+ // authentication bearerAuth required
15298
+ // http bearer authentication required
15299
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15300
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15301
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15303
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15304
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
15305
+ return {
15306
+ url: toPathString(localVarUrlObj),
15307
+ options: localVarRequestOptions,
15308
+ };
15309
+ }),
15300
15310
  };
15301
15311
  };
15302
15312
  /**
@@ -15608,6 +15618,23 @@ export const UsersApiFp = function (configuration) {
15608
15618
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15609
15619
  });
15610
15620
  },
15621
+ /**
15622
+ *
15623
+ * @param {number} [limit]
15624
+ * @param {number} [skip]
15625
+ * @param {any} [includeRead]
15626
+ * @param {*} [options] Override http request option.
15627
+ * @throws {RequiredError}
15628
+ */
15629
+ getUserNotifications(limit, skip, includeRead, options) {
15630
+ return __awaiter(this, void 0, void 0, function* () {
15631
+ var _a, _b, _c;
15632
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
15633
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15634
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15635
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15636
+ });
15637
+ },
15611
15638
  /**
15612
15639
  *
15613
15640
  * @param {string} id
@@ -15692,6 +15719,21 @@ export const UsersApiFp = function (configuration) {
15692
15719
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15693
15720
  });
15694
15721
  },
15722
+ /**
15723
+ *
15724
+ * @param {MarkNotificationsReadRequest} markNotificationsReadRequest
15725
+ * @param {*} [options] Override http request option.
15726
+ * @throws {RequiredError}
15727
+ */
15728
+ markNotificationsRead(markNotificationsReadRequest, options) {
15729
+ return __awaiter(this, void 0, void 0, function* () {
15730
+ var _a, _b, _c;
15731
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
15732
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15733
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.markNotificationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15734
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15735
+ });
15736
+ },
15695
15737
  /**
15696
15738
  *
15697
15739
  * @param {RefreshTokenRequestBody} refreshTokenRequestBody
@@ -15796,6 +15838,21 @@ export const UsersApiFp = function (configuration) {
15796
15838
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15797
15839
  });
15798
15840
  },
15841
+ /**
15842
+ *
15843
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
15844
+ * @param {*} [options] Override http request option.
15845
+ * @throws {RequiredError}
15846
+ */
15847
+ requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
15848
+ return __awaiter(this, void 0, void 0, function* () {
15849
+ var _a, _b, _c;
15850
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
15851
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15852
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15853
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15854
+ });
15855
+ },
15799
15856
  /**
15800
15857
  *
15801
15858
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -15826,6 +15883,24 @@ export const UsersApiFp = function (configuration) {
15826
15883
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15827
15884
  });
15828
15885
  },
15886
+ /**
15887
+ *
15888
+ * @param {string} q
15889
+ * @param {number} [page]
15890
+ * @param {number} [limit]
15891
+ * @param {Array<string>} [excludeIds]
15892
+ * @param {*} [options] Override http request option.
15893
+ * @throws {RequiredError}
15894
+ */
15895
+ searchPartner(q, page, limit, excludeIds, options) {
15896
+ return __awaiter(this, void 0, void 0, function* () {
15897
+ var _a, _b, _c;
15898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchPartner(q, page, limit, excludeIds, options);
15899
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15900
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.searchPartner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15901
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15902
+ });
15903
+ },
15829
15904
  /**
15830
15905
  *
15831
15906
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -15931,6 +16006,21 @@ export const UsersApiFp = function (configuration) {
15931
16006
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15932
16007
  });
15933
16008
  },
16009
+ /**
16010
+ *
16011
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
16012
+ * @param {*} [options] Override http request option.
16013
+ * @throws {RequiredError}
16014
+ */
16015
+ verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
16016
+ return __awaiter(this, void 0, void 0, function* () {
16017
+ var _a, _b, _c;
16018
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
16019
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16020
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16021
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16022
+ });
16023
+ },
15934
16024
  };
15935
16025
  };
15936
16026
  /**
@@ -16112,6 +16202,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16112
16202
  getUserEvents(requestParameters = {}, options) {
16113
16203
  return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
16114
16204
  },
16205
+ /**
16206
+ *
16207
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16208
+ * @param {*} [options] Override http request option.
16209
+ * @throws {RequiredError}
16210
+ */
16211
+ getUserNotifications(requestParameters = {}, options) {
16212
+ return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
16213
+ },
16115
16214
  /**
16116
16215
  *
16117
16216
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -16157,6 +16256,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16157
16256
  loginClubMember(requestParameters, options) {
16158
16257
  return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
16159
16258
  },
16259
+ /**
16260
+ *
16261
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16262
+ * @param {*} [options] Override http request option.
16263
+ * @throws {RequiredError}
16264
+ */
16265
+ markNotificationsRead(requestParameters, options) {
16266
+ return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
16267
+ },
16160
16268
  /**
16161
16269
  *
16162
16270
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -16219,6 +16327,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16219
16327
  requestEmailVerification(options) {
16220
16328
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
16221
16329
  },
16330
+ /**
16331
+ *
16332
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
16333
+ * @param {*} [options] Override http request option.
16334
+ * @throws {RequiredError}
16335
+ */
16336
+ requestOrganizationCode(requestParameters, options) {
16337
+ return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
16338
+ },
16222
16339
  /**
16223
16340
  *
16224
16341
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -16237,6 +16354,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16237
16354
  resetPassword(requestParameters, options) {
16238
16355
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
16239
16356
  },
16357
+ /**
16358
+ *
16359
+ * @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
16360
+ * @param {*} [options] Override http request option.
16361
+ * @throws {RequiredError}
16362
+ */
16363
+ searchPartner(requestParameters, options) {
16364
+ return localVarFp.searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(axios, basePath));
16365
+ },
16240
16366
  /**
16241
16367
  *
16242
16368
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -16300,6 +16426,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
16300
16426
  verifyOrganization(requestParameters, options) {
16301
16427
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
16302
16428
  },
16429
+ /**
16430
+ *
16431
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
16432
+ * @param {*} [options] Override http request option.
16433
+ * @throws {RequiredError}
16434
+ */
16435
+ verifyOrganizationCode(requestParameters, options) {
16436
+ return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
16437
+ },
16303
16438
  };
16304
16439
  };
16305
16440
  /**
@@ -16501,6 +16636,16 @@ export class UsersApi extends BaseAPI {
16501
16636
  getUserEvents(requestParameters = {}, options) {
16502
16637
  return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
16503
16638
  }
16639
+ /**
16640
+ *
16641
+ * @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
16642
+ * @param {*} [options] Override http request option.
16643
+ * @throws {RequiredError}
16644
+ * @memberof UsersApi
16645
+ */
16646
+ getUserNotifications(requestParameters = {}, options) {
16647
+ return UsersApiFp(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
16648
+ }
16504
16649
  /**
16505
16650
  *
16506
16651
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -16551,6 +16696,16 @@ export class UsersApi extends BaseAPI {
16551
16696
  loginClubMember(requestParameters, options) {
16552
16697
  return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
16553
16698
  }
16699
+ /**
16700
+ *
16701
+ * @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
16702
+ * @param {*} [options] Override http request option.
16703
+ * @throws {RequiredError}
16704
+ * @memberof UsersApi
16705
+ */
16706
+ markNotificationsRead(requestParameters, options) {
16707
+ return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
16708
+ }
16554
16709
  /**
16555
16710
  *
16556
16711
  * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
@@ -16620,6 +16775,16 @@ export class UsersApi extends BaseAPI {
16620
16775
  requestEmailVerification(options) {
16621
16776
  return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
16622
16777
  }
16778
+ /**
16779
+ *
16780
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
16781
+ * @param {*} [options] Override http request option.
16782
+ * @throws {RequiredError}
16783
+ * @memberof UsersApi
16784
+ */
16785
+ requestOrganizationCode(requestParameters, options) {
16786
+ return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
16787
+ }
16623
16788
  /**
16624
16789
  *
16625
16790
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -16640,6 +16805,16 @@ export class UsersApi extends BaseAPI {
16640
16805
  resetPassword(requestParameters, options) {
16641
16806
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
16642
16807
  }
16808
+ /**
16809
+ *
16810
+ * @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
16811
+ * @param {*} [options] Override http request option.
16812
+ * @throws {RequiredError}
16813
+ * @memberof UsersApi
16814
+ */
16815
+ searchPartner(requestParameters, options) {
16816
+ return UsersApiFp(this.configuration).searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(this.axios, this.basePath));
16817
+ }
16643
16818
  /**
16644
16819
  *
16645
16820
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -16710,6 +16885,16 @@ export class UsersApi extends BaseAPI {
16710
16885
  verifyOrganization(requestParameters, options) {
16711
16886
  return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
16712
16887
  }
16888
+ /**
16889
+ *
16890
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
16891
+ * @param {*} [options] Override http request option.
16892
+ * @throws {RequiredError}
16893
+ * @memberof UsersApi
16894
+ */
16895
+ verifyOrganizationCode(requestParameters, options) {
16896
+ return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
16897
+ }
16713
16898
  }
16714
16899
  /**
16715
16900
  * WaitListApi - axios parameter creator
@@ -17429,6 +17614,37 @@ export const WaitListStaffApiAxiosParamCreator = function (configuration) {
17429
17614
  options: localVarRequestOptions,
17430
17615
  };
17431
17616
  }),
17617
+ /**
17618
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17619
+ * @param {string} eventId
17620
+ * @param {*} [options] Override http request option.
17621
+ * @throws {RequiredError}
17622
+ */
17623
+ getEventWaitListPlayers: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
17624
+ // verify required parameter 'eventId' is not null or undefined
17625
+ assertParamExists('getEventWaitListPlayers', 'eventId', eventId);
17626
+ const localVarPath = `/api/waitlist/event/{eventId}/players`
17627
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
17628
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17629
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17630
+ let baseOptions;
17631
+ if (configuration) {
17632
+ baseOptions = configuration.baseOptions;
17633
+ }
17634
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
17635
+ const localVarHeaderParameter = {};
17636
+ const localVarQueryParameter = {};
17637
+ // authentication bearerAuth required
17638
+ // http bearer authentication required
17639
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17640
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17641
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17642
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17643
+ return {
17644
+ url: toPathString(localVarUrlObj),
17645
+ options: localVarRequestOptions,
17646
+ };
17647
+ }),
17432
17648
  /**
17433
17649
  * Forcer le traitement de la waitlist pour un booking (staff only)
17434
17650
  * @param {string} bookingId
@@ -17576,6 +17792,21 @@ export const WaitListStaffApiFp = function (configuration) {
17576
17792
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17577
17793
  });
17578
17794
  },
17795
+ /**
17796
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17797
+ * @param {string} eventId
17798
+ * @param {*} [options] Override http request option.
17799
+ * @throws {RequiredError}
17800
+ */
17801
+ getEventWaitListPlayers(eventId, options) {
17802
+ return __awaiter(this, void 0, void 0, function* () {
17803
+ var _a, _b, _c;
17804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
17805
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17806
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WaitListStaffApi.getEventWaitListPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17808
+ });
17809
+ },
17579
17810
  /**
17580
17811
  * Forcer le traitement de la waitlist pour un booking (staff only)
17581
17812
  * @param {string} bookingId
@@ -17657,6 +17888,15 @@ export const WaitListStaffApiFactory = function (configuration, basePath, axios)
17657
17888
  getEventWaitList(requestParameters, options) {
17658
17889
  return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
17659
17890
  },
17891
+ /**
17892
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17893
+ * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
17894
+ * @param {*} [options] Override http request option.
17895
+ * @throws {RequiredError}
17896
+ */
17897
+ getEventWaitListPlayers(requestParameters, options) {
17898
+ return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
17899
+ },
17660
17900
  /**
17661
17901
  * Forcer le traitement de la waitlist pour un booking (staff only)
17662
17902
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
@@ -17723,6 +17963,16 @@ export class WaitListStaffApi extends BaseAPI {
17723
17963
  getEventWaitList(requestParameters, options) {
17724
17964
  return WaitListStaffApiFp(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
17725
17965
  }
17966
+ /**
17967
+ * Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
17968
+ * @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
17969
+ * @param {*} [options] Override http request option.
17970
+ * @throws {RequiredError}
17971
+ * @memberof WaitListStaffApi
17972
+ */
17973
+ getEventWaitListPlayers(requestParameters, options) {
17974
+ return WaitListStaffApiFp(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
17975
+ }
17726
17976
  /**
17727
17977
  * Forcer le traitement de la waitlist pour un booking (staff only)
17728
17978
  * @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.