@tennac-booking/sdk 1.0.22 → 1.0.24
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 +15 -6
- package/README.md +61 -37
- package/api.ts +2800 -1354
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1679 -845
- package/dist/api.js +1955 -989
- 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 +1679 -845
- package/dist/esm/api.js +1932 -962
- 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/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/AdminClubAnalyticsApi.md +249 -0
- package/docs/AdminClubSlotsApi.md +120 -0
- package/docs/AdminClubSubscriptionsApi.md +394 -0
- package/docs/AdminClubsApi.md +82 -20
- package/docs/BlockSlotResponse.md +1 -1
- package/docs/BookingPopulated.md +28 -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/ClubAnalyticsApi.md +4 -16
- package/docs/ClubSettings.md +14 -8
- package/docs/{GetAllSportsRequest.md → DeleteClub200Response.md} +5 -5
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +3 -5
- package/docs/{CancelBookingRequest.md → LevelBySportsItem.md} +7 -5
- package/docs/ManagerBookingsApi.md +0 -118
- package/docs/ManagerClubCourtsApi.md +4 -14
- package/docs/ManagerClubSlotsApi.md +2 -8
- package/docs/ManagerClubSubscriptionsApi.md +7 -28
- package/docs/ManagerClubsApi.md +14 -41
- package/docs/ManagerSportsApi.md +55 -0
- package/docs/{CheckInPlayersRequest.md → ProfilePictureResponse.md} +5 -5
- package/docs/StaffClubAnalyticsApi.md +14 -14
- package/docs/StaffClubBookingsApi.md +5 -12
- package/docs/StaffClubsApi.md +57 -8
- package/docs/UpdateLevelBySportsRequestBody.md +20 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UserApi.md +0 -56
- package/docs/UserPaymentApi.md +55 -0
- package/docs/UserProfileApi.md +158 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingsApi.md +0 -68
- package/docs/StaffClubSettingsApi.md +0 -54
- package/docs/StaffSportsApi.md +0 -62
package/docs/ManagerClubsApi.md
CHANGED
|
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**addClubMember**](#addclubmember) | **PUT** /api/clubs/
|
|
8
|
-
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/
|
|
9
|
-
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/
|
|
10
|
-
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/
|
|
11
|
-
|[**
|
|
7
|
+
|[**addClubMember**](#addclubmember) | **PUT** /api/clubs/add_members | Ajouter un membre au club courant|
|
|
8
|
+
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/me | Récupérer les informations du club courant|
|
|
9
|
+
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | Récupérer les membres du club courant|
|
|
10
|
+
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | Récupérer les rôles du club courant|
|
|
11
|
+
|[**updateClubNoId**](#updateclubnoid) | **PUT** /api/clubs | Mettre à jour un club existant (club courant)|
|
|
12
12
|
|
|
13
13
|
# **addClubMember**
|
|
14
14
|
> AddClubMemberResponse addClubMember(addClubMemberRequest)
|
|
@@ -26,11 +26,9 @@ import {
|
|
|
26
26
|
const configuration = new Configuration();
|
|
27
27
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
28
28
|
|
|
29
|
-
let id: string; //ID du club (default to undefined)
|
|
30
29
|
let addClubMemberRequest: AddClubMemberRequest; //
|
|
31
30
|
|
|
32
31
|
const { status, data } = await apiInstance.addClubMember(
|
|
33
|
-
id,
|
|
34
32
|
addClubMemberRequest
|
|
35
33
|
);
|
|
36
34
|
```
|
|
@@ -40,7 +38,6 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
40
38
|
|Name | Type | Description | Notes|
|
|
41
39
|
|------------- | ------------- | ------------- | -------------|
|
|
42
40
|
| **addClubMemberRequest** | **AddClubMemberRequest**| | |
|
|
43
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
44
41
|
|
|
45
42
|
|
|
46
43
|
### Return type
|
|
@@ -82,18 +79,11 @@ import {
|
|
|
82
79
|
const configuration = new Configuration();
|
|
83
80
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const { status, data } = await apiInstance.getClubInfo(
|
|
88
|
-
id
|
|
89
|
-
);
|
|
82
|
+
const { status, data } = await apiInstance.getClubInfo();
|
|
90
83
|
```
|
|
91
84
|
|
|
92
85
|
### Parameters
|
|
93
|
-
|
|
94
|
-
|Name | Type | Description | Notes|
|
|
95
|
-
|------------- | ------------- | ------------- | -------------|
|
|
96
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
86
|
+
This endpoint does not have any parameters.
|
|
97
87
|
|
|
98
88
|
|
|
99
89
|
### Return type
|
|
@@ -134,18 +124,11 @@ import {
|
|
|
134
124
|
const configuration = new Configuration();
|
|
135
125
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
const { status, data } = await apiInstance.getClubMembers(
|
|
140
|
-
id
|
|
141
|
-
);
|
|
127
|
+
const { status, data } = await apiInstance.getClubMembers();
|
|
142
128
|
```
|
|
143
129
|
|
|
144
130
|
### Parameters
|
|
145
|
-
|
|
146
|
-
|Name | Type | Description | Notes|
|
|
147
|
-
|------------- | ------------- | ------------- | -------------|
|
|
148
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
131
|
+
This endpoint does not have any parameters.
|
|
149
132
|
|
|
150
133
|
|
|
151
134
|
### Return type
|
|
@@ -185,18 +168,11 @@ import {
|
|
|
185
168
|
const configuration = new Configuration();
|
|
186
169
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
187
170
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
const { status, data } = await apiInstance.getClubRoles(
|
|
191
|
-
id
|
|
192
|
-
);
|
|
171
|
+
const { status, data } = await apiInstance.getClubRoles();
|
|
193
172
|
```
|
|
194
173
|
|
|
195
174
|
### Parameters
|
|
196
|
-
|
|
197
|
-
|Name | Type | Description | Notes|
|
|
198
|
-
|------------- | ------------- | ------------- | -------------|
|
|
199
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
175
|
+
This endpoint does not have any parameters.
|
|
200
176
|
|
|
201
177
|
|
|
202
178
|
### Return type
|
|
@@ -221,8 +197,8 @@ const { status, data } = await apiInstance.getClubRoles(
|
|
|
221
197
|
|
|
222
198
|
[[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)
|
|
223
199
|
|
|
224
|
-
# **
|
|
225
|
-
> ClubResponse
|
|
200
|
+
# **updateClubNoId**
|
|
201
|
+
> ClubResponse updateClubNoId(updateClubRequest)
|
|
226
202
|
|
|
227
203
|
|
|
228
204
|
### Example
|
|
@@ -237,11 +213,9 @@ import {
|
|
|
237
213
|
const configuration = new Configuration();
|
|
238
214
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
239
215
|
|
|
240
|
-
let id: string; //ID du club (default to undefined)
|
|
241
216
|
let updateClubRequest: UpdateClubRequest; //
|
|
242
217
|
|
|
243
|
-
const { status, data } = await apiInstance.
|
|
244
|
-
id,
|
|
218
|
+
const { status, data } = await apiInstance.updateClubNoId(
|
|
245
219
|
updateClubRequest
|
|
246
220
|
);
|
|
247
221
|
```
|
|
@@ -251,7 +225,6 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
251
225
|
|Name | Type | Description | Notes|
|
|
252
226
|
|------------- | ------------- | ------------- | -------------|
|
|
253
227
|
| **updateClubRequest** | **UpdateClubRequest**| | |
|
|
254
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
255
228
|
|
|
256
229
|
|
|
257
230
|
### Return type
|
package/docs/ManagerSportsApi.md
CHANGED
|
@@ -4,9 +4,64 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createSport**](#createsport) | **POST** /api/sports | Créer un sport dans un club|
|
|
7
8
|
|[**deleteSport**](#deletesport) | **DELETE** /api/sports/{id} | Supprimer un sport|
|
|
8
9
|
|[**updateSport**](#updatesport) | **PUT** /api/sports/{id} | Mettre à jour un sport|
|
|
9
10
|
|
|
11
|
+
# **createSport**
|
|
12
|
+
> SportResponse createSport(createSportRequest)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
ManagerSportsApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
CreateSportRequest
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new ManagerSportsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let createSportRequest: CreateSportRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.createSport(
|
|
30
|
+
createSportRequest
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **createSportRequest** | **CreateSportRequest**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**SportResponse**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**201** | Sport créé avec succès | - |
|
|
59
|
+
|**400** | Requête invalide | - |
|
|
60
|
+
|**401** | Non autorisé | - |
|
|
61
|
+
|**500** | Erreur serveur interne | - |
|
|
62
|
+
|
|
63
|
+
[[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
|
+
|
|
10
65
|
# **deleteSport**
|
|
11
66
|
> DeleteSport200Response deleteSport()
|
|
12
67
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ProfilePictureResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**profilePicture** | **string** | URL de la photo de profil | [optional] [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { ProfilePictureResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: ProfilePictureResponse = {
|
|
16
|
+
profilePicture,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -4,8 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/
|
|
8
|
-
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/
|
|
7
|
+
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/analytics/lastSixMonthsTurnover | Get monthly turnover for the last six months (club courant)|
|
|
8
|
+
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/analytics/user-count | Get number of users subscribed to the club|
|
|
9
9
|
|
|
10
10
|
# **getLastSixMonthsTurnover**
|
|
11
11
|
> Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
|
|
@@ -22,18 +22,11 @@ import {
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
23
|
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { status, data } = await apiInstance.getLastSixMonthsTurnover(
|
|
28
|
-
id
|
|
29
|
-
);
|
|
25
|
+
const { status, data } = await apiInstance.getLastSixMonthsTurnover();
|
|
30
26
|
```
|
|
31
27
|
|
|
32
28
|
### Parameters
|
|
33
|
-
|
|
34
|
-
|Name | Type | Description | Notes|
|
|
35
|
-
|------------- | ------------- | ------------- | -------------|
|
|
36
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
29
|
+
This endpoint does not have any parameters.
|
|
37
30
|
|
|
38
31
|
|
|
39
32
|
### Return type
|
|
@@ -53,7 +46,7 @@ const { status, data } = await apiInstance.getLastSixMonthsTurnover(
|
|
|
53
46
|
### HTTP response details
|
|
54
47
|
| Status code | Description | Response headers |
|
|
55
48
|
|-------------|-------------|------------------|
|
|
56
|
-
|**200** |
|
|
49
|
+
|**200** | Turnover data for the last 6 months | - |
|
|
57
50
|
|**500** | Erreur serveur interne | - |
|
|
58
51
|
|
|
59
52
|
[[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)
|
|
@@ -73,11 +66,18 @@ import {
|
|
|
73
66
|
const configuration = new Configuration();
|
|
74
67
|
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
75
68
|
|
|
76
|
-
|
|
69
|
+
let id: string; //ID du club (optionnel, si absent, pris depuis le token) (optional) (default to undefined)
|
|
70
|
+
|
|
71
|
+
const { status, data } = await apiInstance.getNumberOfClubUsers(
|
|
72
|
+
id
|
|
73
|
+
);
|
|
77
74
|
```
|
|
78
75
|
|
|
79
76
|
### Parameters
|
|
80
|
-
|
|
77
|
+
|
|
78
|
+
|Name | Type | Description | Notes|
|
|
79
|
+
|------------- | ------------- | ------------- | -------------|
|
|
80
|
+
| **id** | [**string**] | ID du club (optionnel, si absent, pris depuis le token) | (optional) defaults to undefined|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
### Return type
|
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getTenNextBookings**](#gettennextbookings) | **GET** /api/
|
|
7
|
+
|[**getTenNextBookings**](#gettennextbookings) | **GET** /api/analytics/next-bookings | Get the ten next bookings for the current club|
|
|
8
8
|
|
|
9
9
|
# **getTenNextBookings**
|
|
10
|
-
> Array<
|
|
10
|
+
> Array<BookingPopulated> getTenNextBookings()
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
### Example
|
|
@@ -21,23 +21,16 @@ import {
|
|
|
21
21
|
const configuration = new Configuration();
|
|
22
22
|
const apiInstance = new StaffClubBookingsApi(configuration);
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const { status, data } = await apiInstance.getTenNextBookings(
|
|
27
|
-
id
|
|
28
|
-
);
|
|
24
|
+
const { status, data } = await apiInstance.getTenNextBookings();
|
|
29
25
|
```
|
|
30
26
|
|
|
31
27
|
### Parameters
|
|
32
|
-
|
|
33
|
-
|Name | Type | Description | Notes|
|
|
34
|
-
|------------- | ------------- | ------------- | -------------|
|
|
35
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
28
|
+
This endpoint does not have any parameters.
|
|
36
29
|
|
|
37
30
|
|
|
38
31
|
### Return type
|
|
39
32
|
|
|
40
|
-
**Array<
|
|
33
|
+
**Array<BookingPopulated>**
|
|
41
34
|
|
|
42
35
|
### Authorization
|
|
43
36
|
|
package/docs/StaffClubsApi.md
CHANGED
|
@@ -4,7 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/
|
|
7
|
+
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | Get current club information|
|
|
8
|
+
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
|
|
8
9
|
|
|
9
10
|
# **getClubInfos**
|
|
10
11
|
> GetClubInfos200Response getClubInfos()
|
|
@@ -21,10 +22,55 @@ import {
|
|
|
21
22
|
const configuration = new Configuration();
|
|
22
23
|
const apiInstance = new StaffClubsApi(configuration);
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
const { status, data } = await apiInstance.getClubInfos();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**GetClubInfos200Response**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Club information | - |
|
|
50
|
+
|**500** | Erreur serveur interne | - |
|
|
51
|
+
|
|
52
|
+
[[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)
|
|
53
|
+
|
|
54
|
+
# **getClubSettings**
|
|
55
|
+
> ClubSettings getClubSettings(getClubSettingsRequest)
|
|
25
56
|
|
|
26
|
-
|
|
27
|
-
|
|
57
|
+
|
|
58
|
+
### Example
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import {
|
|
62
|
+
StaffClubsApi,
|
|
63
|
+
Configuration,
|
|
64
|
+
GetClubSettingsRequest
|
|
65
|
+
} from '@tennac-booking/sdk';
|
|
66
|
+
|
|
67
|
+
const configuration = new Configuration();
|
|
68
|
+
const apiInstance = new StaffClubsApi(configuration);
|
|
69
|
+
|
|
70
|
+
let getClubSettingsRequest: GetClubSettingsRequest; //
|
|
71
|
+
|
|
72
|
+
const { status, data } = await apiInstance.getClubSettings(
|
|
73
|
+
getClubSettingsRequest
|
|
28
74
|
);
|
|
29
75
|
```
|
|
30
76
|
|
|
@@ -32,12 +78,12 @@ const { status, data } = await apiInstance.getClubInfos(
|
|
|
32
78
|
|
|
33
79
|
|Name | Type | Description | Notes|
|
|
34
80
|
|------------- | ------------- | ------------- | -------------|
|
|
35
|
-
| **
|
|
81
|
+
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
36
82
|
|
|
37
83
|
|
|
38
84
|
### Return type
|
|
39
85
|
|
|
40
|
-
**
|
|
86
|
+
**ClubSettings**
|
|
41
87
|
|
|
42
88
|
### Authorization
|
|
43
89
|
|
|
@@ -45,14 +91,17 @@ const { status, data } = await apiInstance.getClubInfos(
|
|
|
45
91
|
|
|
46
92
|
### HTTP request headers
|
|
47
93
|
|
|
48
|
-
- **Content-Type**:
|
|
94
|
+
- **Content-Type**: application/json
|
|
49
95
|
- **Accept**: application/json
|
|
50
96
|
|
|
51
97
|
|
|
52
98
|
### HTTP response details
|
|
53
99
|
| Status code | Description | Response headers |
|
|
54
100
|
|-------------|-------------|------------------|
|
|
55
|
-
|**200** |
|
|
101
|
+
|**200** | Paramètres du club | - |
|
|
102
|
+
|**401** | Non autorisé | - |
|
|
103
|
+
|**403** | Accès interdit | - |
|
|
104
|
+
|**404** | Paramètres non trouvés | - |
|
|
56
105
|
|**500** | Erreur serveur interne | - |
|
|
57
106
|
|
|
58
107
|
[[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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateLevelBySportsRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**levelBySports** | [**Array<LevelBySportsItem>**](LevelBySportsItem.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateLevelBySportsRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateLevelBySportsRequestBody = {
|
|
16
|
+
levelBySports,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateProfilePictureRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**profilePicture** | **string** | URL distante de la photo de profil (AWS/GCP) | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateProfilePictureRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateProfilePictureRequestBody = {
|
|
16
|
+
profilePicture,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserApi.md
CHANGED
|
@@ -4,64 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | Abonne l\'utilisateur connecté à un club|
|
|
8
7
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | Met à jour le Customer Stripe de l\'utilisateur|
|
|
9
8
|
|
|
10
|
-
# **subscribeToClub**
|
|
11
|
-
> SubscriptionResponse subscribeToClub(subscribeToClubRequestBody)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
UserApi,
|
|
19
|
-
Configuration,
|
|
20
|
-
SubscribeToClubRequestBody
|
|
21
|
-
} from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new UserApi(configuration);
|
|
25
|
-
|
|
26
|
-
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.subscribeToClub(
|
|
29
|
-
subscribeToClubRequestBody
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Return type
|
|
41
|
-
|
|
42
|
-
**SubscriptionResponse**
|
|
43
|
-
|
|
44
|
-
### Authorization
|
|
45
|
-
|
|
46
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
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
|
-
|**201** | Abonnement créé | - |
|
|
58
|
-
|**400** | Requête invalide | - |
|
|
59
|
-
|**401** | Non autorisé | - |
|
|
60
|
-
|**404** | Ressource non trouvée | - |
|
|
61
|
-
|**500** | Erreur serveur interne | - |
|
|
62
|
-
|
|
63
|
-
[[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
9
|
# **updateCustomer**
|
|
66
10
|
> UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
|
|
67
11
|
|
package/docs/UserPaymentApi.md
CHANGED
|
@@ -4,9 +4,64 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur|
|
|
7
8
|
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | Confirme la configuration d\'une méthode de paiement|
|
|
8
9
|
|[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /api/users/setupPaymentMethod | Configure une méthode de paiement pour un utilisateur|
|
|
9
10
|
|
|
11
|
+
# **addPaymentMethodSetup**
|
|
12
|
+
> AddPaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodSetupRequestBody)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
UserPaymentApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
AddPaymentMethodSetupRequestBody
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UserPaymentApi(configuration);
|
|
26
|
+
|
|
27
|
+
let addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
30
|
+
addPaymentMethodSetupRequestBody
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **addPaymentMethodSetupRequestBody** | **AddPaymentMethodSetupRequestBody**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**AddPaymentMethodSetupResponse**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | Méthode de paiement ajoutée | - |
|
|
59
|
+
|**400** | Requête invalide | - |
|
|
60
|
+
|**401** | Non autorisé | - |
|
|
61
|
+
|**500** | Erreur serveur interne | - |
|
|
62
|
+
|
|
63
|
+
[[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
|
+
|
|
10
65
|
# **confirmPaymentMethodSetup**
|
|
11
66
|
> ConfirmPaymentMethodSetupResponse confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody)
|
|
12
67
|
|