@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.
package/dist/esm/api.d.ts CHANGED
@@ -1522,6 +1522,50 @@ export interface CancelBookingResponse {
1522
1522
  */
1523
1523
  'booking': BookingInfo;
1524
1524
  }
1525
+ /**
1526
+ *
1527
+ * @export
1528
+ * @interface CancelIncompleteBody
1529
+ */
1530
+ export interface CancelIncompleteBody {
1531
+ /**
1532
+ *
1533
+ * @type {string}
1534
+ * @memberof CancelIncompleteBody
1535
+ */
1536
+ 'subscriptionId': string;
1537
+ /**
1538
+ *
1539
+ * @type {string}
1540
+ * @memberof CancelIncompleteBody
1541
+ */
1542
+ 'clubId': string;
1543
+ }
1544
+ /**
1545
+ *
1546
+ * @export
1547
+ * @interface CancelIncompleteResponse
1548
+ */
1549
+ export interface CancelIncompleteResponse {
1550
+ /**
1551
+ *
1552
+ * @type {string}
1553
+ * @memberof CancelIncompleteResponse
1554
+ */
1555
+ 'subscriptionId'?: string;
1556
+ /**
1557
+ *
1558
+ * @type {string}
1559
+ * @memberof CancelIncompleteResponse
1560
+ */
1561
+ 'status'?: string;
1562
+ /**
1563
+ *
1564
+ * @type {boolean}
1565
+ * @memberof CancelIncompleteResponse
1566
+ */
1567
+ 'canceled': boolean;
1568
+ }
1525
1569
  /**
1526
1570
  *
1527
1571
  * @export
@@ -9032,6 +9076,31 @@ export interface MigrateUserRequest {
9032
9076
  */
9033
9077
  'firstName': string;
9034
9078
  }
9079
+ /**
9080
+ *
9081
+ * @export
9082
+ * @interface MobilePaymentSheetBody
9083
+ */
9084
+ export interface MobilePaymentSheetBody {
9085
+ /**
9086
+ *
9087
+ * @type {boolean}
9088
+ * @memberof MobilePaymentSheetBody
9089
+ */
9090
+ 'useEphemeralKey'?: boolean;
9091
+ /**
9092
+ *
9093
+ * @type {string}
9094
+ * @memberof MobilePaymentSheetBody
9095
+ */
9096
+ 'priceId': string;
9097
+ /**
9098
+ *
9099
+ * @type {string}
9100
+ * @memberof MobilePaymentSheetBody
9101
+ */
9102
+ 'clubId': string;
9103
+ }
9035
9104
  /**
9036
9105
  *
9037
9106
  * @export
@@ -9118,6 +9187,55 @@ export interface MonthlyTurnoverResponse {
9118
9187
  */
9119
9188
  'period': string;
9120
9189
  }
9190
+ /**
9191
+ *
9192
+ * @export
9193
+ * @interface MyClubCustomerSettingsResponse
9194
+ */
9195
+ export interface MyClubCustomerSettingsResponse {
9196
+ /**
9197
+ *
9198
+ * @type {number}
9199
+ * @memberof MyClubCustomerSettingsResponse
9200
+ */
9201
+ 'maxSlotsPerBooking': number | null;
9202
+ /**
9203
+ *
9204
+ * @type {number}
9205
+ * @memberof MyClubCustomerSettingsResponse
9206
+ */
9207
+ 'maxWeeklyBookings': number | null;
9208
+ /**
9209
+ *
9210
+ * @type {number}
9211
+ * @memberof MyClubCustomerSettingsResponse
9212
+ */
9213
+ 'cancellationLimitHours': number | null;
9214
+ /**
9215
+ *
9216
+ * @type {boolean}
9217
+ * @memberof MyClubCustomerSettingsResponse
9218
+ */
9219
+ 'isBanned': boolean;
9220
+ /**
9221
+ *
9222
+ * @type {boolean}
9223
+ * @memberof MyClubCustomerSettingsResponse
9224
+ */
9225
+ 'isFree': boolean;
9226
+ /**
9227
+ *
9228
+ * @type {boolean}
9229
+ * @memberof MyClubCustomerSettingsResponse
9230
+ */
9231
+ 'isIllimited': boolean;
9232
+ /**
9233
+ *
9234
+ * @type {boolean}
9235
+ * @memberof MyClubCustomerSettingsResponse
9236
+ */
9237
+ 'isNoShowForced': boolean;
9238
+ }
9121
9239
  /**
9122
9240
  *
9123
9241
  * @export
@@ -13422,7 +13540,7 @@ export interface SubscriptionPaymentSheetRequest {
13422
13540
  'clubId': string;
13423
13541
  }
13424
13542
  /**
13425
- *
13543
+ * 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.
13426
13544
  * @export
13427
13545
  * @interface SubscriptionPaymentSheetResponse
13428
13546
  */
@@ -25260,6 +25378,116 @@ export declare class SubscriptionsManagerApi extends BaseAPI {
25260
25378
  */
25261
25379
  updatePlan(requestParameters: SubscriptionsManagerApiUpdatePlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
25262
25380
  }
25381
+ /**
25382
+ * SubscriptionsMobileApi - axios parameter creator
25383
+ * @export
25384
+ */
25385
+ export declare const SubscriptionsMobileApiAxiosParamCreator: (configuration?: Configuration) => {
25386
+ /**
25387
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
25388
+ * @param {CancelIncompleteBody} cancelIncompleteBody
25389
+ * @param {*} [options] Override http request option.
25390
+ * @throws {RequiredError}
25391
+ */
25392
+ cancelIncomplete: (cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25393
+ /**
25394
+ * 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.
25395
+ * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
25396
+ * @param {*} [options] Override http request option.
25397
+ * @throws {RequiredError}
25398
+ */
25399
+ mobilePaymentSheet: (mobilePaymentSheetBody: MobilePaymentSheetBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25400
+ };
25401
+ /**
25402
+ * SubscriptionsMobileApi - functional programming interface
25403
+ * @export
25404
+ */
25405
+ export declare const SubscriptionsMobileApiFp: (configuration?: Configuration) => {
25406
+ /**
25407
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
25408
+ * @param {CancelIncompleteBody} cancelIncompleteBody
25409
+ * @param {*} [options] Override http request option.
25410
+ * @throws {RequiredError}
25411
+ */
25412
+ cancelIncomplete(cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelIncompleteResponse>>;
25413
+ /**
25414
+ * 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.
25415
+ * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
25416
+ * @param {*} [options] Override http request option.
25417
+ * @throws {RequiredError}
25418
+ */
25419
+ mobilePaymentSheet(mobilePaymentSheetBody: MobilePaymentSheetBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>>;
25420
+ };
25421
+ /**
25422
+ * SubscriptionsMobileApi - factory interface
25423
+ * @export
25424
+ */
25425
+ export declare const SubscriptionsMobileApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
25426
+ /**
25427
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
25428
+ * @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
25429
+ * @param {*} [options] Override http request option.
25430
+ * @throws {RequiredError}
25431
+ */
25432
+ cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse>;
25433
+ /**
25434
+ * 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.
25435
+ * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
25436
+ * @param {*} [options] Override http request option.
25437
+ * @throws {RequiredError}
25438
+ */
25439
+ mobilePaymentSheet(requestParameters: SubscriptionsMobileApiMobilePaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse>;
25440
+ };
25441
+ /**
25442
+ * Request parameters for cancelIncomplete operation in SubscriptionsMobileApi.
25443
+ * @export
25444
+ * @interface SubscriptionsMobileApiCancelIncompleteRequest
25445
+ */
25446
+ export interface SubscriptionsMobileApiCancelIncompleteRequest {
25447
+ /**
25448
+ *
25449
+ * @type {CancelIncompleteBody}
25450
+ * @memberof SubscriptionsMobileApiCancelIncomplete
25451
+ */
25452
+ readonly cancelIncompleteBody: CancelIncompleteBody;
25453
+ }
25454
+ /**
25455
+ * Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
25456
+ * @export
25457
+ * @interface SubscriptionsMobileApiMobilePaymentSheetRequest
25458
+ */
25459
+ export interface SubscriptionsMobileApiMobilePaymentSheetRequest {
25460
+ /**
25461
+ *
25462
+ * @type {MobilePaymentSheetBody}
25463
+ * @memberof SubscriptionsMobileApiMobilePaymentSheet
25464
+ */
25465
+ readonly mobilePaymentSheetBody: MobilePaymentSheetBody;
25466
+ }
25467
+ /**
25468
+ * SubscriptionsMobileApi - object-oriented interface
25469
+ * @export
25470
+ * @class SubscriptionsMobileApi
25471
+ * @extends {BaseAPI}
25472
+ */
25473
+ export declare class SubscriptionsMobileApi extends BaseAPI {
25474
+ /**
25475
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
25476
+ * @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
25477
+ * @param {*} [options] Override http request option.
25478
+ * @throws {RequiredError}
25479
+ * @memberof SubscriptionsMobileApi
25480
+ */
25481
+ cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CancelIncompleteResponse, any, {}>>;
25482
+ /**
25483
+ * 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.
25484
+ * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
25485
+ * @param {*} [options] Override http request option.
25486
+ * @throws {RequiredError}
25487
+ * @memberof SubscriptionsMobileApi
25488
+ */
25489
+ mobilePaymentSheet(requestParameters: SubscriptionsMobileApiMobilePaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionPaymentSheetResponse, any, {}>>;
25490
+ }
25263
25491
  /**
25264
25492
  * SubscriptionsPublicApi - axios parameter creator
25265
25493
  * @export
@@ -26289,6 +26517,13 @@ export declare class SumUpManagerApi extends BaseAPI {
26289
26517
  * @export
26290
26518
  */
26291
26519
  export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
26520
+ /**
26521
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
26522
+ * @param {string} clubId
26523
+ * @param {*} [options] Override http request option.
26524
+ * @throws {RequiredError}
26525
+ */
26526
+ getMyClubCustomerSettings: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26292
26527
  /**
26293
26528
  * Récupère les informations du club de l\'utilisateur
26294
26529
  * @param {string} clubId
@@ -26302,6 +26537,13 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
26302
26537
  * @export
26303
26538
  */
26304
26539
  export declare const UserApiFp: (configuration?: Configuration) => {
26540
+ /**
26541
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
26542
+ * @param {string} clubId
26543
+ * @param {*} [options] Override http request option.
26544
+ * @throws {RequiredError}
26545
+ */
26546
+ getMyClubCustomerSettings(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyClubCustomerSettingsResponse>>;
26305
26547
  /**
26306
26548
  * Récupère les informations du club de l\'utilisateur
26307
26549
  * @param {string} clubId
@@ -26315,6 +26557,13 @@ export declare const UserApiFp: (configuration?: Configuration) => {
26315
26557
  * @export
26316
26558
  */
26317
26559
  export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
26560
+ /**
26561
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
26562
+ * @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
26563
+ * @param {*} [options] Override http request option.
26564
+ * @throws {RequiredError}
26565
+ */
26566
+ getMyClubCustomerSettings(requestParameters: UserApiGetMyClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<MyClubCustomerSettingsResponse>;
26318
26567
  /**
26319
26568
  * Récupère les informations du club de l\'utilisateur
26320
26569
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
@@ -26323,6 +26572,19 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
26323
26572
  */
26324
26573
  getMyClubInfos(requestParameters: UserApiGetMyClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<MyClubInfosResponse>;
26325
26574
  };
26575
+ /**
26576
+ * Request parameters for getMyClubCustomerSettings operation in UserApi.
26577
+ * @export
26578
+ * @interface UserApiGetMyClubCustomerSettingsRequest
26579
+ */
26580
+ export interface UserApiGetMyClubCustomerSettingsRequest {
26581
+ /**
26582
+ *
26583
+ * @type {string}
26584
+ * @memberof UserApiGetMyClubCustomerSettings
26585
+ */
26586
+ readonly clubId: string;
26587
+ }
26326
26588
  /**
26327
26589
  * Request parameters for getMyClubInfos operation in UserApi.
26328
26590
  * @export
@@ -26343,6 +26605,14 @@ export interface UserApiGetMyClubInfosRequest {
26343
26605
  * @extends {BaseAPI}
26344
26606
  */
26345
26607
  export declare class UserApi extends BaseAPI {
26608
+ /**
26609
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
26610
+ * @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
26611
+ * @param {*} [options] Override http request option.
26612
+ * @throws {RequiredError}
26613
+ * @memberof UserApi
26614
+ */
26615
+ getMyClubCustomerSettings(requestParameters: UserApiGetMyClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MyClubCustomerSettingsResponse, any, {}>>;
26346
26616
  /**
26347
26617
  * Récupère les informations du club de l\'utilisateur
26348
26618
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -13656,6 +13656,172 @@ export class SubscriptionsManagerApi extends BaseAPI {
13656
13656
  return SubscriptionsManagerApiFp(this.configuration).updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
13657
13657
  }
13658
13658
  }
13659
+ /**
13660
+ * SubscriptionsMobileApi - axios parameter creator
13661
+ * @export
13662
+ */
13663
+ export const SubscriptionsMobileApiAxiosParamCreator = function (configuration) {
13664
+ return {
13665
+ /**
13666
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
13667
+ * @param {CancelIncompleteBody} cancelIncompleteBody
13668
+ * @param {*} [options] Override http request option.
13669
+ * @throws {RequiredError}
13670
+ */
13671
+ cancelIncomplete: (cancelIncompleteBody_1, ...args_1) => __awaiter(this, [cancelIncompleteBody_1, ...args_1], void 0, function* (cancelIncompleteBody, options = {}) {
13672
+ // verify required parameter 'cancelIncompleteBody' is not null or undefined
13673
+ assertParamExists('cancelIncomplete', 'cancelIncompleteBody', cancelIncompleteBody);
13674
+ const localVarPath = `/api/mobile/subscriptions/cancel-incomplete`;
13675
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13676
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13677
+ let baseOptions;
13678
+ if (configuration) {
13679
+ baseOptions = configuration.baseOptions;
13680
+ }
13681
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13682
+ const localVarHeaderParameter = {};
13683
+ const localVarQueryParameter = {};
13684
+ // authentication bearerAuth required
13685
+ // http bearer authentication required
13686
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13687
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13688
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13690
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13691
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelIncompleteBody, localVarRequestOptions, configuration);
13692
+ return {
13693
+ url: toPathString(localVarUrlObj),
13694
+ options: localVarRequestOptions,
13695
+ };
13696
+ }),
13697
+ /**
13698
+ * 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.
13699
+ * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
13700
+ * @param {*} [options] Override http request option.
13701
+ * @throws {RequiredError}
13702
+ */
13703
+ mobilePaymentSheet: (mobilePaymentSheetBody_1, ...args_1) => __awaiter(this, [mobilePaymentSheetBody_1, ...args_1], void 0, function* (mobilePaymentSheetBody, options = {}) {
13704
+ // verify required parameter 'mobilePaymentSheetBody' is not null or undefined
13705
+ assertParamExists('mobilePaymentSheet', 'mobilePaymentSheetBody', mobilePaymentSheetBody);
13706
+ const localVarPath = `/api/mobile/subscriptions/payment-sheet`;
13707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13709
+ let baseOptions;
13710
+ if (configuration) {
13711
+ baseOptions = configuration.baseOptions;
13712
+ }
13713
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13714
+ const localVarHeaderParameter = {};
13715
+ const localVarQueryParameter = {};
13716
+ // authentication bearerAuth required
13717
+ // http bearer authentication required
13718
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13719
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13720
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13722
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13723
+ localVarRequestOptions.data = serializeDataIfNeeded(mobilePaymentSheetBody, localVarRequestOptions, configuration);
13724
+ return {
13725
+ url: toPathString(localVarUrlObj),
13726
+ options: localVarRequestOptions,
13727
+ };
13728
+ }),
13729
+ };
13730
+ };
13731
+ /**
13732
+ * SubscriptionsMobileApi - functional programming interface
13733
+ * @export
13734
+ */
13735
+ export const SubscriptionsMobileApiFp = function (configuration) {
13736
+ const localVarAxiosParamCreator = SubscriptionsMobileApiAxiosParamCreator(configuration);
13737
+ return {
13738
+ /**
13739
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
13740
+ * @param {CancelIncompleteBody} cancelIncompleteBody
13741
+ * @param {*} [options] Override http request option.
13742
+ * @throws {RequiredError}
13743
+ */
13744
+ cancelIncomplete(cancelIncompleteBody, options) {
13745
+ return __awaiter(this, void 0, void 0, function* () {
13746
+ var _a, _b, _c;
13747
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelIncomplete(cancelIncompleteBody, options);
13748
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13749
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsMobileApi.cancelIncomplete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13751
+ });
13752
+ },
13753
+ /**
13754
+ * 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.
13755
+ * @param {MobilePaymentSheetBody} mobilePaymentSheetBody
13756
+ * @param {*} [options] Override http request option.
13757
+ * @throws {RequiredError}
13758
+ */
13759
+ mobilePaymentSheet(mobilePaymentSheetBody, options) {
13760
+ return __awaiter(this, void 0, void 0, function* () {
13761
+ var _a, _b, _c;
13762
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mobilePaymentSheet(mobilePaymentSheetBody, options);
13763
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13764
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsMobileApi.mobilePaymentSheet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13765
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13766
+ });
13767
+ },
13768
+ };
13769
+ };
13770
+ /**
13771
+ * SubscriptionsMobileApi - factory interface
13772
+ * @export
13773
+ */
13774
+ export const SubscriptionsMobileApiFactory = function (configuration, basePath, axios) {
13775
+ const localVarFp = SubscriptionsMobileApiFp(configuration);
13776
+ return {
13777
+ /**
13778
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
13779
+ * @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
13780
+ * @param {*} [options] Override http request option.
13781
+ * @throws {RequiredError}
13782
+ */
13783
+ cancelIncomplete(requestParameters, options) {
13784
+ return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
13785
+ },
13786
+ /**
13787
+ * 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.
13788
+ * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
13789
+ * @param {*} [options] Override http request option.
13790
+ * @throws {RequiredError}
13791
+ */
13792
+ mobilePaymentSheet(requestParameters, options) {
13793
+ return localVarFp.mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(axios, basePath));
13794
+ },
13795
+ };
13796
+ };
13797
+ /**
13798
+ * SubscriptionsMobileApi - object-oriented interface
13799
+ * @export
13800
+ * @class SubscriptionsMobileApi
13801
+ * @extends {BaseAPI}
13802
+ */
13803
+ export class SubscriptionsMobileApi extends BaseAPI {
13804
+ /**
13805
+ * Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
13806
+ * @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
13807
+ * @param {*} [options] Override http request option.
13808
+ * @throws {RequiredError}
13809
+ * @memberof SubscriptionsMobileApi
13810
+ */
13811
+ cancelIncomplete(requestParameters, options) {
13812
+ return SubscriptionsMobileApiFp(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
13813
+ }
13814
+ /**
13815
+ * 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.
13816
+ * @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
13817
+ * @param {*} [options] Override http request option.
13818
+ * @throws {RequiredError}
13819
+ * @memberof SubscriptionsMobileApi
13820
+ */
13821
+ mobilePaymentSheet(requestParameters, options) {
13822
+ return SubscriptionsMobileApiFp(this.configuration).mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(this.axios, this.basePath));
13823
+ }
13824
+ }
13659
13825
  /**
13660
13826
  * SubscriptionsPublicApi - axios parameter creator
13661
13827
  * @export
@@ -15180,6 +15346,37 @@ export class SumUpManagerApi extends BaseAPI {
15180
15346
  */
15181
15347
  export const UserApiAxiosParamCreator = function (configuration) {
15182
15348
  return {
15349
+ /**
15350
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
15351
+ * @param {string} clubId
15352
+ * @param {*} [options] Override http request option.
15353
+ * @throws {RequiredError}
15354
+ */
15355
+ getMyClubCustomerSettings: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
15356
+ // verify required parameter 'clubId' is not null or undefined
15357
+ assertParamExists('getMyClubCustomerSettings', 'clubId', clubId);
15358
+ const localVarPath = `/api/users/me/clubCustomers/{clubId}`
15359
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
15360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15362
+ let baseOptions;
15363
+ if (configuration) {
15364
+ baseOptions = configuration.baseOptions;
15365
+ }
15366
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15367
+ const localVarHeaderParameter = {};
15368
+ const localVarQueryParameter = {};
15369
+ // authentication bearerAuth required
15370
+ // http bearer authentication required
15371
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15374
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15375
+ return {
15376
+ url: toPathString(localVarUrlObj),
15377
+ options: localVarRequestOptions,
15378
+ };
15379
+ }),
15183
15380
  /**
15184
15381
  * Récupère les informations du club de l\'utilisateur
15185
15382
  * @param {string} clubId
@@ -15222,6 +15419,21 @@ export const UserApiAxiosParamCreator = function (configuration) {
15222
15419
  export const UserApiFp = function (configuration) {
15223
15420
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
15224
15421
  return {
15422
+ /**
15423
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
15424
+ * @param {string} clubId
15425
+ * @param {*} [options] Override http request option.
15426
+ * @throws {RequiredError}
15427
+ */
15428
+ getMyClubCustomerSettings(clubId, options) {
15429
+ return __awaiter(this, void 0, void 0, function* () {
15430
+ var _a, _b, _c;
15431
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubCustomerSettings(clubId, options);
15432
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15433
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.getMyClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15434
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15435
+ });
15436
+ },
15225
15437
  /**
15226
15438
  * Récupère les informations du club de l\'utilisateur
15227
15439
  * @param {string} clubId
@@ -15246,6 +15458,15 @@ export const UserApiFp = function (configuration) {
15246
15458
  export const UserApiFactory = function (configuration, basePath, axios) {
15247
15459
  const localVarFp = UserApiFp(configuration);
15248
15460
  return {
15461
+ /**
15462
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
15463
+ * @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
15464
+ * @param {*} [options] Override http request option.
15465
+ * @throws {RequiredError}
15466
+ */
15467
+ getMyClubCustomerSettings(requestParameters, options) {
15468
+ return localVarFp.getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(axios, basePath));
15469
+ },
15249
15470
  /**
15250
15471
  * Récupère les informations du club de l\'utilisateur
15251
15472
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
@@ -15264,6 +15485,16 @@ export const UserApiFactory = function (configuration, basePath, axios) {
15264
15485
  * @extends {BaseAPI}
15265
15486
  */
15266
15487
  export class UserApi extends BaseAPI {
15488
+ /**
15489
+ * Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
15490
+ * @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
15491
+ * @param {*} [options] Override http request option.
15492
+ * @throws {RequiredError}
15493
+ * @memberof UserApi
15494
+ */
15495
+ getMyClubCustomerSettings(requestParameters, options) {
15496
+ return UserApiFp(this.configuration).getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
15497
+ }
15267
15498
  /**
15268
15499
  * Récupère les informations du club de l\'utilisateur
15269
15500
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
@@ -0,0 +1,22 @@
1
+ # CancelIncompleteBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptionId** | **string** | | [default to undefined]
9
+ **clubId** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CancelIncompleteBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: CancelIncompleteBody = {
17
+ subscriptionId,
18
+ clubId,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # CancelIncompleteResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptionId** | **string** | | [optional] [default to undefined]
9
+ **status** | **string** | | [optional] [default to undefined]
10
+ **canceled** | **boolean** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { CancelIncompleteResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: CancelIncompleteResponse = {
18
+ subscriptionId,
19
+ status,
20
+ canceled,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # MobilePaymentSheetBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **useEphemeralKey** | **boolean** | | [optional] [default to undefined]
9
+ **priceId** | **string** | | [default to undefined]
10
+ **clubId** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { MobilePaymentSheetBody } from '@tennac-booking/sdk';
16
+
17
+ const instance: MobilePaymentSheetBody = {
18
+ useEphemeralKey,
19
+ priceId,
20
+ clubId,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)