@tennac-booking/sdk 1.0.88 → 1.0.89

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 (102) hide show
  1. package/.openapi-generator/FILES +247 -256
  2. package/README.md +31 -49
  3. package/api.ts +4761 -5669
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1405 -2010
  8. package/dist/api.js +483 -936
  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 +1405 -2010
  16. package/dist/esm/api.js +471 -928
  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/{ConfirmPaymentMethodRequestBody.md → AddCreditsToCustomer200Response.md} +5 -5
  28. package/docs/AddCreditsToCustomerRequest.md +22 -0
  29. package/docs/BookingClubInfo.md +28 -0
  30. package/docs/BookingCourtInfo.md +22 -0
  31. package/docs/BookingInfo.md +2 -2
  32. package/docs/BookingPaymentStatus.md +24 -0
  33. package/docs/BookingPlayerPaymentSummary.md +34 -0
  34. package/docs/BookingPopulated.md +3 -3
  35. package/docs/BookingPriceBody.md +22 -0
  36. package/docs/BookingPriceResponse.md +22 -0
  37. package/docs/BookingResponse.md +2 -0
  38. package/docs/BookingSlotInfo.md +30 -0
  39. package/docs/{ClubDaySchedule.md → BookingSportInfo.md} +7 -7
  40. package/docs/BookingSummary.md +54 -2
  41. package/docs/BookingsApi.md +55 -0
  42. package/docs/ClubAnalyticsStaffApi.md +0 -173
  43. package/docs/ClubResponse.md +8 -0
  44. package/docs/ClubSettingsManagerApi.md +60 -54
  45. package/docs/ClubSettingsResponse.md +39 -0
  46. package/docs/ClubsApi.md +1 -1
  47. package/docs/ClubsManagerApi.md +58 -52
  48. package/docs/ClubsStaffApi.md +0 -44
  49. package/docs/CreateBookingRequest.md +4 -2
  50. package/docs/CreateClubSettingsRequest.md +34 -0
  51. package/docs/CreateEventRequest.md +1 -3
  52. package/docs/{AddPaymentMethodRequestBody.md → DeleteClubSettingsResponse.md} +5 -5
  53. package/docs/EventResponse.md +1 -1
  54. package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
  55. package/docs/IUserAttributes.md +2 -12
  56. package/docs/InvoiceStatus.md +22 -0
  57. package/docs/MyClubInfosResponse.md +26 -0
  58. package/docs/PartialClubResponse.md +8 -0
  59. package/docs/PlayerPrice.md +30 -0
  60. package/docs/QuickReservationClubSport.md +22 -0
  61. package/docs/QuickReservationClubSummary.md +4 -0
  62. package/docs/SlotInfo.md +2 -2
  63. package/docs/SportsPublicApi.md +53 -0
  64. package/docs/StaffUserProfileResponse.md +2 -12
  65. package/docs/SubscribeRequestBody.md +2 -0
  66. package/docs/SubscriptionInfo.md +24 -0
  67. package/docs/UpdateClubSettingsRequest.md +32 -0
  68. package/docs/UpdateEventRequest.md +1 -1
  69. package/docs/UserApi.md +60 -0
  70. package/docs/UserBookingsResponse.md +28 -0
  71. package/docs/UserProfileResponse.md +4 -12
  72. package/docs/UsersApi.md +4 -160
  73. package/index.ts +1 -1
  74. package/package.json +1 -1
  75. package/docs/BookingDetailResponse.md +0 -46
  76. package/docs/ClubGeneralSettingsResponse.md +0 -32
  77. package/docs/ClubHoursSettingsResponse.md +0 -22
  78. package/docs/ClubLocationSettings.md +0 -26
  79. package/docs/ClubPlayerBookingItem.md +0 -36
  80. package/docs/ClubPlayerBookingsPagination.md +0 -28
  81. package/docs/ClubPlayerBookingsResponse.md +0 -24
  82. package/docs/ClubPlayerDetailResponse.md +0 -46
  83. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  84. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  85. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  86. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  87. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  88. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  89. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  90. package/docs/ClubPresentationSettingsResponse.md +0 -26
  91. package/docs/ClubPricingPeriodResponse.md +0 -30
  92. package/docs/ClubReservationSettingsResponse.md +0 -28
  93. package/docs/ClubSettingsStaffApi.md +0 -183
  94. package/docs/ClubWeeklySchedule.md +0 -32
  95. package/docs/ConfirmPaymentMethodResponse.md +0 -22
  96. package/docs/PartialClubWeeklySchedule.md +0 -33
  97. package/docs/PaymentMethodSetupResponse.md +0 -24
  98. package/docs/SetupPaymentMethodResponse.md +0 -24
  99. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  100. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  101. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  102. package/docs/UpdateClubReservationSettingsRequest.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.77
8
+ * The version of the OpenAPI document: 1.0.89
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.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;
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.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -139,6 +139,21 @@ 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
+ };
142
157
  /**
143
158
  *
144
159
  * @export
@@ -369,6 +384,38 @@ const BookingsApiAxiosParamCreator = function (configuration) {
369
384
  options: localVarRequestOptions,
370
385
  };
371
386
  }),
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
+ }),
372
419
  /**
373
420
  * Recherche des créneaux disponibles pour une réservation rapide
374
421
  * @param {number} [latitude]
@@ -379,12 +426,13 @@ const BookingsApiAxiosParamCreator = function (configuration) {
379
426
  * @param {string} [startTime]
380
427
  * @param {number} [priceMax]
381
428
  * @param {string} [courtTypes]
429
+ * @param {string} [surfaceTypes]
382
430
  * @param {number} [limitPerClub]
383
431
  * @param {number} [maxClubs]
384
432
  * @param {*} [options] Override http request option.
385
433
  * @throws {RequiredError}
386
434
  */
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 = {}) {
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 = {}) {
388
436
  const localVarPath = `/api/bookings/quick-reservations`;
389
437
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
438
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -419,8 +467,11 @@ const BookingsApiAxiosParamCreator = function (configuration) {
419
467
  if (courtTypes !== undefined) {
420
468
  localVarQueryParameter['courtTypes'] = courtTypes;
421
469
  }
470
+ if (surfaceTypes !== undefined) {
471
+ localVarQueryParameter['surfaceTypes'] = surfaceTypes;
472
+ }
422
473
  if (limitPerClub !== undefined) {
423
- localVarQueryParameter['limitPerClub'] = limitPerClub;
474
+ localVarQueryParameter['_limitPerClub'] = limitPerClub;
424
475
  }
425
476
  if (maxClubs !== undefined) {
426
477
  localVarQueryParameter['maxClubs'] = maxClubs;
@@ -458,6 +509,21 @@ const BookingsApiFp = function (configuration) {
458
509
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
459
510
  });
460
511
  },
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
+ },
461
527
  /**
462
528
  * Recherche des créneaux disponibles pour une réservation rapide
463
529
  * @param {number} [latitude]
@@ -468,15 +534,16 @@ const BookingsApiFp = function (configuration) {
468
534
  * @param {string} [startTime]
469
535
  * @param {number} [priceMax]
470
536
  * @param {string} [courtTypes]
537
+ * @param {string} [surfaceTypes]
471
538
  * @param {number} [limitPerClub]
472
539
  * @param {number} [maxClubs]
473
540
  * @param {*} [options] Override http request option.
474
541
  * @throws {RequiredError}
475
542
  */
476
- getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
543
+ getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
477
544
  return __awaiter(this, void 0, void 0, function* () {
478
545
  var _a, _b, _c;
479
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
546
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
480
547
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
481
548
  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;
482
549
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -501,6 +568,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
501
568
  getBookingHistory(requestParameters, options) {
502
569
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
503
570
  },
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
+ },
504
580
  /**
505
581
  * Recherche des créneaux disponibles pour une réservation rapide
506
582
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -508,7 +584,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
508
584
  * @throws {RequiredError}
509
585
  */
510
586
  getQuickReservationSlots(requestParameters = {}, options) {
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));
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));
512
588
  },
513
589
  };
514
590
  };
@@ -530,6 +606,16 @@ class BookingsApi extends base_1.BaseAPI {
530
606
  getBookingHistory(requestParameters, options) {
531
607
  return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
532
608
  }
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
+ }
533
619
  /**
534
620
  * Recherche des créneaux disponibles pour une réservation rapide
535
621
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -538,7 +624,7 @@ class BookingsApi extends base_1.BaseAPI {
538
624
  * @memberof BookingsApi
539
625
  */
540
626
  getQuickReservationSlots(requestParameters = {}, options) {
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));
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));
542
628
  }
543
629
  }
544
630
  exports.BookingsApi = BookingsApi;
@@ -1510,107 +1596,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1510
1596
  options: localVarRequestOptions,
1511
1597
  };
1512
1598
  }),
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
- }),
1614
1599
  /**
1615
1600
  * Récupère la liste des joueurs du club
1616
1601
  * @param {*} [options] Override http request option.
@@ -1911,53 +1896,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
1911
1896
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1912
1897
  });
1913
1898
  },
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
- },
1961
1899
  /**
1962
1900
  * Récupère la liste des joueurs du club
1963
1901
  * @param {*} [options] Override http request option.
@@ -2109,33 +2047,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2109
2047
  getAnalyticsBySport(requestParameters, options) {
2110
2048
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2111
2049
  },
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
- },
2139
2050
  /**
2140
2051
  * Récupère la liste des joueurs du club
2141
2052
  * @param {*} [options] Override http request option.
@@ -2232,36 +2143,6 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2232
2143
  getAnalyticsBySport(requestParameters, options) {
2233
2144
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2234
2145
  }
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
- }
2265
2146
  /**
2266
2147
  * Récupère la liste des joueurs du club
2267
2148
  * @param {*} [options] Override http request option.
@@ -2815,22 +2696,26 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
2815
2696
  const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
2816
2697
  return {
2817
2698
  /**
2818
- *
2819
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
2699
+ * Crée les paramètres d\'un club
2700
+ * @param {string} clubId
2701
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
2820
2702
  * @param {*} [options] Override http request option.
2821
2703
  * @throws {RequiredError}
2822
2704
  */
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`;
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)));
2827
2712
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2828
2713
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2829
2714
  let baseOptions;
2830
2715
  if (configuration) {
2831
2716
  baseOptions = configuration.baseOptions;
2832
2717
  }
2833
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2718
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2834
2719
  const localVarHeaderParameter = {};
2835
2720
  const localVarQueryParameter = {};
2836
2721
  // authentication bearerAuth required
@@ -2840,86 +2725,76 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
2840
2725
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2841
2726
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2842
2727
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2843
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
2728
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
2844
2729
  return {
2845
2730
  url: (0, common_1.toPathString)(localVarUrlObj),
2846
2731
  options: localVarRequestOptions,
2847
2732
  };
2848
2733
  }),
2849
2734
  /**
2850
- *
2851
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
2735
+ * Supprime les paramètres d\'un club
2852
2736
  * @param {*} [options] Override http request option.
2853
2737
  * @throws {RequiredError}
2854
2738
  */
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`;
2739
+ deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2740
+ const localVarPath = `/api/club-settings`;
2859
2741
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2860
2742
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2861
2743
  let baseOptions;
2862
2744
  if (configuration) {
2863
2745
  baseOptions = configuration.baseOptions;
2864
2746
  }
2865
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2747
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2866
2748
  const localVarHeaderParameter = {};
2867
2749
  const localVarQueryParameter = {};
2868
2750
  // authentication bearerAuth required
2869
2751
  // http bearer authentication required
2870
2752
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2871
- localVarHeaderParameter['Content-Type'] = 'application/json';
2872
2753
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2873
2754
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2874
2755
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2875
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
2876
2756
  return {
2877
2757
  url: (0, common_1.toPathString)(localVarUrlObj),
2878
2758
  options: localVarRequestOptions,
2879
2759
  };
2880
2760
  }),
2881
2761
  /**
2882
- *
2883
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
2762
+ * Récupère les paramètres d\'un club
2884
2763
  * @param {*} [options] Override http request option.
2885
2764
  * @throws {RequiredError}
2886
2765
  */
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`;
2766
+ getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2767
+ const localVarPath = `/api/club-settings`;
2891
2768
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2892
2769
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2893
2770
  let baseOptions;
2894
2771
  if (configuration) {
2895
2772
  baseOptions = configuration.baseOptions;
2896
2773
  }
2897
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2774
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2898
2775
  const localVarHeaderParameter = {};
2899
2776
  const localVarQueryParameter = {};
2900
2777
  // authentication bearerAuth required
2901
2778
  // http bearer authentication required
2902
2779
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2903
- localVarHeaderParameter['Content-Type'] = 'application/json';
2904
2780
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2905
2781
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2906
2782
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2907
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
2908
2783
  return {
2909
2784
  url: (0, common_1.toPathString)(localVarUrlObj),
2910
2785
  options: localVarRequestOptions,
2911
2786
  };
2912
2787
  }),
2913
2788
  /**
2914
- *
2915
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
2789
+ * Met à jour les paramètres d\'un club
2790
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2916
2791
  * @param {*} [options] Override http request option.
2917
2792
  * @throws {RequiredError}
2918
2793
  */
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`;
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`;
2923
2798
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2924
2799
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2925
2800
  let baseOptions;
@@ -2936,7 +2811,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
2936
2811
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2937
2812
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2938
2813
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2939
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
2814
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
2940
2815
  return {
2941
2816
  url: (0, common_1.toPathString)(localVarUrlObj),
2942
2817
  options: localVarRequestOptions,
@@ -2953,62 +2828,61 @@ const ClubSettingsManagerApiFp = function (configuration) {
2953
2828
  const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
2954
2829
  return {
2955
2830
  /**
2956
- *
2957
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
2831
+ * Crée les paramètres d\'un club
2832
+ * @param {string} clubId
2833
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
2958
2834
  * @param {*} [options] Override http request option.
2959
2835
  * @throws {RequiredError}
2960
2836
  */
2961
- updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
2837
+ createClubSettings(clubId, createClubSettingsRequest, options) {
2962
2838
  return __awaiter(this, void 0, void 0, function* () {
2963
2839
  var _a, _b, _c;
2964
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
2840
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
2965
2841
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
2967
2843
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2968
2844
  });
2969
2845
  },
2970
2846
  /**
2971
- *
2972
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
2847
+ * Supprime les paramètres d\'un club
2973
2848
  * @param {*} [options] Override http request option.
2974
2849
  * @throws {RequiredError}
2975
2850
  */
2976
- updateHoursSettings(updateClubHoursSettingsRequest, options) {
2851
+ deleteClubSettings(options) {
2977
2852
  return __awaiter(this, void 0, void 0, function* () {
2978
2853
  var _a, _b, _c;
2979
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
2854
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
2980
2855
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
2982
2857
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2983
2858
  });
2984
2859
  },
2985
2860
  /**
2986
- *
2987
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
2861
+ * Récupère les paramètres d\'un club
2988
2862
  * @param {*} [options] Override http request option.
2989
2863
  * @throws {RequiredError}
2990
2864
  */
2991
- updatePresentationSettings(clubPresentationSettingsResponse, options) {
2865
+ getClubSettings(options) {
2992
2866
  return __awaiter(this, void 0, void 0, function* () {
2993
2867
  var _a, _b, _c;
2994
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
2868
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
2995
2869
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
2997
2871
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2998
2872
  });
2999
2873
  },
3000
2874
  /**
3001
- *
3002
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
2875
+ * Met à jour les paramètres d\'un club
2876
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3003
2877
  * @param {*} [options] Override http request option.
3004
2878
  * @throws {RequiredError}
3005
2879
  */
3006
- updateReservationSettings(updateClubReservationSettingsRequest, options) {
2880
+ updateClubSettings(updateClubSettingsRequest, options) {
3007
2881
  return __awaiter(this, void 0, void 0, function* () {
3008
2882
  var _a, _b, _c;
3009
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
2883
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
3010
2884
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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;
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;
3012
2886
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3013
2887
  });
3014
2888
  },
@@ -3023,363 +2897,89 @@ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios)
3023
2897
  const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
3024
2898
  return {
3025
2899
  /**
3026
- *
3027
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
3028
- * @param {*} [options] Override http request option.
3029
- * @throws {RequiredError}
3030
- */
3031
- updateClubGeneralSettings(requestParameters, options) {
3032
- return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
3033
- },
3034
- /**
3035
- *
3036
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
3037
- * @param {*} [options] Override http request option.
3038
- * @throws {RequiredError}
3039
- */
3040
- updateHoursSettings(requestParameters, options) {
3041
- return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
3042
- },
3043
- /**
3044
- *
3045
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
3046
- * @param {*} [options] Override http request option.
3047
- * @throws {RequiredError}
3048
- */
3049
- updatePresentationSettings(requestParameters, options) {
3050
- return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
3051
- },
3052
- /**
3053
- *
3054
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3055
- * @param {*} [options] Override http request option.
3056
- * @throws {RequiredError}
3057
- */
3058
- updateReservationSettings(requestParameters, options) {
3059
- return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
3060
- },
3061
- };
3062
- };
3063
- exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
3064
- /**
3065
- * ClubSettingsManagerApi - object-oriented interface
3066
- * @export
3067
- * @class ClubSettingsManagerApi
3068
- * @extends {BaseAPI}
3069
- */
3070
- class ClubSettingsManagerApi extends base_1.BaseAPI {
3071
- /**
3072
- *
3073
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
3074
- * @param {*} [options] Override http request option.
3075
- * @throws {RequiredError}
3076
- * @memberof ClubSettingsManagerApi
3077
- */
3078
- updateClubGeneralSettings(requestParameters, options) {
3079
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3080
- }
3081
- /**
3082
- *
3083
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
3084
- * @param {*} [options] Override http request option.
3085
- * @throws {RequiredError}
3086
- * @memberof ClubSettingsManagerApi
3087
- */
3088
- updateHoursSettings(requestParameters, options) {
3089
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3090
- }
3091
- /**
3092
- *
3093
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
3094
- * @param {*} [options] Override http request option.
3095
- * @throws {RequiredError}
3096
- * @memberof ClubSettingsManagerApi
3097
- */
3098
- updatePresentationSettings(requestParameters, options) {
3099
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
3100
- }
3101
- /**
3102
- *
3103
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3104
- * @param {*} [options] Override http request option.
3105
- * @throws {RequiredError}
3106
- * @memberof ClubSettingsManagerApi
3107
- */
3108
- updateReservationSettings(requestParameters, options) {
3109
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3110
- }
3111
- }
3112
- exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
3113
- /**
3114
- * ClubSettingsStaffApi - axios parameter creator
3115
- * @export
3116
- */
3117
- const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3118
- return {
3119
- /**
3120
- *
3121
- * @param {*} [options] Override http request option.
3122
- * @throws {RequiredError}
3123
- */
3124
- getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3125
- const localVarPath = `/api/club-settings/settings/general`;
3126
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3127
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3128
- let baseOptions;
3129
- if (configuration) {
3130
- baseOptions = configuration.baseOptions;
3131
- }
3132
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3133
- const localVarHeaderParameter = {};
3134
- const localVarQueryParameter = {};
3135
- // authentication bearerAuth required
3136
- // http bearer authentication required
3137
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3138
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3139
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3140
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3141
- return {
3142
- url: (0, common_1.toPathString)(localVarUrlObj),
3143
- options: localVarRequestOptions,
3144
- };
3145
- }),
3146
- /**
3147
- *
3148
- * @param {*} [options] Override http request option.
3149
- * @throws {RequiredError}
3150
- */
3151
- getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3152
- const localVarPath = `/api/club-settings/hours`;
3153
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3154
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3155
- let baseOptions;
3156
- if (configuration) {
3157
- baseOptions = configuration.baseOptions;
3158
- }
3159
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3160
- const localVarHeaderParameter = {};
3161
- const localVarQueryParameter = {};
3162
- // authentication bearerAuth required
3163
- // http bearer authentication required
3164
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3165
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3166
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3167
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3168
- return {
3169
- url: (0, common_1.toPathString)(localVarUrlObj),
3170
- options: localVarRequestOptions,
3171
- };
3172
- }),
3173
- /**
3174
- *
3175
- * @param {*} [options] Override http request option.
3176
- * @throws {RequiredError}
3177
- */
3178
- getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3179
- const localVarPath = `/api/club-settings/presentation`;
3180
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3181
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3182
- let baseOptions;
3183
- if (configuration) {
3184
- baseOptions = configuration.baseOptions;
3185
- }
3186
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3187
- const localVarHeaderParameter = {};
3188
- const localVarQueryParameter = {};
3189
- // authentication bearerAuth required
3190
- // http bearer authentication required
3191
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3192
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3193
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3194
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3195
- return {
3196
- url: (0, common_1.toPathString)(localVarUrlObj),
3197
- options: localVarRequestOptions,
3198
- };
3199
- }),
3200
- /**
3201
- *
3202
- * @param {*} [options] Override http request option.
3203
- * @throws {RequiredError}
3204
- */
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
- *
2900
+ * Crée les paramètres d\'un club
2901
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3253
2902
  * @param {*} [options] Override http request option.
3254
2903
  * @throws {RequiredError}
3255
2904
  */
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
- });
2905
+ createClubSettings(requestParameters, options) {
2906
+ return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
3264
2907
  },
3265
2908
  /**
3266
- *
2909
+ * Supprime les paramètres d\'un club
3267
2910
  * @param {*} [options] Override http request option.
3268
2911
  * @throws {RequiredError}
3269
2912
  */
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
- });
2913
+ deleteClubSettings(options) {
2914
+ return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
3278
2915
  },
3279
2916
  /**
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
- *
2917
+ * Récupère les paramètres d\'un club
3321
2918
  * @param {*} [options] Override http request option.
3322
2919
  * @throws {RequiredError}
3323
2920
  */
3324
- getPresentationSettings(options) {
3325
- return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
2921
+ getClubSettings(options) {
2922
+ return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3326
2923
  },
3327
2924
  /**
3328
- *
2925
+ * Met à jour les paramètres d\'un club
2926
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3329
2927
  * @param {*} [options] Override http request option.
3330
2928
  * @throws {RequiredError}
3331
2929
  */
3332
- getReservationSettings(options) {
3333
- return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
2930
+ updateClubSettings(requestParameters, options) {
2931
+ return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
3334
2932
  },
3335
2933
  };
3336
2934
  };
3337
- exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
2935
+ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
3338
2936
  /**
3339
- * ClubSettingsStaffApi - object-oriented interface
2937
+ * ClubSettingsManagerApi - object-oriented interface
3340
2938
  * @export
3341
- * @class ClubSettingsStaffApi
2939
+ * @class ClubSettingsManagerApi
3342
2940
  * @extends {BaseAPI}
3343
2941
  */
3344
- class ClubSettingsStaffApi extends base_1.BaseAPI {
2942
+ class ClubSettingsManagerApi extends base_1.BaseAPI {
3345
2943
  /**
3346
- *
2944
+ * Crée les paramètres d\'un club
2945
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3347
2946
  * @param {*} [options] Override http request option.
3348
2947
  * @throws {RequiredError}
3349
- * @memberof ClubSettingsStaffApi
2948
+ * @memberof ClubSettingsManagerApi
3350
2949
  */
3351
- getClubGeneralSettings(options) {
3352
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
2950
+ createClubSettings(requestParameters, options) {
2951
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3353
2952
  }
3354
2953
  /**
3355
- *
2954
+ * Supprime les paramètres d\'un club
3356
2955
  * @param {*} [options] Override http request option.
3357
2956
  * @throws {RequiredError}
3358
- * @memberof ClubSettingsStaffApi
2957
+ * @memberof ClubSettingsManagerApi
3359
2958
  */
3360
- getHoursSettings(options) {
3361
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
2959
+ deleteClubSettings(options) {
2960
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
3362
2961
  }
3363
2962
  /**
3364
- *
2963
+ * Récupère les paramètres d\'un club
3365
2964
  * @param {*} [options] Override http request option.
3366
2965
  * @throws {RequiredError}
3367
- * @memberof ClubSettingsStaffApi
2966
+ * @memberof ClubSettingsManagerApi
3368
2967
  */
3369
- getPresentationSettings(options) {
3370
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
2968
+ getClubSettings(options) {
2969
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
3371
2970
  }
3372
2971
  /**
3373
- *
2972
+ * Met à jour les paramètres d\'un club
2973
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3374
2974
  * @param {*} [options] Override http request option.
3375
2975
  * @throws {RequiredError}
3376
- * @memberof ClubSettingsStaffApi
2976
+ * @memberof ClubSettingsManagerApi
3377
2977
  */
3378
- getReservationSettings(options) {
3379
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
2978
+ updateClubSettings(requestParameters, options) {
2979
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3380
2980
  }
3381
2981
  }
3382
- exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
2982
+ exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
3383
2983
  /**
3384
2984
  * ClubsApi - axios parameter creator
3385
2985
  * @export
@@ -3387,7 +2987,7 @@ exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
3387
2987
  const ClubsApiAxiosParamCreator = function (configuration) {
3388
2988
  return {
3389
2989
  /**
3390
- * Récupère la liste des clubs actifs
2990
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
3391
2991
  * @param {*} [options] Override http request option.
3392
2992
  * @throws {RequiredError}
3393
2993
  */
@@ -3736,7 +3336,7 @@ const ClubsApiFp = function (configuration) {
3736
3336
  const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
3737
3337
  return {
3738
3338
  /**
3739
- * Récupère la liste des clubs actifs
3339
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
3740
3340
  * @param {*} [options] Override http request option.
3741
3341
  * @throws {RequiredError}
3742
3342
  */
@@ -3926,7 +3526,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
3926
3526
  const localVarFp = (0, exports.ClubsApiFp)(configuration);
3927
3527
  return {
3928
3528
  /**
3929
- * Récupère la liste des clubs actifs
3529
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
3930
3530
  * @param {*} [options] Override http request option.
3931
3531
  * @throws {RequiredError}
3932
3532
  */
@@ -4040,7 +3640,7 @@ exports.ClubsApiFactory = ClubsApiFactory;
4040
3640
  */
4041
3641
  class ClubsApi extends base_1.BaseAPI {
4042
3642
  /**
4043
- * Récupère la liste des clubs actifs
3643
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
4044
3644
  * @param {*} [options] Override http request option.
4045
3645
  * @throws {RequiredError}
4046
3646
  * @memberof ClubsApi
@@ -4195,6 +3795,42 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
4195
3795
  options: localVarRequestOptions,
4196
3796
  };
4197
3797
  }),
3798
+ /**
3799
+ *
3800
+ * @param {string} userId
3801
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
3802
+ * @param {*} [options] Override http request option.
3803
+ * @throws {RequiredError}
3804
+ */
3805
+ addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
3806
+ // verify required parameter 'userId' is not null or undefined
3807
+ (0, common_1.assertParamExists)('addCreditsToCustomer', 'userId', userId);
3808
+ // verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
3809
+ (0, common_1.assertParamExists)('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
3810
+ const localVarPath = `/api/clubs/customers/{userId}/credits`
3811
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3812
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3813
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3814
+ let baseOptions;
3815
+ if (configuration) {
3816
+ baseOptions = configuration.baseOptions;
3817
+ }
3818
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3819
+ const localVarHeaderParameter = {};
3820
+ const localVarQueryParameter = {};
3821
+ // authentication bearerAuth required
3822
+ // http bearer authentication required
3823
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3824
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3825
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3826
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3827
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3828
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
3829
+ return {
3830
+ url: (0, common_1.toPathString)(localVarUrlObj),
3831
+ options: localVarRequestOptions,
3832
+ };
3833
+ }),
4198
3834
  /**
4199
3835
  *
4200
3836
  * @param {string} priceId
@@ -4671,38 +4307,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
4671
4307
  options: localVarRequestOptions,
4672
4308
  };
4673
4309
  }),
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
- }),
4706
4310
  /**
4707
4311
  *
4708
4312
  * @param {string} courtId
@@ -4800,6 +4404,22 @@ const ClubsManagerApiFp = function (configuration) {
4800
4404
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4801
4405
  });
4802
4406
  },
4407
+ /**
4408
+ *
4409
+ * @param {string} userId
4410
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
4411
+ * @param {*} [options] Override http request option.
4412
+ * @throws {RequiredError}
4413
+ */
4414
+ addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
4415
+ return __awaiter(this, void 0, void 0, function* () {
4416
+ var _a, _b, _c;
4417
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
4418
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4419
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4420
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4421
+ });
4422
+ },
4803
4423
  /**
4804
4424
  *
4805
4425
  * @param {string} priceId
@@ -5026,21 +4646,6 @@ const ClubsManagerApiFp = function (configuration) {
5026
4646
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5027
4647
  });
5028
4648
  },
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
- },
5044
4649
  /**
5045
4650
  *
5046
4651
  * @param {string} courtId
@@ -5092,6 +4697,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
5092
4697
  addClubMember(requestParameters, options) {
5093
4698
  return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
5094
4699
  },
4700
+ /**
4701
+ *
4702
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
4703
+ * @param {*} [options] Override http request option.
4704
+ * @throws {RequiredError}
4705
+ */
4706
+ addCreditsToCustomer(requestParameters, options) {
4707
+ return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
4708
+ },
5095
4709
  /**
5096
4710
  *
5097
4711
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -5226,15 +4840,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
5226
4840
  updateClubInfos(requestParameters, options) {
5227
4841
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
5228
4842
  },
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
- },
5238
4843
  /**
5239
4844
  *
5240
4845
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -5273,6 +4878,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
5273
4878
  addClubMember(requestParameters, options) {
5274
4879
  return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
5275
4880
  }
4881
+ /**
4882
+ *
4883
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
4884
+ * @param {*} [options] Override http request option.
4885
+ * @throws {RequiredError}
4886
+ * @memberof ClubsManagerApi
4887
+ */
4888
+ addCreditsToCustomer(requestParameters, options) {
4889
+ return (0, exports.ClubsManagerApiFp)(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
4890
+ }
5276
4891
  /**
5277
4892
  *
5278
4893
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -5422,16 +5037,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
5422
5037
  updateClubInfos(requestParameters, options) {
5423
5038
  return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
5424
5039
  }
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
- }
5435
5040
  /**
5436
5041
  *
5437
5042
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -5541,33 +5146,6 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
5541
5146
  options: localVarRequestOptions,
5542
5147
  };
5543
5148
  }),
5544
- /**
5545
- *
5546
- * @param {*} [options] Override http request option.
5547
- * @throws {RequiredError}
5548
- */
5549
- getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5550
- const localVarPath = `/api/clubs/settings/presentation`;
5551
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5552
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5553
- let baseOptions;
5554
- if (configuration) {
5555
- baseOptions = configuration.baseOptions;
5556
- }
5557
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5558
- const localVarHeaderParameter = {};
5559
- const localVarQueryParameter = {};
5560
- // authentication bearerAuth required
5561
- // http bearer authentication required
5562
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5563
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5564
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5565
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5566
- return {
5567
- url: (0, common_1.toPathString)(localVarUrlObj),
5568
- options: localVarRequestOptions,
5569
- };
5570
- }),
5571
5149
  /**
5572
5150
  * Récupère les rôles d\'un club
5573
5151
  * @param {*} [options] Override http request option.
@@ -5732,20 +5310,6 @@ const ClubsStaffApiFp = function (configuration) {
5732
5310
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5733
5311
  });
5734
5312
  },
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
- },
5749
5313
  /**
5750
5314
  * Récupère les rôles d\'un club
5751
5315
  * @param {*} [options] Override http request option.
@@ -5837,14 +5401,6 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
5837
5401
  getClubMembers(options) {
5838
5402
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
5839
5403
  },
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
- },
5848
5404
  /**
5849
5405
  * Récupère les rôles d\'un club
5850
5406
  * @param {*} [options] Override http request option.
@@ -5915,15 +5471,6 @@ class ClubsStaffApi extends base_1.BaseAPI {
5915
5471
  getClubMembers(options) {
5916
5472
  return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
5917
5473
  }
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
- }
5927
5474
  /**
5928
5475
  * Récupère les rôles d\'un club
5929
5476
  * @param {*} [options] Override http request option.
@@ -7048,56 +6595,149 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
7048
6595
  return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
7049
6596
  },
7050
6597
  /**
7051
- * Met à jour un sport (interdit si vérifié)
7052
- * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
6598
+ * Met à jour un sport (interdit si vérifié)
6599
+ * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
6600
+ * @param {*} [options] Override http request option.
6601
+ * @throws {RequiredError}
6602
+ */
6603
+ updateSport(requestParameters, options) {
6604
+ return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
6605
+ },
6606
+ };
6607
+ };
6608
+ exports.SportsManagerApiFactory = SportsManagerApiFactory;
6609
+ /**
6610
+ * SportsManagerApi - object-oriented interface
6611
+ * @export
6612
+ * @class SportsManagerApi
6613
+ * @extends {BaseAPI}
6614
+ */
6615
+ class SportsManagerApi extends base_1.BaseAPI {
6616
+ /**
6617
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
6618
+ * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
6619
+ * @param {*} [options] Override http request option.
6620
+ * @throws {RequiredError}
6621
+ * @memberof SportsManagerApi
6622
+ */
6623
+ createSport(requestParameters, options) {
6624
+ return (0, exports.SportsManagerApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
6625
+ }
6626
+ /**
6627
+ * Supprime un sport (interdit si vérifié)
6628
+ * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
6629
+ * @param {*} [options] Override http request option.
6630
+ * @throws {RequiredError}
6631
+ * @memberof SportsManagerApi
6632
+ */
6633
+ deleteSport(requestParameters, options) {
6634
+ return (0, exports.SportsManagerApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6635
+ }
6636
+ /**
6637
+ * Met à jour un sport (interdit si vérifié)
6638
+ * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
6639
+ * @param {*} [options] Override http request option.
6640
+ * @throws {RequiredError}
6641
+ * @memberof SportsManagerApi
6642
+ */
6643
+ updateSport(requestParameters, options) {
6644
+ return (0, exports.SportsManagerApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
6645
+ }
6646
+ }
6647
+ exports.SportsManagerApi = SportsManagerApi;
6648
+ /**
6649
+ * SportsPublicApi - axios parameter creator
6650
+ * @export
6651
+ */
6652
+ const SportsPublicApiAxiosParamCreator = function (configuration) {
6653
+ return {
6654
+ /**
6655
+ * Récupère tous les sports vérifiés, accessibles publiquement
6656
+ * @param {*} [options] Override http request option.
6657
+ * @throws {RequiredError}
6658
+ */
6659
+ getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6660
+ const localVarPath = `/api/sports/verified`;
6661
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6662
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6663
+ let baseOptions;
6664
+ if (configuration) {
6665
+ baseOptions = configuration.baseOptions;
6666
+ }
6667
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6668
+ const localVarHeaderParameter = {};
6669
+ const localVarQueryParameter = {};
6670
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6671
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6672
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6673
+ return {
6674
+ url: (0, common_1.toPathString)(localVarUrlObj),
6675
+ options: localVarRequestOptions,
6676
+ };
6677
+ }),
6678
+ };
6679
+ };
6680
+ exports.SportsPublicApiAxiosParamCreator = SportsPublicApiAxiosParamCreator;
6681
+ /**
6682
+ * SportsPublicApi - functional programming interface
6683
+ * @export
6684
+ */
6685
+ const SportsPublicApiFp = function (configuration) {
6686
+ const localVarAxiosParamCreator = (0, exports.SportsPublicApiAxiosParamCreator)(configuration);
6687
+ return {
6688
+ /**
6689
+ * Récupère tous les sports vérifiés, accessibles publiquement
6690
+ * @param {*} [options] Override http request option.
6691
+ * @throws {RequiredError}
6692
+ */
6693
+ getVerifiedSports(options) {
6694
+ return __awaiter(this, void 0, void 0, function* () {
6695
+ var _a, _b, _c;
6696
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
6697
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6698
+ 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;
6699
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6700
+ });
6701
+ },
6702
+ };
6703
+ };
6704
+ exports.SportsPublicApiFp = SportsPublicApiFp;
6705
+ /**
6706
+ * SportsPublicApi - factory interface
6707
+ * @export
6708
+ */
6709
+ const SportsPublicApiFactory = function (configuration, basePath, axios) {
6710
+ const localVarFp = (0, exports.SportsPublicApiFp)(configuration);
6711
+ return {
6712
+ /**
6713
+ * Récupère tous les sports vérifiés, accessibles publiquement
7053
6714
  * @param {*} [options] Override http request option.
7054
6715
  * @throws {RequiredError}
7055
6716
  */
7056
- updateSport(requestParameters, options) {
7057
- return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
6717
+ getVerifiedSports(options) {
6718
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
7058
6719
  },
7059
6720
  };
7060
6721
  };
7061
- exports.SportsManagerApiFactory = SportsManagerApiFactory;
6722
+ exports.SportsPublicApiFactory = SportsPublicApiFactory;
7062
6723
  /**
7063
- * SportsManagerApi - object-oriented interface
6724
+ * SportsPublicApi - object-oriented interface
7064
6725
  * @export
7065
- * @class SportsManagerApi
6726
+ * @class SportsPublicApi
7066
6727
  * @extends {BaseAPI}
7067
6728
  */
7068
- class SportsManagerApi extends base_1.BaseAPI {
7069
- /**
7070
- * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
7071
- * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
7072
- * @param {*} [options] Override http request option.
7073
- * @throws {RequiredError}
7074
- * @memberof SportsManagerApi
7075
- */
7076
- createSport(requestParameters, options) {
7077
- return (0, exports.SportsManagerApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
7078
- }
7079
- /**
7080
- * Supprime un sport (interdit si vérifié)
7081
- * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
7082
- * @param {*} [options] Override http request option.
7083
- * @throws {RequiredError}
7084
- * @memberof SportsManagerApi
7085
- */
7086
- deleteSport(requestParameters, options) {
7087
- return (0, exports.SportsManagerApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7088
- }
6729
+ class SportsPublicApi extends base_1.BaseAPI {
7089
6730
  /**
7090
- * Met à jour un sport (interdit si vérifié)
7091
- * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
6731
+ * Récupère tous les sports vérifiés, accessibles publiquement
7092
6732
  * @param {*} [options] Override http request option.
7093
6733
  * @throws {RequiredError}
7094
- * @memberof SportsManagerApi
6734
+ * @memberof SportsPublicApi
7095
6735
  */
7096
- updateSport(requestParameters, options) {
7097
- return (0, exports.SportsManagerApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
6736
+ getVerifiedSports(options) {
6737
+ return (0, exports.SportsPublicApiFp)(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
7098
6738
  }
7099
6739
  }
7100
- exports.SportsManagerApi = SportsManagerApi;
6740
+ exports.SportsPublicApi = SportsPublicApi;
7101
6741
  /**
7102
6742
  * SportsStaffApi - axios parameter creator
7103
6743
  * @export
@@ -7928,53 +7568,126 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
7928
7568
  }
7929
7569
  exports.SubscriptionsUserApi = SubscriptionsUserApi;
7930
7570
  /**
7931
- * UsersApi - axios parameter creator
7571
+ * UserApi - axios parameter creator
7932
7572
  * @export
7933
7573
  */
7934
- const UsersApiAxiosParamCreator = function (configuration) {
7574
+ const UserApiAxiosParamCreator = function (configuration) {
7935
7575
  return {
7936
7576
  /**
7937
- *
7938
- * @param {FavoriteClubRequestBody} favoriteClubRequestBody
7577
+ * Récupère les informations du club de l\'utilisateur
7578
+ * @param {string} clubId
7939
7579
  * @param {*} [options] Override http request option.
7940
7580
  * @throws {RequiredError}
7941
7581
  */
7942
- addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
7943
- // verify required parameter 'favoriteClubRequestBody' is not null or undefined
7944
- (0, common_1.assertParamExists)('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
7945
- const localVarPath = `/api/users/me/favorite-clubs`;
7582
+ getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
7583
+ // verify required parameter 'clubId' is not null or undefined
7584
+ (0, common_1.assertParamExists)('getMyClubInfos', 'clubId', clubId);
7585
+ const localVarPath = `/api/users/me/club-infos`;
7946
7586
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7947
7587
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7948
7588
  let baseOptions;
7949
7589
  if (configuration) {
7950
7590
  baseOptions = configuration.baseOptions;
7951
7591
  }
7952
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7592
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7953
7593
  const localVarHeaderParameter = {};
7954
7594
  const localVarQueryParameter = {};
7955
7595
  // authentication bearerAuth required
7956
7596
  // http bearer authentication required
7957
7597
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7958
- localVarHeaderParameter['Content-Type'] = 'application/json';
7598
+ if (clubId !== undefined) {
7599
+ localVarQueryParameter['clubId'] = clubId;
7600
+ }
7959
7601
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7960
7602
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7961
7603
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7962
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
7963
7604
  return {
7964
7605
  url: (0, common_1.toPathString)(localVarUrlObj),
7965
7606
  options: localVarRequestOptions,
7966
7607
  };
7967
7608
  }),
7609
+ };
7610
+ };
7611
+ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
7612
+ /**
7613
+ * UserApi - functional programming interface
7614
+ * @export
7615
+ */
7616
+ const UserApiFp = function (configuration) {
7617
+ const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
7618
+ return {
7619
+ /**
7620
+ * Récupère les informations du club de l\'utilisateur
7621
+ * @param {string} clubId
7622
+ * @param {*} [options] Override http request option.
7623
+ * @throws {RequiredError}
7624
+ */
7625
+ getMyClubInfos(clubId, options) {
7626
+ return __awaiter(this, void 0, void 0, function* () {
7627
+ var _a, _b, _c;
7628
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubInfos(clubId, options);
7629
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7630
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getMyClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7631
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7632
+ });
7633
+ },
7634
+ };
7635
+ };
7636
+ exports.UserApiFp = UserApiFp;
7637
+ /**
7638
+ * UserApi - factory interface
7639
+ * @export
7640
+ */
7641
+ const UserApiFactory = function (configuration, basePath, axios) {
7642
+ const localVarFp = (0, exports.UserApiFp)(configuration);
7643
+ return {
7644
+ /**
7645
+ * Récupère les informations du club de l\'utilisateur
7646
+ * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
7647
+ * @param {*} [options] Override http request option.
7648
+ * @throws {RequiredError}
7649
+ */
7650
+ getMyClubInfos(requestParameters, options) {
7651
+ return localVarFp.getMyClubInfos(requestParameters.clubId, options).then((request) => request(axios, basePath));
7652
+ },
7653
+ };
7654
+ };
7655
+ exports.UserApiFactory = UserApiFactory;
7656
+ /**
7657
+ * UserApi - object-oriented interface
7658
+ * @export
7659
+ * @class UserApi
7660
+ * @extends {BaseAPI}
7661
+ */
7662
+ class UserApi extends base_1.BaseAPI {
7663
+ /**
7664
+ * Récupère les informations du club de l\'utilisateur
7665
+ * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
7666
+ * @param {*} [options] Override http request option.
7667
+ * @throws {RequiredError}
7668
+ * @memberof UserApi
7669
+ */
7670
+ getMyClubInfos(requestParameters, options) {
7671
+ return (0, exports.UserApiFp)(this.configuration).getMyClubInfos(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
7672
+ }
7673
+ }
7674
+ exports.UserApi = UserApi;
7675
+ /**
7676
+ * UsersApi - axios parameter creator
7677
+ * @export
7678
+ */
7679
+ const UsersApiAxiosParamCreator = function (configuration) {
7680
+ return {
7968
7681
  /**
7969
7682
  *
7970
- * @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
7683
+ * @param {FavoriteClubRequestBody} favoriteClubRequestBody
7971
7684
  * @param {*} [options] Override http request option.
7972
7685
  * @throws {RequiredError}
7973
7686
  */
7974
- addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
7975
- // verify required parameter 'favoritePlayerRequestBody' is not null or undefined
7976
- (0, common_1.assertParamExists)('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
7977
- const localVarPath = `/api/users/me/favoritesPlayers`;
7687
+ addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
7688
+ // verify required parameter 'favoriteClubRequestBody' is not null or undefined
7689
+ (0, common_1.assertParamExists)('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
7690
+ const localVarPath = `/api/users/me/favorite-clubs`;
7978
7691
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7979
7692
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7980
7693
  let baseOptions;
@@ -7991,7 +7704,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
7991
7704
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7992
7705
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7993
7706
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7994
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
7707
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
7995
7708
  return {
7996
7709
  url: (0, common_1.toPathString)(localVarUrlObj),
7997
7710
  options: localVarRequestOptions,
@@ -7999,14 +7712,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
7999
7712
  }),
8000
7713
  /**
8001
7714
  *
8002
- * @param {AddOrganizationRequest} addOrganizationRequest
7715
+ * @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
8003
7716
  * @param {*} [options] Override http request option.
8004
7717
  * @throws {RequiredError}
8005
7718
  */
8006
- addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
8007
- // verify required parameter 'addOrganizationRequest' is not null or undefined
8008
- (0, common_1.assertParamExists)('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
8009
- const localVarPath = `/api/users/me/add-organization`;
7719
+ addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
7720
+ // verify required parameter 'favoritePlayerRequestBody' is not null or undefined
7721
+ (0, common_1.assertParamExists)('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
7722
+ const localVarPath = `/api/users/me/favoritesPlayers`;
8010
7723
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8011
7724
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8012
7725
  let baseOptions;
@@ -8023,7 +7736,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
8023
7736
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8024
7737
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8025
7738
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8026
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
7739
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
8027
7740
  return {
8028
7741
  url: (0, common_1.toPathString)(localVarUrlObj),
8029
7742
  options: localVarRequestOptions,
@@ -8031,14 +7744,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
8031
7744
  }),
8032
7745
  /**
8033
7746
  *
8034
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
7747
+ * @param {AddOrganizationRequest} addOrganizationRequest
8035
7748
  * @param {*} [options] Override http request option.
8036
7749
  * @throws {RequiredError}
8037
7750
  */
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`;
7751
+ addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
7752
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
7753
+ (0, common_1.assertParamExists)('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
7754
+ const localVarPath = `/api/users/me/add-organization`;
8042
7755
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8043
7756
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8044
7757
  let baseOptions;
@@ -8055,7 +7768,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
8055
7768
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8056
7769
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8057
7770
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8058
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
7771
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOrganizationRequest, localVarRequestOptions, configuration);
8059
7772
  return {
8060
7773
  url: (0, common_1.toPathString)(localVarUrlObj),
8061
7774
  options: localVarRequestOptions,
@@ -8093,38 +7806,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
8093
7806
  options: localVarRequestOptions,
8094
7807
  };
8095
7808
  }),
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
- }),
8128
7809
  /**
8129
7810
  *
8130
7811
  * @param {*} [options] Override http request option.
@@ -8894,38 +8575,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
8894
8575
  options: localVarRequestOptions,
8895
8576
  };
8896
8577
  }),
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
- }),
8929
8578
  /**
8930
8579
  *
8931
8580
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -9196,21 +8845,6 @@ const UsersApiFp = function (configuration) {
9196
8845
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9197
8846
  });
9198
8847
  },
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
- },
9214
8848
  /**
9215
8849
  *
9216
8850
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -9226,21 +8860,6 @@ const UsersApiFp = function (configuration) {
9226
8860
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9227
8861
  });
9228
8862
  },
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
- },
9244
8863
  /**
9245
8864
  *
9246
8865
  * @param {*} [options] Override http request option.
@@ -9611,21 +9230,6 @@ const UsersApiFp = function (configuration) {
9611
9230
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9612
9231
  });
9613
9232
  },
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
- },
9629
9233
  /**
9630
9234
  *
9631
9235
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -9768,15 +9372,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9768
9372
  addOrganization(requestParameters, options) {
9769
9373
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
9770
9374
  },
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
- },
9780
9375
  /**
9781
9376
  *
9782
9377
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -9786,15 +9381,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9786
9381
  changePassword(requestParameters, options) {
9787
9382
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
9788
9383
  },
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
- },
9798
9384
  /**
9799
9385
  *
9800
9386
  * @param {*} [options] Override http request option.
@@ -10003,15 +9589,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
10003
9589
  resetPassword(requestParameters, options) {
10004
9590
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
10005
9591
  },
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
- },
10015
9592
  /**
10016
9593
  *
10017
9594
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -10115,16 +9692,6 @@ class UsersApi extends base_1.BaseAPI {
10115
9692
  addOrganization(requestParameters, options) {
10116
9693
  return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
10117
9694
  }
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
- }
10128
9695
  /**
10129
9696
  *
10130
9697
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -10135,16 +9702,6 @@ class UsersApi extends base_1.BaseAPI {
10135
9702
  changePassword(requestParameters, options) {
10136
9703
  return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
10137
9704
  }
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
- }
10148
9705
  /**
10149
9706
  *
10150
9707
  * @param {*} [options] Override http request option.
@@ -10377,16 +9934,6 @@ class UsersApi extends base_1.BaseAPI {
10377
9934
  resetPassword(requestParameters, options) {
10378
9935
  return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
10379
9936
  }
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
- }
10390
9937
  /**
10391
9938
  *
10392
9939
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.