@tennac-booking/sdk 1.0.73 → 1.0.74
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 +234 -240
- package/README.md +2 -11
- package/api.ts +29 -482
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +161 -485
- package/dist/api.js +1 -199
- 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 +161 -485
- package/dist/esm/api.js +1 -199
- 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/BookingInfo.md +2 -2
- package/docs/ClubSettingsResponse.md +0 -2
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/IUserAttributes.md +2 -12
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/UserProfileResponse.md +2 -12
- package/docs/UsersApi.md +0 -156
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddPaymentMethodRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodRequestBody.md +0 -20
- package/docs/SetupPaymentMethodResponse.md +0 -24
package/docs/UsersApi.md
CHANGED
|
@@ -7,9 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | |
|
|
8
8
|
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
|
|
9
9
|
|[**addOrganization**](#addorganization) | **POST** /api/users/me/add-organization | |
|
|
10
|
-
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | |
|
|
11
10
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
|
|
12
|
-
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | |
|
|
13
11
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | |
|
|
14
12
|
|[**getBookingDetail**](#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | |
|
|
15
13
|
|[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | |
|
|
@@ -34,7 +32,6 @@ All URIs are relative to *http://localhost*
|
|
|
34
32
|
|[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
|
|
35
33
|
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
36
34
|
|[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
|
|
37
|
-
|[**setupOffSessionPaymentMethod**](#setupoffsessionpaymentmethod) | **POST** /api/users/setupOffSessionPaymentMethod | |
|
|
38
35
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
39
36
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
|
|
40
37
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
|
|
@@ -189,57 +186,6 @@ const { status, data } = await apiInstance.addOrganization(
|
|
|
189
186
|
- **Accept**: application/json
|
|
190
187
|
|
|
191
188
|
|
|
192
|
-
### HTTP response details
|
|
193
|
-
| Status code | Description | Response headers |
|
|
194
|
-
|-------------|-------------|------------------|
|
|
195
|
-
|**200** | Ok | - |
|
|
196
|
-
|
|
197
|
-
[[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)
|
|
198
|
-
|
|
199
|
-
# **addPaymentMethodSetup**
|
|
200
|
-
> PaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodRequestBody)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Example
|
|
204
|
-
|
|
205
|
-
```typescript
|
|
206
|
-
import {
|
|
207
|
-
UsersApi,
|
|
208
|
-
Configuration,
|
|
209
|
-
AddPaymentMethodRequestBody
|
|
210
|
-
} from '@tennac-booking/sdk';
|
|
211
|
-
|
|
212
|
-
const configuration = new Configuration();
|
|
213
|
-
const apiInstance = new UsersApi(configuration);
|
|
214
|
-
|
|
215
|
-
let addPaymentMethodRequestBody: AddPaymentMethodRequestBody; //
|
|
216
|
-
|
|
217
|
-
const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
218
|
-
addPaymentMethodRequestBody
|
|
219
|
-
);
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
### Parameters
|
|
223
|
-
|
|
224
|
-
|Name | Type | Description | Notes|
|
|
225
|
-
|------------- | ------------- | ------------- | -------------|
|
|
226
|
-
| **addPaymentMethodRequestBody** | **AddPaymentMethodRequestBody**| | |
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
### Return type
|
|
230
|
-
|
|
231
|
-
**PaymentMethodSetupResponse**
|
|
232
|
-
|
|
233
|
-
### Authorization
|
|
234
|
-
|
|
235
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
236
|
-
|
|
237
|
-
### HTTP request headers
|
|
238
|
-
|
|
239
|
-
- **Content-Type**: application/json
|
|
240
|
-
- **Accept**: application/json
|
|
241
|
-
|
|
242
|
-
|
|
243
189
|
### HTTP response details
|
|
244
190
|
| Status code | Description | Response headers |
|
|
245
191
|
|-------------|-------------|------------------|
|
|
@@ -291,57 +237,6 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
291
237
|
- **Accept**: application/json
|
|
292
238
|
|
|
293
239
|
|
|
294
|
-
### HTTP response details
|
|
295
|
-
| Status code | Description | Response headers |
|
|
296
|
-
|-------------|-------------|------------------|
|
|
297
|
-
|**200** | Ok | - |
|
|
298
|
-
|
|
299
|
-
[[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)
|
|
300
|
-
|
|
301
|
-
# **confirmPaymentMethodSetup**
|
|
302
|
-
> ConfirmPaymentMethodResponse confirmPaymentMethodSetup(confirmPaymentMethodRequestBody)
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Example
|
|
306
|
-
|
|
307
|
-
```typescript
|
|
308
|
-
import {
|
|
309
|
-
UsersApi,
|
|
310
|
-
Configuration,
|
|
311
|
-
ConfirmPaymentMethodRequestBody
|
|
312
|
-
} from '@tennac-booking/sdk';
|
|
313
|
-
|
|
314
|
-
const configuration = new Configuration();
|
|
315
|
-
const apiInstance = new UsersApi(configuration);
|
|
316
|
-
|
|
317
|
-
let confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody; //
|
|
318
|
-
|
|
319
|
-
const { status, data } = await apiInstance.confirmPaymentMethodSetup(
|
|
320
|
-
confirmPaymentMethodRequestBody
|
|
321
|
-
);
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
### Parameters
|
|
325
|
-
|
|
326
|
-
|Name | Type | Description | Notes|
|
|
327
|
-
|------------- | ------------- | ------------- | -------------|
|
|
328
|
-
| **confirmPaymentMethodRequestBody** | **ConfirmPaymentMethodRequestBody**| | |
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
### Return type
|
|
332
|
-
|
|
333
|
-
**ConfirmPaymentMethodResponse**
|
|
334
|
-
|
|
335
|
-
### Authorization
|
|
336
|
-
|
|
337
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
338
|
-
|
|
339
|
-
### HTTP request headers
|
|
340
|
-
|
|
341
|
-
- **Content-Type**: application/json
|
|
342
|
-
- **Accept**: application/json
|
|
343
|
-
|
|
344
|
-
|
|
345
240
|
### HTTP response details
|
|
346
241
|
| Status code | Description | Response headers |
|
|
347
242
|
|-------------|-------------|------------------|
|
|
@@ -1546,57 +1441,6 @@ No authorization required
|
|
|
1546
1441
|
- **Accept**: application/json
|
|
1547
1442
|
|
|
1548
1443
|
|
|
1549
|
-
### HTTP response details
|
|
1550
|
-
| Status code | Description | Response headers |
|
|
1551
|
-
|-------------|-------------|------------------|
|
|
1552
|
-
|**200** | Ok | - |
|
|
1553
|
-
|
|
1554
|
-
[[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)
|
|
1555
|
-
|
|
1556
|
-
# **setupOffSessionPaymentMethod**
|
|
1557
|
-
> SetupPaymentMethodResponse setupOffSessionPaymentMethod(setupPaymentMethodRequestBody)
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
### Example
|
|
1561
|
-
|
|
1562
|
-
```typescript
|
|
1563
|
-
import {
|
|
1564
|
-
UsersApi,
|
|
1565
|
-
Configuration,
|
|
1566
|
-
SetupPaymentMethodRequestBody
|
|
1567
|
-
} from '@tennac-booking/sdk';
|
|
1568
|
-
|
|
1569
|
-
const configuration = new Configuration();
|
|
1570
|
-
const apiInstance = new UsersApi(configuration);
|
|
1571
|
-
|
|
1572
|
-
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
1573
|
-
|
|
1574
|
-
const { status, data } = await apiInstance.setupOffSessionPaymentMethod(
|
|
1575
|
-
setupPaymentMethodRequestBody
|
|
1576
|
-
);
|
|
1577
|
-
```
|
|
1578
|
-
|
|
1579
|
-
### Parameters
|
|
1580
|
-
|
|
1581
|
-
|Name | Type | Description | Notes|
|
|
1582
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1583
|
-
| **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
### Return type
|
|
1587
|
-
|
|
1588
|
-
**SetupPaymentMethodResponse**
|
|
1589
|
-
|
|
1590
|
-
### Authorization
|
|
1591
|
-
|
|
1592
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
1593
|
-
|
|
1594
|
-
### HTTP request headers
|
|
1595
|
-
|
|
1596
|
-
- **Content-Type**: application/json
|
|
1597
|
-
- **Accept**: application/json
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
1444
|
### HTTP response details
|
|
1601
1445
|
| Status code | Description | Response headers |
|
|
1602
1446
|
|-------------|-------------|------------------|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# AddPaymentMethodRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**paymentMethodId** | **string** | | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { AddPaymentMethodRequestBody } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: AddPaymentMethodRequestBody = {
|
|
16
|
-
paymentMethodId,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[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,20 +0,0 @@
|
|
|
1
|
-
# ConfirmPaymentMethodRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**setupIntentId** | **string** | | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { ConfirmPaymentMethodRequestBody } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: ConfirmPaymentMethodRequestBody = {
|
|
16
|
-
setupIntentId,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[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,22 +0,0 @@
|
|
|
1
|
-
# ConfirmPaymentMethodResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [default to undefined]
|
|
9
|
-
**paymentMethodId** | **string** | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ConfirmPaymentMethodResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ConfirmPaymentMethodResponse = {
|
|
17
|
-
message,
|
|
18
|
-
paymentMethodId,
|
|
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,24 +0,0 @@
|
|
|
1
|
-
# PaymentMethodSetupResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [default to undefined]
|
|
9
|
-
**paymentMethods** | **Array<string>** | | [default to undefined]
|
|
10
|
-
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { PaymentMethodSetupResponse } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: PaymentMethodSetupResponse = {
|
|
18
|
-
message,
|
|
19
|
-
paymentMethods,
|
|
20
|
-
defaultPaymentMethodId,
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# SetupPaymentMethodRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { SetupPaymentMethodRequestBody } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: SetupPaymentMethodRequestBody = {
|
|
16
|
-
clubId,
|
|
17
|
-
};
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
[[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,24 +0,0 @@
|
|
|
1
|
-
# SetupPaymentMethodResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**setupIntentId** | **string** | | [default to undefined]
|
|
9
|
-
**clientSecret** | **string** | | [default to undefined]
|
|
10
|
-
**message** | **string** | | [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { SetupPaymentMethodResponse } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: SetupPaymentMethodResponse = {
|
|
18
|
-
setupIntentId,
|
|
19
|
-
clientSecret,
|
|
20
|
-
message,
|
|
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)
|