@tennac-booking/sdk 1.0.116 → 1.0.117
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 +3 -0
- package/README.md +5 -2
- package/api.ts +211 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +173 -1
- package/dist/api.js +68 -1
- 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 +173 -1
- package/dist/esm/api.js +68 -1
- 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/{DeleteClubRole200Response.md → CheckTeamNameAvailability200Response.md} +5 -5
- package/docs/EstimateEventPrice200Response.md +6 -0
- package/docs/EstimateEventPriceRequest.md +4 -0
- package/docs/EventsApi.md +57 -0
- package/docs/JoinEventRequest.md +2 -0
- package/docs/JoinEventResponse.md +14 -0
- package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveClub.md +0 -24
- package/docs/ActiveClubListResponse.md +0 -20
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddFavoriteClubRequestBody.md +0 -20
- package/docs/AddFavoritePlayerRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/AdminClubAnalyticsApi.md +0 -249
- package/docs/AdminClubSlotsApi.md +0 -182
- package/docs/AdminClubSubscriptionsApi.md +0 -394
- package/docs/AdminClubsApi.md +0 -170
- package/docs/ApiErrorResponse.md +0 -22
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/Booking.md +0 -32
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
- package/docs/BookingPopulatedUserId.md +0 -24
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/Club.md +0 -46
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubListResponse.md +0 -22
- package/docs/ClubMember.md +0 -34
- package/docs/ClubMembersResponse.md +0 -22
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -40
- package/docs/ClubsResponse.md +0 -22
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/Court.md +0 -32
- package/docs/CourtsResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreateClubSettingsRequest.md +0 -28
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/DeleteClub200Response.md +0 -20
- package/docs/DeleteClubSettingsRequest.md +0 -20
- package/docs/DeleteEvent200Response.md +0 -20
- package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
- package/docs/DeleteSlotsResponse.md +0 -20
- package/docs/DeleteSport200Response.md +0 -20
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/FavoriteClubItem.md +0 -26
- package/docs/FavoriteClubResponse.md +0 -22
- package/docs/FavoritePlayerPublic.md +0 -28
- package/docs/FavoritePlayersIdsResponse.md +0 -22
- package/docs/FrequentlyPlayedWithItem.md +0 -28
- package/docs/FrequentlyVisitedClubItem.md +0 -24
- package/docs/GenerateSlotsResponse.md +0 -20
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetNumberOfClubUsers200Response.md +0 -20
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserRolesResponseRolesInner.md +0 -26
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/GoogleSignInResponse.md +0 -24
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/InvoicesResponse.md +0 -22
- package/docs/InvoicesResponseInvoicesInner.md +0 -34
- package/docs/InvoicesResponsePagination.md +0 -26
- package/docs/LevelBySportsItem.md +0 -22
- package/docs/ManagerBookingsApi.md +0 -125
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubCourtsApi.md +0 -108
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerClubsApi.md +0 -253
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/ManagerEventsApi.md +0 -227
- package/docs/ManagerSportsApi.md +0 -174
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PriceResponse.md +0 -32
- package/docs/ProfileVisibilityResponse.md +0 -20
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/PublicClubUserLevelBySportsInner.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SetupPaymentMethodRequestBody.md +0 -20
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/SlotsResponse.md +0 -22
- package/docs/Sport.md +0 -24
- package/docs/SportsResponse.md +0 -22
- package/docs/StaffClubAnalyticsApi.md +0 -104
- package/docs/StaffClubBookingsApi.md +0 -52
- package/docs/StaffClubsApi.md +0 -100
- package/docs/StaffEventResponse.md +0 -20
- package/docs/StaffEventsApi.md +0 -54
- package/docs/StaffProfileApi.md +0 -54
- package/docs/StripeStatus.md +0 -16
- package/docs/SubscribeToClubRequestBody.md +0 -22
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateClubSettingsRequest.md +0 -28
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/UpdateUserCityRequestBody.md +0 -20
- package/docs/UpdateUserDescriptionRequestBody.md +0 -20
- package/docs/User.md +0 -40
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserBookingsApi.md +0 -120
- package/docs/UserCityResponse.md +0 -20
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -53
- package/docs/UserDescriptionResponse.md +0 -20
- package/docs/UserFavoriteClubsResponse.md +0 -20
- package/docs/UserPaymentApi.md +0 -176
- package/docs/UserProfileApi.md +0 -1201
- package/docs/UserResponse.md +0 -38
- package/docs/UserSubscriptionsApi.md +0 -222
- package/docs/UsersResponse.md +0 -22
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
# AdminClubSlotsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**deleteSlotsByClubInRangeByID**](#deleteslotsbyclubinrangebyid) | **DELETE** /api/clubs/{id}/slots | Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)|
|
|
8
|
-
|[**generateSlotsForNextThreeWeeks**](#generateslotsfornextthreeweeks) | **POST** /api/clubs/{id}/generate-slots | Générer les créneaux pour les 3 semaines à venir (Admin uniquement)|
|
|
9
|
-
|[**getSlotsByClubAdmin**](#getslotsbyclubadmin) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux d\'un club (Admin)|
|
|
10
|
-
|
|
11
|
-
# **deleteSlotsByClubInRangeByID**
|
|
12
|
-
> DeleteSlotsResponse deleteSlotsByClubInRangeByID()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
AdminClubSlotsApi,
|
|
20
|
-
Configuration
|
|
21
|
-
} from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new AdminClubSlotsApi(configuration);
|
|
25
|
-
|
|
26
|
-
let id: string; //ID du club (default to undefined)
|
|
27
|
-
let start: string; //Date de début (format ISO) (default to undefined)
|
|
28
|
-
let end: string; //Date de fin (format ISO) (default to undefined)
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.deleteSlotsByClubInRangeByID(
|
|
31
|
-
id,
|
|
32
|
-
start,
|
|
33
|
-
end
|
|
34
|
-
);
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Parameters
|
|
38
|
-
|
|
39
|
-
|Name | Type | Description | Notes|
|
|
40
|
-
|------------- | ------------- | ------------- | -------------|
|
|
41
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
42
|
-
| **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
|
|
43
|
-
| **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Return type
|
|
47
|
-
|
|
48
|
-
**DeleteSlotsResponse**
|
|
49
|
-
|
|
50
|
-
### Authorization
|
|
51
|
-
|
|
52
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
53
|
-
|
|
54
|
-
### HTTP request headers
|
|
55
|
-
|
|
56
|
-
- **Content-Type**: Not defined
|
|
57
|
-
- **Accept**: application/json
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### HTTP response details
|
|
61
|
-
| Status code | Description | Response headers |
|
|
62
|
-
|-------------|-------------|------------------|
|
|
63
|
-
|**200** | Créneaux supprimés avec succès | - |
|
|
64
|
-
|**400** | Requête invalide | - |
|
|
65
|
-
|**401** | Non autorisé | - |
|
|
66
|
-
|**500** | Erreur serveur interne | - |
|
|
67
|
-
|
|
68
|
-
[[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)
|
|
69
|
-
|
|
70
|
-
# **generateSlotsForNextThreeWeeks**
|
|
71
|
-
> GenerateSlotsResponse generateSlotsForNextThreeWeeks()
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Example
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
import {
|
|
78
|
-
AdminClubSlotsApi,
|
|
79
|
-
Configuration
|
|
80
|
-
} from '@tennac-booking/sdk';
|
|
81
|
-
|
|
82
|
-
const configuration = new Configuration();
|
|
83
|
-
const apiInstance = new AdminClubSlotsApi(configuration);
|
|
84
|
-
|
|
85
|
-
let id: string; //ID du club (default to undefined)
|
|
86
|
-
|
|
87
|
-
const { status, data } = await apiInstance.generateSlotsForNextThreeWeeks(
|
|
88
|
-
id
|
|
89
|
-
);
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Parameters
|
|
93
|
-
|
|
94
|
-
|Name | Type | Description | Notes|
|
|
95
|
-
|------------- | ------------- | ------------- | -------------|
|
|
96
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
### Return type
|
|
100
|
-
|
|
101
|
-
**GenerateSlotsResponse**
|
|
102
|
-
|
|
103
|
-
### Authorization
|
|
104
|
-
|
|
105
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
106
|
-
|
|
107
|
-
### HTTP request headers
|
|
108
|
-
|
|
109
|
-
- **Content-Type**: Not defined
|
|
110
|
-
- **Accept**: application/json
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
### HTTP response details
|
|
114
|
-
| Status code | Description | Response headers |
|
|
115
|
-
|-------------|-------------|------------------|
|
|
116
|
-
|**201** | Créneaux générés avec succès | - |
|
|
117
|
-
|**400** | Requête invalide | - |
|
|
118
|
-
|**401** | Non autorisé | - |
|
|
119
|
-
|**404** | Ressource non trouvée | - |
|
|
120
|
-
|**500** | Erreur serveur interne | - |
|
|
121
|
-
|
|
122
|
-
[[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)
|
|
123
|
-
|
|
124
|
-
# **getSlotsByClubAdmin**
|
|
125
|
-
> SlotsResponse getSlotsByClubAdmin()
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### Example
|
|
129
|
-
|
|
130
|
-
```typescript
|
|
131
|
-
import {
|
|
132
|
-
AdminClubSlotsApi,
|
|
133
|
-
Configuration
|
|
134
|
-
} from '@tennac-booking/sdk';
|
|
135
|
-
|
|
136
|
-
const configuration = new Configuration();
|
|
137
|
-
const apiInstance = new AdminClubSlotsApi(configuration);
|
|
138
|
-
|
|
139
|
-
let id: string; //ID du club (default to undefined)
|
|
140
|
-
let start: string; //Date de début (format ISO) (optional) (default to undefined)
|
|
141
|
-
let end: string; //Date de fin (format ISO) (optional) (default to undefined)
|
|
142
|
-
|
|
143
|
-
const { status, data } = await apiInstance.getSlotsByClubAdmin(
|
|
144
|
-
id,
|
|
145
|
-
start,
|
|
146
|
-
end
|
|
147
|
-
);
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
|Name | Type | Description | Notes|
|
|
153
|
-
|------------- | ------------- | ------------- | -------------|
|
|
154
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
155
|
-
| **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
|
|
156
|
-
| **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
### Return type
|
|
160
|
-
|
|
161
|
-
**SlotsResponse**
|
|
162
|
-
|
|
163
|
-
### Authorization
|
|
164
|
-
|
|
165
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
166
|
-
|
|
167
|
-
### HTTP request headers
|
|
168
|
-
|
|
169
|
-
- **Content-Type**: Not defined
|
|
170
|
-
- **Accept**: application/json
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
### HTTP response details
|
|
174
|
-
| Status code | Description | Response headers |
|
|
175
|
-
|-------------|-------------|------------------|
|
|
176
|
-
|**200** | Liste des créneaux du club | - |
|
|
177
|
-
|**400** | Requête invalide | - |
|
|
178
|
-
|**401** | Non autorisé | - |
|
|
179
|
-
|**500** | Erreur serveur interne | - |
|
|
180
|
-
|
|
181
|
-
[[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)
|
|
182
|
-
|
|
@@ -1,394 +0,0 @@
|
|
|
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
|
-
|