@tennac-booking/sdk 1.0.221 → 1.0.222

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 (131) hide show
  1. package/.openapi-generator/FILES +47 -25
  2. package/README.md +70 -38
  3. package/api.ts +3363 -1854
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +3048 -1793
  8. package/dist/api.js +15612 -9532
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +32 -11
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +133 -41
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +21 -8
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +1 -1
  17. package/docs/AgendaBooking.md +2 -0
  18. package/docs/AuthApi.md +113 -0
  19. package/docs/BookingPopulated.md +9 -1
  20. package/docs/BookingSummary.md +4 -4
  21. package/docs/BookingsApi.md +25 -79
  22. package/docs/BookingsStaffApi.md +1 -57
  23. package/docs/BookingsUserApi.md +6 -6
  24. package/docs/ClubPageResponse.md +14 -0
  25. package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
  26. package/docs/ClubPricingPeriodPayload.md +32 -0
  27. package/docs/ClubPricingPeriodResponse.md +6 -6
  28. package/docs/ClubReservationSettingsResponse.md +2 -2
  29. package/docs/ClubResponse.md +12 -2
  30. package/docs/ClubSummary.md +6 -0
  31. package/docs/ComingEventsPageResponse.md +22 -0
  32. package/docs/CourtEnvironment.md +10 -0
  33. package/docs/CreateBookingRequest.md +0 -2
  34. package/docs/CreateOpenBookingRequest.md +6 -4
  35. package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
  36. package/docs/EstimateOpenBookingJoinRequest.md +24 -0
  37. package/docs/EventBookingDetailSummary.md +2 -0
  38. package/docs/EventBookingResponse.md +2 -0
  39. package/docs/EventResponse.md +2 -0
  40. package/docs/EventsApi.md +58 -0
  41. package/docs/EventsStaffApi.md +119 -25
  42. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
  43. package/docs/{SumupReadersResponse.md → Health200Response.md} +7 -5
  44. package/docs/IUserAttributes.md +4 -0
  45. package/docs/JobResult.md +24 -0
  46. package/docs/JobsApi.md +367 -0
  47. package/docs/JoinOpenBookingRequest.md +28 -0
  48. package/docs/MarkNotificationsReadRequest.md +22 -0
  49. package/docs/{SumupPairReaderResponse.md → MarkNotificationsReadResponse.md} +5 -5
  50. package/docs/MyClubInfosResponse.md +0 -2
  51. package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
  52. package/docs/NotificationData.md +22 -0
  53. package/docs/NotificationInitiator.md +28 -0
  54. package/docs/NotificationParticipantPreview.md +24 -0
  55. package/docs/NotificationPreview.md +78 -0
  56. package/docs/NotificationResponse.md +46 -0
  57. package/docs/NotificationResponseClub.md +24 -0
  58. package/docs/NotificationSlotPreview.md +24 -0
  59. package/docs/NotificationSportPreview.md +24 -0
  60. package/docs/{SumupPairReaderRequest.md → NotificationTargetPreview.md} +7 -7
  61. package/docs/NotificationType.md +26 -0
  62. package/docs/OpenBookingBasePriceResponse.md +24 -0
  63. package/docs/OpenBookingInfo.md +7 -5
  64. package/docs/OpenBookingJoinEstimateResponse.md +26 -0
  65. package/docs/OpenBookingPriceBody.md +26 -0
  66. package/docs/PartnerSearchItem.md +28 -0
  67. package/docs/PartnerSearchResponse.md +22 -0
  68. package/docs/PartnerSearchResponseMeta.md +26 -0
  69. package/docs/PlayerPrice.md +3 -1
  70. package/docs/PricingPeriodDiscount.md +24 -0
  71. package/docs/PublicEmailApi.md +4 -4
  72. package/docs/QuickReservationClubSummary.md +12 -0
  73. package/docs/QuickReservationCourtType.md +10 -0
  74. package/docs/RequestOrganizationEmailCodeBody.md +22 -0
  75. package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
  76. package/docs/RequestVerificationCodeBody.md +26 -0
  77. package/docs/{SumupConnectUrlResponse.md → RequestVerificationCodeResponse.md} +5 -5
  78. package/docs/SportResponse.md +2 -0
  79. package/docs/StaffEventBookingResponse.md +2 -0
  80. package/docs/StaffEventsPageResponse.md +22 -0
  81. package/docs/StaffUserProfileResponse.md +4 -0
  82. package/docs/SubscriptionPlanDiscountResponse.md +2 -0
  83. package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
  84. package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
  85. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  86. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  87. package/docs/UserClubMembership.md +2 -0
  88. package/docs/UserNextBookingSummary.md +26 -0
  89. package/docs/UserNotificationsResponse.md +22 -0
  90. package/docs/UserNotificationsResponseMeta.md +28 -0
  91. package/docs/UserProfileResponse.md +12 -0
  92. package/docs/UsersApi.md +273 -0
  93. package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
  94. package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
  95. package/docs/VerifyVerificationCodeBody.md +24 -0
  96. package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
  97. package/docs/WaitListEntryWithPlayer.md +44 -0
  98. package/docs/WaitListPlayer.md +28 -0
  99. package/docs/WaitListPlayersListResponse.md +22 -0
  100. package/docs/WaitListStaffApi.md +55 -0
  101. package/index.ts +1 -1
  102. package/package.json +2 -4
  103. package/tsconfig.json +5 -2
  104. package/dist/esm/api.d.ts +0 -25210
  105. package/dist/esm/api.js +0 -17399
  106. package/dist/esm/base.d.ts +0 -66
  107. package/dist/esm/base.js +0 -60
  108. package/dist/esm/common.d.ts +0 -65
  109. package/dist/esm/common.js +0 -149
  110. package/dist/esm/configuration.d.ts +0 -91
  111. package/dist/esm/configuration.js +0 -40
  112. package/dist/esm/index.d.ts +0 -13
  113. package/dist/esm/index.js +0 -15
  114. package/docs/CheckInPlayerSumupRequest.md +0 -22
  115. package/docs/CheckInPlayerSumupResponse.md +0 -24
  116. package/docs/CheckInSumupPaymentInfo.md +0 -26
  117. package/docs/GetOpenBookingPrice200Response.md +0 -24
  118. package/docs/GetOpenBookingPriceRequest.md +0 -26
  119. package/docs/JoinPriceEstimateResponse.md +0 -38
  120. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
  121. package/docs/OpenBookingSlotInfo.md +0 -24
  122. package/docs/PaymentIntentResult.md +0 -28
  123. package/docs/PaymentsStaffApi.md +0 -124
  124. package/docs/StaffEventsPaginatedResponse.md +0 -26
  125. package/docs/SumUpApi.md +0 -63
  126. package/docs/SumUpManagerApi.md +0 -332
  127. package/docs/SumupAccountStatusResponse.md +0 -32
  128. package/docs/SumupCreatePaymentRequest.md +0 -32
  129. package/docs/SumupOAuthCallbackResponse.md +0 -24
  130. package/docs/SumupReaderInfo.md +0 -34
  131. package/tsconfig.esm.json +0 -7
@@ -5,12 +5,11 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createGuestBooking**](#createguestbooking) | **POST** /api/bookings/guest | |
8
- |[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
8
+ |[**estimateOpenBookingJoin**](#estimateopenbookingjoin) | **POST** /api/bookings/{bookingId}/open/estimate-join | |
9
9
  |[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
10
10
  |[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
11
11
  |[**getGuestBookingPrice**](#getguestbookingprice) | **POST** /api/bookings/guest/booking-price | |
12
- |[**getJoinPriceEstimate**](#getjoinpriceestimate) | **GET** /api/bookings/{bookingId}/join-price-estimate | |
13
- |[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
12
+ |[**getOpenBookingBasePrice**](#getopenbookingbaseprice) | **GET** /api/bookings/{bookingId}/open/base-price | |
14
13
  |[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
15
14
  |[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
16
15
  |[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
@@ -68,28 +67,29 @@ No authorization required
68
67
 
69
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)
70
69
 
71
- # **estimateOpenBookingJoinPrice**
72
- > EstimateOpenEventBookingJoinPrice200Response estimateOpenBookingJoinPrice()
70
+ # **estimateOpenBookingJoin**
71
+ > OpenBookingJoinEstimateResponse estimateOpenBookingJoin(estimateOpenBookingJoinRequest)
73
72
 
74
- Estimer le prix pour rejoindre une réservation ouverte
73
+ Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
75
74
 
76
75
  ### Example
77
76
 
78
77
  ```typescript
79
78
  import {
80
79
  BookingsApi,
81
- Configuration
80
+ Configuration,
81
+ EstimateOpenBookingJoinRequest
82
82
  } from '@tennac-booking/sdk';
83
83
 
84
84
  const configuration = new Configuration();
85
85
  const apiInstance = new BookingsApi(configuration);
86
86
 
87
87
  let bookingId: string; // (default to undefined)
88
- let creditToUseInCents: number; // (optional) (default to undefined)
88
+ let estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest; //
89
89
 
90
- const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
90
+ const { status, data } = await apiInstance.estimateOpenBookingJoin(
91
91
  bookingId,
92
- creditToUseInCents
92
+ estimateOpenBookingJoinRequest
93
93
  );
94
94
  ```
95
95
 
@@ -97,13 +97,13 @@ const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
97
97
 
98
98
  |Name | Type | Description | Notes|
99
99
  |------------- | ------------- | ------------- | -------------|
100
+ | **estimateOpenBookingJoinRequest** | **EstimateOpenBookingJoinRequest**| | |
100
101
  | **bookingId** | [**string**] | | defaults to undefined|
101
- | **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
102
102
 
103
103
 
104
104
  ### Return type
105
105
 
106
- **EstimateOpenEventBookingJoinPrice200Response**
106
+ **OpenBookingJoinEstimateResponse**
107
107
 
108
108
  ### Authorization
109
109
 
@@ -111,14 +111,14 @@ const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
111
111
 
112
112
  ### HTTP request headers
113
113
 
114
- - **Content-Type**: Not defined
114
+ - **Content-Type**: application/json
115
115
  - **Accept**: application/json
116
116
 
117
117
 
118
118
  ### HTTP response details
119
119
  | Status code | Description | Response headers |
120
120
  |-------------|-------------|------------------|
121
- |**200** | Estimation du prix calculée | - |
121
+ |**200** | Prix à payer calculé | - |
122
122
 
123
123
  [[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)
124
124
 
@@ -276,10 +276,10 @@ No authorization required
276
276
 
277
277
  [[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)
278
278
 
279
- # **getJoinPriceEstimate**
280
- > JoinPriceEstimateResponse getJoinPriceEstimate()
279
+ # **getOpenBookingBasePrice**
280
+ > OpenBookingBasePriceResponse getOpenBookingBasePrice()
281
281
 
282
- Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
282
+ Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur stocké lors de la création.
283
283
 
284
284
  ### Example
285
285
 
@@ -293,62 +293,8 @@ const configuration = new Configuration();
293
293
  const apiInstance = new BookingsApi(configuration);
294
294
 
295
295
  let bookingId: string; // (default to undefined)
296
- let creditToUseInCents: number; // (optional) (default to undefined)
297
-
298
- const { status, data } = await apiInstance.getJoinPriceEstimate(
299
- bookingId,
300
- creditToUseInCents
301
- );
302
- ```
303
-
304
- ### Parameters
305
-
306
- |Name | Type | Description | Notes|
307
- |------------- | ------------- | ------------- | -------------|
308
- | **bookingId** | [**string**] | | defaults to undefined|
309
- | **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
310
296
 
311
-
312
- ### Return type
313
-
314
- **JoinPriceEstimateResponse**
315
-
316
- ### Authorization
317
-
318
- [bearerAuth](../README.md#bearerAuth)
319
-
320
- ### HTTP request headers
321
-
322
- - **Content-Type**: Not defined
323
- - **Accept**: application/json
324
-
325
-
326
- ### HTTP response details
327
- | Status code | Description | Response headers |
328
- |-------------|-------------|------------------|
329
- |**200** | Estimation complète du prix calculée | - |
330
-
331
- [[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)
332
-
333
- # **getOpenBookingJoinPrice**
334
- > GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
335
-
336
- Estimer simplement le prix à payer pour rejoindre une réservation ouverte
337
-
338
- ### Example
339
-
340
- ```typescript
341
- import {
342
- BookingsApi,
343
- Configuration
344
- } from '@tennac-booking/sdk';
345
-
346
- const configuration = new Configuration();
347
- const apiInstance = new BookingsApi(configuration);
348
-
349
- let bookingId: string; // (default to undefined)
350
-
351
- const { status, data } = await apiInstance.getOpenBookingJoinPrice(
297
+ const { status, data } = await apiInstance.getOpenBookingBasePrice(
352
298
  bookingId
353
299
  );
354
300
  ```
@@ -362,7 +308,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
362
308
 
363
309
  ### Return type
364
310
 
365
- **GetOpenEventBookingJoinPrice200Response**
311
+ **OpenBookingBasePriceResponse**
366
312
 
367
313
  ### Authorization
368
314
 
@@ -377,7 +323,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
377
323
  ### HTTP response details
378
324
  | Status code | Description | Response headers |
379
325
  |-------------|-------------|------------------|
380
- |**200** | Prix à payer calculé | - |
326
+ |**200** | Prix de base calculé | - |
381
327
 
382
328
  [[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)
383
329
 
@@ -513,7 +459,7 @@ No authorization required
513
459
  [[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)
514
460
 
515
461
  # **joinOpenBooking**
516
- > JoinOpenBookingResponse joinOpenBooking(joinOpenEventBookingRequest)
462
+ > JoinOpenBookingResponse joinOpenBooking(joinOpenBookingRequest)
517
463
 
518
464
 
519
465
  ### Example
@@ -522,18 +468,18 @@ No authorization required
522
468
  import {
523
469
  BookingsApi,
524
470
  Configuration,
525
- JoinOpenEventBookingRequest
471
+ JoinOpenBookingRequest
526
472
  } from '@tennac-booking/sdk';
527
473
 
528
474
  const configuration = new Configuration();
529
475
  const apiInstance = new BookingsApi(configuration);
530
476
 
531
477
  let bookingId: string; // (default to undefined)
532
- let joinOpenEventBookingRequest: JoinOpenEventBookingRequest; //
478
+ let joinOpenBookingRequest: JoinOpenBookingRequest; //
533
479
 
534
480
  const { status, data } = await apiInstance.joinOpenBooking(
535
481
  bookingId,
536
- joinOpenEventBookingRequest
482
+ joinOpenBookingRequest
537
483
  );
538
484
  ```
539
485
 
@@ -541,7 +487,7 @@ const { status, data } = await apiInstance.joinOpenBooking(
541
487
 
542
488
  |Name | Type | Description | Notes|
543
489
  |------------- | ------------- | ------------- | -------------|
544
- | **joinOpenEventBookingRequest** | **JoinOpenEventBookingRequest**| | |
490
+ | **joinOpenBookingRequest** | **JoinOpenBookingRequest**| | |
545
491
  | **bookingId** | [**string**] | | defaults to undefined|
546
492
 
547
493
 
@@ -5,7 +5,6 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
8
- |[**checkInPlayerWithSumup**](#checkinplayerwithsumup) | **POST** /api/bookings/{bookingId}/check-in/sumup | |
9
8
  |[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
10
9
  |[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
11
10
  |[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
@@ -17,7 +16,7 @@ All URIs are relative to *http://localhost*
17
16
  # **checkInPlayer**
18
17
  > CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
19
18
 
20
- Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
19
+ Check-in d\'un joueur (paiement en ligne ou sur place)
21
20
 
22
21
  ### Example
23
22
 
@@ -69,61 +68,6 @@ const { status, data } = await apiInstance.checkInPlayer(
69
68
 
70
69
  [[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)
71
70
 
72
- # **checkInPlayerWithSumup**
73
- > CheckInPlayerSumupResponse checkInPlayerWithSumup(checkInPlayerSumupRequest)
74
-
75
- Check-in d\'un joueur avec création d\'un checkout SumUp
76
-
77
- ### Example
78
-
79
- ```typescript
80
- import {
81
- BookingsStaffApi,
82
- Configuration,
83
- CheckInPlayerSumupRequest
84
- } from '@tennac-booking/sdk';
85
-
86
- const configuration = new Configuration();
87
- const apiInstance = new BookingsStaffApi(configuration);
88
-
89
- let bookingId: string; // (default to undefined)
90
- let checkInPlayerSumupRequest: CheckInPlayerSumupRequest; //
91
-
92
- const { status, data } = await apiInstance.checkInPlayerWithSumup(
93
- bookingId,
94
- checkInPlayerSumupRequest
95
- );
96
- ```
97
-
98
- ### Parameters
99
-
100
- |Name | Type | Description | Notes|
101
- |------------- | ------------- | ------------- | -------------|
102
- | **checkInPlayerSumupRequest** | **CheckInPlayerSumupRequest**| | |
103
- | **bookingId** | [**string**] | | defaults to undefined|
104
-
105
-
106
- ### Return type
107
-
108
- **CheckInPlayerSumupResponse**
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
- |**200** | Checkout SumUp déclenché | - |
124
-
125
- [[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)
126
-
127
71
  # **createStaffBooking**
128
72
  > BookingResponse createStaffBooking(staffCreateBookingRequest)
129
73
 
@@ -166,7 +166,7 @@ const { status, data } = await apiInstance.createOpenBooking(
166
166
  [[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)
167
167
 
168
168
  # **getOpenBookingPrice**
169
- > GetOpenBookingPrice200Response getOpenBookingPrice(getOpenBookingPriceRequest)
169
+ > BookingPriceResponse getOpenBookingPrice(openBookingPriceBody)
170
170
 
171
171
  Calculer le prix d\'une réservation ouverte avec joueurs initiaux
172
172
 
@@ -176,16 +176,16 @@ Calculer le prix d\'une réservation ouverte avec joueurs initiaux
176
176
  import {
177
177
  BookingsUserApi,
178
178
  Configuration,
179
- GetOpenBookingPriceRequest
179
+ OpenBookingPriceBody
180
180
  } from '@tennac-booking/sdk';
181
181
 
182
182
  const configuration = new Configuration();
183
183
  const apiInstance = new BookingsUserApi(configuration);
184
184
 
185
- let getOpenBookingPriceRequest: GetOpenBookingPriceRequest; //
185
+ let openBookingPriceBody: OpenBookingPriceBody; //
186
186
 
187
187
  const { status, data } = await apiInstance.getOpenBookingPrice(
188
- getOpenBookingPriceRequest
188
+ openBookingPriceBody
189
189
  );
190
190
  ```
191
191
 
@@ -193,12 +193,12 @@ const { status, data } = await apiInstance.getOpenBookingPrice(
193
193
 
194
194
  |Name | Type | Description | Notes|
195
195
  |------------- | ------------- | ------------- | -------------|
196
- | **getOpenBookingPriceRequest** | **GetOpenBookingPriceRequest**| | |
196
+ | **openBookingPriceBody** | **OpenBookingPriceBody**| | |
197
197
 
198
198
 
199
199
  ### Return type
200
200
 
201
- **GetOpenBookingPrice200Response**
201
+ **BookingPriceResponse**
202
202
 
203
203
  ### Authorization
204
204
 
@@ -16,7 +16,14 @@ Name | Type | Description | Notes
16
16
  **isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
17
17
  **paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
18
18
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
19
+ **clubCustomerStatus** | [**ClubPageResponseClubCustomerStatus**](ClubPageResponseClubCustomerStatus.md) | | [optional] [default to undefined]
19
20
  **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
21
+ **courtsCount** | **number** | Nombre total de terrains du club | [optional] [default to undefined]
22
+ **courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
23
+ **surfacesBySport** | **{ [key: string]: Array<SurfaceType>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
24
+ **indoorOutdoorBySport** | **{ [key: string]: Array<CourtEnvironment>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
25
+ **slotDurationsBySport** | **{ [key: string]: Array<number>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
26
+ **bookingPeriodInDays** | **number** | Période de réservation en jours | [optional] [default to undefined]
20
27
  **clubPresentation** | [**ClubPresentation**](ClubPresentation.md) | | [default to undefined]
21
28
  **comingEvents** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
22
29
  **comingClosures** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
@@ -42,7 +49,14 @@ const instance: ClubPageResponse = {
42
49
  isActive,
43
50
  paymentFeature,
44
51
  isNoShowEnabled,
52
+ clubCustomerStatus,
45
53
  sports,
54
+ courtsCount,
55
+ courtsCountBySport,
56
+ surfacesBySport,
57
+ indoorOutdoorBySport,
58
+ slotDurationsBySport,
59
+ bookingPeriodInDays,
46
60
  clubPresentation,
47
61
  comingEvents,
48
62
  comingClosures,
@@ -0,0 +1,27 @@
1
+ # ClubPageResponseClubCustomerStatus
2
+
3
+ Statut du client dans le club (si l\'utilisateur est connecte)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **isNoShowForced** | **boolean** | | [default to undefined]
10
+ **isFree** | **boolean** | | [default to undefined]
11
+ **isIllimited** | **boolean** | | [default to undefined]
12
+ **isBanned** | **boolean** | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ClubPageResponseClubCustomerStatus } from '@tennac-booking/sdk';
18
+
19
+ const instance: ClubPageResponseClubCustomerStatus = {
20
+ isNoShowForced,
21
+ isFree,
22
+ isIllimited,
23
+ isBanned,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,32 @@
1
+ # ClubPricingPeriodPayload
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | | [optional] [default to undefined]
9
+ **id** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [default to undefined]
11
+ **weekDays** | [**Array<WeekdayKey>**](WeekdayKey.md) | | [default to undefined]
12
+ **startTime** | **number** | | [default to undefined]
13
+ **endTime** | **number** | | [default to undefined]
14
+ **priceVariation** | **number** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { ClubPricingPeriodPayload } from '@tennac-booking/sdk';
20
+
21
+ const instance: ClubPricingPeriodPayload = {
22
+ _id,
23
+ id,
24
+ name,
25
+ weekDays,
26
+ startTime,
27
+ endTime,
28
+ priceVariation,
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)
@@ -5,12 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | | [default to undefined]
8
+ **_id** | **string** | | [default to undefined]
9
9
  **name** | **string** | | [default to undefined]
10
- **days** | **Array<string>** | | [default to undefined]
10
+ **weekDays** | [**Array<WeekdayKey>**](WeekdayKey.md) | | [default to undefined]
11
11
  **startTime** | **number** | | [default to undefined]
12
12
  **endTime** | **number** | | [default to undefined]
13
- **variation** | **number** | | [default to undefined]
13
+ **priceVariation** | **number** | | [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -18,12 +18,12 @@ Name | Type | Description | Notes
18
18
  import { ClubPricingPeriodResponse } from '@tennac-booking/sdk';
19
19
 
20
20
  const instance: ClubPricingPeriodResponse = {
21
- id,
21
+ _id,
22
22
  name,
23
- days,
23
+ weekDays,
24
24
  startTime,
25
25
  endTime,
26
- variation,
26
+ priceVariation,
27
27
  };
28
28
  ```
29
29
 
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **maxWeeklyBookings** | **number** | | [default to undefined]
9
- **sameTimeBookingsLimit** | **number** | | [default to undefined]
9
+ **maxSlotsPerBooking** | **number** | | [default to undefined]
10
10
  **cancellationDelayInHours** | **number** | | [default to undefined]
11
11
  **bookingPeriodInDays** | **number** | | [default to undefined]
12
12
 
@@ -17,7 +17,7 @@ import { ClubReservationSettingsResponse } from '@tennac-booking/sdk';
17
17
 
18
18
  const instance: ClubReservationSettingsResponse = {
19
19
  maxWeeklyBookings,
20
- sameTimeBookingsLimit,
20
+ maxSlotsPerBooking,
21
21
  cancellationDelayInHours,
22
22
  bookingPeriodInDays,
23
23
  };
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **email** | **string** | Email du club | [optional] [default to undefined]
13
13
  **phone** | **string** | Téléphone du club | [optional] [default to undefined]
14
14
  **picture** | **string** | URL de l\'image du club | [optional] [default to undefined]
15
+ **logo** | **string** | URL du logo du club (alias de picture) | [optional] [default to undefined]
15
16
  **location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
16
17
  **isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
17
18
  **paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
@@ -19,8 +20,12 @@ Name | Type | Description | Notes
19
20
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
20
21
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
21
22
  **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
23
+ **courtsCount** | **number** | Nombre total de terrains du club | [optional] [default to undefined]
24
+ **courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
25
+ **surfacesBySport** | **{ [key: string]: Array<SurfaceType>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
26
+ **indoorOutdoorBySport** | **{ [key: string]: Array<CourtEnvironment>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
27
+ **slotDurationsBySport** | **{ [key: string]: Array<number>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
22
28
  **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
23
- **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
24
29
  **maxSlotsPerBooking** | **number** | | [optional] [default to undefined]
25
30
  **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
26
31
  **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
@@ -40,6 +45,7 @@ const instance: ClubResponse = {
40
45
  email,
41
46
  phone,
42
47
  picture,
48
+ logo,
43
49
  location,
44
50
  isActive,
45
51
  paymentFeature,
@@ -47,8 +53,12 @@ const instance: ClubResponse = {
47
53
  clubDashBoardUrl,
48
54
  isNoShowEnabled,
49
55
  sports,
56
+ courtsCount,
57
+ courtsCountBySport,
58
+ surfacesBySport,
59
+ indoorOutdoorBySport,
60
+ slotDurationsBySport,
50
61
  allowMultipleBookingsAtTheSameTime,
51
- sameTimeBookingsLimit,
52
62
  maxSlotsPerBooking,
53
63
  cancellationLimitHours,
54
64
  maxWeeklyBookings,
@@ -14,6 +14,9 @@ Name | Type | Description | Notes
14
14
  **address** | **string** | | [optional] [default to undefined]
15
15
  **description** | **string** | | [optional] [default to undefined]
16
16
  **visitCount** | **number** | | [optional] [default to undefined]
17
+ **lastPlayedAt** | **string** | | [optional] [default to undefined]
18
+ **distanceInMeters** | **number** | | [optional] [default to undefined]
19
+ **distanceInKm** | **number** | | [optional] [default to undefined]
17
20
  **tags** | **Array<string>** | | [optional] [default to undefined]
18
21
 
19
22
  ## Example
@@ -31,6 +34,9 @@ const instance: ClubSummary = {
31
34
  address,
32
35
  description,
33
36
  visitCount,
37
+ lastPlayedAt,
38
+ distanceInMeters,
39
+ distanceInKm,
34
40
  tags,
35
41
  };
36
42
  ```
@@ -0,0 +1,22 @@
1
+ # ComingEventsPageResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **events** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
9
+ **pagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ComingEventsPageResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ComingEventsPageResponse = {
17
+ events,
18
+ pagination,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,10 @@
1
+ # CourtEnvironment
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Indoor` (value: `'indoor'`)
7
+
8
+ * `Outdoor` (value: `'outdoor'`)
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
12
12
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
13
13
  **creditToUseInCents** | **number** | | [optional] [default to undefined]
14
14
  **maxPlayersDesired** | **number** | Pour créneau ouvert: nombre maximal de joueurs souhaités (incluant le créateur) | [optional] [default to undefined]
15
- **maxPlayers** | **number** | Pour créneau ouvert: nombre maximal de joueurs total (incluant le créateur) - alias de maxPlayersDesired | [optional] [default to undefined]
16
15
 
17
16
  ## Example
18
17
 
@@ -27,7 +26,6 @@ const instance: CreateBookingRequest = {
27
26
  useDefaultPaymentMethod,
28
27
  creditToUseInCents,
29
28
  maxPlayersDesired,
30
- maxPlayers,
31
29
  };
32
30
  ```
33
31
 
@@ -6,13 +6,14 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
9
+ **playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll) | [optional] [default to undefined]
10
+ **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs initiaux (incompatible avec playerShares) | [optional] [default to undefined]
9
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
10
12
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
11
13
  **creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
12
- **maxPlayers** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
14
+ **maxPlayersDesired** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
13
15
  **description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
14
16
  **minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
15
- **initialPlayerIds** | **Array<string>** | IDs des joueurs inclus de base dans la réservation (en plus du créateur) | [optional] [default to undefined]
16
17
 
17
18
  ## Example
18
19
 
@@ -21,13 +22,14 @@ import { CreateOpenBookingRequest } from '@tennac-booking/sdk';
21
22
 
22
23
  const instance: CreateOpenBookingRequest = {
23
24
  slotIds,
25
+ playerShares,
26
+ isCreatorPayingAll,
24
27
  paymentMethod,
25
28
  useDefaultPaymentMethod,
26
29
  creditToUseInCents,
27
- maxPlayers,
30
+ maxPlayersDesired,
28
31
  description,
29
32
  minLevel,
30
- initialPlayerIds,
31
33
  };
32
34
  ```
33
35
 
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **bookingFree** | **boolean** | | [optional] [default to undefined]
9
9
  **offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
10
+ **pricingPeriodDiscounts** | [**Array<PricingPeriodDiscount>**](PricingPeriodDiscount.md) | | [optional] [default to undefined]
11
+ **pricingPeriodIds** | **Array<string>** | | [optional] [default to undefined]
10
12
  **offPeakRuleNames** | **Array<string>** | Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club. | [optional] [default to undefined]
11
13
  **validTo** | **string** | | [optional] [default to undefined]
12
14
  **validFrom** | **string** | | [optional] [default to undefined]
@@ -22,6 +24,8 @@ import { CreateSubscriptionPlanRequestDiscount } from '@tennac-booking/sdk';
22
24
  const instance: CreateSubscriptionPlanRequestDiscount = {
23
25
  bookingFree,
24
26
  offPeakRules,
27
+ pricingPeriodDiscounts,
28
+ pricingPeriodIds,
25
29
  offPeakRuleNames,
26
30
  validTo,
27
31
  validFrom,