@tennac-booking/sdk 1.0.129 → 1.0.131
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 +17 -2
- package/README.md +24 -5
- package/api.ts +876 -74
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +685 -57
- package/dist/api.js +286 -29
- 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 +685 -57
- package/dist/esm/api.js +282 -25
- 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/BookingsStaffApi.md +10 -10
- package/docs/{CheckInPlayersRequest.md → CheckInPlayerRequest.md} +5 -5
- package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
- package/docs/ClubAccessSettingsResponse.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +3 -3
- package/docs/ClubSettingsManagerApi.md +52 -0
- package/docs/ClubSettingsStaffApi.md +44 -0
- package/docs/ClubsStaffApi.md +47 -0
- package/docs/CreatePlan201Response.md +2 -0
- package/docs/CreateSubscriptionPlanRequest.md +2 -2
- package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
- package/docs/DeleteSubscriptionPlanResponse.md +2 -0
- package/docs/EstimateEventPrice200Response.md +0 -2
- package/docs/EventBookingDetailSummary.md +2 -2
- package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -0
- package/docs/GetClubType200Response.md +20 -0
- package/docs/HotelAccessSettings.md +26 -0
- package/docs/MonthlyTurnoverResponse.md +0 -1
- package/docs/OffPeakRule.md +2 -0
- package/docs/PartialHotelAccessSettings.md +27 -0
- package/docs/PartialPaymentRequirementsSettings.md +23 -0
- package/docs/PartialPublicAccessSettings.md +25 -0
- package/docs/PartialSchoolAccessSettings.md +25 -0
- package/docs/PaymentRequirementsSettings.md +22 -0
- package/docs/PlanPrice.md +26 -0
- package/docs/PlanPriceInput.md +22 -0
- package/docs/PublicAccessSettings.md +24 -0
- package/docs/PublicSubscriptionPlanResponse.md +5 -1
- package/docs/SchoolAccessSettings.md +24 -0
- package/docs/SendSubscriptionInvitationRequest.md +2 -0
- package/docs/SubscriptionPlanDiscountResponse.md +34 -0
- package/docs/SubscriptionPlanResponse.md +7 -1
- package/docs/SubscriptionsManagerApi.md +55 -1
- package/docs/UpdateClubAccessSettingsRequest.md +26 -0
- package/docs/UserClubSubscription.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
|
|
8
8
|
|[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
|
|
9
9
|
|[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
|
|
10
10
|
|[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
|
|
@@ -13,10 +13,10 @@ All URIs are relative to *http://localhost*
|
|
|
13
13
|
|[**getWeeklyBookings**](#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} | |
|
|
14
14
|
|[**listClubBookings**](#listclubbookings) | **GET** /api/bookings/staff | |
|
|
15
15
|
|
|
16
|
-
# **
|
|
17
|
-
>
|
|
16
|
+
# **checkInPlayer**
|
|
17
|
+
> CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
|
|
18
18
|
|
|
19
|
-
Check-in
|
|
19
|
+
Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
@@ -24,18 +24,18 @@ Check-in des joueurs only for club with payment features
|
|
|
24
24
|
import {
|
|
25
25
|
BookingsStaffApi,
|
|
26
26
|
Configuration,
|
|
27
|
-
|
|
27
|
+
CheckInPlayerRequest
|
|
28
28
|
} from '@tennac-booking/sdk';
|
|
29
29
|
|
|
30
30
|
const configuration = new Configuration();
|
|
31
31
|
const apiInstance = new BookingsStaffApi(configuration);
|
|
32
32
|
|
|
33
33
|
let bookingId: string; // (default to undefined)
|
|
34
|
-
let
|
|
34
|
+
let checkInPlayerRequest: CheckInPlayerRequest; //
|
|
35
35
|
|
|
36
|
-
const { status, data } = await apiInstance.
|
|
36
|
+
const { status, data } = await apiInstance.checkInPlayer(
|
|
37
37
|
bookingId,
|
|
38
|
-
|
|
38
|
+
checkInPlayerRequest
|
|
39
39
|
);
|
|
40
40
|
```
|
|
41
41
|
|
|
@@ -43,13 +43,13 @@ const { status, data } = await apiInstance.checkInPlayers(
|
|
|
43
43
|
|
|
44
44
|
|Name | Type | Description | Notes|
|
|
45
45
|
|------------- | ------------- | ------------- | -------------|
|
|
46
|
-
| **
|
|
46
|
+
| **checkInPlayerRequest** | **CheckInPlayerRequest**| | |
|
|
47
47
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
### Return type
|
|
51
51
|
|
|
52
|
-
**
|
|
52
|
+
**CheckInPlayerResponse**
|
|
53
53
|
|
|
54
54
|
### Authorization
|
|
55
55
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CheckInPlayerRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**playerId** | **string** | ID du joueur qui a payé/est arrivé | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { CheckInPlayerRequest } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: CheckInPlayerRequest = {
|
|
16
|
+
playerId,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CheckInPlayerResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
-
**
|
|
9
|
+
**invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { CheckInPlayerResponse } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: CheckInPlayerResponse = {
|
|
17
17
|
message,
|
|
18
|
-
|
|
18
|
+
invoice,
|
|
19
19
|
};
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClubAccessSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**publicAccess** | [**PublicAccessSettings**](PublicAccessSettings.md) | | [default to undefined]
|
|
9
|
+
**schoolAccess** | [**SchoolAccessSettings**](SchoolAccessSettings.md) | | [default to undefined]
|
|
10
|
+
**hotelAccess** | [**HotelAccessSettings**](HotelAccessSettings.md) | | [default to undefined]
|
|
11
|
+
**paymentRequirements** | [**PaymentRequirementsSettings**](PaymentRequirementsSettings.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubAccessSettingsResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubAccessSettingsResponse = {
|
|
19
|
+
publicAccess,
|
|
20
|
+
schoolAccess,
|
|
21
|
+
hotelAccess,
|
|
22
|
+
paymentRequirements,
|
|
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)
|
|
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | ID du plan d\'abonnement | [default to undefined]
|
|
9
9
|
**name** | **string** | Nom du plan | [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**prices** | [**Array<PlanPrice>**](PlanPrice.md) | Tarifications disponibles | [default to undefined]
|
|
11
11
|
**currency** | **string** | Devise | [default to undefined]
|
|
12
|
-
**interval** | **string** | Intervalle
|
|
12
|
+
**interval** | **string** | Intervalle par défaut | [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ import { ClubPlayerSubscriptionSummary } from '@tennac-booking/sdk';
|
|
|
19
19
|
const instance: ClubPlayerSubscriptionSummary = {
|
|
20
20
|
id,
|
|
21
21
|
name,
|
|
22
|
-
|
|
22
|
+
prices,
|
|
23
23
|
currency,
|
|
24
24
|
interval,
|
|
25
25
|
};
|
|
@@ -4,11 +4,63 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**updateAccessSettings**](#updateaccesssettings) | **PATCH** /api/club-settings/access | |
|
|
7
8
|
|[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PATCH** /api/club-settings/settings/general | |
|
|
8
9
|
|[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
|
|
9
10
|
|[**updatePresentationSettings**](#updatepresentationsettings) | **PATCH** /api/club-settings/presentation | |
|
|
10
11
|
|[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
|
|
11
12
|
|
|
13
|
+
# **updateAccessSettings**
|
|
14
|
+
> ClubAccessSettingsResponse updateAccessSettings(updateClubAccessSettingsRequest)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ClubSettingsManagerApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
UpdateClubAccessSettingsRequest
|
|
24
|
+
} from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
28
|
+
|
|
29
|
+
let updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.updateAccessSettings(
|
|
32
|
+
updateClubAccessSettingsRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **updateClubAccessSettingsRequest** | **UpdateClubAccessSettingsRequest**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**ClubAccessSettingsResponse**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Paramètres d\'accès mis à jour | - |
|
|
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
|
+
|
|
12
64
|
# **updateClubGeneralSettings**
|
|
13
65
|
> ClubGeneralSettingsResponse updateClubGeneralSettings(updateClubGeneralSettingsRequest)
|
|
14
66
|
|
|
@@ -4,11 +4,55 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getAccessSettings**](#getaccesssettings) | **GET** /api/club-settings/access | |
|
|
7
8
|
|[**getClubGeneralSettings**](#getclubgeneralsettings) | **GET** /api/club-settings/settings/general | |
|
|
8
9
|
|[**getHoursSettings**](#gethourssettings) | **GET** /api/club-settings/hours | |
|
|
9
10
|
|[**getPresentationSettings**](#getpresentationsettings) | **GET** /api/club-settings/presentation | |
|
|
10
11
|
|[**getReservationSettings**](#getreservationsettings) | **GET** /api/club-settings/reservation | |
|
|
11
12
|
|
|
13
|
+
# **getAccessSettings**
|
|
14
|
+
> ClubAccessSettingsResponse getAccessSettings()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ClubSettingsStaffApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ClubSettingsStaffApi(configuration);
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.getAccessSettings();
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
This endpoint does not have any parameters.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Return type
|
|
36
|
+
|
|
37
|
+
**ClubAccessSettingsResponse**
|
|
38
|
+
|
|
39
|
+
### Authorization
|
|
40
|
+
|
|
41
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
42
|
+
|
|
43
|
+
### HTTP request headers
|
|
44
|
+
|
|
45
|
+
- **Content-Type**: Not defined
|
|
46
|
+
- **Accept**: application/json
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### HTTP response details
|
|
50
|
+
| Status code | Description | Response headers |
|
|
51
|
+
|-------------|-------------|------------------|
|
|
52
|
+
|**200** | Paramètres d\'accès du club | - |
|
|
53
|
+
|
|
54
|
+
[[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)
|
|
55
|
+
|
|
12
56
|
# **getClubGeneralSettings**
|
|
13
57
|
> ClubGeneralSettingsResponse getClubGeneralSettings()
|
|
14
58
|
|
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost*
|
|
|
10
10
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
11
11
|
|[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
|
|
12
12
|
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
|
|
13
|
+
|[**getClubType**](#getclubtype) | **GET** /api/clubs/clubType | |
|
|
13
14
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
14
15
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
15
16
|
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
|
|
@@ -292,6 +293,52 @@ This endpoint does not have any parameters.
|
|
|
292
293
|
|
|
293
294
|
[[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)
|
|
294
295
|
|
|
296
|
+
# **getClubType**
|
|
297
|
+
> GetClubType200Response getClubType()
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
### Example
|
|
301
|
+
|
|
302
|
+
```typescript
|
|
303
|
+
import {
|
|
304
|
+
ClubsStaffApi,
|
|
305
|
+
Configuration
|
|
306
|
+
} from '@tennac-booking/sdk';
|
|
307
|
+
|
|
308
|
+
const configuration = new Configuration();
|
|
309
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
310
|
+
|
|
311
|
+
const { status, data } = await apiInstance.getClubType();
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### Parameters
|
|
315
|
+
This endpoint does not have any parameters.
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
### Return type
|
|
319
|
+
|
|
320
|
+
**GetClubType200Response**
|
|
321
|
+
|
|
322
|
+
### Authorization
|
|
323
|
+
|
|
324
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
325
|
+
|
|
326
|
+
### HTTP request headers
|
|
327
|
+
|
|
328
|
+
- **Content-Type**: Not defined
|
|
329
|
+
- **Accept**: application/json
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
### HTTP response details
|
|
333
|
+
| Status code | Description | Response headers |
|
|
334
|
+
|-------------|-------------|------------------|
|
|
335
|
+
|**200** | Type de club | - |
|
|
336
|
+
|**400** | Bad Request | - |
|
|
337
|
+
|**404** | Club non trouvé | - |
|
|
338
|
+
|**500** | Server Error | - |
|
|
339
|
+
|
|
340
|
+
[[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)
|
|
341
|
+
|
|
295
342
|
# **getCourtsByClub**
|
|
296
343
|
> Array<CourtResponse> getCourtsByClub()
|
|
297
344
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**priceIds** | **Array<string>** | | [default to undefined]
|
|
8
9
|
**priceId** | **string** | | [default to undefined]
|
|
9
10
|
**productId** | **string** | | [default to undefined]
|
|
10
11
|
|
|
@@ -14,6 +15,7 @@ Name | Type | Description | Notes
|
|
|
14
15
|
import { CreatePlan201Response } from '@tennac-booking/sdk';
|
|
15
16
|
|
|
16
17
|
const instance: CreatePlan201Response = {
|
|
18
|
+
priceIds,
|
|
17
19
|
priceId,
|
|
18
20
|
productId,
|
|
19
21
|
};
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**
|
|
11
|
+
**prices** | [**Array<PlanPriceInput>**](PlanPriceInput.md) | | [default to undefined]
|
|
12
12
|
**currency** | **string** | | [default to undefined]
|
|
13
13
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
|
|
14
14
|
**discount** | [**CreateSubscriptionPlanRequestDiscount**](CreateSubscriptionPlanRequestDiscount.md) | | [optional] [default to undefined]
|
|
@@ -22,7 +22,7 @@ const instance: CreateSubscriptionPlanRequest = {
|
|
|
22
22
|
clubId,
|
|
23
23
|
name,
|
|
24
24
|
description,
|
|
25
|
-
|
|
25
|
+
prices,
|
|
26
26
|
currency,
|
|
27
27
|
interval,
|
|
28
28
|
discount,
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**bookingFree** | **boolean** | | [optional] [default to undefined]
|
|
9
9
|
**offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
|
|
10
|
+
**offPeakRuleNames** | **Array<string>** | Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club. | [optional] [default to undefined]
|
|
10
11
|
**validTo** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**validFrom** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**maxDiscountAmountInCents** | **number** | | [optional] [default to undefined]
|
|
@@ -21,6 +22,7 @@ import { CreateSubscriptionPlanRequestDiscount } from '@tennac-booking/sdk';
|
|
|
21
22
|
const instance: CreateSubscriptionPlanRequestDiscount = {
|
|
22
23
|
bookingFree,
|
|
23
24
|
offPeakRules,
|
|
25
|
+
offPeakRuleNames,
|
|
24
26
|
validTo,
|
|
25
27
|
validFrom,
|
|
26
28
|
maxDiscountAmountInCents,
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | | [default to undefined]
|
|
9
|
+
**archivedInstead** | **boolean** | | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { DeleteSubscriptionPlanResponse } from '@tennac-booking/sdk';
|
|
|
14
15
|
|
|
15
16
|
const instance: DeleteSubscriptionPlanResponse = {
|
|
16
17
|
message,
|
|
18
|
+
archivedInstead,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**creditsAppliedInCents** | **number** | | [optional] [default to undefined]
|
|
11
11
|
**currency** | **string** | | [default to undefined]
|
|
12
12
|
**total** | **number** | | [default to undefined]
|
|
13
|
-
**perPayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
14
13
|
**perPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
15
14
|
|
|
16
15
|
## Example
|
|
@@ -24,7 +23,6 @@ const instance: EstimateEventPrice200Response = {
|
|
|
24
23
|
creditsAppliedInCents,
|
|
25
24
|
currency,
|
|
26
25
|
total,
|
|
27
|
-
perPayer,
|
|
28
26
|
perPlayer,
|
|
29
27
|
};
|
|
30
28
|
```
|
|
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
|
|
10
10
|
**teamName** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**players** | **Array<string>** | | [default to undefined]
|
|
12
|
-
**
|
|
12
|
+
**paymentPerPlayers** | [**Array<EventBookingDetailSummaryPaymentPerPlayersInner>**](EventBookingDetailSummaryPaymentPerPlayersInner.md) | Détails des paiements par joueur pour cette réservation d\'événement. Remplace l\'ancien champ `invoices`. | [default to undefined]
|
|
13
13
|
**creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
15
15
|
**limitSetupDate** | **string** | | [optional] [default to undefined]
|
|
@@ -27,7 +27,7 @@ const instance: EventBookingDetailSummary = {
|
|
|
27
27
|
status,
|
|
28
28
|
teamName,
|
|
29
29
|
players,
|
|
30
|
-
|
|
30
|
+
paymentPerPlayers,
|
|
31
31
|
creatorPaymentMethodId,
|
|
32
32
|
paymentMethodSetupCompleted,
|
|
33
33
|
limitSetupDate,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# EventBookingDetailSummaryPaymentPerPlayersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**status** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
|
|
10
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**id** | **string** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EventBookingDetailSummaryPaymentPerPlayersInner } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: EventBookingDetailSummaryPaymentPerPlayersInner = {
|
|
21
|
+
amount,
|
|
22
|
+
status,
|
|
23
|
+
profilePicture,
|
|
24
|
+
lastName,
|
|
25
|
+
firstName,
|
|
26
|
+
id,
|
|
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,20 @@
|
|
|
1
|
+
# GetClubType200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubType** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetClubType200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetClubType200Response = {
|
|
16
|
+
clubType,
|
|
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,26 @@
|
|
|
1
|
+
# HotelAccessSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**accessCode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**validFrom** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**validUntil** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { HotelAccessSettings } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: HotelAccessSettings = {
|
|
19
|
+
enabled,
|
|
20
|
+
accessCode,
|
|
21
|
+
validFrom,
|
|
22
|
+
validUntil,
|
|
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)
|
package/docs/OffPeakRule.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**pricingPeriodName** | **string** | | [optional] [default to undefined]
|
|
8
9
|
**percentage** | **number** | | [default to undefined]
|
|
9
10
|
**endHour** | **number** | | [default to undefined]
|
|
10
11
|
**startHour** | **number** | | [default to undefined]
|
|
@@ -16,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
16
17
|
import { OffPeakRule } from '@tennac-booking/sdk';
|
|
17
18
|
|
|
18
19
|
const instance: OffPeakRule = {
|
|
20
|
+
pricingPeriodName,
|
|
19
21
|
percentage,
|
|
20
22
|
endHour,
|
|
21
23
|
startHour,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# PartialHotelAccessSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**accessCode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**validFrom** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**validUntil** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PartialHotelAccessSettings } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: PartialHotelAccessSettings = {
|
|
20
|
+
accessCode,
|
|
21
|
+
validFrom,
|
|
22
|
+
validUntil,
|
|
23
|
+
enabled,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[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,23 @@
|
|
|
1
|
+
# PartialPaymentRequirementsSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**isNoShowEnabled** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
**requireOnlinePayment** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PartialPaymentRequirementsSettings } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: PartialPaymentRequirementsSettings = {
|
|
18
|
+
isNoShowEnabled,
|
|
19
|
+
requireOnlinePayment,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,25 @@
|
|
|
1
|
+
# PartialPublicAccessSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**paymentMode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**pricePerAccess** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PartialPublicAccessSettings } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: PartialPublicAccessSettings = {
|
|
19
|
+
paymentMode,
|
|
20
|
+
pricePerAccess,
|
|
21
|
+
enabled,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,25 @@
|
|
|
1
|
+
# PartialSchoolAccessSettings
|
|
2
|
+
|
|
3
|
+
Make all properties in T optional
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**emailSuffixes** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**requireCertification** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PartialSchoolAccessSettings } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: PartialSchoolAccessSettings = {
|
|
19
|
+
emailSuffixes,
|
|
20
|
+
requireCertification,
|
|
21
|
+
enabled,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|