@tennac-booking/sdk 1.0.228 → 1.0.229

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 (136) hide show
  1. package/.openapi-generator/FILES +51 -29
  2. package/README.md +76 -48
  3. package/api.ts +4783 -3563
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +4841 -3732
  8. package/dist/api.js +2058 -1812
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +4841 -3732
  16. package/dist/esm/api.js +1788 -1538
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AgendaBooking.md +2 -0
  28. package/docs/AuthApi.md +113 -0
  29. package/docs/BookingClubInfo.md +2 -0
  30. package/docs/BookingPopulated.md +9 -1
  31. package/docs/BookingSummary.md +6 -4
  32. package/docs/BookingsApi.md +29 -80
  33. package/docs/BookingsStaffApi.md +1 -57
  34. package/docs/BookingsUserApi.md +58 -6
  35. package/docs/{CheckInPlayerSumupResponse.md → CloseOpenBookingResponse.md} +5 -7
  36. package/docs/ClubPageResponse.md +16 -0
  37. package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
  38. package/docs/ClubPageResponseSportsIdsLookup.md +23 -0
  39. package/docs/ClubPricingPeriodPayload.md +32 -0
  40. package/docs/ClubPricingPeriodResponse.md +6 -6
  41. package/docs/ClubReservationSettingsResponse.md +2 -2
  42. package/docs/ClubResponse.md +12 -2
  43. package/docs/ClubSummary.md +6 -0
  44. package/docs/ComingEventsPageResponse.md +22 -0
  45. package/docs/CourtEnvironment.md +10 -0
  46. package/docs/CreateBookingRequest.md +0 -2
  47. package/docs/CreateOpenBookingRequest.md +6 -4
  48. package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
  49. package/docs/EstimateOpenBookingJoinRequest.md +24 -0
  50. package/docs/EventBookingDetailSummary.md +2 -0
  51. package/docs/EventBookingResponse.md +2 -0
  52. package/docs/EventResponse.md +2 -0
  53. package/docs/EventsApi.md +113 -0
  54. package/docs/EventsStaffApi.md +119 -25
  55. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
  56. package/docs/GetOpenEventBookingsBySport200Response.md +20 -0
  57. package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +46 -0
  58. package/docs/{SumupPairReaderResponse.md → Health200Response.md} +7 -5
  59. package/docs/IUserAttributes.md +4 -0
  60. package/docs/{SumupReaderInfoDevice.md → JobResult.md} +9 -7
  61. package/docs/JobsApi.md +367 -0
  62. package/docs/JoinOpenBookingRequest.md +28 -0
  63. package/docs/MarkNotificationsReadRequest.md +22 -0
  64. package/docs/{SumupConnectUrlResponse.md → MarkNotificationsReadResponse.md} +5 -5
  65. package/docs/MyClubInfosResponse.md +0 -2
  66. package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
  67. package/docs/NotificationData.md +22 -0
  68. package/docs/NotificationInitiator.md +28 -0
  69. package/docs/NotificationParticipantPreview.md +24 -0
  70. package/docs/NotificationPreview.md +78 -0
  71. package/docs/NotificationResponse.md +46 -0
  72. package/docs/{SumupUpdateReaderRequest.md → NotificationResponseClub.md} +7 -5
  73. package/docs/NotificationSlotPreview.md +24 -0
  74. package/docs/NotificationSportPreview.md +24 -0
  75. package/docs/{SumupReaderStatusResponse.md → NotificationTargetPreview.md} +7 -5
  76. package/docs/NotificationType.md +26 -0
  77. package/docs/OpenBookingBasePriceResponse.md +24 -0
  78. package/docs/OpenBookingInfo.md +7 -5
  79. package/docs/OpenBookingJoinEstimateResponse.md +26 -0
  80. package/docs/OpenBookingPriceBody.md +26 -0
  81. package/docs/PartnerSearchItem.md +28 -0
  82. package/docs/PartnerSearchResponse.md +22 -0
  83. package/docs/PartnerSearchResponseMeta.md +26 -0
  84. package/docs/PlayerPrice.md +3 -1
  85. package/docs/PricingPeriodDiscount.md +24 -0
  86. package/docs/PublicEmailApi.md +4 -4
  87. package/docs/QuickReservationClubSummary.md +12 -0
  88. package/docs/QuickReservationCourtType.md +10 -0
  89. package/docs/RequestOrganizationEmailCodeBody.md +22 -0
  90. package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
  91. package/docs/RequestVerificationCodeBody.md +26 -0
  92. package/docs/{SumupReaderResponse.md → RequestVerificationCodeResponse.md} +5 -5
  93. package/docs/SportResponse.md +2 -0
  94. package/docs/StaffEventBookingResponse.md +2 -0
  95. package/docs/StaffEventsPageResponse.md +22 -0
  96. package/docs/StaffUserProfileResponse.md +4 -0
  97. package/docs/SubscriptionPlanDiscountResponse.md +2 -0
  98. package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
  99. package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
  100. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  101. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  102. package/docs/UserClubMembership.md +2 -0
  103. package/docs/UserNextBookingSummary.md +26 -0
  104. package/docs/UserNotificationsResponse.md +22 -0
  105. package/docs/UserNotificationsResponseMeta.md +28 -0
  106. package/docs/UserProfileResponse.md +12 -0
  107. package/docs/UsersApi.md +273 -0
  108. package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
  109. package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
  110. package/docs/VerifyVerificationCodeBody.md +24 -0
  111. package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
  112. package/docs/WaitListEntryWithPlayer.md +44 -0
  113. package/docs/WaitListPlayer.md +28 -0
  114. package/docs/WaitListPlayersListResponse.md +22 -0
  115. package/docs/WaitListStaffApi.md +55 -0
  116. package/index.ts +1 -1
  117. package/package.json +1 -1
  118. package/docs/CheckInPlayerSumupRequest.md +0 -22
  119. package/docs/CheckInSumupPaymentInfo.md +0 -26
  120. package/docs/GetOpenBookingPrice200Response.md +0 -24
  121. package/docs/GetOpenBookingPriceRequest.md +0 -26
  122. package/docs/JoinPriceEstimateResponse.md +0 -38
  123. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
  124. package/docs/OpenBookingSlotInfo.md +0 -24
  125. package/docs/PaymentIntentResult.md +0 -28
  126. package/docs/PaymentsStaffApi.md +0 -124
  127. package/docs/StaffEventsPaginatedResponse.md +0 -26
  128. package/docs/SumUpApi.md +0 -63
  129. package/docs/SumUpManagerApi.md +0 -617
  130. package/docs/SumupAccountStatusResponse.md +0 -32
  131. package/docs/SumupCreatePaymentRequest.md +0 -32
  132. package/docs/SumupOAuthCallbackResponse.md +0 -24
  133. package/docs/SumupPairReaderRequest.md +0 -24
  134. package/docs/SumupReaderInfo.md +0 -42
  135. package/docs/SumupReaderStatusInfo.md +0 -32
  136. package/docs/SumupReadersResponse.md +0 -20
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**cancelBooking**](#cancelbooking) | **DELETE** /api/bookings/{bookingId} | |
8
+ |[**closeOpenBooking**](#closeopenbooking) | **POST** /api/bookings/{bookingId}/close | |
8
9
  |[**createBooking**](#createbooking) | **POST** /api/bookings | |
9
10
  |[**createOpenBooking**](#createopenbooking) | **POST** /api/bookings/open | |
10
11
  |[**getOpenBookingPrice**](#getopenbookingprice) | **POST** /api/bookings/open/booking-price | |
@@ -61,6 +62,57 @@ const { status, data } = await apiInstance.cancelBooking(
61
62
 
62
63
  [[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)
63
64
 
65
+ # **closeOpenBooking**
66
+ > CloseOpenBookingResponse closeOpenBooking()
67
+
68
+ Fermer une réservation ouverte et la passer en ACTIVE Accessible uniquement au créateur de la réservation
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ BookingsUserApi,
75
+ Configuration
76
+ } from '@tennac-booking/sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new BookingsUserApi(configuration);
80
+
81
+ let bookingId: string; // (default to undefined)
82
+
83
+ const { status, data } = await apiInstance.closeOpenBooking(
84
+ bookingId
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **bookingId** | [**string**] | | defaults to undefined|
93
+
94
+
95
+ ### Return type
96
+
97
+ **CloseOpenBookingResponse**
98
+
99
+ ### Authorization
100
+
101
+ [bearerAuth](../README.md#bearerAuth)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Réservation fermée et activée avec succès | - |
113
+
114
+ [[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)
115
+
64
116
  # **createBooking**
65
117
  > BookingResponse createBooking(createBookingRequest)
66
118
 
@@ -166,7 +218,7 @@ const { status, data } = await apiInstance.createOpenBooking(
166
218
  [[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
219
 
168
220
  # **getOpenBookingPrice**
169
- > GetOpenBookingPrice200Response getOpenBookingPrice(getOpenBookingPriceRequest)
221
+ > BookingPriceResponse getOpenBookingPrice(openBookingPriceBody)
170
222
 
171
223
  Calculer le prix d\'une réservation ouverte avec joueurs initiaux
172
224
 
@@ -176,16 +228,16 @@ Calculer le prix d\'une réservation ouverte avec joueurs initiaux
176
228
  import {
177
229
  BookingsUserApi,
178
230
  Configuration,
179
- GetOpenBookingPriceRequest
231
+ OpenBookingPriceBody
180
232
  } from '@tennac-booking/sdk';
181
233
 
182
234
  const configuration = new Configuration();
183
235
  const apiInstance = new BookingsUserApi(configuration);
184
236
 
185
- let getOpenBookingPriceRequest: GetOpenBookingPriceRequest; //
237
+ let openBookingPriceBody: OpenBookingPriceBody; //
186
238
 
187
239
  const { status, data } = await apiInstance.getOpenBookingPrice(
188
- getOpenBookingPriceRequest
240
+ openBookingPriceBody
189
241
  );
190
242
  ```
191
243
 
@@ -193,12 +245,12 @@ const { status, data } = await apiInstance.getOpenBookingPrice(
193
245
 
194
246
  |Name | Type | Description | Notes|
195
247
  |------------- | ------------- | ------------- | -------------|
196
- | **getOpenBookingPriceRequest** | **GetOpenBookingPriceRequest**| | |
248
+ | **openBookingPriceBody** | **OpenBookingPriceBody**| | |
197
249
 
198
250
 
199
251
  ### Return type
200
252
 
201
- **GetOpenBookingPrice200Response**
253
+ **BookingPriceResponse**
202
254
 
203
255
  ### Authorization
204
256
 
@@ -1,4 +1,4 @@
1
- # CheckInPlayerSumupResponse
1
+ # CloseOpenBookingResponse
2
2
 
3
3
 
4
4
  ## Properties
@@ -6,18 +6,16 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **message** | **string** | Message de confirmation | [default to undefined]
9
- **invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
10
- **sumupPayment** | [**CheckInSumupPaymentInfo**](CheckInSumupPaymentInfo.md) | | [optional] [default to undefined]
9
+ **booking** | [**BookingInfo**](BookingInfo.md) | | [default to undefined]
11
10
 
12
11
  ## Example
13
12
 
14
13
  ```typescript
15
- import { CheckInPlayerSumupResponse } from '@tennac-booking/sdk';
14
+ import { CloseOpenBookingResponse } from '@tennac-booking/sdk';
16
15
 
17
- const instance: CheckInPlayerSumupResponse = {
16
+ const instance: CloseOpenBookingResponse = {
18
17
  message,
19
- invoice,
20
- sumupPayment,
18
+ booking,
21
19
  };
22
20
  ```
23
21
 
@@ -16,7 +16,15 @@ 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
+ **sportsIdsLookup** | [**ClubPageResponseSportsIdsLookup**](ClubPageResponseSportsIdsLookup.md) | | [optional] [default to undefined]
22
+ **courtsCount** | **number** | Nombre total de terrains du club | [optional] [default to undefined]
23
+ **courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
24
+ **surfacesBySport** | **{ [key: string]: Array<SurfaceType>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
25
+ **indoorOutdoorBySport** | **{ [key: string]: Array<CourtEnvironment>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
26
+ **slotDurationsBySport** | **{ [key: string]: Array<number>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
27
+ **bookingPeriodInDays** | **number** | Période de réservation en jours | [optional] [default to undefined]
20
28
  **clubPresentation** | [**ClubPresentation**](ClubPresentation.md) | | [default to undefined]
21
29
  **comingEvents** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
22
30
  **comingClosures** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
@@ -42,7 +50,15 @@ const instance: ClubPageResponse = {
42
50
  isActive,
43
51
  paymentFeature,
44
52
  isNoShowEnabled,
53
+ clubCustomerStatus,
45
54
  sports,
55
+ sportsIdsLookup,
56
+ courtsCount,
57
+ courtsCountBySport,
58
+ surfacesBySport,
59
+ indoorOutdoorBySport,
60
+ slotDurationsBySport,
61
+ bookingPeriodInDays,
46
62
  clubPresentation,
47
63
  comingEvents,
48
64
  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,23 @@
1
+ # ClubPageResponseSportsIdsLookup
2
+
3
+ Mapping des identifiants des sports disponibles (clé ou nom vers id)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **byName** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [default to undefined]
10
+ **byKey** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ClubPageResponseSportsIdsLookup } from '@tennac-booking/sdk';
16
+
17
+ const instance: ClubPageResponseSportsIdsLookup = {
18
+ byName,
19
+ byKey,
20
+ };
21
+ ```
22
+
23
+ [[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,
@@ -0,0 +1,24 @@
1
+ # EstimateOpenBookingJoinRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll) | [optional] [default to undefined]
9
+ **isCreatorPayingAll** | **boolean** | Indique si le joueur qui rejoint paie pour tous les joueurs qu\'il ajoute (incompatible avec playerShares) | [optional] [default to undefined]
10
+ **creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EstimateOpenBookingJoinRequest } from '@tennac-booking/sdk';
16
+
17
+ const instance: EstimateOpenBookingJoinRequest = {
18
+ playerShares,
19
+ isCreatorPayingAll,
20
+ creditToUseInCents,
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)
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **limitSetupDate** | **string** | | [optional] [default to undefined]
16
16
  **limitCancellationDate** | **string** | | [optional] [default to undefined]
17
17
  **waitListPosition** | **number** | Position dans la file d\'attente si l\'utilisateur est en waitlist pour cet événement | [optional] [default to undefined]
18
+ **userParticipationStatus** | **string** | Statut de participation de l\'utilisateur pour cet event booking | [optional] [default to undefined]
18
19
  **createdAt** | **string** | | [default to undefined]
19
20
  **updatedAt** | **string** | | [default to undefined]
20
21
 
@@ -34,6 +35,7 @@ const instance: EventBookingDetailSummary = {
34
35
  limitSetupDate,
35
36
  limitCancellationDate,
36
37
  waitListPosition,
38
+ userParticipationStatus,
37
39
  createdAt,
38
40
  updatedAt,
39
41
  };
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **setupLimitDate** | **string** | | [optional] [default to undefined]
14
14
  **cancellationLimitDate** | **string** | | [optional] [default to undefined]
15
15
  **setupStatus** | [**EventBookingResponseSetupStatus**](EventBookingResponseSetupStatus.md) | | [optional] [default to undefined]
16
+ **amount** | **number** | | [optional] [default to undefined]
16
17
  **createdAt** | **string** | | [default to undefined]
17
18
  **updatedAt** | **string** | | [default to undefined]
18
19
 
@@ -30,6 +31,7 @@ const instance: EventBookingResponse = {
30
31
  setupLimitDate,
31
32
  cancellationLimitDate,
32
33
  setupStatus,
34
+ amount,
33
35
  createdAt,
34
36
  updatedAt,
35
37
  };
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
31
31
  **levels** | **Array<string | null>** | | [optional] [default to undefined]
32
32
  **sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
33
33
  **registrationOpenDaysBefore** | **number** | | [default to undefined]
34
+ **isUserRegistered** | **boolean** | | [optional] [default to undefined]
34
35
  **createdBy** | **string** | | [optional] [default to undefined]
35
36
  **isActive** | **boolean** | | [default to undefined]
36
37
  **createdAt** | **string** | | [default to undefined]
@@ -68,6 +69,7 @@ const instance: EventResponse = {
68
69
  levels,
69
70
  sponsors,
70
71
  registrationOpenDaysBefore,
72
+ isUserRegistered,
71
73
  createdBy,
72
74
  isActive,
73
75
  createdAt,