@tennac-booking/sdk 1.0.55 → 1.0.61

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 (265) hide show
  1. package/.openapi-generator/FILES +217 -222
  2. package/README.md +199 -173
  3. package/api.ts +8275 -7164
  4. package/base.ts +3 -3
  5. package/common.ts +3 -3
  6. package/configuration.ts +3 -3
  7. package/dist/api.d.ts +5952 -5687
  8. package/dist/api.js +4344 -3312
  9. package/dist/base.d.ts +3 -3
  10. package/dist/base.js +3 -3
  11. package/dist/common.d.ts +3 -3
  12. package/dist/common.js +3 -3
  13. package/dist/configuration.d.ts +3 -3
  14. package/dist/configuration.js +3 -3
  15. package/dist/esm/api.d.ts +5952 -5687
  16. package/dist/esm/api.js +4251 -3215
  17. package/dist/esm/base.d.ts +3 -3
  18. package/dist/esm/base.js +3 -3
  19. package/dist/esm/common.d.ts +3 -3
  20. package/dist/esm/common.js +3 -3
  21. package/dist/esm/configuration.d.ts +3 -3
  22. package/dist/esm/configuration.js +3 -3
  23. package/dist/esm/index.d.ts +3 -3
  24. package/dist/esm/index.js +3 -3
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.js +3 -3
  27. package/docs/{ApiErrorResponse.md → AddClubMember201Response.md} +6 -6
  28. package/docs/AddClubMemberRequest.md +7 -3
  29. package/docs/BookingAnalyticsResponse.md +34 -0
  30. package/docs/BookingHistory.md +34 -0
  31. package/docs/BookingInfo.md +50 -0
  32. package/docs/BookingPaymentStatusResponse.md +3 -3
  33. package/docs/BookingPaymentStatusResponseBooking.md +8 -7
  34. package/docs/BookingPaymentStatusResponseSummary.md +10 -9
  35. package/docs/BookingPopulated.md +5 -5
  36. package/docs/BookingResponse.md +4 -4
  37. package/docs/{UpdateProfileVisibilityRequestBody.md → BookingResponseOnsitePaymentsInner.md} +7 -5
  38. package/docs/BookingStatus.md +9 -1
  39. package/docs/BookingsApi.md +10 -64
  40. package/docs/{ManagerBookingsApi.md → BookingsManagerApi.md} +14 -24
  41. package/docs/BookingsStaffApi.md +323 -0
  42. package/docs/{UserBookingsApi.md → BookingsUserApi.md} +17 -25
  43. package/docs/CancelBookingResponse.md +2 -2
  44. package/docs/CaptureResult.md +30 -0
  45. package/docs/CheckInPlayersRequest.md +20 -0
  46. package/docs/CheckInPlayersResponse.md +6 -6
  47. package/docs/CheckedInPlayer.md +34 -0
  48. package/docs/ClubAnalyticsApi.md +20 -160
  49. package/docs/ClubAnalyticsStaffApi.md +523 -0
  50. package/docs/ClubMemberResponse.md +24 -0
  51. package/docs/ClubMemberResponseUser.md +27 -0
  52. package/docs/ClubPlayerResponse.md +36 -0
  53. package/docs/ClubResponse.md +22 -14
  54. package/docs/ClubResponseCreatedAt.md +19 -0
  55. package/docs/{Location.md → ClubResponseLocation.md} +9 -12
  56. package/docs/{GetNumberOfClubUsers200Response.md → ClubResponseLocationCoordinates.md} +7 -5
  57. package/docs/ClubResponseUpdatedAt.md +19 -0
  58. package/docs/ClubRoleResponse.md +11 -9
  59. package/docs/ClubRolesManagerApi.md +177 -0
  60. package/docs/{StaffClubsApi.md → ClubRolesStaffApi.md} +41 -34
  61. package/docs/ClubSettingsManagerApi.md +221 -0
  62. package/docs/ClubSettingsResponse.md +41 -0
  63. package/docs/{AddFavoriteClubRequestBody.md → ClubUserCountResponse.md} +5 -5
  64. package/docs/ClubsApi.md +515 -8
  65. package/docs/ClubsManagerApi.md +950 -0
  66. package/docs/{ManagerClubsApi.md → ClubsStaffApi.md} +138 -62
  67. package/docs/CourtInfo.md +28 -0
  68. package/docs/CourtResponse.md +16 -16
  69. package/docs/CourtStatus.md +2 -5
  70. package/docs/CreateBookingRequest.md +1 -3
  71. package/docs/CreateClubRequest.md +22 -0
  72. package/docs/CreateClubRoleRequest.md +24 -0
  73. package/docs/CreateClubSettingsRequest.md +34 -0
  74. package/docs/{ActiveClubListResponse.md → CreateCourtForClub201Response.md} +5 -5
  75. package/docs/CreateCourtRequest.md +10 -12
  76. package/docs/CreateEventRequest.md +1 -3
  77. package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
  78. package/docs/CreateSportForClub201Response.md +20 -0
  79. package/docs/{Sport.md → CreateSportForClubRequest.md} +4 -6
  80. package/docs/CreateSportRequest.md +1 -7
  81. package/docs/CreateSubscriptionPlanRequest.md +12 -4
  82. package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
  83. package/docs/CreatorChargeResult.md +26 -0
  84. package/docs/DailyTurnoverResponse.md +3 -3
  85. package/docs/DefaultApi.md +62 -0
  86. package/docs/{CourtDeleteResponse.md → DeleteClubRoleResponse.md} +4 -4
  87. package/docs/DeleteClubSettingsResponse.md +20 -0
  88. package/docs/{DeleteSport200Response.md → DeleteCourtResponse.md} +4 -4
  89. package/docs/{DeleteEvent200Response.md → DeleteEventResponse.md} +4 -4
  90. package/docs/DeleteSlotsByClubInRange200Response.md +1 -1
  91. package/docs/{DeleteClubRole200Response.md → DeleteSportResponse.md} +4 -4
  92. package/docs/DeleteSubscriptionPlanResponse.md +20 -0
  93. package/docs/{StripeStatus.md → DiscountType.md} +5 -7
  94. package/docs/EventResponse.md +40 -0
  95. package/docs/EventResponseCourtsInner.md +18 -0
  96. package/docs/EventsApi.md +21 -21
  97. package/docs/{StaffEventResponse.md → EventsListResponse.md} +4 -4
  98. package/docs/{ManagerEventsApi.md → EventsManagerApi.md} +38 -40
  99. package/docs/{StaffEventsApi.md → EventsStaffApi.md} +11 -10
  100. package/docs/{GenderPercentage.md → GenderPercentageResponse.md} +7 -7
  101. package/docs/GetActualities200Response.md +20 -0
  102. package/docs/GetAvailableSlotsBySports200Response.md +20 -0
  103. package/docs/{ClubMembersResponse.md → GetClubMembers200Response.md} +6 -6
  104. package/docs/GetClubRoles200Response.md +20 -0
  105. package/docs/GetClubUsersById200Response.md +1 -1
  106. package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
  107. package/docs/GetInfillPercentagePerPeriod200Response.md +5 -5
  108. package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
  109. package/docs/GetSportsByClubById200Response.md +20 -0
  110. package/docs/{Court.md → ICourtData.md} +18 -6
  111. package/docs/{DiagnosticsResponse.md → InvoiceInfo.md} +8 -8
  112. package/docs/{ClubListResponse.md → LastSixMonthsTurnoverItem.md} +7 -7
  113. package/docs/ManagerCancelBookingRequest.md +1 -1
  114. package/docs/ManagerCancelBookingResponse.md +2 -2
  115. package/docs/MonthlyBreakdown.md +24 -0
  116. package/docs/MonthlyTurnoverResponse.md +6 -5
  117. package/docs/NoShowFeeResponse.md +6 -6
  118. package/docs/OffPeakRule.md +26 -0
  119. package/docs/PartialClubResponse.md +49 -0
  120. package/docs/PaymentByPlayerInfo.md +22 -0
  121. package/docs/PaymentMethod.md +2 -1
  122. package/docs/PlanInterval.md +14 -0
  123. package/docs/PlayerPaymentInfo.md +36 -0
  124. package/docs/PublicSubscriptionPlanResponse.md +30 -0
  125. package/docs/PublishEventResponse.md +20 -0
  126. package/docs/SlotInfo.md +26 -0
  127. package/docs/SportAnalyticsResponse.md +24 -0
  128. package/docs/SportInfo.md +22 -0
  129. package/docs/SportResponse.md +8 -11
  130. package/docs/SportWithAnalytics.md +36 -0
  131. package/docs/SportsManagerApi.md +177 -0
  132. package/docs/SportsStaffApi.md +55 -0
  133. package/docs/StripeStripeDeletedProduct.md +25 -0
  134. package/docs/StripeStripePrice.md +63 -0
  135. package/docs/StripeStripePriceBillingScheme.md +10 -0
  136. package/docs/StripeStripePriceCurrencyOptions.md +28 -0
  137. package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
  138. package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
  139. package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
  140. package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
  141. package/docs/StripeStripePriceProduct.md +59 -0
  142. package/docs/StripeStripePriceRecurring.md +28 -0
  143. package/docs/StripeStripePriceRecurringInterval.md +14 -0
  144. package/docs/StripeStripePriceRecurringUsageType.md +10 -0
  145. package/docs/StripeStripePriceTaxBehavior.md +12 -0
  146. package/docs/StripeStripePriceTier.md +28 -0
  147. package/docs/StripeStripePriceTiersMode.md +10 -0
  148. package/docs/StripeStripePriceTransformQuantity.md +22 -0
  149. package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
  150. package/docs/StripeStripePriceType.md +10 -0
  151. package/docs/StripeStripeProduct.md +59 -0
  152. package/docs/StripeStripeProductDefaultPrice.md +63 -0
  153. package/docs/{AddPaymentMethodSetupRequestBody.md → StripeStripeProductMarketingFeature.md} +5 -5
  154. package/docs/StripeStripeProductPackageDimensions.md +26 -0
  155. package/docs/StripeStripeProductTaxCode.md +27 -0
  156. package/docs/StripeStripeProductType.md +10 -0
  157. package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
  158. package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
  159. package/docs/StripeStripeTaxCode.md +27 -0
  160. package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
  161. package/docs/SubscriptionPlanResponse.md +16 -14
  162. package/docs/SubscriptionsManagerApi.md +171 -0
  163. package/docs/{UserClubSportsApi.md → SubscriptionsPublicApi.md} +15 -15
  164. package/docs/{StaffClubBookingsApi.md → SubscriptionsStaffApi.md} +12 -10
  165. package/docs/{ManagerClubCourtsApi.md → SubscriptionsUserApi.md} +68 -66
  166. package/docs/SurfaceType.md +12 -0
  167. package/docs/UpdateActuality200Response.md +20 -0
  168. package/docs/UpdateClubRequest.md +11 -11
  169. package/docs/UpdateClubRequestLocation.md +29 -0
  170. package/docs/{BookingPopulatedSlotIdCourtIdSportId.md → UpdateClubRequestLocationCoordinates.md} +7 -7
  171. package/docs/UpdateClubRoleRequest.md +22 -0
  172. package/docs/UpdateClubSettingsRequest.md +14 -10
  173. package/docs/{FrequentlyVisitedClubItem.md → UpdatePlanRequest.md} +7 -7
  174. package/docs/UpdateSportRequest.md +1 -5
  175. package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
  176. package/docs/{BookingPopulatedUserId.md → UserInfo.md} +6 -6
  177. package/docs/UsersApi.md +27 -378
  178. package/docs/YearlyTurnoverResponse.md +4 -4
  179. package/index.ts +3 -3
  180. package/package.json +1 -1
  181. package/docs/ActiveClub.md +0 -30
  182. package/docs/AddClubMemberResponse.md +0 -22
  183. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  184. package/docs/BlockSlotResponse.md +0 -22
  185. package/docs/Booking.md +0 -32
  186. package/docs/BookingHistoryResponse.md +0 -22
  187. package/docs/BookingHistoryResponseHistoryInner.md +0 -32
  188. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  189. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  190. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  191. package/docs/BookingPopulatedSlotId.md +0 -26
  192. package/docs/BookingPopulatedSlotIdCourtId.md +0 -28
  193. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
  194. package/docs/CancelBookingResponseBooking.md +0 -30
  195. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  196. package/docs/Club.md +0 -40
  197. package/docs/ClubInfoResponse.md +0 -48
  198. package/docs/ClubMember.md +0 -24
  199. package/docs/ClubRole.md +0 -30
  200. package/docs/ClubRolesResponse.md +0 -22
  201. package/docs/ClubSettings.md +0 -40
  202. package/docs/ClubStaffResponse.md +0 -48
  203. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  204. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  205. package/docs/CourtWithNameResponse.md +0 -48
  206. package/docs/CourtsResponse.md +0 -22
  207. package/docs/CourtsWithNameResponse.md +0 -22
  208. package/docs/CreateClubRoleRequestBody.md +0 -24
  209. package/docs/CreatePriceRequest.md +0 -26
  210. package/docs/DiagnosticsApi.md +0 -97
  211. package/docs/Event.md +0 -40
  212. package/docs/EventBooking.md +0 -32
  213. package/docs/EventRegistrationRequest.md +0 -22
  214. package/docs/FrequentlyPlayedWithItem.md +0 -28
  215. package/docs/GetActiveClubs200Response.md +0 -20
  216. package/docs/GetClubInfos200Response.md +0 -30
  217. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  218. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  219. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  220. package/docs/InvoicesResponse.md +0 -22
  221. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  222. package/docs/InvoicesResponsePagination.md +0 -26
  223. package/docs/LevelBySportsItem.md +0 -22
  224. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  225. package/docs/ManagerClubRolesApi.md +0 -268
  226. package/docs/ManagerClubSlotsApi.md +0 -119
  227. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  228. package/docs/ManagerEventResponse.md +0 -22
  229. package/docs/ManagerSportsApi.md +0 -119
  230. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  231. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  232. package/docs/PaymentStatus.md +0 -30
  233. package/docs/PriceResponse.md +0 -32
  234. package/docs/PublicClubUser.md +0 -46
  235. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  236. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  237. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  238. package/docs/RegisterForEvent201Response.md +0 -20
  239. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  240. package/docs/SdkDiagnosticsResponse.md +0 -28
  241. package/docs/SdkDiagnosticsResponseOpenapi.md +0 -24
  242. package/docs/SdkDiagnosticsResponseSdk.md +0 -24
  243. package/docs/Slot.md +0 -24
  244. package/docs/SlotException.md +0 -26
  245. package/docs/SlotResponse.md +0 -34
  246. package/docs/StaffBookingsApi.md +0 -61
  247. package/docs/StaffClubAnalyticsApi.md +0 -254
  248. package/docs/StripeLink.md +0 -26
  249. package/docs/SubscriptionPlan.md +0 -36
  250. package/docs/SubscriptionResponse.md +0 -36
  251. package/docs/SubscriptionSessionResponse.md +0 -20
  252. package/docs/UpdateClubRoleRequestBody.md +0 -24
  253. package/docs/UpdateCourtRequest.md +0 -38
  254. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  255. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  256. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  257. package/docs/UpdateUserCityRequestBody.md +0 -20
  258. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  259. package/docs/UserBookingItem.md +0 -46
  260. package/docs/UserClubCourtsApi.md +0 -64
  261. package/docs/UserClubSlotsApi.md +0 -181
  262. package/docs/UserClubsApi.md +0 -145
  263. package/docs/UserInfoStaff.md +0 -38
  264. package/docs/UserStaffResponse.md +0 -40
  265. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
@@ -1,29 +1,29 @@
1
- # ManagerBookingsApi
1
+ # BookingsManagerApi
2
2
 
3
3
  All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**applyNoShowFee**](#applynoshowfee) | **POST** /api/bookings/{bookingId}/apply-noshow-fee | Appliquer les frais de no-show|
8
- |[**managerCancelBooking**](#managercancelbooking) | **DELETE** /api/bookings/{bookingId}/manager-cancel | Annuler une réservation (gestionnaire)|
7
+ |[**applyNoShowFee**](#applynoshowfee) | **POST** /api/bookings/{bookingId}/no-show | |
8
+ |[**managerCancelBooking**](#managercancelbooking) | **POST** /api/bookings/{bookingId}/manager-cancel | |
9
9
 
10
10
  # **applyNoShowFee**
11
11
  > NoShowFeeResponse applyNoShowFee()
12
12
 
13
- Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
13
+ Appliquer des frais de no-show
14
14
 
15
15
  ### Example
16
16
 
17
17
  ```typescript
18
18
  import {
19
- ManagerBookingsApi,
19
+ BookingsManagerApi,
20
20
  Configuration
21
21
  } from '@tennac-booking/sdk';
22
22
 
23
23
  const configuration = new Configuration();
24
- const apiInstance = new ManagerBookingsApi(configuration);
24
+ const apiInstance = new BookingsManagerApi(configuration);
25
25
 
26
- let bookingId: string; //ID MongoDB de la réservation (default to undefined)
26
+ let bookingId: string; // (default to undefined)
27
27
 
28
28
  const { status, data } = await apiInstance.applyNoShowFee(
29
29
  bookingId
@@ -34,7 +34,7 @@ const { status, data } = await apiInstance.applyNoShowFee(
34
34
 
35
35
  |Name | Type | Description | Notes|
36
36
  |------------- | ------------- | ------------- | -------------|
37
- | **bookingId** | [**string**] | ID MongoDB de la réservation | defaults to undefined|
37
+ | **bookingId** | [**string**] | | defaults to undefined|
38
38
 
39
39
 
40
40
  ### Return type
@@ -54,33 +54,28 @@ const { status, data } = await apiInstance.applyNoShowFee(
54
54
  ### HTTP response details
55
55
  | Status code | Description | Response headers |
56
56
  |-------------|-------------|------------------|
57
- |**200** | Frais de no-show appliqués avec succès | - |
58
- |**400** | Requête invalide | - |
59
- |**401** | Non autorisé | - |
60
- |**403** | Accès interdit | - |
61
- |**404** | Ressource non trouvée | - |
62
- |**500** | Erreur serveur interne | - |
57
+ |**200** | Frais de no-show appliqué avec succès | - |
63
58
 
64
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)
65
60
 
66
61
  # **managerCancelBooking**
67
62
  > ManagerCancelBookingResponse managerCancelBooking(managerCancelBookingRequest)
68
63
 
69
- Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
64
+ Annuler une réservation (par un gestionnaire)
70
65
 
71
66
  ### Example
72
67
 
73
68
  ```typescript
74
69
  import {
75
- ManagerBookingsApi,
70
+ BookingsManagerApi,
76
71
  Configuration,
77
72
  ManagerCancelBookingRequest
78
73
  } from '@tennac-booking/sdk';
79
74
 
80
75
  const configuration = new Configuration();
81
- const apiInstance = new ManagerBookingsApi(configuration);
76
+ const apiInstance = new BookingsManagerApi(configuration);
82
77
 
83
- let bookingId: string; //ID MongoDB de la réservation à annuler (default to undefined)
78
+ let bookingId: string; // (default to undefined)
84
79
  let managerCancelBookingRequest: ManagerCancelBookingRequest; //
85
80
 
86
81
  const { status, data } = await apiInstance.managerCancelBooking(
@@ -94,7 +89,7 @@ const { status, data } = await apiInstance.managerCancelBooking(
94
89
  |Name | Type | Description | Notes|
95
90
  |------------- | ------------- | ------------- | -------------|
96
91
  | **managerCancelBookingRequest** | **ManagerCancelBookingRequest**| | |
97
- | **bookingId** | [**string**] | ID MongoDB de la réservation à annuler | defaults to undefined|
92
+ | **bookingId** | [**string**] | | defaults to undefined|
98
93
 
99
94
 
100
95
  ### Return type
@@ -115,11 +110,6 @@ const { status, data } = await apiInstance.managerCancelBooking(
115
110
  | Status code | Description | Response headers |
116
111
  |-------------|-------------|------------------|
117
112
  |**200** | Réservation annulée par le gestionnaire avec succès | - |
118
- |**400** | Requête invalide | - |
119
- |**401** | Non autorisé | - |
120
- |**403** | Accès interdit | - |
121
- |**404** | Réservation non trouvée | - |
122
- |**500** | Erreur serveur interne | - |
123
113
 
124
114
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
125
115
 
@@ -0,0 +1,323 @@
1
+ # BookingsStaffApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**checkInPlayers**](#checkinplayers) | **POST** /api/bookings/{bookingId}/check-in | |
8
+ |[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
9
+ |[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/{bookingId} | |
10
+ |[**getBookingPaymentStatus**](#getbookingpaymentstatus) | **GET** /api/bookings/{bookingId}/payment-status | |
11
+ |[**getDailyBookings**](#getdailybookings) | **GET** /api/bookings/daily/{date} | |
12
+ |[**getWeeklyBookings**](#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} | |
13
+
14
+ # **checkInPlayers**
15
+ > CheckInPlayersResponse checkInPlayers(checkInPlayersRequest)
16
+
17
+ Check-in des joueurs
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ BookingsStaffApi,
24
+ Configuration,
25
+ CheckInPlayersRequest
26
+ } from '@tennac-booking/sdk';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new BookingsStaffApi(configuration);
30
+
31
+ let bookingId: string; // (default to undefined)
32
+ let checkInPlayersRequest: CheckInPlayersRequest; //
33
+
34
+ const { status, data } = await apiInstance.checkInPlayers(
35
+ bookingId,
36
+ checkInPlayersRequest
37
+ );
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ |Name | Type | Description | Notes|
43
+ |------------- | ------------- | ------------- | -------------|
44
+ | **checkInPlayersRequest** | **CheckInPlayersRequest**| | |
45
+ | **bookingId** | [**string**] | | defaults to undefined|
46
+
47
+
48
+ ### Return type
49
+
50
+ **CheckInPlayersResponse**
51
+
52
+ ### Authorization
53
+
54
+ [bearerAuth](../README.md#bearerAuth)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**200** | Check-in effectué avec succès | - |
66
+
67
+ [[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)
68
+
69
+ # **getBookingById**
70
+ > BookingPopulated getBookingById()
71
+
72
+ Obtenir une réservation par ID
73
+
74
+ ### Example
75
+
76
+ ```typescript
77
+ import {
78
+ BookingsStaffApi,
79
+ Configuration
80
+ } from '@tennac-booking/sdk';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new BookingsStaffApi(configuration);
84
+
85
+ let bookingId: string; // (default to undefined)
86
+
87
+ const { status, data } = await apiInstance.getBookingById(
88
+ bookingId
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **bookingId** | [**string**] | | defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **BookingPopulated**
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
+ |**200** | Réservation récupérée | - |
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
+
120
+ # **getBookingHistoryStaff**
121
+ > BookingHistory getBookingHistoryStaff()
122
+
123
+ Obtenir l\'historique d\'une réservation par ID
124
+
125
+ ### Example
126
+
127
+ ```typescript
128
+ import {
129
+ BookingsStaffApi,
130
+ Configuration
131
+ } from '@tennac-booking/sdk';
132
+
133
+ const configuration = new Configuration();
134
+ const apiInstance = new BookingsStaffApi(configuration);
135
+
136
+ let bookingId: string; // (default to undefined)
137
+
138
+ const { status, data } = await apiInstance.getBookingHistoryStaff(
139
+ bookingId
140
+ );
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ |Name | Type | Description | Notes|
146
+ |------------- | ------------- | ------------- | -------------|
147
+ | **bookingId** | [**string**] | | defaults to undefined|
148
+
149
+
150
+ ### Return type
151
+
152
+ **BookingHistory**
153
+
154
+ ### Authorization
155
+
156
+ [bearerAuth](../README.md#bearerAuth)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ |**200** | Réservation récupérée | - |
168
+
169
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
170
+
171
+ # **getBookingPaymentStatus**
172
+ > BookingPaymentStatusResponse getBookingPaymentStatus()
173
+
174
+ Obtenir le statut des paiements d\'une réservation
175
+
176
+ ### Example
177
+
178
+ ```typescript
179
+ import {
180
+ BookingsStaffApi,
181
+ Configuration
182
+ } from '@tennac-booking/sdk';
183
+
184
+ const configuration = new Configuration();
185
+ const apiInstance = new BookingsStaffApi(configuration);
186
+
187
+ let bookingId: string; // (default to undefined)
188
+
189
+ const { status, data } = await apiInstance.getBookingPaymentStatus(
190
+ bookingId
191
+ );
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ |Name | Type | Description | Notes|
197
+ |------------- | ------------- | ------------- | -------------|
198
+ | **bookingId** | [**string**] | | defaults to undefined|
199
+
200
+
201
+ ### Return type
202
+
203
+ **BookingPaymentStatusResponse**
204
+
205
+ ### Authorization
206
+
207
+ [bearerAuth](../README.md#bearerAuth)
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: Not defined
212
+ - **Accept**: application/json
213
+
214
+
215
+ ### HTTP response details
216
+ | Status code | Description | Response headers |
217
+ |-------------|-------------|------------------|
218
+ |**200** | Statut des paiements récupéré | - |
219
+
220
+ [[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)
221
+
222
+ # **getDailyBookings**
223
+ > Array<BookingPopulated> getDailyBookings()
224
+
225
+ Obtenir les réservations journalières
226
+
227
+ ### Example
228
+
229
+ ```typescript
230
+ import {
231
+ BookingsStaffApi,
232
+ Configuration
233
+ } from '@tennac-booking/sdk';
234
+
235
+ const configuration = new Configuration();
236
+ const apiInstance = new BookingsStaffApi(configuration);
237
+
238
+ let date: string; // (default to undefined)
239
+
240
+ const { status, data } = await apiInstance.getDailyBookings(
241
+ date
242
+ );
243
+ ```
244
+
245
+ ### Parameters
246
+
247
+ |Name | Type | Description | Notes|
248
+ |------------- | ------------- | ------------- | -------------|
249
+ | **date** | [**string**] | | defaults to undefined|
250
+
251
+
252
+ ### Return type
253
+
254
+ **Array<BookingPopulated>**
255
+
256
+ ### Authorization
257
+
258
+ [bearerAuth](../README.md#bearerAuth)
259
+
260
+ ### HTTP request headers
261
+
262
+ - **Content-Type**: Not defined
263
+ - **Accept**: application/json
264
+
265
+
266
+ ### HTTP response details
267
+ | Status code | Description | Response headers |
268
+ |-------------|-------------|------------------|
269
+ |**200** | Réservations journalières récupérées | - |
270
+
271
+ [[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)
272
+
273
+ # **getWeeklyBookings**
274
+ > Array<BookingPopulated> getWeeklyBookings()
275
+
276
+ Obtenir les réservations hebdomadaires
277
+
278
+ ### Example
279
+
280
+ ```typescript
281
+ import {
282
+ BookingsStaffApi,
283
+ Configuration
284
+ } from '@tennac-booking/sdk';
285
+
286
+ const configuration = new Configuration();
287
+ const apiInstance = new BookingsStaffApi(configuration);
288
+
289
+ let weekId: string; // (default to undefined)
290
+
291
+ const { status, data } = await apiInstance.getWeeklyBookings(
292
+ weekId
293
+ );
294
+ ```
295
+
296
+ ### Parameters
297
+
298
+ |Name | Type | Description | Notes|
299
+ |------------- | ------------- | ------------- | -------------|
300
+ | **weekId** | [**string**] | | defaults to undefined|
301
+
302
+
303
+ ### Return type
304
+
305
+ **Array<BookingPopulated>**
306
+
307
+ ### Authorization
308
+
309
+ [bearerAuth](../README.md#bearerAuth)
310
+
311
+ ### HTTP request headers
312
+
313
+ - **Content-Type**: Not defined
314
+ - **Accept**: application/json
315
+
316
+
317
+ ### HTTP response details
318
+ | Status code | Description | Response headers |
319
+ |-------------|-------------|------------------|
320
+ |**200** | Réservations hebdomadaires récupérées | - |
321
+
322
+ [[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)
323
+
@@ -1,32 +1,32 @@
1
- # UserBookingsApi
1
+ # BookingsUserApi
2
2
 
3
3
  All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**blockSlot**](#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau|
8
- |[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
7
+ |[**cancelBooking**](#cancelbooking) | **DELETE** /api/bookings/{bookingId} | |
8
+ |[**createBooking**](#createbooking) | **POST** /api/bookings | |
9
9
 
10
- # **blockSlot**
11
- > BlockSlotResponse blockSlot()
10
+ # **cancelBooking**
11
+ > CancelBookingResponse cancelBooking()
12
12
 
13
- Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
13
+ Annuler une réservation (par le créateur)
14
14
 
15
15
  ### Example
16
16
 
17
17
  ```typescript
18
18
  import {
19
- UserBookingsApi,
19
+ BookingsUserApi,
20
20
  Configuration
21
21
  } from '@tennac-booking/sdk';
22
22
 
23
23
  const configuration = new Configuration();
24
- const apiInstance = new UserBookingsApi(configuration);
24
+ const apiInstance = new BookingsUserApi(configuration);
25
25
 
26
- let slotId: string; //ID MongoDB du créneau à bloquer (default to undefined)
26
+ let bookingId: string; // (default to undefined)
27
27
 
28
- const { status, data } = await apiInstance.blockSlot(
29
- slotId
28
+ const { status, data } = await apiInstance.cancelBooking(
29
+ bookingId
30
30
  );
31
31
  ```
32
32
 
@@ -34,12 +34,12 @@ const { status, data } = await apiInstance.blockSlot(
34
34
 
35
35
  |Name | Type | Description | Notes|
36
36
  |------------- | ------------- | ------------- | -------------|
37
- | **slotId** | [**string**] | ID MongoDB du créneau à bloquer | defaults to undefined|
37
+ | **bookingId** | [**string**] | | defaults to undefined|
38
38
 
39
39
 
40
40
  ### Return type
41
41
 
42
- **BlockSlotResponse**
42
+ **CancelBookingResponse**
43
43
 
44
44
  ### Authorization
45
45
 
@@ -54,30 +54,26 @@ const { status, data } = await apiInstance.blockSlot(
54
54
  ### HTTP response details
55
55
  | Status code | Description | Response headers |
56
56
  |-------------|-------------|------------------|
57
- |**200** | Créneau bloqué avec succès | - |
58
- |**400** | Requête invalide | - |
59
- |**401** | Non autorisé | - |
60
- |**404** | Ressource non trouvée | - |
61
- |**500** | Erreur serveur interne | - |
57
+ |**200** | Réservation annulée avec succès | - |
62
58
 
63
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)
64
60
 
65
61
  # **createBooking**
66
62
  > BookingResponse createBooking(createBookingRequest)
67
63
 
68
- Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
64
+ Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
69
65
 
70
66
  ### Example
71
67
 
72
68
  ```typescript
73
69
  import {
74
- UserBookingsApi,
70
+ BookingsUserApi,
75
71
  Configuration,
76
72
  CreateBookingRequest
77
73
  } from '@tennac-booking/sdk';
78
74
 
79
75
  const configuration = new Configuration();
80
- const apiInstance = new UserBookingsApi(configuration);
76
+ const apiInstance = new BookingsUserApi(configuration);
81
77
 
82
78
  let createBookingRequest: CreateBookingRequest; //
83
79
 
@@ -111,10 +107,6 @@ const { status, data } = await apiInstance.createBooking(
111
107
  | Status code | Description | Response headers |
112
108
  |-------------|-------------|------------------|
113
109
  |**201** | Réservation créé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
110
 
119
111
  [[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
112
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | | [optional] [default to undefined]
9
- **booking** | [**CancelBookingResponseBooking**](CancelBookingResponseBooking.md) | | [optional] [default to undefined]
8
+ **message** | **string** | Message de confirmation | [default to undefined]
9
+ **booking** | [**BookingInfo**](BookingInfo.md) | | [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -0,0 +1,30 @@
1
+ # CaptureResult
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | Type de paiement | [default to undefined]
9
+ **playerId** | **string** | ID du joueur (optionnel) | [optional] [default to undefined]
10
+ **paymentIntentId** | **string** | ID du PaymentIntent Stripe | [default to undefined]
11
+ **amount** | **number** | Montant capturé | [optional] [default to undefined]
12
+ **status** | **string** | Statut de la capture | [default to undefined]
13
+ **error** | **string** | Erreur (si échoué) | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { CaptureResult } from '@tennac-booking/sdk';
19
+
20
+ const instance: CaptureResult = {
21
+ type,
22
+ playerId,
23
+ paymentIntentId,
24
+ amount,
25
+ status,
26
+ error,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # CheckInPlayersRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerIds** | **Array&lt;string&gt;** | Liste des IDs des joueurs qui ont payé/sont arrivés | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { CheckInPlayersRequest } from '@tennac-booking/sdk';
14
+
15
+ const instance: CheckInPlayersRequest = {
16
+ playerIds,
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)
@@ -5,12 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | | [optional] [default to undefined]
9
- **checkedInPlayers** | [**Array&lt;CheckInPlayersResponseCheckedInPlayersInner&gt;**](CheckInPlayersResponseCheckedInPlayersInner.md) | | [optional] [default to undefined]
10
- **notFoundPlayers** | **Array&lt;string&gt;** | | [optional] [default to undefined]
11
- **allPlayersCheckedIn** | **boolean** | | [optional] [default to undefined]
12
- **bookingFullyPaid** | **boolean** | | [optional] [default to undefined]
13
- **totalPlayers** | **number** | | [optional] [default to undefined]
8
+ **message** | **string** | Message de confirmation | [default to undefined]
9
+ **checkedInPlayers** | [**Array&lt;CheckedInPlayer&gt;**](CheckedInPlayer.md) | Joueurs ayant effectué le check-in | [default to undefined]
10
+ **notFoundPlayers** | **Array&lt;string&gt;** | Joueurs non trouvés | [default to undefined]
11
+ **allPlayersCheckedIn** | **boolean** | Tous les joueurs ont fait le check-in | [default to undefined]
12
+ **bookingFullyPaid** | **boolean** | Réservation entièrement payée | [default to undefined]
13
+ **totalPlayers** | **number** | Nombre total de joueurs | [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -0,0 +1,34 @@
1
+ # CheckedInPlayer
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | ID du joueur | [default to undefined]
9
+ **invoiceId** | **string** | ID de la facture | [default to undefined]
10
+ **amount** | **number** | Montant payé | [default to undefined]
11
+ **previousStatus** | **string** | Statut précédent (optionnel) | [optional] [default to undefined]
12
+ **newStatus** | **string** | Nouveau statut (optionnel) | [optional] [default to undefined]
13
+ **status** | **string** | Statut actuel | [optional] [default to undefined]
14
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
15
+ **note** | **string** | Note additionnelle | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { CheckedInPlayer } from '@tennac-booking/sdk';
21
+
22
+ const instance: CheckedInPlayer = {
23
+ playerId,
24
+ invoiceId,
25
+ amount,
26
+ previousStatus,
27
+ newStatus,
28
+ status,
29
+ paymentMethod,
30
+ note,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)