@tennac-booking/sdk 1.0.90 → 1.0.92

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 (53) hide show
  1. package/.openapi-generator/FILES +9 -25
  2. package/README.md +15 -37
  3. package/api.ts +791 -1990
  4. package/dist/api.d.ts +527 -1428
  5. package/dist/api.js +237 -719
  6. package/dist/esm/api.d.ts +527 -1428
  7. package/dist/esm/api.js +234 -711
  8. package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
  9. package/docs/AddCreditsToCustomerRequest.md +22 -0
  10. package/docs/BookingPlayerPaymentSummary.md +2 -0
  11. package/docs/BookingPopulated.md +3 -3
  12. package/docs/BookingSummary.md +2 -0
  13. package/docs/ClubAnalyticsStaffApi.md +0 -173
  14. package/docs/ClubSettingsManagerApi.md +60 -54
  15. package/docs/ClubSettingsResponse.md +39 -0
  16. package/docs/ClubsManagerApi.md +58 -52
  17. package/docs/ClubsStaffApi.md +0 -44
  18. package/docs/CreateClubSettingsRequest.md +34 -0
  19. package/docs/CreateEventRequest.md +1 -3
  20. package/docs/DeleteClubSettingsResponse.md +20 -0
  21. package/docs/EventResponse.md +1 -1
  22. package/docs/EventResponseCourtsInner.md +18 -0
  23. package/docs/SlotInfo.md +2 -2
  24. package/docs/UpdateClubSettingsRequest.md +32 -0
  25. package/docs/UpdateEventRequest.md +1 -1
  26. package/docs/UserClubMembership.md +34 -0
  27. package/docs/UserClubMembershipsResponse.md +20 -0
  28. package/docs/UsersApi.md +46 -0
  29. package/package.json +1 -1
  30. package/docs/ClubGeneralSettingsResponse.md +0 -32
  31. package/docs/ClubHoursSettingsResponse.md +0 -22
  32. package/docs/ClubLocationSettings.md +0 -26
  33. package/docs/ClubPlayerBookingItem.md +0 -36
  34. package/docs/ClubPlayerBookingsPagination.md +0 -28
  35. package/docs/ClubPlayerBookingsResponse.md +0 -24
  36. package/docs/ClubPlayerDetailResponse.md +0 -46
  37. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  38. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  39. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  40. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  41. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  42. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  43. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  44. package/docs/ClubPresentationSettingsResponse.md +0 -26
  45. package/docs/ClubPricingPeriodResponse.md +0 -30
  46. package/docs/ClubReservationSettingsResponse.md +0 -28
  47. package/docs/ClubSettingsStaffApi.md +0 -183
  48. package/docs/ClubWeeklySchedule.md +0 -32
  49. package/docs/PartialClubWeeklySchedule.md +0 -33
  50. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  51. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  52. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  53. package/docs/UpdateClubReservationSettingsRequest.md +0 -28
@@ -1,21 +1,19 @@
1
- # ClubDaySchedule
1
+ # AddCreditsToCustomer200Response
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **open** | **string** | | [default to undefined]
9
- **close** | **string** | | [default to undefined]
8
+ **credits** | **number** | | [default to undefined]
10
9
 
11
10
  ## Example
12
11
 
13
12
  ```typescript
14
- import { ClubDaySchedule } from '@tennac-booking/sdk';
13
+ import { AddCreditsToCustomer200Response } from '@tennac-booking/sdk';
15
14
 
16
- const instance: ClubDaySchedule = {
17
- open,
18
- close,
15
+ const instance: AddCreditsToCustomer200Response = {
16
+ credits,
19
17
  };
20
18
  ```
21
19
 
@@ -0,0 +1,22 @@
1
+ # AddCreditsToCustomerRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **reason** | **string** | | [optional] [default to undefined]
9
+ **amount** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AddCreditsToCustomerRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: AddCreditsToCustomerRequest = {
17
+ reason,
18
+ amount,
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)
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **amountToPay** | **number** | | [default to undefined]
13
13
  **invoiceId** | **string** | | [optional] [default to undefined]
14
14
  **invoiceStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
15
+ **invoicePaymentUrl** | **string** | | [optional] [default to undefined]
15
16
  **isCreator** | **boolean** | | [default to undefined]
16
17
 
17
18
  ## Example
@@ -27,6 +28,7 @@ const instance: BookingPlayerPaymentSummary = {
27
28
  amountToPay,
28
29
  invoiceId,
29
30
  invoiceStatus,
31
+ invoicePaymentUrl,
30
32
  isCreator,
31
33
  };
32
34
  ```
@@ -8,13 +8,13 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID de la réservation | [default to undefined]
9
9
  **clubId** | **string** | | [default to undefined]
10
10
  **creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
- **slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
12
- **players** | [**Array<UserInfo>**](UserInfo.md) | | [default to undefined]
11
+ **slotInfos** | [**Array<SlotInfo>**](SlotInfo.md) | Information(s) des créneaux | [default to undefined]
13
12
  **paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
14
13
  **noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
15
14
  **noShowChargeAmount** | **number** | | [optional] [default to undefined]
16
15
  **totalPrice** | **number** | | [default to undefined]
17
16
  **isCreatorPayingAll** | **boolean** | | [default to undefined]
17
+ **playersIds** | **Array<string>** | | [default to undefined]
18
18
  **history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
19
19
  **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
20
20
  **cancelledByManager** | **boolean** | | [optional] [default to undefined]
@@ -31,12 +31,12 @@ const instance: BookingPopulated = {
31
31
  clubId,
32
32
  creator,
33
33
  slotInfos,
34
- players,
35
34
  paymentByPlayers,
36
35
  noShowChargeApplied,
37
36
  noShowChargeAmount,
38
37
  totalPrice,
39
38
  isCreatorPayingAll,
39
+ playersIds,
40
40
  history,
41
41
  status,
42
42
  cancelledByManager,
@@ -35,6 +35,7 @@ Name | Type | Description | Notes
35
35
  **bookingStatus** | **string** | | [optional] [default to undefined]
36
36
  **playersName** | **Array<string>** | | [default to undefined]
37
37
  **myAmountToPay** | **number** | | [default to undefined]
38
+ **myPaymentLink** | **string** | | [optional] [default to undefined]
38
39
  **totalAmount** | **number** | | [default to undefined]
39
40
  **timeBeforeCancel** | **string** | | [optional] [default to undefined]
40
41
  **clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
@@ -81,6 +82,7 @@ const instance: BookingSummary = {
81
82
  bookingStatus,
82
83
  playersName,
83
84
  myAmountToPay,
85
+ myPaymentLink,
84
86
  totalAmount,
85
87
  timeBeforeCancel,
86
88
  clubAddress,
@@ -5,9 +5,6 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getAnalyticsBySport**](#getanalyticsbysport) | **GET** /api/club-analytics/sport/{sportId}/analytics | |
8
- |[**getClubPlayerBookingsById**](#getclubplayerbookingsbyid) | **GET** /api/club-analytics/players/{playerId}/bookings | |
9
- |[**getClubPlayerById**](#getclubplayerbyid) | **GET** /api/club-analytics/players/{playerId} | |
10
- |[**getClubPlayerStatisticsById**](#getclubplayerstatisticsbyid) | **GET** /api/club-analytics/players/{playerId}/statistics | |
11
8
  |[**getClubPlayers**](#getclubplayers) | **GET** /api/club-analytics/players | |
12
9
  |[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/club-analytics/daily-turnover | |
13
10
  |[**getGenderPercentage**](#getgenderpercentage) | **GET** /api/club-analytics/gender-percentage | |
@@ -72,176 +69,6 @@ const { status, data } = await apiInstance.getAnalyticsBySport(
72
69
 
73
70
  [[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)
74
71
 
75
- # **getClubPlayerBookingsById**
76
- > ClubPlayerBookingsResponse getClubPlayerBookingsById()
77
-
78
- Récupère les réservations d\'un joueur par son ID (à venir et passées)
79
-
80
- ### Example
81
-
82
- ```typescript
83
- import {
84
- ClubAnalyticsStaffApi,
85
- Configuration
86
- } from '@tennac-booking/sdk';
87
-
88
- const configuration = new Configuration();
89
- const apiInstance = new ClubAnalyticsStaffApi(configuration);
90
-
91
- let playerId: string; // (default to undefined)
92
- let page: number; // (optional) (default to undefined)
93
- let pageSize: number; // (optional) (default to undefined)
94
-
95
- const { status, data } = await apiInstance.getClubPlayerBookingsById(
96
- playerId,
97
- page,
98
- pageSize
99
- );
100
- ```
101
-
102
- ### Parameters
103
-
104
- |Name | Type | Description | Notes|
105
- |------------- | ------------- | ------------- | -------------|
106
- | **playerId** | [**string**] | | defaults to undefined|
107
- | **page** | [**number**] | | (optional) defaults to undefined|
108
- | **pageSize** | [**number**] | | (optional) defaults to undefined|
109
-
110
-
111
- ### Return type
112
-
113
- **ClubPlayerBookingsResponse**
114
-
115
- ### Authorization
116
-
117
- [bearerAuth](../README.md#bearerAuth)
118
-
119
- ### HTTP request headers
120
-
121
- - **Content-Type**: Not defined
122
- - **Accept**: application/json
123
-
124
-
125
- ### HTTP response details
126
- | Status code | Description | Response headers |
127
- |-------------|-------------|------------------|
128
- |**200** | Réservations du joueur | - |
129
- |**400** | Bad Request | - |
130
- |**401** | Unauthorized | - |
131
- |**500** | Server Error | - |
132
-
133
- [[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)
134
-
135
- # **getClubPlayerById**
136
- > ClubPlayerDetailResponse getClubPlayerById()
137
-
138
- Récupère les informations détaillées d\'un joueur par son ID
139
-
140
- ### Example
141
-
142
- ```typescript
143
- import {
144
- ClubAnalyticsStaffApi,
145
- Configuration
146
- } from '@tennac-booking/sdk';
147
-
148
- const configuration = new Configuration();
149
- const apiInstance = new ClubAnalyticsStaffApi(configuration);
150
-
151
- let playerId: string; // (default to undefined)
152
-
153
- const { status, data } = await apiInstance.getClubPlayerById(
154
- playerId
155
- );
156
- ```
157
-
158
- ### Parameters
159
-
160
- |Name | Type | Description | Notes|
161
- |------------- | ------------- | ------------- | -------------|
162
- | **playerId** | [**string**] | | defaults to undefined|
163
-
164
-
165
- ### Return type
166
-
167
- **ClubPlayerDetailResponse**
168
-
169
- ### Authorization
170
-
171
- [bearerAuth](../README.md#bearerAuth)
172
-
173
- ### HTTP request headers
174
-
175
- - **Content-Type**: Not defined
176
- - **Accept**: application/json
177
-
178
-
179
- ### HTTP response details
180
- | Status code | Description | Response headers |
181
- |-------------|-------------|------------------|
182
- |**200** | Informations du joueur | - |
183
- |**400** | Bad Request | - |
184
- |**401** | Unauthorized | - |
185
- |**404** | Not Found | - |
186
- |**500** | Server Error | - |
187
-
188
- [[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)
189
-
190
- # **getClubPlayerStatisticsById**
191
- > ClubPlayerStatisticsResponse getClubPlayerStatisticsById()
192
-
193
- Récupère les statistiques d\'un joueur pour le staff
194
-
195
- ### Example
196
-
197
- ```typescript
198
- import {
199
- ClubAnalyticsStaffApi,
200
- Configuration
201
- } from '@tennac-booking/sdk';
202
-
203
- const configuration = new Configuration();
204
- const apiInstance = new ClubAnalyticsStaffApi(configuration);
205
-
206
- let playerId: string; // (default to undefined)
207
-
208
- const { status, data } = await apiInstance.getClubPlayerStatisticsById(
209
- playerId
210
- );
211
- ```
212
-
213
- ### Parameters
214
-
215
- |Name | Type | Description | Notes|
216
- |------------- | ------------- | ------------- | -------------|
217
- | **playerId** | [**string**] | | defaults to undefined|
218
-
219
-
220
- ### Return type
221
-
222
- **ClubPlayerStatisticsResponse**
223
-
224
- ### Authorization
225
-
226
- [bearerAuth](../README.md#bearerAuth)
227
-
228
- ### HTTP request headers
229
-
230
- - **Content-Type**: Not defined
231
- - **Accept**: application/json
232
-
233
-
234
- ### HTTP response details
235
- | Status code | Description | Response headers |
236
- |-------------|-------------|------------------|
237
- |**200** | Statistiques du joueur | - |
238
- |**400** | Bad Request | - |
239
- |**401** | Unauthorized | - |
240
- |**404** | Not Found | - |
241
- |**500** | Server Error | - |
242
-
243
- [[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)
244
-
245
72
  # **getClubPlayers**
246
73
  > Array<ClubPlayerResponse> getClubPlayers()
247
74
 
@@ -4,14 +4,15 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/club-settings/settings/general | |
8
- |[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
9
- |[**updatePresentationSettings**](#updatepresentationsettings) | **PUT** /api/club-settings/presentation | |
10
- |[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
7
+ |[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings/{clubId} | |
8
+ |[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | |
9
+ |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | |
10
+ |[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | |
11
11
 
12
- # **updateClubGeneralSettings**
13
- > ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
12
+ # **createClubSettings**
13
+ > ClubSettingsResponse createClubSettings(createClubSettingsRequest)
14
14
 
15
+ Crée les paramètres d\'un club
15
16
 
16
17
  ### Example
17
18
 
@@ -19,16 +20,18 @@ All URIs are relative to *http://localhost*
19
20
  import {
20
21
  ClubSettingsManagerApi,
21
22
  Configuration,
22
- UpdateClubGeneralSettingsRequest
23
+ CreateClubSettingsRequest
23
24
  } from '@tennac-booking/sdk';
24
25
 
25
26
  const configuration = new Configuration();
26
27
  const apiInstance = new ClubSettingsManagerApi(configuration);
27
28
 
28
- let updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest; //
29
+ let clubId: string; // (default to undefined)
30
+ let createClubSettingsRequest: CreateClubSettingsRequest; //
29
31
 
30
- const { status, data } = await apiInstance.updateClubGeneralSettings(
31
- updateClubGeneralSettingsRequest
32
+ const { status, data } = await apiInstance.createClubSettings(
33
+ clubId,
34
+ createClubSettingsRequest
32
35
  );
33
36
  ```
34
37
 
@@ -36,12 +39,13 @@ const { status, data } = await apiInstance.updateClubGeneralSettings(
36
39
 
37
40
  |Name | Type | Description | Notes|
38
41
  |------------- | ------------- | ------------- | -------------|
39
- | **updateClubGeneralSettingsRequest** | **UpdateClubGeneralSettingsRequest**| | |
42
+ | **createClubSettingsRequest** | **CreateClubSettingsRequest**| | |
43
+ | **clubId** | [**string**] | | defaults to undefined|
40
44
 
41
45
 
42
46
  ### Return type
43
47
 
44
- **ClubGeneralSettingsResponse**
48
+ **ClubSettingsResponse**
45
49
 
46
50
  ### Authorization
47
51
 
@@ -56,43 +60,39 @@ const { status, data } = await apiInstance.updateClubGeneralSettings(
56
60
  ### HTTP response details
57
61
  | Status code | Description | Response headers |
58
62
  |-------------|-------------|------------------|
59
- |**200** | Paramètres généraux mis à jour | - |
63
+ |**201** | Paramètres créés | - |
64
+ |**400** | Bad Request | - |
65
+ |**401** | Unauthorized | - |
66
+ |**500** | Server Error | - |
60
67
 
61
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)
62
69
 
63
- # **updateHoursSettings**
64
- > ClubHoursSettingsResponse updateHoursSettings(updateClubHoursSettingsRequest)
70
+ # **deleteClubSettings**
71
+ > DeleteClubSettingsResponse deleteClubSettings()
65
72
 
73
+ Supprime les paramètres d\'un club
66
74
 
67
75
  ### Example
68
76
 
69
77
  ```typescript
70
78
  import {
71
79
  ClubSettingsManagerApi,
72
- Configuration,
73
- UpdateClubHoursSettingsRequest
80
+ Configuration
74
81
  } from '@tennac-booking/sdk';
75
82
 
76
83
  const configuration = new Configuration();
77
84
  const apiInstance = new ClubSettingsManagerApi(configuration);
78
85
 
79
- let updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest; //
80
-
81
- const { status, data } = await apiInstance.updateHoursSettings(
82
- updateClubHoursSettingsRequest
83
- );
86
+ const { status, data } = await apiInstance.deleteClubSettings();
84
87
  ```
85
88
 
86
89
  ### Parameters
87
-
88
- |Name | Type | Description | Notes|
89
- |------------- | ------------- | ------------- | -------------|
90
- | **updateClubHoursSettingsRequest** | **UpdateClubHoursSettingsRequest**| | |
90
+ This endpoint does not have any parameters.
91
91
 
92
92
 
93
93
  ### Return type
94
94
 
95
- **ClubHoursSettingsResponse**
95
+ **DeleteClubSettingsResponse**
96
96
 
97
97
  ### Authorization
98
98
 
@@ -100,50 +100,47 @@ const { status, data } = await apiInstance.updateHoursSettings(
100
100
 
101
101
  ### HTTP request headers
102
102
 
103
- - **Content-Type**: application/json
103
+ - **Content-Type**: Not defined
104
104
  - **Accept**: application/json
105
105
 
106
106
 
107
107
  ### HTTP response details
108
108
  | Status code | Description | Response headers |
109
109
  |-------------|-------------|------------------|
110
- |**200** | Horaires du club mis à jour | - |
110
+ |**200** | Paramètres supprimés | - |
111
+ |**400** | Bad Request | - |
112
+ |**401** | Unauthorized | - |
113
+ |**404** | Paramètres non trouvés | - |
114
+ |**500** | Server Error | - |
111
115
 
112
116
  [[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)
113
117
 
114
- # **updatePresentationSettings**
115
- > ClubPresentationSettingsResponse updatePresentationSettings(clubPresentationSettingsResponse)
118
+ # **getClubSettings**
119
+ > ClubSettingsResponse getClubSettings()
116
120
 
121
+ Récupère les paramètres d\'un club
117
122
 
118
123
  ### Example
119
124
 
120
125
  ```typescript
121
126
  import {
122
127
  ClubSettingsManagerApi,
123
- Configuration,
124
- ClubPresentationSettingsResponse
128
+ Configuration
125
129
  } from '@tennac-booking/sdk';
126
130
 
127
131
  const configuration = new Configuration();
128
132
  const apiInstance = new ClubSettingsManagerApi(configuration);
129
133
 
130
- let clubPresentationSettingsResponse: ClubPresentationSettingsResponse; //
131
-
132
- const { status, data } = await apiInstance.updatePresentationSettings(
133
- clubPresentationSettingsResponse
134
- );
134
+ const { status, data } = await apiInstance.getClubSettings();
135
135
  ```
136
136
 
137
137
  ### Parameters
138
-
139
- |Name | Type | Description | Notes|
140
- |------------- | ------------- | ------------- | -------------|
141
- | **clubPresentationSettingsResponse** | **ClubPresentationSettingsResponse**| | |
138
+ This endpoint does not have any parameters.
142
139
 
143
140
 
144
141
  ### Return type
145
142
 
146
- **ClubPresentationSettingsResponse**
143
+ **ClubSettingsResponse**
147
144
 
148
145
  ### Authorization
149
146
 
@@ -151,20 +148,25 @@ const { status, data } = await apiInstance.updatePresentationSettings(
151
148
 
152
149
  ### HTTP request headers
153
150
 
154
- - **Content-Type**: application/json
151
+ - **Content-Type**: Not defined
155
152
  - **Accept**: application/json
156
153
 
157
154
 
158
155
  ### HTTP response details
159
156
  | Status code | Description | Response headers |
160
157
  |-------------|-------------|------------------|
161
- |**200** | Paramètres de présentation mis à jour | - |
158
+ |**200** | Paramètres du club | - |
159
+ |**400** | Bad Request | - |
160
+ |**401** | Unauthorized | - |
161
+ |**404** | Paramètres non trouvés | - |
162
+ |**500** | Server Error | - |
162
163
 
163
164
  [[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)
164
165
 
165
- # **updateReservationSettings**
166
- > ClubReservationSettingsResponse updateReservationSettings(updateClubReservationSettingsRequest)
166
+ # **updateClubSettings**
167
+ > ClubSettingsResponse updateClubSettings(updateClubSettingsRequest)
167
168
 
169
+ Met à jour les paramètres d\'un club
168
170
 
169
171
  ### Example
170
172
 
@@ -172,16 +174,16 @@ const { status, data } = await apiInstance.updatePresentationSettings(
172
174
  import {
173
175
  ClubSettingsManagerApi,
174
176
  Configuration,
175
- UpdateClubReservationSettingsRequest
177
+ UpdateClubSettingsRequest
176
178
  } from '@tennac-booking/sdk';
177
179
 
178
180
  const configuration = new Configuration();
179
181
  const apiInstance = new ClubSettingsManagerApi(configuration);
180
182
 
181
- let updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest; //
183
+ let updateClubSettingsRequest: UpdateClubSettingsRequest; //
182
184
 
183
- const { status, data } = await apiInstance.updateReservationSettings(
184
- updateClubReservationSettingsRequest
185
+ const { status, data } = await apiInstance.updateClubSettings(
186
+ updateClubSettingsRequest
185
187
  );
186
188
  ```
187
189
 
@@ -189,12 +191,12 @@ const { status, data } = await apiInstance.updateReservationSettings(
189
191
 
190
192
  |Name | Type | Description | Notes|
191
193
  |------------- | ------------- | ------------- | -------------|
192
- | **updateClubReservationSettingsRequest** | **UpdateClubReservationSettingsRequest**| | |
194
+ | **updateClubSettingsRequest** | **UpdateClubSettingsRequest**| | |
193
195
 
194
196
 
195
197
  ### Return type
196
198
 
197
- **ClubReservationSettingsResponse**
199
+ **ClubSettingsResponse**
198
200
 
199
201
  ### Authorization
200
202
 
@@ -209,7 +211,11 @@ const { status, data } = await apiInstance.updateReservationSettings(
209
211
  ### HTTP response details
210
212
  | Status code | Description | Response headers |
211
213
  |-------------|-------------|------------------|
212
- |**200** | Paramètres de réservation mis à jour | - |
214
+ |**200** | Paramètres mis à jour | - |
215
+ |**400** | Bad Request | - |
216
+ |**401** | Unauthorized | - |
217
+ |**404** | Paramètres non trouvés | - |
218
+ |**500** | Server Error | - |
213
219
 
214
220
  [[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)
215
221
 
@@ -0,0 +1,39 @@
1
+ # ClubSettingsResponse
2
+
3
+ Types TSOA pour les paramètres du club
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **_id** | **string** | ID unique des paramètres | [default to undefined]
10
+ **clubId** | **string** | ID du club | [default to undefined]
11
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
12
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
13
+ **cancellationLimitHours** | **number** | Limite d\&#39;annulation en heures | [default to undefined]
14
+ **availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
15
+ **sponsors** | **Array&lt;string&gt;** | Liste des sponsors | [default to undefined]
16
+ **timeBeforePayment** | **number** | Temps avant paiement en minutes | [default to undefined]
17
+ **createdAt** | **string** | Date de création | [default to undefined]
18
+ **updatedAt** | **string** | Date de mise à jour | [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { ClubSettingsResponse } from '@tennac-booking/sdk';
24
+
25
+ const instance: ClubSettingsResponse = {
26
+ _id,
27
+ clubId,
28
+ maxWeeklyBookings,
29
+ sameTimeBookingsLimit,
30
+ cancellationLimitHours,
31
+ availabilityPeriodInDays,
32
+ sponsors,
33
+ timeBeforePayment,
34
+ createdAt,
35
+ updatedAt,
36
+ };
37
+ ```
38
+
39
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)