@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,387 @@
|
|
|
1
|
+
# ManagerClubSubscriptionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/subscription-plans/{priceId}/archive-price | Archiver un prix (club courant)|
|
|
8
|
+
|[**createPriceForSubscriptionPlan**](#createpriceforsubscriptionplan) | **POST** /api/clubs/subscription-plans/{productId}/prices | Créer un nouveau prix pour un plan (club courant)|
|
|
9
|
+
|[**createSubscriptionPlanForClub**](#createsubscriptionplanforclub) | **POST** /api/clubs/subscription-plans | Créer un plan d\'abonnement pour le club courant|
|
|
10
|
+
|[**deleteSubscriptionPlanForClub**](#deletesubscriptionplanforclub) | **DELETE** /api/clubs/subscription-plans/{productId} | Supprimer un plan d\'abonnement (club courant)|
|
|
11
|
+
|[**restoreSubscriptionPlanForClub**](#restoresubscriptionplanforclub) | **POST** /api/clubs/subscription-plans/{productId}/restore | Réactiver un plan d\'abonnement (club courant)|
|
|
12
|
+
|[**restoreSubscriptionPriceForClub**](#restoresubscriptionpriceforclub) | **POST** /api/clubs/subscription-plans/{priceId}/restore-price | Réactiver un prix (club courant)|
|
|
13
|
+
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | Mettre à jour un plan d\'abonnement (club courant)|
|
|
14
|
+
|
|
15
|
+
# **archivePriceForSubscriptionPlan**
|
|
16
|
+
> PriceResponse archivePriceForSubscriptionPlan()
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
ManagerClubSubscriptionsApi,
|
|
24
|
+
Configuration
|
|
25
|
+
} from '@tennac-booking/sdk';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
29
|
+
|
|
30
|
+
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
33
|
+
priceId
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**PriceResponse**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Prix archivé avec succès | - |
|
|
62
|
+
|**400** | Requête invalide | - |
|
|
63
|
+
|**500** | Erreur serveur interne | - |
|
|
64
|
+
|
|
65
|
+
[[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)
|
|
66
|
+
|
|
67
|
+
# **createPriceForSubscriptionPlan**
|
|
68
|
+
> PriceResponse createPriceForSubscriptionPlan(createPriceRequest)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
ManagerClubSubscriptionsApi,
|
|
76
|
+
Configuration,
|
|
77
|
+
CreatePriceRequest
|
|
78
|
+
} from '@tennac-booking/sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
82
|
+
|
|
83
|
+
let productId: string; //ID du produit Stripe (default to undefined)
|
|
84
|
+
let createPriceRequest: CreatePriceRequest; //
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.createPriceForSubscriptionPlan(
|
|
87
|
+
productId,
|
|
88
|
+
createPriceRequest
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **createPriceRequest** | **CreatePriceRequest**| | |
|
|
97
|
+
| **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Return type
|
|
101
|
+
|
|
102
|
+
**PriceResponse**
|
|
103
|
+
|
|
104
|
+
### Authorization
|
|
105
|
+
|
|
106
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
107
|
+
|
|
108
|
+
### HTTP request headers
|
|
109
|
+
|
|
110
|
+
- **Content-Type**: application/json
|
|
111
|
+
- **Accept**: application/json
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### HTTP response details
|
|
115
|
+
| Status code | Description | Response headers |
|
|
116
|
+
|-------------|-------------|------------------|
|
|
117
|
+
|**201** | Prix créé avec succès | - |
|
|
118
|
+
|**400** | Requête invalide | - |
|
|
119
|
+
|**500** | Erreur serveur interne | - |
|
|
120
|
+
|
|
121
|
+
[[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)
|
|
122
|
+
|
|
123
|
+
# **createSubscriptionPlanForClub**
|
|
124
|
+
> SubscriptionPlanResponse createSubscriptionPlanForClub(createSubscriptionPlanRequest)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import {
|
|
131
|
+
ManagerClubSubscriptionsApi,
|
|
132
|
+
Configuration,
|
|
133
|
+
CreateSubscriptionPlanRequest
|
|
134
|
+
} from '@tennac-booking/sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
138
|
+
|
|
139
|
+
let createSubscriptionPlanRequest: CreateSubscriptionPlanRequest; //
|
|
140
|
+
|
|
141
|
+
const { status, data } = await apiInstance.createSubscriptionPlanForClub(
|
|
142
|
+
createSubscriptionPlanRequest
|
|
143
|
+
);
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
|Name | Type | Description | Notes|
|
|
149
|
+
|------------- | ------------- | ------------- | -------------|
|
|
150
|
+
| **createSubscriptionPlanRequest** | **CreateSubscriptionPlanRequest**| | |
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**SubscriptionPlanResponse**
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: application/json
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
|**201** | Plan d\'abonnement créé avec succès | - |
|
|
171
|
+
|**400** | Requête invalide | - |
|
|
172
|
+
|**500** | Erreur serveur interne | - |
|
|
173
|
+
|
|
174
|
+
[[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)
|
|
175
|
+
|
|
176
|
+
# **deleteSubscriptionPlanForClub**
|
|
177
|
+
> deleteSubscriptionPlanForClub()
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Example
|
|
181
|
+
|
|
182
|
+
```typescript
|
|
183
|
+
import {
|
|
184
|
+
ManagerClubSubscriptionsApi,
|
|
185
|
+
Configuration
|
|
186
|
+
} from '@tennac-booking/sdk';
|
|
187
|
+
|
|
188
|
+
const configuration = new Configuration();
|
|
189
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
190
|
+
|
|
191
|
+
let productId: string; //ID du produit Stripe (default to undefined)
|
|
192
|
+
|
|
193
|
+
const { status, data } = await apiInstance.deleteSubscriptionPlanForClub(
|
|
194
|
+
productId
|
|
195
|
+
);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
|Name | Type | Description | Notes|
|
|
201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
202
|
+
| **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Return type
|
|
206
|
+
|
|
207
|
+
void (empty response body)
|
|
208
|
+
|
|
209
|
+
### Authorization
|
|
210
|
+
|
|
211
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
212
|
+
|
|
213
|
+
### HTTP request headers
|
|
214
|
+
|
|
215
|
+
- **Content-Type**: Not defined
|
|
216
|
+
- **Accept**: application/json
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### HTTP response details
|
|
220
|
+
| Status code | Description | Response headers |
|
|
221
|
+
|-------------|-------------|------------------|
|
|
222
|
+
|**204** | Plan d\'abonnement supprimé avec succès | - |
|
|
223
|
+
|**400** | Requête invalide | - |
|
|
224
|
+
|**500** | Erreur serveur interne | - |
|
|
225
|
+
|
|
226
|
+
[[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)
|
|
227
|
+
|
|
228
|
+
# **restoreSubscriptionPlanForClub**
|
|
229
|
+
> RestoreSubscriptionPlanForClub200Response restoreSubscriptionPlanForClub()
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
### Example
|
|
233
|
+
|
|
234
|
+
```typescript
|
|
235
|
+
import {
|
|
236
|
+
ManagerClubSubscriptionsApi,
|
|
237
|
+
Configuration
|
|
238
|
+
} from '@tennac-booking/sdk';
|
|
239
|
+
|
|
240
|
+
const configuration = new Configuration();
|
|
241
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
242
|
+
|
|
243
|
+
let productId: string; //ID du produit Stripe (default to undefined)
|
|
244
|
+
|
|
245
|
+
const { status, data } = await apiInstance.restoreSubscriptionPlanForClub(
|
|
246
|
+
productId
|
|
247
|
+
);
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Parameters
|
|
251
|
+
|
|
252
|
+
|Name | Type | Description | Notes|
|
|
253
|
+
|------------- | ------------- | ------------- | -------------|
|
|
254
|
+
| **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Return type
|
|
258
|
+
|
|
259
|
+
**RestoreSubscriptionPlanForClub200Response**
|
|
260
|
+
|
|
261
|
+
### Authorization
|
|
262
|
+
|
|
263
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
264
|
+
|
|
265
|
+
### HTTP request headers
|
|
266
|
+
|
|
267
|
+
- **Content-Type**: Not defined
|
|
268
|
+
- **Accept**: application/json
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### HTTP response details
|
|
272
|
+
| Status code | Description | Response headers |
|
|
273
|
+
|-------------|-------------|------------------|
|
|
274
|
+
|**200** | Plan d\'abonnement réactivé avec succès | - |
|
|
275
|
+
|**400** | Requête invalide | - |
|
|
276
|
+
|**500** | Erreur serveur interne | - |
|
|
277
|
+
|
|
278
|
+
[[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)
|
|
279
|
+
|
|
280
|
+
# **restoreSubscriptionPriceForClub**
|
|
281
|
+
> PriceResponse restoreSubscriptionPriceForClub()
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Example
|
|
285
|
+
|
|
286
|
+
```typescript
|
|
287
|
+
import {
|
|
288
|
+
ManagerClubSubscriptionsApi,
|
|
289
|
+
Configuration
|
|
290
|
+
} from '@tennac-booking/sdk';
|
|
291
|
+
|
|
292
|
+
const configuration = new Configuration();
|
|
293
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
294
|
+
|
|
295
|
+
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
296
|
+
|
|
297
|
+
const { status, data } = await apiInstance.restoreSubscriptionPriceForClub(
|
|
298
|
+
priceId
|
|
299
|
+
);
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Parameters
|
|
303
|
+
|
|
304
|
+
|Name | Type | Description | Notes|
|
|
305
|
+
|------------- | ------------- | ------------- | -------------|
|
|
306
|
+
| **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### Return type
|
|
310
|
+
|
|
311
|
+
**PriceResponse**
|
|
312
|
+
|
|
313
|
+
### Authorization
|
|
314
|
+
|
|
315
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
316
|
+
|
|
317
|
+
### HTTP request headers
|
|
318
|
+
|
|
319
|
+
- **Content-Type**: Not defined
|
|
320
|
+
- **Accept**: application/json
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
### HTTP response details
|
|
324
|
+
| Status code | Description | Response headers |
|
|
325
|
+
|-------------|-------------|------------------|
|
|
326
|
+
|**200** | Prix réactivé avec succès | - |
|
|
327
|
+
|**400** | Requête invalide | - |
|
|
328
|
+
|**500** | Erreur serveur interne | - |
|
|
329
|
+
|
|
330
|
+
[[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)
|
|
331
|
+
|
|
332
|
+
# **updateSubscriptionPlanForClub**
|
|
333
|
+
> UpdateSubscriptionPlanResponse updateSubscriptionPlanForClub(updateSubscriptionPlanRequest)
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
### Example
|
|
337
|
+
|
|
338
|
+
```typescript
|
|
339
|
+
import {
|
|
340
|
+
ManagerClubSubscriptionsApi,
|
|
341
|
+
Configuration,
|
|
342
|
+
UpdateSubscriptionPlanRequest
|
|
343
|
+
} from '@tennac-booking/sdk';
|
|
344
|
+
|
|
345
|
+
const configuration = new Configuration();
|
|
346
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
347
|
+
|
|
348
|
+
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
349
|
+
let updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest; //
|
|
350
|
+
|
|
351
|
+
const { status, data } = await apiInstance.updateSubscriptionPlanForClub(
|
|
352
|
+
priceId,
|
|
353
|
+
updateSubscriptionPlanRequest
|
|
354
|
+
);
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
### Parameters
|
|
358
|
+
|
|
359
|
+
|Name | Type | Description | Notes|
|
|
360
|
+
|------------- | ------------- | ------------- | -------------|
|
|
361
|
+
| **updateSubscriptionPlanRequest** | **UpdateSubscriptionPlanRequest**| | |
|
|
362
|
+
| **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
### Return type
|
|
366
|
+
|
|
367
|
+
**UpdateSubscriptionPlanResponse**
|
|
368
|
+
|
|
369
|
+
### Authorization
|
|
370
|
+
|
|
371
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
372
|
+
|
|
373
|
+
### HTTP request headers
|
|
374
|
+
|
|
375
|
+
- **Content-Type**: application/json
|
|
376
|
+
- **Accept**: application/json
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### HTTP response details
|
|
380
|
+
| Status code | Description | Response headers |
|
|
381
|
+
|-------------|-------------|------------------|
|
|
382
|
+
|**200** | Plan d\'abonnement mis à jour avec succès | - |
|
|
383
|
+
|**400** | Requête invalide | - |
|
|
384
|
+
|**500** | Erreur serveur interne | - |
|
|
385
|
+
|
|
386
|
+
[[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)
|
|
387
|
+
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# ManagerClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
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
|
+
|
|
13
|
+
# **addClubMember**
|
|
14
|
+
> AddClubMemberResponse addClubMember(addClubMemberRequest)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ManagerClubsApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
AddClubMemberRequest
|
|
24
|
+
} from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
28
|
+
|
|
29
|
+
let addClubMemberRequest: AddClubMemberRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.addClubMember(
|
|
32
|
+
addClubMemberRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **addClubMemberRequest** | **AddClubMemberRequest**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**AddClubMemberResponse**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**201** | Membre ajouté avec succès | - |
|
|
61
|
+
|**400** | Requête invalide | - |
|
|
62
|
+
|**404** | Ressource non trouvée | - |
|
|
63
|
+
|**500** | Erreur serveur interne | - |
|
|
64
|
+
|
|
65
|
+
[[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)
|
|
66
|
+
|
|
67
|
+
# **getClubInfo**
|
|
68
|
+
> ClubInfoResponse getClubInfo()
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
ManagerClubsApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from '@tennac-booking/sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.getClubInfo();
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
This endpoint does not have any parameters.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Return type
|
|
90
|
+
|
|
91
|
+
**ClubInfoResponse**
|
|
92
|
+
|
|
93
|
+
### Authorization
|
|
94
|
+
|
|
95
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
96
|
+
|
|
97
|
+
### HTTP request headers
|
|
98
|
+
|
|
99
|
+
- **Content-Type**: Not defined
|
|
100
|
+
- **Accept**: application/json
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### HTTP response details
|
|
104
|
+
| Status code | Description | Response headers |
|
|
105
|
+
|-------------|-------------|------------------|
|
|
106
|
+
|**200** | Informations du club | - |
|
|
107
|
+
|**404** | Ressource non trouvée | - |
|
|
108
|
+
|**500** | Erreur serveur interne | - |
|
|
109
|
+
|
|
110
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
111
|
+
|
|
112
|
+
# **getClubMembers**
|
|
113
|
+
> ClubMembersResponse getClubMembers()
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Example
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
import {
|
|
120
|
+
ManagerClubsApi,
|
|
121
|
+
Configuration
|
|
122
|
+
} from '@tennac-booking/sdk';
|
|
123
|
+
|
|
124
|
+
const configuration = new Configuration();
|
|
125
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
126
|
+
|
|
127
|
+
const { status, data } = await apiInstance.getClubMembers();
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Parameters
|
|
131
|
+
This endpoint does not have any parameters.
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Return type
|
|
135
|
+
|
|
136
|
+
**ClubMembersResponse**
|
|
137
|
+
|
|
138
|
+
### Authorization
|
|
139
|
+
|
|
140
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
141
|
+
|
|
142
|
+
### HTTP request headers
|
|
143
|
+
|
|
144
|
+
- **Content-Type**: Not defined
|
|
145
|
+
- **Accept**: application/json
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### HTTP response details
|
|
149
|
+
| Status code | Description | Response headers |
|
|
150
|
+
|-------------|-------------|------------------|
|
|
151
|
+
|**200** | Liste des membres du club | - |
|
|
152
|
+
|**500** | Erreur serveur interne | - |
|
|
153
|
+
|
|
154
|
+
[[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)
|
|
155
|
+
|
|
156
|
+
# **getClubRoles**
|
|
157
|
+
> ClubRolesResponse getClubRoles()
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Example
|
|
161
|
+
|
|
162
|
+
```typescript
|
|
163
|
+
import {
|
|
164
|
+
ManagerClubsApi,
|
|
165
|
+
Configuration
|
|
166
|
+
} from '@tennac-booking/sdk';
|
|
167
|
+
|
|
168
|
+
const configuration = new Configuration();
|
|
169
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
170
|
+
|
|
171
|
+
const { status, data } = await apiInstance.getClubRoles();
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Parameters
|
|
175
|
+
This endpoint does not have any parameters.
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### Return type
|
|
179
|
+
|
|
180
|
+
**ClubRolesResponse**
|
|
181
|
+
|
|
182
|
+
### Authorization
|
|
183
|
+
|
|
184
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
185
|
+
|
|
186
|
+
### HTTP request headers
|
|
187
|
+
|
|
188
|
+
- **Content-Type**: Not defined
|
|
189
|
+
- **Accept**: application/json
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### HTTP response details
|
|
193
|
+
| Status code | Description | Response headers |
|
|
194
|
+
|-------------|-------------|------------------|
|
|
195
|
+
|**200** | Liste des rôles du club | - |
|
|
196
|
+
|**500** | Erreur serveur interne | - |
|
|
197
|
+
|
|
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)
|
|
199
|
+
|
|
200
|
+
# **updateClubNoId**
|
|
201
|
+
> ClubResponse updateClubNoId(updateClubRequest)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Example
|
|
205
|
+
|
|
206
|
+
```typescript
|
|
207
|
+
import {
|
|
208
|
+
ManagerClubsApi,
|
|
209
|
+
Configuration,
|
|
210
|
+
UpdateClubRequest
|
|
211
|
+
} from '@tennac-booking/sdk';
|
|
212
|
+
|
|
213
|
+
const configuration = new Configuration();
|
|
214
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
215
|
+
|
|
216
|
+
let updateClubRequest: UpdateClubRequest; //
|
|
217
|
+
|
|
218
|
+
const { status, data } = await apiInstance.updateClubNoId(
|
|
219
|
+
updateClubRequest
|
|
220
|
+
);
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Parameters
|
|
224
|
+
|
|
225
|
+
|Name | Type | Description | Notes|
|
|
226
|
+
|------------- | ------------- | ------------- | -------------|
|
|
227
|
+
| **updateClubRequest** | **UpdateClubRequest**| | |
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### Return type
|
|
231
|
+
|
|
232
|
+
**ClubResponse**
|
|
233
|
+
|
|
234
|
+
### Authorization
|
|
235
|
+
|
|
236
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
237
|
+
|
|
238
|
+
### HTTP request headers
|
|
239
|
+
|
|
240
|
+
- **Content-Type**: application/json
|
|
241
|
+
- **Accept**: application/json
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### HTTP response details
|
|
245
|
+
| Status code | Description | Response headers |
|
|
246
|
+
|-------------|-------------|------------------|
|
|
247
|
+
|**200** | Club mis à jour avec succès | - |
|
|
248
|
+
|**400** | Requête invalide | - |
|
|
249
|
+
|**404** | Ressource non trouvée | - |
|
|
250
|
+
|**500** | Erreur serveur interne | - |
|
|
251
|
+
|
|
252
|
+
[[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)
|
|
253
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ManagerEventResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**event** | [**Event**](Event.md) | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ManagerEventResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ManagerEventResponse = {
|
|
17
|
+
event,
|
|
18
|
+
message,
|
|
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)
|