@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.
Files changed (63) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +24 -5
  3. package/api.ts +876 -74
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +685 -57
  8. package/dist/api.js +286 -29
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +685 -57
  16. package/dist/esm/api.js +282 -25
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsStaffApi.md +10 -10
  28. package/docs/{CheckInPlayersRequest.md → CheckInPlayerRequest.md} +5 -5
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubAccessSettingsResponse.md +26 -0
  31. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  32. package/docs/ClubSettingsManagerApi.md +52 -0
  33. package/docs/ClubSettingsStaffApi.md +44 -0
  34. package/docs/ClubsStaffApi.md +47 -0
  35. package/docs/CreatePlan201Response.md +2 -0
  36. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  37. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  38. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  39. package/docs/EstimateEventPrice200Response.md +0 -2
  40. package/docs/EventBookingDetailSummary.md +2 -2
  41. package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -0
  42. package/docs/GetClubType200Response.md +20 -0
  43. package/docs/HotelAccessSettings.md +26 -0
  44. package/docs/MonthlyTurnoverResponse.md +0 -1
  45. package/docs/OffPeakRule.md +2 -0
  46. package/docs/PartialHotelAccessSettings.md +27 -0
  47. package/docs/PartialPaymentRequirementsSettings.md +23 -0
  48. package/docs/PartialPublicAccessSettings.md +25 -0
  49. package/docs/PartialSchoolAccessSettings.md +25 -0
  50. package/docs/PaymentRequirementsSettings.md +22 -0
  51. package/docs/PlanPrice.md +26 -0
  52. package/docs/PlanPriceInput.md +22 -0
  53. package/docs/PublicAccessSettings.md +24 -0
  54. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  55. package/docs/SchoolAccessSettings.md +24 -0
  56. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  57. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  58. package/docs/SubscriptionPlanResponse.md +7 -1
  59. package/docs/SubscriptionsManagerApi.md +55 -1
  60. package/docs/UpdateClubAccessSettingsRequest.md +26 -0
  61. package/docs/UserClubSubscription.md +2 -0
  62. package/index.ts +1 -1
  63. package/package.json +1 -1
@@ -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)
@@ -0,0 +1,22 @@
1
+ # PlanPriceInput
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
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PlanPriceInput } from '@tennac-booking/sdk';
15
+
16
+ const instance: PlanPriceInput = {
17
+ amountInCents,
18
+ interval,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # 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
 
@@ -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 (archive) un plan par productId (manager)
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)
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **amountInCents** | **number** | | [default to undefined]
19
19
  **currency** | **string** | | [default to undefined]
20
20
  **interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
21
+ **productId** | **string** | | [default to undefined]
21
22
 
22
23
  ## Example
23
24
 
@@ -38,6 +39,7 @@ const instance: UserClubSubscription = {
38
39
  amountInCents,
39
40
  currency,
40
41
  interval,
42
+ productId,
41
43
  };
42
44
  ```
43
45
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.129
7
+ * The version of the OpenAPI document: 1.0.131
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.129",
3
+ "version": "1.0.131",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {