@tennac-booking/sdk 1.0.228 → 1.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +51 -29
- package/README.md +76 -48
- package/api.ts +4783 -3563
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +4841 -3732
- package/dist/api.js +2058 -1812
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +4841 -3732
- package/dist/esm/api.js +1788 -1538
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgendaBooking.md +2 -0
- package/docs/AuthApi.md +113 -0
- package/docs/BookingClubInfo.md +2 -0
- package/docs/BookingPopulated.md +9 -1
- package/docs/BookingSummary.md +6 -4
- package/docs/BookingsApi.md +29 -80
- package/docs/BookingsStaffApi.md +1 -57
- package/docs/BookingsUserApi.md +58 -6
- package/docs/{CheckInPlayerSumupResponse.md → CloseOpenBookingResponse.md} +5 -7
- package/docs/ClubPageResponse.md +16 -0
- package/docs/ClubPageResponseClubCustomerStatus.md +27 -0
- package/docs/ClubPageResponseSportsIdsLookup.md +23 -0
- package/docs/ClubPricingPeriodPayload.md +32 -0
- package/docs/ClubPricingPeriodResponse.md +6 -6
- package/docs/ClubReservationSettingsResponse.md +2 -2
- package/docs/ClubResponse.md +12 -2
- package/docs/ClubSummary.md +6 -0
- package/docs/ComingEventsPageResponse.md +22 -0
- package/docs/CourtEnvironment.md +10 -0
- package/docs/CreateBookingRequest.md +0 -2
- package/docs/CreateOpenBookingRequest.md +6 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +4 -0
- package/docs/EstimateOpenBookingJoinRequest.md +24 -0
- package/docs/EventBookingDetailSummary.md +2 -0
- package/docs/EventBookingResponse.md +2 -0
- package/docs/EventResponse.md +2 -0
- package/docs/EventsApi.md +113 -0
- package/docs/EventsStaffApi.md +119 -25
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +2 -0
- package/docs/GetOpenEventBookingsBySport200Response.md +20 -0
- package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +46 -0
- package/docs/{SumupPairReaderResponse.md → Health200Response.md} +7 -5
- package/docs/IUserAttributes.md +4 -0
- package/docs/{SumupReaderInfoDevice.md → JobResult.md} +9 -7
- package/docs/JobsApi.md +367 -0
- package/docs/JoinOpenBookingRequest.md +28 -0
- package/docs/MarkNotificationsReadRequest.md +22 -0
- package/docs/{SumupConnectUrlResponse.md → MarkNotificationsReadResponse.md} +5 -5
- package/docs/MyClubInfosResponse.md +0 -2
- package/docs/{PaymentStatus.md → NotificationActorType.md} +4 -6
- package/docs/NotificationData.md +22 -0
- package/docs/NotificationInitiator.md +28 -0
- package/docs/NotificationParticipantPreview.md +24 -0
- package/docs/NotificationPreview.md +78 -0
- package/docs/NotificationResponse.md +46 -0
- package/docs/{SumupUpdateReaderRequest.md → NotificationResponseClub.md} +7 -5
- package/docs/NotificationSlotPreview.md +24 -0
- package/docs/NotificationSportPreview.md +24 -0
- package/docs/{SumupReaderStatusResponse.md → NotificationTargetPreview.md} +7 -5
- package/docs/NotificationType.md +26 -0
- package/docs/OpenBookingBasePriceResponse.md +24 -0
- package/docs/OpenBookingInfo.md +7 -5
- package/docs/OpenBookingJoinEstimateResponse.md +26 -0
- package/docs/OpenBookingPriceBody.md +26 -0
- package/docs/PartnerSearchItem.md +28 -0
- package/docs/PartnerSearchResponse.md +22 -0
- package/docs/PartnerSearchResponseMeta.md +26 -0
- package/docs/PlayerPrice.md +3 -1
- package/docs/PricingPeriodDiscount.md +24 -0
- package/docs/PublicEmailApi.md +4 -4
- package/docs/QuickReservationClubSummary.md +12 -0
- package/docs/QuickReservationCourtType.md +10 -0
- package/docs/RequestOrganizationEmailCodeBody.md +22 -0
- package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
- package/docs/RequestVerificationCodeBody.md +26 -0
- package/docs/{SumupReaderResponse.md → RequestVerificationCodeResponse.md} +5 -5
- package/docs/SportResponse.md +2 -0
- package/docs/StaffEventBookingResponse.md +2 -0
- package/docs/StaffEventsPageResponse.md +22 -0
- package/docs/StaffUserProfileResponse.md +4 -0
- package/docs/SubscriptionPlanDiscountResponse.md +2 -0
- package/docs/SubscriptionPlanDiscountUpdateRequest.md +2 -0
- package/docs/{PaymentProviderType.md → SupportedLanguage.md} +3 -3
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/UpdateClubReservationSettingsRequest.md +2 -2
- package/docs/UserClubMembership.md +2 -0
- package/docs/UserNextBookingSummary.md +26 -0
- package/docs/UserNotificationsResponse.md +22 -0
- package/docs/UserNotificationsResponseMeta.md +28 -0
- package/docs/UserProfileResponse.md +12 -0
- package/docs/UsersApi.md +273 -0
- package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
- package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
- package/docs/VerifyVerificationCodeBody.md +24 -0
- package/docs/{SumupCancelPaymentRequest.md → VerifyVerificationCodeResponse.md} +5 -5
- package/docs/WaitListEntryWithPlayer.md +44 -0
- package/docs/WaitListPlayer.md +28 -0
- package/docs/WaitListPlayersListResponse.md +22 -0
- package/docs/WaitListStaffApi.md +55 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/CheckInPlayerSumupRequest.md +0 -22
- package/docs/CheckInSumupPaymentInfo.md +0 -26
- package/docs/GetOpenBookingPrice200Response.md +0 -24
- package/docs/GetOpenBookingPriceRequest.md +0 -26
- package/docs/JoinPriceEstimateResponse.md +0 -38
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
- package/docs/OpenBookingSlotInfo.md +0 -24
- package/docs/PaymentIntentResult.md +0 -28
- package/docs/PaymentsStaffApi.md +0 -124
- package/docs/StaffEventsPaginatedResponse.md +0 -26
- package/docs/SumUpApi.md +0 -63
- package/docs/SumUpManagerApi.md +0 -617
- package/docs/SumupAccountStatusResponse.md +0 -32
- package/docs/SumupCreatePaymentRequest.md +0 -32
- package/docs/SumupOAuthCallbackResponse.md +0 -24
- package/docs/SumupPairReaderRequest.md +0 -24
- package/docs/SumupReaderInfo.md +0 -42
- package/docs/SumupReaderStatusInfo.md +0 -32
- package/docs/SumupReadersResponse.md +0 -20
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/AgendaBooking.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
10
|
+
**isOpen** | **boolean** | | [default to undefined]
|
|
10
11
|
**creatorName** | **string** | | [default to undefined]
|
|
11
12
|
**players** | [**Array<AgendaBookingPlayer>**](AgendaBookingPlayer.md) | | [default to undefined]
|
|
12
13
|
**paymentStatus** | [**BookingInvoicePaymentStatus**](BookingInvoicePaymentStatus.md) | | [default to undefined]
|
|
@@ -20,6 +21,7 @@ import { AgendaBooking } from '@tennac-booking/sdk';
|
|
|
20
21
|
const instance: AgendaBooking = {
|
|
21
22
|
id,
|
|
22
23
|
status,
|
|
24
|
+
isOpen,
|
|
23
25
|
creatorName,
|
|
24
26
|
players,
|
|
25
27
|
paymentStatus,
|
package/docs/AuthApi.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# AuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**requestVerificationCode**](#requestverificationcode) | **POST** /api/auth/verification-code | |
|
|
8
|
+
|[**verifyVerificationCode**](#verifyverificationcode) | **POST** /api/auth/verification-code/verify | |
|
|
9
|
+
|
|
10
|
+
# **requestVerificationCode**
|
|
11
|
+
> RequestVerificationCodeResponse requestVerificationCode(requestVerificationCodeBody)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
AuthApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
RequestVerificationCodeBody
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AuthApi(configuration);
|
|
25
|
+
|
|
26
|
+
let requestVerificationCodeBody: RequestVerificationCodeBody; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.requestVerificationCode(
|
|
29
|
+
requestVerificationCodeBody
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **requestVerificationCodeBody** | **RequestVerificationCodeBody**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**RequestVerificationCodeResponse**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
No authorization required
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | OK | - |
|
|
58
|
+
|**400** | Payload invalide | - |
|
|
59
|
+
|
|
60
|
+
[[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)
|
|
61
|
+
|
|
62
|
+
# **verifyVerificationCode**
|
|
63
|
+
> VerifyVerificationCodeResponse verifyVerificationCode(verifyVerificationCodeBody)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
AuthApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
VerifyVerificationCodeBody
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new AuthApi(configuration);
|
|
77
|
+
|
|
78
|
+
let verifyVerificationCodeBody: VerifyVerificationCodeBody; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.verifyVerificationCode(
|
|
81
|
+
verifyVerificationCodeBody
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **verifyVerificationCodeBody** | **VerifyVerificationCodeBody**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**VerifyVerificationCodeResponse**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
No authorization required
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | OK | - |
|
|
110
|
+
|**400** | Code invalide | - |
|
|
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)
|
|
113
|
+
|
package/docs/BookingClubInfo.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**picture** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**bannerPicture** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**address** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**location** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
13
14
|
|
|
@@ -20,6 +21,7 @@ const instance: BookingClubInfo = {
|
|
|
20
21
|
id,
|
|
21
22
|
name,
|
|
22
23
|
picture,
|
|
24
|
+
bannerPicture,
|
|
23
25
|
address,
|
|
24
26
|
location,
|
|
25
27
|
};
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -8,7 +8,7 @@ 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
|
|
11
|
+
**slotInfos** | [**Array<SlotInfo>**](SlotInfo.md) | Informations des slots | [default to undefined]
|
|
12
12
|
**players** | [**Array<UserInfo>**](UserInfo.md) | | [default to undefined]
|
|
13
13
|
**initialPlayers** | [**Array<UserInfo>**](UserInfo.md) | Joueurs inclus à la création de la réservation (pour les créneaux ouverts) | [optional] [default to undefined]
|
|
14
14
|
**paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
|
|
@@ -21,6 +21,10 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
22
22
|
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
23
23
|
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**isOpen** | **boolean** | | [default to undefined]
|
|
25
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**minLevel** | **string** | | [optional] [default to undefined]
|
|
27
|
+
**maxPlayersDesired** | **number** | | [optional] [default to undefined]
|
|
24
28
|
|
|
25
29
|
## Example
|
|
26
30
|
|
|
@@ -44,6 +48,10 @@ const instance: BookingPopulated = {
|
|
|
44
48
|
cancelledByManager,
|
|
45
49
|
cancelledBy,
|
|
46
50
|
cancellationReason,
|
|
51
|
+
isOpen,
|
|
52
|
+
description,
|
|
53
|
+
minLevel,
|
|
54
|
+
maxPlayersDesired,
|
|
47
55
|
};
|
|
48
56
|
```
|
|
49
57
|
|
package/docs/BookingSummary.md
CHANGED
|
@@ -16,8 +16,6 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**slotIds** | **Array<string>** | | [default to undefined]
|
|
17
17
|
**isPublic** | **boolean** | | [default to undefined]
|
|
18
18
|
**isOpen** | **boolean** | | [default to undefined]
|
|
19
|
-
**maxPlayers** | **number** | | [optional] [default to undefined]
|
|
20
|
-
**maxPlayersDesired** | **number** | | [optional] [default to undefined]
|
|
21
19
|
**description** | **string** | | [optional] [default to undefined]
|
|
22
20
|
**minLevel** | **string** | | [optional] [default to undefined]
|
|
23
21
|
**initialPlayers** | [**Array<BookingPlayerInfo>**](BookingPlayerInfo.md) | | [optional] [default to undefined]
|
|
@@ -35,6 +33,7 @@ Name | Type | Description | Notes
|
|
|
35
33
|
**updatedAt** | **string** | | [default to undefined]
|
|
36
34
|
**playersCount** | **number** | | [optional] [default to undefined]
|
|
37
35
|
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
36
|
+
**clubBanner** | **string** | | [optional] [default to undefined]
|
|
38
37
|
**courtName** | **string** | | [optional] [default to undefined]
|
|
39
38
|
**sportName** | **string** | | [optional] [default to undefined]
|
|
40
39
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
@@ -52,6 +51,8 @@ Name | Type | Description | Notes
|
|
|
52
51
|
**court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
|
|
53
52
|
**sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
|
|
54
53
|
**players** | [**Array<BookingPlayerPaymentSummary>**](BookingPlayerPaymentSummary.md) | | [default to undefined]
|
|
54
|
+
**userParticipationStatus** | **string** | | [optional] [default to undefined]
|
|
55
|
+
**waitListPosition** | **number** | | [optional] [default to undefined]
|
|
55
56
|
|
|
56
57
|
## Example
|
|
57
58
|
|
|
@@ -70,8 +71,6 @@ const instance: BookingSummary = {
|
|
|
70
71
|
slotIds,
|
|
71
72
|
isPublic,
|
|
72
73
|
isOpen,
|
|
73
|
-
maxPlayers,
|
|
74
|
-
maxPlayersDesired,
|
|
75
74
|
description,
|
|
76
75
|
minLevel,
|
|
77
76
|
initialPlayers,
|
|
@@ -89,6 +88,7 @@ const instance: BookingSummary = {
|
|
|
89
88
|
updatedAt,
|
|
90
89
|
playersCount,
|
|
91
90
|
clubPicture,
|
|
91
|
+
clubBanner,
|
|
92
92
|
courtName,
|
|
93
93
|
sportName,
|
|
94
94
|
startDate,
|
|
@@ -106,6 +106,8 @@ const instance: BookingSummary = {
|
|
|
106
106
|
court,
|
|
107
107
|
sport,
|
|
108
108
|
players,
|
|
109
|
+
userParticipationStatus,
|
|
110
|
+
waitListPosition,
|
|
109
111
|
};
|
|
110
112
|
```
|
|
111
113
|
|
package/docs/BookingsApi.md
CHANGED
|
@@ -5,12 +5,11 @@ 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
|
+
|[**estimateOpenBookingJoin**](#estimateopenbookingjoin) | **POST** /api/bookings/{bookingId}/open/estimate-join | |
|
|
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
|
-
|[**
|
|
13
|
-
|[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
|
|
12
|
+
|[**getOpenBookingBasePrice**](#getopenbookingbaseprice) | **GET** /api/bookings/{bookingId}/open/base-price | |
|
|
14
13
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
15
14
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
16
15
|
|[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
|
|
@@ -68,28 +67,29 @@ No authorization required
|
|
|
68
67
|
|
|
69
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)
|
|
70
69
|
|
|
71
|
-
# **
|
|
72
|
-
>
|
|
70
|
+
# **estimateOpenBookingJoin**
|
|
71
|
+
> OpenBookingJoinEstimateResponse estimateOpenBookingJoin(estimateOpenBookingJoinRequest)
|
|
73
72
|
|
|
74
|
-
|
|
73
|
+
Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
|
|
75
74
|
|
|
76
75
|
### Example
|
|
77
76
|
|
|
78
77
|
```typescript
|
|
79
78
|
import {
|
|
80
79
|
BookingsApi,
|
|
81
|
-
Configuration
|
|
80
|
+
Configuration,
|
|
81
|
+
EstimateOpenBookingJoinRequest
|
|
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 estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest; //
|
|
89
89
|
|
|
90
|
-
const { status, data } = await apiInstance.
|
|
90
|
+
const { status, data } = await apiInstance.estimateOpenBookingJoin(
|
|
91
91
|
bookingId,
|
|
92
|
-
|
|
92
|
+
estimateOpenBookingJoinRequest
|
|
93
93
|
);
|
|
94
94
|
```
|
|
95
95
|
|
|
@@ -97,13 +97,13 @@ const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
|
|
|
97
97
|
|
|
98
98
|
|Name | Type | Description | Notes|
|
|
99
99
|
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **estimateOpenBookingJoinRequest** | **EstimateOpenBookingJoinRequest**| | |
|
|
100
101
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
101
|
-
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
### Return type
|
|
105
105
|
|
|
106
|
-
**
|
|
106
|
+
**OpenBookingJoinEstimateResponse**
|
|
107
107
|
|
|
108
108
|
### Authorization
|
|
109
109
|
|
|
@@ -111,14 +111,14 @@ const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
|
|
|
111
111
|
|
|
112
112
|
### HTTP request headers
|
|
113
113
|
|
|
114
|
-
- **Content-Type**:
|
|
114
|
+
- **Content-Type**: application/json
|
|
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** | Prix à payer calculé | - |
|
|
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
|
+
# **getOpenBookingBasePrice**
|
|
280
|
+
> OpenBookingBasePriceResponse getOpenBookingBasePrice()
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur stocké lors de la création.
|
|
283
283
|
|
|
284
284
|
### Example
|
|
285
285
|
|
|
@@ -293,62 +293,8 @@ 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
296
|
|
|
306
|
-
|
|
307
|
-
|------------- | ------------- | ------------- | -------------|
|
|
308
|
-
| **bookingId** | [**string**] | | defaults to undefined|
|
|
309
|
-
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
310
|
-
|
|
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(
|
|
297
|
+
const { status, data } = await apiInstance.getOpenBookingBasePrice(
|
|
352
298
|
bookingId
|
|
353
299
|
);
|
|
354
300
|
```
|
|
@@ -362,7 +308,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
|
362
308
|
|
|
363
309
|
### Return type
|
|
364
310
|
|
|
365
|
-
**
|
|
311
|
+
**OpenBookingBasePriceResponse**
|
|
366
312
|
|
|
367
313
|
### Authorization
|
|
368
314
|
|
|
@@ -377,7 +323,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
|
377
323
|
### HTTP response details
|
|
378
324
|
| Status code | Description | Response headers |
|
|
379
325
|
|-------------|-------------|------------------|
|
|
380
|
-
|**200** | Prix
|
|
326
|
+
|**200** | Prix de base calculé | - |
|
|
381
327
|
|
|
382
328
|
[[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)
|
|
383
329
|
|
|
@@ -397,9 +343,11 @@ const configuration = new Configuration();
|
|
|
397
343
|
const apiInstance = new BookingsApi(configuration);
|
|
398
344
|
|
|
399
345
|
let clubId: string; // (optional) (default to undefined)
|
|
346
|
+
let sportId: string; // (optional) (default to undefined)
|
|
400
347
|
|
|
401
348
|
const { status, data } = await apiInstance.getOpenBookings(
|
|
402
|
-
clubId
|
|
349
|
+
clubId,
|
|
350
|
+
sportId
|
|
403
351
|
);
|
|
404
352
|
```
|
|
405
353
|
|
|
@@ -408,6 +356,7 @@ const { status, data } = await apiInstance.getOpenBookings(
|
|
|
408
356
|
|Name | Type | Description | Notes|
|
|
409
357
|
|------------- | ------------- | ------------- | -------------|
|
|
410
358
|
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
359
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
411
360
|
|
|
412
361
|
|
|
413
362
|
### Return type
|
|
@@ -513,7 +462,7 @@ No authorization required
|
|
|
513
462
|
[[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)
|
|
514
463
|
|
|
515
464
|
# **joinOpenBooking**
|
|
516
|
-
> JoinOpenBookingResponse joinOpenBooking(
|
|
465
|
+
> JoinOpenBookingResponse joinOpenBooking(joinOpenBookingRequest)
|
|
517
466
|
|
|
518
467
|
|
|
519
468
|
### Example
|
|
@@ -522,18 +471,18 @@ No authorization required
|
|
|
522
471
|
import {
|
|
523
472
|
BookingsApi,
|
|
524
473
|
Configuration,
|
|
525
|
-
|
|
474
|
+
JoinOpenBookingRequest
|
|
526
475
|
} from '@tennac-booking/sdk';
|
|
527
476
|
|
|
528
477
|
const configuration = new Configuration();
|
|
529
478
|
const apiInstance = new BookingsApi(configuration);
|
|
530
479
|
|
|
531
480
|
let bookingId: string; // (default to undefined)
|
|
532
|
-
let
|
|
481
|
+
let joinOpenBookingRequest: JoinOpenBookingRequest; //
|
|
533
482
|
|
|
534
483
|
const { status, data } = await apiInstance.joinOpenBooking(
|
|
535
484
|
bookingId,
|
|
536
|
-
|
|
485
|
+
joinOpenBookingRequest
|
|
537
486
|
);
|
|
538
487
|
```
|
|
539
488
|
|
|
@@ -541,7 +490,7 @@ const { status, data } = await apiInstance.joinOpenBooking(
|
|
|
541
490
|
|
|
542
491
|
|Name | Type | Description | Notes|
|
|
543
492
|
|------------- | ------------- | ------------- | -------------|
|
|
544
|
-
| **
|
|
493
|
+
| **joinOpenBookingRequest** | **JoinOpenBookingRequest**| | |
|
|
545
494
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
546
495
|
|
|
547
496
|
|
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -5,7 +5,6 @@ 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 | |
|
|
9
8
|
|[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
|
|
10
9
|
|[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
|
|
11
10
|
|[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
|
|
@@ -17,7 +16,7 @@ All URIs are relative to *http://localhost*
|
|
|
17
16
|
# **checkInPlayer**
|
|
18
17
|
> CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
|
|
19
18
|
|
|
20
|
-
Check-in d\'un joueur
|
|
19
|
+
Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
21
20
|
|
|
22
21
|
### Example
|
|
23
22
|
|
|
@@ -69,61 +68,6 @@ const { status, data } = await apiInstance.checkInPlayer(
|
|
|
69
68
|
|
|
70
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)
|
|
71
70
|
|
|
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
|
-
|
|
127
71
|
# **createStaffBooking**
|
|
128
72
|
> BookingResponse createStaffBooking(staffCreateBookingRequest)
|
|
129
73
|
|