@tennac-booking/sdk 1.0.86 → 1.0.88

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 (96) hide show
  1. package/.openapi-generator/FILES +256 -243
  2. package/README.md +49 -26
  3. package/api.ts +2623 -1424
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2072 -1280
  8. package/dist/api.js +920 -291
  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 +2072 -1280
  16. package/dist/esm/api.js +913 -284
  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/{DeleteClubSettingsResponse.md → AddPaymentMethodRequestBody.md} +5 -5
  28. package/docs/BookingDetailResponse.md +46 -0
  29. package/docs/BookingInfo.md +2 -2
  30. package/docs/BookingPopulated.md +3 -3
  31. package/docs/BookingResponse.md +0 -2
  32. package/docs/BookingSummary.md +2 -54
  33. package/docs/BookingsApi.md +0 -55
  34. package/docs/ClubAnalyticsStaffApi.md +173 -0
  35. package/docs/{BookingSportInfo.md → ClubDaySchedule.md} +7 -7
  36. package/docs/ClubGeneralSettingsResponse.md +32 -0
  37. package/docs/ClubHoursSettingsResponse.md +22 -0
  38. package/docs/ClubLocationSettings.md +26 -0
  39. package/docs/ClubPlayerBookingItem.md +36 -0
  40. package/docs/ClubPlayerBookingsPagination.md +28 -0
  41. package/docs/ClubPlayerBookingsResponse.md +24 -0
  42. package/docs/ClubPlayerDetailResponse.md +46 -0
  43. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
  44. package/docs/ClubPlayerStatisticsResponse.md +42 -0
  45. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
  46. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
  47. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
  48. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
  49. package/docs/ClubPlayerSubscriptionSummary.md +28 -0
  50. package/docs/ClubPresentationSettingsResponse.md +26 -0
  51. package/docs/ClubPricingPeriodResponse.md +30 -0
  52. package/docs/ClubReservationSettingsResponse.md +28 -0
  53. package/docs/ClubResponse.md +0 -8
  54. package/docs/ClubSettingsManagerApi.md +54 -60
  55. package/docs/ClubSettingsStaffApi.md +183 -0
  56. package/docs/ClubWeeklySchedule.md +32 -0
  57. package/docs/ClubsManagerApi.md +52 -0
  58. package/docs/ClubsStaffApi.md +44 -0
  59. package/docs/{BookingCourtInfo.md → ConfirmPaymentMethodRequestBody.md} +5 -7
  60. package/docs/{BookingPriceBody.md → ConfirmPaymentMethodResponse.md} +7 -7
  61. package/docs/CreateBookingRequest.md +2 -2
  62. package/docs/CreateEventRequest.md +3 -1
  63. package/docs/EventResponse.md +1 -1
  64. package/docs/IUserAttributes.md +12 -2
  65. package/docs/PartialClubResponse.md +0 -8
  66. package/docs/PartialClubWeeklySchedule.md +33 -0
  67. package/docs/PaymentMethodSetupResponse.md +24 -0
  68. package/docs/QuickReservationClubSummary.md +0 -4
  69. package/docs/{EventResponseCourtsInner.md → SetupPaymentMethodRequestBody.md} +5 -3
  70. package/docs/SetupPaymentMethodResponse.md +24 -0
  71. package/docs/SlotInfo.md +2 -2
  72. package/docs/StaffUserProfileResponse.md +12 -2
  73. package/docs/SubscribeRequestBody.md +0 -2
  74. package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
  75. package/docs/UpdateClubHoursSettingsRequest.md +22 -0
  76. package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
  77. package/docs/UpdateClubReservationSettingsRequest.md +28 -0
  78. package/docs/UpdateEventRequest.md +1 -1
  79. package/docs/UserProfileResponse.md +12 -4
  80. package/docs/UsersApi.md +160 -4
  81. package/index.ts +1 -1
  82. package/package.json +1 -1
  83. package/docs/BookingClubInfo.md +0 -28
  84. package/docs/BookingPaymentStatus.md +0 -24
  85. package/docs/BookingPlayerPaymentSummary.md +0 -34
  86. package/docs/BookingPriceResponse.md +0 -22
  87. package/docs/BookingSlotInfo.md +0 -30
  88. package/docs/ClubSettingsResponse.md +0 -39
  89. package/docs/CreateClubSettingsRequest.md +0 -34
  90. package/docs/InvoiceStatus.md +0 -22
  91. package/docs/PlayerPrice.md +0 -30
  92. package/docs/QuickReservationClubSport.md +0 -22
  93. package/docs/SportsPublicApi.md +0 -53
  94. package/docs/SubscriptionInfo.md +0 -24
  95. package/docs/UpdateClubSettingsRequest.md +0 -32
  96. package/docs/UserBookingsResponse.md +0 -28
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.86
8
+ * The version of the OpenAPI document: 1.0.77
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = void 0;
27
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = void 0;
25
+ exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
+ exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = void 0;
27
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -139,21 +139,6 @@ exports.Gender = {
139
139
  exports.IUserLocationTypeEnum = {
140
140
  Point: 'Point'
141
141
  };
142
- /**
143
- *
144
- * @export
145
- * @enum {string}
146
- */
147
- exports.InvoiceStatus = {
148
- SetupPending: 'setup_pending',
149
- SetupSuccess: 'setup_success',
150
- Pending: 'pending',
151
- Paid: 'paid',
152
- Failed: 'failed',
153
- Authorized: 'authorized',
154
- Canceled: 'canceled',
155
- Expired: 'expired'
156
- };
157
142
  /**
158
143
  *
159
144
  * @export
@@ -384,38 +369,6 @@ const BookingsApiAxiosParamCreator = function (configuration) {
384
369
  options: localVarRequestOptions,
385
370
  };
386
371
  }),
387
- /**
388
- *
389
- * @param {BookingPriceBody} bookingPriceBody
390
- * @param {*} [options] Override http request option.
391
- * @throws {RequiredError}
392
- */
393
- getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
394
- // verify required parameter 'bookingPriceBody' is not null or undefined
395
- (0, common_1.assertParamExists)('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
396
- const localVarPath = `/api/bookings/booking-price`;
397
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
398
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
399
- let baseOptions;
400
- if (configuration) {
401
- baseOptions = configuration.baseOptions;
402
- }
403
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
404
- const localVarHeaderParameter = {};
405
- const localVarQueryParameter = {};
406
- // authentication bearerAuth required
407
- // http bearer authentication required
408
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
409
- localVarHeaderParameter['Content-Type'] = 'application/json';
410
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
411
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
412
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
413
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookingPriceBody, localVarRequestOptions, configuration);
414
- return {
415
- url: (0, common_1.toPathString)(localVarUrlObj),
416
- options: localVarRequestOptions,
417
- };
418
- }),
419
372
  /**
420
373
  * Recherche des créneaux disponibles pour une réservation rapide
421
374
  * @param {number} [latitude]
@@ -426,13 +379,12 @@ const BookingsApiAxiosParamCreator = function (configuration) {
426
379
  * @param {string} [startTime]
427
380
  * @param {number} [priceMax]
428
381
  * @param {string} [courtTypes]
429
- * @param {string} [surfaceTypes]
430
382
  * @param {number} [limitPerClub]
431
383
  * @param {number} [maxClubs]
432
384
  * @param {*} [options] Override http request option.
433
385
  * @throws {RequiredError}
434
386
  */
435
- getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options = {}) {
387
+ getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
436
388
  const localVarPath = `/api/bookings/quick-reservations`;
437
389
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
438
390
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -467,11 +419,8 @@ const BookingsApiAxiosParamCreator = function (configuration) {
467
419
  if (courtTypes !== undefined) {
468
420
  localVarQueryParameter['courtTypes'] = courtTypes;
469
421
  }
470
- if (surfaceTypes !== undefined) {
471
- localVarQueryParameter['surfaceTypes'] = surfaceTypes;
472
- }
473
422
  if (limitPerClub !== undefined) {
474
- localVarQueryParameter['_limitPerClub'] = limitPerClub;
423
+ localVarQueryParameter['limitPerClub'] = limitPerClub;
475
424
  }
476
425
  if (maxClubs !== undefined) {
477
426
  localVarQueryParameter['maxClubs'] = maxClubs;
@@ -509,21 +458,6 @@ const BookingsApiFp = function (configuration) {
509
458
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
510
459
  });
511
460
  },
512
- /**
513
- *
514
- * @param {BookingPriceBody} bookingPriceBody
515
- * @param {*} [options] Override http request option.
516
- * @throws {RequiredError}
517
- */
518
- getBookingPrice(bookingPriceBody, options) {
519
- return __awaiter(this, void 0, void 0, function* () {
520
- var _a, _b, _c;
521
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
522
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
523
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
524
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
525
- });
526
- },
527
461
  /**
528
462
  * Recherche des créneaux disponibles pour une réservation rapide
529
463
  * @param {number} [latitude]
@@ -534,16 +468,15 @@ const BookingsApiFp = function (configuration) {
534
468
  * @param {string} [startTime]
535
469
  * @param {number} [priceMax]
536
470
  * @param {string} [courtTypes]
537
- * @param {string} [surfaceTypes]
538
471
  * @param {number} [limitPerClub]
539
472
  * @param {number} [maxClubs]
540
473
  * @param {*} [options] Override http request option.
541
474
  * @throws {RequiredError}
542
475
  */
543
- getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
476
+ getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
544
477
  return __awaiter(this, void 0, void 0, function* () {
545
478
  var _a, _b, _c;
546
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
547
480
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
548
481
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
549
482
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -568,15 +501,6 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
568
501
  getBookingHistory(requestParameters, options) {
569
502
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
570
503
  },
571
- /**
572
- *
573
- * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
574
- * @param {*} [options] Override http request option.
575
- * @throws {RequiredError}
576
- */
577
- getBookingPrice(requestParameters, options) {
578
- return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
579
- },
580
504
  /**
581
505
  * Recherche des créneaux disponibles pour une réservation rapide
582
506
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -584,7 +508,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
584
508
  * @throws {RequiredError}
585
509
  */
586
510
  getQuickReservationSlots(requestParameters = {}, options) {
587
- return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
511
+ return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
588
512
  },
589
513
  };
590
514
  };
@@ -606,16 +530,6 @@ class BookingsApi extends base_1.BaseAPI {
606
530
  getBookingHistory(requestParameters, options) {
607
531
  return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
608
532
  }
609
- /**
610
- *
611
- * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
612
- * @param {*} [options] Override http request option.
613
- * @throws {RequiredError}
614
- * @memberof BookingsApi
615
- */
616
- getBookingPrice(requestParameters, options) {
617
- return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
618
- }
619
533
  /**
620
534
  * Recherche des créneaux disponibles pour une réservation rapide
621
535
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -624,7 +538,7 @@ class BookingsApi extends base_1.BaseAPI {
624
538
  * @memberof BookingsApi
625
539
  */
626
540
  getQuickReservationSlots(requestParameters = {}, options) {
627
- return (0, exports.BookingsApiFp)(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
541
+ return (0, exports.BookingsApiFp)(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
628
542
  }
629
543
  }
630
544
  exports.BookingsApi = BookingsApi;
@@ -1596,6 +1510,107 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1596
1510
  options: localVarRequestOptions,
1597
1511
  };
1598
1512
  }),
1513
+ /**
1514
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1515
+ * @param {string} playerId
1516
+ * @param {number} [page]
1517
+ * @param {number} [pageSize]
1518
+ * @param {*} [options] Override http request option.
1519
+ * @throws {RequiredError}
1520
+ */
1521
+ getClubPlayerBookingsById: (playerId_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [playerId_1, page_1, pageSize_1, ...args_1], void 0, function* (playerId, page, pageSize, options = {}) {
1522
+ // verify required parameter 'playerId' is not null or undefined
1523
+ (0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
1524
+ const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1525
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1527
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1528
+ let baseOptions;
1529
+ if (configuration) {
1530
+ baseOptions = configuration.baseOptions;
1531
+ }
1532
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1533
+ const localVarHeaderParameter = {};
1534
+ const localVarQueryParameter = {};
1535
+ // authentication bearerAuth required
1536
+ // http bearer authentication required
1537
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1538
+ if (page !== undefined) {
1539
+ localVarQueryParameter['page'] = page;
1540
+ }
1541
+ if (pageSize !== undefined) {
1542
+ localVarQueryParameter['pageSize'] = pageSize;
1543
+ }
1544
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1545
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1546
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1547
+ return {
1548
+ url: (0, common_1.toPathString)(localVarUrlObj),
1549
+ options: localVarRequestOptions,
1550
+ };
1551
+ }),
1552
+ /**
1553
+ * Récupère les informations détaillées d\'un joueur par son ID
1554
+ * @param {string} playerId
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1559
+ // verify required parameter 'playerId' is not null or undefined
1560
+ (0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
1561
+ const localVarPath = `/api/club-analytics/players/{playerId}`
1562
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1564
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1565
+ let baseOptions;
1566
+ if (configuration) {
1567
+ baseOptions = configuration.baseOptions;
1568
+ }
1569
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1570
+ const localVarHeaderParameter = {};
1571
+ const localVarQueryParameter = {};
1572
+ // authentication bearerAuth required
1573
+ // http bearer authentication required
1574
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1575
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1577
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1578
+ return {
1579
+ url: (0, common_1.toPathString)(localVarUrlObj),
1580
+ options: localVarRequestOptions,
1581
+ };
1582
+ }),
1583
+ /**
1584
+ * Récupère les statistiques d\'un joueur pour le staff
1585
+ * @param {string} playerId
1586
+ * @param {*} [options] Override http request option.
1587
+ * @throws {RequiredError}
1588
+ */
1589
+ getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1590
+ // verify required parameter 'playerId' is not null or undefined
1591
+ (0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
1592
+ const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1593
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1594
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1595
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1596
+ let baseOptions;
1597
+ if (configuration) {
1598
+ baseOptions = configuration.baseOptions;
1599
+ }
1600
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1601
+ const localVarHeaderParameter = {};
1602
+ const localVarQueryParameter = {};
1603
+ // authentication bearerAuth required
1604
+ // http bearer authentication required
1605
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1606
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1608
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1609
+ return {
1610
+ url: (0, common_1.toPathString)(localVarUrlObj),
1611
+ options: localVarRequestOptions,
1612
+ };
1613
+ }),
1599
1614
  /**
1600
1615
  * Récupère la liste des joueurs du club
1601
1616
  * @param {*} [options] Override http request option.
@@ -1896,6 +1911,53 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
1896
1911
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1897
1912
  });
1898
1913
  },
1914
+ /**
1915
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1916
+ * @param {string} playerId
1917
+ * @param {number} [page]
1918
+ * @param {number} [pageSize]
1919
+ * @param {*} [options] Override http request option.
1920
+ * @throws {RequiredError}
1921
+ */
1922
+ getClubPlayerBookingsById(playerId, page, pageSize, options) {
1923
+ return __awaiter(this, void 0, void 0, function* () {
1924
+ var _a, _b, _c;
1925
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
1926
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1927
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1928
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1929
+ });
1930
+ },
1931
+ /**
1932
+ * Récupère les informations détaillées d\'un joueur par son ID
1933
+ * @param {string} playerId
1934
+ * @param {*} [options] Override http request option.
1935
+ * @throws {RequiredError}
1936
+ */
1937
+ getClubPlayerById(playerId, options) {
1938
+ return __awaiter(this, void 0, void 0, function* () {
1939
+ var _a, _b, _c;
1940
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
1941
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1942
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1943
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1944
+ });
1945
+ },
1946
+ /**
1947
+ * Récupère les statistiques d\'un joueur pour le staff
1948
+ * @param {string} playerId
1949
+ * @param {*} [options] Override http request option.
1950
+ * @throws {RequiredError}
1951
+ */
1952
+ getClubPlayerStatisticsById(playerId, options) {
1953
+ return __awaiter(this, void 0, void 0, function* () {
1954
+ var _a, _b, _c;
1955
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
1956
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1957
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1958
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1959
+ });
1960
+ },
1899
1961
  /**
1900
1962
  * Récupère la liste des joueurs du club
1901
1963
  * @param {*} [options] Override http request option.
@@ -2047,6 +2109,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2047
2109
  getAnalyticsBySport(requestParameters, options) {
2048
2110
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2049
2111
  },
2112
+ /**
2113
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2114
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2115
+ * @param {*} [options] Override http request option.
2116
+ * @throws {RequiredError}
2117
+ */
2118
+ getClubPlayerBookingsById(requestParameters, options) {
2119
+ return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2120
+ },
2121
+ /**
2122
+ * Récupère les informations détaillées d\'un joueur par son ID
2123
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2124
+ * @param {*} [options] Override http request option.
2125
+ * @throws {RequiredError}
2126
+ */
2127
+ getClubPlayerById(requestParameters, options) {
2128
+ return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2129
+ },
2130
+ /**
2131
+ * Récupère les statistiques d\'un joueur pour le staff
2132
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2133
+ * @param {*} [options] Override http request option.
2134
+ * @throws {RequiredError}
2135
+ */
2136
+ getClubPlayerStatisticsById(requestParameters, options) {
2137
+ return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2138
+ },
2050
2139
  /**
2051
2140
  * Récupère la liste des joueurs du club
2052
2141
  * @param {*} [options] Override http request option.
@@ -2143,6 +2232,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2143
2232
  getAnalyticsBySport(requestParameters, options) {
2144
2233
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2145
2234
  }
2235
+ /**
2236
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2237
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2238
+ * @param {*} [options] Override http request option.
2239
+ * @throws {RequiredError}
2240
+ * @memberof ClubAnalyticsStaffApi
2241
+ */
2242
+ getClubPlayerBookingsById(requestParameters, options) {
2243
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2244
+ }
2245
+ /**
2246
+ * Récupère les informations détaillées d\'un joueur par son ID
2247
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2248
+ * @param {*} [options] Override http request option.
2249
+ * @throws {RequiredError}
2250
+ * @memberof ClubAnalyticsStaffApi
2251
+ */
2252
+ getClubPlayerById(requestParameters, options) {
2253
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2254
+ }
2255
+ /**
2256
+ * Récupère les statistiques d\'un joueur pour le staff
2257
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2258
+ * @param {*} [options] Override http request option.
2259
+ * @throws {RequiredError}
2260
+ * @memberof ClubAnalyticsStaffApi
2261
+ */
2262
+ getClubPlayerStatisticsById(requestParameters, options) {
2263
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2264
+ }
2146
2265
  /**
2147
2266
  * Récupère la liste des joueurs du club
2148
2267
  * @param {*} [options] Override http request option.
@@ -2696,26 +2815,22 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
2696
2815
  const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
2697
2816
  return {
2698
2817
  /**
2699
- * Crée les paramètres d\'un club
2700
- * @param {string} clubId
2701
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
2818
+ *
2819
+ * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
2702
2820
  * @param {*} [options] Override http request option.
2703
2821
  * @throws {RequiredError}
2704
2822
  */
2705
- createClubSettings: (clubId_1, createClubSettingsRequest_1, ...args_1) => __awaiter(this, [clubId_1, createClubSettingsRequest_1, ...args_1], void 0, function* (clubId, createClubSettingsRequest, options = {}) {
2706
- // verify required parameter 'clubId' is not null or undefined
2707
- (0, common_1.assertParamExists)('createClubSettings', 'clubId', clubId);
2708
- // verify required parameter 'createClubSettingsRequest' is not null or undefined
2709
- (0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
2710
- const localVarPath = `/api/club-settings/{clubId}`
2711
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
2823
+ updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
2824
+ // verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
2825
+ (0, common_1.assertParamExists)('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
2826
+ const localVarPath = `/api/club-settings/settings/general`;
2712
2827
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2713
2828
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2714
2829
  let baseOptions;
2715
2830
  if (configuration) {
2716
2831
  baseOptions = configuration.baseOptions;
2717
2832
  }
2718
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2833
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2719
2834
  const localVarHeaderParameter = {};
2720
2835
  const localVarQueryParameter = {};
2721
2836
  // authentication bearerAuth required
@@ -2725,76 +2840,86 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
2725
2840
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2726
2841
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2727
2842
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2728
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
2843
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
2729
2844
  return {
2730
2845
  url: (0, common_1.toPathString)(localVarUrlObj),
2731
2846
  options: localVarRequestOptions,
2732
2847
  };
2733
2848
  }),
2734
2849
  /**
2735
- * Supprime les paramètres d\'un club
2850
+ *
2851
+ * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
2736
2852
  * @param {*} [options] Override http request option.
2737
2853
  * @throws {RequiredError}
2738
2854
  */
2739
- deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2740
- const localVarPath = `/api/club-settings`;
2855
+ updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
2856
+ // verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
2857
+ (0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
2858
+ const localVarPath = `/api/club-settings/hours`;
2741
2859
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2742
2860
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2743
2861
  let baseOptions;
2744
2862
  if (configuration) {
2745
2863
  baseOptions = configuration.baseOptions;
2746
2864
  }
2747
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2865
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2748
2866
  const localVarHeaderParameter = {};
2749
2867
  const localVarQueryParameter = {};
2750
2868
  // authentication bearerAuth required
2751
2869
  // http bearer authentication required
2752
2870
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2871
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2753
2872
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2754
2873
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2755
2874
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2875
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
2756
2876
  return {
2757
2877
  url: (0, common_1.toPathString)(localVarUrlObj),
2758
2878
  options: localVarRequestOptions,
2759
2879
  };
2760
2880
  }),
2761
2881
  /**
2762
- * Récupère les paramètres d\'un club
2882
+ *
2883
+ * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
2763
2884
  * @param {*} [options] Override http request option.
2764
2885
  * @throws {RequiredError}
2765
2886
  */
2766
- getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2767
- const localVarPath = `/api/club-settings`;
2887
+ updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
2888
+ // verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
2889
+ (0, common_1.assertParamExists)('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
2890
+ const localVarPath = `/api/club-settings/presentation`;
2768
2891
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2769
2892
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2770
2893
  let baseOptions;
2771
2894
  if (configuration) {
2772
2895
  baseOptions = configuration.baseOptions;
2773
2896
  }
2774
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2897
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2775
2898
  const localVarHeaderParameter = {};
2776
2899
  const localVarQueryParameter = {};
2777
2900
  // authentication bearerAuth required
2778
2901
  // http bearer authentication required
2779
2902
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2903
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2780
2904
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2781
2905
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2782
2906
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2907
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
2783
2908
  return {
2784
2909
  url: (0, common_1.toPathString)(localVarUrlObj),
2785
2910
  options: localVarRequestOptions,
2786
2911
  };
2787
2912
  }),
2788
2913
  /**
2789
- * Met à jour les paramètres d\'un club
2790
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2914
+ *
2915
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
2791
2916
  * @param {*} [options] Override http request option.
2792
2917
  * @throws {RequiredError}
2793
2918
  */
2794
- updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
2795
- // verify required parameter 'updateClubSettingsRequest' is not null or undefined
2796
- (0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
2797
- const localVarPath = `/api/club-settings`;
2919
+ updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
2920
+ // verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
2921
+ (0, common_1.assertParamExists)('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
2922
+ const localVarPath = `/api/club-settings/reservation`;
2798
2923
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2799
2924
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2800
2925
  let baseOptions;
@@ -2811,7 +2936,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
2811
2936
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2812
2937
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2813
2938
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2814
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
2939
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
2815
2940
  return {
2816
2941
  url: (0, common_1.toPathString)(localVarUrlObj),
2817
2942
  options: localVarRequestOptions,
@@ -2828,61 +2953,62 @@ const ClubSettingsManagerApiFp = function (configuration) {
2828
2953
  const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
2829
2954
  return {
2830
2955
  /**
2831
- * Crée les paramètres d\'un club
2832
- * @param {string} clubId
2833
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
2956
+ *
2957
+ * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
2834
2958
  * @param {*} [options] Override http request option.
2835
2959
  * @throws {RequiredError}
2836
2960
  */
2837
- createClubSettings(clubId, createClubSettingsRequest, options) {
2961
+ updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
2838
2962
  return __awaiter(this, void 0, void 0, function* () {
2839
2963
  var _a, _b, _c;
2840
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
2964
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
2841
2965
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2842
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2966
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2843
2967
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2844
2968
  });
2845
2969
  },
2846
2970
  /**
2847
- * Supprime les paramètres d\'un club
2971
+ *
2972
+ * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
2848
2973
  * @param {*} [options] Override http request option.
2849
2974
  * @throws {RequiredError}
2850
2975
  */
2851
- deleteClubSettings(options) {
2976
+ updateHoursSettings(updateClubHoursSettingsRequest, options) {
2852
2977
  return __awaiter(this, void 0, void 0, function* () {
2853
2978
  var _a, _b, _c;
2854
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
2979
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
2855
2980
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2856
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2981
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2857
2982
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2858
2983
  });
2859
2984
  },
2860
2985
  /**
2861
- * Récupère les paramètres d\'un club
2986
+ *
2987
+ * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
2862
2988
  * @param {*} [options] Override http request option.
2863
2989
  * @throws {RequiredError}
2864
2990
  */
2865
- getClubSettings(options) {
2991
+ updatePresentationSettings(clubPresentationSettingsResponse, options) {
2866
2992
  return __awaiter(this, void 0, void 0, function* () {
2867
2993
  var _a, _b, _c;
2868
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
2994
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
2869
2995
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2870
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2996
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2871
2997
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2872
2998
  });
2873
2999
  },
2874
3000
  /**
2875
- * Met à jour les paramètres d\'un club
2876
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3001
+ *
3002
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
2877
3003
  * @param {*} [options] Override http request option.
2878
3004
  * @throws {RequiredError}
2879
3005
  */
2880
- updateClubSettings(updateClubSettingsRequest, options) {
3006
+ updateReservationSettings(updateClubReservationSettingsRequest, options) {
2881
3007
  return __awaiter(this, void 0, void 0, function* () {
2882
3008
  var _a, _b, _c;
2883
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
3009
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
2884
3010
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2885
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3011
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2886
3012
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2887
3013
  });
2888
3014
  },
@@ -2897,38 +3023,40 @@ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios)
2897
3023
  const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
2898
3024
  return {
2899
3025
  /**
2900
- * Crée les paramètres d\'un club
2901
- * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3026
+ *
3027
+ * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
2902
3028
  * @param {*} [options] Override http request option.
2903
3029
  * @throws {RequiredError}
2904
3030
  */
2905
- createClubSettings(requestParameters, options) {
2906
- return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
3031
+ updateClubGeneralSettings(requestParameters, options) {
3032
+ return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
2907
3033
  },
2908
3034
  /**
2909
- * Supprime les paramètres d\'un club
3035
+ *
3036
+ * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
2910
3037
  * @param {*} [options] Override http request option.
2911
3038
  * @throws {RequiredError}
2912
3039
  */
2913
- deleteClubSettings(options) {
2914
- return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
3040
+ updateHoursSettings(requestParameters, options) {
3041
+ return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
2915
3042
  },
2916
3043
  /**
2917
- * Récupère les paramètres d\'un club
3044
+ *
3045
+ * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
2918
3046
  * @param {*} [options] Override http request option.
2919
3047
  * @throws {RequiredError}
2920
3048
  */
2921
- getClubSettings(options) {
2922
- return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3049
+ updatePresentationSettings(requestParameters, options) {
3050
+ return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
2923
3051
  },
2924
3052
  /**
2925
- * Met à jour les paramètres d\'un club
2926
- * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3053
+ *
3054
+ * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
2927
3055
  * @param {*} [options] Override http request option.
2928
3056
  * @throws {RequiredError}
2929
3057
  */
2930
- updateClubSettings(requestParameters, options) {
2931
- return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
3058
+ updateReservationSettings(requestParameters, options) {
3059
+ return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
2932
3060
  },
2933
3061
  };
2934
3062
  };
@@ -2941,58 +3069,60 @@ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
2941
3069
  */
2942
3070
  class ClubSettingsManagerApi extends base_1.BaseAPI {
2943
3071
  /**
2944
- * Crée les paramètres d\'un club
2945
- * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3072
+ *
3073
+ * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
2946
3074
  * @param {*} [options] Override http request option.
2947
3075
  * @throws {RequiredError}
2948
3076
  * @memberof ClubSettingsManagerApi
2949
3077
  */
2950
- createClubSettings(requestParameters, options) {
2951
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3078
+ updateClubGeneralSettings(requestParameters, options) {
3079
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2952
3080
  }
2953
3081
  /**
2954
- * Supprime les paramètres d\'un club
3082
+ *
3083
+ * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
2955
3084
  * @param {*} [options] Override http request option.
2956
3085
  * @throws {RequiredError}
2957
3086
  * @memberof ClubSettingsManagerApi
2958
3087
  */
2959
- deleteClubSettings(options) {
2960
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
3088
+ updateHoursSettings(requestParameters, options) {
3089
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2961
3090
  }
2962
3091
  /**
2963
- * Récupère les paramètres d\'un club
3092
+ *
3093
+ * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
2964
3094
  * @param {*} [options] Override http request option.
2965
3095
  * @throws {RequiredError}
2966
3096
  * @memberof ClubSettingsManagerApi
2967
3097
  */
2968
- getClubSettings(options) {
2969
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
3098
+ updatePresentationSettings(requestParameters, options) {
3099
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
2970
3100
  }
2971
3101
  /**
2972
- * Met à jour les paramètres d\'un club
2973
- * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3102
+ *
3103
+ * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
2974
3104
  * @param {*} [options] Override http request option.
2975
3105
  * @throws {RequiredError}
2976
3106
  * @memberof ClubSettingsManagerApi
2977
3107
  */
2978
- updateClubSettings(requestParameters, options) {
2979
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3108
+ updateReservationSettings(requestParameters, options) {
3109
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2980
3110
  }
2981
3111
  }
2982
3112
  exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
2983
3113
  /**
2984
- * ClubsApi - axios parameter creator
3114
+ * ClubSettingsStaffApi - axios parameter creator
2985
3115
  * @export
2986
3116
  */
2987
- const ClubsApiAxiosParamCreator = function (configuration) {
3117
+ const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
2988
3118
  return {
2989
3119
  /**
2990
- * Récupère la liste des clubs actifs
3120
+ *
2991
3121
  * @param {*} [options] Override http request option.
2992
3122
  * @throws {RequiredError}
2993
3123
  */
2994
- getActiveClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2995
- const localVarPath = `/api/clubs/active`;
3124
+ getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3125
+ const localVarPath = `/api/club-settings/settings/general`;
2996
3126
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2997
3127
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2998
3128
  let baseOptions;
@@ -3002,6 +3132,9 @@ const ClubsApiAxiosParamCreator = function (configuration) {
3002
3132
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3003
3133
  const localVarHeaderParameter = {};
3004
3134
  const localVarQueryParameter = {};
3135
+ // authentication bearerAuth required
3136
+ // http bearer authentication required
3137
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3005
3138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3006
3139
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3007
3140
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3011,12 +3144,12 @@ const ClubsApiAxiosParamCreator = function (configuration) {
3011
3144
  };
3012
3145
  }),
3013
3146
  /**
3014
- * Récupère la liste de tous les clubs
3147
+ *
3015
3148
  * @param {*} [options] Override http request option.
3016
3149
  * @throws {RequiredError}
3017
3150
  */
3018
- getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3019
- const localVarPath = `/api/clubs`;
3151
+ getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3152
+ const localVarPath = `/api/club-settings/hours`;
3020
3153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3021
3154
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3022
3155
  let baseOptions;
@@ -3026,6 +3159,9 @@ const ClubsApiAxiosParamCreator = function (configuration) {
3026
3159
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3027
3160
  const localVarHeaderParameter = {};
3028
3161
  const localVarQueryParameter = {};
3162
+ // authentication bearerAuth required
3163
+ // http bearer authentication required
3164
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3029
3165
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3030
3166
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3031
3167
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3036,15 +3172,11 @@ const ClubsApiAxiosParamCreator = function (configuration) {
3036
3172
  }),
3037
3173
  /**
3038
3174
  *
3039
- * @param {string} clubID
3040
3175
  * @param {*} [options] Override http request option.
3041
3176
  * @throws {RequiredError}
3042
3177
  */
3043
- getAvailableSlotsByClubById: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
3044
- // verify required parameter 'clubID' is not null or undefined
3045
- (0, common_1.assertParamExists)('getAvailableSlotsByClubById', 'clubID', clubID);
3046
- const localVarPath = `/api/clubs/{clubID}/availableSlots`
3047
- .replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
3178
+ getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3179
+ const localVarPath = `/api/club-settings/presentation`;
3048
3180
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3049
3181
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3050
3182
  let baseOptions;
@@ -3054,6 +3186,9 @@ const ClubsApiAxiosParamCreator = function (configuration) {
3054
3186
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3055
3187
  const localVarHeaderParameter = {};
3056
3188
  const localVarQueryParameter = {};
3189
+ // authentication bearerAuth required
3190
+ // http bearer authentication required
3191
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3057
3192
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3058
3193
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3059
3194
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3064,15 +3199,280 @@ const ClubsApiAxiosParamCreator = function (configuration) {
3064
3199
  }),
3065
3200
  /**
3066
3201
  *
3067
- * @param {string} id
3068
- * @param {string} sportId
3069
3202
  * @param {*} [options] Override http request option.
3070
3203
  * @throws {RequiredError}
3071
3204
  */
3072
- getAvailableSlotsBySports: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
3073
- // verify required parameter 'id' is not null or undefined
3074
- (0, common_1.assertParamExists)('getAvailableSlotsBySports', 'id', id);
3075
- // verify required parameter 'sportId' is not null or undefined
3205
+ getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3206
+ const localVarPath = `/api/club-settings/reservation`;
3207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3208
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3209
+ let baseOptions;
3210
+ if (configuration) {
3211
+ baseOptions = configuration.baseOptions;
3212
+ }
3213
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3214
+ const localVarHeaderParameter = {};
3215
+ const localVarQueryParameter = {};
3216
+ // authentication bearerAuth required
3217
+ // http bearer authentication required
3218
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3219
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3221
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3222
+ return {
3223
+ url: (0, common_1.toPathString)(localVarUrlObj),
3224
+ options: localVarRequestOptions,
3225
+ };
3226
+ }),
3227
+ };
3228
+ };
3229
+ exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator;
3230
+ /**
3231
+ * ClubSettingsStaffApi - functional programming interface
3232
+ * @export
3233
+ */
3234
+ const ClubSettingsStaffApiFp = function (configuration) {
3235
+ const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
3236
+ return {
3237
+ /**
3238
+ *
3239
+ * @param {*} [options] Override http request option.
3240
+ * @throws {RequiredError}
3241
+ */
3242
+ getClubGeneralSettings(options) {
3243
+ return __awaiter(this, void 0, void 0, function* () {
3244
+ var _a, _b, _c;
3245
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
3246
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3247
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3248
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3249
+ });
3250
+ },
3251
+ /**
3252
+ *
3253
+ * @param {*} [options] Override http request option.
3254
+ * @throws {RequiredError}
3255
+ */
3256
+ getHoursSettings(options) {
3257
+ return __awaiter(this, void 0, void 0, function* () {
3258
+ var _a, _b, _c;
3259
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
3260
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3261
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3262
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3263
+ });
3264
+ },
3265
+ /**
3266
+ *
3267
+ * @param {*} [options] Override http request option.
3268
+ * @throws {RequiredError}
3269
+ */
3270
+ getPresentationSettings(options) {
3271
+ return __awaiter(this, void 0, void 0, function* () {
3272
+ var _a, _b, _c;
3273
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
3274
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3275
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3276
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3277
+ });
3278
+ },
3279
+ /**
3280
+ *
3281
+ * @param {*} [options] Override http request option.
3282
+ * @throws {RequiredError}
3283
+ */
3284
+ getReservationSettings(options) {
3285
+ return __awaiter(this, void 0, void 0, function* () {
3286
+ var _a, _b, _c;
3287
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
3288
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3289
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3290
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3291
+ });
3292
+ },
3293
+ };
3294
+ };
3295
+ exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
3296
+ /**
3297
+ * ClubSettingsStaffApi - factory interface
3298
+ * @export
3299
+ */
3300
+ const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
3301
+ const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
3302
+ return {
3303
+ /**
3304
+ *
3305
+ * @param {*} [options] Override http request option.
3306
+ * @throws {RequiredError}
3307
+ */
3308
+ getClubGeneralSettings(options) {
3309
+ return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
3310
+ },
3311
+ /**
3312
+ *
3313
+ * @param {*} [options] Override http request option.
3314
+ * @throws {RequiredError}
3315
+ */
3316
+ getHoursSettings(options) {
3317
+ return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
3318
+ },
3319
+ /**
3320
+ *
3321
+ * @param {*} [options] Override http request option.
3322
+ * @throws {RequiredError}
3323
+ */
3324
+ getPresentationSettings(options) {
3325
+ return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
3326
+ },
3327
+ /**
3328
+ *
3329
+ * @param {*} [options] Override http request option.
3330
+ * @throws {RequiredError}
3331
+ */
3332
+ getReservationSettings(options) {
3333
+ return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
3334
+ },
3335
+ };
3336
+ };
3337
+ exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
3338
+ /**
3339
+ * ClubSettingsStaffApi - object-oriented interface
3340
+ * @export
3341
+ * @class ClubSettingsStaffApi
3342
+ * @extends {BaseAPI}
3343
+ */
3344
+ class ClubSettingsStaffApi extends base_1.BaseAPI {
3345
+ /**
3346
+ *
3347
+ * @param {*} [options] Override http request option.
3348
+ * @throws {RequiredError}
3349
+ * @memberof ClubSettingsStaffApi
3350
+ */
3351
+ getClubGeneralSettings(options) {
3352
+ return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
3353
+ }
3354
+ /**
3355
+ *
3356
+ * @param {*} [options] Override http request option.
3357
+ * @throws {RequiredError}
3358
+ * @memberof ClubSettingsStaffApi
3359
+ */
3360
+ getHoursSettings(options) {
3361
+ return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
3362
+ }
3363
+ /**
3364
+ *
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ * @memberof ClubSettingsStaffApi
3368
+ */
3369
+ getPresentationSettings(options) {
3370
+ return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
3371
+ }
3372
+ /**
3373
+ *
3374
+ * @param {*} [options] Override http request option.
3375
+ * @throws {RequiredError}
3376
+ * @memberof ClubSettingsStaffApi
3377
+ */
3378
+ getReservationSettings(options) {
3379
+ return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
3380
+ }
3381
+ }
3382
+ exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
3383
+ /**
3384
+ * ClubsApi - axios parameter creator
3385
+ * @export
3386
+ */
3387
+ const ClubsApiAxiosParamCreator = function (configuration) {
3388
+ return {
3389
+ /**
3390
+ * Récupère la liste des clubs actifs
3391
+ * @param {*} [options] Override http request option.
3392
+ * @throws {RequiredError}
3393
+ */
3394
+ getActiveClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3395
+ const localVarPath = `/api/clubs/active`;
3396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3397
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3398
+ let baseOptions;
3399
+ if (configuration) {
3400
+ baseOptions = configuration.baseOptions;
3401
+ }
3402
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3403
+ const localVarHeaderParameter = {};
3404
+ const localVarQueryParameter = {};
3405
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3407
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3408
+ return {
3409
+ url: (0, common_1.toPathString)(localVarUrlObj),
3410
+ options: localVarRequestOptions,
3411
+ };
3412
+ }),
3413
+ /**
3414
+ * Récupère la liste de tous les clubs
3415
+ * @param {*} [options] Override http request option.
3416
+ * @throws {RequiredError}
3417
+ */
3418
+ getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3419
+ const localVarPath = `/api/clubs`;
3420
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3421
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3422
+ let baseOptions;
3423
+ if (configuration) {
3424
+ baseOptions = configuration.baseOptions;
3425
+ }
3426
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3427
+ const localVarHeaderParameter = {};
3428
+ const localVarQueryParameter = {};
3429
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3431
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3432
+ return {
3433
+ url: (0, common_1.toPathString)(localVarUrlObj),
3434
+ options: localVarRequestOptions,
3435
+ };
3436
+ }),
3437
+ /**
3438
+ *
3439
+ * @param {string} clubID
3440
+ * @param {*} [options] Override http request option.
3441
+ * @throws {RequiredError}
3442
+ */
3443
+ getAvailableSlotsByClubById: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
3444
+ // verify required parameter 'clubID' is not null or undefined
3445
+ (0, common_1.assertParamExists)('getAvailableSlotsByClubById', 'clubID', clubID);
3446
+ const localVarPath = `/api/clubs/{clubID}/availableSlots`
3447
+ .replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
3448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3449
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3450
+ let baseOptions;
3451
+ if (configuration) {
3452
+ baseOptions = configuration.baseOptions;
3453
+ }
3454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3455
+ const localVarHeaderParameter = {};
3456
+ const localVarQueryParameter = {};
3457
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3458
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3459
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3460
+ return {
3461
+ url: (0, common_1.toPathString)(localVarUrlObj),
3462
+ options: localVarRequestOptions,
3463
+ };
3464
+ }),
3465
+ /**
3466
+ *
3467
+ * @param {string} id
3468
+ * @param {string} sportId
3469
+ * @param {*} [options] Override http request option.
3470
+ * @throws {RequiredError}
3471
+ */
3472
+ getAvailableSlotsBySports: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
3473
+ // verify required parameter 'id' is not null or undefined
3474
+ (0, common_1.assertParamExists)('getAvailableSlotsBySports', 'id', id);
3475
+ // verify required parameter 'sportId' is not null or undefined
3076
3476
  (0, common_1.assertParamExists)('getAvailableSlotsBySports', 'sportId', sportId);
3077
3477
  const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
3078
3478
  .replace(`{${"id"}}`, encodeURIComponent(String(id)))
@@ -4271,6 +4671,38 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
4271
4671
  options: localVarRequestOptions,
4272
4672
  };
4273
4673
  }),
4674
+ /**
4675
+ *
4676
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
4677
+ * @param {*} [options] Override http request option.
4678
+ * @throws {RequiredError}
4679
+ */
4680
+ updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
4681
+ // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
4682
+ (0, common_1.assertParamExists)('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
4683
+ const localVarPath = `/api/clubs/settings/presentation`;
4684
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4685
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4686
+ let baseOptions;
4687
+ if (configuration) {
4688
+ baseOptions = configuration.baseOptions;
4689
+ }
4690
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4691
+ const localVarHeaderParameter = {};
4692
+ const localVarQueryParameter = {};
4693
+ // authentication bearerAuth required
4694
+ // http bearer authentication required
4695
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4696
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4697
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4698
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4699
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4700
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
4701
+ return {
4702
+ url: (0, common_1.toPathString)(localVarUrlObj),
4703
+ options: localVarRequestOptions,
4704
+ };
4705
+ }),
4274
4706
  /**
4275
4707
  *
4276
4708
  * @param {string} courtId
@@ -4594,6 +5026,21 @@ const ClubsManagerApiFp = function (configuration) {
4594
5026
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4595
5027
  });
4596
5028
  },
5029
+ /**
5030
+ *
5031
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
5032
+ * @param {*} [options] Override http request option.
5033
+ * @throws {RequiredError}
5034
+ */
5035
+ updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
5036
+ return __awaiter(this, void 0, void 0, function* () {
5037
+ var _a, _b, _c;
5038
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
5039
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5040
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5041
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5042
+ });
5043
+ },
4597
5044
  /**
4598
5045
  *
4599
5046
  * @param {string} courtId
@@ -4779,6 +5226,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
4779
5226
  updateClubInfos(requestParameters, options) {
4780
5227
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
4781
5228
  },
5229
+ /**
5230
+ *
5231
+ * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5232
+ * @param {*} [options] Override http request option.
5233
+ * @throws {RequiredError}
5234
+ */
5235
+ updateClubPresentationSettings(requestParameters, options) {
5236
+ return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
5237
+ },
4782
5238
  /**
4783
5239
  *
4784
5240
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -4966,6 +5422,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
4966
5422
  updateClubInfos(requestParameters, options) {
4967
5423
  return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
4968
5424
  }
5425
+ /**
5426
+ *
5427
+ * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5428
+ * @param {*} [options] Override http request option.
5429
+ * @throws {RequiredError}
5430
+ * @memberof ClubsManagerApi
5431
+ */
5432
+ updateClubPresentationSettings(requestParameters, options) {
5433
+ return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
5434
+ }
4969
5435
  /**
4970
5436
  *
4971
5437
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -4999,8 +5465,35 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
4999
5465
  * @param {*} [options] Override http request option.
5000
5466
  * @throws {RequiredError}
5001
5467
  */
5002
- getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5003
- const localVarPath = `/api/clubs/staff/actualities`;
5468
+ getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5469
+ const localVarPath = `/api/clubs/staff/actualities`;
5470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5471
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5472
+ let baseOptions;
5473
+ if (configuration) {
5474
+ baseOptions = configuration.baseOptions;
5475
+ }
5476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5477
+ const localVarHeaderParameter = {};
5478
+ const localVarQueryParameter = {};
5479
+ // authentication bearerAuth required
5480
+ // http bearer authentication required
5481
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5482
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5484
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5485
+ return {
5486
+ url: (0, common_1.toPathString)(localVarUrlObj),
5487
+ options: localVarRequestOptions,
5488
+ };
5489
+ }),
5490
+ /**
5491
+ *
5492
+ * @param {*} [options] Override http request option.
5493
+ * @throws {RequiredError}
5494
+ */
5495
+ getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5496
+ const localVarPath = `/api/clubs/infos`;
5004
5497
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5005
5498
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5006
5499
  let baseOptions;
@@ -5022,12 +5515,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
5022
5515
  };
5023
5516
  }),
5024
5517
  /**
5025
- *
5518
+ * Récupère les membres d\'un club
5026
5519
  * @param {*} [options] Override http request option.
5027
5520
  * @throws {RequiredError}
5028
5521
  */
5029
- getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5030
- const localVarPath = `/api/clubs/infos`;
5522
+ getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5523
+ const localVarPath = `/api/clubs/members`;
5031
5524
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5032
5525
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5033
5526
  let baseOptions;
@@ -5049,12 +5542,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
5049
5542
  };
5050
5543
  }),
5051
5544
  /**
5052
- * Récupère les membres d\'un club
5545
+ *
5053
5546
  * @param {*} [options] Override http request option.
5054
5547
  * @throws {RequiredError}
5055
5548
  */
5056
- getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5057
- const localVarPath = `/api/clubs/members`;
5549
+ getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5550
+ const localVarPath = `/api/clubs/settings/presentation`;
5058
5551
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5059
5552
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5060
5553
  let baseOptions;
@@ -5239,6 +5732,20 @@ const ClubsStaffApiFp = function (configuration) {
5239
5732
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5240
5733
  });
5241
5734
  },
5735
+ /**
5736
+ *
5737
+ * @param {*} [options] Override http request option.
5738
+ * @throws {RequiredError}
5739
+ */
5740
+ getClubPresentationSettings(options) {
5741
+ return __awaiter(this, void 0, void 0, function* () {
5742
+ var _a, _b, _c;
5743
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
5744
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5745
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5746
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5747
+ });
5748
+ },
5242
5749
  /**
5243
5750
  * Récupère les rôles d\'un club
5244
5751
  * @param {*} [options] Override http request option.
@@ -5330,6 +5837,14 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
5330
5837
  getClubMembers(options) {
5331
5838
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
5332
5839
  },
5840
+ /**
5841
+ *
5842
+ * @param {*} [options] Override http request option.
5843
+ * @throws {RequiredError}
5844
+ */
5845
+ getClubPresentationSettings(options) {
5846
+ return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
5847
+ },
5333
5848
  /**
5334
5849
  * Récupère les rôles d\'un club
5335
5850
  * @param {*} [options] Override http request option.
@@ -5400,6 +5915,15 @@ class ClubsStaffApi extends base_1.BaseAPI {
5400
5915
  getClubMembers(options) {
5401
5916
  return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
5402
5917
  }
5918
+ /**
5919
+ *
5920
+ * @param {*} [options] Override http request option.
5921
+ * @throws {RequiredError}
5922
+ * @memberof ClubsStaffApi
5923
+ */
5924
+ getClubPresentationSettings(options) {
5925
+ return (0, exports.ClubsStaffApiFp)(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
5926
+ }
5403
5927
  /**
5404
5928
  * Récupère les rôles d\'un club
5405
5929
  * @param {*} [options] Override http request option.
@@ -6574,99 +7098,6 @@ class SportsManagerApi extends base_1.BaseAPI {
6574
7098
  }
6575
7099
  }
6576
7100
  exports.SportsManagerApi = SportsManagerApi;
6577
- /**
6578
- * SportsPublicApi - axios parameter creator
6579
- * @export
6580
- */
6581
- const SportsPublicApiAxiosParamCreator = function (configuration) {
6582
- return {
6583
- /**
6584
- * Récupère tous les sports vérifiés, accessibles publiquement
6585
- * @param {*} [options] Override http request option.
6586
- * @throws {RequiredError}
6587
- */
6588
- getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6589
- const localVarPath = `/api/sports/verified`;
6590
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6591
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6592
- let baseOptions;
6593
- if (configuration) {
6594
- baseOptions = configuration.baseOptions;
6595
- }
6596
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6597
- const localVarHeaderParameter = {};
6598
- const localVarQueryParameter = {};
6599
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6600
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6601
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6602
- return {
6603
- url: (0, common_1.toPathString)(localVarUrlObj),
6604
- options: localVarRequestOptions,
6605
- };
6606
- }),
6607
- };
6608
- };
6609
- exports.SportsPublicApiAxiosParamCreator = SportsPublicApiAxiosParamCreator;
6610
- /**
6611
- * SportsPublicApi - functional programming interface
6612
- * @export
6613
- */
6614
- const SportsPublicApiFp = function (configuration) {
6615
- const localVarAxiosParamCreator = (0, exports.SportsPublicApiAxiosParamCreator)(configuration);
6616
- return {
6617
- /**
6618
- * Récupère tous les sports vérifiés, accessibles publiquement
6619
- * @param {*} [options] Override http request option.
6620
- * @throws {RequiredError}
6621
- */
6622
- getVerifiedSports(options) {
6623
- return __awaiter(this, void 0, void 0, function* () {
6624
- var _a, _b, _c;
6625
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
6626
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6627
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6628
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6629
- });
6630
- },
6631
- };
6632
- };
6633
- exports.SportsPublicApiFp = SportsPublicApiFp;
6634
- /**
6635
- * SportsPublicApi - factory interface
6636
- * @export
6637
- */
6638
- const SportsPublicApiFactory = function (configuration, basePath, axios) {
6639
- const localVarFp = (0, exports.SportsPublicApiFp)(configuration);
6640
- return {
6641
- /**
6642
- * Récupère tous les sports vérifiés, accessibles publiquement
6643
- * @param {*} [options] Override http request option.
6644
- * @throws {RequiredError}
6645
- */
6646
- getVerifiedSports(options) {
6647
- return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
6648
- },
6649
- };
6650
- };
6651
- exports.SportsPublicApiFactory = SportsPublicApiFactory;
6652
- /**
6653
- * SportsPublicApi - object-oriented interface
6654
- * @export
6655
- * @class SportsPublicApi
6656
- * @extends {BaseAPI}
6657
- */
6658
- class SportsPublicApi extends base_1.BaseAPI {
6659
- /**
6660
- * Récupère tous les sports vérifiés, accessibles publiquement
6661
- * @param {*} [options] Override http request option.
6662
- * @throws {RequiredError}
6663
- * @memberof SportsPublicApi
6664
- */
6665
- getVerifiedSports(options) {
6666
- return (0, exports.SportsPublicApiFp)(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
6667
- }
6668
- }
6669
- exports.SportsPublicApi = SportsPublicApi;
6670
7101
  /**
6671
7102
  * SportsStaffApi - axios parameter creator
6672
7103
  * @export
@@ -7598,6 +8029,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
7598
8029
  options: localVarRequestOptions,
7599
8030
  };
7600
8031
  }),
8032
+ /**
8033
+ *
8034
+ * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
8035
+ * @param {*} [options] Override http request option.
8036
+ * @throws {RequiredError}
8037
+ */
8038
+ addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
8039
+ // verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
8040
+ (0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
8041
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
8042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8043
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8044
+ let baseOptions;
8045
+ if (configuration) {
8046
+ baseOptions = configuration.baseOptions;
8047
+ }
8048
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8049
+ const localVarHeaderParameter = {};
8050
+ const localVarQueryParameter = {};
8051
+ // authentication bearerAuth required
8052
+ // http bearer authentication required
8053
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8054
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8055
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8056
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8057
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8058
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
8059
+ return {
8060
+ url: (0, common_1.toPathString)(localVarUrlObj),
8061
+ options: localVarRequestOptions,
8062
+ };
8063
+ }),
7601
8064
  /**
7602
8065
  *
7603
8066
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -7630,6 +8093,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
7630
8093
  options: localVarRequestOptions,
7631
8094
  };
7632
8095
  }),
8096
+ /**
8097
+ *
8098
+ * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
8099
+ * @param {*} [options] Override http request option.
8100
+ * @throws {RequiredError}
8101
+ */
8102
+ confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
8103
+ // verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
8104
+ (0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
8105
+ const localVarPath = `/api/users/confirmPaymentMethodSetup`;
8106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8107
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8108
+ let baseOptions;
8109
+ if (configuration) {
8110
+ baseOptions = configuration.baseOptions;
8111
+ }
8112
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8113
+ const localVarHeaderParameter = {};
8114
+ const localVarQueryParameter = {};
8115
+ // authentication bearerAuth required
8116
+ // http bearer authentication required
8117
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8118
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8119
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8121
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8122
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
8123
+ return {
8124
+ url: (0, common_1.toPathString)(localVarUrlObj),
8125
+ options: localVarRequestOptions,
8126
+ };
8127
+ }),
7633
8128
  /**
7634
8129
  *
7635
8130
  * @param {*} [options] Override http request option.
@@ -8399,6 +8894,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
8399
8894
  options: localVarRequestOptions,
8400
8895
  };
8401
8896
  }),
8897
+ /**
8898
+ *
8899
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
8900
+ * @param {*} [options] Override http request option.
8901
+ * @throws {RequiredError}
8902
+ */
8903
+ setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
8904
+ // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
8905
+ (0, common_1.assertParamExists)('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
8906
+ const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
8907
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8908
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8909
+ let baseOptions;
8910
+ if (configuration) {
8911
+ baseOptions = configuration.baseOptions;
8912
+ }
8913
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8914
+ const localVarHeaderParameter = {};
8915
+ const localVarQueryParameter = {};
8916
+ // authentication bearerAuth required
8917
+ // http bearer authentication required
8918
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8919
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8920
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8921
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8922
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8923
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
8924
+ return {
8925
+ url: (0, common_1.toPathString)(localVarUrlObj),
8926
+ options: localVarRequestOptions,
8927
+ };
8928
+ }),
8402
8929
  /**
8403
8930
  *
8404
8931
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -8669,6 +9196,21 @@ const UsersApiFp = function (configuration) {
8669
9196
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8670
9197
  });
8671
9198
  },
9199
+ /**
9200
+ *
9201
+ * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
9202
+ * @param {*} [options] Override http request option.
9203
+ * @throws {RequiredError}
9204
+ */
9205
+ addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
9206
+ return __awaiter(this, void 0, void 0, function* () {
9207
+ var _a, _b, _c;
9208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
9209
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9210
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9212
+ });
9213
+ },
8672
9214
  /**
8673
9215
  *
8674
9216
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -8684,6 +9226,21 @@ const UsersApiFp = function (configuration) {
8684
9226
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8685
9227
  });
8686
9228
  },
9229
+ /**
9230
+ *
9231
+ * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
9232
+ * @param {*} [options] Override http request option.
9233
+ * @throws {RequiredError}
9234
+ */
9235
+ confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
9236
+ return __awaiter(this, void 0, void 0, function* () {
9237
+ var _a, _b, _c;
9238
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
9239
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9240
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9241
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9242
+ });
9243
+ },
8687
9244
  /**
8688
9245
  *
8689
9246
  * @param {*} [options] Override http request option.
@@ -9054,6 +9611,21 @@ const UsersApiFp = function (configuration) {
9054
9611
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9055
9612
  });
9056
9613
  },
9614
+ /**
9615
+ *
9616
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
9617
+ * @param {*} [options] Override http request option.
9618
+ * @throws {RequiredError}
9619
+ */
9620
+ setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
9621
+ return __awaiter(this, void 0, void 0, function* () {
9622
+ var _a, _b, _c;
9623
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
9624
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9625
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9626
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9627
+ });
9628
+ },
9057
9629
  /**
9058
9630
  *
9059
9631
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -9196,6 +9768,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9196
9768
  addOrganization(requestParameters, options) {
9197
9769
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
9198
9770
  },
9771
+ /**
9772
+ *
9773
+ * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
9774
+ * @param {*} [options] Override http request option.
9775
+ * @throws {RequiredError}
9776
+ */
9777
+ addPaymentMethodSetup(requestParameters, options) {
9778
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9779
+ },
9199
9780
  /**
9200
9781
  *
9201
9782
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -9205,6 +9786,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9205
9786
  changePassword(requestParameters, options) {
9206
9787
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
9207
9788
  },
9789
+ /**
9790
+ *
9791
+ * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
9792
+ * @param {*} [options] Override http request option.
9793
+ * @throws {RequiredError}
9794
+ */
9795
+ confirmPaymentMethodSetup(requestParameters, options) {
9796
+ return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9797
+ },
9208
9798
  /**
9209
9799
  *
9210
9800
  * @param {*} [options] Override http request option.
@@ -9413,6 +10003,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9413
10003
  resetPassword(requestParameters, options) {
9414
10004
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
9415
10005
  },
10006
+ /**
10007
+ *
10008
+ * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
10009
+ * @param {*} [options] Override http request option.
10010
+ * @throws {RequiredError}
10011
+ */
10012
+ setupOffSessionPaymentMethod(requestParameters, options) {
10013
+ return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
10014
+ },
9416
10015
  /**
9417
10016
  *
9418
10017
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -9516,6 +10115,16 @@ class UsersApi extends base_1.BaseAPI {
9516
10115
  addOrganization(requestParameters, options) {
9517
10116
  return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
9518
10117
  }
10118
+ /**
10119
+ *
10120
+ * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
10121
+ * @param {*} [options] Override http request option.
10122
+ * @throws {RequiredError}
10123
+ * @memberof UsersApi
10124
+ */
10125
+ addPaymentMethodSetup(requestParameters, options) {
10126
+ return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
10127
+ }
9519
10128
  /**
9520
10129
  *
9521
10130
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -9526,6 +10135,16 @@ class UsersApi extends base_1.BaseAPI {
9526
10135
  changePassword(requestParameters, options) {
9527
10136
  return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
9528
10137
  }
10138
+ /**
10139
+ *
10140
+ * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
10141
+ * @param {*} [options] Override http request option.
10142
+ * @throws {RequiredError}
10143
+ * @memberof UsersApi
10144
+ */
10145
+ confirmPaymentMethodSetup(requestParameters, options) {
10146
+ return (0, exports.UsersApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
10147
+ }
9529
10148
  /**
9530
10149
  *
9531
10150
  * @param {*} [options] Override http request option.
@@ -9758,6 +10377,16 @@ class UsersApi extends base_1.BaseAPI {
9758
10377
  resetPassword(requestParameters, options) {
9759
10378
  return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
9760
10379
  }
10380
+ /**
10381
+ *
10382
+ * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
10383
+ * @param {*} [options] Override http request option.
10384
+ * @throws {RequiredError}
10385
+ * @memberof UsersApi
10386
+ */
10387
+ setupOffSessionPaymentMethod(requestParameters, options) {
10388
+ return (0, exports.UsersApiFp)(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
10389
+ }
9761
10390
  /**
9762
10391
  *
9763
10392
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.