@tennac-booking/sdk 1.0.225 → 1.0.227
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 +30 -51
- package/README.md +48 -76
- package/api.ts +3538 -4733
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +3766 -4855
- package/dist/api.js +9858 -15754
- package/dist/base.d.ts +1 -1
- package/dist/base.js +11 -32
- package/dist/common.d.ts +1 -1
- package/dist/common.js +41 -133
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +8 -21
- package/dist/esm/api.d.ts +25620 -0
- package/dist/esm/api.js +17756 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgendaBooking.md +0 -2
- package/docs/BookingPopulated.md +1 -9
- package/docs/BookingSummary.md +4 -4
- package/docs/BookingsApi.md +79 -25
- package/docs/BookingsStaffApi.md +57 -1
- package/docs/BookingsUserApi.md +6 -58
- package/docs/CheckInPlayerSumupRequest.md +22 -0
- package/docs/{CloseOpenBookingResponse.md → CheckInPlayerSumupResponse.md} +7 -5
- package/docs/CheckInSumupPaymentInfo.md +26 -0
- package/docs/ClubPageResponse.md +0 -16
- package/docs/ClubPricingPeriodResponse.md +6 -6
- package/docs/ClubReservationSettingsResponse.md +2 -2
- package/docs/ClubResponse.md +2 -12
- package/docs/ClubSummary.md +0 -6
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/CreateOpenBookingRequest.md +4 -6
- package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -4
- package/docs/EventBookingDetailSummary.md +0 -2
- package/docs/EventBookingResponse.md +0 -2
- package/docs/EventResponse.md +0 -2
- package/docs/EventsApi.md +0 -113
- package/docs/EventsStaffApi.md +25 -119
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +0 -2
- package/docs/GetOpenBookingPrice200Response.md +24 -0
- package/docs/GetOpenBookingPriceRequest.md +26 -0
- package/docs/IUserAttributes.md +0 -4
- package/docs/JoinPriceEstimateResponse.md +38 -0
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
- package/docs/MyClubInfosResponse.md +2 -0
- package/docs/OpenBookingInfo.md +5 -7
- package/docs/OpenBookingSlotInfo.md +24 -0
- package/docs/PaymentIntentResult.md +28 -0
- package/docs/{SupportedLanguage.md → PaymentProviderType.md} +3 -3
- package/docs/{NotificationActorType.md → PaymentStatus.md} +6 -4
- package/docs/PaymentsStaffApi.md +124 -0
- package/docs/PlayerPrice.md +1 -3
- package/docs/PublicEmailApi.md +4 -4
- package/docs/QuickReservationClubSummary.md +0 -12
- package/docs/SportResponse.md +0 -2
- package/docs/StaffEventBookingResponse.md +0 -2
- package/docs/StaffEventsPaginatedResponse.md +26 -0
- package/docs/StaffUserProfileResponse.md +0 -4
- package/docs/SubscriptionPlanDiscountResponse.md +0 -2
- package/docs/SubscriptionPlanDiscountUpdateRequest.md +0 -2
- package/docs/SumUpApi.md +63 -0
- package/docs/SumUpManagerApi.md +617 -0
- package/docs/SumupAccountStatusResponse.md +32 -0
- package/docs/{VerifyVerificationCodeResponse.md → SumupCancelPaymentRequest.md} +5 -5
- package/docs/{RequestVerificationCodeResponse.md → SumupConnectUrlResponse.md} +5 -5
- package/docs/SumupCreatePaymentRequest.md +32 -0
- package/docs/SumupOAuthCallbackResponse.md +24 -0
- package/docs/SumupPairReaderRequest.md +24 -0
- package/docs/{Health200Response.md → SumupPairReaderResponse.md} +5 -7
- package/docs/SumupReaderInfo.md +42 -0
- package/docs/{NotificationTargetPreview.md → SumupReaderInfoDevice.md} +7 -7
- package/docs/{MarkNotificationsReadResponse.md → SumupReaderResponse.md} +5 -5
- package/docs/SumupReaderStatusInfo.md +32 -0
- package/docs/SumupReaderStatusResponse.md +20 -0
- package/docs/SumupReadersResponse.md +20 -0
- package/docs/{NotificationResponseClub.md → SumupUpdateReaderRequest.md} +5 -7
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/UpdateClubReservationSettingsRequest.md +2 -2
- package/docs/UserClubMembership.md +0 -2
- package/docs/UserProfileResponse.md +0 -12
- package/docs/UsersApi.md +0 -273
- package/docs/WaitListStaffApi.md +0 -55
- package/index.ts +1 -1
- package/package.json +4 -2
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -5
- package/docs/AuthApi.md +0 -113
- package/docs/ClubPageResponseClubCustomerStatus.md +0 -27
- package/docs/ClubPageResponseSportsIdsLookup.md +0 -23
- package/docs/ClubPricingPeriodPayload.md +0 -32
- package/docs/ComingEventsPageResponse.md +0 -22
- package/docs/CourtEnvironment.md +0 -10
- package/docs/EstimateOpenBookingJoinRequest.md +0 -24
- package/docs/GetOpenEventBookingsBySport200Response.md +0 -20
- package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +0 -46
- package/docs/JobResult.md +0 -24
- package/docs/JobsApi.md +0 -367
- package/docs/JoinOpenBookingRequest.md +0 -28
- package/docs/MarkNotificationsReadRequest.md +0 -22
- package/docs/NotificationData.md +0 -22
- package/docs/NotificationInitiator.md +0 -28
- package/docs/NotificationParticipantPreview.md +0 -24
- package/docs/NotificationPreview.md +0 -78
- package/docs/NotificationResponse.md +0 -46
- package/docs/NotificationSlotPreview.md +0 -24
- package/docs/NotificationSportPreview.md +0 -24
- package/docs/NotificationType.md +0 -26
- package/docs/OpenBookingBasePriceResponse.md +0 -24
- package/docs/OpenBookingJoinEstimateResponse.md +0 -26
- package/docs/OpenBookingPriceBody.md +0 -26
- package/docs/PartnerSearchItem.md +0 -28
- package/docs/PartnerSearchResponse.md +0 -22
- package/docs/PartnerSearchResponseMeta.md +0 -26
- package/docs/PricingPeriodDiscount.md +0 -24
- package/docs/QuickReservationCourtType.md +0 -10
- package/docs/RequestOrganizationEmailCodeBody.md +0 -22
- package/docs/RequestOrganizationEmailCodeResponse.md +0 -22
- package/docs/RequestVerificationCodeBody.md +0 -26
- package/docs/StaffEventsPageResponse.md +0 -22
- package/docs/UserNextBookingSummary.md +0 -26
- package/docs/UserNotificationsResponse.md +0 -22
- package/docs/UserNotificationsResponseMeta.md +0 -28
- package/docs/VerifyOrganizationEmailCodeBody.md +0 -24
- package/docs/VerifyOrganizationEmailCodeResponse.md +0 -22
- package/docs/VerifyVerificationCodeBody.md +0 -24
- package/docs/WaitListEntryWithPlayer.md +0 -44
- package/docs/WaitListPlayer.md +0 -28
- package/docs/WaitListPlayersListResponse.md +0 -22
package/docs/BookingsApi.md
CHANGED
|
@@ -5,11 +5,12 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createGuestBooking**](#createguestbooking) | **POST** /api/bookings/guest | |
|
|
8
|
-
|[**
|
|
8
|
+
|[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
|
|
9
9
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
10
10
|
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
11
11
|
|[**getGuestBookingPrice**](#getguestbookingprice) | **POST** /api/bookings/guest/booking-price | |
|
|
12
|
-
|[**
|
|
12
|
+
|[**getJoinPriceEstimate**](#getjoinpriceestimate) | **GET** /api/bookings/{bookingId}/join-price-estimate | |
|
|
13
|
+
|[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
|
|
13
14
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
14
15
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
15
16
|
|[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
|
|
@@ -67,29 +68,28 @@ No authorization required
|
|
|
67
68
|
|
|
68
69
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
69
70
|
|
|
70
|
-
# **
|
|
71
|
-
>
|
|
71
|
+
# **estimateOpenBookingJoinPrice**
|
|
72
|
+
> EstimateOpenEventBookingJoinPrice200Response estimateOpenBookingJoinPrice()
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
Estimer le prix pour rejoindre une réservation ouverte
|
|
74
75
|
|
|
75
76
|
### Example
|
|
76
77
|
|
|
77
78
|
```typescript
|
|
78
79
|
import {
|
|
79
80
|
BookingsApi,
|
|
80
|
-
Configuration
|
|
81
|
-
EstimateOpenBookingJoinRequest
|
|
81
|
+
Configuration
|
|
82
82
|
} from '@tennac-booking/sdk';
|
|
83
83
|
|
|
84
84
|
const configuration = new Configuration();
|
|
85
85
|
const apiInstance = new BookingsApi(configuration);
|
|
86
86
|
|
|
87
87
|
let bookingId: string; // (default to undefined)
|
|
88
|
-
let
|
|
88
|
+
let creditToUseInCents: number; // (optional) (default to undefined)
|
|
89
89
|
|
|
90
|
-
const { status, data } = await apiInstance.
|
|
90
|
+
const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
|
|
91
91
|
bookingId,
|
|
92
|
-
|
|
92
|
+
creditToUseInCents
|
|
93
93
|
);
|
|
94
94
|
```
|
|
95
95
|
|
|
@@ -97,13 +97,13 @@ const { status, data } = await apiInstance.estimateOpenBookingJoin(
|
|
|
97
97
|
|
|
98
98
|
|Name | Type | Description | Notes|
|
|
99
99
|
|------------- | ------------- | ------------- | -------------|
|
|
100
|
-
| **estimateOpenBookingJoinRequest** | **EstimateOpenBookingJoinRequest**| | |
|
|
101
100
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
101
|
+
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
### Return type
|
|
105
105
|
|
|
106
|
-
**
|
|
106
|
+
**EstimateOpenEventBookingJoinPrice200Response**
|
|
107
107
|
|
|
108
108
|
### Authorization
|
|
109
109
|
|
|
@@ -111,14 +111,14 @@ const { status, data } = await apiInstance.estimateOpenBookingJoin(
|
|
|
111
111
|
|
|
112
112
|
### HTTP request headers
|
|
113
113
|
|
|
114
|
-
- **Content-Type**:
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
115
|
- **Accept**: application/json
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
### HTTP response details
|
|
119
119
|
| Status code | Description | Response headers |
|
|
120
120
|
|-------------|-------------|------------------|
|
|
121
|
-
|**200** |
|
|
121
|
+
|**200** | Estimation du prix calculée | - |
|
|
122
122
|
|
|
123
123
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
124
124
|
|
|
@@ -276,10 +276,10 @@ No authorization required
|
|
|
276
276
|
|
|
277
277
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
278
278
|
|
|
279
|
-
# **
|
|
280
|
-
>
|
|
279
|
+
# **getJoinPriceEstimate**
|
|
280
|
+
> JoinPriceEstimateResponse getJoinPriceEstimate()
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
283
283
|
|
|
284
284
|
### Example
|
|
285
285
|
|
|
@@ -293,8 +293,62 @@ const configuration = new Configuration();
|
|
|
293
293
|
const apiInstance = new BookingsApi(configuration);
|
|
294
294
|
|
|
295
295
|
let bookingId: string; // (default to undefined)
|
|
296
|
+
let creditToUseInCents: number; // (optional) (default to undefined)
|
|
297
|
+
|
|
298
|
+
const { status, data } = await apiInstance.getJoinPriceEstimate(
|
|
299
|
+
bookingId,
|
|
300
|
+
creditToUseInCents
|
|
301
|
+
);
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Parameters
|
|
305
|
+
|
|
306
|
+
|Name | Type | Description | Notes|
|
|
307
|
+
|------------- | ------------- | ------------- | -------------|
|
|
308
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
309
|
+
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
296
310
|
|
|
297
|
-
|
|
311
|
+
|
|
312
|
+
### Return type
|
|
313
|
+
|
|
314
|
+
**JoinPriceEstimateResponse**
|
|
315
|
+
|
|
316
|
+
### Authorization
|
|
317
|
+
|
|
318
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
319
|
+
|
|
320
|
+
### HTTP request headers
|
|
321
|
+
|
|
322
|
+
- **Content-Type**: Not defined
|
|
323
|
+
- **Accept**: application/json
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
### HTTP response details
|
|
327
|
+
| Status code | Description | Response headers |
|
|
328
|
+
|-------------|-------------|------------------|
|
|
329
|
+
|**200** | Estimation complète du prix calculée | - |
|
|
330
|
+
|
|
331
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
332
|
+
|
|
333
|
+
# **getOpenBookingJoinPrice**
|
|
334
|
+
> GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
|
|
335
|
+
|
|
336
|
+
Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
337
|
+
|
|
338
|
+
### Example
|
|
339
|
+
|
|
340
|
+
```typescript
|
|
341
|
+
import {
|
|
342
|
+
BookingsApi,
|
|
343
|
+
Configuration
|
|
344
|
+
} from '@tennac-booking/sdk';
|
|
345
|
+
|
|
346
|
+
const configuration = new Configuration();
|
|
347
|
+
const apiInstance = new BookingsApi(configuration);
|
|
348
|
+
|
|
349
|
+
let bookingId: string; // (default to undefined)
|
|
350
|
+
|
|
351
|
+
const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
298
352
|
bookingId
|
|
299
353
|
);
|
|
300
354
|
```
|
|
@@ -308,7 +362,7 @@ const { status, data } = await apiInstance.getOpenBookingBasePrice(
|
|
|
308
362
|
|
|
309
363
|
### Return type
|
|
310
364
|
|
|
311
|
-
**
|
|
365
|
+
**GetOpenEventBookingJoinPrice200Response**
|
|
312
366
|
|
|
313
367
|
### Authorization
|
|
314
368
|
|
|
@@ -323,7 +377,7 @@ const { status, data } = await apiInstance.getOpenBookingBasePrice(
|
|
|
323
377
|
### HTTP response details
|
|
324
378
|
| Status code | Description | Response headers |
|
|
325
379
|
|-------------|-------------|------------------|
|
|
326
|
-
|**200** | Prix
|
|
380
|
+
|**200** | Prix à payer calculé | - |
|
|
327
381
|
|
|
328
382
|
[[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)
|
|
329
383
|
|
|
@@ -459,7 +513,7 @@ No authorization required
|
|
|
459
513
|
[[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)
|
|
460
514
|
|
|
461
515
|
# **joinOpenBooking**
|
|
462
|
-
> JoinOpenBookingResponse joinOpenBooking(
|
|
516
|
+
> JoinOpenBookingResponse joinOpenBooking(joinOpenEventBookingRequest)
|
|
463
517
|
|
|
464
518
|
|
|
465
519
|
### Example
|
|
@@ -468,18 +522,18 @@ No authorization required
|
|
|
468
522
|
import {
|
|
469
523
|
BookingsApi,
|
|
470
524
|
Configuration,
|
|
471
|
-
|
|
525
|
+
JoinOpenEventBookingRequest
|
|
472
526
|
} from '@tennac-booking/sdk';
|
|
473
527
|
|
|
474
528
|
const configuration = new Configuration();
|
|
475
529
|
const apiInstance = new BookingsApi(configuration);
|
|
476
530
|
|
|
477
531
|
let bookingId: string; // (default to undefined)
|
|
478
|
-
let
|
|
532
|
+
let joinOpenEventBookingRequest: JoinOpenEventBookingRequest; //
|
|
479
533
|
|
|
480
534
|
const { status, data } = await apiInstance.joinOpenBooking(
|
|
481
535
|
bookingId,
|
|
482
|
-
|
|
536
|
+
joinOpenEventBookingRequest
|
|
483
537
|
);
|
|
484
538
|
```
|
|
485
539
|
|
|
@@ -487,7 +541,7 @@ const { status, data } = await apiInstance.joinOpenBooking(
|
|
|
487
541
|
|
|
488
542
|
|Name | Type | Description | Notes|
|
|
489
543
|
|------------- | ------------- | ------------- | -------------|
|
|
490
|
-
| **
|
|
544
|
+
| **joinOpenEventBookingRequest** | **JoinOpenEventBookingRequest**| | |
|
|
491
545
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
492
546
|
|
|
493
547
|
|
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
|
|
8
|
+
|[**checkInPlayerWithSumup**](#checkinplayerwithsumup) | **POST** /api/bookings/{bookingId}/check-in/sumup | |
|
|
8
9
|
|[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
|
|
9
10
|
|[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
|
|
10
11
|
|[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
|
|
@@ -16,7 +17,7 @@ All URIs are relative to *http://localhost*
|
|
|
16
17
|
# **checkInPlayer**
|
|
17
18
|
> CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
|
|
18
19
|
|
|
19
|
-
Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
20
|
+
Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
20
21
|
|
|
21
22
|
### Example
|
|
22
23
|
|
|
@@ -68,6 +69,61 @@ const { status, data } = await apiInstance.checkInPlayer(
|
|
|
68
69
|
|
|
69
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)
|
|
70
71
|
|
|
72
|
+
# **checkInPlayerWithSumup**
|
|
73
|
+
> CheckInPlayerSumupResponse checkInPlayerWithSumup(checkInPlayerSumupRequest)
|
|
74
|
+
|
|
75
|
+
Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
BookingsStaffApi,
|
|
82
|
+
Configuration,
|
|
83
|
+
CheckInPlayerSumupRequest
|
|
84
|
+
} from '@tennac-booking/sdk';
|
|
85
|
+
|
|
86
|
+
const configuration = new Configuration();
|
|
87
|
+
const apiInstance = new BookingsStaffApi(configuration);
|
|
88
|
+
|
|
89
|
+
let bookingId: string; // (default to undefined)
|
|
90
|
+
let checkInPlayerSumupRequest: CheckInPlayerSumupRequest; //
|
|
91
|
+
|
|
92
|
+
const { status, data } = await apiInstance.checkInPlayerWithSumup(
|
|
93
|
+
bookingId,
|
|
94
|
+
checkInPlayerSumupRequest
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **checkInPlayerSumupRequest** | **CheckInPlayerSumupRequest**| | |
|
|
103
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Return type
|
|
107
|
+
|
|
108
|
+
**CheckInPlayerSumupResponse**
|
|
109
|
+
|
|
110
|
+
### Authorization
|
|
111
|
+
|
|
112
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
113
|
+
|
|
114
|
+
### HTTP request headers
|
|
115
|
+
|
|
116
|
+
- **Content-Type**: application/json
|
|
117
|
+
- **Accept**: application/json
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### HTTP response details
|
|
121
|
+
| Status code | Description | Response headers |
|
|
122
|
+
|-------------|-------------|------------------|
|
|
123
|
+
|**200** | Checkout SumUp déclenché | - |
|
|
124
|
+
|
|
125
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
126
|
+
|
|
71
127
|
# **createStaffBooking**
|
|
72
128
|
> BookingResponse createStaffBooking(staffCreateBookingRequest)
|
|
73
129
|
|
package/docs/BookingsUserApi.md
CHANGED
|
@@ -5,7 +5,6 @@ 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 | |
|
|
9
8
|
|[**createBooking**](#createbooking) | **POST** /api/bookings | |
|
|
10
9
|
|[**createOpenBooking**](#createopenbooking) | **POST** /api/bookings/open | |
|
|
11
10
|
|[**getOpenBookingPrice**](#getopenbookingprice) | **POST** /api/bookings/open/booking-price | |
|
|
@@ -62,57 +61,6 @@ const { status, data } = await apiInstance.cancelBooking(
|
|
|
62
61
|
|
|
63
62
|
[[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
63
|
|
|
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
|
-
|
|
116
64
|
# **createBooking**
|
|
117
65
|
> BookingResponse createBooking(createBookingRequest)
|
|
118
66
|
|
|
@@ -218,7 +166,7 @@ const { status, data } = await apiInstance.createOpenBooking(
|
|
|
218
166
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
219
167
|
|
|
220
168
|
# **getOpenBookingPrice**
|
|
221
|
-
>
|
|
169
|
+
> GetOpenBookingPrice200Response getOpenBookingPrice(getOpenBookingPriceRequest)
|
|
222
170
|
|
|
223
171
|
Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
224
172
|
|
|
@@ -228,16 +176,16 @@ Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
|
228
176
|
import {
|
|
229
177
|
BookingsUserApi,
|
|
230
178
|
Configuration,
|
|
231
|
-
|
|
179
|
+
GetOpenBookingPriceRequest
|
|
232
180
|
} from '@tennac-booking/sdk';
|
|
233
181
|
|
|
234
182
|
const configuration = new Configuration();
|
|
235
183
|
const apiInstance = new BookingsUserApi(configuration);
|
|
236
184
|
|
|
237
|
-
let
|
|
185
|
+
let getOpenBookingPriceRequest: GetOpenBookingPriceRequest; //
|
|
238
186
|
|
|
239
187
|
const { status, data } = await apiInstance.getOpenBookingPrice(
|
|
240
|
-
|
|
188
|
+
getOpenBookingPriceRequest
|
|
241
189
|
);
|
|
242
190
|
```
|
|
243
191
|
|
|
@@ -245,12 +193,12 @@ const { status, data } = await apiInstance.getOpenBookingPrice(
|
|
|
245
193
|
|
|
246
194
|
|Name | Type | Description | Notes|
|
|
247
195
|
|------------- | ------------- | ------------- | -------------|
|
|
248
|
-
| **
|
|
196
|
+
| **getOpenBookingPriceRequest** | **GetOpenBookingPriceRequest**| | |
|
|
249
197
|
|
|
250
198
|
|
|
251
199
|
### Return type
|
|
252
200
|
|
|
253
|
-
**
|
|
201
|
+
**GetOpenBookingPrice200Response**
|
|
254
202
|
|
|
255
203
|
### Authorization
|
|
256
204
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CheckInPlayerSumupRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | ID du joueur qui a payé/est arrivé | [default to undefined]
|
|
9
|
+
**readerId** | **string** | Reader SumUp ciblé (optionnel) | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CheckInPlayerSumupRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CheckInPlayerSumupRequest = {
|
|
17
|
+
playerId,
|
|
18
|
+
readerId,
|
|
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)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CheckInPlayerSumupResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -6,16 +6,18 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
-
**
|
|
9
|
+
**invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
|
|
10
|
+
**sumupPayment** | [**CheckInSumupPaymentInfo**](CheckInSumupPaymentInfo.md) | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
13
14
|
```typescript
|
|
14
|
-
import {
|
|
15
|
+
import { CheckInPlayerSumupResponse } from '@tennac-booking/sdk';
|
|
15
16
|
|
|
16
|
-
const instance:
|
|
17
|
+
const instance: CheckInPlayerSumupResponse = {
|
|
17
18
|
message,
|
|
18
|
-
|
|
19
|
+
invoice,
|
|
20
|
+
sumupPayment,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CheckInSumupPaymentInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**paymentId** | **string** | ID du paiement SumUp | [default to undefined]
|
|
9
|
+
**checkoutId** | **string** | ID du checkout SumUp | [optional] [default to undefined]
|
|
10
|
+
**status** | [**PaymentStatus**](PaymentStatus.md) | | [default to undefined]
|
|
11
|
+
**readerId** | **string** | Reader SumUp utilisé | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CheckInSumupPaymentInfo } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: CheckInSumupPaymentInfo = {
|
|
19
|
+
paymentId,
|
|
20
|
+
checkoutId,
|
|
21
|
+
status,
|
|
22
|
+
readerId,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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/ClubPageResponse.md
CHANGED
|
@@ -16,15 +16,7 @@ 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]
|
|
20
19
|
**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]
|
|
28
20
|
**clubPresentation** | [**ClubPresentation**](ClubPresentation.md) | | [default to undefined]
|
|
29
21
|
**comingEvents** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
|
|
30
22
|
**comingClosures** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
|
|
@@ -50,15 +42,7 @@ const instance: ClubPageResponse = {
|
|
|
50
42
|
isActive,
|
|
51
43
|
paymentFeature,
|
|
52
44
|
isNoShowEnabled,
|
|
53
|
-
clubCustomerStatus,
|
|
54
45
|
sports,
|
|
55
|
-
sportsIdsLookup,
|
|
56
|
-
courtsCount,
|
|
57
|
-
courtsCountBySport,
|
|
58
|
-
surfacesBySport,
|
|
59
|
-
indoorOutdoorBySport,
|
|
60
|
-
slotDurationsBySport,
|
|
61
|
-
bookingPeriodInDays,
|
|
62
46
|
clubPresentation,
|
|
63
47
|
comingEvents,
|
|
64
48
|
comingClosures,
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**days** | **Array<string>** | | [default to undefined]
|
|
11
11
|
**startTime** | **number** | | [default to undefined]
|
|
12
12
|
**endTime** | **number** | | [default to undefined]
|
|
13
|
-
**
|
|
13
|
+
**variation** | **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
|
-
|
|
21
|
+
id,
|
|
22
22
|
name,
|
|
23
|
-
|
|
23
|
+
days,
|
|
24
24
|
startTime,
|
|
25
25
|
endTime,
|
|
26
|
-
|
|
26
|
+
variation,
|
|
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
|
-
**
|
|
9
|
+
**sameTimeBookingsLimit** | **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
|
-
|
|
20
|
+
sameTimeBookingsLimit,
|
|
21
21
|
cancellationDelayInHours,
|
|
22
22
|
bookingPeriodInDays,
|
|
23
23
|
};
|
package/docs/ClubResponse.md
CHANGED
|
@@ -12,7 +12,6 @@ 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]
|
|
16
15
|
**location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
|
|
17
16
|
**isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
|
|
18
17
|
**paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
|
|
@@ -20,12 +19,8 @@ Name | Type | Description | Notes
|
|
|
20
19
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
21
20
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
22
21
|
**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]
|
|
28
22
|
**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]
|
|
29
24
|
**maxSlotsPerBooking** | **number** | | [optional] [default to undefined]
|
|
30
25
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
31
26
|
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
@@ -45,7 +40,6 @@ const instance: ClubResponse = {
|
|
|
45
40
|
email,
|
|
46
41
|
phone,
|
|
47
42
|
picture,
|
|
48
|
-
logo,
|
|
49
43
|
location,
|
|
50
44
|
isActive,
|
|
51
45
|
paymentFeature,
|
|
@@ -53,12 +47,8 @@ const instance: ClubResponse = {
|
|
|
53
47
|
clubDashBoardUrl,
|
|
54
48
|
isNoShowEnabled,
|
|
55
49
|
sports,
|
|
56
|
-
courtsCount,
|
|
57
|
-
courtsCountBySport,
|
|
58
|
-
surfacesBySport,
|
|
59
|
-
indoorOutdoorBySport,
|
|
60
|
-
slotDurationsBySport,
|
|
61
50
|
allowMultipleBookingsAtTheSameTime,
|
|
51
|
+
sameTimeBookingsLimit,
|
|
62
52
|
maxSlotsPerBooking,
|
|
63
53
|
cancellationLimitHours,
|
|
64
54
|
maxWeeklyBookings,
|
package/docs/ClubSummary.md
CHANGED
|
@@ -14,9 +14,6 @@ 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]
|
|
20
17
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
21
18
|
|
|
22
19
|
## Example
|
|
@@ -34,9 +31,6 @@ const instance: ClubSummary = {
|
|
|
34
31
|
address,
|
|
35
32
|
description,
|
|
36
33
|
visitCount,
|
|
37
|
-
lastPlayedAt,
|
|
38
|
-
distanceInMeters,
|
|
39
|
-
distanceInKm,
|
|
40
34
|
tags,
|
|
41
35
|
};
|
|
42
36
|
```
|
|
@@ -12,6 +12,7 @@ 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]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const instance: CreateBookingRequest = {
|
|
|
26
27
|
useDefaultPaymentMethod,
|
|
27
28
|
creditToUseInCents,
|
|
28
29
|
maxPlayersDesired,
|
|
30
|
+
maxPlayers,
|
|
29
31
|
};
|
|
30
32
|
```
|
|
31
33
|
|