@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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +5 -0
- package/api.ts +309 -0
- package/dist/api.d.ts +262 -0
- package/dist/api.js +69 -0
- package/dist/esm/api.d.ts +262 -0
- package/dist/esm/api.js +69 -0
- package/docs/ClubEvent.md +2 -0
- package/docs/ClubPageResponse.md +2 -0
- package/docs/CreateEventRequest.md +2 -0
- package/docs/EventBookingDetailSummary.md +2 -0
- package/docs/EventBookingDetailSummaryPartnersInner.md +26 -0
- package/docs/EventResponse.md +2 -0
- package/docs/PublicSubscriptionPlanResponse.md +6 -0
- package/docs/RecurringDefinitionResponse.md +2 -0
- package/docs/SubscriptionPaymentSheetRequest.md +24 -0
- package/docs/SubscriptionPaymentSheetResponse.md +32 -0
- package/docs/SubscriptionsPublicApi.md +1 -1
- package/docs/SubscriptionsUserApi.md +55 -0
- package/docs/UpdateEventRequest.md +2 -0
- package/docs/UpdateRecurringDefinitionRequest.md +2 -0
- package/docs/UserEventSummary.md +8 -0
- package/docs/UserEventSummarySportsDetailsInner.md +24 -0
- package/package.json +1 -1
|
@@ -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)
|
|
@@ -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,
|
package/docs/UserEventSummary.md
CHANGED
|
@@ -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)
|