@tennac-booking/sdk 1.0.129 → 1.0.130
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 +344 -346
- package/README.md +23 -24
- package/api.ts +857 -1035
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +686 -858
- package/dist/api.js +289 -315
- 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 +686 -858
- package/dist/esm/api.js +285 -311
- 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/{EventBookingResponsePlayersInnerInvoiceStatus.md → CheckInPlayerRequest.md} +5 -3
- 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/EventsApi.md +1 -4
- package/docs/EventsManagerApi.md +0 -110
- package/docs/{EventBookingResponseSetupStatus.md → GetClubType200Response.md} +5 -3
- 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/{CheckInPlayersRequest.md → PlanPriceInput.md} +7 -5
- package/docs/PublicAccessSettings.md +24 -0
- package/docs/PublicSubscriptionPlanResponse.md +5 -1
- package/docs/PublishEventResponse.md +0 -4
- 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/UsersApi.md +0 -54
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/EventBookingDetailSummary.md +0 -40
- package/docs/EventBookingResponse.md +0 -36
- package/docs/EventBookingResponsePlayersInner.md +0 -28
- package/docs/EventBookingStatus.md +0 -16
- package/docs/InvoiceStatusSETUPPENDING.md +0 -8
- package/docs/InvoiceStatusSETUPSUCCESS.md +0 -8
- package/docs/ParticipationType.md +0 -10
- package/docs/RecurringDefinitionResponse.md +0 -34
- package/docs/UpdateRecurringDefinition200Response.md +0 -20
- package/docs/UpdateRecurringDefinitionRequest.md +0 -56
- package/docs/UserEventParticipation.md +0 -22
- package/docs/UserEventSummary.md +0 -44
- package/docs/UserEventsResponse.md +0 -28
- package/docs/VisibilityType.md +0 -12
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GetClubType200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubType** | **string** | | [default to undefined]
|
|
8
9
|
|
|
9
10
|
## Example
|
|
10
11
|
|
|
11
12
|
```typescript
|
|
12
|
-
import {
|
|
13
|
+
import { GetClubType200Response } from '@tennac-booking/sdk';
|
|
13
14
|
|
|
14
|
-
const instance:
|
|
15
|
+
const instance: GetClubType200Response = {
|
|
16
|
+
clubType,
|
|
15
17
|
};
|
|
16
18
|
```
|
|
17
19
|
|
|
@@ -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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PaymentRequirementsSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**isNoShowEnabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**requireOnlinePayment** | **boolean** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PaymentRequirementsSettings } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: PaymentRequirementsSettings = {
|
|
17
|
+
isNoShowEnabled,
|
|
18
|
+
requireOnlinePayment,
|
|
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,26 @@
|
|
|
1
|
+
# PlanPrice
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**amountInCents** | **number** | | [default to undefined]
|
|
9
|
+
**interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
|
|
10
|
+
**active** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**stripePriceId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PlanPrice } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: PlanPrice = {
|
|
19
|
+
amountInCents,
|
|
20
|
+
interval,
|
|
21
|
+
active,
|
|
22
|
+
stripePriceId,
|
|
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,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PlanPriceInput
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**amountInCents** | **number** | | [default to undefined]
|
|
9
|
+
**interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { PlanPriceInput } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: PlanPriceInput = {
|
|
17
|
+
amountInCents,
|
|
18
|
+
interval,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PublicAccessSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**paymentMode** | **string** | | [default to undefined]
|
|
10
|
+
**pricePerAccess** | **number** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PublicAccessSettings } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: PublicAccessSettings = {
|
|
18
|
+
enabled,
|
|
19
|
+
paymentMode,
|
|
20
|
+
pricePerAccess,
|
|
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)
|
|
@@ -7,10 +7,12 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**priceId** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
|
-
**amountInCents** | **number** | | [default to undefined]
|
|
10
|
+
**amountInCents** | **number** | | [optional] [default to undefined]
|
|
11
11
|
**currency** | **string** | | [default to undefined]
|
|
12
|
+
**prices** | [**Array<PlanPrice>**](PlanPrice.md) | | [default to undefined]
|
|
12
13
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
13
14
|
**description** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -22,8 +24,10 @@ const instance: PublicSubscriptionPlanResponse = {
|
|
|
22
24
|
name,
|
|
23
25
|
amountInCents,
|
|
24
26
|
currency,
|
|
27
|
+
prices,
|
|
25
28
|
interval,
|
|
26
29
|
description,
|
|
30
|
+
discount,
|
|
27
31
|
};
|
|
28
32
|
```
|
|
29
33
|
|
|
@@ -7,8 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
|
|
9
9
|
**refundedBookingIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
-
**userBooking** | [**EventBookingResponse**](EventBookingResponse.md) | | [optional] [default to undefined]
|
|
11
|
-
**needsToSetupPaymentMethod** | **boolean** | | [optional] [default to undefined]
|
|
12
10
|
|
|
13
11
|
## Example
|
|
14
12
|
|
|
@@ -18,8 +16,6 @@ import { PublishEventResponse } from '@tennac-booking/sdk';
|
|
|
18
16
|
const instance: PublishEventResponse = {
|
|
19
17
|
event,
|
|
20
18
|
refundedBookingIds,
|
|
21
|
-
userBooking,
|
|
22
|
-
needsToSetupPaymentMethod,
|
|
23
19
|
};
|
|
24
20
|
```
|
|
25
21
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SchoolAccessSettings
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | | [default to undefined]
|
|
9
|
+
**emailSuffixes** | **Array<string>** | | [default to undefined]
|
|
10
|
+
**requireCertification** | **boolean** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SchoolAccessSettings } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SchoolAccessSettings = {
|
|
18
|
+
enabled,
|
|
19
|
+
emailSuffixes,
|
|
20
|
+
requireCertification,
|
|
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)
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**userId** | **string** | | [default to undefined]
|
|
9
9
|
**productId** | **string** | Identifiant Stripe (productId) du plan sélectionné par le staff. | [default to undefined]
|
|
10
|
+
**priceId** | **string** | Price spécifique proposé dans l\'invitation (facultatif). | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { SendSubscriptionInvitationRequest } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: SendSubscriptionInvitationRequest = {
|
|
17
18
|
userId,
|
|
18
19
|
productId,
|
|
20
|
+
priceId,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# SubscriptionPlanDiscountResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | [**DiscountType**](DiscountType.md) | | [default to undefined]
|
|
9
|
+
**percentage** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**maxDiscountAmountInCents** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**validFrom** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**validTo** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**offPeakRuleNames** | **Array<string>** | | [optional] [default to undefined]
|
|
14
|
+
**offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
|
|
15
|
+
**bookingFree** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { SubscriptionPlanDiscountResponse } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: SubscriptionPlanDiscountResponse = {
|
|
23
|
+
type,
|
|
24
|
+
percentage,
|
|
25
|
+
maxDiscountAmountInCents,
|
|
26
|
+
validFrom,
|
|
27
|
+
validTo,
|
|
28
|
+
offPeakRuleNames,
|
|
29
|
+
offPeakRules,
|
|
30
|
+
bookingFree,
|
|
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)
|
|
@@ -9,10 +9,13 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**productName** | **string** | | [default to undefined]
|
|
10
10
|
**productActive** | **boolean** | | [default to undefined]
|
|
11
11
|
**priceId** | **string** | | [default to undefined]
|
|
12
|
-
**amountInCents** | **number** | | [default to undefined]
|
|
12
|
+
**amountInCents** | **number** | | [optional] [default to undefined]
|
|
13
13
|
**currency** | **string** | | [default to undefined]
|
|
14
|
+
**prices** | [**Array<PlanPrice>**](PlanPrice.md) | | [default to undefined]
|
|
14
15
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
15
16
|
**priceActive** | **boolean** | | [default to undefined]
|
|
17
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
16
19
|
|
|
17
20
|
## Example
|
|
18
21
|
|
|
@@ -26,8 +29,11 @@ const instance: SubscriptionPlanResponse = {
|
|
|
26
29
|
priceId,
|
|
27
30
|
amountInCents,
|
|
28
31
|
currency,
|
|
32
|
+
prices,
|
|
29
33
|
interval,
|
|
30
34
|
priceActive,
|
|
35
|
+
description,
|
|
36
|
+
discount,
|
|
31
37
|
};
|
|
32
38
|
```
|
|
33
39
|
|
|
@@ -4,10 +4,64 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**archivePlan**](#archiveplan) | **POST** /api/subscriptions/plans/{productId}/archive | |
|
|
7
8
|
|[**createPlan**](#createplan) | **POST** /api/subscriptions/plans | |
|
|
8
9
|
|[**deletePlan**](#deleteplan) | **DELETE** /api/subscriptions/plans/{productId} | |
|
|
9
10
|
|[**updatePlan**](#updateplan) | **PUT** /api/subscriptions/plans | |
|
|
10
11
|
|
|
12
|
+
# **archivePlan**
|
|
13
|
+
> DeleteSubscriptionPlanResponse archivePlan()
|
|
14
|
+
|
|
15
|
+
Supprime (archive) un plan par productId (manager)
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
SubscriptionsManagerApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new SubscriptionsManagerApi(configuration);
|
|
27
|
+
|
|
28
|
+
let productId: string; // (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.archivePlan(
|
|
31
|
+
productId
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **productId** | [**string**] | | defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**DeleteSubscriptionPlanResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Plan archivé | - |
|
|
60
|
+
|**400** | Bad Request | - |
|
|
61
|
+
|**401** | Unauthorized | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
11
65
|
# **createPlan**
|
|
12
66
|
> CreatePlan201Response createPlan(createSubscriptionPlanRequest)
|
|
13
67
|
|
|
@@ -65,7 +119,7 @@ const { status, data } = await apiInstance.createPlan(
|
|
|
65
119
|
# **deletePlan**
|
|
66
120
|
> DeleteSubscriptionPlanResponse deletePlan()
|
|
67
121
|
|
|
68
|
-
Supprime
|
|
122
|
+
Supprime un plan par productId (manager)
|
|
69
123
|
|
|
70
124
|
### Example
|
|
71
125
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UpdateClubAccessSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**publicAccess** | [**PartialPublicAccessSettings**](PartialPublicAccessSettings.md) | | [optional] [default to undefined]
|
|
9
|
+
**schoolAccess** | [**PartialSchoolAccessSettings**](PartialSchoolAccessSettings.md) | | [optional] [default to undefined]
|
|
10
|
+
**hotelAccess** | [**PartialHotelAccessSettings**](PartialHotelAccessSettings.md) | | [optional] [default to undefined]
|
|
11
|
+
**paymentRequirements** | [**PartialPaymentRequirementsSettings**](PartialPaymentRequirementsSettings.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UpdateClubAccessSettingsRequest } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UpdateClubAccessSettingsRequest = {
|
|
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)
|
package/docs/UsersApi.md
CHANGED
|
@@ -22,7 +22,6 @@ All URIs are relative to *http://localhost*
|
|
|
22
22
|
|[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /api/users/nearest-players/coordinates | |
|
|
23
23
|
|[**getPlayerCategories**](#getplayercategories) | **GET** /api/users/players/categories | |
|
|
24
24
|
|[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
|
|
25
|
-
|[**getUserEvents**](#getuserevents) | **GET** /api/users/me/events | |
|
|
26
25
|
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
|
|
27
26
|
|[**listPlayers**](#listplayers) | **GET** /api/users/players | |
|
|
28
27
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
@@ -912,59 +911,6 @@ const { status, data } = await apiInstance.getUserBookings(
|
|
|
912
911
|
- **Accept**: application/json
|
|
913
912
|
|
|
914
913
|
|
|
915
|
-
### HTTP response details
|
|
916
|
-
| Status code | Description | Response headers |
|
|
917
|
-
|-------------|-------------|------------------|
|
|
918
|
-
|**200** | Ok | - |
|
|
919
|
-
|
|
920
|
-
[[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)
|
|
921
|
-
|
|
922
|
-
# **getUserEvents**
|
|
923
|
-
> UserEventsResponse getUserEvents()
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
### Example
|
|
927
|
-
|
|
928
|
-
```typescript
|
|
929
|
-
import {
|
|
930
|
-
UsersApi,
|
|
931
|
-
Configuration
|
|
932
|
-
} from '@tennac-booking/sdk';
|
|
933
|
-
|
|
934
|
-
const configuration = new Configuration();
|
|
935
|
-
const apiInstance = new UsersApi(configuration);
|
|
936
|
-
|
|
937
|
-
let limit: number; // (optional) (default to undefined)
|
|
938
|
-
let skip: number; // (optional) (default to undefined)
|
|
939
|
-
|
|
940
|
-
const { status, data } = await apiInstance.getUserEvents(
|
|
941
|
-
limit,
|
|
942
|
-
skip
|
|
943
|
-
);
|
|
944
|
-
```
|
|
945
|
-
|
|
946
|
-
### Parameters
|
|
947
|
-
|
|
948
|
-
|Name | Type | Description | Notes|
|
|
949
|
-
|------------- | ------------- | ------------- | -------------|
|
|
950
|
-
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
951
|
-
| **skip** | [**number**] | | (optional) defaults to undefined|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
### Return type
|
|
955
|
-
|
|
956
|
-
**UserEventsResponse**
|
|
957
|
-
|
|
958
|
-
### Authorization
|
|
959
|
-
|
|
960
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
961
|
-
|
|
962
|
-
### HTTP request headers
|
|
963
|
-
|
|
964
|
-
- **Content-Type**: Not defined
|
|
965
|
-
- **Accept**: application/json
|
|
966
|
-
|
|
967
|
-
|
|
968
914
|
### HTTP response details
|
|
969
915
|
| Status code | Description | Response headers |
|
|
970
916
|
|-------------|-------------|------------------|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# EventBookingDetailSummary
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [default to undefined]
|
|
9
|
-
**status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
|
|
10
|
-
**teamName** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**players** | **Array<string>** | | [default to undefined]
|
|
12
|
-
**invoices** | **Array<string>** | | [default to undefined]
|
|
13
|
-
**creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
15
|
-
**limitSetupDate** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**limitCancellationDate** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**createdAt** | **string** | | [default to undefined]
|
|
18
|
-
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { EventBookingDetailSummary } from '@tennac-booking/sdk';
|
|
24
|
-
|
|
25
|
-
const instance: EventBookingDetailSummary = {
|
|
26
|
-
id,
|
|
27
|
-
status,
|
|
28
|
-
teamName,
|
|
29
|
-
players,
|
|
30
|
-
invoices,
|
|
31
|
-
creatorPaymentMethodId,
|
|
32
|
-
paymentMethodSetupCompleted,
|
|
33
|
-
limitSetupDate,
|
|
34
|
-
limitCancellationDate,
|
|
35
|
-
createdAt,
|
|
36
|
-
updatedAt,
|
|
37
|
-
};
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|