@tennac-booking/sdk 1.0.60 → 1.0.62

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 (83) hide show
  1. package/.openapi-generator/FILES +220 -182
  2. package/README.md +57 -18
  3. package/api.ts +7712 -5584
  4. package/base.ts +2 -2
  5. package/common.ts +2 -2
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +3797 -1986
  8. package/dist/api.js +1071 -483
  9. package/dist/base.d.ts +2 -2
  10. package/dist/base.js +2 -2
  11. package/dist/common.d.ts +2 -2
  12. package/dist/common.js +2 -2
  13. package/dist/configuration.d.ts +2 -2
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +3797 -1986
  16. package/dist/esm/api.js +1052 -481
  17. package/dist/esm/base.d.ts +2 -2
  18. package/dist/esm/base.js +2 -2
  19. package/dist/esm/common.d.ts +2 -2
  20. package/dist/esm/common.js +2 -2
  21. package/dist/esm/configuration.d.ts +2 -2
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +2 -2
  24. package/dist/esm/index.js +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +2 -2
  27. package/docs/ClubResponse.md +0 -1
  28. package/docs/ClubSubscriptions.md +26 -0
  29. package/docs/ClubsManagerApi.md +6 -61
  30. package/docs/ClubsStaffApi.md +2 -2
  31. package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
  32. package/docs/CreateSubscriptionPlanRequest.md +10 -4
  33. package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
  34. package/docs/DefaultApi.md +0 -54
  35. package/docs/{NotImplementedResponse.md → DeleteSubscriptionPlanResponse.md} +3 -3
  36. package/docs/DiscountType.md +14 -0
  37. package/docs/OffPeakRule.md +26 -0
  38. package/docs/PlanInterval.md +14 -0
  39. package/docs/PlayerSummary.md +2 -0
  40. package/docs/PublicSubscriptionPlanResponse.md +30 -0
  41. package/docs/{DeleteSlotsByClubInRange200Response.md → RequestPasswordReset200Response.md} +3 -3
  42. package/docs/ResetPasswordRequest.md +22 -0
  43. package/docs/StripeStripeDeletedProduct.md +25 -0
  44. package/docs/StripeStripePrice.md +63 -0
  45. package/docs/StripeStripePriceBillingScheme.md +10 -0
  46. package/docs/StripeStripePriceCurrencyOptions.md +28 -0
  47. package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
  48. package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
  49. package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
  50. package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
  51. package/docs/StripeStripePriceProduct.md +59 -0
  52. package/docs/StripeStripePriceRecurring.md +28 -0
  53. package/docs/StripeStripePriceRecurringInterval.md +14 -0
  54. package/docs/StripeStripePriceRecurringUsageType.md +10 -0
  55. package/docs/StripeStripePriceTaxBehavior.md +12 -0
  56. package/docs/StripeStripePriceTier.md +28 -0
  57. package/docs/StripeStripePriceTiersMode.md +10 -0
  58. package/docs/StripeStripePriceTransformQuantity.md +22 -0
  59. package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
  60. package/docs/StripeStripePriceType.md +10 -0
  61. package/docs/StripeStripeProduct.md +59 -0
  62. package/docs/StripeStripeProductDefaultPrice.md +63 -0
  63. package/docs/StripeStripeProductMarketingFeature.md +20 -0
  64. package/docs/StripeStripeProductPackageDimensions.md +26 -0
  65. package/docs/StripeStripeProductTaxCode.md +27 -0
  66. package/docs/StripeStripeProductType.md +10 -0
  67. package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
  68. package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
  69. package/docs/StripeStripeTaxCode.md +27 -0
  70. package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
  71. package/docs/SubscriptionPlanResponse.md +14 -2
  72. package/docs/SubscriptionsManagerApi.md +171 -0
  73. package/docs/SubscriptionsPublicApi.md +60 -0
  74. package/docs/SubscriptionsStaffApi.md +54 -0
  75. package/docs/SubscriptionsUserApi.md +222 -0
  76. package/docs/{GetCourtsByClub200Response.md → UpdatePlanRequest.md} +7 -5
  77. package/docs/UserClubSubscription.md +42 -0
  78. package/docs/UserSubscriptionsResponse.md +1 -1
  79. package/docs/UsersApi.md +104 -212
  80. package/docs/{DeleteClubResponse.md → VerifyEmailRequest.md} +5 -5
  81. package/index.ts +2 -2
  82. package/package.json +1 -1
  83. package/docs/SubscriptionSessionResponse.md +0 -20
@@ -0,0 +1,64 @@
1
+ # StripeStripeResponseStripeStripePrice
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Unique identifier for the object. | [default to undefined]
9
+ **object** | **string** | String representing the object\'s type. Objects of the same type share the same value. | [default to undefined]
10
+ **active** | **boolean** | Whether the price can be used for new purchases. | [default to undefined]
11
+ **billing_scheme** | [**StripeStripePriceBillingScheme**](StripeStripePriceBillingScheme.md) | | [default to undefined]
12
+ **created** | **number** | Time at which the object was created. Measured in seconds since the Unix epoch. | [default to undefined]
13
+ **currency** | **string** | Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). | [default to undefined]
14
+ **currency_options** | [**{ [key: string]: StripeStripePriceCurrencyOptions; }**](StripeStripePriceCurrencyOptions.md) | Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies). | [optional] [default to undefined]
15
+ **custom_unit_amount** | [**StripeStripePriceCustomUnitAmount**](StripeStripePriceCustomUnitAmount.md) | When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. | [default to undefined]
16
+ **deleted** | **any** | Always true for a deleted object | [optional] [default to undefined]
17
+ **livemode** | **boolean** | Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | [default to undefined]
18
+ **lookup_key** | **string** | A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters. | [default to undefined]
19
+ **metadata** | **{ [key: string]: string; }** | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | [default to undefined]
20
+ **nickname** | **string** | A brief description of the price, hidden from customers. | [default to undefined]
21
+ **product** | [**StripeStripePriceProduct**](StripeStripePriceProduct.md) | | [default to undefined]
22
+ **recurring** | [**StripeStripePriceRecurring**](StripeStripePriceRecurring.md) | The recurring components of a price such as `interval` and `usage_type`. | [default to undefined]
23
+ **tax_behavior** | [**StripeStripePriceTaxBehavior**](StripeStripePriceTaxBehavior.md) | Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed. | [default to undefined]
24
+ **tiers** | [**Array<StripeStripePriceTier>**](StripeStripePriceTier.md) | Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`. | [optional] [default to undefined]
25
+ **tiers_mode** | [**StripeStripePriceTiersMode**](StripeStripePriceTiersMode.md) | Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows. | [default to undefined]
26
+ **transform_quantity** | [**StripeStripePriceTransformQuantity**](StripeStripePriceTransformQuantity.md) | Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with `tiers`. | [default to undefined]
27
+ **type** | [**StripeStripePriceType**](StripeStripePriceType.md) | | [default to undefined]
28
+ **unit_amount** | **number** | The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if `billing_scheme=per_unit`. | [default to undefined]
29
+ **unit_amount_decimal** | **string** | The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if `billing_scheme=per_unit`. | [default to undefined]
30
+ **lastResponse** | [**StripeStripeResponseStripeStripePriceAllOfLastResponse**](StripeStripeResponseStripeStripePriceAllOfLastResponse.md) | | [default to undefined]
31
+
32
+ ## Example
33
+
34
+ ```typescript
35
+ import { StripeStripeResponseStripeStripePrice } from '@tennac-booking/sdk';
36
+
37
+ const instance: StripeStripeResponseStripeStripePrice = {
38
+ id,
39
+ object,
40
+ active,
41
+ billing_scheme,
42
+ created,
43
+ currency,
44
+ currency_options,
45
+ custom_unit_amount,
46
+ deleted,
47
+ livemode,
48
+ lookup_key,
49
+ metadata,
50
+ nickname,
51
+ product,
52
+ recurring,
53
+ tax_behavior,
54
+ tiers,
55
+ tiers_mode,
56
+ transform_quantity,
57
+ type,
58
+ unit_amount,
59
+ unit_amount_decimal,
60
+ lastResponse,
61
+ };
62
+ ```
63
+
64
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,30 @@
1
+ # StripeStripeResponseStripeStripePriceAllOfLastResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **stripeAccount** | **string** | | [optional] [default to undefined]
9
+ **idempotencyKey** | **string** | | [optional] [default to undefined]
10
+ **apiVersion** | **string** | | [optional] [default to undefined]
11
+ **statusCode** | **number** | | [default to undefined]
12
+ **requestId** | **string** | | [default to undefined]
13
+ **headers** | **{ [key: string]: string; }** | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { StripeStripeResponseStripeStripePriceAllOfLastResponse } from '@tennac-booking/sdk';
19
+
20
+ const instance: StripeStripeResponseStripeStripePriceAllOfLastResponse = {
21
+ stripeAccount,
22
+ idempotencyKey,
23
+ apiVersion,
24
+ statusCode,
25
+ requestId,
26
+ headers,
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,27 @@
1
+ # StripeStripeTaxCode
2
+
3
+ [Tax codes](https://stripe.com/docs/tax/tax-categories) classify goods and services for tax purposes.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique identifier for the object. | [default to undefined]
10
+ **object** | **string** | String representing the object\'s type. Objects of the same type share the same value. | [default to undefined]
11
+ **description** | **string** | A detailed description of which types of products the tax code represents. | [default to undefined]
12
+ **name** | **string** | A short name for the tax code. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { StripeStripeTaxCode } from '@tennac-booking/sdk';
18
+
19
+ const instance: StripeStripeTaxCode = {
20
+ id,
21
+ object,
22
+ description,
23
+ name,
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)
@@ -1,4 +1,4 @@
1
- # SubscribeToClubRequestBody
1
+ # SubscribeRequestBody
2
2
 
3
3
 
4
4
  ## Properties
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { SubscribeToClubRequestBody } from '@tennac-booking/sdk';
14
+ import { SubscribeRequestBody } from '@tennac-booking/sdk';
15
15
 
16
- const instance: SubscribeToClubRequestBody = {
16
+ const instance: SubscribeRequestBody = {
17
17
  clubId,
18
18
  priceId,
19
19
  };
@@ -5,8 +5,14 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **productId** | **string** | ID du produit Stripe | [default to undefined]
9
- **priceId** | **string** | ID du prix Stripe | [default to undefined]
8
+ **productId** | **string** | | [default to undefined]
9
+ **productName** | **string** | | [default to undefined]
10
+ **productActive** | **boolean** | | [default to undefined]
11
+ **priceId** | **string** | | [default to undefined]
12
+ **amountInCents** | **number** | | [default to undefined]
13
+ **currency** | **string** | | [default to undefined]
14
+ **interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
15
+ **priceActive** | **boolean** | | [default to undefined]
10
16
 
11
17
  ## Example
12
18
 
@@ -15,7 +21,13 @@ import { SubscriptionPlanResponse } from '@tennac-booking/sdk';
15
21
 
16
22
  const instance: SubscriptionPlanResponse = {
17
23
  productId,
24
+ productName,
25
+ productActive,
18
26
  priceId,
27
+ amountInCents,
28
+ currency,
29
+ interval,
30
+ priceActive,
19
31
  };
20
32
  ```
21
33
 
@@ -0,0 +1,171 @@
1
+ # SubscriptionsManagerApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createPlan**](#createplan) | **POST** /api/subscriptions/plans | |
8
+ |[**deletePlan**](#deleteplan) | **DELETE** /api/subscriptions/plans/{productId} | |
9
+ |[**updatePlan**](#updateplan) | **PUT** /api/subscriptions/plans | |
10
+
11
+ # **createPlan**
12
+ > CreatePlan201Response createPlan(createSubscriptionPlanRequest)
13
+
14
+ Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ SubscriptionsManagerApi,
21
+ Configuration,
22
+ CreateSubscriptionPlanRequest
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new SubscriptionsManagerApi(configuration);
27
+
28
+ let createSubscriptionPlanRequest: CreateSubscriptionPlanRequest; //
29
+
30
+ const { status, data } = await apiInstance.createPlan(
31
+ createSubscriptionPlanRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **createSubscriptionPlanRequest** | **CreateSubscriptionPlanRequest**| | |
40
+
41
+
42
+ ### Return type
43
+
44
+ **CreatePlan201Response**
45
+
46
+ ### Authorization
47
+
48
+ [bearerAuth](../README.md#bearerAuth)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**201** | Plan créé | - |
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
+
65
+ # **deletePlan**
66
+ > DeleteSubscriptionPlanResponse deletePlan()
67
+
68
+ Supprime (archive) un plan par productId (manager)
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ SubscriptionsManagerApi,
75
+ Configuration
76
+ } from '@tennac-booking/sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new SubscriptionsManagerApi(configuration);
80
+
81
+ let productId: string; // (default to undefined)
82
+
83
+ const { status, data } = await apiInstance.deletePlan(
84
+ productId
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **productId** | [**string**] | | defaults to undefined|
93
+
94
+
95
+ ### Return type
96
+
97
+ **DeleteSubscriptionPlanResponse**
98
+
99
+ ### Authorization
100
+
101
+ [bearerAuth](../README.md#bearerAuth)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Plan supprimé | - |
113
+ |**400** | Bad Request | - |
114
+ |**401** | Unauthorized | - |
115
+
116
+ [[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)
117
+
118
+ # **updatePlan**
119
+ > StripeStripeResponseStripeStripePrice updatePlan(updatePlanRequest)
120
+
121
+ Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
122
+
123
+ ### Example
124
+
125
+ ```typescript
126
+ import {
127
+ SubscriptionsManagerApi,
128
+ Configuration,
129
+ UpdatePlanRequest
130
+ } from '@tennac-booking/sdk';
131
+
132
+ const configuration = new Configuration();
133
+ const apiInstance = new SubscriptionsManagerApi(configuration);
134
+
135
+ let updatePlanRequest: UpdatePlanRequest; //
136
+
137
+ const { status, data } = await apiInstance.updatePlan(
138
+ updatePlanRequest
139
+ );
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ |Name | Type | Description | Notes|
145
+ |------------- | ------------- | ------------- | -------------|
146
+ | **updatePlanRequest** | **UpdatePlanRequest**| | |
147
+
148
+
149
+ ### Return type
150
+
151
+ **StripeStripeResponseStripeStripePrice**
152
+
153
+ ### Authorization
154
+
155
+ [bearerAuth](../README.md#bearerAuth)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: application/json
160
+ - **Accept**: application/json
161
+
162
+
163
+ ### HTTP response details
164
+ | Status code | Description | Response headers |
165
+ |-------------|-------------|------------------|
166
+ |**200** | Plan mis à jour | - |
167
+ |**400** | Bad Request | - |
168
+ |**401** | Unauthorized | - |
169
+
170
+ [[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)
171
+
@@ -0,0 +1,60 @@
1
+ # SubscriptionsPublicApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getPublicPlans**](#getpublicplans) | **GET** /api/subscriptions/plans/{clubId} | |
8
+
9
+ # **getPublicPlans**
10
+ > Array<PublicSubscriptionPlanResponse> getPublicPlans()
11
+
12
+ Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ SubscriptionsPublicApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new SubscriptionsPublicApi(configuration);
24
+
25
+ let clubId: string; // (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.getPublicPlans(
28
+ clubId
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **clubId** | [**string**] | | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **Array<PublicSubscriptionPlanResponse>**
42
+
43
+ ### Authorization
44
+
45
+ No authorization required
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: Not defined
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | Plans publics du club | - |
57
+ |**404** | Club ou plans introuvables | - |
58
+
59
+ [[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)
60
+
@@ -0,0 +1,54 @@
1
+ # SubscriptionsStaffApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getClubPlans**](#getclubplans) | **GET** /api/subscriptions/plans | |
8
+
9
+ # **getClubPlans**
10
+ > Array<SubscriptionPlanResponse> getClubPlans()
11
+
12
+ Liste détaillée des plans (actifs/inactifs) du club courant (staff)
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ SubscriptionsStaffApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new SubscriptionsStaffApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getClubPlans();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<SubscriptionPlanResponse>**
35
+
36
+ ### Authorization
37
+
38
+ [bearerAuth](../README.md#bearerAuth)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Plans du club | - |
50
+ |**400** | Bad Request | - |
51
+ |**401** | Unauthorized | - |
52
+
53
+ [[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)
54
+
@@ -0,0 +1,222 @@
1
+ # SubscriptionsUserApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**cancel**](#cancel) | **DELETE** /api/subscriptions/{clubId}/{subscriptionId} | |
8
+ |[**mySubscriptions**](#mysubscriptions) | **GET** /api/subscriptions/me | |
9
+ |[**resume**](#resume) | **POST** /api/subscriptions/{clubId}/{subscriptionId}/resume | |
10
+ |[**subscribe**](#subscribe) | **POST** /api/subscriptions/subscribe | |
11
+
12
+ # **cancel**
13
+ > SubscriptionMutationResponse cancel()
14
+
15
+ Annuler un abonnement à la fin de la période (auth classique)
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ SubscriptionsUserApi,
22
+ Configuration
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new SubscriptionsUserApi(configuration);
27
+
28
+ let clubId: string; // (default to undefined)
29
+ let subscriptionId: string; // (default to undefined)
30
+
31
+ const { status, data } = await apiInstance.cancel(
32
+ clubId,
33
+ subscriptionId
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **clubId** | [**string**] | | defaults to undefined|
42
+ | **subscriptionId** | [**string**] | | defaults to undefined|
43
+
44
+
45
+ ### Return type
46
+
47
+ **SubscriptionMutationResponse**
48
+
49
+ ### Authorization
50
+
51
+ [bearerAuth](../README.md#bearerAuth)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**200** | Abonnement annulé (fin de période) | - |
63
+ |**400** | Bad Request | - |
64
+ |**401** | Unauthorized | - |
65
+
66
+ [[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)
67
+
68
+ # **mySubscriptions**
69
+ > UserSubscriptionsResponse mySubscriptions()
70
+
71
+ Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ SubscriptionsUserApi,
78
+ Configuration
79
+ } from '@tennac-booking/sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new SubscriptionsUserApi(configuration);
83
+
84
+ const { status, data } = await apiInstance.mySubscriptions();
85
+ ```
86
+
87
+ ### Parameters
88
+ This endpoint does not have any parameters.
89
+
90
+
91
+ ### Return type
92
+
93
+ **UserSubscriptionsResponse**
94
+
95
+ ### Authorization
96
+
97
+ [bearerAuth](../README.md#bearerAuth)
98
+
99
+ ### HTTP request headers
100
+
101
+ - **Content-Type**: Not defined
102
+ - **Accept**: application/json
103
+
104
+
105
+ ### HTTP response details
106
+ | Status code | Description | Response headers |
107
+ |-------------|-------------|------------------|
108
+ |**200** | Abonnements de l\&#39;utilisateur | - |
109
+ |**401** | Unauthorized | - |
110
+
111
+ [[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)
112
+
113
+ # **resume**
114
+ > SubscriptionMutationResponse resume()
115
+
116
+ Reprendre un abonnement annulé en fin de période (auth classique)
117
+
118
+ ### Example
119
+
120
+ ```typescript
121
+ import {
122
+ SubscriptionsUserApi,
123
+ Configuration
124
+ } from '@tennac-booking/sdk';
125
+
126
+ const configuration = new Configuration();
127
+ const apiInstance = new SubscriptionsUserApi(configuration);
128
+
129
+ let clubId: string; // (default to undefined)
130
+ let subscriptionId: string; // (default to undefined)
131
+
132
+ const { status, data } = await apiInstance.resume(
133
+ clubId,
134
+ subscriptionId
135
+ );
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ |Name | Type | Description | Notes|
141
+ |------------- | ------------- | ------------- | -------------|
142
+ | **clubId** | [**string**] | | defaults to undefined|
143
+ | **subscriptionId** | [**string**] | | defaults to undefined|
144
+
145
+
146
+ ### Return type
147
+
148
+ **SubscriptionMutationResponse**
149
+
150
+ ### Authorization
151
+
152
+ [bearerAuth](../README.md#bearerAuth)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: Not defined
157
+ - **Accept**: application/json
158
+
159
+
160
+ ### HTTP response details
161
+ | Status code | Description | Response headers |
162
+ |-------------|-------------|------------------|
163
+ |**200** | Abonnement repris | - |
164
+ |**400** | Bad Request | - |
165
+ |**401** | Unauthorized | - |
166
+
167
+ [[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)
168
+
169
+ # **subscribe**
170
+ > SubscriptionMutationResponse subscribe(subscribeRequestBody)
171
+
172
+ S\'abonner à un plan (auth classique)
173
+
174
+ ### Example
175
+
176
+ ```typescript
177
+ import {
178
+ SubscriptionsUserApi,
179
+ Configuration,
180
+ SubscribeRequestBody
181
+ } from '@tennac-booking/sdk';
182
+
183
+ const configuration = new Configuration();
184
+ const apiInstance = new SubscriptionsUserApi(configuration);
185
+
186
+ let subscribeRequestBody: SubscribeRequestBody; //
187
+
188
+ const { status, data } = await apiInstance.subscribe(
189
+ subscribeRequestBody
190
+ );
191
+ ```
192
+
193
+ ### Parameters
194
+
195
+ |Name | Type | Description | Notes|
196
+ |------------- | ------------- | ------------- | -------------|
197
+ | **subscribeRequestBody** | **SubscribeRequestBody**| | |
198
+
199
+
200
+ ### Return type
201
+
202
+ **SubscriptionMutationResponse**
203
+
204
+ ### Authorization
205
+
206
+ [bearerAuth](../README.md#bearerAuth)
207
+
208
+ ### HTTP request headers
209
+
210
+ - **Content-Type**: application/json
211
+ - **Accept**: application/json
212
+
213
+
214
+ ### HTTP response details
215
+ | Status code | Description | Response headers |
216
+ |-------------|-------------|------------------|
217
+ |**201** | Abonnement créé | - |
218
+ |**400** | Bad Request | - |
219
+ |**401** | Unauthorized | - |
220
+
221
+ [[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)
222
+