@tennac-booking/sdk 1.0.83 → 1.0.84
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.
- package/.openapi-generator/FILES +14 -42
- package/README.md +17 -57
- package/api.ts +1063 -2958
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +860 -2258
- package/dist/api.js +193 -961
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +860 -2258
- package/dist/esm/api.js +186 -954
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingClubInfo.md +28 -0
- package/docs/{ConfirmPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingPopulated.md +2 -2
- package/docs/{ClubDaySchedule.md → BookingPriceBody.md} +7 -7
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
- package/docs/BookingSummary.md +54 -2
- package/docs/BookingsApi.md +55 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -173
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsManagerApi.md +0 -104
- package/docs/ClubSettingsResponse.md +0 -2
- package/docs/ClubsManagerApi.md +0 -104
- package/docs/ClubsStaffApi.md +0 -88
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/CreateEventRequest.md +1 -3
- package/docs/EventResponse.md +1 -1
- package/docs/{SetupPaymentMethodRequestBody.md → EventResponseCourtsInner.md} +3 -5
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/QuickReservationClubSport.md +22 -0
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +4 -160
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
- package/docs/ClubGeneralSettingsResponse.md +0 -34
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationAccessSettingsResponse.md +0 -26
- package/docs/ClubReservationSettingsResponse.md +0 -36
- package/docs/ClubSettingsStaffApi.md +0 -95
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/HotelAccessSettings.md +0 -26
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/PartialHotelAccessSettings.md +0 -27
- package/docs/PartialPaymentRequirementsSettings.md +0 -23
- package/docs/PartialPublicAccessPartialPublicAccessSettingsSchoolAccessPartialSchoolAccessSettingsHotelAccessPartialHotelAccessSettingsPaymentRequirementsPartialPaymentRequirementsSettings.md +0 -27
- package/docs/PartialPublicAccessSettings.md +0 -25
- package/docs/PartialSchoolAccessSettings.md +0 -25
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/PaymentRequirementsSettings.md +0 -22
- package/docs/PublicAccessSettings.md +0 -24
- package/docs/SchoolAccessSettings.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -34
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -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
|
-
#
|
|
1
|
+
# BookingCourtInfo
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
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 {
|
|
14
|
+
import { BookingCourtInfo } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: BookingCourtInfo = {
|
|
17
|
+
id,
|
|
18
|
+
name,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/docs/BookingInfo.md
CHANGED
|
@@ -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
|
-
**
|
|
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
|
-
|
|
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)
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -9,12 +9,12 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**clubId** | **string** | | [default to undefined]
|
|
10
10
|
**creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
11
11
|
**slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
|
|
12
|
-
**players** | [**Array<UserInfo>**](UserInfo.md) | | [default to undefined]
|
|
13
12
|
**paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
|
|
14
13
|
**noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
|
|
15
14
|
**noShowChargeAmount** | **number** | | [optional] [default to undefined]
|
|
16
15
|
**totalPrice** | **number** | | [default to undefined]
|
|
17
16
|
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
17
|
+
**playersIds** | **Array<string>** | | [default to undefined]
|
|
18
18
|
**history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
|
|
19
19
|
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
20
20
|
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
@@ -31,12 +31,12 @@ const instance: BookingPopulated = {
|
|
|
31
31
|
clubId,
|
|
32
32
|
creator,
|
|
33
33
|
slotInfos,
|
|
34
|
-
players,
|
|
35
34
|
paymentByPlayers,
|
|
36
35
|
noShowChargeApplied,
|
|
37
36
|
noShowChargeAmount,
|
|
38
37
|
totalPrice,
|
|
39
38
|
isCreatorPayingAll,
|
|
39
|
+
playersIds,
|
|
40
40
|
history,
|
|
41
41
|
status,
|
|
42
42
|
cancelledByManager,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BookingPriceBody
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**
|
|
8
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
|
+
**players** | **Array<string>** | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { BookingPriceBody } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const instance: BookingPriceBody = {
|
|
17
|
+
slotIds,
|
|
18
|
+
players,
|
|
19
19
|
};
|
|
20
20
|
```
|
|
21
21
|
|
package/docs/BookingResponse.md
CHANGED
|
@@ -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
|
-
#
|
|
1
|
+
# BookingSportInfo
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
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 {
|
|
14
|
+
import { BookingSportInfo } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: BookingSportInfo = {
|
|
17
|
+
id,
|
|
18
|
+
key,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/docs/BookingSummary.md
CHANGED
|
@@ -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** | **
|
|
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
|
|
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
|
|
package/docs/BookingsApi.md
CHANGED
|
@@ -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
|
+
> Array<PlayerPrice> 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
|
+
**Array<PlayerPrice>**
|
|
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
|
|