@tennac-booking/sdk 1.0.79 → 1.0.80
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 +8 -0
- package/README.md +8 -0
- package/api.ts +599 -11
- package/dist/api.d.ts +582 -9
- package/dist/api.js +28 -8
- package/dist/esm/api.d.ts +582 -9
- package/dist/esm/api.js +25 -5
- package/docs/BookingClubInfo.md +28 -0
- package/docs/BookingCourtInfo.md +22 -0
- package/docs/BookingDetailResponse.md +53 -1
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/BookingSportInfo.md +22 -0
- package/docs/BookingSummary.md +53 -1
- package/docs/BookingsApi.md +3 -0
- package/docs/InvoiceStatus.md +22 -0
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UsersApi.md +2 -2
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -134,6 +134,21 @@ export const Gender = {
|
|
|
134
134
|
export const IUserLocationTypeEnum = {
|
|
135
135
|
Point: 'Point'
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @export
|
|
140
|
+
* @enum {string}
|
|
141
|
+
*/
|
|
142
|
+
export const InvoiceStatus = {
|
|
143
|
+
SetupPending: 'setup_pending',
|
|
144
|
+
SetupSuccess: 'setup_success',
|
|
145
|
+
Pending: 'pending',
|
|
146
|
+
Paid: 'paid',
|
|
147
|
+
Failed: 'failed',
|
|
148
|
+
Authorized: 'authorized',
|
|
149
|
+
Canceled: 'canceled',
|
|
150
|
+
Expired: 'expired'
|
|
151
|
+
};
|
|
137
152
|
/**
|
|
138
153
|
*
|
|
139
154
|
* @export
|
|
@@ -406,12 +421,13 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
406
421
|
* @param {string} [startTime]
|
|
407
422
|
* @param {number} [priceMax]
|
|
408
423
|
* @param {string} [courtTypes]
|
|
424
|
+
* @param {string} [surfaceTypes]
|
|
409
425
|
* @param {number} [limitPerClub]
|
|
410
426
|
* @param {number} [maxClubs]
|
|
411
427
|
* @param {*} [options] Override http request option.
|
|
412
428
|
* @throws {RequiredError}
|
|
413
429
|
*/
|
|
414
|
-
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
|
|
430
|
+
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options = {}) {
|
|
415
431
|
const localVarPath = `/api/bookings/quick-reservations`;
|
|
416
432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
417
433
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -446,6 +462,9 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
446
462
|
if (courtTypes !== undefined) {
|
|
447
463
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
448
464
|
}
|
|
465
|
+
if (surfaceTypes !== undefined) {
|
|
466
|
+
localVarQueryParameter['surfaceTypes'] = surfaceTypes;
|
|
467
|
+
}
|
|
449
468
|
if (limitPerClub !== undefined) {
|
|
450
469
|
localVarQueryParameter['_limitPerClub'] = limitPerClub;
|
|
451
470
|
}
|
|
@@ -509,15 +528,16 @@ export const BookingsApiFp = function (configuration) {
|
|
|
509
528
|
* @param {string} [startTime]
|
|
510
529
|
* @param {number} [priceMax]
|
|
511
530
|
* @param {string} [courtTypes]
|
|
531
|
+
* @param {string} [surfaceTypes]
|
|
512
532
|
* @param {number} [limitPerClub]
|
|
513
533
|
* @param {number} [maxClubs]
|
|
514
534
|
* @param {*} [options] Override http request option.
|
|
515
535
|
* @throws {RequiredError}
|
|
516
536
|
*/
|
|
517
|
-
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
537
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
|
|
518
538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
519
539
|
var _a, _b, _c;
|
|
520
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
|
|
521
541
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
522
542
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
523
543
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -557,7 +577,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
557
577
|
* @throws {RequiredError}
|
|
558
578
|
*/
|
|
559
579
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
560
|
-
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
580
|
+
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
561
581
|
},
|
|
562
582
|
};
|
|
563
583
|
};
|
|
@@ -596,7 +616,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
596
616
|
* @memberof BookingsApi
|
|
597
617
|
*/
|
|
598
618
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
599
|
-
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
600
620
|
}
|
|
601
621
|
}
|
|
602
622
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# BookingClubInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**location** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { BookingClubInfo } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: BookingClubInfo = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
picture,
|
|
23
|
+
address,
|
|
24
|
+
location,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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,22 @@
|
|
|
1
|
+
# BookingCourtInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingCourtInfo } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingCourtInfo = {
|
|
17
|
+
id,
|
|
18
|
+
name,
|
|
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)
|
|
@@ -6,11 +6,32 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
|
+
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**userId** | **string** | | [default to undefined]
|
|
11
|
+
**playersIds** | **Array<string>** | | [default to undefined]
|
|
12
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
13
|
+
**paymentByPlayersStatus** | [**Array<BookingPaymentStatus>**](BookingPaymentStatus.md) | | [default to undefined]
|
|
14
|
+
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
15
|
+
**totalPrice** | **number** | | [default to undefined]
|
|
16
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
17
|
+
**isPublic** | **boolean** | | [default to undefined]
|
|
18
|
+
**creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
20
|
+
**noShowChargeAmount** | **number** | | [optional] [default to undefined]
|
|
21
|
+
**noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
|
|
22
|
+
**noShowChargeIntentId** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**cancelledAt** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
27
|
+
**createdAt** | **string** | | [default to undefined]
|
|
28
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
29
|
+
**playersCount** | **number** | | [optional] [default to undefined]
|
|
9
30
|
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
10
31
|
**courtName** | **string** | | [optional] [default to undefined]
|
|
11
32
|
**sportName** | **string** | | [optional] [default to undefined]
|
|
12
33
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**myPaymentStatus** | **
|
|
34
|
+
**myPaymentStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
|
|
14
35
|
**bookingStatus** | **string** | | [optional] [default to undefined]
|
|
15
36
|
**playersName** | **Array<string>** | | [default to undefined]
|
|
16
37
|
**myAmountToPay** | **number** | | [default to undefined]
|
|
@@ -18,6 +39,11 @@ Name | Type | Description | Notes
|
|
|
18
39
|
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
40
|
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
41
|
**bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
|
|
42
|
+
**club** | [**BookingClubInfo**](BookingClubInfo.md) | | [optional] [default to undefined]
|
|
43
|
+
**slots** | [**Array<BookingSlotInfo>**](BookingSlotInfo.md) | | [default to undefined]
|
|
44
|
+
**court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
|
|
45
|
+
**sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
|
|
46
|
+
**players** | [**Array<BookingPlayerPaymentSummary>**](BookingPlayerPaymentSummary.md) | | [default to undefined]
|
|
21
47
|
**paymentStatus** | **Array<{ [key: string]: any; }>** | | [default to undefined]
|
|
22
48
|
|
|
23
49
|
## Example
|
|
@@ -27,6 +53,27 @@ import { BookingDetailResponse } from '@tennac-booking/sdk';
|
|
|
27
53
|
|
|
28
54
|
const instance: BookingDetailResponse = {
|
|
29
55
|
id,
|
|
56
|
+
clubId,
|
|
57
|
+
userId,
|
|
58
|
+
playersIds,
|
|
59
|
+
status,
|
|
60
|
+
paymentByPlayersStatus,
|
|
61
|
+
isCreatorPayingAll,
|
|
62
|
+
totalPrice,
|
|
63
|
+
slotIds,
|
|
64
|
+
isPublic,
|
|
65
|
+
creatorPaymentMethodId,
|
|
66
|
+
paymentMethodSetupCompleted,
|
|
67
|
+
noShowChargeAmount,
|
|
68
|
+
noShowChargeApplied,
|
|
69
|
+
noShowChargeIntentId,
|
|
70
|
+
cancellationReason,
|
|
71
|
+
cancelledBy,
|
|
72
|
+
cancelledAt,
|
|
73
|
+
cancelledByManager,
|
|
74
|
+
createdAt,
|
|
75
|
+
updatedAt,
|
|
76
|
+
playersCount,
|
|
30
77
|
clubPicture,
|
|
31
78
|
courtName,
|
|
32
79
|
sportName,
|
|
@@ -39,6 +86,11 @@ const instance: BookingDetailResponse = {
|
|
|
39
86
|
timeBeforeCancel,
|
|
40
87
|
clubAddress,
|
|
41
88
|
bookingHistory,
|
|
89
|
+
club,
|
|
90
|
+
slots,
|
|
91
|
+
court,
|
|
92
|
+
sport,
|
|
93
|
+
players,
|
|
42
94
|
paymentStatus,
|
|
43
95
|
};
|
|
44
96
|
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BookingPaymentStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | | [default to undefined]
|
|
9
|
+
**invoiceId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**invoiceStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { BookingPaymentStatus } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: BookingPaymentStatus = {
|
|
18
|
+
playerId,
|
|
19
|
+
invoiceId,
|
|
20
|
+
invoiceStatus,
|
|
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,34 @@
|
|
|
1
|
+
# BookingPlayerPaymentSummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**amountToPay** | **number** | | [default to undefined]
|
|
13
|
+
**invoiceId** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**invoiceStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
|
|
15
|
+
**isCreator** | **boolean** | | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { BookingPlayerPaymentSummary } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: BookingPlayerPaymentSummary = {
|
|
23
|
+
id,
|
|
24
|
+
firstName,
|
|
25
|
+
lastName,
|
|
26
|
+
profilePicture,
|
|
27
|
+
amountToPay,
|
|
28
|
+
invoiceId,
|
|
29
|
+
invoiceStatus,
|
|
30
|
+
isCreator,
|
|
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,30 @@
|
|
|
1
|
+
# BookingSlotInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**durationMinutes** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
|
|
13
|
+
**sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { BookingSlotInfo } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: BookingSlotInfo = {
|
|
21
|
+
id,
|
|
22
|
+
startDate,
|
|
23
|
+
endDate,
|
|
24
|
+
durationMinutes,
|
|
25
|
+
court,
|
|
26
|
+
sport,
|
|
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,22 @@
|
|
|
1
|
+
# BookingSportInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**key** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingSportInfo } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingSportInfo = {
|
|
17
|
+
id,
|
|
18
|
+
key,
|
|
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/BookingSummary.md
CHANGED
|
@@ -6,11 +6,32 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
|
+
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**userId** | **string** | | [default to undefined]
|
|
11
|
+
**playersIds** | **Array<string>** | | [default to undefined]
|
|
12
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
13
|
+
**paymentByPlayersStatus** | [**Array<BookingPaymentStatus>**](BookingPaymentStatus.md) | | [default to undefined]
|
|
14
|
+
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
15
|
+
**totalPrice** | **number** | | [default to undefined]
|
|
16
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
17
|
+
**isPublic** | **boolean** | | [default to undefined]
|
|
18
|
+
**creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
20
|
+
**noShowChargeAmount** | **number** | | [optional] [default to undefined]
|
|
21
|
+
**noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
|
|
22
|
+
**noShowChargeIntentId** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**cancelledAt** | **string** | | [optional] [default to undefined]
|
|
26
|
+
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
27
|
+
**createdAt** | **string** | | [default to undefined]
|
|
28
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
29
|
+
**playersCount** | **number** | | [optional] [default to undefined]
|
|
9
30
|
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
10
31
|
**courtName** | **string** | | [optional] [default to undefined]
|
|
11
32
|
**sportName** | **string** | | [optional] [default to undefined]
|
|
12
33
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**myPaymentStatus** | **
|
|
34
|
+
**myPaymentStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
|
|
14
35
|
**bookingStatus** | **string** | | [optional] [default to undefined]
|
|
15
36
|
**playersName** | **Array<string>** | | [default to undefined]
|
|
16
37
|
**myAmountToPay** | **number** | | [default to undefined]
|
|
@@ -18,6 +39,11 @@ Name | Type | Description | Notes
|
|
|
18
39
|
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
40
|
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
41
|
**bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
|
|
42
|
+
**club** | [**BookingClubInfo**](BookingClubInfo.md) | | [optional] [default to undefined]
|
|
43
|
+
**slots** | [**Array<BookingSlotInfo>**](BookingSlotInfo.md) | | [default to undefined]
|
|
44
|
+
**court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
|
|
45
|
+
**sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
|
|
46
|
+
**players** | [**Array<BookingPlayerPaymentSummary>**](BookingPlayerPaymentSummary.md) | | [default to undefined]
|
|
21
47
|
|
|
22
48
|
## Example
|
|
23
49
|
|
|
@@ -26,6 +52,27 @@ import { BookingSummary } from '@tennac-booking/sdk';
|
|
|
26
52
|
|
|
27
53
|
const instance: BookingSummary = {
|
|
28
54
|
id,
|
|
55
|
+
clubId,
|
|
56
|
+
userId,
|
|
57
|
+
playersIds,
|
|
58
|
+
status,
|
|
59
|
+
paymentByPlayersStatus,
|
|
60
|
+
isCreatorPayingAll,
|
|
61
|
+
totalPrice,
|
|
62
|
+
slotIds,
|
|
63
|
+
isPublic,
|
|
64
|
+
creatorPaymentMethodId,
|
|
65
|
+
paymentMethodSetupCompleted,
|
|
66
|
+
noShowChargeAmount,
|
|
67
|
+
noShowChargeApplied,
|
|
68
|
+
noShowChargeIntentId,
|
|
69
|
+
cancellationReason,
|
|
70
|
+
cancelledBy,
|
|
71
|
+
cancelledAt,
|
|
72
|
+
cancelledByManager,
|
|
73
|
+
createdAt,
|
|
74
|
+
updatedAt,
|
|
75
|
+
playersCount,
|
|
29
76
|
clubPicture,
|
|
30
77
|
courtName,
|
|
31
78
|
sportName,
|
|
@@ -38,6 +85,11 @@ const instance: BookingSummary = {
|
|
|
38
85
|
timeBeforeCancel,
|
|
39
86
|
clubAddress,
|
|
40
87
|
bookingHistory,
|
|
88
|
+
club,
|
|
89
|
+
slots,
|
|
90
|
+
court,
|
|
91
|
+
sport,
|
|
92
|
+
players,
|
|
41
93
|
};
|
|
42
94
|
```
|
|
43
95
|
|
package/docs/BookingsApi.md
CHANGED
|
@@ -134,6 +134,7 @@ let sportId: string; // (optional) (default to undefined)
|
|
|
134
134
|
let startTime: string; // (optional) (default to undefined)
|
|
135
135
|
let priceMax: number; // (optional) (default to undefined)
|
|
136
136
|
let courtTypes: string; // (optional) (default to undefined)
|
|
137
|
+
let surfaceTypes: string; // (optional) (default to undefined)
|
|
137
138
|
let limitPerClub: number; // (optional) (default to undefined)
|
|
138
139
|
let maxClubs: number; // (optional) (default to undefined)
|
|
139
140
|
|
|
@@ -146,6 +147,7 @@ const { status, data } = await apiInstance.getQuickReservationSlots(
|
|
|
146
147
|
startTime,
|
|
147
148
|
priceMax,
|
|
148
149
|
courtTypes,
|
|
150
|
+
surfaceTypes,
|
|
149
151
|
limitPerClub,
|
|
150
152
|
maxClubs
|
|
151
153
|
);
|
|
@@ -163,6 +165,7 @@ const { status, data } = await apiInstance.getQuickReservationSlots(
|
|
|
163
165
|
| **startTime** | [**string**] | | (optional) defaults to undefined|
|
|
164
166
|
| **priceMax** | [**number**] | | (optional) defaults to undefined|
|
|
165
167
|
| **courtTypes** | [**string**] | | (optional) defaults to undefined|
|
|
168
|
+
| **surfaceTypes** | [**string**] | | (optional) defaults to undefined|
|
|
166
169
|
| **limitPerClub** | [**number**] | | (optional) defaults to undefined|
|
|
167
170
|
| **maxClubs** | [**number**] | | (optional) defaults to undefined|
|
|
168
171
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# InvoiceStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `SetupPending` (value: `'setup_pending'`)
|
|
7
|
+
|
|
8
|
+
* `SetupSuccess` (value: `'setup_success'`)
|
|
9
|
+
|
|
10
|
+
* `Pending` (value: `'pending'`)
|
|
11
|
+
|
|
12
|
+
* `Paid` (value: `'paid'`)
|
|
13
|
+
|
|
14
|
+
* `Failed` (value: `'failed'`)
|
|
15
|
+
|
|
16
|
+
* `Authorized` (value: `'authorized'`)
|
|
17
|
+
|
|
18
|
+
* `Canceled` (value: `'canceled'`)
|
|
19
|
+
|
|
20
|
+
* `Expired` (value: `'expired'`)
|
|
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)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UserBookingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total** | **number** | | [default to undefined]
|
|
9
|
+
**limit** | **number** | | [default to undefined]
|
|
10
|
+
**skip** | **number** | | [default to undefined]
|
|
11
|
+
**hasMore** | **boolean** | | [default to undefined]
|
|
12
|
+
**bookings** | [**Array<BookingSummary>**](BookingSummary.md) | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserBookingsResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: UserBookingsResponse = {
|
|
20
|
+
total,
|
|
21
|
+
limit,
|
|
22
|
+
skip,
|
|
23
|
+
hasMore,
|
|
24
|
+
bookings,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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/UsersApi.md
CHANGED
|
@@ -820,7 +820,7 @@ This endpoint does not have any parameters.
|
|
|
820
820
|
[[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)
|
|
821
821
|
|
|
822
822
|
# **getUserBookings**
|
|
823
|
-
>
|
|
823
|
+
> UserBookingsResponse getUserBookings()
|
|
824
824
|
|
|
825
825
|
|
|
826
826
|
### Example
|
|
@@ -853,7 +853,7 @@ const { status, data } = await apiInstance.getUserBookings(
|
|
|
853
853
|
|
|
854
854
|
### Return type
|
|
855
855
|
|
|
856
|
-
**
|
|
856
|
+
**UserBookingsResponse**
|
|
857
857
|
|
|
858
858
|
### Authorization
|
|
859
859
|
|