@tennac-booking/sdk 1.0.116 → 1.0.117
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 +3 -0
- package/README.md +5 -2
- package/api.ts +211 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +173 -1
- package/dist/api.js +68 -1
- 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 +173 -1
- package/dist/esm/api.js +68 -1
- 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/{DeleteClubRole200Response.md → CheckTeamNameAvailability200Response.md} +5 -5
- package/docs/EstimateEventPrice200Response.md +6 -0
- package/docs/EstimateEventPriceRequest.md +4 -0
- package/docs/EventsApi.md +57 -0
- package/docs/JoinEventRequest.md +2 -0
- package/docs/JoinEventResponse.md +14 -0
- package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveClub.md +0 -24
- package/docs/ActiveClubListResponse.md +0 -20
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddFavoriteClubRequestBody.md +0 -20
- package/docs/AddFavoritePlayerRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/AdminClubAnalyticsApi.md +0 -249
- package/docs/AdminClubSlotsApi.md +0 -182
- package/docs/AdminClubSubscriptionsApi.md +0 -394
- package/docs/AdminClubsApi.md +0 -170
- package/docs/ApiErrorResponse.md +0 -22
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/Booking.md +0 -32
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
- package/docs/BookingPopulatedUserId.md +0 -24
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/Club.md +0 -46
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubListResponse.md +0 -22
- package/docs/ClubMember.md +0 -34
- package/docs/ClubMembersResponse.md +0 -22
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -40
- package/docs/ClubsResponse.md +0 -22
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/Court.md +0 -32
- package/docs/CourtsResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreateClubSettingsRequest.md +0 -28
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/DeleteClub200Response.md +0 -20
- package/docs/DeleteClubSettingsRequest.md +0 -20
- package/docs/DeleteEvent200Response.md +0 -20
- package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
- package/docs/DeleteSlotsResponse.md +0 -20
- package/docs/DeleteSport200Response.md +0 -20
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/FavoriteClubItem.md +0 -26
- package/docs/FavoriteClubResponse.md +0 -22
- package/docs/FavoritePlayerPublic.md +0 -28
- package/docs/FavoritePlayersIdsResponse.md +0 -22
- package/docs/FrequentlyPlayedWithItem.md +0 -28
- package/docs/FrequentlyVisitedClubItem.md +0 -24
- package/docs/GenerateSlotsResponse.md +0 -20
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetNumberOfClubUsers200Response.md +0 -20
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserRolesResponseRolesInner.md +0 -26
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/GoogleSignInResponse.md +0 -24
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/InvoicesResponse.md +0 -22
- package/docs/InvoicesResponseInvoicesInner.md +0 -34
- package/docs/InvoicesResponsePagination.md +0 -26
- package/docs/LevelBySportsItem.md +0 -22
- package/docs/ManagerBookingsApi.md +0 -125
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubCourtsApi.md +0 -108
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerClubsApi.md +0 -253
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/ManagerEventsApi.md +0 -227
- package/docs/ManagerSportsApi.md +0 -174
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PriceResponse.md +0 -32
- package/docs/ProfileVisibilityResponse.md +0 -20
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/PublicClubUserLevelBySportsInner.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SetupPaymentMethodRequestBody.md +0 -20
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/SlotsResponse.md +0 -22
- package/docs/Sport.md +0 -24
- package/docs/SportsResponse.md +0 -22
- package/docs/StaffClubAnalyticsApi.md +0 -104
- package/docs/StaffClubBookingsApi.md +0 -52
- package/docs/StaffClubsApi.md +0 -100
- package/docs/StaffEventResponse.md +0 -20
- package/docs/StaffEventsApi.md +0 -54
- package/docs/StaffProfileApi.md +0 -54
- package/docs/StripeStatus.md +0 -16
- package/docs/SubscribeToClubRequestBody.md +0 -22
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateClubSettingsRequest.md +0 -28
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/UpdateUserCityRequestBody.md +0 -20
- package/docs/UpdateUserDescriptionRequestBody.md +0 -20
- package/docs/User.md +0 -40
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserBookingsApi.md +0 -120
- package/docs/UserCityResponse.md +0 -20
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -53
- package/docs/UserDescriptionResponse.md +0 -20
- package/docs/UserFavoriteClubsResponse.md +0 -20
- package/docs/UserPaymentApi.md +0 -176
- package/docs/UserProfileApi.md +0 -1201
- package/docs/UserResponse.md +0 -38
- package/docs/UserSubscriptionsApi.md +0 -222
- package/docs/UsersResponse.md +0 -22
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# GetActiveClubs200Response
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubs** | [**Array<ActiveClub>**](ActiveClub.md) | | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { GetActiveClubs200Response } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: GetActiveClubs200Response = {
|
|
16
|
-
clubs,
|
|
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)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# GetClubInfos200Response
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**address** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**phone** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**rib** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**websiteUrl** | **string** | | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { GetClubInfos200Response } from '@tennac-booking/sdk';
|
|
19
|
-
|
|
20
|
-
const instance: GetClubInfos200Response = {
|
|
21
|
-
name,
|
|
22
|
-
address,
|
|
23
|
-
email,
|
|
24
|
-
phone,
|
|
25
|
-
rib,
|
|
26
|
-
websiteUrl,
|
|
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,26 +0,0 @@
|
|
|
1
|
-
# GetCourtsByClubAndSport200Response
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**courts** | [**Array<CourtResponse>**](CourtResponse.md) | | [optional] [default to undefined]
|
|
9
|
-
**total** | **number** | Nombre total de terrains | [optional] [default to undefined]
|
|
10
|
-
**clubId** | **string** | ID du club | [optional] [default to undefined]
|
|
11
|
-
**sportId** | **string** | ID du sport | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { GetCourtsByClubAndSport200Response } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: GetCourtsByClubAndSport200Response = {
|
|
19
|
-
courts,
|
|
20
|
-
total,
|
|
21
|
-
clubId,
|
|
22
|
-
sportId,
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# GetLastSixMonthsTurnover200ResponseInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**month** | **string** | Month name (3-letter format) | [optional] [default to undefined]
|
|
9
|
-
**value** | **number** | Turnover amount for the month | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { GetLastSixMonthsTurnover200ResponseInner } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: GetLastSixMonthsTurnover200ResponseInner = {
|
|
17
|
-
month,
|
|
18
|
-
value,
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# GetNumberOfClubUsers200Response
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**count** | **number** | | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { GetNumberOfClubUsers200Response } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: GetNumberOfClubUsers200Response = {
|
|
16
|
-
count,
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# GetPublishedEventsByClubId200Response
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**events** | [**Array<Event>**](Event.md) | | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { GetPublishedEventsByClubId200Response } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: GetPublishedEventsByClubId200Response = {
|
|
16
|
-
events,
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# GetUserRolesResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**roles** | [**Array<GetUserRolesResponseRolesInner>**](GetUserRolesResponseRolesInner.md) | | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { GetUserRolesResponse } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: GetUserRolesResponse = {
|
|
16
|
-
roles,
|
|
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)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# GetUserRolesResponseRolesInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**clubName** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**roleId** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**roleName** | **string** | | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { GetUserRolesResponseRolesInner } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: GetUserRolesResponseRolesInner = {
|
|
19
|
-
clubId,
|
|
20
|
-
clubName,
|
|
21
|
-
roleId,
|
|
22
|
-
roleName,
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# GetUserSubscriptionsResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**subscriptions** | [**Array<SubscriptionResponse>**](SubscriptionResponse.md) | | [optional] [default to undefined]
|
|
9
|
-
**total** | **number** | Nombre total d\'abonnements | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { GetUserSubscriptionsResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: GetUserSubscriptionsResponse = {
|
|
17
|
-
subscriptions,
|
|
18
|
-
total,
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# GoogleSignInRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**googleToken** | **string** | | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { GoogleSignInRequestBody } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: GoogleSignInRequestBody = {
|
|
16
|
-
googleToken,
|
|
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)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# GoogleSignInResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**token** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**refreshToken** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**user** | [**UserResponse**](UserResponse.md) | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { GoogleSignInResponse } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: GoogleSignInResponse = {
|
|
18
|
-
token,
|
|
19
|
-
refreshToken,
|
|
20
|
-
user,
|
|
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)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# InitiateSubscriptionSessionRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | ID du club | [default to undefined]
|
|
9
|
-
**priceId** | **string** | ID du prix d\'abonnement | [default to undefined]
|
|
10
|
-
**successUrl** | **string** | URL de redirection en cas de succès | [optional] [default to undefined]
|
|
11
|
-
**cancelUrl** | **string** | URL de redirection en cas d\'annulation | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { InitiateSubscriptionSessionRequestBody } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: InitiateSubscriptionSessionRequestBody = {
|
|
19
|
-
clubId,
|
|
20
|
-
priceId,
|
|
21
|
-
successUrl,
|
|
22
|
-
cancelUrl,
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# InitiateSubscriptionSessionResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**sessionId** | **string** | ID de la session Stripe | [optional] [default to undefined]
|
|
9
|
-
**url** | **string** | URL de la session de paiement | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { InitiateSubscriptionSessionResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: InitiateSubscriptionSessionResponse = {
|
|
17
|
-
sessionId,
|
|
18
|
-
url,
|
|
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)
|
package/docs/InvoicesResponse.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# InvoicesResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**invoices** | [**Array<InvoicesResponseInvoicesInner>**](InvoicesResponseInvoicesInner.md) | | [optional] [default to undefined]
|
|
9
|
-
**pagination** | [**InvoicesResponsePagination**](InvoicesResponsePagination.md) | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { InvoicesResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: InvoicesResponse = {
|
|
17
|
-
invoices,
|
|
18
|
-
pagination,
|
|
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)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# InvoicesResponseInvoicesInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**billNumber** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**date** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**clientFirstName** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**clientLastName** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**clientEmail** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**totalCost** | **number** | | [optional] [default to undefined]
|
|
14
|
-
**status** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**linkToInvoicePDF** | **string** | | [optional] [default to undefined]
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { InvoicesResponseInvoicesInner } from '@tennac-booking/sdk';
|
|
21
|
-
|
|
22
|
-
const instance: InvoicesResponseInvoicesInner = {
|
|
23
|
-
billNumber,
|
|
24
|
-
date,
|
|
25
|
-
clientFirstName,
|
|
26
|
-
clientLastName,
|
|
27
|
-
clientEmail,
|
|
28
|
-
totalCost,
|
|
29
|
-
status,
|
|
30
|
-
linkToInvoicePDF,
|
|
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,26 +0,0 @@
|
|
|
1
|
-
# InvoicesResponsePagination
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**total** | **number** | | [optional] [default to undefined]
|
|
9
|
-
**page** | **number** | | [optional] [default to undefined]
|
|
10
|
-
**limit** | **number** | | [optional] [default to undefined]
|
|
11
|
-
**totalPages** | **number** | | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { InvoicesResponsePagination } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: InvoicesResponsePagination = {
|
|
19
|
-
total,
|
|
20
|
-
page,
|
|
21
|
-
limit,
|
|
22
|
-
totalPages,
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# LevelBySportsItem
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**sport** | **string** | | [default to undefined]
|
|
9
|
-
**level** | **string** | | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { LevelBySportsItem } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: LevelBySportsItem = {
|
|
17
|
-
sport,
|
|
18
|
-
level,
|
|
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)
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
# ManagerBookingsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**applyNoShowFee**](#applynoshowfee) | **POST** /api/bookings/{bookingId}/apply-noshow-fee | Appliquer les frais de no-show|
|
|
8
|
-
|[**managerCancelBooking**](#managercancelbooking) | **DELETE** /api/bookings/{bookingId}/manager-cancel | Annuler une réservation (gestionnaire)|
|
|
9
|
-
|
|
10
|
-
# **applyNoShowFee**
|
|
11
|
-
> NoShowFeeResponse applyNoShowFee()
|
|
12
|
-
|
|
13
|
-
Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
ManagerBookingsApi,
|
|
20
|
-
Configuration
|
|
21
|
-
} from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new ManagerBookingsApi(configuration);
|
|
25
|
-
|
|
26
|
-
let bookingId: string; //ID MongoDB de la réservation (default to undefined)
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.applyNoShowFee(
|
|
29
|
-
bookingId
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **bookingId** | [**string**] | ID MongoDB de la réservation | defaults to undefined|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Return type
|
|
41
|
-
|
|
42
|
-
**NoShowFeeResponse**
|
|
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** | Frais de no-show appliqués avec succès | - |
|
|
58
|
-
|**400** | Requête invalide | - |
|
|
59
|
-
|**401** | Non autorisé | - |
|
|
60
|
-
|**403** | Accès interdit | - |
|
|
61
|
-
|**404** | Ressource non trouvée | - |
|
|
62
|
-
|**500** | Erreur serveur interne | - |
|
|
63
|
-
|
|
64
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
-
|
|
66
|
-
# **managerCancelBooking**
|
|
67
|
-
> ManagerCancelBookingResponse managerCancelBooking(managerCancelBookingRequest)
|
|
68
|
-
|
|
69
|
-
Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
70
|
-
|
|
71
|
-
### Example
|
|
72
|
-
|
|
73
|
-
```typescript
|
|
74
|
-
import {
|
|
75
|
-
ManagerBookingsApi,
|
|
76
|
-
Configuration,
|
|
77
|
-
ManagerCancelBookingRequest
|
|
78
|
-
} from '@tennac-booking/sdk';
|
|
79
|
-
|
|
80
|
-
const configuration = new Configuration();
|
|
81
|
-
const apiInstance = new ManagerBookingsApi(configuration);
|
|
82
|
-
|
|
83
|
-
let bookingId: string; //ID MongoDB de la réservation à annuler (default to undefined)
|
|
84
|
-
let managerCancelBookingRequest: ManagerCancelBookingRequest; //
|
|
85
|
-
|
|
86
|
-
const { status, data } = await apiInstance.managerCancelBooking(
|
|
87
|
-
bookingId,
|
|
88
|
-
managerCancelBookingRequest
|
|
89
|
-
);
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Parameters
|
|
93
|
-
|
|
94
|
-
|Name | Type | Description | Notes|
|
|
95
|
-
|------------- | ------------- | ------------- | -------------|
|
|
96
|
-
| **managerCancelBookingRequest** | **ManagerCancelBookingRequest**| | |
|
|
97
|
-
| **bookingId** | [**string**] | ID MongoDB de la réservation à annuler | defaults to undefined|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
### Return type
|
|
101
|
-
|
|
102
|
-
**ManagerCancelBookingResponse**
|
|
103
|
-
|
|
104
|
-
### Authorization
|
|
105
|
-
|
|
106
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
107
|
-
|
|
108
|
-
### HTTP request headers
|
|
109
|
-
|
|
110
|
-
- **Content-Type**: application/json
|
|
111
|
-
- **Accept**: application/json
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### HTTP response details
|
|
115
|
-
| Status code | Description | Response headers |
|
|
116
|
-
|-------------|-------------|------------------|
|
|
117
|
-
|**200** | Réservation annulée par le gestionnaire avec succès | - |
|
|
118
|
-
|**400** | Requête invalide | - |
|
|
119
|
-
|**401** | Non autorisé | - |
|
|
120
|
-
|**403** | Accès interdit | - |
|
|
121
|
-
|**404** | Réservation non trouvée | - |
|
|
122
|
-
|**500** | Erreur serveur interne | - |
|
|
123
|
-
|
|
124
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
125
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# ManagerCancelBookingResponseBooking
|
|
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
|
-
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**cancelledAt** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { ManagerCancelBookingResponseBooking } from '@tennac-booking/sdk';
|
|
19
|
-
|
|
20
|
-
const instance: ManagerCancelBookingResponseBooking = {
|
|
21
|
-
id,
|
|
22
|
-
status,
|
|
23
|
-
cancellationReason,
|
|
24
|
-
cancelledAt,
|
|
25
|
-
cancelledBy,
|
|
26
|
-
cancelledByManager,
|
|
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,108 +0,0 @@
|
|
|
1
|
-
# ManagerClubCourtsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | Créer un terrain pour le club courant|
|
|
8
|
-
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | Récupérer tous les terrains du club courant|
|
|
9
|
-
|
|
10
|
-
# **createCourtForClub**
|
|
11
|
-
> CourtResponse createCourtForClub(createCourtRequest)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
ManagerClubCourtsApi,
|
|
19
|
-
Configuration,
|
|
20
|
-
CreateCourtRequest
|
|
21
|
-
} from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new ManagerClubCourtsApi(configuration);
|
|
25
|
-
|
|
26
|
-
let createCourtRequest: CreateCourtRequest; //
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.createCourtForClub(
|
|
29
|
-
createCourtRequest
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **createCourtRequest** | **CreateCourtRequest**| | |
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Return type
|
|
41
|
-
|
|
42
|
-
**CourtResponse**
|
|
43
|
-
|
|
44
|
-
### Authorization
|
|
45
|
-
|
|
46
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
-
|
|
48
|
-
### HTTP request headers
|
|
49
|
-
|
|
50
|
-
- **Content-Type**: application/json
|
|
51
|
-
- **Accept**: application/json
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### HTTP response details
|
|
55
|
-
| Status code | Description | Response headers |
|
|
56
|
-
|-------------|-------------|------------------|
|
|
57
|
-
|**201** | Terrain créé avec succès | - |
|
|
58
|
-
|**400** | Requête invalide | - |
|
|
59
|
-
|**404** | Ressource non trouvée | - |
|
|
60
|
-
|**500** | Erreur serveur interne | - |
|
|
61
|
-
|
|
62
|
-
[[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)
|
|
63
|
-
|
|
64
|
-
# **getCourtsByClub**
|
|
65
|
-
> CourtsResponse getCourtsByClub()
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### Example
|
|
69
|
-
|
|
70
|
-
```typescript
|
|
71
|
-
import {
|
|
72
|
-
ManagerClubCourtsApi,
|
|
73
|
-
Configuration
|
|
74
|
-
} from '@tennac-booking/sdk';
|
|
75
|
-
|
|
76
|
-
const configuration = new Configuration();
|
|
77
|
-
const apiInstance = new ManagerClubCourtsApi(configuration);
|
|
78
|
-
|
|
79
|
-
const { status, data } = await apiInstance.getCourtsByClub();
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Parameters
|
|
83
|
-
This endpoint does not have any parameters.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### Return type
|
|
87
|
-
|
|
88
|
-
**CourtsResponse**
|
|
89
|
-
|
|
90
|
-
### Authorization
|
|
91
|
-
|
|
92
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
93
|
-
|
|
94
|
-
### HTTP request headers
|
|
95
|
-
|
|
96
|
-
- **Content-Type**: Not defined
|
|
97
|
-
- **Accept**: application/json
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
### HTTP response details
|
|
101
|
-
| Status code | Description | Response headers |
|
|
102
|
-
|-------------|-------------|------------------|
|
|
103
|
-
|**200** | Liste des terrains du club | - |
|
|
104
|
-
|**400** | Requête invalide | - |
|
|
105
|
-
|**500** | Erreur serveur interne | - |
|
|
106
|
-
|
|
107
|
-
[[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)
|
|
108
|
-
|