@tennac-booking/sdk 1.0.245 → 1.0.247

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.
@@ -46,6 +46,8 @@ docs/BookingsStaffApi.md
46
46
  docs/BookingsUserApi.md
47
47
  docs/BookingsWithTimeBoundsResponse.md
48
48
  docs/CancelBookingResponse.md
49
+ docs/CancelIncompleteBody.md
50
+ docs/CancelIncompleteResponse.md
49
51
  docs/CaptureResult.md
50
52
  docs/ChangePasswordRequestBody.md
51
53
  docs/ChangePasswordResponse.md
@@ -276,8 +278,10 @@ docs/MigrateSubscription200Response.md
276
278
  docs/MigrateSubscriptionRequest.md
277
279
  docs/MigrateUser200Response.md
278
280
  docs/MigrateUserRequest.md
281
+ docs/MobilePaymentSheetBody.md
279
282
  docs/MonthlyBreakdown.md
280
283
  docs/MonthlyTurnoverResponse.md
284
+ docs/MyClubCustomerSettingsResponse.md
281
285
  docs/MyClubInfosResponse.md
282
286
  docs/NoShowFeeResponse.md
283
287
  docs/NoShowRateResponse.md
@@ -403,6 +407,7 @@ docs/SubscriptionPlanDiscountUpdateRequest.md
403
407
  docs/SubscriptionPlanDiscountUpdateRequestValidFrom.md
404
408
  docs/SubscriptionPlanResponse.md
405
409
  docs/SubscriptionsManagerApi.md
410
+ docs/SubscriptionsMobileApi.md
406
411
  docs/SubscriptionsPublicApi.md
407
412
  docs/SubscriptionsStaffApi.md
408
413
  docs/SubscriptionsUserApi.md
package/README.md CHANGED
@@ -235,6 +235,8 @@ Class | Method | HTTP request | Description
235
235
  *SubscriptionsManagerApi* | [**createPlan**](docs/SubscriptionsManagerApi.md#createplan) | **POST** /api/subscriptions/plans |
236
236
  *SubscriptionsManagerApi* | [**deletePlan**](docs/SubscriptionsManagerApi.md#deleteplan) | **DELETE** /api/subscriptions/plans/{productId} |
237
237
  *SubscriptionsManagerApi* | [**updatePlan**](docs/SubscriptionsManagerApi.md#updateplan) | **PUT** /api/subscriptions/plans |
238
+ *SubscriptionsMobileApi* | [**cancelIncomplete**](docs/SubscriptionsMobileApi.md#cancelincomplete) | **POST** /api/mobile/subscriptions/cancel-incomplete |
239
+ *SubscriptionsMobileApi* | [**mobilePaymentSheet**](docs/SubscriptionsMobileApi.md#mobilepaymentsheet) | **POST** /api/mobile/subscriptions/payment-sheet |
238
240
  *SubscriptionsPublicApi* | [**getPublicPlans**](docs/SubscriptionsPublicApi.md#getpublicplans) | **GET** /api/subscriptions/plans/{clubId} |
239
241
  *SubscriptionsStaffApi* | [**getClubPlans**](docs/SubscriptionsStaffApi.md#getclubplans) | **GET** /api/subscriptions/plans |
240
242
  *SubscriptionsStaffApi* | [**sendSubscriptionInvitation**](docs/SubscriptionsStaffApi.md#sendsubscriptioninvitation) | **POST** /api/subscriptions/invitations |
@@ -255,6 +257,7 @@ Class | Method | HTTP request | Description
255
257
  *SumUpManagerApi* | [**pairSumupReader**](docs/SumUpManagerApi.md#pairsumupreader) | **POST** /api/clubs/{clubId}/sumup/readers/pair |
256
258
  *SumUpManagerApi* | [**selectSumupReader**](docs/SumUpManagerApi.md#selectsumupreader) | **POST** /api/clubs/{clubId}/sumup/readers/{readerId}/select |
257
259
  *SumUpManagerApi* | [**updateSumupReader**](docs/SumUpManagerApi.md#updatesumupreader) | **PATCH** /api/clubs/{clubId}/sumup/readers/{readerId} |
260
+ *UserApi* | [**getMyClubCustomerSettings**](docs/UserApi.md#getmyclubcustomersettings) | **GET** /api/users/me/clubCustomers/{clubId} |
258
261
  *UserApi* | [**getMyClubInfos**](docs/UserApi.md#getmyclubinfos) | **GET** /api/users/me/club-infos |
259
262
  *UsersApi* | [**addFavoriteClub**](docs/UsersApi.md#addfavoriteclub) | **POST** /api/users/me/favorite-clubs |
260
263
  *UsersApi* | [**addFavoritePlayer**](docs/UsersApi.md#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers |
@@ -360,6 +363,8 @@ Class | Method | HTTP request | Description
360
363
  - [BookingsPerDayResponse](docs/BookingsPerDayResponse.md)
361
364
  - [BookingsWithTimeBoundsResponse](docs/BookingsWithTimeBoundsResponse.md)
362
365
  - [CancelBookingResponse](docs/CancelBookingResponse.md)
366
+ - [CancelIncompleteBody](docs/CancelIncompleteBody.md)
367
+ - [CancelIncompleteResponse](docs/CancelIncompleteResponse.md)
363
368
  - [CaptureResult](docs/CaptureResult.md)
364
369
  - [ChangePasswordRequestBody](docs/ChangePasswordRequestBody.md)
365
370
  - [ChangePasswordResponse](docs/ChangePasswordResponse.md)
@@ -571,8 +576,10 @@ Class | Method | HTTP request | Description
571
576
  - [MigrateSubscriptionRequest](docs/MigrateSubscriptionRequest.md)
572
577
  - [MigrateUser200Response](docs/MigrateUser200Response.md)
573
578
  - [MigrateUserRequest](docs/MigrateUserRequest.md)
579
+ - [MobilePaymentSheetBody](docs/MobilePaymentSheetBody.md)
574
580
  - [MonthlyBreakdown](docs/MonthlyBreakdown.md)
575
581
  - [MonthlyTurnoverResponse](docs/MonthlyTurnoverResponse.md)
582
+ - [MyClubCustomerSettingsResponse](docs/MyClubCustomerSettingsResponse.md)
576
583
  - [MyClubInfosResponse](docs/MyClubInfosResponse.md)
577
584
  - [NoShowFeeResponse](docs/NoShowFeeResponse.md)
578
585
  - [NoShowRateResponse](docs/NoShowRateResponse.md)
package/api.ts CHANGED
@@ -1556,6 +1556,50 @@ export interface CancelBookingResponse {
1556
1556
  */
1557
1557
  'booking': BookingInfo;
1558
1558
  }
1559
+ /**
1560
+ *
1561
+ * @export
1562
+ * @interface CancelIncompleteBody
1563
+ */
1564
+ export interface CancelIncompleteBody {
1565
+ /**
1566
+ *
1567
+ * @type {string}
1568
+ * @memberof CancelIncompleteBody
1569
+ */
1570
+ 'subscriptionId': string;
1571
+ /**
1572
+ *
1573
+ * @type {string}
1574
+ * @memberof CancelIncompleteBody
1575
+ */
1576
+ 'clubId': string;
1577
+ }
1578
+ /**
1579
+ *
1580
+ * @export
1581
+ * @interface CancelIncompleteResponse
1582
+ */
1583
+ export interface CancelIncompleteResponse {
1584
+ /**
1585
+ *
1586
+ * @type {string}
1587
+ * @memberof CancelIncompleteResponse
1588
+ */
1589
+ 'subscriptionId'?: string;
1590
+ /**
1591
+ *
1592
+ * @type {string}
1593
+ * @memberof CancelIncompleteResponse
1594
+ */
1595
+ 'status'?: string;
1596
+ /**
1597
+ *
1598
+ * @type {boolean}
1599
+ * @memberof CancelIncompleteResponse
1600
+ */
1601
+ 'canceled': boolean;
1602
+ }
1559
1603
  /**
1560
1604
  *
1561
1605
  * @export
@@ -9157,6 +9201,31 @@ export interface MigrateUserRequest {
9157
9201
  */
9158
9202
  'firstName': string;
9159
9203
  }
9204
+ /**
9205
+ *
9206
+ * @export
9207
+ * @interface MobilePaymentSheetBody
9208
+ */
9209
+ export interface MobilePaymentSheetBody {
9210
+ /**
9211
+ *
9212
+ * @type {boolean}
9213
+ * @memberof MobilePaymentSheetBody
9214
+ */
9215
+ 'useEphemeralKey'?: boolean;
9216
+ /**
9217
+ *
9218
+ * @type {string}
9219
+ * @memberof MobilePaymentSheetBody
9220
+ */
9221
+ 'priceId': string;
9222
+ /**
9223
+ *
9224
+ * @type {string}
9225
+ * @memberof MobilePaymentSheetBody
9226
+ */
9227
+ 'clubId': string;
9228
+ }
9160
9229
  /**
9161
9230
  *
9162
9231
  * @export
@@ -9245,6 +9314,55 @@ export interface MonthlyTurnoverResponse {
9245
9314
  }
9246
9315
 
9247
9316
 
9317
+ /**
9318
+ *
9319
+ * @export
9320
+ * @interface MyClubCustomerSettingsResponse
9321
+ */
9322
+ export interface MyClubCustomerSettingsResponse {
9323
+ /**
9324
+ *
9325
+ * @type {number}
9326
+ * @memberof MyClubCustomerSettingsResponse
9327
+ */
9328
+ 'maxSlotsPerBooking': number | null;
9329
+ /**
9330
+ *
9331
+ * @type {number}
9332
+ * @memberof MyClubCustomerSettingsResponse
9333
+ */
9334
+ 'maxWeeklyBookings': number | null;
9335
+ /**
9336
+ *
9337
+ * @type {number}
9338
+ * @memberof MyClubCustomerSettingsResponse
9339
+ */
9340
+ 'cancellationLimitHours': number | null;
9341
+ /**
9342
+ *
9343
+ * @type {boolean}
9344
+ * @memberof MyClubCustomerSettingsResponse
9345
+ */
9346
+ 'isBanned': boolean;
9347
+ /**
9348
+ *
9349
+ * @type {boolean}
9350
+ * @memberof MyClubCustomerSettingsResponse
9351
+ */
9352
+ 'isFree': boolean;
9353
+ /**
9354
+ *
9355
+ * @type {boolean}
9356
+ * @memberof MyClubCustomerSettingsResponse
9357
+ */
9358
+ 'isIllimited': boolean;
9359
+ /**
9360
+ *
9361
+ * @type {boolean}
9362
+ * @memberof MyClubCustomerSettingsResponse
9363
+ */
9364
+ 'isNoShowForced': boolean;
9365
+ }
9248
9366
  /**
9249
9367
  *
9250
9368
  * @export
@@ -13639,7 +13757,7 @@ export interface SubscriptionPaymentSheetRequest {
13639
13757
  'clubId': string;
13640
13758
  }
13641
13759
  /**
13642
- *
13760
+ * Réponse utilisée pour préparer la PaymentSheet mobile. Si `paymentIntentClientSecret` est undefined et amount est 0, la subscription est déjà active/gratuite.
13643
13761
  * @export
13644
13762
  * @interface SubscriptionPaymentSheetResponse
13645
13763
  */
@@ -33678,6 +33796,215 @@ export class SubscriptionsManagerApi extends BaseAPI {
33678
33796
 
33679
33797
 
33680
33798
 
33799
+ /**
33800
+ * SubscriptionsMobileApi - axios parameter creator
33801
+ * @export
33802
+ */
33803
+ export const SubscriptionsMobileApiAxiosParamCreator = function (configuration?: Configuration) {
33804
+ return {
33805
+ /**
33806
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
33807
+ * @param {CancelIncompleteBody} cancelIncompleteBody
33808
+ * @param {*} [options] Override http request option.
33809
+ * @throws {RequiredError}
33810
+ */
33811
+ cancelIncomplete: async (cancelIncompleteBody: CancelIncompleteBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33812
+ // verify required parameter 'cancelIncompleteBody' is not null or undefined
33813
+ assertParamExists('cancelIncomplete', 'cancelIncompleteBody', cancelIncompleteBody)
33814
+ const localVarPath = `/api/mobile/subscriptions/cancel-incomplete`;
33815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33817
+ let baseOptions;
33818
+ if (configuration) {
33819
+ baseOptions = configuration.baseOptions;
33820
+ }
33821
+
33822
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33823
+ const localVarHeaderParameter = {} as any;
33824
+ const localVarQueryParameter = {} as any;
33825
+
33826
+ // authentication bearerAuth required
33827
+ // http bearer authentication required
33828
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33829
+
33830
+
33831
+
33832
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33833
+
33834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33836
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33837
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelIncompleteBody, localVarRequestOptions, configuration)
33838
+
33839
+ return {
33840
+ url: toPathString(localVarUrlObj),
33841
+ options: localVarRequestOptions,
33842
+ };
33843
+ },
33844
+ /**
33845
+ * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33846
+ * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
33847
+ * @param {*} [options] Override http request option.
33848
+ * @throws {RequiredError}
33849
+ */
33850
+ mobilePaymentSheet: async (mobilePaymentSheetBody: MobilePaymentSheetBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33851
+ // verify required parameter 'mobilePaymentSheetBody' is not null or undefined
33852
+ assertParamExists('mobilePaymentSheet', 'mobilePaymentSheetBody', mobilePaymentSheetBody)
33853
+ const localVarPath = `/api/mobile/subscriptions/payment-sheet`;
33854
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33855
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33856
+ let baseOptions;
33857
+ if (configuration) {
33858
+ baseOptions = configuration.baseOptions;
33859
+ }
33860
+
33861
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33862
+ const localVarHeaderParameter = {} as any;
33863
+ const localVarQueryParameter = {} as any;
33864
+
33865
+ // authentication bearerAuth required
33866
+ // http bearer authentication required
33867
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33868
+
33869
+
33870
+
33871
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33872
+
33873
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33875
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33876
+ localVarRequestOptions.data = serializeDataIfNeeded(mobilePaymentSheetBody, localVarRequestOptions, configuration)
33877
+
33878
+ return {
33879
+ url: toPathString(localVarUrlObj),
33880
+ options: localVarRequestOptions,
33881
+ };
33882
+ },
33883
+ }
33884
+ };
33885
+
33886
+ /**
33887
+ * SubscriptionsMobileApi - functional programming interface
33888
+ * @export
33889
+ */
33890
+ export const SubscriptionsMobileApiFp = function(configuration?: Configuration) {
33891
+ const localVarAxiosParamCreator = SubscriptionsMobileApiAxiosParamCreator(configuration)
33892
+ return {
33893
+ /**
33894
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
33895
+ * @param {CancelIncompleteBody} cancelIncompleteBody
33896
+ * @param {*} [options] Override http request option.
33897
+ * @throws {RequiredError}
33898
+ */
33899
+ async cancelIncomplete(cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelIncompleteResponse>> {
33900
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelIncomplete(cancelIncompleteBody, options);
33901
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33902
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.cancelIncomplete']?.[localVarOperationServerIndex]?.url;
33903
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33904
+ },
33905
+ /**
33906
+ * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33907
+ * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
33908
+ * @param {*} [options] Override http request option.
33909
+ * @throws {RequiredError}
33910
+ */
33911
+ async mobilePaymentSheet(mobilePaymentSheetBody: MobilePaymentSheetBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>> {
33912
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mobilePaymentSheet(mobilePaymentSheetBody, options);
33913
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33914
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.mobilePaymentSheet']?.[localVarOperationServerIndex]?.url;
33915
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33916
+ },
33917
+ }
33918
+ };
33919
+
33920
+ /**
33921
+ * SubscriptionsMobileApi - factory interface
33922
+ * @export
33923
+ */
33924
+ export const SubscriptionsMobileApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
33925
+ const localVarFp = SubscriptionsMobileApiFp(configuration)
33926
+ return {
33927
+ /**
33928
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
33929
+ * @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
33930
+ * @param {*} [options] Override http request option.
33931
+ * @throws {RequiredError}
33932
+ */
33933
+ cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse> {
33934
+ return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
33935
+ },
33936
+ /**
33937
+ * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33938
+ * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
33939
+ * @param {*} [options] Override http request option.
33940
+ * @throws {RequiredError}
33941
+ */
33942
+ mobilePaymentSheet(requestParameters: SubscriptionsMobileApiMobilePaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse> {
33943
+ return localVarFp.mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(axios, basePath));
33944
+ },
33945
+ };
33946
+ };
33947
+
33948
+ /**
33949
+ * Request parameters for cancelIncomplete operation in SubscriptionsMobileApi.
33950
+ * @export
33951
+ * @interface SubscriptionsMobileApiCancelIncompleteRequest
33952
+ */
33953
+ export interface SubscriptionsMobileApiCancelIncompleteRequest {
33954
+ /**
33955
+ *
33956
+ * @type {CancelIncompleteBody}
33957
+ * @memberof SubscriptionsMobileApiCancelIncomplete
33958
+ */
33959
+ readonly cancelIncompleteBody: CancelIncompleteBody
33960
+ }
33961
+
33962
+ /**
33963
+ * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
33964
+ * @export
33965
+ * @interface SubscriptionsMobileApiMobilePaymentSheetRequest
33966
+ */
33967
+ export interface SubscriptionsMobileApiMobilePaymentSheetRequest {
33968
+ /**
33969
+ *
33970
+ * @type {MobilePaymentSheetBody}
33971
+ * @memberof SubscriptionsMobileApiMobilePaymentSheet
33972
+ */
33973
+ readonly mobilePaymentSheetBody: MobilePaymentSheetBody
33974
+ }
33975
+
33976
+ /**
33977
+ * SubscriptionsMobileApi - object-oriented interface
33978
+ * @export
33979
+ * @class SubscriptionsMobileApi
33980
+ * @extends {BaseAPI}
33981
+ */
33982
+ export class SubscriptionsMobileApi extends BaseAPI {
33983
+ /**
33984
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
33985
+ * @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
33986
+ * @param {*} [options] Override http request option.
33987
+ * @throws {RequiredError}
33988
+ * @memberof SubscriptionsMobileApi
33989
+ */
33990
+ public cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig) {
33991
+ return SubscriptionsMobileApiFp(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
33992
+ }
33993
+
33994
+ /**
33995
+ * Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
33996
+ * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
33997
+ * @param {*} [options] Override http request option.
33998
+ * @throws {RequiredError}
33999
+ * @memberof SubscriptionsMobileApi
34000
+ */
34001
+ public mobilePaymentSheet(requestParameters: SubscriptionsMobileApiMobilePaymentSheetRequest, options?: RawAxiosRequestConfig) {
34002
+ return SubscriptionsMobileApiFp(this.configuration).mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(this.axios, this.basePath));
34003
+ }
34004
+ }
34005
+
34006
+
34007
+
33681
34008
  /**
33682
34009
  * SubscriptionsPublicApi - axios parameter creator
33683
34010
  * @export
@@ -35643,6 +35970,43 @@ export class SumUpManagerApi extends BaseAPI {
35643
35970
  */
35644
35971
  export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
35645
35972
  return {
35973
+ /**
35974
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
35975
+ * @param {string} clubId
35976
+ * @param {*} [options] Override http request option.
35977
+ * @throws {RequiredError}
35978
+ */
35979
+ getMyClubCustomerSettings: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35980
+ // verify required parameter 'clubId' is not null or undefined
35981
+ assertParamExists('getMyClubCustomerSettings', 'clubId', clubId)
35982
+ const localVarPath = `/api/users/me/clubCustomers/{clubId}`
35983
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
35984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35986
+ let baseOptions;
35987
+ if (configuration) {
35988
+ baseOptions = configuration.baseOptions;
35989
+ }
35990
+
35991
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35992
+ const localVarHeaderParameter = {} as any;
35993
+ const localVarQueryParameter = {} as any;
35994
+
35995
+ // authentication bearerAuth required
35996
+ // http bearer authentication required
35997
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
35998
+
35999
+
36000
+
36001
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
36002
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36003
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
36004
+
36005
+ return {
36006
+ url: toPathString(localVarUrlObj),
36007
+ options: localVarRequestOptions,
36008
+ };
36009
+ },
35646
36010
  /**
35647
36011
  * Récupère les informations du club de l\'utilisateur
35648
36012
  * @param {string} clubId
@@ -35693,6 +36057,18 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
35693
36057
  export const UserApiFp = function(configuration?: Configuration) {
35694
36058
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
35695
36059
  return {
36060
+ /**
36061
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
36062
+ * @param {string} clubId
36063
+ * @param {*} [options] Override http request option.
36064
+ * @throws {RequiredError}
36065
+ */
36066
+ async getMyClubCustomerSettings(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyClubCustomerSettingsResponse>> {
36067
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClubCustomerSettings(clubId, options);
36068
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36069
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getMyClubCustomerSettings']?.[localVarOperationServerIndex]?.url;
36070
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36071
+ },
35696
36072
  /**
35697
36073
  * Récupère les informations du club de l\'utilisateur
35698
36074
  * @param {string} clubId
@@ -35715,6 +36091,15 @@ export const UserApiFp = function(configuration?: Configuration) {
35715
36091
  export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
35716
36092
  const localVarFp = UserApiFp(configuration)
35717
36093
  return {
36094
+ /**
36095
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
36096
+ * @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
36097
+ * @param {*} [options] Override http request option.
36098
+ * @throws {RequiredError}
36099
+ */
36100
+ getMyClubCustomerSettings(requestParameters: UserApiGetMyClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<MyClubCustomerSettingsResponse> {
36101
+ return localVarFp.getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(axios, basePath));
36102
+ },
35718
36103
  /**
35719
36104
  * Récupère les informations du club de l\'utilisateur
35720
36105
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
@@ -35727,6 +36112,20 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
35727
36112
  };
35728
36113
  };
35729
36114
 
36115
+ /**
36116
+ * Request parameters for getMyClubCustomerSettings operation in UserApi.
36117
+ * @export
36118
+ * @interface UserApiGetMyClubCustomerSettingsRequest
36119
+ */
36120
+ export interface UserApiGetMyClubCustomerSettingsRequest {
36121
+ /**
36122
+ *
36123
+ * @type {string}
36124
+ * @memberof UserApiGetMyClubCustomerSettings
36125
+ */
36126
+ readonly clubId: string
36127
+ }
36128
+
35730
36129
  /**
35731
36130
  * Request parameters for getMyClubInfos operation in UserApi.
35732
36131
  * @export
@@ -35748,6 +36147,17 @@ export interface UserApiGetMyClubInfosRequest {
35748
36147
  * @extends {BaseAPI}
35749
36148
  */
35750
36149
  export class UserApi extends BaseAPI {
36150
+ /**
36151
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
36152
+ * @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
36153
+ * @param {*} [options] Override http request option.
36154
+ * @throws {RequiredError}
36155
+ * @memberof UserApi
36156
+ */
36157
+ public getMyClubCustomerSettings(requestParameters: UserApiGetMyClubCustomerSettingsRequest, options?: RawAxiosRequestConfig) {
36158
+ return UserApiFp(this.configuration).getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
36159
+ }
36160
+
35751
36161
  /**
35752
36162
  * Récupère les informations du club de l\'utilisateur
35753
36163
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.