@tennac-booking/sdk 1.0.34 → 1.0.36

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.
Files changed (202) hide show
  1. package/.openapi-generator/FILES +5 -161
  2. package/README.md +7 -230
  3. package/api.ts +672 -13535
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +652 -9153
  8. package/dist/api.js +12 -7641
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +652 -9153
  16. package/dist/esm/api.js +11 -7530
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveClub.md +4 -2
  28. package/docs/ApiErrorResponse.md +1 -1
  29. package/docs/Club.md +6 -12
  30. package/docs/ClubResponse.md +8 -14
  31. package/docs/ClubRoleResponse.md +6 -6
  32. package/docs/ClubSettings.md +9 -21
  33. package/docs/Court.md +2 -2
  34. package/docs/CourtResponse.md +16 -18
  35. package/docs/CourtStatus.md +2 -5
  36. package/docs/{UpdateCustomerRequestBodyAddress.md → Location.md} +13 -11
  37. package/docs/PriceResponse.md +8 -2
  38. package/docs/SlotResponse.md +10 -2
  39. package/docs/SportResponse.md +2 -4
  40. package/docs/{GetUserRolesResponseRolesInner.md → StripeLink.md} +7 -7
  41. package/docs/UserResponse.md +48 -8
  42. package/docs/{FrequentlyPlayedWithItem.md → UserResponseFrequentlyPlayedWithInner.md} +3 -3
  43. package/docs/{FrequentlyVisitedClubItem.md → UserResponseFrequentlyVisitedClubsInner.md} +3 -3
  44. package/docs/{PublicClubUserLevelBySportsInner.md → UserResponseLevelBySportsInner.md} +3 -3
  45. package/index.ts +1 -1
  46. package/package.json +1 -1
  47. package/docs/AddClubMemberRequest.md +0 -22
  48. package/docs/AddClubMemberResponse.md +0 -22
  49. package/docs/AddFavoriteClubRequestBody.md +0 -20
  50. package/docs/AddFavoritePlayerRequestBody.md +0 -20
  51. package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
  52. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  53. package/docs/BlockSlotResponse.md +0 -22
  54. package/docs/BookingHistoryResponse.md +0 -22
  55. package/docs/BookingHistoryResponseHistoryInner.md +0 -32
  56. package/docs/BookingPaymentStatusResponse.md +0 -24
  57. package/docs/BookingPaymentStatusResponseBooking.md +0 -26
  58. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  59. package/docs/BookingPaymentStatusResponseSummary.md +0 -28
  60. package/docs/BookingPopulated.md +0 -28
  61. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  62. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  63. package/docs/BookingPopulatedSlotId.md +0 -26
  64. package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
  65. package/docs/BookingPopulatedUserId.md +0 -24
  66. package/docs/BookingResponse.md +0 -28
  67. package/docs/BookingsApi.md +0 -113
  68. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
  69. package/docs/CancelBookingResponse.md +0 -22
  70. package/docs/CancelBookingResponseBooking.md +0 -30
  71. package/docs/ChangePasswordRequestBody.md +0 -22
  72. package/docs/ChangePasswordResponse.md +0 -20
  73. package/docs/CheckInPlayersResponse.md +0 -30
  74. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  75. package/docs/ClubAnalyticsApi.md +0 -241
  76. package/docs/ClubInfoResponse.md +0 -48
  77. package/docs/ClubMember.md +0 -24
  78. package/docs/ClubMembersResponse.md +0 -22
  79. package/docs/ClubRolesResponse.md +0 -22
  80. package/docs/ClubsApi.md +0 -61
  81. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  82. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  83. package/docs/CourtDeleteResponse.md +0 -20
  84. package/docs/CourtWithNameResponse.md +0 -46
  85. package/docs/CourtsResponse.md +0 -22
  86. package/docs/CourtsWithNameResponse.md +0 -22
  87. package/docs/CreateBookingRequest.md +0 -28
  88. package/docs/CreateClubRoleRequestBody.md +0 -24
  89. package/docs/CreateCourtRequest.md +0 -36
  90. package/docs/CreateEventRequest.md +0 -30
  91. package/docs/CreatePriceRequest.md +0 -26
  92. package/docs/CreateSportRequest.md +0 -26
  93. package/docs/CreateSubscriptionPlanRequest.md +0 -24
  94. package/docs/DailyTurnoverResponse.md +0 -24
  95. package/docs/DeleteClubRole200Response.md +0 -20
  96. package/docs/DeleteEvent200Response.md +0 -20
  97. package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
  98. package/docs/DeleteSport200Response.md +0 -20
  99. package/docs/Event.md +0 -40
  100. package/docs/EventBooking.md +0 -32
  101. package/docs/EventRegistrationRequest.md +0 -22
  102. package/docs/EventsApi.md +0 -119
  103. package/docs/FavoriteClubItem.md +0 -26
  104. package/docs/FavoriteClubResponse.md +0 -22
  105. package/docs/FavoritePlayerPublic.md +0 -28
  106. package/docs/FavoritePlayersIdsResponse.md +0 -22
  107. package/docs/FavoritePlayersResponse.md +0 -20
  108. package/docs/GetActiveClubs200Response.md +0 -20
  109. package/docs/GetClubInfos200Response.md +0 -30
  110. package/docs/GetClubPlayers200Response.md +0 -22
  111. package/docs/GetClubUsersById200Response.md +0 -20
  112. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  113. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  114. package/docs/GetNumberOfClubUsers200Response.md +0 -20
  115. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  116. package/docs/GetUserRolesResponse.md +0 -20
  117. package/docs/GetUserSubscriptionsResponse.md +0 -22
  118. package/docs/GoogleSignInRequestBody.md +0 -20
  119. package/docs/GoogleSignInResponse.md +0 -24
  120. package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
  121. package/docs/InitiateSubscriptionSessionResponse.md +0 -22
  122. package/docs/InvoicesResponse.md +0 -22
  123. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  124. package/docs/InvoicesResponsePagination.md +0 -26
  125. package/docs/LevelBySportsItem.md +0 -22
  126. package/docs/LoginRequestBody.md +0 -22
  127. package/docs/LoginResponse.md +0 -28
  128. package/docs/ManagerBookingsApi.md +0 -125
  129. package/docs/ManagerCancelBookingRequest.md +0 -20
  130. package/docs/ManagerCancelBookingResponse.md +0 -22
  131. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  132. package/docs/ManagerClubCourtsApi.md +0 -220
  133. package/docs/ManagerClubRolesApi.md +0 -268
  134. package/docs/ManagerClubSlotsApi.md +0 -119
  135. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  136. package/docs/ManagerClubsApi.md +0 -253
  137. package/docs/ManagerEventResponse.md +0 -22
  138. package/docs/ManagerEventsApi.md +0 -227
  139. package/docs/ManagerSportsApi.md +0 -119
  140. package/docs/MonthlyTurnoverResponse.md +0 -28
  141. package/docs/NoShowFeeResponse.md +0 -30
  142. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  143. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  144. package/docs/PaymentStatus.md +0 -30
  145. package/docs/PlayerWithPaymentMethod.md +0 -22
  146. package/docs/ProfilePictureResponse.md +0 -20
  147. package/docs/ProfileVisibilityResponse.md +0 -20
  148. package/docs/PublicClubUser.md +0 -46
  149. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  150. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  151. package/docs/RefreshTokenRequestBody.md +0 -20
  152. package/docs/RefreshTokenResponse.md +0 -22
  153. package/docs/RegisterForEvent201Response.md +0 -20
  154. package/docs/RegisterRequestBody.md +0 -36
  155. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  156. package/docs/SetupPaymentMethodRequestBody.md +0 -20
  157. package/docs/SetupPaymentMethodResponse.md +0 -24
  158. package/docs/SlotsResponse.md +0 -22
  159. package/docs/SportsResponse.md +0 -22
  160. package/docs/StaffClubAnalyticsApi.md +0 -149
  161. package/docs/StaffClubBookingsApi.md +0 -52
  162. package/docs/StaffClubsApi.md +0 -147
  163. package/docs/StaffEventResponse.md +0 -20
  164. package/docs/StaffEventsApi.md +0 -54
  165. package/docs/StaffProfileApi.md +0 -54
  166. package/docs/SubscribeToClubRequestBody.md +0 -22
  167. package/docs/SubscriptionPlanResponse.md +0 -32
  168. package/docs/UpdateClubRequest.md +0 -40
  169. package/docs/UpdateClubRoleRequestBody.md +0 -24
  170. package/docs/UpdateClubSettingsRequest.md +0 -28
  171. package/docs/UpdateCourtRequest.md +0 -38
  172. package/docs/UpdateCustomerRequestBody.md +0 -26
  173. package/docs/UpdateCustomerResponse.md +0 -22
  174. package/docs/UpdateCustomerResponseCustomer.md +0 -28
  175. package/docs/UpdateLevelBySportsRequestBody.md +0 -20
  176. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  177. package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
  178. package/docs/UpdateSportRequest.md +0 -24
  179. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  180. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  181. package/docs/UpdateUserCityRequestBody.md +0 -20
  182. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  183. package/docs/UpdateUserRequestBody.md +0 -38
  184. package/docs/UpdateUserRequestBodyLevelBySportsInner.md +0 -22
  185. package/docs/UserApi.md +0 -63
  186. package/docs/UserAuthenticationApi.md +0 -226
  187. package/docs/UserBookingItem.md +0 -46
  188. package/docs/UserBookingsApi.md +0 -166
  189. package/docs/UserBookingsResponse.md +0 -26
  190. package/docs/UserCityResponse.md +0 -20
  191. package/docs/UserClubCourtsApi.md +0 -64
  192. package/docs/UserClubSlotsApi.md +0 -181
  193. package/docs/UserClubSportsApi.md +0 -60
  194. package/docs/UserClubsApi.md +0 -53
  195. package/docs/UserDescriptionResponse.md +0 -20
  196. package/docs/UserFavoriteClubsResponse.md +0 -20
  197. package/docs/UserPaymentApi.md +0 -176
  198. package/docs/UserProfileApi.md +0 -1254
  199. package/docs/UserStaffResponse.md +0 -36
  200. package/docs/UserSubscriptionsApi.md +0 -222
  201. package/docs/YearlyTurnoverResponse.md +0 -26
  202. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
@@ -1,119 +0,0 @@
1
- # ManagerClubSlotsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/slots | Supprimer des créneaux pour le club courant sur une plage de dates|
8
- |[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/slots | Récupérer tous les créneaux du club courant|
9
-
10
- # **deleteSlotsByClubInRange**
11
- > DeleteSlotsByClubInRange200Response deleteSlotsByClubInRange()
12
-
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- ManagerClubSlotsApi,
19
- Configuration
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new ManagerClubSlotsApi(configuration);
24
-
25
- let start: string; //Date de début (format ISO) (default to undefined)
26
- let end: string; //Date de fin (format ISO) (default to undefined)
27
-
28
- const { status, data } = await apiInstance.deleteSlotsByClubInRange(
29
- start,
30
- end
31
- );
32
- ```
33
-
34
- ### Parameters
35
-
36
- |Name | Type | Description | Notes|
37
- |------------- | ------------- | ------------- | -------------|
38
- | **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
39
- | **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
40
-
41
-
42
- ### Return type
43
-
44
- **DeleteSlotsByClubInRange200Response**
45
-
46
- ### Authorization
47
-
48
- [bearerAuth](../README.md#bearerAuth)
49
-
50
- ### HTTP request headers
51
-
52
- - **Content-Type**: Not defined
53
- - **Accept**: application/json
54
-
55
-
56
- ### HTTP response details
57
- | Status code | Description | Response headers |
58
- |-------------|-------------|------------------|
59
- |**200** | Créneaux supprimés avec succès | - |
60
- |**400** | Requête invalide | - |
61
- |**500** | Erreur serveur interne | - |
62
-
63
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
64
-
65
- # **getSlotsByClub**
66
- > SlotsResponse getSlotsByClub()
67
-
68
-
69
- ### Example
70
-
71
- ```typescript
72
- import {
73
- ManagerClubSlotsApi,
74
- Configuration
75
- } from '@tennac-booking/sdk';
76
-
77
- const configuration = new Configuration();
78
- const apiInstance = new ManagerClubSlotsApi(configuration);
79
-
80
- let start: string; //Date de début (format ISO) (optional) (default to undefined)
81
- let end: string; //Date de fin (format ISO) (optional) (default to undefined)
82
-
83
- const { status, data } = await apiInstance.getSlotsByClub(
84
- start,
85
- end
86
- );
87
- ```
88
-
89
- ### Parameters
90
-
91
- |Name | Type | Description | Notes|
92
- |------------- | ------------- | ------------- | -------------|
93
- | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
94
- | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
95
-
96
-
97
- ### Return type
98
-
99
- **SlotsResponse**
100
-
101
- ### Authorization
102
-
103
- [bearerAuth](../README.md#bearerAuth)
104
-
105
- ### HTTP request headers
106
-
107
- - **Content-Type**: Not defined
108
- - **Accept**: application/json
109
-
110
-
111
- ### HTTP response details
112
- | Status code | Description | Response headers |
113
- |-------------|-------------|------------------|
114
- |**200** | Liste des créneaux du club | - |
115
- |**400** | Requête invalide | - |
116
- |**500** | Erreur serveur interne | - |
117
-
118
- [[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)
119
-
@@ -1,387 +0,0 @@
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
-