@tennac-booking/sdk 1.0.88 → 1.0.90

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 (61) hide show
  1. package/.openapi-generator/FILES +16 -7
  2. package/README.md +19 -12
  3. package/api.ts +1053 -620
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +844 -443
  8. package/dist/api.js +296 -209
  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 +844 -443
  16. package/dist/esm/api.js +284 -206
  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/BookingClubInfo.md +28 -0
  28. package/docs/{SetupPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
  29. package/docs/BookingInfo.md +2 -2
  30. package/docs/BookingPaymentStatus.md +24 -0
  31. package/docs/BookingPlayerPaymentSummary.md +34 -0
  32. package/docs/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
  33. package/docs/BookingPriceResponse.md +22 -0
  34. package/docs/BookingResponse.md +2 -0
  35. package/docs/BookingSlotInfo.md +30 -0
  36. package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
  37. package/docs/BookingSummary.md +54 -2
  38. package/docs/BookingsApi.md +55 -0
  39. package/docs/ClubResponse.md +8 -0
  40. package/docs/ClubsApi.md +1 -1
  41. package/docs/CreateBookingRequest.md +4 -2
  42. package/docs/IUserAttributes.md +2 -12
  43. package/docs/InvoiceStatus.md +22 -0
  44. package/docs/MyClubInfosResponse.md +26 -0
  45. package/docs/PartialClubResponse.md +8 -0
  46. package/docs/PlayerPrice.md +30 -0
  47. package/docs/{ConfirmPaymentMethodResponse.md → QuickReservationClubSport.md} +7 -7
  48. package/docs/QuickReservationClubSummary.md +4 -0
  49. package/docs/SportsPublicApi.md +53 -0
  50. package/docs/StaffUserProfileResponse.md +2 -12
  51. package/docs/SubscribeRequestBody.md +2 -0
  52. package/docs/SubscriptionInfo.md +24 -0
  53. package/docs/UserApi.md +60 -0
  54. package/docs/UserBookingsResponse.md +28 -0
  55. package/docs/UserProfileResponse.md +4 -12
  56. package/docs/UsersApi.md +4 -160
  57. package/index.ts +1 -1
  58. package/package.json +1 -1
  59. package/docs/BookingDetailResponse.md +0 -46
  60. package/docs/PaymentMethodSetupResponse.md +0 -24
  61. package/docs/SetupPaymentMethodResponse.md +0 -24
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.77
5
+ * The version of the OpenAPI document: 1.0.89
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.77
7
+ * The version of the OpenAPI document: 1.0.89
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.77
5
+ * The version of the OpenAPI document: 1.0.89
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.77
7
+ * The version of the OpenAPI document: 1.0.89
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.77
5
+ * The version of the OpenAPI document: 1.0.89
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.77
7
+ * The version of the OpenAPI document: 1.0.89
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.77
5
+ * The version of the OpenAPI document: 1.0.89
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.77
7
+ * The version of the OpenAPI document: 1.0.89
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.77
5
+ * The version of the OpenAPI document: 1.0.89
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.77
8
+ * The version of the OpenAPI document: 1.0.89
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,28 @@
1
+ # BookingClubInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **picture** | **string** | | [optional] [default to undefined]
11
+ **address** | **string** | | [optional] [default to undefined]
12
+ **location** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { BookingClubInfo } from '@tennac-booking/sdk';
18
+
19
+ const instance: BookingClubInfo = {
20
+ id,
21
+ name,
22
+ picture,
23
+ address,
24
+ location,
25
+ };
26
+ ```
27
+
28
+ [[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,19 +1,21 @@
1
- # SetupPaymentMethodRequestBody
1
+ # BookingCourtInfo
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | | [default to undefined]
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
12
13
  ```typescript
13
- import { SetupPaymentMethodRequestBody } from '@tennac-booking/sdk';
14
+ import { BookingCourtInfo } from '@tennac-booking/sdk';
14
15
 
15
- const instance: SetupPaymentMethodRequestBody = {
16
- clubId,
16
+ const instance: BookingCourtInfo = {
17
+ id,
18
+ name,
17
19
  };
18
20
  ```
19
21
 
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **playersIds** | **Array<string>** | Liste des IDs des joueurs | [default to undefined]
12
12
  **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
13
13
  **totalPrice** | **number** | Prix total en euros | [default to undefined]
14
- **slotId** | **string** | ID du créneau | [default to undefined]
14
+ **slotIds** | **Array<string>** | ID du créneau | [default to undefined]
15
15
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
16
16
  **createdAt** | **string** | Date de création | [default to undefined]
17
17
  **updatedAt** | **string** | Date de mise à jour | [default to undefined]
@@ -34,7 +34,7 @@ const instance: BookingInfo = {
34
34
  playersIds,
35
35
  status,
36
36
  totalPrice,
37
- slotId,
37
+ slotIds,
38
38
  isCreatorPayingAll,
39
39
  createdAt,
40
40
  updatedAt,
@@ -0,0 +1,24 @@
1
+ # BookingPaymentStatus
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | | [default to undefined]
9
+ **invoiceId** | **string** | | [optional] [default to undefined]
10
+ **invoiceStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BookingPaymentStatus } from '@tennac-booking/sdk';
16
+
17
+ const instance: BookingPaymentStatus = {
18
+ playerId,
19
+ invoiceId,
20
+ invoiceStatus,
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,34 @@
1
+ # BookingPlayerPaymentSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **profilePicture** | **string** | | [optional] [default to undefined]
12
+ **amountToPay** | **number** | | [default to undefined]
13
+ **invoiceId** | **string** | | [optional] [default to undefined]
14
+ **invoiceStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
15
+ **isCreator** | **boolean** | | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { BookingPlayerPaymentSummary } from '@tennac-booking/sdk';
21
+
22
+ const instance: BookingPlayerPaymentSummary = {
23
+ id,
24
+ firstName,
25
+ lastName,
26
+ profilePicture,
27
+ amountToPay,
28
+ invoiceId,
29
+ invoiceStatus,
30
+ isCreator,
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)
@@ -1,19 +1,21 @@
1
- # ConfirmPaymentMethodRequestBody
1
+ # BookingPriceBody
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **setupIntentId** | **string** | | [default to undefined]
8
+ **slotIds** | **Array<string>** | | [default to undefined]
9
+ **players** | **Array<string>** | | [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
12
13
  ```typescript
13
- import { ConfirmPaymentMethodRequestBody } from '@tennac-booking/sdk';
14
+ import { BookingPriceBody } from '@tennac-booking/sdk';
14
15
 
15
- const instance: ConfirmPaymentMethodRequestBody = {
16
- setupIntentId,
16
+ const instance: BookingPriceBody = {
17
+ slotIds,
18
+ players,
17
19
  };
18
20
  ```
19
21
 
@@ -0,0 +1,22 @@
1
+ # BookingPriceResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **creatorNeedsToRegisterPaymentMethod** | **boolean** | | [default to undefined]
9
+ **playerPrices** | [**Array<PlayerPrice>**](PlayerPrice.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BookingPriceResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: BookingPriceResponse = {
17
+ creatorNeedsToRegisterPaymentMethod,
18
+ playerPrices,
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)
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **invoiceUrl** | **string** | URL de la facture (pour paiement en ligne) | [optional] [default to undefined]
10
10
  **paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
11
11
  **onsitePayments** | [**Array<BookingResponseOnsitePaymentsInner>**](BookingResponseOnsitePaymentsInner.md) | Paiements sur place requis | [optional] [default to undefined]
12
+ **setupNoShowPaymentUrl** | **string** | | [optional] [default to undefined]
12
13
  **message** | **string** | Message de confirmation | [default to undefined]
13
14
 
14
15
  ## Example
@@ -21,6 +22,7 @@ const instance: BookingResponse = {
21
22
  invoiceUrl,
22
23
  paymentLinks,
23
24
  onsitePayments,
25
+ setupNoShowPaymentUrl,
24
26
  message,
25
27
  };
26
28
  ```
@@ -0,0 +1,30 @@
1
+ # BookingSlotInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **startDate** | **string** | | [optional] [default to undefined]
10
+ **endDate** | **string** | | [optional] [default to undefined]
11
+ **durationMinutes** | **number** | | [optional] [default to undefined]
12
+ **court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
13
+ **sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { BookingSlotInfo } from '@tennac-booking/sdk';
19
+
20
+ const instance: BookingSlotInfo = {
21
+ id,
22
+ startDate,
23
+ endDate,
24
+ durationMinutes,
25
+ court,
26
+ sport,
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)
@@ -1,19 +1,21 @@
1
- # AddPaymentMethodRequestBody
1
+ # BookingSportInfo
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **paymentMethodId** | **string** | | [default to undefined]
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **key** | **string** | | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
12
13
  ```typescript
13
- import { AddPaymentMethodRequestBody } from '@tennac-booking/sdk';
14
+ import { BookingSportInfo } from '@tennac-booking/sdk';
14
15
 
15
- const instance: AddPaymentMethodRequestBody = {
16
- paymentMethodId,
16
+ const instance: BookingSportInfo = {
17
+ id,
18
+ key,
17
19
  };
18
20
  ```
19
21
 
@@ -6,18 +6,44 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [default to undefined]
9
+ **clubId** | **string** | | [default to undefined]
10
+ **userId** | **string** | | [default to undefined]
11
+ **playersIds** | **Array<string>** | | [default to undefined]
12
+ **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
13
+ **paymentByPlayersStatus** | [**Array<BookingPaymentStatus>**](BookingPaymentStatus.md) | | [default to undefined]
14
+ **isCreatorPayingAll** | **boolean** | | [default to undefined]
15
+ **totalPrice** | **number** | | [default to undefined]
16
+ **slotIds** | **Array<string>** | | [default to undefined]
17
+ **isPublic** | **boolean** | | [default to undefined]
18
+ **creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
19
+ **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
20
+ **noShowChargeAmount** | **number** | | [optional] [default to undefined]
21
+ **noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
22
+ **noShowChargeIntentId** | **string** | | [optional] [default to undefined]
23
+ **cancellationReason** | **string** | | [optional] [default to undefined]
24
+ **cancelledBy** | **string** | | [optional] [default to undefined]
25
+ **cancelledAt** | **string** | | [optional] [default to undefined]
26
+ **cancelledByManager** | **boolean** | | [optional] [default to undefined]
27
+ **createdAt** | **string** | | [default to undefined]
28
+ **updatedAt** | **string** | | [default to undefined]
29
+ **playersCount** | **number** | | [optional] [default to undefined]
9
30
  **clubPicture** | **string** | | [optional] [default to undefined]
10
31
  **courtName** | **string** | | [optional] [default to undefined]
11
32
  **sportName** | **string** | | [optional] [default to undefined]
12
33
  **startDate** | **string** | | [optional] [default to undefined]
13
- **myPaymentStatus** | **string** | | [optional] [default to undefined]
34
+ **myPaymentStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
14
35
  **bookingStatus** | **string** | | [optional] [default to undefined]
15
36
  **playersName** | **Array<string>** | | [default to undefined]
16
37
  **myAmountToPay** | **number** | | [default to undefined]
17
38
  **totalAmount** | **number** | | [default to undefined]
18
39
  **timeBeforeCancel** | **string** | | [optional] [default to undefined]
19
40
  **clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
20
- **bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
41
+ **bookingHistory** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
42
+ **club** | [**BookingClubInfo**](BookingClubInfo.md) | | [optional] [default to undefined]
43
+ **slots** | [**Array<BookingSlotInfo>**](BookingSlotInfo.md) | | [default to undefined]
44
+ **court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
45
+ **sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
46
+ **players** | [**Array<BookingPlayerPaymentSummary>**](BookingPlayerPaymentSummary.md) | | [default to undefined]
21
47
 
22
48
  ## Example
23
49
 
@@ -26,6 +52,27 @@ import { BookingSummary } from '@tennac-booking/sdk';
26
52
 
27
53
  const instance: BookingSummary = {
28
54
  id,
55
+ clubId,
56
+ userId,
57
+ playersIds,
58
+ status,
59
+ paymentByPlayersStatus,
60
+ isCreatorPayingAll,
61
+ totalPrice,
62
+ slotIds,
63
+ isPublic,
64
+ creatorPaymentMethodId,
65
+ paymentMethodSetupCompleted,
66
+ noShowChargeAmount,
67
+ noShowChargeApplied,
68
+ noShowChargeIntentId,
69
+ cancellationReason,
70
+ cancelledBy,
71
+ cancelledAt,
72
+ cancelledByManager,
73
+ createdAt,
74
+ updatedAt,
75
+ playersCount,
29
76
  clubPicture,
30
77
  courtName,
31
78
  sportName,
@@ -38,6 +85,11 @@ const instance: BookingSummary = {
38
85
  timeBeforeCancel,
39
86
  clubAddress,
40
87
  bookingHistory,
88
+ club,
89
+ slots,
90
+ court,
91
+ sport,
92
+ players,
41
93
  };
42
94
  ```
43
95
 
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
8
+ |[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
8
9
  |[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
9
10
 
10
11
  # **getBookingHistory**
@@ -58,6 +59,57 @@ const { status, data } = await apiInstance.getBookingHistory(
58
59
 
59
60
  [[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
61
 
62
+ # **getBookingPrice**
63
+ > BookingPriceResponse getBookingPrice(bookingPriceBody)
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ BookingsApi,
71
+ Configuration,
72
+ BookingPriceBody
73
+ } from '@tennac-booking/sdk';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new BookingsApi(configuration);
77
+
78
+ let bookingPriceBody: BookingPriceBody; //
79
+
80
+ const { status, data } = await apiInstance.getBookingPrice(
81
+ bookingPriceBody
82
+ );
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ |Name | Type | Description | Notes|
88
+ |------------- | ------------- | ------------- | -------------|
89
+ | **bookingPriceBody** | **BookingPriceBody**| | |
90
+
91
+
92
+ ### Return type
93
+
94
+ **BookingPriceResponse**
95
+
96
+ ### Authorization
97
+
98
+ [bearerAuth](../README.md#bearerAuth)
99
+
100
+ ### HTTP request headers
101
+
102
+ - **Content-Type**: application/json
103
+ - **Accept**: application/json
104
+
105
+
106
+ ### HTTP response details
107
+ | Status code | Description | Response headers |
108
+ |-------------|-------------|------------------|
109
+ |**200** | Réservations journalières récupérées | - |
110
+
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)
112
+
61
113
  # **getQuickReservationSlots**
62
114
  > QuickReservationResponse getQuickReservationSlots()
63
115
 
@@ -82,6 +134,7 @@ let sportId: string; // (optional) (default to undefined)
82
134
  let startTime: string; // (optional) (default to undefined)
83
135
  let priceMax: number; // (optional) (default to undefined)
84
136
  let courtTypes: string; // (optional) (default to undefined)
137
+ let surfaceTypes: string; // (optional) (default to undefined)
85
138
  let limitPerClub: number; // (optional) (default to undefined)
86
139
  let maxClubs: number; // (optional) (default to undefined)
87
140
 
@@ -94,6 +147,7 @@ const { status, data } = await apiInstance.getQuickReservationSlots(
94
147
  startTime,
95
148
  priceMax,
96
149
  courtTypes,
150
+ surfaceTypes,
97
151
  limitPerClub,
98
152
  maxClubs
99
153
  );
@@ -111,6 +165,7 @@ const { status, data } = await apiInstance.getQuickReservationSlots(
111
165
  | **startTime** | [**string**] | | (optional) defaults to undefined|
112
166
  | **priceMax** | [**number**] | | (optional) defaults to undefined|
113
167
  | **courtTypes** | [**string**] | | (optional) defaults to undefined|
168
+ | **surfaceTypes** | [**string**] | | (optional) defaults to undefined|
114
169
  | **limitPerClub** | [**number**] | | (optional) defaults to undefined|
115
170
  | **maxClubs** | [**number**] | | (optional) defaults to undefined|
116
171
 
@@ -19,6 +19,10 @@ Name | Type | Description | Notes
19
19
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
20
20
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
21
21
  **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
22
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
23
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
24
+ **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
25
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
22
26
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
23
27
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
24
28
 
@@ -42,6 +46,10 @@ const instance: ClubResponse = {
42
46
  clubDashBoardUrl,
43
47
  isNoShowEnabled,
44
48
  sports,
49
+ allowMultipleBookingsAtTheSameTime,
50
+ sameTimeBookingsLimit,
51
+ cancellationLimitHours,
52
+ maxWeeklyBookings,
45
53
  createdAt,
46
54
  updatedAt,
47
55
  };
package/docs/ClubsApi.md CHANGED
@@ -20,7 +20,7 @@ All URIs are relative to *http://localhost*
20
20
  # **getActiveClubs**
21
21
  > Array<PartialClubResponse> getActiveClubs()
22
22
 
23
- Récupère la liste des clubs actifs
23
+ Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
24
24
 
25
25
  ### Example
26
26
 
@@ -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&lt;string&gt;** | ID du créneau à réserver | [default to undefined]
9
9
  **players** | [**Array&lt;PlayerWithPaymentMethod&gt;**](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\&#39;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
 
@@ -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
 
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