@tennac-booking/sdk 1.0.11 → 1.0.13
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 +71 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +111 -1
- package/api.ts +7434 -279
- package/common.ts +4 -4
- package/dist/api.d.ts +5034 -236
- package/dist/api.js +4004 -49
- package/dist/esm/api.d.ts +5034 -236
- package/dist/esm/api.js +3967 -48
- package/docs/ActiveClub.md +22 -0
- package/docs/ActiveClubListResponse.md +20 -0
- package/docs/AddClubMemberRequest.md +22 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/BookingResponse.md +28 -0
- package/docs/BookingsApi.md +120 -0
- package/docs/Club.md +46 -0
- package/docs/ClubCourtsApi.md +118 -0
- package/docs/ClubInfoResponse.md +46 -0
- package/docs/ClubListResponse.md +22 -0
- package/docs/ClubMember.md +34 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubResponse.md +46 -0
- package/docs/ClubRole.md +30 -0
- package/docs/ClubRoleResponse.md +30 -0
- package/docs/ClubRolesApi.md +268 -0
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +28 -0
- package/docs/ClubSettingsApi.md +227 -0
- package/docs/ClubSlotsApi.md +353 -0
- package/docs/ClubSportsApi.md +118 -0
- package/docs/ClubSubscriptionsApi.md +408 -0
- package/docs/ClubsApi.md +478 -0
- package/docs/CourtResponse.md +44 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CreateBookingRequest.md +28 -0
- package/docs/CreateClubRequest.md +38 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateCourtRequest.md +34 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/CreateSportRequest.md +22 -0
- package/docs/CreateSubscriptionPlanRequest.md +24 -0
- package/docs/DeleteClub200Response.md +20 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetAllSportsRequest.md +20 -0
- package/docs/GetClubSettingsRequest.md +20 -0
- package/docs/GetUserRolesResponse.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +28 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +30 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/PaymentMethod.md +11 -0
- package/docs/PlayerWithPaymentMethod.md +22 -0
- package/docs/PriceResponse.md +38 -0
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SlotResponse.md +40 -0
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +24 -0
- package/docs/SportResponse.md +34 -0
- package/docs/SportsApi.md +229 -0
- package/docs/SportsResponse.md +22 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionPlan.md +36 -0
- package/docs/SubscriptionPlanResponse.md +36 -0
- package/docs/SubscriptionResponse.md +36 -0
- package/docs/UpdateClubRequest.md +40 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateCustomerRequestBody.md +26 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponse.md +22 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateSportRequest.md +20 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UsersApi.md +491 -21
- package/package.json +1 -33
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# SportsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createSport**](#createsport) | **POST** /api/sports | Crée un sport dans un club|
|
|
8
|
+
|[**deleteSport**](#deletesport) | **DELETE** /api/sports/{id} | Supprime un sport|
|
|
9
|
+
|[**getAllSports**](#getallsports) | **GET** /api/sports | Récupère la liste des sports d’un club|
|
|
10
|
+
|[**updateSport**](#updatesport) | **PUT** /api/sports/{id} | Met à jour un sport|
|
|
11
|
+
|
|
12
|
+
# **createSport**
|
|
13
|
+
> Sport createSport(createSportRequest)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
SportsApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
CreateSportRequest
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new SportsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let createSportRequest: CreateSportRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createSport(
|
|
31
|
+
createSportRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **createSportRequest** | **CreateSportRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**Sport**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**201** | Sport créé | - |
|
|
60
|
+
|**400** | Requête invalide | - |
|
|
61
|
+
|**401** | Non autorisé | - |
|
|
62
|
+
|**500** | Erreur serveur interne | - |
|
|
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)
|
|
65
|
+
|
|
66
|
+
# **deleteSport**
|
|
67
|
+
> deleteSport()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
SportsApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@tennac-booking/sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new SportsApi(configuration);
|
|
80
|
+
|
|
81
|
+
let id: string; //ID du sport (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.deleteSport(
|
|
84
|
+
id
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **id** | [**string**] | ID du sport | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
void (empty response body)
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | Sport supprimé | - |
|
|
113
|
+
|**401** | Non autorisé | - |
|
|
114
|
+
|**404** | Sport non trouvé | - |
|
|
115
|
+
|**500** | Erreur serveur interne | - |
|
|
116
|
+
|
|
117
|
+
[[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)
|
|
118
|
+
|
|
119
|
+
# **getAllSports**
|
|
120
|
+
> Array<Sport> getAllSports(getAllSportsRequest)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Example
|
|
124
|
+
|
|
125
|
+
```typescript
|
|
126
|
+
import {
|
|
127
|
+
SportsApi,
|
|
128
|
+
Configuration,
|
|
129
|
+
GetAllSportsRequest
|
|
130
|
+
} from '@tennac-booking/sdk';
|
|
131
|
+
|
|
132
|
+
const configuration = new Configuration();
|
|
133
|
+
const apiInstance = new SportsApi(configuration);
|
|
134
|
+
|
|
135
|
+
let getAllSportsRequest: GetAllSportsRequest; //
|
|
136
|
+
|
|
137
|
+
const { status, data } = await apiInstance.getAllSports(
|
|
138
|
+
getAllSportsRequest
|
|
139
|
+
);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
|Name | Type | Description | Notes|
|
|
145
|
+
|------------- | ------------- | ------------- | -------------|
|
|
146
|
+
| **getAllSportsRequest** | **GetAllSportsRequest**| | |
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**Array<Sport>**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: application/json
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
| Status code | Description | Response headers |
|
|
165
|
+
|-------------|-------------|------------------|
|
|
166
|
+
|**200** | Liste des sports | - |
|
|
167
|
+
|**400** | Requête invalide | - |
|
|
168
|
+
|**401** | Non autorisé | - |
|
|
169
|
+
|**500** | Erreur serveur interne | - |
|
|
170
|
+
|
|
171
|
+
[[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)
|
|
172
|
+
|
|
173
|
+
# **updateSport**
|
|
174
|
+
> Sport updateSport(updateSportRequest)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Example
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
import {
|
|
181
|
+
SportsApi,
|
|
182
|
+
Configuration,
|
|
183
|
+
UpdateSportRequest
|
|
184
|
+
} from '@tennac-booking/sdk';
|
|
185
|
+
|
|
186
|
+
const configuration = new Configuration();
|
|
187
|
+
const apiInstance = new SportsApi(configuration);
|
|
188
|
+
|
|
189
|
+
let id: string; //ID du sport (default to undefined)
|
|
190
|
+
let updateSportRequest: UpdateSportRequest; //
|
|
191
|
+
|
|
192
|
+
const { status, data } = await apiInstance.updateSport(
|
|
193
|
+
id,
|
|
194
|
+
updateSportRequest
|
|
195
|
+
);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
|Name | Type | Description | Notes|
|
|
201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
202
|
+
| **updateSportRequest** | **UpdateSportRequest**| | |
|
|
203
|
+
| **id** | [**string**] | ID du sport | defaults to undefined|
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
**Sport**
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: application/json
|
|
217
|
+
- **Accept**: application/json
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### HTTP response details
|
|
221
|
+
| Status code | Description | Response headers |
|
|
222
|
+
|-------------|-------------|------------------|
|
|
223
|
+
|**200** | Sport mis à jour | - |
|
|
224
|
+
|**401** | Non autorisé | - |
|
|
225
|
+
|**404** | Sport non trouvé | - |
|
|
226
|
+
|**500** | Erreur serveur interne | - |
|
|
227
|
+
|
|
228
|
+
[[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)
|
|
229
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SportsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sports** | [**Array<SportResponse>**](SportResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SportsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: SportsResponse = {
|
|
17
|
+
sports,
|
|
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,22 @@
|
|
|
1
|
+
# SubscribeToClubRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | ID du club | [default to undefined]
|
|
9
|
+
**roleId** | **string** | ID du rôle dans le club | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SubscribeToClubRequestBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: SubscribeToClubRequestBody = {
|
|
17
|
+
clubId,
|
|
18
|
+
roleId,
|
|
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,36 @@
|
|
|
1
|
+
# SubscriptionPlan
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**stripeProductId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**prices** | [**Array<PriceResponse>**](PriceResponse.md) | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { SubscriptionPlan } from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const instance: SubscriptionPlan = {
|
|
24
|
+
id,
|
|
25
|
+
stripeProductId,
|
|
26
|
+
name,
|
|
27
|
+
description,
|
|
28
|
+
clubId,
|
|
29
|
+
isActive,
|
|
30
|
+
createdAt,
|
|
31
|
+
updatedAt,
|
|
32
|
+
prices,
|
|
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)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# SubscriptionPlanResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**stripeProductId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**prices** | [**Array<PriceResponse>**](PriceResponse.md) | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { SubscriptionPlanResponse } from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const instance: SubscriptionPlanResponse = {
|
|
24
|
+
id,
|
|
25
|
+
stripeProductId,
|
|
26
|
+
name,
|
|
27
|
+
description,
|
|
28
|
+
clubId,
|
|
29
|
+
isActive,
|
|
30
|
+
createdAt,
|
|
31
|
+
updatedAt,
|
|
32
|
+
prices,
|
|
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)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# SubscriptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID de l\'abonnement | [optional] [default to undefined]
|
|
9
|
+
**userId** | **string** | ID de l\'utilisateur | [optional] [default to undefined]
|
|
10
|
+
**clubId** | **string** | ID du club | [optional] [default to undefined]
|
|
11
|
+
**stripeSubscriptionId** | **string** | ID de l\'abonnement Stripe | [optional] [default to undefined]
|
|
12
|
+
**status** | **string** | Statut de l\'abonnement | [optional] [default to undefined]
|
|
13
|
+
**currentPeriodStart** | **string** | Début de la période courante | [optional] [default to undefined]
|
|
14
|
+
**currentPeriodEnd** | **string** | Fin de la période courante | [optional] [default to undefined]
|
|
15
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { SubscriptionResponse } from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const instance: SubscriptionResponse = {
|
|
24
|
+
id,
|
|
25
|
+
userId,
|
|
26
|
+
clubId,
|
|
27
|
+
stripeSubscriptionId,
|
|
28
|
+
status,
|
|
29
|
+
currentPeriodStart,
|
|
30
|
+
currentPeriodEnd,
|
|
31
|
+
createdAt,
|
|
32
|
+
updatedAt,
|
|
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)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# UpdateClubRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**zipCode** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**website** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { UpdateClubRequest } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: UpdateClubRequest = {
|
|
26
|
+
name,
|
|
27
|
+
address,
|
|
28
|
+
city,
|
|
29
|
+
zipCode,
|
|
30
|
+
country,
|
|
31
|
+
phone,
|
|
32
|
+
email,
|
|
33
|
+
website,
|
|
34
|
+
description,
|
|
35
|
+
logo,
|
|
36
|
+
isActive,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UpdateClubRoleRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nouveau nom du rôle (optionnel) | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | Nouvelle description du rôle (optionnel) | [optional] [default to undefined]
|
|
10
|
+
**permissions** | **Array<string>** | Nouvelle liste de permissions (optionnel) | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UpdateClubRoleRequestBody } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: UpdateClubRoleRequestBody = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
permissions,
|
|
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
|
+
# UpdateCustomerRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nom du client | [optional] [default to undefined]
|
|
9
|
+
**email** | **string** | Email du client | [optional] [default to undefined]
|
|
10
|
+
**phone** | **string** | Téléphone du client | [optional] [default to undefined]
|
|
11
|
+
**address** | [**UpdateCustomerRequestBodyAddress**](UpdateCustomerRequestBodyAddress.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UpdateCustomerRequestBody } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UpdateCustomerRequestBody = {
|
|
19
|
+
name,
|
|
20
|
+
email,
|
|
21
|
+
phone,
|
|
22
|
+
address,
|
|
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,30 @@
|
|
|
1
|
+
# UpdateCustomerRequestBodyAddress
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**line1** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**line2** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**state** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**postal_code** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { UpdateCustomerRequestBodyAddress } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: UpdateCustomerRequestBodyAddress = {
|
|
21
|
+
line1,
|
|
22
|
+
line2,
|
|
23
|
+
city,
|
|
24
|
+
state,
|
|
25
|
+
postal_code,
|
|
26
|
+
country,
|
|
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
|
+
# UpdateCustomerResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [optional] [default to undefined]
|
|
9
|
+
**customer** | [**UpdateCustomerResponseCustomer**](UpdateCustomerResponseCustomer.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateCustomerResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateCustomerResponse = {
|
|
17
|
+
message,
|
|
18
|
+
customer,
|
|
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,28 @@
|
|
|
1
|
+
# UpdateCustomerResponseCustomer
|
|
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
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**address** | **object** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UpdateCustomerResponseCustomer } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: UpdateCustomerResponseCustomer = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
email,
|
|
23
|
+
phone,
|
|
24
|
+
address,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateSportRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**key** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateSportRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateSportRequest = {
|
|
16
|
+
key,
|
|
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,24 @@
|
|
|
1
|
+
# UpdateSubscriptionPlanRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**metadata** | **object** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UpdateSubscriptionPlanRequest } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: UpdateSubscriptionPlanRequest = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
metadata,
|
|
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,22 @@
|
|
|
1
|
+
# UpdateSubscriptionPlanResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**plan** | [**SubscriptionPlanResponse**](SubscriptionPlanResponse.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateSubscriptionPlanResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateSubscriptionPlanResponse = {
|
|
17
|
+
message,
|
|
18
|
+
plan,
|
|
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)
|