@tennac-booking/sdk 1.0.68 → 1.0.69
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 +4 -0
- package/README.md +9 -3
- package/api.ts +399 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +263 -4
- package/dist/api.js +191 -6
- 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 +263 -4
- package/dist/esm/api.js +188 -3
- 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/BookingStatus.md +2 -2
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CourtResponse.md +4 -0
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/PlayerCategoriesResponse.md +20 -0
- package/docs/PlayerCategory.md +26 -0
- package/docs/PlayerCategoryId.md +16 -0
- package/docs/PlayerListResponse.md +26 -0
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +125 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.68
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,8 @@ export const BookingHistoryPerformedByTypeEnum = {
|
|
|
37
37
|
* @enum {string}
|
|
38
38
|
*/
|
|
39
39
|
export const BookingStatus = {
|
|
40
|
+
Paid: 'paid',
|
|
40
41
|
Active: 'active',
|
|
41
|
-
Past: 'past',
|
|
42
42
|
Pending: 'pending',
|
|
43
43
|
Expired: 'expired',
|
|
44
44
|
Canceled: 'canceled',
|
|
@@ -116,6 +116,18 @@ export const PlanInterval = {
|
|
|
116
116
|
Trimester: 'trimester',
|
|
117
117
|
Semester: 'semester'
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @enum {string}
|
|
123
|
+
*/
|
|
124
|
+
export const PlayerCategoryId = {
|
|
125
|
+
SameLevel: 'same-level',
|
|
126
|
+
MutualConnections: 'mutual-connections',
|
|
127
|
+
ClubMembers: 'club-members',
|
|
128
|
+
MostActive: 'most-active',
|
|
129
|
+
Nearby: 'nearby'
|
|
130
|
+
};
|
|
119
131
|
export const RegisterRequestBodyLocationTypeEnum = {
|
|
120
132
|
Point: 'Point'
|
|
121
133
|
};
|
|
@@ -597,7 +609,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
597
609
|
getBookingHistoryStaff: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
598
610
|
// verify required parameter 'bookingId' is not null or undefined
|
|
599
611
|
assertParamExists('getBookingHistoryStaff', 'bookingId', bookingId);
|
|
600
|
-
const localVarPath = `/api/bookings/staff/{bookingId}`
|
|
612
|
+
const localVarPath = `/api/bookings/staff/history{bookingId}`
|
|
601
613
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
602
614
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
615
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7349,6 +7361,33 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7349
7361
|
options: localVarRequestOptions,
|
|
7350
7362
|
};
|
|
7351
7363
|
}),
|
|
7364
|
+
/**
|
|
7365
|
+
*
|
|
7366
|
+
* @param {*} [options] Override http request option.
|
|
7367
|
+
* @throws {RequiredError}
|
|
7368
|
+
*/
|
|
7369
|
+
getPlayerCategories: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7370
|
+
const localVarPath = `/api/users/players/categories`;
|
|
7371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7372
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7373
|
+
let baseOptions;
|
|
7374
|
+
if (configuration) {
|
|
7375
|
+
baseOptions = configuration.baseOptions;
|
|
7376
|
+
}
|
|
7377
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7378
|
+
const localVarHeaderParameter = {};
|
|
7379
|
+
const localVarQueryParameter = {};
|
|
7380
|
+
// authentication bearerAuth required
|
|
7381
|
+
// http bearer authentication required
|
|
7382
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7385
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7386
|
+
return {
|
|
7387
|
+
url: toPathString(localVarUrlObj),
|
|
7388
|
+
options: localVarRequestOptions,
|
|
7389
|
+
};
|
|
7390
|
+
}),
|
|
7352
7391
|
/**
|
|
7353
7392
|
*
|
|
7354
7393
|
* @param {number} [limit]
|
|
@@ -7415,6 +7454,77 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7415
7454
|
options: localVarRequestOptions,
|
|
7416
7455
|
};
|
|
7417
7456
|
}),
|
|
7457
|
+
/**
|
|
7458
|
+
*
|
|
7459
|
+
* @param {PlayerCategoryId} [category]
|
|
7460
|
+
* @param {string} [search]
|
|
7461
|
+
* @param {string} [gender]
|
|
7462
|
+
* @param {boolean} [sharedClub]
|
|
7463
|
+
* @param {string} [sportLevels]
|
|
7464
|
+
* @param {number} [limit]
|
|
7465
|
+
* @param {number} [offset]
|
|
7466
|
+
* @param {boolean} [useLocation]
|
|
7467
|
+
* @param {number} [latitude]
|
|
7468
|
+
* @param {number} [longitude]
|
|
7469
|
+
* @param {number} [radiusInKm]
|
|
7470
|
+
* @param {*} [options] Override http request option.
|
|
7471
|
+
* @throws {RequiredError}
|
|
7472
|
+
*/
|
|
7473
|
+
listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options = {}) {
|
|
7474
|
+
const localVarPath = `/api/users/players`;
|
|
7475
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7476
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7477
|
+
let baseOptions;
|
|
7478
|
+
if (configuration) {
|
|
7479
|
+
baseOptions = configuration.baseOptions;
|
|
7480
|
+
}
|
|
7481
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7482
|
+
const localVarHeaderParameter = {};
|
|
7483
|
+
const localVarQueryParameter = {};
|
|
7484
|
+
// authentication bearerAuth required
|
|
7485
|
+
// http bearer authentication required
|
|
7486
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7487
|
+
if (category !== undefined) {
|
|
7488
|
+
localVarQueryParameter['category'] = category;
|
|
7489
|
+
}
|
|
7490
|
+
if (search !== undefined) {
|
|
7491
|
+
localVarQueryParameter['search'] = search;
|
|
7492
|
+
}
|
|
7493
|
+
if (gender !== undefined) {
|
|
7494
|
+
localVarQueryParameter['gender'] = gender;
|
|
7495
|
+
}
|
|
7496
|
+
if (sharedClub !== undefined) {
|
|
7497
|
+
localVarQueryParameter['sharedClub'] = sharedClub;
|
|
7498
|
+
}
|
|
7499
|
+
if (sportLevels !== undefined) {
|
|
7500
|
+
localVarQueryParameter['sportLevels'] = sportLevels;
|
|
7501
|
+
}
|
|
7502
|
+
if (limit !== undefined) {
|
|
7503
|
+
localVarQueryParameter['limit'] = limit;
|
|
7504
|
+
}
|
|
7505
|
+
if (offset !== undefined) {
|
|
7506
|
+
localVarQueryParameter['offset'] = offset;
|
|
7507
|
+
}
|
|
7508
|
+
if (useLocation !== undefined) {
|
|
7509
|
+
localVarQueryParameter['useLocation'] = useLocation;
|
|
7510
|
+
}
|
|
7511
|
+
if (latitude !== undefined) {
|
|
7512
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7513
|
+
}
|
|
7514
|
+
if (longitude !== undefined) {
|
|
7515
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7516
|
+
}
|
|
7517
|
+
if (radiusInKm !== undefined) {
|
|
7518
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7519
|
+
}
|
|
7520
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7521
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7522
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7523
|
+
return {
|
|
7524
|
+
url: toPathString(localVarUrlObj),
|
|
7525
|
+
options: localVarRequestOptions,
|
|
7526
|
+
};
|
|
7527
|
+
}),
|
|
7418
7528
|
/**
|
|
7419
7529
|
*
|
|
7420
7530
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -8194,6 +8304,20 @@ export const UsersApiFp = function (configuration) {
|
|
|
8194
8304
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8195
8305
|
});
|
|
8196
8306
|
},
|
|
8307
|
+
/**
|
|
8308
|
+
*
|
|
8309
|
+
* @param {*} [options] Override http request option.
|
|
8310
|
+
* @throws {RequiredError}
|
|
8311
|
+
*/
|
|
8312
|
+
getPlayerCategories(options) {
|
|
8313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8314
|
+
var _a, _b, _c;
|
|
8315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayerCategories(options);
|
|
8316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8317
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getPlayerCategories']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8318
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8319
|
+
});
|
|
8320
|
+
},
|
|
8197
8321
|
/**
|
|
8198
8322
|
*
|
|
8199
8323
|
* @param {number} [limit]
|
|
@@ -8225,6 +8349,31 @@ export const UsersApiFp = function (configuration) {
|
|
|
8225
8349
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8226
8350
|
});
|
|
8227
8351
|
},
|
|
8352
|
+
/**
|
|
8353
|
+
*
|
|
8354
|
+
* @param {PlayerCategoryId} [category]
|
|
8355
|
+
* @param {string} [search]
|
|
8356
|
+
* @param {string} [gender]
|
|
8357
|
+
* @param {boolean} [sharedClub]
|
|
8358
|
+
* @param {string} [sportLevels]
|
|
8359
|
+
* @param {number} [limit]
|
|
8360
|
+
* @param {number} [offset]
|
|
8361
|
+
* @param {boolean} [useLocation]
|
|
8362
|
+
* @param {number} [latitude]
|
|
8363
|
+
* @param {number} [longitude]
|
|
8364
|
+
* @param {number} [radiusInKm]
|
|
8365
|
+
* @param {*} [options] Override http request option.
|
|
8366
|
+
* @throws {RequiredError}
|
|
8367
|
+
*/
|
|
8368
|
+
listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options) {
|
|
8369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8370
|
+
var _a, _b, _c;
|
|
8371
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options);
|
|
8372
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8373
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8374
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8375
|
+
});
|
|
8376
|
+
},
|
|
8228
8377
|
/**
|
|
8229
8378
|
*
|
|
8230
8379
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -8635,6 +8784,14 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8635
8784
|
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
8636
8785
|
return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
8637
8786
|
},
|
|
8787
|
+
/**
|
|
8788
|
+
*
|
|
8789
|
+
* @param {*} [options] Override http request option.
|
|
8790
|
+
* @throws {RequiredError}
|
|
8791
|
+
*/
|
|
8792
|
+
getPlayerCategories(options) {
|
|
8793
|
+
return localVarFp.getPlayerCategories(options).then((request) => request(axios, basePath));
|
|
8794
|
+
},
|
|
8638
8795
|
/**
|
|
8639
8796
|
*
|
|
8640
8797
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -8653,6 +8810,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8653
8810
|
getUserProfileById(requestParameters, options) {
|
|
8654
8811
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
8655
8812
|
},
|
|
8813
|
+
/**
|
|
8814
|
+
*
|
|
8815
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
8816
|
+
* @param {*} [options] Override http request option.
|
|
8817
|
+
* @throws {RequiredError}
|
|
8818
|
+
*/
|
|
8819
|
+
listPlayers(requestParameters = {}, options) {
|
|
8820
|
+
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
|
|
8821
|
+
},
|
|
8656
8822
|
/**
|
|
8657
8823
|
*
|
|
8658
8824
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8978,6 +9144,15 @@ export class UsersApi extends BaseAPI {
|
|
|
8978
9144
|
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
8979
9145
|
return UsersApiFp(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
8980
9146
|
}
|
|
9147
|
+
/**
|
|
9148
|
+
*
|
|
9149
|
+
* @param {*} [options] Override http request option.
|
|
9150
|
+
* @throws {RequiredError}
|
|
9151
|
+
* @memberof UsersApi
|
|
9152
|
+
*/
|
|
9153
|
+
getPlayerCategories(options) {
|
|
9154
|
+
return UsersApiFp(this.configuration).getPlayerCategories(options).then((request) => request(this.axios, this.basePath));
|
|
9155
|
+
}
|
|
8981
9156
|
/**
|
|
8982
9157
|
*
|
|
8983
9158
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -8998,6 +9173,16 @@ export class UsersApi extends BaseAPI {
|
|
|
8998
9173
|
getUserProfileById(requestParameters, options) {
|
|
8999
9174
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
9000
9175
|
}
|
|
9176
|
+
/**
|
|
9177
|
+
*
|
|
9178
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
9179
|
+
* @param {*} [options] Override http request option.
|
|
9180
|
+
* @throws {RequiredError}
|
|
9181
|
+
* @memberof UsersApi
|
|
9182
|
+
*/
|
|
9183
|
+
listPlayers(requestParameters = {}, options) {
|
|
9184
|
+
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
|
|
9185
|
+
}
|
|
9001
9186
|
/**
|
|
9002
9187
|
*
|
|
9003
9188
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
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
package/docs/BookingStatus.md
CHANGED
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -6,7 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInPlayers**](#checkinplayers) | **POST** /api/bookings/{bookingId}/check-in | |
|
|
8
8
|
|[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
|
|
9
|
-
|[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/{bookingId} | |
|
|
9
|
+
|[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
|
|
10
10
|
|[**getBookingPaymentStatus**](#getbookingpaymentstatus) | **GET** /api/bookings/{bookingId}/payment-status | |
|
|
11
11
|
|[**getDailyBookings**](#getdailybookings) | **GET** /api/bookings/daily/{date} | |
|
|
12
12
|
|[**getWeeklyBookings**](#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} | |
|
package/docs/CourtResponse.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | Nom du terrain | [default to undefined]
|
|
10
10
|
**status** | **string** | Statut du terrain | [default to undefined]
|
|
11
11
|
**comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
|
|
12
|
+
**pricePerHour** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**bookingCount** | **number** | | [optional] [default to undefined]
|
|
12
14
|
**slotDefaultDuration** | **number** | Durée par défaut d\'un créneau en minutes | [default to undefined]
|
|
13
15
|
**startTimeInTheDayInMinutes** | **number** | Heure de début en minutes depuis minuit | [default to undefined]
|
|
14
16
|
**endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
|
|
@@ -30,6 +32,8 @@ const instance: CourtResponse = {
|
|
|
30
32
|
name,
|
|
31
33
|
status,
|
|
32
34
|
comments,
|
|
35
|
+
pricePerHour,
|
|
36
|
+
bookingCount,
|
|
33
37
|
slotDefaultDuration,
|
|
34
38
|
startTimeInTheDayInMinutes,
|
|
35
39
|
endTimeInTheDayInMinutes,
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
|
|
10
10
|
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
|
|
11
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
12
|
+
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: CreateBookingRequest = {
|
|
|
20
21
|
players,
|
|
21
22
|
isCreatorPayingAll,
|
|
22
23
|
paymentMethod,
|
|
24
|
+
useDefaultPaymentMethod,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PlayerCategoriesResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**categories** | [**Array<PlayerCategory>**](PlayerCategory.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PlayerCategoriesResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: PlayerCategoriesResponse = {
|
|
16
|
+
categories,
|
|
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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PlayerCategory
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | [**PlayerCategoryId**](PlayerCategoryId.md) | | [default to undefined]
|
|
9
|
+
**label** | **string** | | [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**limit** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PlayerCategory } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: PlayerCategory = {
|
|
19
|
+
id,
|
|
20
|
+
label,
|
|
21
|
+
description,
|
|
22
|
+
limit,
|
|
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)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# PlayerCategoryId
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `SameLevel` (value: `'same-level'`)
|
|
7
|
+
|
|
8
|
+
* `MutualConnections` (value: `'mutual-connections'`)
|
|
9
|
+
|
|
10
|
+
* `ClubMembers` (value: `'club-members'`)
|
|
11
|
+
|
|
12
|
+
* `MostActive` (value: `'most-active'`)
|
|
13
|
+
|
|
14
|
+
* `Nearby` (value: `'nearby'`)
|
|
15
|
+
|
|
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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PlayerListResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**players** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**hasMore** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**nextOffset** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { PlayerListResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: PlayerListResponse = {
|
|
19
|
+
players,
|
|
20
|
+
total,
|
|
21
|
+
hasMore,
|
|
22
|
+
nextOffset,
|
|
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)
|
|
@@ -39,6 +39,7 @@ Name | Type | Description | Notes
|
|
|
39
39
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
40
40
|
**upcomingBookingsCount** | **number** | | [optional] [default to undefined]
|
|
41
41
|
**subscriptionsCount** | **number** | | [optional] [default to undefined]
|
|
42
|
+
**subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
|
|
42
43
|
**frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
43
44
|
**frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
|
|
44
45
|
**stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
@@ -83,6 +84,7 @@ const instance: UserProfileResponse = {
|
|
|
83
84
|
sports,
|
|
84
85
|
upcomingBookingsCount,
|
|
85
86
|
subscriptionsCount,
|
|
87
|
+
subscriptions,
|
|
86
88
|
frequentlyVisitedClubs,
|
|
87
89
|
frequentlyPlayedWith,
|
|
88
90
|
stripeLinks,
|