@tennac-booking/sdk 1.0.209 → 1.0.211
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 +3 -2
- package/README.md +7 -7
- package/api.ts +185 -256
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +177 -193
- package/dist/api.js +40 -109
- 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 +177 -193
- package/dist/esm/api.js +40 -109
- 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/BookingsApi.md +20 -74
- package/docs/ClubPageResponse.md +10 -0
- package/docs/ClubResponse.md +2 -0
- package/docs/CreateOpenBookingRequest.md +3 -5
- package/docs/EstimateOpenBookingJoinRequest.md +24 -0
- package/docs/JoinOpenBookingRequest.md +4 -2
- package/docs/OpenBookingBasePriceResponse.md +24 -0
- package/docs/OpenBookingJoinEstimateResponse.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/JoinPriceEstimateResponse.md +0 -38
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
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.210
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -662,16 +662,18 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
662
662
|
};
|
|
663
663
|
}),
|
|
664
664
|
/**
|
|
665
|
-
*
|
|
665
|
+
* Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
|
|
666
666
|
* @param {string} bookingId
|
|
667
|
-
* @param {
|
|
667
|
+
* @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
|
|
668
668
|
* @param {*} [options] Override http request option.
|
|
669
669
|
* @throws {RequiredError}
|
|
670
670
|
*/
|
|
671
|
-
|
|
671
|
+
estimateOpenBookingJoin: (bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1) => __awaiter(this, [bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1], void 0, function* (bookingId, estimateOpenBookingJoinRequest, options = {}) {
|
|
672
672
|
// verify required parameter 'bookingId' is not null or undefined
|
|
673
|
-
assertParamExists('
|
|
674
|
-
|
|
673
|
+
assertParamExists('estimateOpenBookingJoin', 'bookingId', bookingId);
|
|
674
|
+
// verify required parameter 'estimateOpenBookingJoinRequest' is not null or undefined
|
|
675
|
+
assertParamExists('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
|
|
676
|
+
const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
|
|
675
677
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
676
678
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
677
679
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -679,18 +681,17 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
679
681
|
if (configuration) {
|
|
680
682
|
baseOptions = configuration.baseOptions;
|
|
681
683
|
}
|
|
682
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
684
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
683
685
|
const localVarHeaderParameter = {};
|
|
684
686
|
const localVarQueryParameter = {};
|
|
685
687
|
// authentication bearerAuth required
|
|
686
688
|
// http bearer authentication required
|
|
687
689
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
688
|
-
|
|
689
|
-
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
690
|
-
}
|
|
690
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
691
691
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
692
692
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
693
693
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
694
|
+
localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
|
|
694
695
|
return {
|
|
695
696
|
url: toPathString(localVarUrlObj),
|
|
696
697
|
options: localVarRequestOptions,
|
|
@@ -789,50 +790,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
789
790
|
};
|
|
790
791
|
}),
|
|
791
792
|
/**
|
|
792
|
-
*
|
|
793
|
-
* @param {string} bookingId
|
|
794
|
-
* @param {number} [creditToUseInCents]
|
|
795
|
-
* @param {*} [options] Override http request option.
|
|
796
|
-
* @throws {RequiredError}
|
|
797
|
-
*/
|
|
798
|
-
getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
799
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
800
|
-
assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId);
|
|
801
|
-
const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
|
|
802
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
803
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
804
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
805
|
-
let baseOptions;
|
|
806
|
-
if (configuration) {
|
|
807
|
-
baseOptions = configuration.baseOptions;
|
|
808
|
-
}
|
|
809
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
810
|
-
const localVarHeaderParameter = {};
|
|
811
|
-
const localVarQueryParameter = {};
|
|
812
|
-
// authentication bearerAuth required
|
|
813
|
-
// http bearer authentication required
|
|
814
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
815
|
-
if (creditToUseInCents !== undefined) {
|
|
816
|
-
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
817
|
-
}
|
|
818
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
819
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
820
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
821
|
-
return {
|
|
822
|
-
url: toPathString(localVarUrlObj),
|
|
823
|
-
options: localVarRequestOptions,
|
|
824
|
-
};
|
|
825
|
-
}),
|
|
826
|
-
/**
|
|
827
|
-
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
793
|
+
* Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
|
|
828
794
|
* @param {string} bookingId
|
|
829
795
|
* @param {*} [options] Override http request option.
|
|
830
796
|
* @throws {RequiredError}
|
|
831
797
|
*/
|
|
832
|
-
|
|
798
|
+
getOpenBookingBasePrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
833
799
|
// verify required parameter 'bookingId' is not null or undefined
|
|
834
|
-
assertParamExists('
|
|
835
|
-
const localVarPath = `/api/bookings/{bookingId}/open/
|
|
800
|
+
assertParamExists('getOpenBookingBasePrice', 'bookingId', bookingId);
|
|
801
|
+
const localVarPath = `/api/bookings/{bookingId}/open/base-price`
|
|
836
802
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
837
803
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
838
804
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1045,18 +1011,18 @@ export const BookingsApiFp = function (configuration) {
|
|
|
1045
1011
|
});
|
|
1046
1012
|
},
|
|
1047
1013
|
/**
|
|
1048
|
-
*
|
|
1014
|
+
* Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
|
|
1049
1015
|
* @param {string} bookingId
|
|
1050
|
-
* @param {
|
|
1016
|
+
* @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
|
|
1051
1017
|
* @param {*} [options] Override http request option.
|
|
1052
1018
|
* @throws {RequiredError}
|
|
1053
1019
|
*/
|
|
1054
|
-
|
|
1020
|
+
estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options) {
|
|
1055
1021
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1056
1022
|
var _a, _b, _c;
|
|
1057
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1023
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options);
|
|
1058
1024
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1059
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.
|
|
1025
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1060
1026
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1061
1027
|
});
|
|
1062
1028
|
},
|
|
@@ -1106,33 +1072,17 @@ export const BookingsApiFp = function (configuration) {
|
|
|
1106
1072
|
});
|
|
1107
1073
|
},
|
|
1108
1074
|
/**
|
|
1109
|
-
*
|
|
1075
|
+
* Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
|
|
1110
1076
|
* @param {string} bookingId
|
|
1111
|
-
* @param {number} [creditToUseInCents]
|
|
1112
1077
|
* @param {*} [options] Override http request option.
|
|
1113
1078
|
* @throws {RequiredError}
|
|
1114
1079
|
*/
|
|
1115
|
-
|
|
1080
|
+
getOpenBookingBasePrice(bookingId, options) {
|
|
1116
1081
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1117
1082
|
var _a, _b, _c;
|
|
1118
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingBasePrice(bookingId, options);
|
|
1119
1084
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1120
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.
|
|
1121
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1122
|
-
});
|
|
1123
|
-
},
|
|
1124
|
-
/**
|
|
1125
|
-
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1126
|
-
* @param {string} bookingId
|
|
1127
|
-
* @param {*} [options] Override http request option.
|
|
1128
|
-
* @throws {RequiredError}
|
|
1129
|
-
*/
|
|
1130
|
-
getOpenBookingJoinPrice(bookingId, options) {
|
|
1131
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
-
var _a, _b, _c;
|
|
1133
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
1134
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1135
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1085
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingBasePrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1136
1086
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1137
1087
|
});
|
|
1138
1088
|
},
|
|
@@ -1226,13 +1176,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1226
1176
|
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
1227
1177
|
},
|
|
1228
1178
|
/**
|
|
1229
|
-
*
|
|
1230
|
-
* @param {
|
|
1179
|
+
* Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
|
|
1180
|
+
* @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
|
|
1231
1181
|
* @param {*} [options] Override http request option.
|
|
1232
1182
|
* @throws {RequiredError}
|
|
1233
1183
|
*/
|
|
1234
|
-
|
|
1235
|
-
return localVarFp.
|
|
1184
|
+
estimateOpenBookingJoin(requestParameters, options) {
|
|
1185
|
+
return localVarFp.estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(axios, basePath));
|
|
1236
1186
|
},
|
|
1237
1187
|
/**
|
|
1238
1188
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1262,22 +1212,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1262
1212
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
1263
1213
|
},
|
|
1264
1214
|
/**
|
|
1265
|
-
*
|
|
1266
|
-
* @param {
|
|
1215
|
+
* Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
|
|
1216
|
+
* @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
|
|
1267
1217
|
* @param {*} [options] Override http request option.
|
|
1268
1218
|
* @throws {RequiredError}
|
|
1269
1219
|
*/
|
|
1270
|
-
|
|
1271
|
-
return localVarFp.
|
|
1272
|
-
},
|
|
1273
|
-
/**
|
|
1274
|
-
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1275
|
-
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1276
|
-
* @param {*} [options] Override http request option.
|
|
1277
|
-
* @throws {RequiredError}
|
|
1278
|
-
*/
|
|
1279
|
-
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1280
|
-
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1220
|
+
getOpenBookingBasePrice(requestParameters, options) {
|
|
1221
|
+
return localVarFp.getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1281
1222
|
},
|
|
1282
1223
|
/**
|
|
1283
1224
|
*
|
|
@@ -1335,14 +1276,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
1335
1276
|
return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1336
1277
|
}
|
|
1337
1278
|
/**
|
|
1338
|
-
*
|
|
1339
|
-
* @param {
|
|
1279
|
+
* Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
|
|
1280
|
+
* @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
|
|
1340
1281
|
* @param {*} [options] Override http request option.
|
|
1341
1282
|
* @throws {RequiredError}
|
|
1342
1283
|
* @memberof BookingsApi
|
|
1343
1284
|
*/
|
|
1344
|
-
|
|
1345
|
-
return BookingsApiFp(this.configuration).
|
|
1285
|
+
estimateOpenBookingJoin(requestParameters, options) {
|
|
1286
|
+
return BookingsApiFp(this.configuration).estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1346
1287
|
}
|
|
1347
1288
|
/**
|
|
1348
1289
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1375,24 +1316,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
1375
1316
|
return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1376
1317
|
}
|
|
1377
1318
|
/**
|
|
1378
|
-
*
|
|
1379
|
-
* @param {
|
|
1380
|
-
* @param {*} [options] Override http request option.
|
|
1381
|
-
* @throws {RequiredError}
|
|
1382
|
-
* @memberof BookingsApi
|
|
1383
|
-
*/
|
|
1384
|
-
getJoinPriceEstimate(requestParameters, options) {
|
|
1385
|
-
return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1386
|
-
}
|
|
1387
|
-
/**
|
|
1388
|
-
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1389
|
-
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1319
|
+
* Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
|
|
1320
|
+
* @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
|
|
1390
1321
|
* @param {*} [options] Override http request option.
|
|
1391
1322
|
* @throws {RequiredError}
|
|
1392
1323
|
* @memberof BookingsApi
|
|
1393
1324
|
*/
|
|
1394
|
-
|
|
1395
|
-
return BookingsApiFp(this.configuration).
|
|
1325
|
+
getOpenBookingBasePrice(requestParameters, options) {
|
|
1326
|
+
return BookingsApiFp(this.configuration).getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1396
1327
|
}
|
|
1397
1328
|
/**
|
|
1398
1329
|
*
|
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/BookingsApi.md
CHANGED
|
@@ -5,12 +5,11 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createGuestBooking**](#createguestbooking) | **POST** /api/bookings/guest | |
|
|
8
|
-
|[**
|
|
8
|
+
|[**estimateOpenBookingJoin**](#estimateopenbookingjoin) | **POST** /api/bookings/{bookingId}/open/estimate-join | |
|
|
9
9
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
10
10
|
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
11
11
|
|[**getGuestBookingPrice**](#getguestbookingprice) | **POST** /api/bookings/guest/booking-price | |
|
|
12
|
-
|[**
|
|
13
|
-
|[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
|
|
12
|
+
|[**getOpenBookingBasePrice**](#getopenbookingbaseprice) | **GET** /api/bookings/{bookingId}/open/base-price | |
|
|
14
13
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
15
14
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
16
15
|
|[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
|
|
@@ -68,28 +67,29 @@ No authorization required
|
|
|
68
67
|
|
|
69
68
|
[[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)
|
|
70
69
|
|
|
71
|
-
# **
|
|
72
|
-
>
|
|
70
|
+
# **estimateOpenBookingJoin**
|
|
71
|
+
> OpenBookingJoinEstimateResponse estimateOpenBookingJoin(estimateOpenBookingJoinRequest)
|
|
73
72
|
|
|
74
|
-
|
|
73
|
+
Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
|
|
75
74
|
|
|
76
75
|
### Example
|
|
77
76
|
|
|
78
77
|
```typescript
|
|
79
78
|
import {
|
|
80
79
|
BookingsApi,
|
|
81
|
-
Configuration
|
|
80
|
+
Configuration,
|
|
81
|
+
EstimateOpenBookingJoinRequest
|
|
82
82
|
} from '@tennac-booking/sdk';
|
|
83
83
|
|
|
84
84
|
const configuration = new Configuration();
|
|
85
85
|
const apiInstance = new BookingsApi(configuration);
|
|
86
86
|
|
|
87
87
|
let bookingId: string; // (default to undefined)
|
|
88
|
-
let
|
|
88
|
+
let estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest; //
|
|
89
89
|
|
|
90
|
-
const { status, data } = await apiInstance.
|
|
90
|
+
const { status, data } = await apiInstance.estimateOpenBookingJoin(
|
|
91
91
|
bookingId,
|
|
92
|
-
|
|
92
|
+
estimateOpenBookingJoinRequest
|
|
93
93
|
);
|
|
94
94
|
```
|
|
95
95
|
|
|
@@ -97,13 +97,13 @@ const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
|
|
|
97
97
|
|
|
98
98
|
|Name | Type | Description | Notes|
|
|
99
99
|
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **estimateOpenBookingJoinRequest** | **EstimateOpenBookingJoinRequest**| | |
|
|
100
101
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
101
|
-
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
### Return type
|
|
105
105
|
|
|
106
|
-
**
|
|
106
|
+
**OpenBookingJoinEstimateResponse**
|
|
107
107
|
|
|
108
108
|
### Authorization
|
|
109
109
|
|
|
@@ -111,14 +111,14 @@ const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
|
|
|
111
111
|
|
|
112
112
|
### HTTP request headers
|
|
113
113
|
|
|
114
|
-
- **Content-Type**:
|
|
114
|
+
- **Content-Type**: application/json
|
|
115
115
|
- **Accept**: application/json
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
### HTTP response details
|
|
119
119
|
| Status code | Description | Response headers |
|
|
120
120
|
|-------------|-------------|------------------|
|
|
121
|
-
|**200** |
|
|
121
|
+
|**200** | Prix à payer calculé | - |
|
|
122
122
|
|
|
123
123
|
[[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)
|
|
124
124
|
|
|
@@ -276,10 +276,10 @@ No authorization required
|
|
|
276
276
|
|
|
277
277
|
[[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)
|
|
278
278
|
|
|
279
|
-
# **
|
|
280
|
-
>
|
|
279
|
+
# **getOpenBookingBasePrice**
|
|
280
|
+
> OpenBookingBasePriceResponse getOpenBookingBasePrice()
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
|
|
283
283
|
|
|
284
284
|
### Example
|
|
285
285
|
|
|
@@ -293,62 +293,8 @@ const configuration = new Configuration();
|
|
|
293
293
|
const apiInstance = new BookingsApi(configuration);
|
|
294
294
|
|
|
295
295
|
let bookingId: string; // (default to undefined)
|
|
296
|
-
let creditToUseInCents: number; // (optional) (default to undefined)
|
|
297
|
-
|
|
298
|
-
const { status, data } = await apiInstance.getJoinPriceEstimate(
|
|
299
|
-
bookingId,
|
|
300
|
-
creditToUseInCents
|
|
301
|
-
);
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
### Parameters
|
|
305
|
-
|
|
306
|
-
|Name | Type | Description | Notes|
|
|
307
|
-
|------------- | ------------- | ------------- | -------------|
|
|
308
|
-
| **bookingId** | [**string**] | | defaults to undefined|
|
|
309
|
-
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
310
296
|
|
|
311
|
-
|
|
312
|
-
### Return type
|
|
313
|
-
|
|
314
|
-
**JoinPriceEstimateResponse**
|
|
315
|
-
|
|
316
|
-
### Authorization
|
|
317
|
-
|
|
318
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
319
|
-
|
|
320
|
-
### HTTP request headers
|
|
321
|
-
|
|
322
|
-
- **Content-Type**: Not defined
|
|
323
|
-
- **Accept**: application/json
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
### HTTP response details
|
|
327
|
-
| Status code | Description | Response headers |
|
|
328
|
-
|-------------|-------------|------------------|
|
|
329
|
-
|**200** | Estimation complète du prix calculée | - |
|
|
330
|
-
|
|
331
|
-
[[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)
|
|
332
|
-
|
|
333
|
-
# **getOpenBookingJoinPrice**
|
|
334
|
-
> GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
|
|
335
|
-
|
|
336
|
-
Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
337
|
-
|
|
338
|
-
### Example
|
|
339
|
-
|
|
340
|
-
```typescript
|
|
341
|
-
import {
|
|
342
|
-
BookingsApi,
|
|
343
|
-
Configuration
|
|
344
|
-
} from '@tennac-booking/sdk';
|
|
345
|
-
|
|
346
|
-
const configuration = new Configuration();
|
|
347
|
-
const apiInstance = new BookingsApi(configuration);
|
|
348
|
-
|
|
349
|
-
let bookingId: string; // (default to undefined)
|
|
350
|
-
|
|
351
|
-
const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
297
|
+
const { status, data } = await apiInstance.getOpenBookingBasePrice(
|
|
352
298
|
bookingId
|
|
353
299
|
);
|
|
354
300
|
```
|
|
@@ -362,7 +308,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
|
362
308
|
|
|
363
309
|
### Return type
|
|
364
310
|
|
|
365
|
-
**
|
|
311
|
+
**OpenBookingBasePriceResponse**
|
|
366
312
|
|
|
367
313
|
### Authorization
|
|
368
314
|
|
|
@@ -377,7 +323,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
|
377
323
|
### HTTP response details
|
|
378
324
|
| Status code | Description | Response headers |
|
|
379
325
|
|-------------|-------------|------------------|
|
|
380
|
-
|**200** | Prix
|
|
326
|
+
|**200** | Prix de base calculé | - |
|
|
381
327
|
|
|
382
328
|
[[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)
|
|
383
329
|
|
package/docs/ClubPageResponse.md
CHANGED
|
@@ -17,6 +17,11 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
|
|
18
18
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
19
19
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
20
|
+
**courtsCount** | **number** | Nombre total de terrains du club | [optional] [default to undefined]
|
|
21
|
+
**courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
22
|
+
**surfacesBySport** | **{ [key: string]: Array<SurfaceType>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
23
|
+
**indoorOutdoorBySport** | **{ [key: string]: Array<CourtEnvironment>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
24
|
+
**slotDurationsBySport** | **{ [key: string]: Array<number>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
20
25
|
**clubPresentation** | [**ClubPresentation**](ClubPresentation.md) | | [default to undefined]
|
|
21
26
|
**comingEvents** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
|
|
22
27
|
**comingClosures** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
|
|
@@ -43,6 +48,11 @@ const instance: ClubPageResponse = {
|
|
|
43
48
|
paymentFeature,
|
|
44
49
|
isNoShowEnabled,
|
|
45
50
|
sports,
|
|
51
|
+
courtsCount,
|
|
52
|
+
courtsCountBySport,
|
|
53
|
+
surfacesBySport,
|
|
54
|
+
indoorOutdoorBySport,
|
|
55
|
+
slotDurationsBySport,
|
|
46
56
|
clubPresentation,
|
|
47
57
|
comingEvents,
|
|
48
58
|
comingClosures,
|
package/docs/ClubResponse.md
CHANGED
|
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
|
|
|
24
24
|
**courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
25
25
|
**surfacesBySport** | **{ [key: string]: Array<SurfaceType>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
26
26
|
**indoorOutdoorBySport** | **{ [key: string]: Array<CourtEnvironment>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
27
|
+
**slotDurationsBySport** | **{ [key: string]: Array<number>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
27
28
|
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
28
29
|
**maxSlotsPerBooking** | **number** | | [optional] [default to undefined]
|
|
29
30
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
@@ -56,6 +57,7 @@ const instance: ClubResponse = {
|
|
|
56
57
|
courtsCountBySport,
|
|
57
58
|
surfacesBySport,
|
|
58
59
|
indoorOutdoorBySport,
|
|
60
|
+
slotDurationsBySport,
|
|
59
61
|
allowMultipleBookingsAtTheSameTime,
|
|
60
62
|
maxSlotsPerBooking,
|
|
61
63
|
cancellationLimitHours,
|
|
@@ -6,15 +6,14 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
|
-
**
|
|
10
|
-
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs initiaux | [optional] [default to undefined]
|
|
9
|
+
**playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll) | [optional] [default to undefined]
|
|
10
|
+
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs initiaux (incompatible avec playerShares) | [optional] [default to undefined]
|
|
11
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
12
12
|
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
13
13
|
**creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
|
|
14
14
|
**maxPlayers** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
|
|
15
15
|
**description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
|
|
16
16
|
**minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
|
|
17
|
-
**initialPlayerIds** | **Array<string>** | | [optional] [default to undefined]
|
|
18
17
|
|
|
19
18
|
## Example
|
|
20
19
|
|
|
@@ -23,7 +22,7 @@ import { CreateOpenBookingRequest } from '@tennac-booking/sdk';
|
|
|
23
22
|
|
|
24
23
|
const instance: CreateOpenBookingRequest = {
|
|
25
24
|
slotIds,
|
|
26
|
-
|
|
25
|
+
playerShares,
|
|
27
26
|
isCreatorPayingAll,
|
|
28
27
|
paymentMethod,
|
|
29
28
|
useDefaultPaymentMethod,
|
|
@@ -31,7 +30,6 @@ const instance: CreateOpenBookingRequest = {
|
|
|
31
30
|
maxPlayers,
|
|
32
31
|
description,
|
|
33
32
|
minLevel,
|
|
34
|
-
initialPlayerIds,
|
|
35
33
|
};
|
|
36
34
|
```
|
|
37
35
|
|