@tennac-booking/sdk 1.0.242 → 1.0.244

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.
@@ -0,0 +1,32 @@
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
+ **paymentIntentClientSecret** | **string** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { SubscriptionPaymentSheetResponse } from '@tennac-booking/sdk';
20
+
21
+ const instance: SubscriptionPaymentSheetResponse = {
22
+ customerSessionClientSecret,
23
+ customerEphemeralKeySecret,
24
+ subscriptionId,
25
+ stripeAccountId,
26
+ publishableKey,
27
+ customerId,
28
+ paymentIntentClientSecret,
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)
@@ -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
+
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **type** | **string** | | [optional] [default to undefined]
9
9
  **title** | **string** | | [optional] [default to undefined]
10
+ **category** | **string** | | [optional] [default to undefined]
10
11
  **description** | **string** | | [optional] [default to undefined]
11
12
  **photoUrl** | **string** | | [optional] [default to undefined]
12
13
  **isAllDay** | **boolean** | | [optional] [default to undefined]
@@ -38,6 +39,7 @@ import { UpdateEventRequest } from '@tennac-booking/sdk';
38
39
  const instance: UpdateEventRequest = {
39
40
  type,
40
41
  title,
42
+ category,
41
43
  description,
42
44
  photoUrl,
43
45
  isAllDay,
@@ -6,6 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **title** | **string** | | [optional] [default to undefined]
9
+ **category** | **string** | | [optional] [default to undefined]
9
10
  **description** | **string** | | [optional] [default to undefined]
10
11
  **photoUrl** | **string** | | [optional] [default to undefined]
11
12
  **sportId** | **string** | | [optional] [default to undefined]
@@ -36,6 +37,7 @@ import { UpdateRecurringDefinitionRequest } from '@tennac-booking/sdk';
36
37
 
37
38
  const instance: UpdateRecurringDefinitionRequest = {
38
39
  title,
40
+ category,
39
41
  description,
40
42
  photoUrl,
41
43
  sportId,
@@ -7,7 +7,10 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [default to undefined]
9
9
  **clubId** | **string** | | [default to undefined]
10
+ **clubName** | **string** | | [optional] [default to undefined]
11
+ **clubLogo** | **string** | | [optional] [default to undefined]
10
12
  **title** | **string** | | [default to undefined]
13
+ **category** | **string** | | [optional] [default to undefined]
11
14
  **description** | **string** | | [optional] [default to undefined]
12
15
  **photoUrl** | **string** | | [optional] [default to undefined]
13
16
  **startDate** | **string** | | [default to undefined]
@@ -17,6 +20,7 @@ Name | Type | Description | Notes
17
20
  **isActive** | **boolean** | | [default to undefined]
18
21
  **price** | **number** | | [optional] [default to undefined]
19
22
  **sports** | **Array<string>** | | [optional] [default to undefined]
23
+ **sportsDetails** | [**Array<UserEventSummarySportsDetailsInner>**](UserEventSummarySportsDetailsInner.md) | | [optional] [default to undefined]
20
24
  **courts** | **Array<string>** | | [optional] [default to undefined]
21
25
 
22
26
  ## Example
@@ -27,7 +31,10 @@ import { UserEventSummary } from '@tennac-booking/sdk';
27
31
  const instance: UserEventSummary = {
28
32
  id,
29
33
  clubId,
34
+ clubName,
35
+ clubLogo,
30
36
  title,
37
+ category,
31
38
  description,
32
39
  photoUrl,
33
40
  startDate,
@@ -37,6 +44,7 @@ const instance: UserEventSummary = {
37
44
  isActive,
38
45
  price,
39
46
  sports,
47
+ sportsDetails,
40
48
  courts,
41
49
  };
42
50
  ```
@@ -0,0 +1,24 @@
1
+ # UserEventSummarySportsDetailsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [optional] [default to undefined]
9
+ **key** | **string** | | [optional] [default to undefined]
10
+ **id** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UserEventSummarySportsDetailsInner } from '@tennac-booking/sdk';
16
+
17
+ const instance: UserEventSummarySportsDetailsInner = {
18
+ name,
19
+ key,
20
+ id,
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.242",
3
+ "version": "1.0.244",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {