@tennac-booking/sdk 1.0.96 → 1.0.98
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 +14 -0
- package/README.md +29 -2
- package/api.ts +6211 -4937
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +875 -15
- package/dist/api.js +694 -4
- 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 +875 -15
- package/dist/esm/api.js +682 -1
- 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/ActiveSubscriptionResponse.md +22 -0
- package/docs/BookingPriceBody.md +2 -0
- package/docs/BookingPriceResponse.md +2 -0
- package/docs/ClientAccountOnboardingRequest.md +29 -0
- package/docs/ClientAccountOnboardingResponse.md +34 -0
- package/docs/ClientAccountResponse.md +44 -0
- package/docs/ClientAccountsApi.md +408 -0
- package/docs/ClientApi.md +109 -0
- package/docs/ClientMeResponse.md +28 -0
- package/docs/ClientOnboardingRequestBody.md +33 -0
- package/docs/ClientOnboardingResponse.md +27 -0
- package/docs/ClientRegisterRequestBody.md +26 -0
- package/docs/ClientRegisterResponse.md +22 -0
- package/docs/ClientSubscriptionResponse.md +34 -0
- package/docs/CreateBookingRequest.md +0 -2
- package/docs/GetSubscriptionsHistory200Response.md +22 -0
- package/docs/IUserAttributes.md +2 -0
- package/docs/ManagedClubsResponse.md +23 -0
- package/docs/StaffUserProfileResponse.md +2 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
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)
|
package/docs/BookingPriceBody.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
9
|
**playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | | [optional] [default to undefined]
|
|
10
|
+
**creditToUseInCents** | **number** | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { BookingPriceBody } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: BookingPriceBody = {
|
|
17
18
|
slotIds,
|
|
18
19
|
playerShares,
|
|
20
|
+
creditToUseInCents,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**creatorNeedsToRegisterPaymentMethod** | **boolean** | | [default to undefined]
|
|
9
|
+
**creatorCreditAvailableInCents** | **number** | | [optional] [default to undefined]
|
|
9
10
|
**playerPrices** | [**Array<PlayerPrice>**](PlayerPrice.md) | | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
@@ -15,6 +16,7 @@ import { BookingPriceResponse } from '@tennac-booking/sdk';
|
|
|
15
16
|
|
|
16
17
|
const instance: BookingPriceResponse = {
|
|
17
18
|
creatorNeedsToRegisterPaymentMethod,
|
|
19
|
+
creatorCreditAvailableInCents,
|
|
18
20
|
playerPrices,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
@@ -0,0 +1,29 @@
|
|
|
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** | | [default to undefined]
|
|
11
|
+
**subscriptionType** | **string** | | [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)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ClientAccountOnboardingResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clientAccountId** | **string** | | [default to undefined]
|
|
9
|
+
**stripeCustomerId** | **string** | | [default to undefined]
|
|
10
|
+
**stripeConnectedAccountId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**connectedAccountOnboardingLink** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**status** | **string** | | [default to undefined]
|
|
13
|
+
**message** | **string** | | [default to undefined]
|
|
14
|
+
**isPublicOrganization** | **boolean** | | [default to undefined]
|
|
15
|
+
**manualInvoiceRequired** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ClientAccountOnboardingResponse } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ClientAccountOnboardingResponse = {
|
|
23
|
+
clientAccountId,
|
|
24
|
+
stripeCustomerId,
|
|
25
|
+
stripeConnectedAccountId,
|
|
26
|
+
connectedAccountOnboardingLink,
|
|
27
|
+
status,
|
|
28
|
+
message,
|
|
29
|
+
isPublicOrganization,
|
|
30
|
+
manualInvoiceRequired,
|
|
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)
|
|
@@ -0,0 +1,44 @@
|
|
|
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)
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
# ClientAccountsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**clientAuthMe**](#clientauthme) | **GET** /client-accounts/client-auth/me | |
|
|
8
|
+
|[**getClientAccountById**](#getclientaccountbyid) | **GET** /client-accounts/{accountId} | |
|
|
9
|
+
|[**getMyActiveSubscription**](#getmyactivesubscription) | **GET** /client-accounts/me/subscription | |
|
|
10
|
+
|[**getMyClientAccount**](#getmyclientaccount) | **GET** /client-accounts/me | |
|
|
11
|
+
|[**getSubscriptionsHistory**](#getsubscriptionshistory) | **GET** /client-accounts/me/subscriptions-history | |
|
|
12
|
+
|[**listAvailablePrices**](#listavailableprices) | **GET** /client-accounts/available-prices | |
|
|
13
|
+
|[**onboardClientAccount**](#onboardclientaccount) | **POST** /client-accounts/onboarding | |
|
|
14
|
+
|[**registerClientUser**](#registerclientuser) | **POST** /client-accounts/register-client-user | |
|
|
15
|
+
|
|
16
|
+
# **clientAuthMe**
|
|
17
|
+
> ClientMeResponse clientAuthMe()
|
|
18
|
+
|
|
19
|
+
Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
ClientAccountsApi,
|
|
26
|
+
Configuration
|
|
27
|
+
} from '@tennac-booking/sdk';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.clientAuthMe();
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
This endpoint does not have any parameters.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**ClientMeResponse**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
[clientAuth](../README.md#clientAuth)
|
|
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** | OK | - |
|
|
57
|
+
|
|
58
|
+
[[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)
|
|
59
|
+
|
|
60
|
+
# **getClientAccountById**
|
|
61
|
+
> ClientAccountResponse getClientAccountById()
|
|
62
|
+
|
|
63
|
+
Récupère le compte client par son ID
|
|
64
|
+
|
|
65
|
+
### Example
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import {
|
|
69
|
+
ClientAccountsApi,
|
|
70
|
+
Configuration
|
|
71
|
+
} from '@tennac-booking/sdk';
|
|
72
|
+
|
|
73
|
+
const configuration = new Configuration();
|
|
74
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
75
|
+
|
|
76
|
+
let accountId: string; //L\'ID du compte client (default to undefined)
|
|
77
|
+
|
|
78
|
+
const { status, data } = await apiInstance.getClientAccountById(
|
|
79
|
+
accountId
|
|
80
|
+
);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Parameters
|
|
84
|
+
|
|
85
|
+
|Name | Type | Description | Notes|
|
|
86
|
+
|------------- | ------------- | ------------- | -------------|
|
|
87
|
+
| **accountId** | [**string**] | L\'ID du compte client | defaults to undefined|
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Return type
|
|
91
|
+
|
|
92
|
+
**ClientAccountResponse**
|
|
93
|
+
|
|
94
|
+
### Authorization
|
|
95
|
+
|
|
96
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
97
|
+
|
|
98
|
+
### HTTP request headers
|
|
99
|
+
|
|
100
|
+
- **Content-Type**: Not defined
|
|
101
|
+
- **Accept**: application/json
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### HTTP response details
|
|
105
|
+
| Status code | Description | Response headers |
|
|
106
|
+
|-------------|-------------|------------------|
|
|
107
|
+
|**200** | Compte client récupéré avec succès | - |
|
|
108
|
+
|**401** | Non authentifié | - |
|
|
109
|
+
|**404** | Compte client non trouvé | - |
|
|
110
|
+
|**500** | Erreur serveur | - |
|
|
111
|
+
|
|
112
|
+
[[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)
|
|
113
|
+
|
|
114
|
+
# **getMyActiveSubscription**
|
|
115
|
+
> ActiveSubscriptionResponse getMyActiveSubscription()
|
|
116
|
+
|
|
117
|
+
Récupère l\'abonnement actif du compte client authentifié
|
|
118
|
+
|
|
119
|
+
### Example
|
|
120
|
+
|
|
121
|
+
```typescript
|
|
122
|
+
import {
|
|
123
|
+
ClientAccountsApi,
|
|
124
|
+
Configuration
|
|
125
|
+
} from '@tennac-booking/sdk';
|
|
126
|
+
|
|
127
|
+
const configuration = new Configuration();
|
|
128
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
129
|
+
|
|
130
|
+
const { status, data } = await apiInstance.getMyActiveSubscription();
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Parameters
|
|
134
|
+
This endpoint does not have any parameters.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Return type
|
|
138
|
+
|
|
139
|
+
**ActiveSubscriptionResponse**
|
|
140
|
+
|
|
141
|
+
### Authorization
|
|
142
|
+
|
|
143
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
144
|
+
|
|
145
|
+
### HTTP request headers
|
|
146
|
+
|
|
147
|
+
- **Content-Type**: Not defined
|
|
148
|
+
- **Accept**: application/json
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### HTTP response details
|
|
152
|
+
| Status code | Description | Response headers |
|
|
153
|
+
|-------------|-------------|------------------|
|
|
154
|
+
|**200** | Abonnement récupéré avec succès | - |
|
|
155
|
+
|**401** | Non authentifié | - |
|
|
156
|
+
|**404** | Compte client ou abonnement non trouvé | - |
|
|
157
|
+
|**500** | Erreur serveur | - |
|
|
158
|
+
|
|
159
|
+
[[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)
|
|
160
|
+
|
|
161
|
+
# **getMyClientAccount**
|
|
162
|
+
> ClientAccountResponse getMyClientAccount()
|
|
163
|
+
|
|
164
|
+
Récupère le compte client de l\'utilisateur authentifié
|
|
165
|
+
|
|
166
|
+
### Example
|
|
167
|
+
|
|
168
|
+
```typescript
|
|
169
|
+
import {
|
|
170
|
+
ClientAccountsApi,
|
|
171
|
+
Configuration
|
|
172
|
+
} from '@tennac-booking/sdk';
|
|
173
|
+
|
|
174
|
+
const configuration = new Configuration();
|
|
175
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
176
|
+
|
|
177
|
+
const { status, data } = await apiInstance.getMyClientAccount();
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Parameters
|
|
181
|
+
This endpoint does not have any parameters.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Return type
|
|
185
|
+
|
|
186
|
+
**ClientAccountResponse**
|
|
187
|
+
|
|
188
|
+
### Authorization
|
|
189
|
+
|
|
190
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
191
|
+
|
|
192
|
+
### HTTP request headers
|
|
193
|
+
|
|
194
|
+
- **Content-Type**: Not defined
|
|
195
|
+
- **Accept**: application/json
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### HTTP response details
|
|
199
|
+
| Status code | Description | Response headers |
|
|
200
|
+
|-------------|-------------|------------------|
|
|
201
|
+
|**200** | Compte client récupéré avec succès | - |
|
|
202
|
+
|**401** | Non authentifié | - |
|
|
203
|
+
|**404** | Compte client non trouvé | - |
|
|
204
|
+
|**500** | Erreur serveur | - |
|
|
205
|
+
|
|
206
|
+
[[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)
|
|
207
|
+
|
|
208
|
+
# **getSubscriptionsHistory**
|
|
209
|
+
> GetSubscriptionsHistory200Response getSubscriptionsHistory()
|
|
210
|
+
|
|
211
|
+
Récupère l\'historique des abonnements du compte client authentifié
|
|
212
|
+
|
|
213
|
+
### Example
|
|
214
|
+
|
|
215
|
+
```typescript
|
|
216
|
+
import {
|
|
217
|
+
ClientAccountsApi,
|
|
218
|
+
Configuration
|
|
219
|
+
} from '@tennac-booking/sdk';
|
|
220
|
+
|
|
221
|
+
const configuration = new Configuration();
|
|
222
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
223
|
+
|
|
224
|
+
const { status, data } = await apiInstance.getSubscriptionsHistory();
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Parameters
|
|
228
|
+
This endpoint does not have any parameters.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Return type
|
|
232
|
+
|
|
233
|
+
**GetSubscriptionsHistory200Response**
|
|
234
|
+
|
|
235
|
+
### Authorization
|
|
236
|
+
|
|
237
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
238
|
+
|
|
239
|
+
### HTTP request headers
|
|
240
|
+
|
|
241
|
+
- **Content-Type**: Not defined
|
|
242
|
+
- **Accept**: application/json
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### HTTP response details
|
|
246
|
+
| Status code | Description | Response headers |
|
|
247
|
+
|-------------|-------------|------------------|
|
|
248
|
+
|**200** | Historique d\'abonnements récupéré avec succès | - |
|
|
249
|
+
|**401** | Non authentifié | - |
|
|
250
|
+
|**404** | Compte client non trouvé | - |
|
|
251
|
+
|**500** | Erreur serveur | - |
|
|
252
|
+
|
|
253
|
+
[[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)
|
|
254
|
+
|
|
255
|
+
# **listAvailablePrices**
|
|
256
|
+
> Array<any> listAvailablePrices()
|
|
257
|
+
|
|
258
|
+
Liste les prix Stripe disponibles pour les abonnements client
|
|
259
|
+
|
|
260
|
+
### Example
|
|
261
|
+
|
|
262
|
+
```typescript
|
|
263
|
+
import {
|
|
264
|
+
ClientAccountsApi,
|
|
265
|
+
Configuration
|
|
266
|
+
} from '@tennac-booking/sdk';
|
|
267
|
+
|
|
268
|
+
const configuration = new Configuration();
|
|
269
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
270
|
+
|
|
271
|
+
const { status, data } = await apiInstance.listAvailablePrices();
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
This endpoint does not have any parameters.
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### Return type
|
|
279
|
+
|
|
280
|
+
**Array<any>**
|
|
281
|
+
|
|
282
|
+
### Authorization
|
|
283
|
+
|
|
284
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
285
|
+
|
|
286
|
+
### HTTP request headers
|
|
287
|
+
|
|
288
|
+
- **Content-Type**: Not defined
|
|
289
|
+
- **Accept**: application/json
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### HTTP response details
|
|
293
|
+
| Status code | Description | Response headers |
|
|
294
|
+
|-------------|-------------|------------------|
|
|
295
|
+
|**200** | Liste des prix récupérée | - |
|
|
296
|
+
|
|
297
|
+
[[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)
|
|
298
|
+
|
|
299
|
+
# **onboardClientAccount**
|
|
300
|
+
> ClientAccountOnboardingResponse onboardClientAccount(clientAccountOnboardingRequest)
|
|
301
|
+
|
|
302
|
+
Crée un nouveau compte client avec onboarding Stripe
|
|
303
|
+
|
|
304
|
+
### Example
|
|
305
|
+
|
|
306
|
+
```typescript
|
|
307
|
+
import {
|
|
308
|
+
ClientAccountsApi,
|
|
309
|
+
Configuration,
|
|
310
|
+
ClientAccountOnboardingRequest
|
|
311
|
+
} from '@tennac-booking/sdk';
|
|
312
|
+
|
|
313
|
+
const configuration = new Configuration();
|
|
314
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
315
|
+
|
|
316
|
+
let clientAccountOnboardingRequest: ClientAccountOnboardingRequest; //Les données du compte à créer
|
|
317
|
+
|
|
318
|
+
const { status, data } = await apiInstance.onboardClientAccount(
|
|
319
|
+
clientAccountOnboardingRequest
|
|
320
|
+
);
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Parameters
|
|
324
|
+
|
|
325
|
+
|Name | Type | Description | Notes|
|
|
326
|
+
|------------- | ------------- | ------------- | -------------|
|
|
327
|
+
| **clientAccountOnboardingRequest** | **ClientAccountOnboardingRequest**| Les données du compte à créer | |
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
### Return type
|
|
331
|
+
|
|
332
|
+
**ClientAccountOnboardingResponse**
|
|
333
|
+
|
|
334
|
+
### Authorization
|
|
335
|
+
|
|
336
|
+
[clientAuth](../README.md#clientAuth)
|
|
337
|
+
|
|
338
|
+
### HTTP request headers
|
|
339
|
+
|
|
340
|
+
- **Content-Type**: application/json
|
|
341
|
+
- **Accept**: application/json
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
### HTTP response details
|
|
345
|
+
| Status code | Description | Response headers |
|
|
346
|
+
|-------------|-------------|------------------|
|
|
347
|
+
|**201** | Compte client créé avec succès | - |
|
|
348
|
+
|**400** | Données invalides | - |
|
|
349
|
+
|**401** | Non authentifié | - |
|
|
350
|
+
|**409** | Un compte client existe déjà pour cet utilisateur | - |
|
|
351
|
+
|**500** | Erreur serveur | - |
|
|
352
|
+
|
|
353
|
+
[[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)
|
|
354
|
+
|
|
355
|
+
# **registerClientUser**
|
|
356
|
+
> ClientRegisterResponse registerClientUser(clientRegisterRequestBody)
|
|
357
|
+
|
|
358
|
+
Route d\'inscription d\'un utilisateur client (publique)
|
|
359
|
+
|
|
360
|
+
### Example
|
|
361
|
+
|
|
362
|
+
```typescript
|
|
363
|
+
import {
|
|
364
|
+
ClientAccountsApi,
|
|
365
|
+
Configuration,
|
|
366
|
+
ClientRegisterRequestBody
|
|
367
|
+
} from '@tennac-booking/sdk';
|
|
368
|
+
|
|
369
|
+
const configuration = new Configuration();
|
|
370
|
+
const apiInstance = new ClientAccountsApi(configuration);
|
|
371
|
+
|
|
372
|
+
let clientRegisterRequestBody: ClientRegisterRequestBody; //
|
|
373
|
+
|
|
374
|
+
const { status, data } = await apiInstance.registerClientUser(
|
|
375
|
+
clientRegisterRequestBody
|
|
376
|
+
);
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### Parameters
|
|
380
|
+
|
|
381
|
+
|Name | Type | Description | Notes|
|
|
382
|
+
|------------- | ------------- | ------------- | -------------|
|
|
383
|
+
| **clientRegisterRequestBody** | **ClientRegisterRequestBody**| | |
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### Return type
|
|
387
|
+
|
|
388
|
+
**ClientRegisterResponse**
|
|
389
|
+
|
|
390
|
+
### Authorization
|
|
391
|
+
|
|
392
|
+
No authorization required
|
|
393
|
+
|
|
394
|
+
### HTTP request headers
|
|
395
|
+
|
|
396
|
+
- **Content-Type**: application/json
|
|
397
|
+
- **Accept**: application/json
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
### HTTP response details
|
|
401
|
+
| Status code | Description | Response headers |
|
|
402
|
+
|-------------|-------------|------------------|
|
|
403
|
+
|**201** | Compte client utilisateur créé | - |
|
|
404
|
+
|**400** | Données invalides | - |
|
|
405
|
+
|**409** | Email déjà utilisé | - |
|
|
406
|
+
|
|
407
|
+
[[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)
|
|
408
|
+
|