@tennac-booking/sdk 1.0.37 → 1.0.40
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 +66 -42
- package/README.md +94 -39
- package/api.ts +3985 -718
- package/base.ts +4 -4
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +2632 -777
- package/dist/api.js +2452 -40
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +2632 -777
- package/dist/esm/api.js +2443 -39
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +4 -4
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/docs/ActiveClub.md +2 -0
- package/docs/AddClubMemberRequest.md +22 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/AddFavoriteClubRequestBody.md +20 -0
- package/docs/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/AddPaymentMethodRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/BaseUser.md +76 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/BookingDetailResponse.md +46 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingPaymentStatusResponse.md +24 -0
- package/docs/BookingPaymentStatusResponseBooking.md +26 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPaymentStatusResponseSummary.md +28 -0
- package/docs/BookingPopulated.md +28 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/BookingPopulatedSlotIdCourtId.md +28 -0
- package/docs/BookingPopulatedSlotIdCourtIdSportId.md +22 -0
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/BookingResponse.md +28 -0
- package/docs/BookingSummary.md +44 -0
- package/docs/BookingSummaryBookingHistory.md +18 -0
- package/docs/BookingSummaryClubAddress.md +18 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ChangePasswordRequestBody.md +22 -0
- package/docs/ChangePasswordResponse.md +20 -0
- package/docs/CheckInPlayersResponse.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClubAnalyticsApi.md +241 -0
- package/docs/ClubInfoResponse.md +48 -0
- package/docs/ClubMember.md +24 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +21 -9
- package/docs/ClubStaffResponse.md +48 -0
- package/docs/ClubsApi.md +61 -0
- package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodResponse.md +22 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtDeleteResponse.md +20 -0
- package/docs/CourtResponse.md +18 -16
- package/docs/CourtStatus.md +5 -2
- package/docs/CourtWithNameResponse.md +48 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CourtsWithNameResponse.md +22 -0
- package/docs/CreateBookingRequest.md +28 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateCourtRequest.md +36 -0
- package/docs/CreateEventRequest.md +30 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/CreateSportRequest.md +26 -0
- package/docs/CreateSubscriptionPlanRequest.md +24 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/DeleteSport200Response.md +20 -0
- package/docs/DiagnosticsApi.md +52 -0
- package/docs/DiagnosticsResponse.md +24 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +119 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoriteClubMutationResponse.md +22 -0
- package/docs/FavoriteClubRequestBody.md +20 -0
- package/docs/FavoriteClubResponse.md +22 -0
- package/docs/FavoriteClubsResponse.md +20 -0
- package/docs/FavoritePlayerMutationResponse.md +22 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayerRequestBody.md +20 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FavoritePlayersResponse.md +20 -0
- package/docs/FrequentClub.md +24 -0
- package/docs/FrequentPlayer.md +28 -0
- package/docs/{UserResponseFrequentlyPlayedWithInner.md → FrequentlyPlayedWithItem.md} +3 -3
- package/docs/{UserResponseFrequentlyVisitedClubsInner.md → FrequentlyVisitedClubItem.md} +3 -3
- package/docs/Gender.md +12 -0
- package/docs/GenderPercentage.md +26 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/GetUserRolesResponse.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleAuthRequestBody.md +20 -0
- package/docs/GoogleAuthResponse.md +30 -0
- package/docs/GoogleAuthResponseUser.md +26 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/ILevelBySports.md +22 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/LevelBySportEntry.md +22 -0
- package/docs/LevelBySportsItem.md +22 -0
- package/docs/LoginRequestBody.md +22 -0
- package/docs/LoginResponse.md +28 -0
- package/docs/ManagerBookingsApi.md +125 -0
- package/docs/ManagerCancelBookingRequest.md +20 -0
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/ManagerClubCourtsApi.md +220 -0
- package/docs/ManagerClubRolesApi.md +268 -0
- package/docs/ManagerClubSlotsApi.md +119 -0
- package/docs/ManagerClubSubscriptionsApi.md +387 -0
- package/docs/ManagerClubsApi.md +253 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/ManagerSportsApi.md +119 -0
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/NoShowFeeResponse.md +30 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/NotImplementedResponse.md +20 -0
- package/docs/PasswordResetRequestBody.md +20 -0
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/PaymentStatus.md +30 -0
- package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +73 -0
- package/docs/PlayerWithPaymentMethod.md +22 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/ProfilePictureResponse.md +20 -0
- package/docs/ProfilePictureUpdateRequestBody.md +20 -0
- package/docs/ProfileVisibilityResponse.md +20 -0
- package/docs/PublicClubUser.md +46 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/{UserResponseLevelBySportsInner.md → PublicClubUserLevelBySportsInner.md} +3 -3
- package/docs/RefreshTokenRequestBody.md +20 -0
- package/docs/RefreshTokenResponse.md +26 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/{User.md → RegisterRequestBody.md} +5 -9
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SdkDiagnosticsResponse.md +28 -0
- package/docs/SdkDiagnosticsResponseOpenapi.md +24 -0
- package/docs/SdkDiagnosticsResponseSdk.md +24 -0
- package/docs/SetupPaymentMethodRequestBody.md +20 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/SlotResponse.md +2 -10
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +0 -2
- package/docs/SportResponse.md +4 -2
- package/docs/StaffBookingsApi.md +61 -0
- package/docs/StaffClubAnalyticsApi.md +254 -0
- package/docs/StaffClubBookingsApi.md +52 -0
- package/docs/StaffClubsApi.md +147 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/docs/StaffProfileApi.md +110 -0
- package/docs/StaffUserProfileResponse.md +22 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionMutationResponse.md +20 -0
- package/docs/SubscriptionPlanResponse.md +32 -0
- package/docs/SubscriptionSessionRequestBody.md +22 -0
- package/docs/SubscriptionSessionResponse.md +20 -0
- package/docs/UpdateClubRequest.md +34 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCourtRequest.md +38 -0
- package/docs/UpdateCustomerRequestBody.md +22 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponse.md +20 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateLevelBySportsRequestBody.md +20 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
- package/docs/UpdateSportRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UpdateUserCityRequestBody.md +20 -0
- package/docs/UpdateUserDescriptionRequestBody.md +20 -0
- package/docs/UpdateUserRequestBody.md +38 -0
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserApi.md +63 -0
- package/docs/UserAuthenticationApi.md +226 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +166 -0
- package/docs/UserBookingsResponse.md +26 -0
- package/docs/UserCityResponse.md +20 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +145 -0
- package/docs/UserDescriptionResponse.md +20 -0
- package/docs/UserFavoriteClubsResponse.md +20 -0
- package/docs/UserInfoStaff.md +38 -0
- package/docs/UserLocationSummary.md +44 -0
- package/docs/UserPaymentApi.md +176 -0
- package/docs/UserProfileApi.md +1254 -0
- package/docs/UserProfileResponse.md +28 -0
- package/docs/UserResponse.md +8 -48
- package/docs/UserRolesResponse.md +20 -0
- package/docs/UserStaffResponse.md +40 -0
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UserSubscriptionsResponse.md +20 -0
- package/docs/UsersApi.md +1888 -0
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# BookingPopulated
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**userId** | [**BookingPopulatedUserId**](BookingPopulatedUserId.md) | | [optional] [default to undefined]
|
|
11
|
+
**slotId** | [**BookingPopulatedSlotId**](BookingPopulatedSlotId.md) | | [optional] [default to undefined]
|
|
12
|
+
**paymentByPlayersStatus** | [**Array<BookingPopulatedPaymentByPlayersStatusInner>**](BookingPopulatedPaymentByPlayersStatusInner.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { BookingPopulated } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: BookingPopulated = {
|
|
20
|
+
id,
|
|
21
|
+
status,
|
|
22
|
+
userId,
|
|
23
|
+
slotId,
|
|
24
|
+
paymentByPlayersStatus,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingPopulatedPaymentByPlayersStatusInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user** | [**BookingPopulatedUserId**](BookingPopulatedUserId.md) | | [optional] [default to undefined]
|
|
9
|
+
**invoices** | [**Array<BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner>**](BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingPopulatedPaymentByPlayersStatusInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingPopulatedPaymentByPlayersStatusInner = {
|
|
17
|
+
user,
|
|
18
|
+
invoices,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner = {
|
|
18
|
+
id,
|
|
19
|
+
amount,
|
|
20
|
+
status,
|
|
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,26 @@
|
|
|
1
|
+
# BookingPopulatedSlotId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**courtId** | [**BookingPopulatedSlotIdCourtId**](BookingPopulatedSlotIdCourtId.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { BookingPopulatedSlotId } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: BookingPopulatedSlotId = {
|
|
19
|
+
id,
|
|
20
|
+
startDate,
|
|
21
|
+
endDate,
|
|
22
|
+
courtId,
|
|
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)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# BookingPopulatedSlotIdCourtId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**surface** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**isIndoor** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**sportId** | [**BookingPopulatedSlotIdCourtIdSportId**](BookingPopulatedSlotIdCourtIdSportId.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { BookingPopulatedSlotIdCourtId } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: BookingPopulatedSlotIdCourtId = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
surface,
|
|
23
|
+
isIndoor,
|
|
24
|
+
sportId,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingPopulatedSlotIdCourtIdSportId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**key** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingPopulatedSlotIdCourtIdSportId } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingPopulatedSlotIdCourtIdSportId = {
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BookingPopulatedUserId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { BookingPopulatedUserId } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: BookingPopulatedUserId = {
|
|
18
|
+
id,
|
|
19
|
+
firstName,
|
|
20
|
+
lastName,
|
|
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,28 @@
|
|
|
1
|
+
# BookingResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**booking** | [**Booking**](Booking.md) | | [optional] [default to undefined]
|
|
9
|
+
**invoiceUrl** | **string** | URL de la facture (pour paiement en ligne) | [optional] [default to undefined]
|
|
10
|
+
**paymentLinks** | **object** | Liens de paiement par joueur (pour paiement divisé) | [optional] [default to undefined]
|
|
11
|
+
**onsitePayments** | **Array<object>** | Paiements sur place requis | [optional] [default to undefined]
|
|
12
|
+
**message** | **string** | Message de confirmation | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { BookingResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: BookingResponse = {
|
|
20
|
+
booking,
|
|
21
|
+
invoiceUrl,
|
|
22
|
+
paymentLinks,
|
|
23
|
+
onsitePayments,
|
|
24
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# BookingSummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**courtName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**sportName** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**myPaymentStatus** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**bookingStatus** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**playersName** | **Array<string>** | | [default to undefined]
|
|
16
|
+
**myAmountToPay** | **number** | | [default to undefined]
|
|
17
|
+
**totalAmount** | **number** | | [default to undefined]
|
|
18
|
+
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
|
+
**bookingHistory** | [**BookingSummaryBookingHistory**](BookingSummaryBookingHistory.md) | | [optional] [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { BookingSummary } from '@tennac-booking/sdk';
|
|
26
|
+
|
|
27
|
+
const instance: BookingSummary = {
|
|
28
|
+
id,
|
|
29
|
+
clubPicture,
|
|
30
|
+
courtName,
|
|
31
|
+
sportName,
|
|
32
|
+
startDate,
|
|
33
|
+
myPaymentStatus,
|
|
34
|
+
bookingStatus,
|
|
35
|
+
playersName,
|
|
36
|
+
myAmountToPay,
|
|
37
|
+
totalAmount,
|
|
38
|
+
timeBeforeCancel,
|
|
39
|
+
clubAddress,
|
|
40
|
+
bookingHistory,
|
|
41
|
+
};
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[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,18 @@
|
|
|
1
|
+
# BookingSummaryBookingHistory
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { BookingSummaryBookingHistory } from '@tennac-booking/sdk';
|
|
13
|
+
|
|
14
|
+
const instance: BookingSummaryBookingHistory = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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,18 @@
|
|
|
1
|
+
# BookingSummaryClubAddress
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { BookingSummaryClubAddress } from '@tennac-booking/sdk';
|
|
13
|
+
|
|
14
|
+
const instance: BookingSummaryClubAddress = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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,113 @@
|
|
|
1
|
+
# BookingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**bookingsStaffDailyDateGet**](#bookingsstaffdailydateget) | **GET** /bookings/staff/daily/{date} | Récupérer les réservations journalières|
|
|
8
|
+
|[**bookingsStaffWeeklyWeekIdGet**](#bookingsstaffweeklyweekidget) | **GET** /bookings/staff/weekly/{weekId} | Récupérer les réservations hebdomadaires|
|
|
9
|
+
|
|
10
|
+
# **bookingsStaffDailyDateGet**
|
|
11
|
+
> BookingsStaffWeeklyWeekIdGet200Response bookingsStaffDailyDateGet()
|
|
12
|
+
|
|
13
|
+
Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
BookingsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new BookingsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let date: string; //Date au format YYYY-MM-DD (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.bookingsStaffDailyDateGet(
|
|
29
|
+
date
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **date** | [**string**] | Date au format YYYY-MM-DD | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**BookingsStaffWeeklyWeekIdGet200Response**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Réservations journalières récupérées avec succès | - |
|
|
58
|
+
|**500** | Erreur serveur interne | - |
|
|
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)
|
|
61
|
+
|
|
62
|
+
# **bookingsStaffWeeklyWeekIdGet**
|
|
63
|
+
> BookingsStaffWeeklyWeekIdGet200Response bookingsStaffWeeklyWeekIdGet()
|
|
64
|
+
|
|
65
|
+
Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
BookingsApi,
|
|
72
|
+
Configuration
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new BookingsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let weekId: string; //ID de la semaine (default to undefined)
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.bookingsStaffWeeklyWeekIdGet(
|
|
81
|
+
weekId
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **weekId** | [**string**] | ID de la semaine | defaults to undefined|
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**BookingsStaffWeeklyWeekIdGet200Response**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: Not defined
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | Réservations hebdomadaires récupérées avec succès | - |
|
|
110
|
+
|**500** | Erreur serveur interne | - |
|
|
111
|
+
|
|
112
|
+
[[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)
|
|
113
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BookingsStaffWeeklyWeekIdGet200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookings** | [**Array<BookingPopulated>**](BookingPopulated.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { BookingsStaffWeeklyWeekIdGet200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: BookingsStaffWeeklyWeekIdGet200Response = {
|
|
16
|
+
bookings,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CancelBookingResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**booking** | [**CancelBookingResponseBooking**](CancelBookingResponseBooking.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CancelBookingResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CancelBookingResponse = {
|
|
17
|
+
message,
|
|
18
|
+
booking,
|
|
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)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CancelBookingResponseBooking
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**cancelledAt** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CancelBookingResponseBooking } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: CancelBookingResponseBooking = {
|
|
21
|
+
id,
|
|
22
|
+
status,
|
|
23
|
+
cancelledAt,
|
|
24
|
+
cancelledBy,
|
|
25
|
+
cancelledByManager,
|
|
26
|
+
cancellationReason,
|
|
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
|
+
# ChangePasswordRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**currentPassword** | **string** | | [default to undefined]
|
|
9
|
+
**newPassword** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ChangePasswordRequestBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ChangePasswordRequestBody = {
|
|
17
|
+
currentPassword,
|
|
18
|
+
newPassword,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ChangePasswordResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ChangePasswordResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: ChangePasswordResponse = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CheckInPlayersResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**checkedInPlayers** | [**Array<CheckInPlayersResponseCheckedInPlayersInner>**](CheckInPlayersResponseCheckedInPlayersInner.md) | | [optional] [default to undefined]
|
|
10
|
+
**notFoundPlayers** | **Array<string>** | | [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]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CheckInPlayersResponse } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: CheckInPlayersResponse = {
|
|
21
|
+
message,
|
|
22
|
+
checkedInPlayers,
|
|
23
|
+
notFoundPlayers,
|
|
24
|
+
allPlayersCheckedIn,
|
|
25
|
+
bookingFullyPaid,
|
|
26
|
+
totalPlayers,
|
|
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,34 @@
|
|
|
1
|
+
# CheckInPlayersResponseCheckedInPlayersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**invoiceId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**previousStatus** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**newStatus** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**paymentMethod** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**note** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { CheckInPlayersResponseCheckedInPlayersInner } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: CheckInPlayersResponseCheckedInPlayersInner = {
|
|
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)
|