@tennac-booking/sdk 1.0.11 → 1.0.12

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 (66) hide show
  1. package/.openapi-generator/FILES +56 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +86 -0
  4. package/api.ts +6087 -308
  5. package/common.ts +4 -4
  6. package/dist/api.d.ts +4105 -243
  7. package/dist/api.js +3265 -9
  8. package/dist/esm/api.d.ts +4105 -243
  9. package/dist/esm/api.js +3228 -8
  10. package/docs/AddClubMemberRequest.md +22 -0
  11. package/docs/AddClubMemberResponse.md +22 -0
  12. package/docs/BlockSlotResponse.md +22 -0
  13. package/docs/BookingResponse.md +28 -0
  14. package/docs/BookingsApi.md +120 -0
  15. package/docs/Club.md +46 -0
  16. package/docs/ClubCourtsApi.md +118 -0
  17. package/docs/ClubInfoResponse.md +46 -0
  18. package/docs/ClubListResponse.md +22 -0
  19. package/docs/ClubMember.md +34 -0
  20. package/docs/ClubMembersResponse.md +22 -0
  21. package/docs/ClubResponse.md +46 -0
  22. package/docs/ClubRole.md +30 -0
  23. package/docs/ClubRoleResponse.md +30 -0
  24. package/docs/ClubRolesApi.md +268 -0
  25. package/docs/ClubRolesResponse.md +22 -0
  26. package/docs/ClubSettings.md +28 -0
  27. package/docs/ClubSettingsApi.md +227 -0
  28. package/docs/ClubSlotsApi.md +300 -0
  29. package/docs/ClubSportsApi.md +118 -0
  30. package/docs/ClubSubscriptionsApi.md +408 -0
  31. package/docs/ClubsApi.md +432 -0
  32. package/docs/CourtResponse.md +44 -0
  33. package/docs/CourtsResponse.md +22 -0
  34. package/docs/CreateBookingRequest.md +28 -0
  35. package/docs/CreateClubRequest.md +38 -0
  36. package/docs/CreateClubRoleRequestBody.md +24 -0
  37. package/docs/CreateCourtRequest.md +34 -0
  38. package/docs/CreatePriceRequest.md +26 -0
  39. package/docs/CreateSportRequest.md +22 -0
  40. package/docs/CreateSubscriptionPlanRequest.md +24 -0
  41. package/docs/DeleteClub200Response.md +20 -0
  42. package/docs/DeleteClubRole200Response.md +20 -0
  43. package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
  44. package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
  45. package/docs/GetAllSportsRequest.md +20 -0
  46. package/docs/GetClubSettingsRequest.md +20 -0
  47. package/docs/GetUserRolesInClubs200Response.md +20 -0
  48. package/docs/PaymentMethod.md +11 -0
  49. package/docs/PlayerWithPaymentMethod.md +22 -0
  50. package/docs/PriceResponse.md +38 -0
  51. package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
  52. package/docs/SlotResponse.md +40 -0
  53. package/docs/SlotsResponse.md +22 -0
  54. package/docs/Sport.md +24 -0
  55. package/docs/SportResponse.md +34 -0
  56. package/docs/SportsApi.md +229 -0
  57. package/docs/SportsResponse.md +22 -0
  58. package/docs/SubscriptionPlan.md +36 -0
  59. package/docs/SubscriptionPlanResponse.md +36 -0
  60. package/docs/UpdateClubRequest.md +40 -0
  61. package/docs/UpdateClubRoleRequestBody.md +24 -0
  62. package/docs/UpdateSportRequest.md +20 -0
  63. package/docs/UpdateSubscriptionPlanRequest.md +24 -0
  64. package/docs/UpdateSubscriptionPlanResponse.md +22 -0
  65. package/docs/UsersApi.md +65 -18
  66. package/package.json +1 -33
@@ -0,0 +1,408 @@
1
+ # ClubSubscriptionsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/{id}/subscription-plans/{priceId}/archive-price | Archiver un prix|
8
+ |[**createPriceForSubscriptionPlan**](#createpriceforsubscriptionplan) | **POST** /api/clubs/{id}/subscription-plans/{productId}/prices | Créer un nouveau prix pour un plan|
9
+ |[**createSubscriptionPlanForClub**](#createsubscriptionplanforclub) | **POST** /api/clubs/{id}/subscription-plans | Créer un plan d\'abonnement pour un club|
10
+ |[**deleteSubscriptionPlanForClub**](#deletesubscriptionplanforclub) | **DELETE** /api/clubs/{id}/subscription-plans/{productId} | Supprimer un plan d\'abonnement pour un club|
11
+ |[**restoreSubscriptionPlanForClub**](#restoresubscriptionplanforclub) | **POST** /api/clubs/{id}/subscription-plans/{productId}/restore | Réactiver un plan d\'abonnement|
12
+ |[**restoreSubscriptionPriceForClub**](#restoresubscriptionpriceforclub) | **POST** /api/clubs/{id}/subscription-plans/{priceId}/restore-price | Réactiver un prix|
13
+ |[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/{id}/subscription-plans/{priceId} | Mettre à jour un plan d\'abonnement|
14
+
15
+ # **archivePriceForSubscriptionPlan**
16
+ > PriceResponse archivePriceForSubscriptionPlan()
17
+
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ ClubSubscriptionsApi,
24
+ Configuration
25
+ } from '@tennac-booking/sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new ClubSubscriptionsApi(configuration);
29
+
30
+ let id: string; //ID du club (default to undefined)
31
+ let priceId: string; //ID du prix Stripe (default to undefined)
32
+
33
+ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
34
+ id,
35
+ priceId
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **id** | [**string**] | ID du club | defaults to undefined|
44
+ | **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
45
+
46
+
47
+ ### Return type
48
+
49
+ **PriceResponse**
50
+
51
+ ### Authorization
52
+
53
+ [bearerAuth](../README.md#bearerAuth)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: Not defined
58
+ - **Accept**: application/json
59
+
60
+
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ |**200** | Prix archivé avec succès | - |
65
+ |**400** | Requête invalide | - |
66
+ |**500** | Erreur serveur interne | - |
67
+
68
+ [[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)
69
+
70
+ # **createPriceForSubscriptionPlan**
71
+ > PriceResponse createPriceForSubscriptionPlan(createPriceRequest)
72
+
73
+
74
+ ### Example
75
+
76
+ ```typescript
77
+ import {
78
+ ClubSubscriptionsApi,
79
+ Configuration,
80
+ CreatePriceRequest
81
+ } from '@tennac-booking/sdk';
82
+
83
+ const configuration = new Configuration();
84
+ const apiInstance = new ClubSubscriptionsApi(configuration);
85
+
86
+ let id: string; //ID du club (default to undefined)
87
+ let productId: string; //ID du produit Stripe (default to undefined)
88
+ let createPriceRequest: CreatePriceRequest; //
89
+
90
+ const { status, data } = await apiInstance.createPriceForSubscriptionPlan(
91
+ id,
92
+ productId,
93
+ createPriceRequest
94
+ );
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ |Name | Type | Description | Notes|
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **createPriceRequest** | **CreatePriceRequest**| | |
102
+ | **id** | [**string**] | ID du club | defaults to undefined|
103
+ | **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
104
+
105
+
106
+ ### Return type
107
+
108
+ **PriceResponse**
109
+
110
+ ### Authorization
111
+
112
+ [bearerAuth](../README.md#bearerAuth)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: application/json
117
+ - **Accept**: application/json
118
+
119
+
120
+ ### HTTP response details
121
+ | Status code | Description | Response headers |
122
+ |-------------|-------------|------------------|
123
+ |**201** | Prix créé avec succès | - |
124
+ |**400** | Requête invalide | - |
125
+ |**500** | Erreur serveur interne | - |
126
+
127
+ [[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)
128
+
129
+ # **createSubscriptionPlanForClub**
130
+ > SubscriptionPlanResponse createSubscriptionPlanForClub(createSubscriptionPlanRequest)
131
+
132
+
133
+ ### Example
134
+
135
+ ```typescript
136
+ import {
137
+ ClubSubscriptionsApi,
138
+ Configuration,
139
+ CreateSubscriptionPlanRequest
140
+ } from '@tennac-booking/sdk';
141
+
142
+ const configuration = new Configuration();
143
+ const apiInstance = new ClubSubscriptionsApi(configuration);
144
+
145
+ let id: string; //ID du club (default to undefined)
146
+ let createSubscriptionPlanRequest: CreateSubscriptionPlanRequest; //
147
+
148
+ const { status, data } = await apiInstance.createSubscriptionPlanForClub(
149
+ id,
150
+ createSubscriptionPlanRequest
151
+ );
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ |Name | Type | Description | Notes|
157
+ |------------- | ------------- | ------------- | -------------|
158
+ | **createSubscriptionPlanRequest** | **CreateSubscriptionPlanRequest**| | |
159
+ | **id** | [**string**] | ID du club | defaults to undefined|
160
+
161
+
162
+ ### Return type
163
+
164
+ **SubscriptionPlanResponse**
165
+
166
+ ### Authorization
167
+
168
+ [bearerAuth](../README.md#bearerAuth)
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: application/json
173
+ - **Accept**: application/json
174
+
175
+
176
+ ### HTTP response details
177
+ | Status code | Description | Response headers |
178
+ |-------------|-------------|------------------|
179
+ |**201** | Plan d\'abonnement créé avec succès | - |
180
+ |**400** | Requête invalide | - |
181
+ |**500** | Erreur serveur interne | - |
182
+
183
+ [[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)
184
+
185
+ # **deleteSubscriptionPlanForClub**
186
+ > deleteSubscriptionPlanForClub()
187
+
188
+
189
+ ### Example
190
+
191
+ ```typescript
192
+ import {
193
+ ClubSubscriptionsApi,
194
+ Configuration
195
+ } from '@tennac-booking/sdk';
196
+
197
+ const configuration = new Configuration();
198
+ const apiInstance = new ClubSubscriptionsApi(configuration);
199
+
200
+ let id: string; //ID du club (default to undefined)
201
+ let productId: string; //ID du produit Stripe (default to undefined)
202
+
203
+ const { status, data } = await apiInstance.deleteSubscriptionPlanForClub(
204
+ id,
205
+ productId
206
+ );
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ |Name | Type | Description | Notes|
212
+ |------------- | ------------- | ------------- | -------------|
213
+ | **id** | [**string**] | ID du club | defaults to undefined|
214
+ | **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
215
+
216
+
217
+ ### Return type
218
+
219
+ void (empty response body)
220
+
221
+ ### Authorization
222
+
223
+ [bearerAuth](../README.md#bearerAuth)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: Not defined
228
+ - **Accept**: application/json
229
+
230
+
231
+ ### HTTP response details
232
+ | Status code | Description | Response headers |
233
+ |-------------|-------------|------------------|
234
+ |**204** | Plan d\'abonnement supprimé avec succès | - |
235
+ |**400** | Requête invalide | - |
236
+ |**500** | Erreur serveur interne | - |
237
+
238
+ [[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)
239
+
240
+ # **restoreSubscriptionPlanForClub**
241
+ > RestoreSubscriptionPlanForClub200Response restoreSubscriptionPlanForClub()
242
+
243
+
244
+ ### Example
245
+
246
+ ```typescript
247
+ import {
248
+ ClubSubscriptionsApi,
249
+ Configuration
250
+ } from '@tennac-booking/sdk';
251
+
252
+ const configuration = new Configuration();
253
+ const apiInstance = new ClubSubscriptionsApi(configuration);
254
+
255
+ let id: string; //ID du club (default to undefined)
256
+ let productId: string; //ID du produit Stripe (default to undefined)
257
+
258
+ const { status, data } = await apiInstance.restoreSubscriptionPlanForClub(
259
+ id,
260
+ productId
261
+ );
262
+ ```
263
+
264
+ ### Parameters
265
+
266
+ |Name | Type | Description | Notes|
267
+ |------------- | ------------- | ------------- | -------------|
268
+ | **id** | [**string**] | ID du club | defaults to undefined|
269
+ | **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
270
+
271
+
272
+ ### Return type
273
+
274
+ **RestoreSubscriptionPlanForClub200Response**
275
+
276
+ ### Authorization
277
+
278
+ [bearerAuth](../README.md#bearerAuth)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: Not defined
283
+ - **Accept**: application/json
284
+
285
+
286
+ ### HTTP response details
287
+ | Status code | Description | Response headers |
288
+ |-------------|-------------|------------------|
289
+ |**200** | Plan d\'abonnement réactivé avec succès | - |
290
+ |**400** | Requête invalide | - |
291
+ |**500** | Erreur serveur interne | - |
292
+
293
+ [[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)
294
+
295
+ # **restoreSubscriptionPriceForClub**
296
+ > PriceResponse restoreSubscriptionPriceForClub()
297
+
298
+
299
+ ### Example
300
+
301
+ ```typescript
302
+ import {
303
+ ClubSubscriptionsApi,
304
+ Configuration
305
+ } from '@tennac-booking/sdk';
306
+
307
+ const configuration = new Configuration();
308
+ const apiInstance = new ClubSubscriptionsApi(configuration);
309
+
310
+ let id: string; //ID du club (default to undefined)
311
+ let priceId: string; //ID du prix Stripe (default to undefined)
312
+
313
+ const { status, data } = await apiInstance.restoreSubscriptionPriceForClub(
314
+ id,
315
+ priceId
316
+ );
317
+ ```
318
+
319
+ ### Parameters
320
+
321
+ |Name | Type | Description | Notes|
322
+ |------------- | ------------- | ------------- | -------------|
323
+ | **id** | [**string**] | ID du club | defaults to undefined|
324
+ | **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
325
+
326
+
327
+ ### Return type
328
+
329
+ **PriceResponse**
330
+
331
+ ### Authorization
332
+
333
+ [bearerAuth](../README.md#bearerAuth)
334
+
335
+ ### HTTP request headers
336
+
337
+ - **Content-Type**: Not defined
338
+ - **Accept**: application/json
339
+
340
+
341
+ ### HTTP response details
342
+ | Status code | Description | Response headers |
343
+ |-------------|-------------|------------------|
344
+ |**200** | Prix réactivé avec succès | - |
345
+ |**400** | Requête invalide | - |
346
+ |**500** | Erreur serveur interne | - |
347
+
348
+ [[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)
349
+
350
+ # **updateSubscriptionPlanForClub**
351
+ > UpdateSubscriptionPlanResponse updateSubscriptionPlanForClub(updateSubscriptionPlanRequest)
352
+
353
+
354
+ ### Example
355
+
356
+ ```typescript
357
+ import {
358
+ ClubSubscriptionsApi,
359
+ Configuration,
360
+ UpdateSubscriptionPlanRequest
361
+ } from '@tennac-booking/sdk';
362
+
363
+ const configuration = new Configuration();
364
+ const apiInstance = new ClubSubscriptionsApi(configuration);
365
+
366
+ let id: string; //ID du club (default to undefined)
367
+ let priceId: string; //ID du prix Stripe (default to undefined)
368
+ let updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest; //
369
+
370
+ const { status, data } = await apiInstance.updateSubscriptionPlanForClub(
371
+ id,
372
+ priceId,
373
+ updateSubscriptionPlanRequest
374
+ );
375
+ ```
376
+
377
+ ### Parameters
378
+
379
+ |Name | Type | Description | Notes|
380
+ |------------- | ------------- | ------------- | -------------|
381
+ | **updateSubscriptionPlanRequest** | **UpdateSubscriptionPlanRequest**| | |
382
+ | **id** | [**string**] | ID du club | defaults to undefined|
383
+ | **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
384
+
385
+
386
+ ### Return type
387
+
388
+ **UpdateSubscriptionPlanResponse**
389
+
390
+ ### Authorization
391
+
392
+ [bearerAuth](../README.md#bearerAuth)
393
+
394
+ ### HTTP request headers
395
+
396
+ - **Content-Type**: application/json
397
+ - **Accept**: application/json
398
+
399
+
400
+ ### HTTP response details
401
+ | Status code | Description | Response headers |
402
+ |-------------|-------------|------------------|
403
+ |**200** | Plan d\'abonnement mis à jour avec succès | - |
404
+ |**400** | Requête invalide | - |
405
+ |**500** | Erreur serveur interne | - |
406
+
407
+ [[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)
408
+