@tennac-booking/sdk 1.0.144 → 1.0.145

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.
@@ -6,7 +6,10 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
8
8
  |[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
9
+ |[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
9
10
  |[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
11
+ |[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
12
+ |[**leaveOpenBooking**](#leaveopenbooking) | **DELETE** /api/bookings/{bookingId}/open/leave | |
10
13
 
11
14
  # **getBookingHistory**
12
15
  > BookingHistoryPopulated getBookingHistory()
@@ -110,6 +113,56 @@ const { status, data } = await apiInstance.getBookingPrice(
110
113
 
111
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)
112
115
 
116
+ # **getOpenBookings**
117
+ > GetOpenBookings200Response getOpenBookings()
118
+
119
+
120
+ ### Example
121
+
122
+ ```typescript
123
+ import {
124
+ BookingsApi,
125
+ Configuration
126
+ } from '@tennac-booking/sdk';
127
+
128
+ const configuration = new Configuration();
129
+ const apiInstance = new BookingsApi(configuration);
130
+
131
+ let clubId: string; // (optional) (default to undefined)
132
+
133
+ const { status, data } = await apiInstance.getOpenBookings(
134
+ clubId
135
+ );
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ |Name | Type | Description | Notes|
141
+ |------------- | ------------- | ------------- | -------------|
142
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
143
+
144
+
145
+ ### Return type
146
+
147
+ **GetOpenBookings200Response**
148
+
149
+ ### Authorization
150
+
151
+ [bearerAuth](../README.md#bearerAuth)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: Not defined
156
+ - **Accept**: application/json
157
+
158
+
159
+ ### HTTP response details
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ |**200** | Liste des réservations ouvertes | - |
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)
165
+
113
166
  # **getQuickReservationSlots**
114
167
  > QuickReservationResponse getQuickReservationSlots()
115
168
 
@@ -191,3 +244,107 @@ No authorization required
191
244
 
192
245
  [[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)
193
246
 
247
+ # **joinOpenBooking**
248
+ > JoinOpenBookingResponse joinOpenBooking(joinOpenEventBookingRequest)
249
+
250
+
251
+ ### Example
252
+
253
+ ```typescript
254
+ import {
255
+ BookingsApi,
256
+ Configuration,
257
+ JoinOpenEventBookingRequest
258
+ } from '@tennac-booking/sdk';
259
+
260
+ const configuration = new Configuration();
261
+ const apiInstance = new BookingsApi(configuration);
262
+
263
+ let bookingId: string; // (default to undefined)
264
+ let joinOpenEventBookingRequest: JoinOpenEventBookingRequest; //
265
+
266
+ const { status, data } = await apiInstance.joinOpenBooking(
267
+ bookingId,
268
+ joinOpenEventBookingRequest
269
+ );
270
+ ```
271
+
272
+ ### Parameters
273
+
274
+ |Name | Type | Description | Notes|
275
+ |------------- | ------------- | ------------- | -------------|
276
+ | **joinOpenEventBookingRequest** | **JoinOpenEventBookingRequest**| | |
277
+ | **bookingId** | [**string**] | | defaults to undefined|
278
+
279
+
280
+ ### Return type
281
+
282
+ **JoinOpenBookingResponse**
283
+
284
+ ### Authorization
285
+
286
+ [bearerAuth](../README.md#bearerAuth)
287
+
288
+ ### HTTP request headers
289
+
290
+ - **Content-Type**: application/json
291
+ - **Accept**: application/json
292
+
293
+
294
+ ### HTTP response details
295
+ | Status code | Description | Response headers |
296
+ |-------------|-------------|------------------|
297
+ |**200** | Créneau ouvert rejoint | - |
298
+
299
+ [[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)
300
+
301
+ # **leaveOpenBooking**
302
+ > RequestPasswordReset200Response leaveOpenBooking()
303
+
304
+
305
+ ### Example
306
+
307
+ ```typescript
308
+ import {
309
+ BookingsApi,
310
+ Configuration
311
+ } from '@tennac-booking/sdk';
312
+
313
+ const configuration = new Configuration();
314
+ const apiInstance = new BookingsApi(configuration);
315
+
316
+ let bookingId: string; // (default to undefined)
317
+
318
+ const { status, data } = await apiInstance.leaveOpenBooking(
319
+ bookingId
320
+ );
321
+ ```
322
+
323
+ ### Parameters
324
+
325
+ |Name | Type | Description | Notes|
326
+ |------------- | ------------- | ------------- | -------------|
327
+ | **bookingId** | [**string**] | | defaults to undefined|
328
+
329
+
330
+ ### Return type
331
+
332
+ **RequestPasswordReset200Response**
333
+
334
+ ### Authorization
335
+
336
+ [bearerAuth](../README.md#bearerAuth)
337
+
338
+ ### HTTP request headers
339
+
340
+ - **Content-Type**: Not defined
341
+ - **Accept**: application/json
342
+
343
+
344
+ ### HTTP response details
345
+ | Status code | Description | Response headers |
346
+ |-------------|-------------|------------------|
347
+ |**200** | Créneau ouvert quitté | - |
348
+
349
+ [[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)
350
+
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**cancelBooking**](#cancelbooking) | **DELETE** /api/bookings/{bookingId} | |
8
8
  |[**createBooking**](#createbooking) | **POST** /api/bookings | |
9
+ |[**createOpenBooking**](#createopenbooking) | **POST** /api/bookings/open | |
9
10
 
10
11
  # **cancelBooking**
11
12
  > CancelBookingResponse cancelBooking()
@@ -110,3 +111,55 @@ const { status, data } = await apiInstance.createBooking(
110
111
 
111
112
  [[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)
112
113
 
114
+ # **createOpenBooking**
115
+ > BookingResponse createOpenBooking(createOpenBookingRequest)
116
+
117
+ Créer une réservation ouverte (open slot)
118
+
119
+ ### Example
120
+
121
+ ```typescript
122
+ import {
123
+ BookingsUserApi,
124
+ Configuration,
125
+ CreateOpenBookingRequest
126
+ } from '@tennac-booking/sdk';
127
+
128
+ const configuration = new Configuration();
129
+ const apiInstance = new BookingsUserApi(configuration);
130
+
131
+ let createOpenBookingRequest: CreateOpenBookingRequest; //
132
+
133
+ const { status, data } = await apiInstance.createOpenBooking(
134
+ createOpenBookingRequest
135
+ );
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ |Name | Type | Description | Notes|
141
+ |------------- | ------------- | ------------- | -------------|
142
+ | **createOpenBookingRequest** | **CreateOpenBookingRequest**| | |
143
+
144
+
145
+ ### Return type
146
+
147
+ **BookingResponse**
148
+
149
+ ### Authorization
150
+
151
+ [bearerAuth](../README.md#bearerAuth)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: application/json
156
+ - **Accept**: application/json
157
+
158
+
159
+ ### HTTP response details
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ |**201** | Réservation ouverte créée avec succès | - |
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)
165
+
@@ -0,0 +1,51 @@
1
+ # ClubCustomerMeApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getClubCustomerSettingsByPlayerId**](#getclubcustomersettingsbyplayerid) | **GET** /api/clubCustomers/club-customer/me/settings | |
8
+
9
+ # **getClubCustomerSettingsByPlayerId**
10
+ > ClubCustomerSettingsResponse getClubCustomerSettingsByPlayerId()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ ClubCustomerMeApi,
18
+ Configuration
19
+ } from '@tennac-booking/sdk';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new ClubCustomerMeApi(configuration);
23
+
24
+ const { status, data } = await apiInstance.getClubCustomerSettingsByPlayerId();
25
+ ```
26
+
27
+ ### Parameters
28
+ This endpoint does not have any parameters.
29
+
30
+
31
+ ### Return type
32
+
33
+ **ClubCustomerSettingsResponse**
34
+
35
+ ### Authorization
36
+
37
+ [bearerAuth](../README.md#bearerAuth)
38
+
39
+ ### HTTP request headers
40
+
41
+ - **Content-Type**: Not defined
42
+ - **Accept**: application/json
43
+
44
+
45
+ ### HTTP response details
46
+ | Status code | Description | Response headers |
47
+ |-------------|-------------|------------------|
48
+ |**200** | Réglages du joueur du club | - |
49
+
50
+ [[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)
51
+
package/docs/ClubsApi.md CHANGED
@@ -15,6 +15,7 @@ All URIs are relative to *http://localhost*
15
15
  |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
16
16
  |[**getClubsWithVerificationDomains**](#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains | |
17
17
  |[**getCourtsByClubAndSportById**](#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts | |
18
+ |[**getPublicClubInfo**](#getpublicclubinfo) | **GET** /api/clubs/{clubId} | |
18
19
  |[**getPublishedActualities**](#getpublishedactualities) | **GET** /api/clubs/{id}/actualities | |
19
20
  |[**getSlotsByClubById**](#getslotsbyclubbyid) | **GET** /api/clubs/{id}/slots | |
20
21
  |[**getSportsByClubById**](#getsportsbyclubbyid) | **GET** /api/clubs/{id}/sports | |
@@ -571,6 +572,60 @@ No authorization required
571
572
 
572
573
  [[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)
573
574
 
575
+ # **getPublicClubInfo**
576
+ > ClubResponse getPublicClubInfo()
577
+
578
+ Récupère les informations publiques d\'un club en fonction de son ID
579
+
580
+ ### Example
581
+
582
+ ```typescript
583
+ import {
584
+ ClubsApi,
585
+ Configuration
586
+ } from '@tennac-booking/sdk';
587
+
588
+ const configuration = new Configuration();
589
+ const apiInstance = new ClubsApi(configuration);
590
+
591
+ let clubId: string; // (default to undefined)
592
+
593
+ const { status, data } = await apiInstance.getPublicClubInfo(
594
+ clubId
595
+ );
596
+ ```
597
+
598
+ ### Parameters
599
+
600
+ |Name | Type | Description | Notes|
601
+ |------------- | ------------- | ------------- | -------------|
602
+ | **clubId** | [**string**] | | defaults to undefined|
603
+
604
+
605
+ ### Return type
606
+
607
+ **ClubResponse**
608
+
609
+ ### Authorization
610
+
611
+ No authorization required
612
+
613
+ ### HTTP request headers
614
+
615
+ - **Content-Type**: Not defined
616
+ - **Accept**: application/json
617
+
618
+
619
+ ### HTTP response details
620
+ | Status code | Description | Response headers |
621
+ |-------------|-------------|------------------|
622
+ |**200** | Informations du club | - |
623
+ |**400** | clubId invalide | - |
624
+ |**404** | Club non trouvé | - |
625
+ |**500** | Erreur serveur | - |
626
+
627
+ [[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)
628
+
574
629
  # **getPublishedActualities**
575
630
  > GetActualities200Response getPublishedActualities()
576
631
 
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
11
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
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
+ **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]
14
16
 
15
17
  ## Example
16
18
 
@@ -24,6 +26,8 @@ const instance: CreateBookingRequest = {
24
26
  paymentMethod,
25
27
  useDefaultPaymentMethod,
26
28
  creditToUseInCents,
29
+ maxPlayersDesired,
30
+ maxPlayers,
27
31
  };
28
32
  ```
29
33
 
@@ -0,0 +1,28 @@
1
+ # CreateOpenBookingRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
9
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
10
+ **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
11
+ **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]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { CreateOpenBookingRequest } from '@tennac-booking/sdk';
18
+
19
+ const instance: CreateOpenBookingRequest = {
20
+ slotIds,
21
+ paymentMethod,
22
+ useDefaultPaymentMethod,
23
+ creditToUseInCents,
24
+ maxPlayers,
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)
package/docs/EventsApi.md CHANGED
@@ -7,9 +7,12 @@ All URIs are relative to *http://localhost*
7
7
  |[**checkTeamNameAvailability**](#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability | |
8
8
  |[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
9
9
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
10
+ |[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
10
11
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
11
12
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
13
+ |[**joinOpenEventBooking**](#joinopeneventbooking) | **POST** /api/events/{eventBookingId}/open/join | |
12
14
  |[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
15
+ |[**leaveOpenEventBooking**](#leaveopeneventbooking) | **DELETE** /api/events/{eventBookingId}/open/leave | |
13
16
 
14
17
  # **checkTeamNameAvailability**
15
18
  > CheckTeamNameAvailability200Response checkTeamNameAvailability()
@@ -180,6 +183,59 @@ No authorization required
180
183
 
181
184
  [[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)
182
185
 
186
+ # **getOpenEventBookings**
187
+ > GetOpenEventBookings200Response getOpenEventBookings()
188
+
189
+
190
+ ### Example
191
+
192
+ ```typescript
193
+ import {
194
+ EventsApi,
195
+ Configuration
196
+ } from '@tennac-booking/sdk';
197
+
198
+ const configuration = new Configuration();
199
+ const apiInstance = new EventsApi(configuration);
200
+
201
+ let clubId: string; // (optional) (default to undefined)
202
+ let eventId: string; // (optional) (default to undefined)
203
+
204
+ const { status, data } = await apiInstance.getOpenEventBookings(
205
+ clubId,
206
+ eventId
207
+ );
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ |Name | Type | Description | Notes|
213
+ |------------- | ------------- | ------------- | -------------|
214
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
215
+ | **eventId** | [**string**] | | (optional) defaults to undefined|
216
+
217
+
218
+ ### Return type
219
+
220
+ **GetOpenEventBookings200Response**
221
+
222
+ ### Authorization
223
+
224
+ No authorization required
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ### HTTP response details
233
+ | Status code | Description | Response headers |
234
+ |-------------|-------------|------------------|
235
+ |**200** | List of open event bookings | - |
236
+
237
+ [[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)
238
+
183
239
  # **getPublishedEventsByClubId**
184
240
  > EventsListResponse getPublishedEventsByClubId()
185
241
 
@@ -300,6 +356,62 @@ const { status, data } = await apiInstance.joinEvent(
300
356
 
301
357
  [[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)
302
358
 
359
+ # **joinOpenEventBooking**
360
+ > JoinOpenEventResponse joinOpenEventBooking(joinOpenEventBookingRequest)
361
+
362
+
363
+ ### Example
364
+
365
+ ```typescript
366
+ import {
367
+ EventsApi,
368
+ Configuration,
369
+ JoinOpenEventBookingRequest
370
+ } from '@tennac-booking/sdk';
371
+
372
+ const configuration = new Configuration();
373
+ const apiInstance = new EventsApi(configuration);
374
+
375
+ let eventBookingId: string; // (default to undefined)
376
+ let joinOpenEventBookingRequest: JoinOpenEventBookingRequest; //
377
+
378
+ const { status, data } = await apiInstance.joinOpenEventBooking(
379
+ eventBookingId,
380
+ joinOpenEventBookingRequest
381
+ );
382
+ ```
383
+
384
+ ### Parameters
385
+
386
+ |Name | Type | Description | Notes|
387
+ |------------- | ------------- | ------------- | -------------|
388
+ | **joinOpenEventBookingRequest** | **JoinOpenEventBookingRequest**| | |
389
+ | **eventBookingId** | [**string**] | | defaults to undefined|
390
+
391
+
392
+ ### Return type
393
+
394
+ **JoinOpenEventResponse**
395
+
396
+ ### Authorization
397
+
398
+ [bearerAuth](../README.md#bearerAuth)
399
+
400
+ ### HTTP request headers
401
+
402
+ - **Content-Type**: application/json
403
+ - **Accept**: application/json
404
+
405
+
406
+ ### HTTP response details
407
+ | Status code | Description | Response headers |
408
+ |-------------|-------------|------------------|
409
+ |**200** | Joined open event booking | - |
410
+ |**400** | Bad Request | - |
411
+ |**404** | Not Found | - |
412
+
413
+ [[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)
414
+
303
415
  # **leaveEvent**
304
416
  > JoinEventResponse leaveEvent()
305
417
 
@@ -354,3 +466,55 @@ const { status, data } = await apiInstance.leaveEvent(
354
466
 
355
467
  [[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)
356
468
 
469
+ # **leaveOpenEventBooking**
470
+ > RequestPasswordReset200Response leaveOpenEventBooking()
471
+
472
+
473
+ ### Example
474
+
475
+ ```typescript
476
+ import {
477
+ EventsApi,
478
+ Configuration
479
+ } from '@tennac-booking/sdk';
480
+
481
+ const configuration = new Configuration();
482
+ const apiInstance = new EventsApi(configuration);
483
+
484
+ let eventBookingId: string; // (default to undefined)
485
+
486
+ const { status, data } = await apiInstance.leaveOpenEventBooking(
487
+ eventBookingId
488
+ );
489
+ ```
490
+
491
+ ### Parameters
492
+
493
+ |Name | Type | Description | Notes|
494
+ |------------- | ------------- | ------------- | -------------|
495
+ | **eventBookingId** | [**string**] | | defaults to undefined|
496
+
497
+
498
+ ### Return type
499
+
500
+ **RequestPasswordReset200Response**
501
+
502
+ ### Authorization
503
+
504
+ [bearerAuth](../README.md#bearerAuth)
505
+
506
+ ### HTTP request headers
507
+
508
+ - **Content-Type**: Not defined
509
+ - **Accept**: application/json
510
+
511
+
512
+ ### HTTP response details
513
+ | Status code | Description | Response headers |
514
+ |-------------|-------------|------------------|
515
+ |**200** | Left open event booking | - |
516
+ |**400** | Bad Request | - |
517
+ |**404** | Not Found | - |
518
+
519
+ [[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)
520
+
@@ -136,7 +136,7 @@ const { status, data } = await apiInstance.getDailyEvents(
136
136
  # **getEventsByClub**
137
137
  > EventsListResponse getEventsByClub()
138
138
 
139
- Get all events for a club (staff only)
139
+ // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
140
140
 
141
141
  ### Example
142
142
 
@@ -0,0 +1,20 @@
1
+ # GetOpenBookings200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookings** | [**Array<BookingInfo>**](BookingInfo.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetOpenBookings200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetOpenBookings200Response = {
16
+ bookings,
17
+ };
18
+ ```
19
+
20
+ [[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,20 @@
1
+ # GetOpenEventBookings200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **eventBookings** | [**Array<EventBookingResponse>**](EventBookingResponse.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetOpenEventBookings200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetOpenEventBookings200Response = {
16
+ eventBookings,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **teamName** | **string** | | [optional] [default to undefined]
9
9
  **players** | **Array<string>** | | [optional] [default to undefined]
10
+ **isOpen** | **boolean** | | [optional] [default to undefined]
10
11
  **isCreatorPayingAll** | **boolean** | | [optional] [default to undefined]
11
12
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
13
  **playersPaymentMethods** | [**Array<JoinEventRequestPlayersPaymentMethodsInner>**](JoinEventRequestPlayersPaymentMethodsInner.md) | | [optional] [default to undefined]
@@ -21,6 +22,7 @@ import { JoinEventRequest } from '@tennac-booking/sdk';
21
22
  const instance: JoinEventRequest = {
22
23
  teamName,
23
24
  players,
25
+ isOpen,
24
26
  isCreatorPayingAll,
25
27
  paymentMethod,
26
28
  playersPaymentMethods,
@@ -0,0 +1,28 @@
1
+ # JoinOpenBookingResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **invoiceUrl** | **string** | | [optional] [default to undefined]
10
+ **paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
11
+ **onsitePayments** | [**Array<BookingResponseOnsitePaymentsInner>**](BookingResponseOnsitePaymentsInner.md) | | [optional] [default to undefined]
12
+ **invoices** | [**Array<CheckInEventParticipants200ResponseInvoicesInner>**](CheckInEventParticipants200ResponseInvoicesInner.md) | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { JoinOpenBookingResponse } from '@tennac-booking/sdk';
18
+
19
+ const instance: JoinOpenBookingResponse = {
20
+ message,
21
+ invoiceUrl,
22
+ paymentLinks,
23
+ onsitePayments,
24
+ invoices,
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)