@tennac-booking/sdk 1.0.107 → 1.0.108

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 (43) hide show
  1. package/.openapi-generator/FILES +284 -291
  2. package/README.md +7 -20
  3. package/api.ts +133 -916
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +90 -591
  8. package/dist/api.js +75 -537
  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 +90 -591
  16. package/dist/esm/api.js +67 -525
  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/ClientApi.md +59 -4
  28. package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
  29. package/docs/ClientFullOnboardingResponseClub.md +24 -0
  30. package/docs/ClientRegister201Response.md +26 -0
  31. package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
  32. package/docs/PaymentMethod.md +4 -0
  33. package/index.ts +1 -1
  34. package/package.json +1 -1
  35. package/docs/ActiveSubscriptionResponse.md +0 -22
  36. package/docs/ClientAccountOnboardingRequest.md +0 -29
  37. package/docs/ClientAccountResponse.md +0 -44
  38. package/docs/ClientAccountsApi.md +0 -408
  39. package/docs/ClientMeResponse.md +0 -28
  40. package/docs/ClientOnboardingResponse.md +0 -27
  41. package/docs/ClientRegisterResponse.md +0 -22
  42. package/docs/ClientSubscriptionResponse.md +0 -34
  43. package/docs/GetSubscriptionsHistory200Response.md +0 -22
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.104
5
+ * The version of the OpenAPI document: 1.0.108
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js 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.104
7
+ * The version of the OpenAPI document: 1.0.108
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.104
5
+ * The version of the OpenAPI document: 1.0.108
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.104
7
+ * The version of the OpenAPI document: 1.0.108
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.104
5
+ * The version of the OpenAPI document: 1.0.108
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.104
7
+ * The version of the OpenAPI document: 1.0.108
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.104
5
+ * The version of the OpenAPI document: 1.0.108
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js 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.104
7
+ * The version of the OpenAPI document: 1.0.108
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.104
5
+ * The version of the OpenAPI document: 1.0.108
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.104
8
+ * The version of the OpenAPI document: 1.0.108
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/ClientApi.md CHANGED
@@ -4,9 +4,64 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**clientRegister**](#clientregister) | **POST** /clients/register | |
7
8
  |[**getManagedClubs**](#getmanagedclubs) | **GET** /clients/managed-clubs | |
8
9
  |[**onboardClub**](#onboardclub) | **POST** /clients/onboarding | |
9
10
 
11
+ # **clientRegister**
12
+ > ClientRegister201Response clientRegister(clientRegisterRequest)
13
+
14
+ Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ ClientApi,
21
+ Configuration,
22
+ ClientRegisterRequest
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new ClientApi(configuration);
27
+
28
+ let clientRegisterRequest: ClientRegisterRequest; //
29
+
30
+ const { status, data } = await apiInstance.clientRegister(
31
+ clientRegisterRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **clientRegisterRequest** | **ClientRegisterRequest**| | |
40
+
41
+
42
+ ### Return type
43
+
44
+ **ClientRegister201Response**
45
+
46
+ ### Authorization
47
+
48
+ No authorization required
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** | Client enregistré avec succès | - |
60
+ |**400** | Données invalides | - |
61
+ |**500** | Erreur serveur | - |
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
+
10
65
  # **getManagedClubs**
11
66
  > ManagedClubsResponse getManagedClubs()
12
67
 
@@ -54,9 +109,9 @@ This endpoint does not have any parameters.
54
109
  [[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
110
 
56
111
  # **onboardClub**
57
- > ClientOnboardingResponse onboardClub(clientOnboardingRequestBody)
112
+ > ClientFullOnboardingResponse onboardClub(clientOnboardingRequestBody)
58
113
 
59
- Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
114
+ Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
60
115
 
61
116
  ### Example
62
117
 
@@ -86,11 +141,11 @@ const { status, data } = await apiInstance.onboardClub(
86
141
 
87
142
  ### Return type
88
143
 
89
- **ClientOnboardingResponse**
144
+ **ClientFullOnboardingResponse**
90
145
 
91
146
  ### Authorization
92
147
 
93
- No authorization required
148
+ [clientAuth](../README.md#clientAuth)
94
149
 
95
150
  ### HTTP request headers
96
151
 
@@ -1,4 +1,4 @@
1
- # ClientAccountOnboardingResponse
1
+ # ClientFullOnboardingResponse
2
2
 
3
3
 
4
4
  ## Properties
@@ -8,26 +8,22 @@ Name | Type | Description | Notes
8
8
  **clientAccountId** | **string** | | [default to undefined]
9
9
  **stripeCustomerId** | **string** | | [default to undefined]
10
10
  **stripeConnectedAccountId** | **string** | | [optional] [default to undefined]
11
- **connectedAccountOnboardingLink** | **string** | | [optional] [default to undefined]
12
- **status** | **string** | | [default to undefined]
11
+ **clientOnboardingLink** | **string** | | [optional] [default to undefined]
12
+ **club** | [**ClientFullOnboardingResponseClub**](ClientFullOnboardingResponseClub.md) | | [default to undefined]
13
13
  **message** | **string** | | [default to undefined]
14
- **isPublicOrganization** | **boolean** | | [default to undefined]
15
- **manualInvoiceRequired** | **boolean** | | [optional] [default to undefined]
16
14
 
17
15
  ## Example
18
16
 
19
17
  ```typescript
20
- import { ClientAccountOnboardingResponse } from '@tennac-booking/sdk';
18
+ import { ClientFullOnboardingResponse } from '@tennac-booking/sdk';
21
19
 
22
- const instance: ClientAccountOnboardingResponse = {
20
+ const instance: ClientFullOnboardingResponse = {
23
21
  clientAccountId,
24
22
  stripeCustomerId,
25
23
  stripeConnectedAccountId,
26
- connectedAccountOnboardingLink,
27
- status,
24
+ clientOnboardingLink,
25
+ club,
28
26
  message,
29
- isPublicOrganization,
30
- manualInvoiceRequired,
31
27
  };
32
28
  ```
33
29
 
@@ -0,0 +1,24 @@
1
+ # ClientFullOnboardingResponseClub
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubOnboardingLink** | **string** | | [optional] [default to undefined]
9
+ **stripeAccountId** | **string** | | [default to undefined]
10
+ **clubId** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ClientFullOnboardingResponseClub } from '@tennac-booking/sdk';
16
+
17
+ const instance: ClientFullOnboardingResponseClub = {
18
+ clubOnboardingLink,
19
+ stripeAccountId,
20
+ clubId,
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)
@@ -0,0 +1,26 @@
1
+ # ClientRegister201Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **stripeCustomerId** | **string** | | [default to undefined]
10
+ **email** | **string** | | [default to undefined]
11
+ **userId** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ClientRegister201Response } from '@tennac-booking/sdk';
17
+
18
+ const instance: ClientRegister201Response = {
19
+ message,
20
+ stripeCustomerId,
21
+ email,
22
+ userId,
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,25 +1,25 @@
1
- # ClientRegisterRequestBody
1
+ # ClientRegisterRequest
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **email** | **string** | | [default to undefined]
9
8
  **password** | **string** | | [default to undefined]
10
- **firstName** | **string** | | [default to undefined]
9
+ **email** | **string** | | [default to undefined]
11
10
  **lastName** | **string** | | [default to undefined]
11
+ **firstName** | **string** | | [default to undefined]
12
12
 
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import { ClientRegisterRequestBody } from '@tennac-booking/sdk';
16
+ import { ClientRegisterRequest } from '@tennac-booking/sdk';
17
17
 
18
- const instance: ClientRegisterRequestBody = {
19
- email,
18
+ const instance: ClientRegisterRequest = {
20
19
  password,
21
- firstName,
20
+ email,
22
21
  lastName,
22
+ firstName,
23
23
  };
24
24
  ```
25
25
 
@@ -7,6 +7,10 @@
7
7
 
8
8
  * `Onsite` (value: `'onsite'`)
9
9
 
10
+ * `OnsiteCard` (value: `'onsite_card'`)
11
+
12
+ * `OnsiteCash` (value: `'onsite_cash'`)
13
+
10
14
  * `Free` (value: `'free'`)
11
15
 
12
16
  [[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/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.104
7
+ * The version of the OpenAPI document: 1.0.108
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.107",
3
+ "version": "1.0.108",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,22 +0,0 @@
1
- # ActiveSubscriptionResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **clientAccountId** | **string** | | [default to undefined]
9
- **subscription** | [**ClientSubscriptionResponse**](ClientSubscriptionResponse.md) | | [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { ActiveSubscriptionResponse } from '@tennac-booking/sdk';
15
-
16
- const instance: ActiveSubscriptionResponse = {
17
- clientAccountId,
18
- subscription,
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)
@@ -1,29 +0,0 @@
1
- # ClientAccountOnboardingRequest
2
-
3
- Types pour les requêtes/réponses
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **businessName** | **string** | | [default to undefined]
10
- **businessType** | **string** | | [optional] [default to undefined]
11
- **subscriptionType** | **string** | | [optional] [default to undefined]
12
- **isPublicOrganization** | **boolean** | | [optional] [default to undefined]
13
- **priceId** | **string** | | [default to undefined]
14
-
15
- ## Example
16
-
17
- ```typescript
18
- import { ClientAccountOnboardingRequest } from '@tennac-booking/sdk';
19
-
20
- const instance: ClientAccountOnboardingRequest = {
21
- businessName,
22
- businessType,
23
- subscriptionType,
24
- isPublicOrganization,
25
- priceId,
26
- };
27
- ```
28
-
29
- [[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,44 +0,0 @@
1
- # ClientAccountResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | | [default to undefined]
9
- **email** | **string** | | [default to undefined]
10
- **businessName** | **string** | | [default to undefined]
11
- **businessType** | **string** | | [default to undefined]
12
- **subscriptionType** | **string** | | [default to undefined]
13
- **status** | **string** | | [default to undefined]
14
- **platformPaymentMethodSetup** | **boolean** | | [default to undefined]
15
- **stripeConnectedAccountId** | **string** | | [optional] [default to undefined]
16
- **connectedAccountOnboardingRequired** | **boolean** | | [optional] [default to undefined]
17
- **isPublicOrganization** | **boolean** | | [default to undefined]
18
- **manualInvoiceRequired** | **boolean** | | [optional] [default to undefined]
19
- **createdAt** | **string** | | [default to undefined]
20
- **updatedAt** | **string** | | [default to undefined]
21
-
22
- ## Example
23
-
24
- ```typescript
25
- import { ClientAccountResponse } from '@tennac-booking/sdk';
26
-
27
- const instance: ClientAccountResponse = {
28
- id,
29
- email,
30
- businessName,
31
- businessType,
32
- subscriptionType,
33
- status,
34
- platformPaymentMethodSetup,
35
- stripeConnectedAccountId,
36
- connectedAccountOnboardingRequired,
37
- isPublicOrganization,
38
- manualInvoiceRequired,
39
- createdAt,
40
- updatedAt,
41
- };
42
- ```
43
-
44
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)