@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,394 @@
|
|
|
1
|
+
# AdminClubSubscriptionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**archivePriceForSubscriptionPlanAdmin**](#archivepriceforsubscriptionplanadmin) | **DELETE** /api/clubs/{id}/subscription-plans/{priceId}/archive-price | Archiver un prix (Admin)|
|
|
8
|
+
|[**createPriceForSubscriptionPlanAdmin**](#createpriceforsubscriptionplanadmin) | **POST** /api/clubs/{id}/subscription-plans/{productId}/prices | Créer un prix pour un plan (Admin)|
|
|
9
|
+
|[**createSubscriptionPlanForClubAdmin**](#createsubscriptionplanforclubadmin) | **POST** /api/clubs/{id}/subscription-plans | Créer un plan d\'abonnement pour un club (Admin)|
|
|
10
|
+
|[**deleteSubscriptionPlanForClubAdmin**](#deletesubscriptionplanforclubadmin) | **DELETE** /api/clubs/{id}/subscription-plans/{productId} | Supprimer un plan (Admin)|
|
|
11
|
+
|[**restoreSubscriptionPlanForClubAdmin**](#restoresubscriptionplanforclubadmin) | **POST** /api/clubs/{id}/subscription-plans/{productId}/restore | Réactiver un plan (Admin)|
|
|
12
|
+
|[**restoreSubscriptionPriceForClubAdmin**](#restoresubscriptionpriceforclubadmin) | **POST** /api/clubs/{id}/subscription-plans/{priceId}/restore-price | Réactiver un prix (Admin)|
|
|
13
|
+
|[**updateSubscriptionPlanForClubAdmin**](#updatesubscriptionplanforclubadmin) | **PUT** /api/clubs/{id}/subscription-plans/{priceId} | Mettre à jour un plan (Admin)|
|
|
14
|
+
|
|
15
|
+
# **archivePriceForSubscriptionPlanAdmin**
|
|
16
|
+
> archivePriceForSubscriptionPlanAdmin()
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
AdminClubSubscriptionsApi,
|
|
24
|
+
Configuration
|
|
25
|
+
} from '@tennac-booking/sdk';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new AdminClubSubscriptionsApi(configuration);
|
|
29
|
+
|
|
30
|
+
let id: string; // (default to undefined)
|
|
31
|
+
let priceId: string; // (default to undefined)
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.archivePriceForSubscriptionPlanAdmin(
|
|
34
|
+
id,
|
|
35
|
+
priceId
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
44
|
+
| **priceId** | [**string**] | | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
void (empty response body)
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: Not defined
|
|
58
|
+
- **Accept**: Not defined
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | Archivé | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **createPriceForSubscriptionPlanAdmin**
|
|
69
|
+
> PriceResponse createPriceForSubscriptionPlanAdmin(createPriceRequest)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
AdminClubSubscriptionsApi,
|
|
77
|
+
Configuration,
|
|
78
|
+
CreatePriceRequest
|
|
79
|
+
} from '@tennac-booking/sdk';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new AdminClubSubscriptionsApi(configuration);
|
|
83
|
+
|
|
84
|
+
let id: string; // (default to undefined)
|
|
85
|
+
let productId: string; // (default to undefined)
|
|
86
|
+
let createPriceRequest: CreatePriceRequest; //
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.createPriceForSubscriptionPlanAdmin(
|
|
89
|
+
id,
|
|
90
|
+
productId,
|
|
91
|
+
createPriceRequest
|
|
92
|
+
);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
|Name | Type | Description | Notes|
|
|
98
|
+
|------------- | ------------- | ------------- | -------------|
|
|
99
|
+
| **createPriceRequest** | **CreatePriceRequest**| | |
|
|
100
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
101
|
+
| **productId** | [**string**] | | defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**PriceResponse**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: application/json
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**201** | Prix créé | - |
|
|
122
|
+
|
|
123
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
124
|
+
|
|
125
|
+
# **createSubscriptionPlanForClubAdmin**
|
|
126
|
+
> SubscriptionPlanResponse createSubscriptionPlanForClubAdmin(createSubscriptionPlanRequest)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Example
|
|
130
|
+
|
|
131
|
+
```typescript
|
|
132
|
+
import {
|
|
133
|
+
AdminClubSubscriptionsApi,
|
|
134
|
+
Configuration,
|
|
135
|
+
CreateSubscriptionPlanRequest
|
|
136
|
+
} from '@tennac-booking/sdk';
|
|
137
|
+
|
|
138
|
+
const configuration = new Configuration();
|
|
139
|
+
const apiInstance = new AdminClubSubscriptionsApi(configuration);
|
|
140
|
+
|
|
141
|
+
let id: string; // (default to undefined)
|
|
142
|
+
let createSubscriptionPlanRequest: CreateSubscriptionPlanRequest; //
|
|
143
|
+
|
|
144
|
+
const { status, data } = await apiInstance.createSubscriptionPlanForClubAdmin(
|
|
145
|
+
id,
|
|
146
|
+
createSubscriptionPlanRequest
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **createSubscriptionPlanRequest** | **CreateSubscriptionPlanRequest**| | |
|
|
155
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Return type
|
|
159
|
+
|
|
160
|
+
**SubscriptionPlanResponse**
|
|
161
|
+
|
|
162
|
+
### Authorization
|
|
163
|
+
|
|
164
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
165
|
+
|
|
166
|
+
### HTTP request headers
|
|
167
|
+
|
|
168
|
+
- **Content-Type**: application/json
|
|
169
|
+
- **Accept**: application/json
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### HTTP response details
|
|
173
|
+
| Status code | Description | Response headers |
|
|
174
|
+
|-------------|-------------|------------------|
|
|
175
|
+
|**201** | Créé | - |
|
|
176
|
+
|
|
177
|
+
[[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)
|
|
178
|
+
|
|
179
|
+
# **deleteSubscriptionPlanForClubAdmin**
|
|
180
|
+
> deleteSubscriptionPlanForClubAdmin()
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Example
|
|
184
|
+
|
|
185
|
+
```typescript
|
|
186
|
+
import {
|
|
187
|
+
AdminClubSubscriptionsApi,
|
|
188
|
+
Configuration
|
|
189
|
+
} from '@tennac-booking/sdk';
|
|
190
|
+
|
|
191
|
+
const configuration = new Configuration();
|
|
192
|
+
const apiInstance = new AdminClubSubscriptionsApi(configuration);
|
|
193
|
+
|
|
194
|
+
let id: string; // (default to undefined)
|
|
195
|
+
let productId: string; // (default to undefined)
|
|
196
|
+
|
|
197
|
+
const { status, data } = await apiInstance.deleteSubscriptionPlanForClubAdmin(
|
|
198
|
+
id,
|
|
199
|
+
productId
|
|
200
|
+
);
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
|Name | Type | Description | Notes|
|
|
206
|
+
|------------- | ------------- | ------------- | -------------|
|
|
207
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
208
|
+
| **productId** | [**string**] | | defaults to undefined|
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
void (empty response body)
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
218
|
+
|
|
219
|
+
### HTTP request headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: Not defined
|
|
222
|
+
- **Accept**: Not defined
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### HTTP response details
|
|
226
|
+
| Status code | Description | Response headers |
|
|
227
|
+
|-------------|-------------|------------------|
|
|
228
|
+
|**204** | Supprimé | - |
|
|
229
|
+
|
|
230
|
+
[[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)
|
|
231
|
+
|
|
232
|
+
# **restoreSubscriptionPlanForClubAdmin**
|
|
233
|
+
> restoreSubscriptionPlanForClubAdmin()
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### Example
|
|
237
|
+
|
|
238
|
+
```typescript
|
|
239
|
+
import {
|
|
240
|
+
AdminClubSubscriptionsApi,
|
|
241
|
+
Configuration
|
|
242
|
+
} from '@tennac-booking/sdk';
|
|
243
|
+
|
|
244
|
+
const configuration = new Configuration();
|
|
245
|
+
const apiInstance = new AdminClubSubscriptionsApi(configuration);
|
|
246
|
+
|
|
247
|
+
let id: string; // (default to undefined)
|
|
248
|
+
let productId: string; // (default to undefined)
|
|
249
|
+
|
|
250
|
+
const { status, data } = await apiInstance.restoreSubscriptionPlanForClubAdmin(
|
|
251
|
+
id,
|
|
252
|
+
productId
|
|
253
|
+
);
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Parameters
|
|
257
|
+
|
|
258
|
+
|Name | Type | Description | Notes|
|
|
259
|
+
|------------- | ------------- | ------------- | -------------|
|
|
260
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
261
|
+
| **productId** | [**string**] | | defaults to undefined|
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Return type
|
|
265
|
+
|
|
266
|
+
void (empty response body)
|
|
267
|
+
|
|
268
|
+
### Authorization
|
|
269
|
+
|
|
270
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
271
|
+
|
|
272
|
+
### HTTP request headers
|
|
273
|
+
|
|
274
|
+
- **Content-Type**: Not defined
|
|
275
|
+
- **Accept**: Not defined
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### HTTP response details
|
|
279
|
+
| Status code | Description | Response headers |
|
|
280
|
+
|-------------|-------------|------------------|
|
|
281
|
+
|**200** | Réactivé | - |
|
|
282
|
+
|
|
283
|
+
[[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)
|
|
284
|
+
|
|
285
|
+
# **restoreSubscriptionPriceForClubAdmin**
|
|
286
|
+
> restoreSubscriptionPriceForClubAdmin()
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Example
|
|
290
|
+
|
|
291
|
+
```typescript
|
|
292
|
+
import {
|
|
293
|
+
AdminClubSubscriptionsApi,
|
|
294
|
+
Configuration
|
|
295
|
+
} from '@tennac-booking/sdk';
|
|
296
|
+
|
|
297
|
+
const configuration = new Configuration();
|
|
298
|
+
const apiInstance = new AdminClubSubscriptionsApi(configuration);
|
|
299
|
+
|
|
300
|
+
let id: string; // (default to undefined)
|
|
301
|
+
let priceId: string; // (default to undefined)
|
|
302
|
+
|
|
303
|
+
const { status, data } = await apiInstance.restoreSubscriptionPriceForClubAdmin(
|
|
304
|
+
id,
|
|
305
|
+
priceId
|
|
306
|
+
);
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### Parameters
|
|
310
|
+
|
|
311
|
+
|Name | Type | Description | Notes|
|
|
312
|
+
|------------- | ------------- | ------------- | -------------|
|
|
313
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
314
|
+
| **priceId** | [**string**] | | defaults to undefined|
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### Return type
|
|
318
|
+
|
|
319
|
+
void (empty response body)
|
|
320
|
+
|
|
321
|
+
### Authorization
|
|
322
|
+
|
|
323
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
324
|
+
|
|
325
|
+
### HTTP request headers
|
|
326
|
+
|
|
327
|
+
- **Content-Type**: Not defined
|
|
328
|
+
- **Accept**: Not defined
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
### HTTP response details
|
|
332
|
+
| Status code | Description | Response headers |
|
|
333
|
+
|-------------|-------------|------------------|
|
|
334
|
+
|**200** | Réactivé | - |
|
|
335
|
+
|
|
336
|
+
[[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)
|
|
337
|
+
|
|
338
|
+
# **updateSubscriptionPlanForClubAdmin**
|
|
339
|
+
> updateSubscriptionPlanForClubAdmin(updateSubscriptionPlanRequest)
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
### Example
|
|
343
|
+
|
|
344
|
+
```typescript
|
|
345
|
+
import {
|
|
346
|
+
AdminClubSubscriptionsApi,
|
|
347
|
+
Configuration,
|
|
348
|
+
UpdateSubscriptionPlanRequest
|
|
349
|
+
} from '@tennac-booking/sdk';
|
|
350
|
+
|
|
351
|
+
const configuration = new Configuration();
|
|
352
|
+
const apiInstance = new AdminClubSubscriptionsApi(configuration);
|
|
353
|
+
|
|
354
|
+
let id: string; // (default to undefined)
|
|
355
|
+
let priceId: string; // (default to undefined)
|
|
356
|
+
let updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest; //
|
|
357
|
+
|
|
358
|
+
const { status, data } = await apiInstance.updateSubscriptionPlanForClubAdmin(
|
|
359
|
+
id,
|
|
360
|
+
priceId,
|
|
361
|
+
updateSubscriptionPlanRequest
|
|
362
|
+
);
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### Parameters
|
|
366
|
+
|
|
367
|
+
|Name | Type | Description | Notes|
|
|
368
|
+
|------------- | ------------- | ------------- | -------------|
|
|
369
|
+
| **updateSubscriptionPlanRequest** | **UpdateSubscriptionPlanRequest**| | |
|
|
370
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
371
|
+
| **priceId** | [**string**] | | defaults to undefined|
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
### Return type
|
|
375
|
+
|
|
376
|
+
void (empty response body)
|
|
377
|
+
|
|
378
|
+
### Authorization
|
|
379
|
+
|
|
380
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
381
|
+
|
|
382
|
+
### HTTP request headers
|
|
383
|
+
|
|
384
|
+
- **Content-Type**: application/json
|
|
385
|
+
- **Accept**: Not defined
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
### HTTP response details
|
|
389
|
+
| Status code | Description | Response headers |
|
|
390
|
+
|-------------|-------------|------------------|
|
|
391
|
+
|**200** | Mis à jour | - |
|
|
392
|
+
|
|
393
|
+
[[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)
|
|
394
|
+
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# AdminClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteClub**](#deleteclub) | **DELETE** /api/clubs/{id} | Supprimer un club (Admin uniquement)|
|
|
8
|
+
|[**getClubInfosAdmin**](#getclubinfosadmin) | **GET** /api/clubs/{id}/infos | Obtenir les infos d\'un club (Admin)|
|
|
9
|
+
|[**updateClubInfosAdmin**](#updateclubinfosadmin) | **PUT** /api/clubs/{id}/infos | Mettre à jour les infos d\'un club (Admin)|
|
|
10
|
+
|
|
11
|
+
# **deleteClub**
|
|
12
|
+
> DeleteClub200Response deleteClub()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
AdminClubsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AdminClubsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let id: string; //ID du club (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.deleteClub(
|
|
29
|
+
id
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**DeleteClub200Response**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Club supprimé avec succès | - |
|
|
58
|
+
|**401** | Non autorisé | - |
|
|
59
|
+
|**404** | Ressource non trouvée | - |
|
|
60
|
+
|**500** | Erreur serveur interne | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **getClubInfosAdmin**
|
|
65
|
+
> object getClubInfosAdmin()
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import {
|
|
72
|
+
AdminClubsApi,
|
|
73
|
+
Configuration
|
|
74
|
+
} from '@tennac-booking/sdk';
|
|
75
|
+
|
|
76
|
+
const configuration = new Configuration();
|
|
77
|
+
const apiInstance = new AdminClubsApi(configuration);
|
|
78
|
+
|
|
79
|
+
let id: string; // (default to undefined)
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.getClubInfosAdmin(
|
|
82
|
+
id
|
|
83
|
+
);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Parameters
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Return type
|
|
94
|
+
|
|
95
|
+
**object**
|
|
96
|
+
|
|
97
|
+
### Authorization
|
|
98
|
+
|
|
99
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
100
|
+
|
|
101
|
+
### HTTP request headers
|
|
102
|
+
|
|
103
|
+
- **Content-Type**: Not defined
|
|
104
|
+
- **Accept**: application/json
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### HTTP response details
|
|
108
|
+
| Status code | Description | Response headers |
|
|
109
|
+
|-------------|-------------|------------------|
|
|
110
|
+
|**200** | Infos du club | - |
|
|
111
|
+
|**401** | Non autorisé | - |
|
|
112
|
+
|**500** | Erreur serveur interne | - |
|
|
113
|
+
|
|
114
|
+
[[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)
|
|
115
|
+
|
|
116
|
+
# **updateClubInfosAdmin**
|
|
117
|
+
> object updateClubInfosAdmin(body)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Example
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {
|
|
124
|
+
AdminClubsApi,
|
|
125
|
+
Configuration
|
|
126
|
+
} from '@tennac-booking/sdk';
|
|
127
|
+
|
|
128
|
+
const configuration = new Configuration();
|
|
129
|
+
const apiInstance = new AdminClubsApi(configuration);
|
|
130
|
+
|
|
131
|
+
let id: string; // (default to undefined)
|
|
132
|
+
let body: object; //
|
|
133
|
+
|
|
134
|
+
const { status, data } = await apiInstance.updateClubInfosAdmin(
|
|
135
|
+
id,
|
|
136
|
+
body
|
|
137
|
+
);
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
|Name | Type | Description | Notes|
|
|
143
|
+
|------------- | ------------- | ------------- | -------------|
|
|
144
|
+
| **body** | **object**| | |
|
|
145
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### Return type
|
|
149
|
+
|
|
150
|
+
**object**
|
|
151
|
+
|
|
152
|
+
### Authorization
|
|
153
|
+
|
|
154
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
155
|
+
|
|
156
|
+
### HTTP request headers
|
|
157
|
+
|
|
158
|
+
- **Content-Type**: application/json
|
|
159
|
+
- **Accept**: application/json
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### HTTP response details
|
|
163
|
+
| Status code | Description | Response headers |
|
|
164
|
+
|-------------|-------------|------------------|
|
|
165
|
+
|**200** | Infos mises à jour | - |
|
|
166
|
+
|**401** | Non autorisé | - |
|
|
167
|
+
|**500** | Erreur serveur interne | - |
|
|
168
|
+
|
|
169
|
+
[[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)
|
|
170
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ApiErrorResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**error** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ApiErrorResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ApiErrorResponse = {
|
|
17
|
+
message,
|
|
18
|
+
error,
|
|
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
|
+
# BlockSlotResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**slot** | [**Slot**](Slot.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BlockSlotResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BlockSlotResponse = {
|
|
17
|
+
message,
|
|
18
|
+
slot,
|
|
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/Booking.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Booking
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**userId** | **string** | | [default to undefined]
|
|
9
|
+
**playersIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
11
|
+
**stripeStatus** | [**StripeStatus**](StripeStatus.md) | | [default to undefined]
|
|
12
|
+
**stripePaymentIntentId** | **string** | | [default to undefined]
|
|
13
|
+
**totalPrice** | **number** | | [default to undefined]
|
|
14
|
+
**slotId** | **string** | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { Booking } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: Booking = {
|
|
22
|
+
userId,
|
|
23
|
+
playersIds,
|
|
24
|
+
status,
|
|
25
|
+
stripeStatus,
|
|
26
|
+
stripePaymentIntentId,
|
|
27
|
+
totalPrice,
|
|
28
|
+
slotId,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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
|
+
# BookingPaymentStatusResponsePaymentStatusInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**playerName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**playerEmail** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**paymentMethod** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**accepted** | **boolean** | | [optional] [default to undefined]
|
|
15
|
+
**hasPaid** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
**needsCheckIn** | **boolean** | Indique si le joueur a besoin d\'être enregistré (paiement sur place en attente) | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { BookingPaymentStatusResponsePaymentStatusInner } from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const instance: BookingPaymentStatusResponsePaymentStatusInner = {
|
|
24
|
+
playerId,
|
|
25
|
+
playerName,
|
|
26
|
+
playerEmail,
|
|
27
|
+
amount,
|
|
28
|
+
paymentMethod,
|
|
29
|
+
status,
|
|
30
|
+
accepted,
|
|
31
|
+
hasPaid,
|
|
32
|
+
needsCheckIn,
|
|
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,22 @@
|
|
|
1
|
+
# BookingPopulatedPaymentByPlayersStatusInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user** | [**BookingPopulatedUserId**](BookingPopulatedUserId.md) | | [optional] [default to undefined]
|
|
9
|
+
**invoices** | [**Array<BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner>**](BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingPopulatedPaymentByPlayersStatusInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingPopulatedPaymentByPlayersStatusInner = {
|
|
17
|
+
user,
|
|
18
|
+
invoices,
|
|
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)
|