@tennac-booking/sdk 1.0.115 → 1.0.116
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 +305 -300
- package/README.md +10 -2
- package/api.ts +352 -21
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +273 -21
- package/dist/api.js +155 -25
- 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 +273 -21
- package/dist/esm/api.js +151 -21
- 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/ActiveClub.md +24 -0
- package/docs/ActiveClubListResponse.md +20 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/AddFavoriteClubRequestBody.md +20 -0
- package/docs/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/AdminClubAnalyticsApi.md +249 -0
- package/docs/AdminClubSlotsApi.md +182 -0
- package/docs/AdminClubSubscriptionsApi.md +394 -0
- package/docs/AdminClubsApi.md +170 -0
- package/docs/ApiErrorResponse.md +22 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/Booking.md +32 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/BookingPopulatedSlotIdCourtId.md +22 -0
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/BookingsUserApi.md +1 -1
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClientApi.md +49 -2
- package/docs/ClientFullOnboardingResponseClub.md +2 -0
- package/docs/ClientOnboardingRequestBody.md +2 -0
- package/docs/ClientSubscription.md +31 -0
- package/docs/ClientSubscriptionItem.md +25 -0
- package/docs/ClientSubscriptionsResponse.md +21 -0
- package/docs/Club.md +46 -0
- package/docs/ClubInfoResponse.md +48 -0
- package/docs/ClubListResponse.md +22 -0
- package/docs/ClubMember.md +34 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubRole.md +30 -0
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +40 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/ClubsResponse.md +22 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/Court.md +32 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/DeleteClub200Response.md +20 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/DeleteSlotsResponse.md +20 -0
- package/docs/DeleteSport200Response.md +20 -0
- package/docs/EstimateEventPrice200Response.md +26 -0
- package/docs/EstimateEventPriceRequest.md +22 -0
- package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +58 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoriteClubResponse.md +22 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FrequentlyPlayedWithItem.md +28 -0
- package/docs/FrequentlyVisitedClubItem.md +24 -0
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/GetUserRolesResponse.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
- package/docs/LevelBySportsItem.md +22 -0
- package/docs/ManagerBookingsApi.md +125 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/ManagerClubCourtsApi.md +108 -0
- package/docs/ManagerClubRolesApi.md +268 -0
- package/docs/ManagerClubSlotsApi.md +119 -0
- package/docs/ManagerClubSubscriptionsApi.md +387 -0
- package/docs/ManagerClubsApi.md +253 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/ManagerSportsApi.md +174 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/PriceResponse.md +32 -0
- package/docs/ProfileVisibilityResponse.md +20 -0
- package/docs/PublicClubUser.md +46 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SetupPaymentMethodRequestBody.md +20 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/Slot.md +24 -0
- package/docs/SlotException.md +26 -0
- package/docs/SlotResponse.md +34 -0
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +24 -0
- package/docs/SportsResponse.md +22 -0
- package/docs/StaffClubAnalyticsApi.md +104 -0
- package/docs/StaffClubBookingsApi.md +52 -0
- package/docs/StaffClubsApi.md +100 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/docs/StaffProfileApi.md +54 -0
- package/docs/StripeStatus.md +16 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionPlan.md +36 -0
- package/docs/SubscriptionResponse.md +36 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UpdateUserCityRequestBody.md +20 -0
- package/docs/UpdateUserDescriptionRequestBody.md +20 -0
- package/docs/User.md +40 -0
- package/docs/UserAuthenticationApi.md +226 -0
- package/docs/UserBookingsApi.md +120 -0
- package/docs/UserCityResponse.md +20 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/UserDescriptionResponse.md +20 -0
- package/docs/UserFavoriteClubsResponse.md +20 -0
- package/docs/UserPaymentApi.md +176 -0
- package/docs/UserProfileApi.md +1201 -0
- package/docs/UserResponse.md +38 -0
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner = {
|
|
18
|
+
id,
|
|
19
|
+
amount,
|
|
20
|
+
status,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[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,26 @@
|
|
|
1
|
+
# BookingPopulatedSlotId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**courtId** | [**BookingPopulatedSlotIdCourtId**](BookingPopulatedSlotIdCourtId.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { BookingPopulatedSlotId } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: BookingPopulatedSlotId = {
|
|
19
|
+
id,
|
|
20
|
+
startDate,
|
|
21
|
+
endDate,
|
|
22
|
+
courtId,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingPopulatedSlotIdCourtId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingPopulatedSlotIdCourtId } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingPopulatedSlotIdCourtId = {
|
|
17
|
+
id,
|
|
18
|
+
name,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BookingPopulatedUserId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { BookingPopulatedUserId } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: BookingPopulatedUserId = {
|
|
18
|
+
id,
|
|
19
|
+
firstName,
|
|
20
|
+
lastName,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[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/BookingsUserApi.md
CHANGED
|
@@ -61,7 +61,7 @@ const { status, data } = await apiInstance.cancelBooking(
|
|
|
61
61
|
# **createBooking**
|
|
62
62
|
> BookingResponse createBooking(createBookingRequest)
|
|
63
63
|
|
|
64
|
-
Créer une réservation
|
|
64
|
+
Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
65
65
|
|
|
66
66
|
### Example
|
|
67
67
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CancelBookingResponseBooking
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**cancelledAt** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CancelBookingResponseBooking } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: CancelBookingResponseBooking = {
|
|
21
|
+
id,
|
|
22
|
+
status,
|
|
23
|
+
cancelledAt,
|
|
24
|
+
cancelledBy,
|
|
25
|
+
cancelledByManager,
|
|
26
|
+
cancellationReason,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,34 @@
|
|
|
1
|
+
# CheckInPlayersResponseCheckedInPlayersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**invoiceId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**previousStatus** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**newStatus** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**paymentMethod** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**note** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { CheckInPlayersResponseCheckedInPlayersInner } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: CheckInPlayersResponseCheckedInPlayersInner = {
|
|
23
|
+
playerId,
|
|
24
|
+
invoiceId,
|
|
25
|
+
amount,
|
|
26
|
+
previousStatus,
|
|
27
|
+
newStatus,
|
|
28
|
+
status,
|
|
29
|
+
paymentMethod,
|
|
30
|
+
note,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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/ClientApi.md
CHANGED
|
@@ -5,13 +5,14 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**clientRegister**](#clientregister) | **POST** /clients/register | |
|
|
8
|
+
|[**getClientSubscriptions**](#getclientsubscriptions) | **GET** /clients/subscriptions | |
|
|
8
9
|
|[**getManagedClubs**](#getmanagedclubs) | **GET** /clients/managed-clubs | |
|
|
9
10
|
|[**onboardClub**](#onboardclub) | **POST** /clients/onboarding | |
|
|
10
11
|
|
|
11
12
|
# **clientRegister**
|
|
12
13
|
> ClientRegister201Response clientRegister(clientRegisterRequest)
|
|
13
14
|
|
|
14
|
-
Enregistre un nouvel utilisateur client
|
|
15
|
+
Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
15
16
|
|
|
16
17
|
### Example
|
|
17
18
|
|
|
@@ -62,6 +63,52 @@ No authorization required
|
|
|
62
63
|
|
|
63
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
64
65
|
|
|
66
|
+
# **getClientSubscriptions**
|
|
67
|
+
> ClientSubscriptionsResponse getClientSubscriptions()
|
|
68
|
+
|
|
69
|
+
Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
ClientApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from '@tennac-booking/sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new ClientApi(configuration);
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.getClientSubscriptions();
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
This endpoint does not have any parameters.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Return type
|
|
90
|
+
|
|
91
|
+
**ClientSubscriptionsResponse**
|
|
92
|
+
|
|
93
|
+
### Authorization
|
|
94
|
+
|
|
95
|
+
[clientAuth](../README.md#clientAuth)
|
|
96
|
+
|
|
97
|
+
### HTTP request headers
|
|
98
|
+
|
|
99
|
+
- **Content-Type**: Not defined
|
|
100
|
+
- **Accept**: application/json
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### HTTP response details
|
|
104
|
+
| Status code | Description | Response headers |
|
|
105
|
+
|-------------|-------------|------------------|
|
|
106
|
+
|**200** | Abonnements récupérés | - |
|
|
107
|
+
|**401** | Non authentifié | - |
|
|
108
|
+
|**404** | Compte client introuvable | - |
|
|
109
|
+
|
|
110
|
+
[[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)
|
|
111
|
+
|
|
65
112
|
# **getManagedClubs**
|
|
66
113
|
> ManagedClubsResponse getManagedClubs()
|
|
67
114
|
|
|
@@ -111,7 +158,7 @@ This endpoint does not have any parameters.
|
|
|
111
158
|
# **onboardClub**
|
|
112
159
|
> ClientFullOnboardingResponse onboardClub(clientOnboardingRequestBody)
|
|
113
160
|
|
|
114
|
-
Enregistre un nouveau club pour la plateforme
|
|
161
|
+
Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
115
162
|
|
|
116
163
|
### Example
|
|
117
164
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubType** | **string** | | [optional] [default to undefined]
|
|
8
9
|
**clubOnboardingLink** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**stripeAccountId** | **string** | | [default to undefined]
|
|
10
11
|
**clubId** | **string** | | [default to undefined]
|
|
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
15
16
|
import { ClientFullOnboardingResponseClub } from '@tennac-booking/sdk';
|
|
16
17
|
|
|
17
18
|
const instance: ClientFullOnboardingResponseClub = {
|
|
19
|
+
clubType,
|
|
18
20
|
clubOnboardingLink,
|
|
19
21
|
stripeAccountId,
|
|
20
22
|
clubId,
|
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**city** | **string** | Ville du club (optionnel) | [optional] [default to undefined]
|
|
14
14
|
**postalCode** | **string** | Code postal du club (optionnel) | [optional] [default to undefined]
|
|
15
15
|
**country** | **string** | Pays du club (optionnel) | [optional] [default to undefined]
|
|
16
|
+
**clubType** | **string** | Type de club souhaité (public | school) | [optional] [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -27,6 +28,7 @@ const instance: ClientOnboardingRequestBody = {
|
|
|
27
28
|
city,
|
|
28
29
|
postalCode,
|
|
29
30
|
country,
|
|
31
|
+
clubType,
|
|
30
32
|
};
|
|
31
33
|
```
|
|
32
34
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ClientSubscription
|
|
2
|
+
|
|
3
|
+
Abonnement Stripe simplifié
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | | [default to undefined]
|
|
10
|
+
**status** | **string** | | [default to undefined]
|
|
11
|
+
**currentPeriodStart** | **number** | | [default to undefined]
|
|
12
|
+
**currentPeriodEnd** | **number** | | [default to undefined]
|
|
13
|
+
**cancelAtPeriodEnd** | **boolean** | | [default to undefined]
|
|
14
|
+
**items** | [**Array<ClientSubscriptionItem>**](ClientSubscriptionItem.md) | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ClientSubscription } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: ClientSubscription = {
|
|
22
|
+
id,
|
|
23
|
+
status,
|
|
24
|
+
currentPeriodStart,
|
|
25
|
+
currentPeriodEnd,
|
|
26
|
+
cancelAtPeriodEnd,
|
|
27
|
+
items,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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,25 @@
|
|
|
1
|
+
# ClientSubscriptionItem
|
|
2
|
+
|
|
3
|
+
Item d\'abonnement Stripe simplifié
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**priceId** | **string** | | [default to undefined]
|
|
10
|
+
**productId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**quantity** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClientSubscriptionItem } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClientSubscriptionItem = {
|
|
19
|
+
priceId,
|
|
20
|
+
productId,
|
|
21
|
+
quantity,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,21 @@
|
|
|
1
|
+
# ClientSubscriptionsResponse
|
|
2
|
+
|
|
3
|
+
Réponse liste des abonnements Stripe du client
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**subscriptions** | [**Array<ClientSubscription>**](ClientSubscription.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClientSubscriptionsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClientSubscriptionsResponse = {
|
|
17
|
+
subscriptions,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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/Club.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Club
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**address** | **string** | | [default to undefined]
|
|
11
|
+
**city** | **string** | | [default to undefined]
|
|
12
|
+
**zipCode** | **string** | | [default to undefined]
|
|
13
|
+
**country** | **string** | | [default to undefined]
|
|
14
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**website** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**isActive** | **boolean** | | [optional] [default to true]
|
|
20
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { Club } from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const instance: Club = {
|
|
29
|
+
id,
|
|
30
|
+
name,
|
|
31
|
+
address,
|
|
32
|
+
city,
|
|
33
|
+
zipCode,
|
|
34
|
+
country,
|
|
35
|
+
phone,
|
|
36
|
+
email,
|
|
37
|
+
website,
|
|
38
|
+
description,
|
|
39
|
+
logo,
|
|
40
|
+
isActive,
|
|
41
|
+
createdAt,
|
|
42
|
+
updatedAt,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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,48 @@
|
|
|
1
|
+
# ClubInfoResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**zipCode** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**website** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**rib** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
21
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { ClubInfoResponse } from '@tennac-booking/sdk';
|
|
28
|
+
|
|
29
|
+
const instance: ClubInfoResponse = {
|
|
30
|
+
id,
|
|
31
|
+
name,
|
|
32
|
+
address,
|
|
33
|
+
city,
|
|
34
|
+
zipCode,
|
|
35
|
+
country,
|
|
36
|
+
phone,
|
|
37
|
+
email,
|
|
38
|
+
website,
|
|
39
|
+
rib,
|
|
40
|
+
description,
|
|
41
|
+
logo,
|
|
42
|
+
isActive,
|
|
43
|
+
createdAt,
|
|
44
|
+
updatedAt,
|
|
45
|
+
};
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[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,22 @@
|
|
|
1
|
+
# ClubListResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubs** | [**Array<Club>**](Club.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubListResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubListResponse = {
|
|
17
|
+
clubs,
|
|
18
|
+
total,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ClubMember
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**userId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**roleId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**joinedAt** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**user** | [**UserResponse**](UserResponse.md) | | [optional] [default to undefined]
|
|
15
|
+
**role** | [**ClubRoleResponse**](ClubRoleResponse.md) | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ClubMember } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ClubMember = {
|
|
23
|
+
id,
|
|
24
|
+
userId,
|
|
25
|
+
clubId,
|
|
26
|
+
roleId,
|
|
27
|
+
joinedAt,
|
|
28
|
+
isActive,
|
|
29
|
+
user,
|
|
30
|
+
role,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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,22 @@
|
|
|
1
|
+
# ClubMembersResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**members** | [**Array<ClubMember>**](ClubMember.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubMembersResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubMembersResponse = {
|
|
17
|
+
members,
|
|
18
|
+
total,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ClubRole.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ClubRole
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Identifiant unique du rôle dans le club | [default to undefined]
|
|
9
|
+
**name** | **string** | Nom du rôle (ex: joueur, coach, admin) | [default to undefined]
|
|
10
|
+
**description** | **string** | Description textuelle du rôle | [default to undefined]
|
|
11
|
+
**permissions** | **Array<string>** | Liste des permissions associées à ce rôle | [optional] [default to undefined]
|
|
12
|
+
**createdAt** | **string** | Date de création du rôle | [default to undefined]
|
|
13
|
+
**updatedAt** | **string** | Date de dernière mise à jour du rôle | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ClubRole } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: ClubRole = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
description,
|
|
24
|
+
permissions,
|
|
25
|
+
createdAt,
|
|
26
|
+
updatedAt,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,22 @@
|
|
|
1
|
+
# ClubRolesResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**roles** | [**Array<ClubRoleResponse>**](ClubRoleResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubRolesResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubRolesResponse = {
|
|
17
|
+
roles,
|
|
18
|
+
total,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# ClubSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**maxWeeklyBookings** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**sameTimeBookingsLimit** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**cancellationLimitHours** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**availabilityPeriodInDays** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**sponsors** | **Array<string>** | | [optional] [default to undefined]
|
|
16
|
+
**timeBeforePayment** | **number** | Minutes before payment is required | [optional] [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { ClubSettings } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: ClubSettings = {
|
|
26
|
+
id,
|
|
27
|
+
clubId,
|
|
28
|
+
maxWeeklyBookings,
|
|
29
|
+
allowMultipleBookingsAtTheSameTime,
|
|
30
|
+
sameTimeBookingsLimit,
|
|
31
|
+
cancellationLimitHours,
|
|
32
|
+
availabilityPeriodInDays,
|
|
33
|
+
sponsors,
|
|
34
|
+
timeBeforePayment,
|
|
35
|
+
createdAt,
|
|
36
|
+
updatedAt,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[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/ClubsApi.md
CHANGED
|
@@ -22,7 +22,7 @@ All URIs are relative to *http://localhost*
|
|
|
22
22
|
# **getActiveClubs**
|
|
23
23
|
> Array<PartialClubActiveResponse> getActiveClubs()
|
|
24
24
|
|
|
25
|
-
Récupère la liste des clubs actifs publics
|
|
25
|
+
Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
26
26
|
|
|
27
27
|
### Example
|
|
28
28
|
|
|
@@ -476,7 +476,7 @@ No authorization required
|
|
|
476
476
|
# **getClubsWithVerificationDomains**
|
|
477
477
|
> Array<GetClubsWithVerificationDomains200ResponseInner> getClubsWithVerificationDomains()
|
|
478
478
|
|
|
479
|
-
Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
479
|
+
Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
480
480
|
|
|
481
481
|
### Example
|
|
482
482
|
|