@tennac-booking/sdk 1.0.245 → 1.0.246

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.
@@ -0,0 +1,32 @@
1
+ # MyClubCustomerSettingsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **maxSlotsPerBooking** | **number** | | [default to undefined]
9
+ **maxWeeklyBookings** | **number** | | [default to undefined]
10
+ **cancellationLimitHours** | **number** | | [default to undefined]
11
+ **isBanned** | **boolean** | | [default to undefined]
12
+ **isFree** | **boolean** | | [default to undefined]
13
+ **isIllimited** | **boolean** | | [default to undefined]
14
+ **isNoShowForced** | **boolean** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { MyClubCustomerSettingsResponse } from '@tennac-booking/sdk';
20
+
21
+ const instance: MyClubCustomerSettingsResponse = {
22
+ maxSlotsPerBooking,
23
+ maxWeeklyBookings,
24
+ cancellationLimitHours,
25
+ isBanned,
26
+ isFree,
27
+ isIllimited,
28
+ isNoShowForced,
29
+ };
30
+ ```
31
+
32
+ [[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,5 +1,6 @@
1
1
  # SubscriptionPaymentSheetResponse
2
2
 
3
+ Réponse utilisée pour préparer la PaymentSheet mobile. Si `paymentIntentClientSecret` est undefined et amount est 0, la subscription est déjà active/gratuite.
3
4
 
4
5
  ## Properties
5
6
 
@@ -0,0 +1,117 @@
1
+ # SubscriptionsMobileApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**cancelIncomplete**](#cancelincomplete) | **POST** /api/mobile/subscriptions/cancel-incomplete | |
8
+ |[**mobilePaymentSheet**](#mobilepaymentsheet) | **POST** /api/mobile/subscriptions/payment-sheet | |
9
+
10
+ # **cancelIncomplete**
11
+ > CancelIncompleteResponse cancelIncomplete(cancelIncompleteBody)
12
+
13
+ Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ SubscriptionsMobileApi,
20
+ Configuration,
21
+ CancelIncompleteBody
22
+ } from '@tennac-booking/sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new SubscriptionsMobileApi(configuration);
26
+
27
+ let cancelIncompleteBody: CancelIncompleteBody; //
28
+
29
+ const { status, data } = await apiInstance.cancelIncomplete(
30
+ cancelIncompleteBody
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **cancelIncompleteBody** | **CancelIncompleteBody**| | |
39
+
40
+
41
+ ### Return type
42
+
43
+ **CancelIncompleteResponse**
44
+
45
+ ### Authorization
46
+
47
+ [bearerAuth](../README.md#bearerAuth)
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**200** | Canceled if incomplete | - |
59
+ |**400** | Bad Request | - |
60
+ |**401** | Unauthorized | - |
61
+
62
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
63
+
64
+ # **mobilePaymentSheet**
65
+ > SubscriptionPaymentSheetResponse mobilePaymentSheet(mobilePaymentSheetBody)
66
+
67
+ Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ SubscriptionsMobileApi,
74
+ Configuration,
75
+ MobilePaymentSheetBody
76
+ } from '@tennac-booking/sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new SubscriptionsMobileApi(configuration);
80
+
81
+ let mobilePaymentSheetBody: MobilePaymentSheetBody; //
82
+
83
+ const { status, data } = await apiInstance.mobilePaymentSheet(
84
+ mobilePaymentSheetBody
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **mobilePaymentSheetBody** | **MobilePaymentSheetBody**| | |
93
+
94
+
95
+ ### Return type
96
+
97
+ **SubscriptionPaymentSheetResponse**
98
+
99
+ ### Authorization
100
+
101
+ [bearerAuth](../README.md#bearerAuth)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: application/json
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Payment sheet ready | - |
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
+
package/docs/UserApi.md CHANGED
@@ -4,8 +4,62 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getMyClubCustomerSettings**](#getmyclubcustomersettings) | **GET** /api/users/me/clubCustomers/{clubId} | |
7
8
  |[**getMyClubInfos**](#getmyclubinfos) | **GET** /api/users/me/club-infos | |
8
9
 
10
+ # **getMyClubCustomerSettings**
11
+ > MyClubCustomerSettingsResponse getMyClubCustomerSettings()
12
+
13
+ Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ UserApi,
20
+ Configuration
21
+ } from '@tennac-booking/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new UserApi(configuration);
25
+
26
+ let clubId: string; // (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getMyClubCustomerSettings(
29
+ clubId
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **clubId** | [**string**] | | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **MyClubCustomerSettingsResponse**
43
+
44
+ ### Authorization
45
+
46
+ [bearerAuth](../README.md#bearerAuth)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Paramètres ClubCustomer du club | - |
58
+ |**400** | clubId invalide | - |
59
+ |**404** | ClubCustomer ou settings du club introuvables | - |
60
+
61
+ [[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)
62
+
9
63
  # **getMyClubInfos**
10
64
  > MyClubInfosResponse getMyClubInfos()
11
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.245",
3
+ "version": "1.0.246",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {