@tennac-booking/sdk 1.0.243 → 1.0.245

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',
@@ -13668,6 +13682,9 @@ export const SubscriptionsPublicApiAxiosParamCreator = function (configuration)
13668
13682
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13669
13683
  const localVarHeaderParameter = {};
13670
13684
  const localVarQueryParameter = {};
13685
+ // authentication bearerAuth required
13686
+ // http bearer authentication required
13687
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13671
13688
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13672
13689
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13673
13690
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -14031,6 +14048,38 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
14031
14048
  options: localVarRequestOptions,
14032
14049
  };
14033
14050
  }),
14051
+ /**
14052
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
14053
+ * @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
14054
+ * @param {*} [options] Override http request option.
14055
+ * @throws {RequiredError}
14056
+ */
14057
+ subscriptionPaymentSheet: (subscriptionPaymentSheetRequest_1, ...args_1) => __awaiter(this, [subscriptionPaymentSheetRequest_1, ...args_1], void 0, function* (subscriptionPaymentSheetRequest, options = {}) {
14058
+ // verify required parameter 'subscriptionPaymentSheetRequest' is not null or undefined
14059
+ assertParamExists('subscriptionPaymentSheet', 'subscriptionPaymentSheetRequest', subscriptionPaymentSheetRequest);
14060
+ const localVarPath = `/api/subscriptions/payment-sheet`;
14061
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14063
+ let baseOptions;
14064
+ if (configuration) {
14065
+ baseOptions = configuration.baseOptions;
14066
+ }
14067
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14068
+ const localVarHeaderParameter = {};
14069
+ const localVarQueryParameter = {};
14070
+ // authentication bearerAuth required
14071
+ // http bearer authentication required
14072
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14073
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14074
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14075
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14076
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14077
+ localVarRequestOptions.data = serializeDataIfNeeded(subscriptionPaymentSheetRequest, localVarRequestOptions, configuration);
14078
+ return {
14079
+ url: toPathString(localVarUrlObj),
14080
+ options: localVarRequestOptions,
14081
+ };
14082
+ }),
14034
14083
  };
14035
14084
  };
14036
14085
  /**
@@ -14101,6 +14150,21 @@ export const SubscriptionsUserApiFp = function (configuration) {
14101
14150
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14102
14151
  });
14103
14152
  },
14153
+ /**
14154
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
14155
+ * @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
14156
+ * @param {*} [options] Override http request option.
14157
+ * @throws {RequiredError}
14158
+ */
14159
+ subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options) {
14160
+ return __awaiter(this, void 0, void 0, function* () {
14161
+ var _a, _b, _c;
14162
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options);
14163
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14164
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscriptionPaymentSheet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14165
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14166
+ });
14167
+ },
14104
14168
  };
14105
14169
  };
14106
14170
  /**
@@ -14145,6 +14209,15 @@ export const SubscriptionsUserApiFactory = function (configuration, basePath, ax
14145
14209
  subscribe(requestParameters, options) {
14146
14210
  return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
14147
14211
  },
14212
+ /**
14213
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
14214
+ * @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
14215
+ * @param {*} [options] Override http request option.
14216
+ * @throws {RequiredError}
14217
+ */
14218
+ subscriptionPaymentSheet(requestParameters, options) {
14219
+ return localVarFp.subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(axios, basePath));
14220
+ },
14148
14221
  };
14149
14222
  };
14150
14223
  /**
@@ -14193,6 +14266,16 @@ export class SubscriptionsUserApi extends BaseAPI {
14193
14266
  subscribe(requestParameters, options) {
14194
14267
  return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
14195
14268
  }
14269
+ /**
14270
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
14271
+ * @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
14272
+ * @param {*} [options] Override http request option.
14273
+ * @throws {RequiredError}
14274
+ * @memberof SubscriptionsUserApi
14275
+ */
14276
+ subscriptionPaymentSheet(requestParameters, options) {
14277
+ return SubscriptionsUserApiFp(this.configuration).subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(this.axios, this.basePath));
14278
+ }
14196
14279
  }
14197
14280
  /**
14198
14281
  * SumUpApi - axios parameter creator
@@ -15416,6 +15499,37 @@ export const UsersApiAxiosParamCreator = function (configuration) {
15416
15499
  options: localVarRequestOptions,
15417
15500
  };
15418
15501
  }),
15502
+ /**
15503
+ *
15504
+ * @param {string} eventBookingId
15505
+ * @param {*} [options] Override http request option.
15506
+ * @throws {RequiredError}
15507
+ */
15508
+ getEventBookingDetail: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
15509
+ // verify required parameter 'eventBookingId' is not null or undefined
15510
+ assertParamExists('getEventBookingDetail', 'eventBookingId', eventBookingId);
15511
+ const localVarPath = `/api/users/me/event-booking-detail/{eventBookingId}`
15512
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
15513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15514
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15515
+ let baseOptions;
15516
+ if (configuration) {
15517
+ baseOptions = configuration.baseOptions;
15518
+ }
15519
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
15520
+ const localVarHeaderParameter = {};
15521
+ const localVarQueryParameter = {};
15522
+ // authentication bearerAuth required
15523
+ // http bearer authentication required
15524
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15525
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15527
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15528
+ return {
15529
+ url: toPathString(localVarUrlObj),
15530
+ options: localVarRequestOptions,
15531
+ };
15532
+ }),
15419
15533
  /**
15420
15534
  *
15421
15535
  * @param {*} [options] Override http request option.
@@ -16858,6 +16972,21 @@ export const UsersApiFp = function (configuration) {
16858
16972
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16859
16973
  });
16860
16974
  },
16975
+ /**
16976
+ *
16977
+ * @param {string} eventBookingId
16978
+ * @param {*} [options] Override http request option.
16979
+ * @throws {RequiredError}
16980
+ */
16981
+ getEventBookingDetail(eventBookingId, options) {
16982
+ return __awaiter(this, void 0, void 0, function* () {
16983
+ var _a, _b, _c;
16984
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventBookingDetail(eventBookingId, options);
16985
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16986
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getEventBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16987
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16988
+ });
16989
+ },
16861
16990
  /**
16862
16991
  *
16863
16992
  * @param {*} [options] Override http request option.
@@ -17563,6 +17692,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
17563
17692
  getBookingDetail(requestParameters, options) {
17564
17693
  return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
17565
17694
  },
17695
+ /**
17696
+ *
17697
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
17698
+ * @param {*} [options] Override http request option.
17699
+ * @throws {RequiredError}
17700
+ */
17701
+ getEventBookingDetail(requestParameters, options) {
17702
+ return localVarFp.getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
17703
+ },
17566
17704
  /**
17567
17705
  *
17568
17706
  * @param {*} [options] Override http request option.
@@ -18002,6 +18140,16 @@ export class UsersApi extends BaseAPI {
18002
18140
  getBookingDetail(requestParameters, options) {
18003
18141
  return UsersApiFp(this.configuration).getBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
18004
18142
  }
18143
+ /**
18144
+ *
18145
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
18146
+ * @param {*} [options] Override http request option.
18147
+ * @throws {RequiredError}
18148
+ * @memberof UsersApi
18149
+ */
18150
+ getEventBookingDetail(requestParameters, options) {
18151
+ return UsersApiFp(this.configuration).getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
18152
+ }
18005
18153
  /**
18006
18154
  *
18007
18155
  * @param {*} [options] Override http request option.
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
16
16
  **isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
17
17
  **paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
18
+ **hasActiveSubscriptions** | **boolean** | Indique si le club propose au moins un abonnement actif | [default to undefined]
18
19
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
19
20
  **clubCustomerStatus** | [**ClubPageResponseClubCustomerStatus**](ClubPageResponseClubCustomerStatus.md) | | [optional] [default to undefined]
20
21
  **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
@@ -49,6 +50,7 @@ const instance: ClubPageResponse = {
49
50
  location,
50
51
  isActive,
51
52
  paymentFeature,
53
+ hasActiveSubscriptions,
52
54
  isNoShowEnabled,
53
55
  clubCustomerStatus,
54
56
  sports,
@@ -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)
@@ -13,6 +13,9 @@ Name | Type | Description | Notes
13
13
  **interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
14
14
  **description** | **string** | | [optional] [default to undefined]
15
15
  **discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
16
+ **isUserSubscribed** | **boolean** | | [optional] [default to undefined]
17
+ **userSubscriptionId** | **string** | | [optional] [default to undefined]
18
+ **userSubscriptionStatus** | **string** | | [optional] [default to undefined]
16
19
 
17
20
  ## Example
18
21
 
@@ -28,6 +31,9 @@ const instance: PublicSubscriptionPlanResponse = {
28
31
  interval,
29
32
  description,
30
33
  discount,
34
+ isUserSubscribed,
35
+ userSubscriptionId,
36
+ userSubscriptionStatus,
31
37
  };
32
38
  ```
33
39
 
@@ -0,0 +1,24 @@
1
+ # SubscriptionPaymentSheetRequest
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 { SubscriptionPaymentSheetRequest } from '@tennac-booking/sdk';
16
+
17
+ const instance: SubscriptionPaymentSheetRequest = {
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,34 @@
1
+ # SubscriptionPaymentSheetResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **customerSessionClientSecret** | **string** | | [optional] [default to undefined]
9
+ **customerEphemeralKeySecret** | **string** | | [optional] [default to undefined]
10
+ **subscriptionId** | **string** | | [default to undefined]
11
+ **stripeAccountId** | **string** | | [default to undefined]
12
+ **publishableKey** | **string** | | [default to undefined]
13
+ **customerId** | **string** | | [default to undefined]
14
+ **setupIntentClientSecret** | **string** | | [optional] [default to undefined]
15
+ **paymentIntentClientSecret** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { SubscriptionPaymentSheetResponse } from '@tennac-booking/sdk';
21
+
22
+ const instance: SubscriptionPaymentSheetResponse = {
23
+ customerSessionClientSecret,
24
+ customerEphemeralKeySecret,
25
+ subscriptionId,
26
+ stripeAccountId,
27
+ publishableKey,
28
+ customerId,
29
+ setupIntentClientSecret,
30
+ paymentIntentClientSecret,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -42,7 +42,7 @@ const { status, data } = await apiInstance.getPublicPlans(
42
42
 
43
43
  ### Authorization
44
44
 
45
- No authorization required
45
+ [bearerAuth](../README.md#bearerAuth)
46
46
 
47
47
  ### HTTP request headers
48
48
 
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**mySubscriptions**](#mysubscriptions) | **GET** /api/subscriptions/me | |
9
9
  |[**resume**](#resume) | **POST** /api/subscriptions/{clubId}/{subscriptionId}/resume | |
10
10
  |[**subscribe**](#subscribe) | **POST** /api/subscriptions/subscribe | |
11
+ |[**subscriptionPaymentSheet**](#subscriptionpaymentsheet) | **POST** /api/subscriptions/payment-sheet | |
11
12
 
12
13
  # **cancel**
13
14
  > SubscriptionMutationResponse cancel()
@@ -220,3 +221,57 @@ const { status, data } = await apiInstance.subscribe(
220
221
 
221
222
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
222
223
 
224
+ # **subscriptionPaymentSheet**
225
+ > SubscriptionPaymentSheetResponse subscriptionPaymentSheet(subscriptionPaymentSheetRequest)
226
+
227
+ Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
228
+
229
+ ### Example
230
+
231
+ ```typescript
232
+ import {
233
+ SubscriptionsUserApi,
234
+ Configuration,
235
+ SubscriptionPaymentSheetRequest
236
+ } from '@tennac-booking/sdk';
237
+
238
+ const configuration = new Configuration();
239
+ const apiInstance = new SubscriptionsUserApi(configuration);
240
+
241
+ let subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest; //
242
+
243
+ const { status, data } = await apiInstance.subscriptionPaymentSheet(
244
+ subscriptionPaymentSheetRequest
245
+ );
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ |Name | Type | Description | Notes|
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **subscriptionPaymentSheetRequest** | **SubscriptionPaymentSheetRequest**| | |
253
+
254
+
255
+ ### Return type
256
+
257
+ **SubscriptionPaymentSheetResponse**
258
+
259
+ ### Authorization
260
+
261
+ [bearerAuth](../README.md#bearerAuth)
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: application/json
266
+ - **Accept**: application/json
267
+
268
+
269
+ ### HTTP response details
270
+ | Status code | Description | Response headers |
271
+ |-------------|-------------|------------------|
272
+ |**200** | Payment sheet ready | - |
273
+ |**400** | Bad Request | - |
274
+ |**401** | Unauthorized | - |
275
+
276
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
277
+
package/docs/UsersApi.md CHANGED
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
11
11
  |[**completeRegister**](#completeregister) | **POST** /api/users/complete-register | |
12
12
  |[**getAllUsers**](#getallusers) | **GET** /api/users | |
13
13
  |[**getBookingDetail**](#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | |
14
+ |[**getEventBookingDetail**](#geteventbookingdetail) | **GET** /api/users/me/event-booking-detail/{eventBookingId} | |
14
15
  |[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | |
15
16
  |[**getFavoritesPlayers**](#getfavoritesplayers) | **GET** /api/users/me/favoritesPlayers | |
16
17
  |[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | |
@@ -394,6 +395,56 @@ const { status, data } = await apiInstance.getBookingDetail(
394
395
  - **Accept**: application/json
395
396
 
396
397
 
398
+ ### HTTP response details
399
+ | Status code | Description | Response headers |
400
+ |-------------|-------------|------------------|
401
+ |**200** | Ok | - |
402
+
403
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
404
+
405
+ # **getEventBookingDetail**
406
+ > EventBookingDetailResponse getEventBookingDetail()
407
+
408
+
409
+ ### Example
410
+
411
+ ```typescript
412
+ import {
413
+ UsersApi,
414
+ Configuration
415
+ } from '@tennac-booking/sdk';
416
+
417
+ const configuration = new Configuration();
418
+ const apiInstance = new UsersApi(configuration);
419
+
420
+ let eventBookingId: string; // (default to undefined)
421
+
422
+ const { status, data } = await apiInstance.getEventBookingDetail(
423
+ eventBookingId
424
+ );
425
+ ```
426
+
427
+ ### Parameters
428
+
429
+ |Name | Type | Description | Notes|
430
+ |------------- | ------------- | ------------- | -------------|
431
+ | **eventBookingId** | [**string**] | | defaults to undefined|
432
+
433
+
434
+ ### Return type
435
+
436
+ **EventBookingDetailResponse**
437
+
438
+ ### Authorization
439
+
440
+ [bearerAuth](../README.md#bearerAuth)
441
+
442
+ ### HTTP request headers
443
+
444
+ - **Content-Type**: Not defined
445
+ - **Accept**: application/json
446
+
447
+
397
448
  ### HTTP response details
398
449
  | Status code | Description | Response headers |
399
450
  |-------------|-------------|------------------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.243",
3
+ "version": "1.0.245",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {