@tennac-booking/sdk 1.0.87 → 1.0.89

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 (102) hide show
  1. package/.openapi-generator/FILES +247 -256
  2. package/README.md +30 -47
  3. package/api.ts +1722 -2568
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1406 -1986
  8. package/dist/api.js +481 -876
  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 +1406 -1986
  16. package/dist/esm/api.js +472 -871
  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/{ConfirmPaymentMethodRequestBody.md → AddCreditsToCustomer200Response.md} +5 -5
  28. package/docs/AddCreditsToCustomerRequest.md +22 -0
  29. package/docs/BookingClubInfo.md +28 -0
  30. package/docs/BookingCourtInfo.md +22 -0
  31. package/docs/BookingInfo.md +2 -2
  32. package/docs/BookingPaymentStatus.md +24 -0
  33. package/docs/BookingPlayerPaymentSummary.md +34 -0
  34. package/docs/BookingPopulated.md +3 -3
  35. package/docs/BookingPriceBody.md +22 -0
  36. package/docs/BookingPriceResponse.md +22 -0
  37. package/docs/BookingResponse.md +2 -0
  38. package/docs/BookingSlotInfo.md +30 -0
  39. package/docs/{ClubDaySchedule.md → BookingSportInfo.md} +7 -7
  40. package/docs/BookingSummary.md +54 -2
  41. package/docs/BookingsApi.md +55 -0
  42. package/docs/ClubAnalyticsStaffApi.md +0 -173
  43. package/docs/ClubResponse.md +8 -0
  44. package/docs/ClubSettingsManagerApi.md +55 -54
  45. package/docs/ClubSettingsResponse.md +39 -0
  46. package/docs/ClubsApi.md +1 -1
  47. package/docs/ClubsManagerApi.md +58 -52
  48. package/docs/ClubsStaffApi.md +0 -44
  49. package/docs/CreateBookingRequest.md +4 -2
  50. package/docs/CreateClubSettingsRequest.md +34 -0
  51. package/docs/CreateEventRequest.md +1 -3
  52. package/docs/{AddPaymentMethodRequestBody.md → DeleteClubSettingsResponse.md} +5 -5
  53. package/docs/EventResponse.md +1 -1
  54. package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
  55. package/docs/IUserAttributes.md +2 -12
  56. package/docs/InvoiceStatus.md +22 -0
  57. package/docs/MyClubInfosResponse.md +26 -0
  58. package/docs/PartialClubResponse.md +8 -0
  59. package/docs/PlayerPrice.md +30 -0
  60. package/docs/QuickReservationClubSport.md +22 -0
  61. package/docs/QuickReservationClubSummary.md +4 -0
  62. package/docs/SlotInfo.md +2 -2
  63. package/docs/SportsPublicApi.md +53 -0
  64. package/docs/StaffUserProfileResponse.md +2 -12
  65. package/docs/SubscribeRequestBody.md +2 -0
  66. package/docs/SubscriptionInfo.md +24 -0
  67. package/docs/UpdateClubSettingsRequest.md +32 -0
  68. package/docs/UpdateEventRequest.md +1 -1
  69. package/docs/UserApi.md +60 -0
  70. package/docs/UserBookingsResponse.md +28 -0
  71. package/docs/UserProfileResponse.md +4 -12
  72. package/docs/UsersApi.md +4 -160
  73. package/index.ts +1 -1
  74. package/package.json +1 -1
  75. package/docs/BookingDetailResponse.md +0 -46
  76. package/docs/ClubGeneralSettingsResponse.md +0 -32
  77. package/docs/ClubHoursSettingsResponse.md +0 -22
  78. package/docs/ClubLocationSettings.md +0 -26
  79. package/docs/ClubPlayerBookingItem.md +0 -36
  80. package/docs/ClubPlayerBookingsPagination.md +0 -28
  81. package/docs/ClubPlayerBookingsResponse.md +0 -24
  82. package/docs/ClubPlayerDetailResponse.md +0 -46
  83. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  84. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  85. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  86. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  87. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  88. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  89. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  90. package/docs/ClubPresentationSettingsResponse.md +0 -26
  91. package/docs/ClubPricingPeriodResponse.md +0 -30
  92. package/docs/ClubReservationSettingsResponse.md +0 -28
  93. package/docs/ClubSettingsStaffApi.md +0 -139
  94. package/docs/ClubWeeklySchedule.md +0 -32
  95. package/docs/ConfirmPaymentMethodResponse.md +0 -22
  96. package/docs/PartialClubWeeklySchedule.md +0 -33
  97. package/docs/PaymentMethodSetupResponse.md +0 -24
  98. package/docs/SetupPaymentMethodResponse.md +0 -24
  99. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  100. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  101. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  102. package/docs/UpdateClubReservationSettingsRequest.md +0 -28
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost*
7
7
  |[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
8
8
  |[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
9
9
  |[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
10
- |[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
11
10
  |[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
12
11
  |[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
13
12
  |[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
@@ -144,49 +143,6 @@ This endpoint does not have any parameters.
144
143
 
145
144
  [[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)
146
145
 
147
- # **getClubPresentationSettings**
148
- > ClubPresentationSettingsResponse getClubPresentationSettings()
149
-
150
-
151
- ### Example
152
-
153
- ```typescript
154
- import {
155
- ClubsStaffApi,
156
- Configuration
157
- } from '@tennac-booking/sdk';
158
-
159
- const configuration = new Configuration();
160
- const apiInstance = new ClubsStaffApi(configuration);
161
-
162
- const { status, data } = await apiInstance.getClubPresentationSettings();
163
- ```
164
-
165
- ### Parameters
166
- This endpoint does not have any parameters.
167
-
168
-
169
- ### Return type
170
-
171
- **ClubPresentationSettingsResponse**
172
-
173
- ### Authorization
174
-
175
- [bearerAuth](../README.md#bearerAuth)
176
-
177
- ### HTTP request headers
178
-
179
- - **Content-Type**: Not defined
180
- - **Accept**: application/json
181
-
182
-
183
- ### HTTP response details
184
- | Status code | Description | Response headers |
185
- |-------------|-------------|------------------|
186
- |**200** | Présentation du club | - |
187
-
188
- [[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)
189
-
190
146
  # **getClubRoles**
191
147
  > GetClubRoles200Response getClubRoles()
192
148
 
@@ -5,11 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **slotId** | **string** | ID du créneau à réserver | [default to undefined]
8
+ **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
9
9
  **players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
10
10
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
11
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
12
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
13
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
13
14
 
14
15
  ## Example
15
16
 
@@ -17,11 +18,12 @@ Name | Type | Description | Notes
17
18
  import { CreateBookingRequest } from '@tennac-booking/sdk';
18
19
 
19
20
  const instance: CreateBookingRequest = {
20
- slotId,
21
+ slotIds,
21
22
  players,
22
23
  isCreatorPayingAll,
23
24
  paymentMethod,
24
25
  useDefaultPaymentMethod,
26
+ creditToUseInCents,
25
27
  };
26
28
  ```
27
29
 
@@ -0,0 +1,34 @@
1
+ # CreateClubSettingsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | ID du club | [default to undefined]
9
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
10
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
11
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
12
+ **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
13
+ **availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [optional] [default to undefined]
14
+ **sponsors** | **Array<string>** | Liste des sponsors | [optional] [default to undefined]
15
+ **timeBeforePayment** | **number** | Temps avant paiement en minutes | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { CreateClubSettingsRequest } from '@tennac-booking/sdk';
21
+
22
+ const instance: CreateClubSettingsRequest = {
23
+ clubId,
24
+ maxWeeklyBookings,
25
+ allowMultipleBookingsAtTheSameTime,
26
+ sameTimeBookingsLimit,
27
+ cancellationLimitHours,
28
+ availabilityPeriodInDays,
29
+ sponsors,
30
+ timeBeforePayment,
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)
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **photoUrl** | **string** | | [optional] [default to undefined]
12
12
  **startDate** | **string** | | [default to undefined]
13
13
  **endDate** | **string** | | [default to undefined]
14
- **courts** | **Array<string>** | | [default to undefined]
14
+ **courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
15
15
  **sports** | **Array<string>** | | [default to undefined]
16
16
  **recurringType** | **string** | | [default to undefined]
17
17
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
@@ -22,7 +22,6 @@ Name | Type | Description | Notes
22
22
  **teamLimit** | **number** | | [optional] [default to undefined]
23
23
  **price** | **number** | | [optional] [default to undefined]
24
24
  **subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
25
- **levels** | **Array<number>** | | [optional] [default to undefined]
26
25
  **visibilityType** | **string** | | [default to undefined]
27
26
 
28
27
  ## Example
@@ -48,7 +47,6 @@ const instance: CreateEventRequest = {
48
47
  teamLimit,
49
48
  price,
50
49
  subscriberPrices,
51
- levels,
52
50
  visibilityType,
53
51
  };
54
52
  ```
@@ -1,19 +1,19 @@
1
- # AddPaymentMethodRequestBody
1
+ # DeleteClubSettingsResponse
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **paymentMethodId** | **string** | | [default to undefined]
8
+ **message** | **string** | Message de confirmation | [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { AddPaymentMethodRequestBody } from '@tennac-booking/sdk';
13
+ import { DeleteClubSettingsResponse } from '@tennac-booking/sdk';
14
14
 
15
- const instance: AddPaymentMethodRequestBody = {
16
- paymentMethodId,
15
+ const instance: DeleteClubSettingsResponse = {
16
+ message,
17
17
  };
18
18
  ```
19
19
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  **photoUrl** | **string** | | [optional] [default to undefined]
14
14
  **startDate** | **string** | | [default to undefined]
15
15
  **endDate** | **string** | | [default to undefined]
16
- **courts** | **Array<string>** | | [default to undefined]
16
+ **courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
17
17
  **sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
18
18
  **recurringType** | **string** | | [default to undefined]
19
19
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
@@ -1,19 +1,17 @@
1
- # SetupPaymentMethodRequestBody
1
+ # EventResponseCourtsInner
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | | [default to undefined]
9
8
 
10
9
  ## Example
11
10
 
12
11
  ```typescript
13
- import { SetupPaymentMethodRequestBody } from '@tennac-booking/sdk';
12
+ import { EventResponseCourtsInner } from '@tennac-booking/sdk';
14
13
 
15
- const instance: SetupPaymentMethodRequestBody = {
16
- clubId,
14
+ const instance: EventResponseCourtsInner = {
17
15
  };
18
16
  ```
19
17
 
@@ -13,9 +13,7 @@ Name | Type | Description | Notes
13
13
  **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
14
  **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
15
15
  **isAccountVerified** | **boolean** | | [default to undefined]
16
- **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
17
16
  **levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
18
- **stripeCustomerId** | **string** | | [optional] [default to undefined]
19
17
  **phone** | **string** | | [optional] [default to undefined]
20
18
  **password** | **string** | | [optional] [default to undefined]
21
19
  **profilePicture** | **string** | | [optional] [default to undefined]
@@ -28,15 +26,12 @@ Name | Type | Description | Notes
28
26
  **createdAt** | **string** | | [default to undefined]
29
27
  **updatedAt** | **string** | | [default to undefined]
30
28
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
31
- **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
32
- **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
33
- **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
34
- **setupIntentId** | **string** | | [optional] [default to undefined]
35
29
  **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
36
30
  **description** | **string** | | [optional] [default to undefined]
37
31
  **isProfileVisible** | **boolean** | | [default to undefined]
38
32
  **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
39
33
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
34
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
40
35
 
41
36
  ## Example
42
37
 
@@ -52,9 +47,7 @@ const instance: IUserAttributes = {
52
47
  gender,
53
48
  location,
54
49
  isAccountVerified,
55
- isCreditCardRegistered,
56
50
  levelBySports,
57
- stripeCustomerId,
58
51
  phone,
59
52
  password,
60
53
  profilePicture,
@@ -67,15 +60,12 @@ const instance: IUserAttributes = {
67
60
  createdAt,
68
61
  updatedAt,
69
62
  isLevelCertified,
70
- paymentMethods,
71
- defaultPaymentMethodId,
72
- paymentMethodSetupCompleted,
73
- setupIntentId,
74
63
  favoriteClubs,
75
64
  description,
76
65
  isProfileVisible,
77
66
  favoritePlayers,
78
67
  sports,
68
+ stripeCustomerId,
79
69
  };
80
70
  ```
81
71
 
@@ -0,0 +1,22 @@
1
+ # InvoiceStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `SetupPending` (value: `'setup_pending'`)
7
+
8
+ * `SetupSuccess` (value: `'setup_success'`)
9
+
10
+ * `Pending` (value: `'pending'`)
11
+
12
+ * `Paid` (value: `'paid'`)
13
+
14
+ * `Failed` (value: `'failed'`)
15
+
16
+ * `Authorized` (value: `'authorized'`)
17
+
18
+ * `Canceled` (value: `'canceled'`)
19
+
20
+ * `Expired` (value: `'expired'`)
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # MyClubInfosResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **remainingBookings** | **number** | | [default to undefined]
9
+ **sameTimeBookingsLimit** | **number** | | [optional] [default to undefined]
10
+ **availableCredit** | **number** | | [default to undefined]
11
+ **subscriptionPlans** | **Array<any>** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { MyClubInfosResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: MyClubInfosResponse = {
19
+ remainingBookings,
20
+ sameTimeBookingsLimit,
21
+ availableCredit,
22
+ subscriptionPlans,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -20,6 +20,10 @@ Name | Type | Description | Notes
20
20
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
21
21
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
22
22
  **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
23
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
24
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
25
+ **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
26
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
23
27
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
24
28
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
25
29
 
@@ -43,6 +47,10 @@ const instance: PartialClubResponse = {
43
47
  clubDashBoardUrl,
44
48
  isNoShowEnabled,
45
49
  sports,
50
+ allowMultipleBookingsAtTheSameTime,
51
+ sameTimeBookingsLimit,
52
+ cancellationLimitHours,
53
+ maxWeeklyBookings,
46
54
  createdAt,
47
55
  updatedAt,
48
56
  };
@@ -0,0 +1,30 @@
1
+ # PlayerPrice
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **subscriptions** | [**Array<SubscriptionInfo>**](SubscriptionInfo.md) | | [default to undefined]
12
+ **creditAvailablesInCents** | **number** | | [optional] [default to undefined]
13
+ **price** | **number** | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { PlayerPrice } from '@tennac-booking/sdk';
19
+
20
+ const instance: PlayerPrice = {
21
+ playerId,
22
+ firstName,
23
+ lastName,
24
+ subscriptions,
25
+ creditAvailablesInCents,
26
+ price,
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,22 @@
1
+ # QuickReservationClubSport
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du sport | [default to undefined]
9
+ **key** | **string** | Clé du sport | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { QuickReservationClubSport } from '@tennac-booking/sdk';
15
+
16
+ const instance: QuickReservationClubSport = {
17
+ id,
18
+ key,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -7,9 +7,11 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **clubId** | **string** | ID du club | [default to undefined]
9
9
  **clubName** | **string** | Nom du club | [default to undefined]
10
+ **description** | **string** | Description du club | [optional] [default to undefined]
10
11
  **distanceInMeters** | **number** | Distance par rapport à la recherche, en mètres | [default to undefined]
11
12
  **location** | [**QuickReservationClubSummaryLocation**](QuickReservationClubSummaryLocation.md) | | [optional] [default to undefined]
12
13
  **slots** | [**Array<QuickReservationSlotSummary>**](QuickReservationSlotSummary.md) | Créneaux disponibles correspondant aux filtres | [default to undefined]
14
+ **sports** | [**Array<QuickReservationClubSport>**](QuickReservationClubSport.md) | Sports disponibles dans le club | [optional] [default to undefined]
13
15
 
14
16
  ## Example
15
17
 
@@ -19,9 +21,11 @@ import { QuickReservationClubSummary } from '@tennac-booking/sdk';
19
21
  const instance: QuickReservationClubSummary = {
20
22
  clubId,
21
23
  clubName,
24
+ description,
22
25
  distanceInMeters,
23
26
  location,
24
27
  slots,
28
+ sports,
25
29
  };
26
30
  ```
27
31
 
package/docs/SlotInfo.md CHANGED
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID du slot | [default to undefined]
9
9
  **startDate** | **string** | Date de début | [default to undefined]
10
10
  **endDate** | **string** | Date de fin | [default to undefined]
11
- **court** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
11
+ **courtId** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
12
12
 
13
13
  ## Example
14
14
 
@@ -19,7 +19,7 @@ const instance: SlotInfo = {
19
19
  id,
20
20
  startDate,
21
21
  endDate,
22
- court,
22
+ courtId,
23
23
  };
24
24
  ```
25
25
 
@@ -0,0 +1,53 @@
1
+ # SportsPublicApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getVerifiedSports**](#getverifiedsports) | **GET** /api/sports/verified | |
8
+
9
+ # **getVerifiedSports**
10
+ > Array<SportResponse> getVerifiedSports()
11
+
12
+ Récupère tous les sports vérifiés, accessibles publiquement
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ SportsPublicApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new SportsPublicApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getVerifiedSports();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<SportResponse>**
35
+
36
+ ### Authorization
37
+
38
+ No authorization required
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** | Sports vérifiés | - |
50
+ |**500** | Server Error | - |
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
+
@@ -13,9 +13,7 @@ Name | Type | Description | Notes
13
13
  **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
14
  **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
15
15
  **isAccountVerified** | **boolean** | | [default to undefined]
16
- **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
17
16
  **levelBySports** | [**Array&lt;ILevelBySports&gt;**](ILevelBySports.md) | | [optional] [default to undefined]
18
- **stripeCustomerId** | **string** | | [optional] [default to undefined]
19
17
  **phone** | **string** | | [optional] [default to undefined]
20
18
  **password** | **string** | | [optional] [default to undefined]
21
19
  **profilePicture** | **string** | | [optional] [default to undefined]
@@ -28,15 +26,12 @@ Name | Type | Description | Notes
28
26
  **createdAt** | **string** | | [default to undefined]
29
27
  **updatedAt** | **string** | | [default to undefined]
30
28
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
31
- **paymentMethods** | **Array&lt;string&gt;** | | [optional] [default to undefined]
32
- **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
33
- **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
34
- **setupIntentId** | **string** | | [optional] [default to undefined]
35
29
  **favoriteClubs** | **Array&lt;string&gt;** | | [optional] [default to undefined]
36
30
  **description** | **string** | | [optional] [default to undefined]
37
31
  **isProfileVisible** | **boolean** | | [default to undefined]
38
32
  **favoritePlayers** | **Array&lt;string&gt;** | | [optional] [default to undefined]
39
33
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
34
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
40
35
  **isSubscribedToMyClub** | **boolean** | | [optional] [default to undefined]
41
36
  **creditOnMyClub** | **number** | | [optional] [default to undefined]
42
37
 
@@ -54,9 +49,7 @@ const instance: StaffUserProfileResponse = {
54
49
  gender,
55
50
  location,
56
51
  isAccountVerified,
57
- isCreditCardRegistered,
58
52
  levelBySports,
59
- stripeCustomerId,
60
53
  phone,
61
54
  password,
62
55
  profilePicture,
@@ -69,15 +62,12 @@ const instance: StaffUserProfileResponse = {
69
62
  createdAt,
70
63
  updatedAt,
71
64
  isLevelCertified,
72
- paymentMethods,
73
- defaultPaymentMethodId,
74
- paymentMethodSetupCompleted,
75
- setupIntentId,
76
65
  favoriteClubs,
77
66
  description,
78
67
  isProfileVisible,
79
68
  favoritePlayers,
80
69
  sports,
70
+ stripeCustomerId,
81
71
  isSubscribedToMyClub,
82
72
  creditOnMyClub,
83
73
  };
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **clubId** | **string** | | [default to undefined]
9
9
  **priceId** | **string** | | [default to undefined]
10
+ **useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import { SubscribeRequestBody } from '@tennac-booking/sdk';
16
17
  const instance: SubscribeRequestBody = {
17
18
  clubId,
18
19
  priceId,
20
+ useDefaultPaymentMethod,
19
21
  };
20
22
  ```
21
23
 
@@ -0,0 +1,24 @@
1
+ # SubscriptionInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptionPlanName** | **string** | | [optional] [default to undefined]
9
+ **subscriptionDescription** | **string** | | [optional] [default to undefined]
10
+ **reducedAmountInCents** | **number** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { SubscriptionInfo } from '@tennac-booking/sdk';
16
+
17
+ const instance: SubscriptionInfo = {
18
+ subscriptionPlanName,
19
+ subscriptionDescription,
20
+ reducedAmountInCents,
21
+ };
22
+ ```
23
+
24
+ [[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,32 @@
1
+ # UpdateClubSettingsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
9
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
10
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
11
+ **cancellationLimitHours** | **number** | Limite d\&#39;annulation en heures | [optional] [default to undefined]
12
+ **availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [optional] [default to undefined]
13
+ **sponsors** | **Array&lt;string&gt;** | Liste des sponsors | [optional] [default to undefined]
14
+ **timeBeforePayment** | **number** | Temps avant paiement en minutes | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { UpdateClubSettingsRequest } from '@tennac-booking/sdk';
20
+
21
+ const instance: UpdateClubSettingsRequest = {
22
+ maxWeeklyBookings,
23
+ allowMultipleBookingsAtTheSameTime,
24
+ sameTimeBookingsLimit,
25
+ cancellationLimitHours,
26
+ availabilityPeriodInDays,
27
+ sponsors,
28
+ timeBeforePayment,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **photoUrl** | **string** | | [optional] [default to undefined]
12
12
  **startDate** | **string** | | [optional] [default to undefined]
13
13
  **endDate** | **string** | | [optional] [default to undefined]
14
- **courts** | **Array&lt;string&gt;** | | [optional] [default to undefined]
14
+ **courts** | [**Array&lt;EventResponseCourtsInner&gt;**](EventResponseCourtsInner.md) | | [optional] [default to undefined]
15
15
  **sports** | **Array&lt;string&gt;** | | [optional] [default to undefined]
16
16
  **recurringType** | **string** | | [optional] [default to undefined]
17
17
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]