@tennac-booking/sdk 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +56 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +86 -0
- package/api.ts +6087 -308
- package/common.ts +4 -4
- package/dist/api.d.ts +4105 -243
- package/dist/api.js +3265 -9
- package/dist/esm/api.d.ts +4105 -243
- package/dist/esm/api.js +3228 -8
- package/docs/AddClubMemberRequest.md +22 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/BookingResponse.md +28 -0
- package/docs/BookingsApi.md +120 -0
- package/docs/Club.md +46 -0
- package/docs/ClubCourtsApi.md +118 -0
- package/docs/ClubInfoResponse.md +46 -0
- package/docs/ClubListResponse.md +22 -0
- package/docs/ClubMember.md +34 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubResponse.md +46 -0
- package/docs/ClubRole.md +30 -0
- package/docs/ClubRoleResponse.md +30 -0
- package/docs/ClubRolesApi.md +268 -0
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +28 -0
- package/docs/ClubSettingsApi.md +227 -0
- package/docs/ClubSlotsApi.md +300 -0
- package/docs/ClubSportsApi.md +118 -0
- package/docs/ClubSubscriptionsApi.md +408 -0
- package/docs/ClubsApi.md +432 -0
- package/docs/CourtResponse.md +44 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CreateBookingRequest.md +28 -0
- package/docs/CreateClubRequest.md +38 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateCourtRequest.md +34 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/CreateSportRequest.md +22 -0
- package/docs/CreateSubscriptionPlanRequest.md +24 -0
- package/docs/DeleteClub200Response.md +20 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
- package/docs/GetAllSportsRequest.md +20 -0
- package/docs/GetClubSettingsRequest.md +20 -0
- package/docs/GetUserRolesInClubs200Response.md +20 -0
- package/docs/PaymentMethod.md +11 -0
- package/docs/PlayerWithPaymentMethod.md +22 -0
- package/docs/PriceResponse.md +38 -0
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SlotResponse.md +40 -0
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +24 -0
- package/docs/SportResponse.md +34 -0
- package/docs/SportsApi.md +229 -0
- package/docs/SportsResponse.md +22 -0
- package/docs/SubscriptionPlan.md +36 -0
- package/docs/SubscriptionPlanResponse.md +36 -0
- package/docs/UpdateClubRequest.md +40 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateSportRequest.md +20 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UsersApi.md +65 -18
- package/package.json +1 -33
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
# ClubRolesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createClubRole**](#createclubrole) | **POST** /api/club-roles | Crée un nouveau rôle de club|
|
|
8
|
+
|[**deleteClubRole**](#deleteclubrole) | **DELETE** /api/club-roles/{id} | Supprime un rôle de club|
|
|
9
|
+
|[**getAllClubRoles**](#getallclubroles) | **GET** /api/club-roles | Récupère tous les rôles de clubs|
|
|
10
|
+
|[**getClubRoleById**](#getclubrolebyid) | **GET** /api/club-roles/{id} | Récupère un rôle de club par son ID|
|
|
11
|
+
|[**updateClubRole**](#updateclubrole) | **PUT** /api/club-roles/{id} | Met à jour un rôle de club|
|
|
12
|
+
|
|
13
|
+
# **createClubRole**
|
|
14
|
+
> ClubRoleResponse createClubRole(createClubRoleRequestBody)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ClubRolesApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
CreateClubRoleRequestBody
|
|
24
|
+
} from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ClubRolesApi(configuration);
|
|
28
|
+
|
|
29
|
+
let createClubRoleRequestBody: CreateClubRoleRequestBody; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.createClubRole(
|
|
32
|
+
createClubRoleRequestBody
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **createClubRoleRequestBody** | **CreateClubRoleRequestBody**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**ClubRoleResponse**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**201** | Rôle de club créé | - |
|
|
61
|
+
|**500** | Erreur serveur interne | - |
|
|
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)
|
|
64
|
+
|
|
65
|
+
# **deleteClubRole**
|
|
66
|
+
> DeleteClubRole200Response deleteClubRole()
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
ClubRolesApi,
|
|
74
|
+
Configuration
|
|
75
|
+
} from '@tennac-booking/sdk';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new ClubRolesApi(configuration);
|
|
79
|
+
|
|
80
|
+
let id: string; //ID du rôle de club (default to undefined)
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.deleteClubRole(
|
|
83
|
+
id
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **id** | [**string**] | ID du rôle de club | defaults to undefined|
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Return type
|
|
95
|
+
|
|
96
|
+
**DeleteClubRole200Response**
|
|
97
|
+
|
|
98
|
+
### Authorization
|
|
99
|
+
|
|
100
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
101
|
+
|
|
102
|
+
### HTTP request headers
|
|
103
|
+
|
|
104
|
+
- **Content-Type**: Not defined
|
|
105
|
+
- **Accept**: application/json
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### HTTP response details
|
|
109
|
+
| Status code | Description | Response headers |
|
|
110
|
+
|-------------|-------------|------------------|
|
|
111
|
+
|**200** | Rôle de club supprimé | - |
|
|
112
|
+
|**404** | Rôle de club non trouvé | - |
|
|
113
|
+
|**500** | Erreur serveur interne | - |
|
|
114
|
+
|
|
115
|
+
[[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)
|
|
116
|
+
|
|
117
|
+
# **getAllClubRoles**
|
|
118
|
+
> Array<ClubRoleResponse> getAllClubRoles()
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Example
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
import {
|
|
125
|
+
ClubRolesApi,
|
|
126
|
+
Configuration
|
|
127
|
+
} from '@tennac-booking/sdk';
|
|
128
|
+
|
|
129
|
+
const configuration = new Configuration();
|
|
130
|
+
const apiInstance = new ClubRolesApi(configuration);
|
|
131
|
+
|
|
132
|
+
const { status, data } = await apiInstance.getAllClubRoles();
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Parameters
|
|
136
|
+
This endpoint does not have any parameters.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Return type
|
|
140
|
+
|
|
141
|
+
**Array<ClubRoleResponse>**
|
|
142
|
+
|
|
143
|
+
### Authorization
|
|
144
|
+
|
|
145
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
146
|
+
|
|
147
|
+
### HTTP request headers
|
|
148
|
+
|
|
149
|
+
- **Content-Type**: Not defined
|
|
150
|
+
- **Accept**: application/json
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### HTTP response details
|
|
154
|
+
| Status code | Description | Response headers |
|
|
155
|
+
|-------------|-------------|------------------|
|
|
156
|
+
|**200** | Liste des rôles de clubs | - |
|
|
157
|
+
|**500** | Erreur serveur interne | - |
|
|
158
|
+
|
|
159
|
+
[[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)
|
|
160
|
+
|
|
161
|
+
# **getClubRoleById**
|
|
162
|
+
> ClubRoleResponse getClubRoleById()
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Example
|
|
166
|
+
|
|
167
|
+
```typescript
|
|
168
|
+
import {
|
|
169
|
+
ClubRolesApi,
|
|
170
|
+
Configuration
|
|
171
|
+
} from '@tennac-booking/sdk';
|
|
172
|
+
|
|
173
|
+
const configuration = new Configuration();
|
|
174
|
+
const apiInstance = new ClubRolesApi(configuration);
|
|
175
|
+
|
|
176
|
+
let id: string; //ID du rôle de club (default to undefined)
|
|
177
|
+
|
|
178
|
+
const { status, data } = await apiInstance.getClubRoleById(
|
|
179
|
+
id
|
|
180
|
+
);
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Parameters
|
|
184
|
+
|
|
185
|
+
|Name | Type | Description | Notes|
|
|
186
|
+
|------------- | ------------- | ------------- | -------------|
|
|
187
|
+
| **id** | [**string**] | ID du rôle de club | defaults to undefined|
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Return type
|
|
191
|
+
|
|
192
|
+
**ClubRoleResponse**
|
|
193
|
+
|
|
194
|
+
### Authorization
|
|
195
|
+
|
|
196
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
197
|
+
|
|
198
|
+
### HTTP request headers
|
|
199
|
+
|
|
200
|
+
- **Content-Type**: Not defined
|
|
201
|
+
- **Accept**: application/json
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### HTTP response details
|
|
205
|
+
| Status code | Description | Response headers |
|
|
206
|
+
|-------------|-------------|------------------|
|
|
207
|
+
|**200** | Rôle de club trouvé | - |
|
|
208
|
+
|**404** | Rôle de club non trouvé | - |
|
|
209
|
+
|**500** | Erreur serveur interne | - |
|
|
210
|
+
|
|
211
|
+
[[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)
|
|
212
|
+
|
|
213
|
+
# **updateClubRole**
|
|
214
|
+
> ClubRoleResponse updateClubRole(updateClubRoleRequestBody)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Example
|
|
218
|
+
|
|
219
|
+
```typescript
|
|
220
|
+
import {
|
|
221
|
+
ClubRolesApi,
|
|
222
|
+
Configuration,
|
|
223
|
+
UpdateClubRoleRequestBody
|
|
224
|
+
} from '@tennac-booking/sdk';
|
|
225
|
+
|
|
226
|
+
const configuration = new Configuration();
|
|
227
|
+
const apiInstance = new ClubRolesApi(configuration);
|
|
228
|
+
|
|
229
|
+
let id: string; //ID du rôle de club (default to undefined)
|
|
230
|
+
let updateClubRoleRequestBody: UpdateClubRoleRequestBody; //
|
|
231
|
+
|
|
232
|
+
const { status, data } = await apiInstance.updateClubRole(
|
|
233
|
+
id,
|
|
234
|
+
updateClubRoleRequestBody
|
|
235
|
+
);
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Parameters
|
|
239
|
+
|
|
240
|
+
|Name | Type | Description | Notes|
|
|
241
|
+
|------------- | ------------- | ------------- | -------------|
|
|
242
|
+
| **updateClubRoleRequestBody** | **UpdateClubRoleRequestBody**| | |
|
|
243
|
+
| **id** | [**string**] | ID du rôle de club | defaults to undefined|
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
### Return type
|
|
247
|
+
|
|
248
|
+
**ClubRoleResponse**
|
|
249
|
+
|
|
250
|
+
### Authorization
|
|
251
|
+
|
|
252
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
253
|
+
|
|
254
|
+
### HTTP request headers
|
|
255
|
+
|
|
256
|
+
- **Content-Type**: application/json
|
|
257
|
+
- **Accept**: application/json
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### HTTP response details
|
|
261
|
+
| Status code | Description | Response headers |
|
|
262
|
+
|-------------|-------------|------------------|
|
|
263
|
+
|**200** | Rôle de club mis à jour | - |
|
|
264
|
+
|**404** | Rôle de club non trouvé | - |
|
|
265
|
+
|**500** | Erreur serveur interne | - |
|
|
266
|
+
|
|
267
|
+
[[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)
|
|
268
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ClubRolesResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**roles** | [**Array<ClubRoleResponse>**](ClubRoleResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubRolesResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubRolesResponse = {
|
|
17
|
+
roles,
|
|
18
|
+
total,
|
|
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,28 @@
|
|
|
1
|
+
# ClubSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
**reservationStartTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**reservationEndTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClubSettings } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClubSettings = {
|
|
20
|
+
clubId,
|
|
21
|
+
reservationStartTime,
|
|
22
|
+
reservationEndTime,
|
|
23
|
+
maxSimultaneousReservations,
|
|
24
|
+
allowWeekendReservations,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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,227 @@
|
|
|
1
|
+
# ClubSettingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings | Crée les paramètres d’un club|
|
|
8
|
+
|[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | Supprime les paramètres d’un club|
|
|
9
|
+
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
|
|
10
|
+
|[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | Met à jour les paramètres d’un club|
|
|
11
|
+
|
|
12
|
+
# **createClubSettings**
|
|
13
|
+
> ClubSettings createClubSettings(clubSettings)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ClubSettingsApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
ClubSettings
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ClubSettingsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let clubSettings: ClubSettings; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createClubSettings(
|
|
31
|
+
clubSettings
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **clubSettings** | **ClubSettings**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**ClubSettings**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**201** | Paramètres créés | - |
|
|
60
|
+
|**401** | Non autorisé | - |
|
|
61
|
+
|**409** | Paramètres déjà existants | - |
|
|
62
|
+
|**500** | Erreur serveur interne | - |
|
|
63
|
+
|
|
64
|
+
[[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)
|
|
65
|
+
|
|
66
|
+
# **deleteClubSettings**
|
|
67
|
+
> deleteClubSettings(getClubSettingsRequest)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
ClubSettingsApi,
|
|
75
|
+
Configuration,
|
|
76
|
+
GetClubSettingsRequest
|
|
77
|
+
} from '@tennac-booking/sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new ClubSettingsApi(configuration);
|
|
81
|
+
|
|
82
|
+
let getClubSettingsRequest: GetClubSettingsRequest; //
|
|
83
|
+
|
|
84
|
+
const { status, data } = await apiInstance.deleteClubSettings(
|
|
85
|
+
getClubSettingsRequest
|
|
86
|
+
);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
|Name | Type | Description | Notes|
|
|
92
|
+
|------------- | ------------- | ------------- | -------------|
|
|
93
|
+
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Return type
|
|
97
|
+
|
|
98
|
+
void (empty response body)
|
|
99
|
+
|
|
100
|
+
### Authorization
|
|
101
|
+
|
|
102
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
103
|
+
|
|
104
|
+
### HTTP request headers
|
|
105
|
+
|
|
106
|
+
- **Content-Type**: application/json
|
|
107
|
+
- **Accept**: application/json
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### HTTP response details
|
|
111
|
+
| Status code | Description | Response headers |
|
|
112
|
+
|-------------|-------------|------------------|
|
|
113
|
+
|**200** | Paramètres supprimés | - |
|
|
114
|
+
|**401** | Non autorisé | - |
|
|
115
|
+
|**404** | Paramètres non trouvés | - |
|
|
116
|
+
|**500** | Erreur serveur interne | - |
|
|
117
|
+
|
|
118
|
+
[[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)
|
|
119
|
+
|
|
120
|
+
# **getClubSettings**
|
|
121
|
+
> ClubSettings getClubSettings(getClubSettingsRequest)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Example
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import {
|
|
128
|
+
ClubSettingsApi,
|
|
129
|
+
Configuration,
|
|
130
|
+
GetClubSettingsRequest
|
|
131
|
+
} from '@tennac-booking/sdk';
|
|
132
|
+
|
|
133
|
+
const configuration = new Configuration();
|
|
134
|
+
const apiInstance = new ClubSettingsApi(configuration);
|
|
135
|
+
|
|
136
|
+
let getClubSettingsRequest: GetClubSettingsRequest; //
|
|
137
|
+
|
|
138
|
+
const { status, data } = await apiInstance.getClubSettings(
|
|
139
|
+
getClubSettingsRequest
|
|
140
|
+
);
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
|Name | Type | Description | Notes|
|
|
146
|
+
|------------- | ------------- | ------------- | -------------|
|
|
147
|
+
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
**ClubSettings**
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: application/json
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### HTTP response details
|
|
165
|
+
| Status code | Description | Response headers |
|
|
166
|
+
|-------------|-------------|------------------|
|
|
167
|
+
|**200** | Paramètres du club | - |
|
|
168
|
+
|**401** | Non autorisé | - |
|
|
169
|
+
|**404** | Paramètres non trouvés | - |
|
|
170
|
+
|**500** | Erreur serveur interne | - |
|
|
171
|
+
|
|
172
|
+
[[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)
|
|
173
|
+
|
|
174
|
+
# **updateClubSettings**
|
|
175
|
+
> ClubSettings updateClubSettings(clubSettings)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### Example
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import {
|
|
182
|
+
ClubSettingsApi,
|
|
183
|
+
Configuration,
|
|
184
|
+
ClubSettings
|
|
185
|
+
} from '@tennac-booking/sdk';
|
|
186
|
+
|
|
187
|
+
const configuration = new Configuration();
|
|
188
|
+
const apiInstance = new ClubSettingsApi(configuration);
|
|
189
|
+
|
|
190
|
+
let clubSettings: ClubSettings; //
|
|
191
|
+
|
|
192
|
+
const { status, data } = await apiInstance.updateClubSettings(
|
|
193
|
+
clubSettings
|
|
194
|
+
);
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Parameters
|
|
198
|
+
|
|
199
|
+
|Name | Type | Description | Notes|
|
|
200
|
+
|------------- | ------------- | ------------- | -------------|
|
|
201
|
+
| **clubSettings** | **ClubSettings**| | |
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Return type
|
|
205
|
+
|
|
206
|
+
**ClubSettings**
|
|
207
|
+
|
|
208
|
+
### Authorization
|
|
209
|
+
|
|
210
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
211
|
+
|
|
212
|
+
### HTTP request headers
|
|
213
|
+
|
|
214
|
+
- **Content-Type**: application/json
|
|
215
|
+
- **Accept**: application/json
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### HTTP response details
|
|
219
|
+
| Status code | Description | Response headers |
|
|
220
|
+
|-------------|-------------|------------------|
|
|
221
|
+
|**200** | Paramètres mis à jour | - |
|
|
222
|
+
|**401** | Non autorisé | - |
|
|
223
|
+
|**404** | Paramètres non trouvés | - |
|
|
224
|
+
|**500** | Erreur serveur interne | - |
|
|
225
|
+
|
|
226
|
+
[[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)
|
|
227
|
+
|