@tennac-booking/sdk 1.0.60 → 1.0.61
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 +40 -5
- package/README.md +47 -14
- package/api.ts +6803 -5030
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +3874 -2297
- package/dist/api.js +899 -495
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +3874 -2297
- package/dist/esm/api.js +880 -493
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/ClubResponse.md +0 -1
- package/docs/ClubsManagerApi.md +0 -55
- package/docs/ClubsStaffApi.md +2 -2
- package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
- package/docs/CreateSubscriptionPlanRequest.md +10 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
- package/docs/DefaultApi.md +0 -54
- package/docs/{DeleteClubResponse.md → DeleteSubscriptionPlanResponse.md} +4 -4
- package/docs/DiscountType.md +14 -0
- package/docs/OffPeakRule.md +26 -0
- package/docs/PlanInterval.md +14 -0
- package/docs/PublicSubscriptionPlanResponse.md +30 -0
- package/docs/StripeStripeDeletedProduct.md +25 -0
- package/docs/StripeStripePrice.md +63 -0
- package/docs/StripeStripePriceBillingScheme.md +10 -0
- package/docs/StripeStripePriceCurrencyOptions.md +28 -0
- package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
- package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
- package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceProduct.md +59 -0
- package/docs/StripeStripePriceRecurring.md +28 -0
- package/docs/StripeStripePriceRecurringInterval.md +14 -0
- package/docs/StripeStripePriceRecurringUsageType.md +10 -0
- package/docs/StripeStripePriceTaxBehavior.md +12 -0
- package/docs/StripeStripePriceTier.md +28 -0
- package/docs/StripeStripePriceTiersMode.md +10 -0
- package/docs/StripeStripePriceTransformQuantity.md +22 -0
- package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
- package/docs/StripeStripePriceType.md +10 -0
- package/docs/StripeStripeProduct.md +59 -0
- package/docs/StripeStripeProductDefaultPrice.md +63 -0
- package/docs/{GetCourtsByClub200Response.md → StripeStripeProductMarketingFeature.md} +5 -5
- package/docs/StripeStripeProductPackageDimensions.md +26 -0
- package/docs/StripeStripeProductTaxCode.md +27 -0
- package/docs/StripeStripeProductType.md +10 -0
- package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
- package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
- package/docs/StripeStripeTaxCode.md +27 -0
- package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
- package/docs/SubscriptionPlanResponse.md +14 -2
- package/docs/SubscriptionsManagerApi.md +171 -0
- package/docs/SubscriptionsPublicApi.md +60 -0
- package/docs/SubscriptionsStaffApi.md +54 -0
- package/docs/SubscriptionsUserApi.md +222 -0
- package/docs/UpdatePlanRequest.md +24 -0
- package/docs/UsersApi.md +0 -256
- package/index.ts +2 -2
- package/package.json +1 -1
- package/docs/SubscriptionSessionResponse.md +0 -20
package/docs/UsersApi.md
CHANGED
|
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | |
|
|
8
8
|
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
|
|
9
9
|
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | |
|
|
10
|
-
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /api/users/me/subscriptions/{clubId}/{subscriptionId} | |
|
|
11
10
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
|
|
12
11
|
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | |
|
|
13
12
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | |
|
|
@@ -23,18 +22,14 @@ All URIs are relative to *http://localhost*
|
|
|
23
22
|
|[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /api/users/nearest-players/coordinates | |
|
|
24
23
|
|[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
|
|
25
24
|
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
|
|
26
|
-
|[**getUserSubscriptions**](#getusersubscriptions) | **GET** /api/users/me/subscriptions | |
|
|
27
|
-
|[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | |
|
|
28
25
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
29
26
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
30
27
|
|[**register**](#register) | **POST** /api/users | |
|
|
31
28
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
32
29
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
33
30
|
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/me/request-password-rest | |
|
|
34
|
-
|[**resumeSubscription**](#resumesubscription) | **POST** /api/users/me/subscriptions/{clubId}/{subscriptionId}/resume | |
|
|
35
31
|
|[**setupNoShowPaymentMethod**](#setupnoshowpaymentmethod) | **POST** /api/users/setupNoShowPaymentMethod | |
|
|
36
32
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
37
|
-
|[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | |
|
|
38
33
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
|
|
39
34
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
|
|
40
35
|
|[**updateMe**](#updateme) | **PUT** /api/users/me | |
|
|
@@ -186,59 +181,6 @@ const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
|
186
181
|
- **Accept**: application/json
|
|
187
182
|
|
|
188
183
|
|
|
189
|
-
### HTTP response details
|
|
190
|
-
| Status code | Description | Response headers |
|
|
191
|
-
|-------------|-------------|------------------|
|
|
192
|
-
|**200** | Ok | - |
|
|
193
|
-
|
|
194
|
-
[[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)
|
|
195
|
-
|
|
196
|
-
# **cancelSubscription**
|
|
197
|
-
> SubscriptionMutationResponse cancelSubscription()
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
### Example
|
|
201
|
-
|
|
202
|
-
```typescript
|
|
203
|
-
import {
|
|
204
|
-
UsersApi,
|
|
205
|
-
Configuration
|
|
206
|
-
} from '@tennac-booking/sdk';
|
|
207
|
-
|
|
208
|
-
const configuration = new Configuration();
|
|
209
|
-
const apiInstance = new UsersApi(configuration);
|
|
210
|
-
|
|
211
|
-
let clubId: string; // (default to undefined)
|
|
212
|
-
let subscriptionId: string; // (default to undefined)
|
|
213
|
-
|
|
214
|
-
const { status, data } = await apiInstance.cancelSubscription(
|
|
215
|
-
clubId,
|
|
216
|
-
subscriptionId
|
|
217
|
-
);
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Parameters
|
|
221
|
-
|
|
222
|
-
|Name | Type | Description | Notes|
|
|
223
|
-
|------------- | ------------- | ------------- | -------------|
|
|
224
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
225
|
-
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### Return type
|
|
229
|
-
|
|
230
|
-
**SubscriptionMutationResponse**
|
|
231
|
-
|
|
232
|
-
### Authorization
|
|
233
|
-
|
|
234
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
235
|
-
|
|
236
|
-
### HTTP request headers
|
|
237
|
-
|
|
238
|
-
- **Content-Type**: Not defined
|
|
239
|
-
- **Accept**: application/json
|
|
240
|
-
|
|
241
|
-
|
|
242
184
|
### HTTP response details
|
|
243
185
|
| Status code | Description | Response headers |
|
|
244
186
|
|-------------|-------------|------------------|
|
|
@@ -976,100 +918,6 @@ const { status, data } = await apiInstance.getUserProfileById(
|
|
|
976
918
|
- **Accept**: application/json
|
|
977
919
|
|
|
978
920
|
|
|
979
|
-
### HTTP response details
|
|
980
|
-
| Status code | Description | Response headers |
|
|
981
|
-
|-------------|-------------|------------------|
|
|
982
|
-
|**200** | Ok | - |
|
|
983
|
-
|
|
984
|
-
[[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)
|
|
985
|
-
|
|
986
|
-
# **getUserSubscriptions**
|
|
987
|
-
> UserSubscriptionsResponse getUserSubscriptions()
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
### Example
|
|
991
|
-
|
|
992
|
-
```typescript
|
|
993
|
-
import {
|
|
994
|
-
UsersApi,
|
|
995
|
-
Configuration
|
|
996
|
-
} from '@tennac-booking/sdk';
|
|
997
|
-
|
|
998
|
-
const configuration = new Configuration();
|
|
999
|
-
const apiInstance = new UsersApi(configuration);
|
|
1000
|
-
|
|
1001
|
-
const { status, data } = await apiInstance.getUserSubscriptions();
|
|
1002
|
-
```
|
|
1003
|
-
|
|
1004
|
-
### Parameters
|
|
1005
|
-
This endpoint does not have any parameters.
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
### Return type
|
|
1009
|
-
|
|
1010
|
-
**UserSubscriptionsResponse**
|
|
1011
|
-
|
|
1012
|
-
### Authorization
|
|
1013
|
-
|
|
1014
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1015
|
-
|
|
1016
|
-
### HTTP request headers
|
|
1017
|
-
|
|
1018
|
-
- **Content-Type**: Not defined
|
|
1019
|
-
- **Accept**: application/json
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
### HTTP response details
|
|
1023
|
-
| Status code | Description | Response headers |
|
|
1024
|
-
|-------------|-------------|------------------|
|
|
1025
|
-
|**200** | Ok | - |
|
|
1026
|
-
|
|
1027
|
-
[[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)
|
|
1028
|
-
|
|
1029
|
-
# **initiateSubscriptionSession**
|
|
1030
|
-
> SubscriptionSessionResponse initiateSubscriptionSession(subscriptionSessionRequestBody)
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
### Example
|
|
1034
|
-
|
|
1035
|
-
```typescript
|
|
1036
|
-
import {
|
|
1037
|
-
UsersApi,
|
|
1038
|
-
Configuration,
|
|
1039
|
-
SubscriptionSessionRequestBody
|
|
1040
|
-
} from '@tennac-booking/sdk';
|
|
1041
|
-
|
|
1042
|
-
const configuration = new Configuration();
|
|
1043
|
-
const apiInstance = new UsersApi(configuration);
|
|
1044
|
-
|
|
1045
|
-
let subscriptionSessionRequestBody: SubscriptionSessionRequestBody; //
|
|
1046
|
-
|
|
1047
|
-
const { status, data } = await apiInstance.initiateSubscriptionSession(
|
|
1048
|
-
subscriptionSessionRequestBody
|
|
1049
|
-
);
|
|
1050
|
-
```
|
|
1051
|
-
|
|
1052
|
-
### Parameters
|
|
1053
|
-
|
|
1054
|
-
|Name | Type | Description | Notes|
|
|
1055
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1056
|
-
| **subscriptionSessionRequestBody** | **SubscriptionSessionRequestBody**| | |
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
### Return type
|
|
1060
|
-
|
|
1061
|
-
**SubscriptionSessionResponse**
|
|
1062
|
-
|
|
1063
|
-
### Authorization
|
|
1064
|
-
|
|
1065
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1066
|
-
|
|
1067
|
-
### HTTP request headers
|
|
1068
|
-
|
|
1069
|
-
- **Content-Type**: application/json
|
|
1070
|
-
- **Accept**: application/json
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
921
|
### HTTP response details
|
|
1074
922
|
| Status code | Description | Response headers |
|
|
1075
923
|
|-------------|-------------|------------------|
|
|
@@ -1381,59 +1229,6 @@ No authorization required
|
|
|
1381
1229
|
|
|
1382
1230
|
[[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)
|
|
1383
1231
|
|
|
1384
|
-
# **resumeSubscription**
|
|
1385
|
-
> SubscriptionMutationResponse resumeSubscription()
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
### Example
|
|
1389
|
-
|
|
1390
|
-
```typescript
|
|
1391
|
-
import {
|
|
1392
|
-
UsersApi,
|
|
1393
|
-
Configuration
|
|
1394
|
-
} from '@tennac-booking/sdk';
|
|
1395
|
-
|
|
1396
|
-
const configuration = new Configuration();
|
|
1397
|
-
const apiInstance = new UsersApi(configuration);
|
|
1398
|
-
|
|
1399
|
-
let clubId: string; // (default to undefined)
|
|
1400
|
-
let subscriptionId: string; // (default to undefined)
|
|
1401
|
-
|
|
1402
|
-
const { status, data } = await apiInstance.resumeSubscription(
|
|
1403
|
-
clubId,
|
|
1404
|
-
subscriptionId
|
|
1405
|
-
);
|
|
1406
|
-
```
|
|
1407
|
-
|
|
1408
|
-
### Parameters
|
|
1409
|
-
|
|
1410
|
-
|Name | Type | Description | Notes|
|
|
1411
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1412
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
1413
|
-
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
### Return type
|
|
1417
|
-
|
|
1418
|
-
**SubscriptionMutationResponse**
|
|
1419
|
-
|
|
1420
|
-
### Authorization
|
|
1421
|
-
|
|
1422
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1423
|
-
|
|
1424
|
-
### HTTP request headers
|
|
1425
|
-
|
|
1426
|
-
- **Content-Type**: Not defined
|
|
1427
|
-
- **Accept**: application/json
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
### HTTP response details
|
|
1431
|
-
| Status code | Description | Response headers |
|
|
1432
|
-
|-------------|-------------|------------------|
|
|
1433
|
-
|**200** | Ok | - |
|
|
1434
|
-
|
|
1435
|
-
[[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)
|
|
1436
|
-
|
|
1437
1232
|
# **setupNoShowPaymentMethod**
|
|
1438
1233
|
> SetupPaymentMethodResponse setupNoShowPaymentMethod(setupPaymentMethodRequestBody)
|
|
1439
1234
|
|
|
@@ -1536,57 +1331,6 @@ No authorization required
|
|
|
1536
1331
|
|
|
1537
1332
|
[[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)
|
|
1538
1333
|
|
|
1539
|
-
# **subscribeToClub**
|
|
1540
|
-
> { [key: string]: any; } subscribeToClub(subscribeToClubRequestBody)
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
### Example
|
|
1544
|
-
|
|
1545
|
-
```typescript
|
|
1546
|
-
import {
|
|
1547
|
-
UsersApi,
|
|
1548
|
-
Configuration,
|
|
1549
|
-
SubscribeToClubRequestBody
|
|
1550
|
-
} from '@tennac-booking/sdk';
|
|
1551
|
-
|
|
1552
|
-
const configuration = new Configuration();
|
|
1553
|
-
const apiInstance = new UsersApi(configuration);
|
|
1554
|
-
|
|
1555
|
-
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
1556
|
-
|
|
1557
|
-
const { status, data } = await apiInstance.subscribeToClub(
|
|
1558
|
-
subscribeToClubRequestBody
|
|
1559
|
-
);
|
|
1560
|
-
```
|
|
1561
|
-
|
|
1562
|
-
### Parameters
|
|
1563
|
-
|
|
1564
|
-
|Name | Type | Description | Notes|
|
|
1565
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1566
|
-
| **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
### Return type
|
|
1570
|
-
|
|
1571
|
-
**{ [key: string]: any; }**
|
|
1572
|
-
|
|
1573
|
-
### Authorization
|
|
1574
|
-
|
|
1575
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1576
|
-
|
|
1577
|
-
### HTTP request headers
|
|
1578
|
-
|
|
1579
|
-
- **Content-Type**: application/json
|
|
1580
|
-
- **Accept**: application/json
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
### HTTP response details
|
|
1584
|
-
| Status code | Description | Response headers |
|
|
1585
|
-
|-------------|-------------|------------------|
|
|
1586
|
-
|**201** | Created | - |
|
|
1587
|
-
|
|
1588
|
-
[[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)
|
|
1589
|
-
|
|
1590
1334
|
# **updateCustomer**
|
|
1591
1335
|
> UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
|
|
1592
1336
|
|
package/index.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* openapi.json
|
|
5
|
-
* API
|
|
5
|
+
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.61
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# SubscriptionSessionResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**sessionUrl** | **string** | | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { SubscriptionSessionResponse } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: SubscriptionSessionResponse = {
|
|
16
|
-
sessionUrl,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|