@tennac-booking/sdk 1.0.77 → 1.0.80
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 +13 -16
- package/README.md +16 -24
- package/api.ts +1247 -1401
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1030 -1036
- package/dist/api.js +189 -403
- 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 +1030 -1036
- package/dist/esm/api.js +182 -400
- 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/BookingClubInfo.md +28 -0
- package/docs/{SetupPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
- package/docs/BookingDetailResponse.md +53 -1
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingPopulated.md +2 -0
- package/docs/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
- package/docs/BookingSummary.md +53 -1
- package/docs/BookingsApi.md +55 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -167
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsResponse.md +0 -2
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/CreateEventRequest.md +0 -2
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/{ConfirmPaymentMethodResponse.md → QuickReservationClubSport.md} +7 -7
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +2 -158
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsResponse.md +0 -22
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
|
@@ -13,9 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
15
|
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
16
|
-
**isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
|
|
17
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
18
|
-
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
19
17
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
18
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
19
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
@@ -28,21 +26,19 @@ Name | Type | Description | Notes
|
|
|
28
26
|
**createdAt** | **string** | | [default to undefined]
|
|
29
27
|
**updatedAt** | **string** | | [default to undefined]
|
|
30
28
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
31
|
-
**paymentMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
32
|
-
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
33
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
34
|
-
**setupIntentId** | **string** | | [optional] [default to undefined]
|
|
35
29
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
36
30
|
**description** | **string** | | [optional] [default to undefined]
|
|
37
31
|
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
38
32
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
39
33
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
34
|
+
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
40
35
|
**upcomingBookingsCount** | **number** | | [optional] [default to undefined]
|
|
41
36
|
**subscriptionsCount** | **number** | | [optional] [default to undefined]
|
|
42
37
|
**subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
|
|
43
38
|
**frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
44
39
|
**frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
|
|
45
40
|
**stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
41
|
+
**verifiedSports** | [**Array<SportResponse>**](SportResponse.md) | | [optional] [default to undefined]
|
|
46
42
|
|
|
47
43
|
## Example
|
|
48
44
|
|
|
@@ -58,9 +54,7 @@ const instance: UserProfileResponse = {
|
|
|
58
54
|
gender,
|
|
59
55
|
location,
|
|
60
56
|
isAccountVerified,
|
|
61
|
-
isCreditCardRegistered,
|
|
62
57
|
levelBySports,
|
|
63
|
-
stripeCustomerId,
|
|
64
58
|
phone,
|
|
65
59
|
password,
|
|
66
60
|
profilePicture,
|
|
@@ -73,21 +67,19 @@ const instance: UserProfileResponse = {
|
|
|
73
67
|
createdAt,
|
|
74
68
|
updatedAt,
|
|
75
69
|
isLevelCertified,
|
|
76
|
-
paymentMethods,
|
|
77
|
-
defaultPaymentMethodId,
|
|
78
|
-
paymentMethodSetupCompleted,
|
|
79
|
-
setupIntentId,
|
|
80
70
|
favoriteClubs,
|
|
81
71
|
description,
|
|
82
72
|
isProfileVisible,
|
|
83
73
|
favoritePlayers,
|
|
84
74
|
sports,
|
|
75
|
+
stripeCustomerId,
|
|
85
76
|
upcomingBookingsCount,
|
|
86
77
|
subscriptionsCount,
|
|
87
78
|
subscriptions,
|
|
88
79
|
frequentlyVisitedClubs,
|
|
89
80
|
frequentlyPlayedWith,
|
|
90
81
|
stripeLinks,
|
|
82
|
+
verifiedSports,
|
|
91
83
|
};
|
|
92
84
|
```
|
|
93
85
|
|
package/docs/UsersApi.md
CHANGED
|
@@ -7,9 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | |
|
|
8
8
|
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
|
|
9
9
|
|[**addOrganization**](#addorganization) | **POST** /api/users/me/add-organization | |
|
|
10
|
-
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | |
|
|
11
10
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
|
|
12
|
-
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | |
|
|
13
11
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | |
|
|
14
12
|
|[**getBookingDetail**](#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | |
|
|
15
13
|
|[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | |
|
|
@@ -34,7 +32,6 @@ All URIs are relative to *http://localhost*
|
|
|
34
32
|
|[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
|
|
35
33
|
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
36
34
|
|[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
|
|
37
|
-
|[**setupOffSessionPaymentMethod**](#setupoffsessionpaymentmethod) | **POST** /api/users/setupOffSessionPaymentMethod | |
|
|
38
35
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
39
36
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
|
|
40
37
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
|
|
@@ -189,57 +186,6 @@ const { status, data } = await apiInstance.addOrganization(
|
|
|
189
186
|
- **Accept**: application/json
|
|
190
187
|
|
|
191
188
|
|
|
192
|
-
### HTTP response details
|
|
193
|
-
| Status code | Description | Response headers |
|
|
194
|
-
|-------------|-------------|------------------|
|
|
195
|
-
|**200** | Ok | - |
|
|
196
|
-
|
|
197
|
-
[[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)
|
|
198
|
-
|
|
199
|
-
# **addPaymentMethodSetup**
|
|
200
|
-
> PaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodRequestBody)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Example
|
|
204
|
-
|
|
205
|
-
```typescript
|
|
206
|
-
import {
|
|
207
|
-
UsersApi,
|
|
208
|
-
Configuration,
|
|
209
|
-
AddPaymentMethodRequestBody
|
|
210
|
-
} from '@tennac-booking/sdk';
|
|
211
|
-
|
|
212
|
-
const configuration = new Configuration();
|
|
213
|
-
const apiInstance = new UsersApi(configuration);
|
|
214
|
-
|
|
215
|
-
let addPaymentMethodRequestBody: AddPaymentMethodRequestBody; //
|
|
216
|
-
|
|
217
|
-
const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
218
|
-
addPaymentMethodRequestBody
|
|
219
|
-
);
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
### Parameters
|
|
223
|
-
|
|
224
|
-
|Name | Type | Description | Notes|
|
|
225
|
-
|------------- | ------------- | ------------- | -------------|
|
|
226
|
-
| **addPaymentMethodRequestBody** | **AddPaymentMethodRequestBody**| | |
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
### Return type
|
|
230
|
-
|
|
231
|
-
**PaymentMethodSetupResponse**
|
|
232
|
-
|
|
233
|
-
### Authorization
|
|
234
|
-
|
|
235
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
236
|
-
|
|
237
|
-
### HTTP request headers
|
|
238
|
-
|
|
239
|
-
- **Content-Type**: application/json
|
|
240
|
-
- **Accept**: application/json
|
|
241
|
-
|
|
242
|
-
|
|
243
189
|
### HTTP response details
|
|
244
190
|
| Status code | Description | Response headers |
|
|
245
191
|
|-------------|-------------|------------------|
|
|
@@ -291,57 +237,6 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
291
237
|
- **Accept**: application/json
|
|
292
238
|
|
|
293
239
|
|
|
294
|
-
### HTTP response details
|
|
295
|
-
| Status code | Description | Response headers |
|
|
296
|
-
|-------------|-------------|------------------|
|
|
297
|
-
|**200** | Ok | - |
|
|
298
|
-
|
|
299
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
300
|
-
|
|
301
|
-
# **confirmPaymentMethodSetup**
|
|
302
|
-
> ConfirmPaymentMethodResponse confirmPaymentMethodSetup(confirmPaymentMethodRequestBody)
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Example
|
|
306
|
-
|
|
307
|
-
```typescript
|
|
308
|
-
import {
|
|
309
|
-
UsersApi,
|
|
310
|
-
Configuration,
|
|
311
|
-
ConfirmPaymentMethodRequestBody
|
|
312
|
-
} from '@tennac-booking/sdk';
|
|
313
|
-
|
|
314
|
-
const configuration = new Configuration();
|
|
315
|
-
const apiInstance = new UsersApi(configuration);
|
|
316
|
-
|
|
317
|
-
let confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody; //
|
|
318
|
-
|
|
319
|
-
const { status, data } = await apiInstance.confirmPaymentMethodSetup(
|
|
320
|
-
confirmPaymentMethodRequestBody
|
|
321
|
-
);
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
### Parameters
|
|
325
|
-
|
|
326
|
-
|Name | Type | Description | Notes|
|
|
327
|
-
|------------- | ------------- | ------------- | -------------|
|
|
328
|
-
| **confirmPaymentMethodRequestBody** | **ConfirmPaymentMethodRequestBody**| | |
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
### Return type
|
|
332
|
-
|
|
333
|
-
**ConfirmPaymentMethodResponse**
|
|
334
|
-
|
|
335
|
-
### Authorization
|
|
336
|
-
|
|
337
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
338
|
-
|
|
339
|
-
### HTTP request headers
|
|
340
|
-
|
|
341
|
-
- **Content-Type**: application/json
|
|
342
|
-
- **Accept**: application/json
|
|
343
|
-
|
|
344
|
-
|
|
345
240
|
### HTTP response details
|
|
346
241
|
| Status code | Description | Response headers |
|
|
347
242
|
|-------------|-------------|------------------|
|
|
@@ -925,7 +820,7 @@ This endpoint does not have any parameters.
|
|
|
925
820
|
[[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)
|
|
926
821
|
|
|
927
822
|
# **getUserBookings**
|
|
928
|
-
>
|
|
823
|
+
> UserBookingsResponse getUserBookings()
|
|
929
824
|
|
|
930
825
|
|
|
931
826
|
### Example
|
|
@@ -958,7 +853,7 @@ const { status, data } = await apiInstance.getUserBookings(
|
|
|
958
853
|
|
|
959
854
|
### Return type
|
|
960
855
|
|
|
961
|
-
**
|
|
856
|
+
**UserBookingsResponse**
|
|
962
857
|
|
|
963
858
|
### Authorization
|
|
964
859
|
|
|
@@ -1546,57 +1441,6 @@ No authorization required
|
|
|
1546
1441
|
- **Accept**: application/json
|
|
1547
1442
|
|
|
1548
1443
|
|
|
1549
|
-
### HTTP response details
|
|
1550
|
-
| Status code | Description | Response headers |
|
|
1551
|
-
|-------------|-------------|------------------|
|
|
1552
|
-
|**200** | Ok | - |
|
|
1553
|
-
|
|
1554
|
-
[[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)
|
|
1555
|
-
|
|
1556
|
-
# **setupOffSessionPaymentMethod**
|
|
1557
|
-
> SetupPaymentMethodResponse setupOffSessionPaymentMethod(setupPaymentMethodRequestBody)
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
### Example
|
|
1561
|
-
|
|
1562
|
-
```typescript
|
|
1563
|
-
import {
|
|
1564
|
-
UsersApi,
|
|
1565
|
-
Configuration,
|
|
1566
|
-
SetupPaymentMethodRequestBody
|
|
1567
|
-
} from '@tennac-booking/sdk';
|
|
1568
|
-
|
|
1569
|
-
const configuration = new Configuration();
|
|
1570
|
-
const apiInstance = new UsersApi(configuration);
|
|
1571
|
-
|
|
1572
|
-
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
1573
|
-
|
|
1574
|
-
const { status, data } = await apiInstance.setupOffSessionPaymentMethod(
|
|
1575
|
-
setupPaymentMethodRequestBody
|
|
1576
|
-
);
|
|
1577
|
-
```
|
|
1578
|
-
|
|
1579
|
-
### Parameters
|
|
1580
|
-
|
|
1581
|
-
|Name | Type | Description | Notes|
|
|
1582
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1583
|
-
| **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
### Return type
|
|
1587
|
-
|
|
1588
|
-
**SetupPaymentMethodResponse**
|
|
1589
|
-
|
|
1590
|
-
### Authorization
|
|
1591
|
-
|
|
1592
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1593
|
-
|
|
1594
|
-
### HTTP request headers
|
|
1595
|
-
|
|
1596
|
-
- **Content-Type**: application/json
|
|
1597
|
-
- **Accept**: application/json
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
1444
|
### HTTP response details
|
|
1601
1445
|
| Status code | Description | Response headers |
|
|
1602
1446
|
|-------------|-------------|------------------|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# ClubPlayerBookingItem
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
-
**startDate** | **string** | Date de début de la réservation | [default to undefined]
|
|
10
|
-
**endDate** | **string** | Date de fin de la réservation | [default to undefined]
|
|
11
|
-
**location** | **string** | Nom du terrain ou emplacement | [default to undefined]
|
|
12
|
-
**sport** | **string** | Nom du sport associé | [default to undefined]
|
|
13
|
-
**status** | **string** | Statut de la réservation | [default to undefined]
|
|
14
|
-
**totalPrice** | **number** | Prix total de la réservation en centimes | [default to undefined]
|
|
15
|
-
**isCreator** | **boolean** | Indique si le joueur est le créateur de la réservation | [default to undefined]
|
|
16
|
-
**participantsCount** | **number** | Nombre total de participants | [default to undefined]
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { ClubPlayerBookingItem } from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const instance: ClubPlayerBookingItem = {
|
|
24
|
-
id,
|
|
25
|
-
startDate,
|
|
26
|
-
endDate,
|
|
27
|
-
location,
|
|
28
|
-
sport,
|
|
29
|
-
status,
|
|
30
|
-
totalPrice,
|
|
31
|
-
isCreator,
|
|
32
|
-
participantsCount,
|
|
33
|
-
};
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[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,22 +0,0 @@
|
|
|
1
|
-
# ClubPlayerBookingsResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**upcomingBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations à venir | [default to undefined]
|
|
9
|
-
**pastBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations passées | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ClubPlayerBookingsResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ClubPlayerBookingsResponse = {
|
|
17
|
-
upcomingBookings,
|
|
18
|
-
pastBookings,
|
|
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,46 +0,0 @@
|
|
|
1
|
-
# ClubPlayerDetailResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | ID du joueur | [default to undefined]
|
|
9
|
-
**name** | **string** | Nom complet | [default to undefined]
|
|
10
|
-
**firstName** | **string** | Prénom | [default to undefined]
|
|
11
|
-
**lastName** | **string** | Nom | [default to undefined]
|
|
12
|
-
**email** | **string** | Email | [default to undefined]
|
|
13
|
-
**phoneNumber** | **string** | Numéro de téléphone | [default to undefined]
|
|
14
|
-
**profilePictureUrl** | **string** | URL de la photo de profil | [default to undefined]
|
|
15
|
-
**isAccountVerified** | **boolean** | Compte vérifié | [default to undefined]
|
|
16
|
-
**subscriptionsToMyClub** | [**Array<ClubPlayerSubscriptionSummary>**](ClubPlayerSubscriptionSummary.md) | Abonnements au club courant | [default to undefined]
|
|
17
|
-
**profileDescription** | **string** | Description du profil | [default to undefined]
|
|
18
|
-
**gender** | **string** | Genre | [default to undefined]
|
|
19
|
-
**city** | **string** | Ville | [default to undefined]
|
|
20
|
-
**sportsLevels** | [**Array<ClubPlayerDetailResponseSportsLevelsInner>**](ClubPlayerDetailResponseSportsLevelsInner.md) | Niveaux par sport | [default to undefined]
|
|
21
|
-
**birthDate** | **string** | Date de naissance | [default to undefined]
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import { ClubPlayerDetailResponse } from '@tennac-booking/sdk';
|
|
27
|
-
|
|
28
|
-
const instance: ClubPlayerDetailResponse = {
|
|
29
|
-
id,
|
|
30
|
-
name,
|
|
31
|
-
firstName,
|
|
32
|
-
lastName,
|
|
33
|
-
email,
|
|
34
|
-
phoneNumber,
|
|
35
|
-
profilePictureUrl,
|
|
36
|
-
isAccountVerified,
|
|
37
|
-
subscriptionsToMyClub,
|
|
38
|
-
profileDescription,
|
|
39
|
-
gender,
|
|
40
|
-
city,
|
|
41
|
-
sportsLevels,
|
|
42
|
-
birthDate,
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# ClubPlayerDetailResponseSportsLevelsInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**level** | **string** | | [default to undefined]
|
|
9
|
-
**sport** | **string** | | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ClubPlayerDetailResponseSportsLevelsInner } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ClubPlayerDetailResponseSportsLevelsInner = {
|
|
17
|
-
level,
|
|
18
|
-
sport,
|
|
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,42 +0,0 @@
|
|
|
1
|
-
# ClubPlayerStatisticsResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**totalBookings** | **number** | Nombre total de réservations (tous clubs confondus) | [default to undefined]
|
|
9
|
-
**totalBookingsInMyClub** | **number** | Nombre total de réservations dans le club courant | [default to undefined]
|
|
10
|
-
**totalSpentAmount** | **number** | Somme totale dépensée dans le club courant (centimes) | [default to undefined]
|
|
11
|
-
**favoriteSport** | **string** | Sport le plus pratiqué dans le club courant | [default to undefined]
|
|
12
|
-
**averageBookingLeadTimeHours** | **number** | Temps moyen entre la réservation et le début du créneau (heures) | [default to undefined]
|
|
13
|
-
**bookingCancellationRate** | **number** | Taux d\'annulation dans le club courant (0-1) | [default to undefined]
|
|
14
|
-
**activeSubscriptionsToMyClub** | **number** | Nombre d\'abonnements actifs au club courant | [default to undefined]
|
|
15
|
-
**favoriteTimeSlot** | **string** | Heure de créneau favorite dans le club courant (format HH:00) | [default to undefined]
|
|
16
|
-
**favoriteClub** | [**ClubPlayerStatisticsResponseFavoriteClub**](ClubPlayerStatisticsResponseFavoriteClub.md) | | [default to undefined]
|
|
17
|
-
**mostPlayedClub** | [**ClubPlayerStatisticsResponseMostPlayedClub**](ClubPlayerStatisticsResponseMostPlayedClub.md) | | [default to undefined]
|
|
18
|
-
**bookingAmountEvolutionThisMonth** | [**Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>**](ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md) | Évolution quotidienne des montants dépensés ce mois-ci | [default to undefined]
|
|
19
|
-
**mostPlayedPartners** | [**Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>**](ClubPlayerStatisticsResponseMostPlayedPartnersInner.md) | Joueurs les plus joués dans le club courant | [default to undefined]
|
|
20
|
-
|
|
21
|
-
## Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { ClubPlayerStatisticsResponse } from '@tennac-booking/sdk';
|
|
25
|
-
|
|
26
|
-
const instance: ClubPlayerStatisticsResponse = {
|
|
27
|
-
totalBookings,
|
|
28
|
-
totalBookingsInMyClub,
|
|
29
|
-
totalSpentAmount,
|
|
30
|
-
favoriteSport,
|
|
31
|
-
averageBookingLeadTimeHours,
|
|
32
|
-
bookingCancellationRate,
|
|
33
|
-
activeSubscriptionsToMyClub,
|
|
34
|
-
favoriteTimeSlot,
|
|
35
|
-
favoriteClub,
|
|
36
|
-
mostPlayedClub,
|
|
37
|
-
bookingAmountEvolutionThisMonth,
|
|
38
|
-
mostPlayedPartners,
|
|
39
|
-
};
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
[[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,22 +0,0 @@
|
|
|
1
|
-
# ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**amount** | **number** | | [default to undefined]
|
|
9
|
-
**day** | **number** | | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner = {
|
|
17
|
-
amount,
|
|
18
|
-
day,
|
|
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,23 +0,0 @@
|
|
|
1
|
-
# ClubPlayerStatisticsResponseFavoriteClub
|
|
2
|
-
|
|
3
|
-
Club favori selon le profil utilisateur
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**name** | **string** | | [default to undefined]
|
|
10
|
-
**clubId** | **string** | | [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { ClubPlayerStatisticsResponseFavoriteClub } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: ClubPlayerStatisticsResponseFavoriteClub = {
|
|
18
|
-
name,
|
|
19
|
-
clubId,
|
|
20
|
-
};
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
[[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,25 +0,0 @@
|
|
|
1
|
-
# ClubPlayerStatisticsResponseMostPlayedClub
|
|
2
|
-
|
|
3
|
-
Club où le joueur a le plus joué
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**bookingsCount** | **number** | | [default to undefined]
|
|
10
|
-
**name** | **string** | | [default to undefined]
|
|
11
|
-
**clubId** | **string** | | [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { ClubPlayerStatisticsResponseMostPlayedClub } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: ClubPlayerStatisticsResponseMostPlayedClub = {
|
|
19
|
-
bookingsCount,
|
|
20
|
-
name,
|
|
21
|
-
clubId,
|
|
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)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# ClubPlayerStatisticsResponseMostPlayedPartnersInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**bookingsTogether** | **number** | | [default to undefined]
|
|
9
|
-
**lastName** | **string** | | [default to undefined]
|
|
10
|
-
**firstName** | **string** | | [default to undefined]
|
|
11
|
-
**userId** | **string** | | [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { ClubPlayerStatisticsResponseMostPlayedPartnersInner } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: ClubPlayerStatisticsResponseMostPlayedPartnersInner = {
|
|
19
|
-
bookingsTogether,
|
|
20
|
-
lastName,
|
|
21
|
-
firstName,
|
|
22
|
-
userId,
|
|
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)
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# ClubPlayerSubscriptionSummary
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | ID du plan d\'abonnement | [default to undefined]
|
|
9
|
-
**name** | **string** | Nom du plan | [default to undefined]
|
|
10
|
-
**amountInCents** | **number** | Montant en centimes | [default to undefined]
|
|
11
|
-
**currency** | **string** | Devise | [default to undefined]
|
|
12
|
-
**interval** | **string** | Intervalle de facturation | [default to undefined]
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { ClubPlayerSubscriptionSummary } from '@tennac-booking/sdk';
|
|
18
|
-
|
|
19
|
-
const instance: ClubPlayerSubscriptionSummary = {
|
|
20
|
-
id,
|
|
21
|
-
name,
|
|
22
|
-
amountInCents,
|
|
23
|
-
currency,
|
|
24
|
-
interval,
|
|
25
|
-
};
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# PaymentMethodSetupResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [default to undefined]
|
|
9
|
-
**paymentMethods** | **Array<string>** | | [default to undefined]
|
|
10
|
-
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { PaymentMethodSetupResponse } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: PaymentMethodSetupResponse = {
|
|
18
|
-
message,
|
|
19
|
-
paymentMethods,
|
|
20
|
-
defaultPaymentMethodId,
|
|
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)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# SetupPaymentMethodResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**setupIntentId** | **string** | | [default to undefined]
|
|
9
|
-
**clientSecret** | **string** | | [default to undefined]
|
|
10
|
-
**message** | **string** | | [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { SetupPaymentMethodResponse } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: SetupPaymentMethodResponse = {
|
|
18
|
-
setupIntentId,
|
|
19
|
-
clientSecret,
|
|
20
|
-
message,
|
|
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)
|