@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.
Files changed (170) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +5 -2
  3. package/api.ts +211 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +173 -1
  8. package/dist/api.js +68 -1
  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 +173 -1
  16. package/dist/esm/api.js +68 -1
  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/{DeleteClubRole200Response.md → CheckTeamNameAvailability200Response.md} +5 -5
  28. package/docs/EstimateEventPrice200Response.md +6 -0
  29. package/docs/EstimateEventPriceRequest.md +4 -0
  30. package/docs/EventsApi.md +57 -0
  31. package/docs/JoinEventRequest.md +2 -0
  32. package/docs/JoinEventResponse.md +14 -0
  33. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  34. package/index.ts +1 -1
  35. package/package.json +1 -1
  36. package/docs/ActiveClub.md +0 -24
  37. package/docs/ActiveClubListResponse.md +0 -20
  38. package/docs/AddClubMemberResponse.md +0 -22
  39. package/docs/AddFavoriteClubRequestBody.md +0 -20
  40. package/docs/AddFavoritePlayerRequestBody.md +0 -20
  41. package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
  42. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  43. package/docs/AdminClubAnalyticsApi.md +0 -249
  44. package/docs/AdminClubSlotsApi.md +0 -182
  45. package/docs/AdminClubSubscriptionsApi.md +0 -394
  46. package/docs/AdminClubsApi.md +0 -170
  47. package/docs/ApiErrorResponse.md +0 -22
  48. package/docs/BlockSlotResponse.md +0 -22
  49. package/docs/Booking.md +0 -32
  50. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  51. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  52. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  53. package/docs/BookingPopulatedSlotId.md +0 -26
  54. package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
  55. package/docs/BookingPopulatedUserId.md +0 -24
  56. package/docs/CancelBookingResponseBooking.md +0 -30
  57. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  58. package/docs/Club.md +0 -46
  59. package/docs/ClubInfoResponse.md +0 -48
  60. package/docs/ClubListResponse.md +0 -22
  61. package/docs/ClubMember.md +0 -34
  62. package/docs/ClubMembersResponse.md +0 -22
  63. package/docs/ClubRole.md +0 -30
  64. package/docs/ClubRolesResponse.md +0 -22
  65. package/docs/ClubSettings.md +0 -40
  66. package/docs/ClubsResponse.md +0 -22
  67. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  68. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  69. package/docs/Court.md +0 -32
  70. package/docs/CourtsResponse.md +0 -22
  71. package/docs/CreateClubRoleRequestBody.md +0 -24
  72. package/docs/CreateClubSettingsRequest.md +0 -28
  73. package/docs/CreatePriceRequest.md +0 -26
  74. package/docs/DeleteClub200Response.md +0 -20
  75. package/docs/DeleteClubSettingsRequest.md +0 -20
  76. package/docs/DeleteEvent200Response.md +0 -20
  77. package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
  78. package/docs/DeleteSlotsResponse.md +0 -20
  79. package/docs/DeleteSport200Response.md +0 -20
  80. package/docs/Event.md +0 -40
  81. package/docs/EventBooking.md +0 -32
  82. package/docs/EventRegistrationRequest.md +0 -22
  83. package/docs/FavoriteClubItem.md +0 -26
  84. package/docs/FavoriteClubResponse.md +0 -22
  85. package/docs/FavoritePlayerPublic.md +0 -28
  86. package/docs/FavoritePlayersIdsResponse.md +0 -22
  87. package/docs/FrequentlyPlayedWithItem.md +0 -28
  88. package/docs/FrequentlyVisitedClubItem.md +0 -24
  89. package/docs/GenerateSlotsResponse.md +0 -20
  90. package/docs/GetActiveClubs200Response.md +0 -20
  91. package/docs/GetClubInfos200Response.md +0 -30
  92. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  93. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  94. package/docs/GetNumberOfClubUsers200Response.md +0 -20
  95. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  96. package/docs/GetUserRolesResponse.md +0 -20
  97. package/docs/GetUserRolesResponseRolesInner.md +0 -26
  98. package/docs/GetUserSubscriptionsResponse.md +0 -22
  99. package/docs/GoogleSignInRequestBody.md +0 -20
  100. package/docs/GoogleSignInResponse.md +0 -24
  101. package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
  102. package/docs/InitiateSubscriptionSessionResponse.md +0 -22
  103. package/docs/InvoicesResponse.md +0 -22
  104. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  105. package/docs/InvoicesResponsePagination.md +0 -26
  106. package/docs/LevelBySportsItem.md +0 -22
  107. package/docs/ManagerBookingsApi.md +0 -125
  108. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  109. package/docs/ManagerClubCourtsApi.md +0 -108
  110. package/docs/ManagerClubRolesApi.md +0 -268
  111. package/docs/ManagerClubSlotsApi.md +0 -119
  112. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  113. package/docs/ManagerClubsApi.md +0 -253
  114. package/docs/ManagerEventResponse.md +0 -22
  115. package/docs/ManagerEventsApi.md +0 -227
  116. package/docs/ManagerSportsApi.md +0 -174
  117. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  118. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  119. package/docs/PriceResponse.md +0 -32
  120. package/docs/ProfileVisibilityResponse.md +0 -20
  121. package/docs/PublicClubUser.md +0 -46
  122. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  123. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  124. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  125. package/docs/RegisterForEvent201Response.md +0 -20
  126. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  127. package/docs/SetupPaymentMethodRequestBody.md +0 -20
  128. package/docs/SetupPaymentMethodResponse.md +0 -24
  129. package/docs/Slot.md +0 -24
  130. package/docs/SlotException.md +0 -26
  131. package/docs/SlotResponse.md +0 -34
  132. package/docs/SlotsResponse.md +0 -22
  133. package/docs/Sport.md +0 -24
  134. package/docs/SportsResponse.md +0 -22
  135. package/docs/StaffClubAnalyticsApi.md +0 -104
  136. package/docs/StaffClubBookingsApi.md +0 -52
  137. package/docs/StaffClubsApi.md +0 -100
  138. package/docs/StaffEventResponse.md +0 -20
  139. package/docs/StaffEventsApi.md +0 -54
  140. package/docs/StaffProfileApi.md +0 -54
  141. package/docs/StripeStatus.md +0 -16
  142. package/docs/SubscribeToClubRequestBody.md +0 -22
  143. package/docs/SubscriptionPlan.md +0 -36
  144. package/docs/SubscriptionResponse.md +0 -36
  145. package/docs/UpdateClubRoleRequestBody.md +0 -24
  146. package/docs/UpdateClubSettingsRequest.md +0 -28
  147. package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
  148. package/docs/UpdateCustomerResponseCustomer.md +0 -28
  149. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  150. package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
  151. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  152. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  153. package/docs/UpdateUserCityRequestBody.md +0 -20
  154. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  155. package/docs/User.md +0 -40
  156. package/docs/UserAuthenticationApi.md +0 -226
  157. package/docs/UserBookingsApi.md +0 -120
  158. package/docs/UserCityResponse.md +0 -20
  159. package/docs/UserClubCourtsApi.md +0 -64
  160. package/docs/UserClubSlotsApi.md +0 -181
  161. package/docs/UserClubSportsApi.md +0 -60
  162. package/docs/UserClubsApi.md +0 -53
  163. package/docs/UserDescriptionResponse.md +0 -20
  164. package/docs/UserFavoriteClubsResponse.md +0 -20
  165. package/docs/UserPaymentApi.md +0 -176
  166. package/docs/UserProfileApi.md +0 -1201
  167. package/docs/UserResponse.md +0 -38
  168. package/docs/UserSubscriptionsApi.md +0 -222
  169. package/docs/UsersResponse.md +0 -22
  170. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
@@ -1,64 +0,0 @@
1
- # UserClubCourtsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getCourtsByClubAndSport**](#getcourtsbyclubandsport) | **GET** /api/clubs/{id}/sports/{sportId}/courts | Récupérer les terrains d\'un club pour un sport spécifique|
8
-
9
- # **getCourtsByClubAndSport**
10
- > GetCourtsByClubAndSport200Response getCourtsByClubAndSport()
11
-
12
-
13
- ### Example
14
-
15
- ```typescript
16
- import {
17
- UserClubCourtsApi,
18
- Configuration
19
- } from '@tennac-booking/sdk';
20
-
21
- const configuration = new Configuration();
22
- const apiInstance = new UserClubCourtsApi(configuration);
23
-
24
- let id: string; //ID du club (default to undefined)
25
- let sportId: string; //ID du sport (default to undefined)
26
-
27
- const { status, data } = await apiInstance.getCourtsByClubAndSport(
28
- id,
29
- sportId
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **id** | [**string**] | ID du club | defaults to undefined|
38
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
39
-
40
-
41
- ### Return type
42
-
43
- **GetCourtsByClubAndSport200Response**
44
-
45
- ### Authorization
46
-
47
- [bearerAuth](../README.md#bearerAuth)
48
-
49
- ### HTTP request headers
50
-
51
- - **Content-Type**: Not defined
52
- - **Accept**: application/json
53
-
54
-
55
- ### HTTP response details
56
- | Status code | Description | Response headers |
57
- |-------------|-------------|------------------|
58
- |**200** | Liste des terrains du club pour le sport spécifié | - |
59
- |**400** | Requête invalide | - |
60
- |**404** | Ressource non trouvée | - |
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
-
@@ -1,181 +0,0 @@
1
- # UserClubSlotsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getAvailableSlotsByClub**](#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots | Obtenir tous les créneaux disponibles pour un club|
8
- |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
9
- |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
10
-
11
- # **getAvailableSlotsByClub**
12
- > SlotsResponse getAvailableSlotsByClub()
13
-
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- UserClubSlotsApi,
20
- Configuration
21
- } from '@tennac-booking/sdk';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new UserClubSlotsApi(configuration);
25
-
26
- let clubID: string; //ID du club (default to undefined)
27
-
28
- const { status, data } = await apiInstance.getAvailableSlotsByClub(
29
- clubID
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **clubID** | [**string**] | ID du club | defaults to undefined|
38
-
39
-
40
- ### Return type
41
-
42
- **SlotsResponse**
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** | Liste des créneaux disponibles pour le club | - |
58
- |**400** | Requête invalide | - |
59
- |**500** | Erreur serveur interne | - |
60
-
61
- [[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)
62
-
63
- # **getAvailableSlotsBySports**
64
- > SlotsResponse getAvailableSlotsBySports()
65
-
66
-
67
- ### Example
68
-
69
- ```typescript
70
- import {
71
- UserClubSlotsApi,
72
- Configuration
73
- } from '@tennac-booking/sdk';
74
-
75
- const configuration = new Configuration();
76
- const apiInstance = new UserClubSlotsApi(configuration);
77
-
78
- let id: string; //ID du club (default to undefined)
79
- let sportId: string; //ID du sport (default to undefined)
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.getAvailableSlotsBySports(
84
- id,
85
- sportId,
86
- start,
87
- end
88
- );
89
- ```
90
-
91
- ### Parameters
92
-
93
- |Name | Type | Description | Notes|
94
- |------------- | ------------- | ------------- | -------------|
95
- | **id** | [**string**] | ID du club | defaults to undefined|
96
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
97
- | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
98
- | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
99
-
100
-
101
- ### Return type
102
-
103
- **SlotsResponse**
104
-
105
- ### Authorization
106
-
107
- [bearerAuth](../README.md#bearerAuth)
108
-
109
- ### HTTP request headers
110
-
111
- - **Content-Type**: Not defined
112
- - **Accept**: application/json
113
-
114
-
115
- ### HTTP response details
116
- | Status code | Description | Response headers |
117
- |-------------|-------------|------------------|
118
- |**200** | Liste des créneaux disponibles | - |
119
- |**400** | Requête invalide | - |
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
- # **getAvailableSlotsBySportsAndDay**
125
- > SlotsResponse getAvailableSlotsBySportsAndDay()
126
-
127
-
128
- ### Example
129
-
130
- ```typescript
131
- import {
132
- UserClubSlotsApi,
133
- Configuration
134
- } from '@tennac-booking/sdk';
135
-
136
- const configuration = new Configuration();
137
- const apiInstance = new UserClubSlotsApi(configuration);
138
-
139
- let id: string; //ID du club (default to undefined)
140
- let sportId: string; //ID du sport (default to undefined)
141
- let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
142
-
143
- const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
144
- id,
145
- sportId,
146
- day
147
- );
148
- ```
149
-
150
- ### Parameters
151
-
152
- |Name | Type | Description | Notes|
153
- |------------- | ------------- | ------------- | -------------|
154
- | **id** | [**string**] | ID du club | defaults to undefined|
155
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
156
- | **day** | [**string**] | Date du jour (format YYYY-MM-DD) | 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 disponibles pour le jour donné | - |
177
- |**400** | Requête invalide | - |
178
- |**500** | Erreur serveur interne | - |
179
-
180
- [[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)
181
-
@@ -1,60 +0,0 @@
1
- # UserClubSportsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getSportsByClub**](#getsportsbyclub) | **GET** /api/clubs/{id}/sports | Récupérer tous les sports pour un club|
8
-
9
- # **getSportsByClub**
10
- > SportsResponse getSportsByClub()
11
-
12
-
13
- ### Example
14
-
15
- ```typescript
16
- import {
17
- UserClubSportsApi,
18
- Configuration
19
- } from '@tennac-booking/sdk';
20
-
21
- const configuration = new Configuration();
22
- const apiInstance = new UserClubSportsApi(configuration);
23
-
24
- let id: string; //ID du club (default to undefined)
25
-
26
- const { status, data } = await apiInstance.getSportsByClub(
27
- id
28
- );
29
- ```
30
-
31
- ### Parameters
32
-
33
- |Name | Type | Description | Notes|
34
- |------------- | ------------- | ------------- | -------------|
35
- | **id** | [**string**] | ID du club | defaults to undefined|
36
-
37
-
38
- ### Return type
39
-
40
- **SportsResponse**
41
-
42
- ### Authorization
43
-
44
- [bearerAuth](../README.md#bearerAuth)
45
-
46
- ### HTTP request headers
47
-
48
- - **Content-Type**: Not defined
49
- - **Accept**: application/json
50
-
51
-
52
- ### HTTP response details
53
- | Status code | Description | Response headers |
54
- |-------------|-------------|------------------|
55
- |**200** | Liste des sports du club | - |
56
- |**400** | Requête invalide | - |
57
- |**500** | Erreur serveur interne | - |
58
-
59
- [[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)
60
-
@@ -1,53 +0,0 @@
1
- # UserClubsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/activeClubs | Obtenir la liste des clubs actifs (seulement id et nom)|
8
-
9
- # **getActiveClubs**
10
- > GetActiveClubs200Response getActiveClubs()
11
-
12
- Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- UserClubsApi,
19
- Configuration
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new UserClubsApi(configuration);
24
-
25
- const { status, data } = await apiInstance.getActiveClubs();
26
- ```
27
-
28
- ### Parameters
29
- This endpoint does not have any parameters.
30
-
31
-
32
- ### Return type
33
-
34
- **GetActiveClubs200Response**
35
-
36
- ### Authorization
37
-
38
- [bearerAuth](../README.md#bearerAuth)
39
-
40
- ### HTTP request headers
41
-
42
- - **Content-Type**: Not defined
43
- - **Accept**: application/json
44
-
45
-
46
- ### HTTP response details
47
- | Status code | Description | Response headers |
48
- |-------------|-------------|------------------|
49
- |**200** | Liste des clubs actifs | - |
50
- |**500** | Erreur serveur interne | - |
51
-
52
- [[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)
53
-
@@ -1,20 +0,0 @@
1
- # UserDescriptionResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **description** | **string** | | [optional] [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UserDescriptionResponse } from '@tennac-booking/sdk';
14
-
15
- const instance: UserDescriptionResponse = {
16
- description,
17
- };
18
- ```
19
-
20
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,20 +0,0 @@
1
- # UserFavoriteClubsResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **favoriteClubs** | [**Array<FavoriteClubItem>**](FavoriteClubItem.md) | | [optional] [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UserFavoriteClubsResponse } from '@tennac-booking/sdk';
14
-
15
- const instance: UserFavoriteClubsResponse = {
16
- favoriteClubs,
17
- };
18
- ```
19
-
20
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,176 +0,0 @@
1
- # UserPaymentApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur|
8
- |[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | Confirme la configuration d\'une méthode de paiement|
9
- |[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /api/users/setupPaymentMethod | Configure une méthode de paiement pour un utilisateur|
10
-
11
- # **addPaymentMethodSetup**
12
- > AddPaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodSetupRequestBody)
13
-
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- UserPaymentApi,
20
- Configuration,
21
- AddPaymentMethodSetupRequestBody
22
- } from '@tennac-booking/sdk';
23
-
24
- const configuration = new Configuration();
25
- const apiInstance = new UserPaymentApi(configuration);
26
-
27
- let addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody; //
28
-
29
- const { status, data } = await apiInstance.addPaymentMethodSetup(
30
- addPaymentMethodSetupRequestBody
31
- );
32
- ```
33
-
34
- ### Parameters
35
-
36
- |Name | Type | Description | Notes|
37
- |------------- | ------------- | ------------- | -------------|
38
- | **addPaymentMethodSetupRequestBody** | **AddPaymentMethodSetupRequestBody**| | |
39
-
40
-
41
- ### Return type
42
-
43
- **AddPaymentMethodSetupResponse**
44
-
45
- ### Authorization
46
-
47
- [bearerAuth](../README.md#bearerAuth)
48
-
49
- ### HTTP request headers
50
-
51
- - **Content-Type**: application/json
52
- - **Accept**: application/json
53
-
54
-
55
- ### HTTP response details
56
- | Status code | Description | Response headers |
57
- |-------------|-------------|------------------|
58
- |**200** | Méthode de paiement ajoutée | - |
59
- |**400** | Requête invalide | - |
60
- |**401** | Non autorisé | - |
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
- # **confirmPaymentMethodSetup**
66
- > ConfirmPaymentMethodSetupResponse confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody)
67
-
68
- Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
69
-
70
- ### Example
71
-
72
- ```typescript
73
- import {
74
- UserPaymentApi,
75
- Configuration,
76
- ConfirmPaymentMethodSetupRequestBody
77
- } from '@tennac-booking/sdk';
78
-
79
- const configuration = new Configuration();
80
- const apiInstance = new UserPaymentApi(configuration);
81
-
82
- let confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody; //
83
-
84
- const { status, data } = await apiInstance.confirmPaymentMethodSetup(
85
- confirmPaymentMethodSetupRequestBody
86
- );
87
- ```
88
-
89
- ### Parameters
90
-
91
- |Name | Type | Description | Notes|
92
- |------------- | ------------- | ------------- | -------------|
93
- | **confirmPaymentMethodSetupRequestBody** | **ConfirmPaymentMethodSetupRequestBody**| | |
94
-
95
-
96
- ### Return type
97
-
98
- **ConfirmPaymentMethodSetupResponse**
99
-
100
- ### Authorization
101
-
102
- [bearerAuth](../README.md#bearerAuth)
103
-
104
- ### HTTP request headers
105
-
106
- - **Content-Type**: application/json
107
- - **Accept**: application/json
108
-
109
-
110
- ### HTTP response details
111
- | Status code | Description | Response headers |
112
- |-------------|-------------|------------------|
113
- |**200** | Méthode de paiement confirmée avec succès | - |
114
- |**400** | Requête invalide | - |
115
- |**401** | Non autorisé | - |
116
- |**404** | Ressource non trouvée | - |
117
- |**500** | Erreur serveur interne | - |
118
-
119
- [[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)
120
-
121
- # **setupPaymentMethod**
122
- > SetupPaymentMethodResponse setupPaymentMethod(setupPaymentMethodRequestBody)
123
-
124
- Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
125
-
126
- ### Example
127
-
128
- ```typescript
129
- import {
130
- UserPaymentApi,
131
- Configuration,
132
- SetupPaymentMethodRequestBody
133
- } from '@tennac-booking/sdk';
134
-
135
- const configuration = new Configuration();
136
- const apiInstance = new UserPaymentApi(configuration);
137
-
138
- let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
139
-
140
- const { status, data } = await apiInstance.setupPaymentMethod(
141
- setupPaymentMethodRequestBody
142
- );
143
- ```
144
-
145
- ### Parameters
146
-
147
- |Name | Type | Description | Notes|
148
- |------------- | ------------- | ------------- | -------------|
149
- | **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
150
-
151
-
152
- ### Return type
153
-
154
- **SetupPaymentMethodResponse**
155
-
156
- ### Authorization
157
-
158
- [bearerAuth](../README.md#bearerAuth)
159
-
160
- ### HTTP request headers
161
-
162
- - **Content-Type**: application/json
163
- - **Accept**: application/json
164
-
165
-
166
- ### HTTP response details
167
- | Status code | Description | Response headers |
168
- |-------------|-------------|------------------|
169
- |**200** | Setup Intent créé avec succès | - |
170
- |**400** | Requête invalide | - |
171
- |**401** | Non autorisé | - |
172
- |**404** | Ressource non trouvée | - |
173
- |**500** | Erreur serveur interne | - |
174
-
175
- [[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)
176
-