@tennac-booking/sdk 1.0.244 → 1.0.246

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.js CHANGED
@@ -141,6 +141,20 @@ export const DiscountType = {
141
141
  Percentage: 'percentage',
142
142
  OffPeak: 'off_peak'
143
143
  };
144
+ export const EventBookingDetailEventSummaryTypeEnum = {
145
+ Event: 'event',
146
+ Closure: 'closure'
147
+ };
148
+ export const EventBookingDetailEventSummaryRecurringTypeEnum = {
149
+ Unique: 'unique',
150
+ Daily: 'daily',
151
+ Weekly: 'weekly',
152
+ Monthly: 'monthly'
153
+ };
154
+ export const EventBookingDetailEventSummaryParticipationTypeEnum = {
155
+ Solo: 'solo',
156
+ Team: 'team'
157
+ };
144
158
  export const EventBookingDetailSummaryUserParticipationStatusEnum = {
145
159
  Participant: 'participant',
146
160
  WaitingJoinPayment: 'waitingJoinPayment',
@@ -13642,6 +13656,172 @@ export class SubscriptionsManagerApi extends BaseAPI {
13642
13656
  return SubscriptionsManagerApiFp(this.configuration).updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
13643
13657
  }
13644
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
+ }
13645
13825
  /**
13646
13826
  * SubscriptionsPublicApi - axios parameter creator
13647
13827
  * @export
@@ -15166,6 +15346,37 @@ export class SumUpManagerApi extends BaseAPI {
15166
15346
  */
15167
15347
  export const UserApiAxiosParamCreator = function (configuration) {
15168
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
+ }),
15169
15380
  /**
15170
15381
  * Récupère les informations du club de l\'utilisateur
15171
15382
  * @param {string} clubId
@@ -15208,6 +15419,21 @@ export const UserApiAxiosParamCreator = function (configuration) {
15208
15419
  export const UserApiFp = function (configuration) {
15209
15420
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
15210
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
+ },
15211
15437
  /**
15212
15438
  * Récupère les informations du club de l\'utilisateur
15213
15439
  * @param {string} clubId
@@ -15232,6 +15458,15 @@ export const UserApiFp = function (configuration) {
15232
15458
  export const UserApiFactory = function (configuration, basePath, axios) {
15233
15459
  const localVarFp = UserApiFp(configuration);
15234
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
+ },
15235
15470
  /**
15236
15471
  * Récupère les informations du club de l\'utilisateur
15237
15472
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
@@ -15250,6 +15485,16 @@ export const UserApiFactory = function (configuration, basePath, axios) {
15250
15485
  * @extends {BaseAPI}
15251
15486
  */
15252
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
+ }
15253
15498
  /**
15254
15499
  * Récupère les informations du club de l\'utilisateur
15255
15500
  * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
@@ -15485,6 +15730,37 @@ export const UsersApiAxiosParamCreator = function (configuration) {
15485
15730
  options: localVarRequestOptions,
15486
15731
  };
15487
15732
  }),
15733
+ /**
15734
+ *
15735
+ * @param {string} eventBookingId
15736
+ * @param {*} [options] Override http request option.
15737
+ * @throws {RequiredError}
15738
+ */
15739
+ getEventBookingDetail: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
15740
+ // verify required parameter 'eventBookingId' is not null or undefined
15741
+ assertParamExists('getEventBookingDetail', 'eventBookingId', eventBookingId);
15742
+ const localVarPath = `/api/users/me/event-booking-detail/{eventBookingId}`
15743
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
15744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15745
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15746
+ let baseOptions;
15747
+ if (configuration) {
15748
+ baseOptions = configuration.baseOptions;
15749
+ }
15750
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15751
+ const localVarHeaderParameter = {};
15752
+ const localVarQueryParameter = {};
15753
+ // authentication bearerAuth required
15754
+ // http bearer authentication required
15755
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15756
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15758
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15759
+ return {
15760
+ url: toPathString(localVarUrlObj),
15761
+ options: localVarRequestOptions,
15762
+ };
15763
+ }),
15488
15764
  /**
15489
15765
  *
15490
15766
  * @param {*} [options] Override http request option.
@@ -16927,6 +17203,21 @@ export const UsersApiFp = function (configuration) {
16927
17203
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16928
17204
  });
16929
17205
  },
17206
+ /**
17207
+ *
17208
+ * @param {string} eventBookingId
17209
+ * @param {*} [options] Override http request option.
17210
+ * @throws {RequiredError}
17211
+ */
17212
+ getEventBookingDetail(eventBookingId, options) {
17213
+ return __awaiter(this, void 0, void 0, function* () {
17214
+ var _a, _b, _c;
17215
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventBookingDetail(eventBookingId, options);
17216
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17217
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getEventBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17218
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17219
+ });
17220
+ },
16930
17221
  /**
16931
17222
  *
16932
17223
  * @param {*} [options] Override http request option.
@@ -17632,6 +17923,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
17632
17923
  getBookingDetail(requestParameters, options) {
17633
17924
  return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
17634
17925
  },
17926
+ /**
17927
+ *
17928
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
17929
+ * @param {*} [options] Override http request option.
17930
+ * @throws {RequiredError}
17931
+ */
17932
+ getEventBookingDetail(requestParameters, options) {
17933
+ return localVarFp.getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
17934
+ },
17635
17935
  /**
17636
17936
  *
17637
17937
  * @param {*} [options] Override http request option.
@@ -18071,6 +18371,16 @@ export class UsersApi extends BaseAPI {
18071
18371
  getBookingDetail(requestParameters, options) {
18072
18372
  return UsersApiFp(this.configuration).getBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
18073
18373
  }
18374
+ /**
18375
+ *
18376
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
18377
+ * @param {*} [options] Override http request option.
18378
+ * @throws {RequiredError}
18379
+ * @memberof UsersApi
18380
+ */
18381
+ getEventBookingDetail(requestParameters, options) {
18382
+ return UsersApiFp(this.configuration).getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
18383
+ }
18074
18384
  /**
18075
18385
  *
18076
18386
  * @param {*} [options] Override http request option.
@@ -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,26 @@
1
+ # EventBookingDetailClubInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **picture** | **string** | | [optional] [default to undefined]
11
+ **address** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { EventBookingDetailClubInfo } from '@tennac-booking/sdk';
17
+
18
+ const instance: EventBookingDetailClubInfo = {
19
+ id,
20
+ name,
21
+ picture,
22
+ address,
23
+ };
24
+ ```
25
+
26
+ [[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,56 @@
1
+ # EventBookingDetailEventSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **clubId** | **string** | | [default to undefined]
10
+ **type** | **string** | | [default to undefined]
11
+ **title** | **string** | | [default to undefined]
12
+ **category** | **string** | | [optional] [default to undefined]
13
+ **description** | **string** | | [optional] [default to undefined]
14
+ **photoUrl** | **string** | | [optional] [default to undefined]
15
+ **isAllDay** | **boolean** | | [default to undefined]
16
+ **date** | **string** | | [default to undefined]
17
+ **startTime** | **number** | | [optional] [default to undefined]
18
+ **endTime** | **number** | | [optional] [default to undefined]
19
+ **courts** | **Array<string>** | | [default to undefined]
20
+ **sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
21
+ **recurringType** | **string** | | [default to undefined]
22
+ **recurrenceEndDate** | **string** | | [optional] [default to undefined]
23
+ **participationType** | **string** | | [default to undefined]
24
+ **playersPerTeam** | **number** | | [optional] [default to undefined]
25
+ **levels** | **Array<string | null>** | | [optional] [default to undefined]
26
+ **sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
27
+
28
+ ## Example
29
+
30
+ ```typescript
31
+ import { EventBookingDetailEventSummary } from '@tennac-booking/sdk';
32
+
33
+ const instance: EventBookingDetailEventSummary = {
34
+ id,
35
+ clubId,
36
+ type,
37
+ title,
38
+ category,
39
+ description,
40
+ photoUrl,
41
+ isAllDay,
42
+ date,
43
+ startTime,
44
+ endTime,
45
+ courts,
46
+ sports,
47
+ recurringType,
48
+ recurrenceEndDate,
49
+ participationType,
50
+ playersPerTeam,
51
+ levels,
52
+ sponsors,
53
+ };
54
+ ```
55
+
56
+ [[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,28 @@
1
+ # EventBookingDetailResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **club** | [**EventBookingDetailClubInfo**](EventBookingDetailClubInfo.md) | | [default to undefined]
9
+ **event** | [**EventBookingDetailEventSummary**](EventBookingDetailEventSummary.md) | | [default to undefined]
10
+ **booking** | [**EventBookingDetailResponseBooking**](EventBookingDetailResponseBooking.md) | | [default to undefined]
11
+ **players** | [**Array<BookingPlayerPaymentSummary>**](BookingPlayerPaymentSummary.md) | | [default to undefined]
12
+ **history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { EventBookingDetailResponse } from '@tennac-booking/sdk';
18
+
19
+ const instance: EventBookingDetailResponse = {
20
+ club,
21
+ event,
22
+ booking,
23
+ players,
24
+ history,
25
+ };
26
+ ```
27
+
28
+ [[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,38 @@
1
+ # EventBookingDetailResponseBooking
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **participantsCount** | **number** | | [default to undefined]
9
+ **updatedAt** | **string** | | [default to undefined]
10
+ **createdAt** | **string** | | [default to undefined]
11
+ **limitCancellationDate** | **string** | | [optional] [default to undefined]
12
+ **limitSetupDate** | **string** | | [optional] [default to undefined]
13
+ **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
14
+ **isCreatorPayingAll** | **boolean** | | [default to undefined]
15
+ **teamName** | **string** | | [optional] [default to undefined]
16
+ **status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
17
+ **id** | **string** | | [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { EventBookingDetailResponseBooking } from '@tennac-booking/sdk';
23
+
24
+ const instance: EventBookingDetailResponseBooking = {
25
+ participantsCount,
26
+ updatedAt,
27
+ createdAt,
28
+ limitCancellationDate,
29
+ limitSetupDate,
30
+ paymentMethodSetupCompleted,
31
+ isCreatorPayingAll,
32
+ teamName,
33
+ status,
34
+ id,
35
+ };
36
+ ```
37
+
38
+ [[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)
@@ -0,0 +1,32 @@
1
+ # MyClubCustomerSettingsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **maxSlotsPerBooking** | **number** | | [default to undefined]
9
+ **maxWeeklyBookings** | **number** | | [default to undefined]
10
+ **cancellationLimitHours** | **number** | | [default to undefined]
11
+ **isBanned** | **boolean** | | [default to undefined]
12
+ **isFree** | **boolean** | | [default to undefined]
13
+ **isIllimited** | **boolean** | | [default to undefined]
14
+ **isNoShowForced** | **boolean** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { MyClubCustomerSettingsResponse } from '@tennac-booking/sdk';
20
+
21
+ const instance: MyClubCustomerSettingsResponse = {
22
+ maxSlotsPerBooking,
23
+ maxWeeklyBookings,
24
+ cancellationLimitHours,
25
+ isBanned,
26
+ isFree,
27
+ isIllimited,
28
+ isNoShowForced,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,5 +1,6 @@
1
1
  # SubscriptionPaymentSheetResponse
2
2
 
3
+ 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.
3
4
 
4
5
  ## Properties
5
6
 
@@ -11,7 +12,8 @@ Name | Type | Description | Notes
11
12
  **stripeAccountId** | **string** | | [default to undefined]
12
13
  **publishableKey** | **string** | | [default to undefined]
13
14
  **customerId** | **string** | | [default to undefined]
14
- **paymentIntentClientSecret** | **string** | | [default to undefined]
15
+ **setupIntentClientSecret** | **string** | | [optional] [default to undefined]
16
+ **paymentIntentClientSecret** | **string** | | [optional] [default to undefined]
15
17
 
16
18
  ## Example
17
19
 
@@ -25,6 +27,7 @@ const instance: SubscriptionPaymentSheetResponse = {
25
27
  stripeAccountId,
26
28
  publishableKey,
27
29
  customerId,
30
+ setupIntentClientSecret,
28
31
  paymentIntentClientSecret,
29
32
  };
30
33
  ```