@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.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +40 -5
  2. package/README.md +47 -14
  3. package/api.ts +6803 -5030
  4. package/base.ts +2 -2
  5. package/common.ts +2 -2
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +3874 -2297
  8. package/dist/api.js +899 -495
  9. package/dist/base.d.ts +2 -2
  10. package/dist/base.js +2 -2
  11. package/dist/common.d.ts +2 -2
  12. package/dist/common.js +2 -2
  13. package/dist/configuration.d.ts +2 -2
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +3874 -2297
  16. package/dist/esm/api.js +880 -493
  17. package/dist/esm/base.d.ts +2 -2
  18. package/dist/esm/base.js +2 -2
  19. package/dist/esm/common.d.ts +2 -2
  20. package/dist/esm/common.js +2 -2
  21. package/dist/esm/configuration.d.ts +2 -2
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +2 -2
  24. package/dist/esm/index.js +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +2 -2
  27. package/docs/ClubResponse.md +0 -1
  28. package/docs/ClubsManagerApi.md +0 -55
  29. package/docs/ClubsStaffApi.md +2 -2
  30. package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
  31. package/docs/CreateSubscriptionPlanRequest.md +10 -4
  32. package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
  33. package/docs/DefaultApi.md +0 -54
  34. package/docs/{DeleteClubResponse.md → DeleteSubscriptionPlanResponse.md} +4 -4
  35. package/docs/DiscountType.md +14 -0
  36. package/docs/OffPeakRule.md +26 -0
  37. package/docs/PlanInterval.md +14 -0
  38. package/docs/PublicSubscriptionPlanResponse.md +30 -0
  39. package/docs/StripeStripeDeletedProduct.md +25 -0
  40. package/docs/StripeStripePrice.md +63 -0
  41. package/docs/StripeStripePriceBillingScheme.md +10 -0
  42. package/docs/StripeStripePriceCurrencyOptions.md +28 -0
  43. package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
  44. package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
  45. package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
  46. package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
  47. package/docs/StripeStripePriceProduct.md +59 -0
  48. package/docs/StripeStripePriceRecurring.md +28 -0
  49. package/docs/StripeStripePriceRecurringInterval.md +14 -0
  50. package/docs/StripeStripePriceRecurringUsageType.md +10 -0
  51. package/docs/StripeStripePriceTaxBehavior.md +12 -0
  52. package/docs/StripeStripePriceTier.md +28 -0
  53. package/docs/StripeStripePriceTiersMode.md +10 -0
  54. package/docs/StripeStripePriceTransformQuantity.md +22 -0
  55. package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
  56. package/docs/StripeStripePriceType.md +10 -0
  57. package/docs/StripeStripeProduct.md +59 -0
  58. package/docs/StripeStripeProductDefaultPrice.md +63 -0
  59. package/docs/{GetCourtsByClub200Response.md → StripeStripeProductMarketingFeature.md} +5 -5
  60. package/docs/StripeStripeProductPackageDimensions.md +26 -0
  61. package/docs/StripeStripeProductTaxCode.md +27 -0
  62. package/docs/StripeStripeProductType.md +10 -0
  63. package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
  64. package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
  65. package/docs/StripeStripeTaxCode.md +27 -0
  66. package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
  67. package/docs/SubscriptionPlanResponse.md +14 -2
  68. package/docs/SubscriptionsManagerApi.md +171 -0
  69. package/docs/SubscriptionsPublicApi.md +60 -0
  70. package/docs/SubscriptionsStaffApi.md +54 -0
  71. package/docs/SubscriptionsUserApi.md +222 -0
  72. package/docs/UpdatePlanRequest.md +24 -0
  73. package/docs/UsersApi.md +0 -256
  74. package/index.ts +2 -2
  75. package/package.json +1 -1
  76. 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 for managing pickle ball games and players
5
+ * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.60
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -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)