@tennac-booking/sdk 1.0.207 → 1.0.210

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/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.201
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
- * Estimer le prix pour rejoindre une réservation ouverte
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 {number} [creditToUseInCents]
667
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
668
668
  * @param {*} [options] Override http request option.
669
669
  * @throws {RequiredError}
670
670
  */
671
- estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
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('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
674
- const localVarPath = `/api/bookings/{bookingId}/open/estimate`
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: 'GET' }, baseOptions), options);
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
- if (creditToUseInCents !== undefined) {
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
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
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
- getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
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('getOpenBookingJoinPrice', 'bookingId', bookingId);
835
- const localVarPath = `/api/bookings/{bookingId}/open/join-price`
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
- * Estimer le prix pour rejoindre une réservation ouverte
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 {number} [creditToUseInCents]
1016
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
1051
1017
  * @param {*} [options] Override http request option.
1052
1018
  * @throws {RequiredError}
1053
1019
  */
1054
- estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
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.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
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.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
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
- getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
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.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
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.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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
- * Estimer le prix pour rejoindre une réservation ouverte
1230
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
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
- estimateOpenBookingJoinPrice(requestParameters, options) {
1235
- return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
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
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
1266
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
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
- getJoinPriceEstimate(requestParameters, options) {
1271
- return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
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
- * Estimer le prix pour rejoindre une réservation ouverte
1339
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
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
- estimateOpenBookingJoinPrice(requestParameters, options) {
1345
- return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
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
- * Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
1379
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
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
- getOpenBookingJoinPrice(requestParameters, options) {
1395
- return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
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
  *
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.201
5
+ * The version of the OpenAPI document: 1.0.210
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.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.201
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.201
5
+ * The version of the OpenAPI document: 1.0.210
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.201
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.201
5
+ * The version of the OpenAPI document: 1.0.210
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.201
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.201
5
+ * The version of the OpenAPI document: 1.0.210
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.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.201
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).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.201
5
+ * The version of the OpenAPI document: 1.0.210
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.201
8
+ * The version of the OpenAPI document: 1.0.210
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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
- |[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
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
- |[**getJoinPriceEstimate**](#getjoinpriceestimate) | **GET** /api/bookings/{bookingId}/join-price-estimate | |
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
- # **estimateOpenBookingJoinPrice**
72
- > EstimateOpenEventBookingJoinPrice200Response estimateOpenBookingJoinPrice()
70
+ # **estimateOpenBookingJoin**
71
+ > OpenBookingJoinEstimateResponse estimateOpenBookingJoin(estimateOpenBookingJoinRequest)
73
72
 
74
- Estimer le prix pour rejoindre une réservation ouverte
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 creditToUseInCents: number; // (optional) (default to undefined)
88
+ let estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest; //
89
89
 
90
- const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
90
+ const { status, data } = await apiInstance.estimateOpenBookingJoin(
91
91
  bookingId,
92
- creditToUseInCents
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
- **EstimateOpenEventBookingJoinPrice200Response**
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**: Not defined
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** | Estimation du prix calculée | - |
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
- # **getJoinPriceEstimate**
280
- > JoinPriceEstimateResponse getJoinPriceEstimate()
279
+ # **getOpenBookingBasePrice**
280
+ > OpenBookingBasePriceResponse getOpenBookingBasePrice()
281
281
 
282
- Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
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
- **GetOpenEventBookingJoinPrice200Response**
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 à payer calculé | - |
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
 
@@ -17,6 +17,10 @@ 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]
20
24
  **clubPresentation** | [**ClubPresentation**](ClubPresentation.md) | | [default to undefined]
21
25
  **comingEvents** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
22
26
  **comingClosures** | [**Array<ClubEvent>**](ClubEvent.md) | | [default to undefined]
@@ -43,6 +47,10 @@ const instance: ClubPageResponse = {
43
47
  paymentFeature,
44
48
  isNoShowEnabled,
45
49
  sports,
50
+ courtsCount,
51
+ courtsCountBySport,
52
+ surfacesBySport,
53
+ indoorOutdoorBySport,
46
54
  clubPresentation,
47
55
  comingEvents,
48
56
  comingClosures,
@@ -6,13 +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
+ **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]
9
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
10
12
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
11
13
  **creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
12
14
  **maxPlayers** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
13
15
  **description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
14
16
  **minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
15
- **initialPlayerIds** | **Array<string>** | IDs des joueurs inclus de base dans la réservation (en plus du créateur) | [optional] [default to undefined]
16
17
 
17
18
  ## Example
18
19
 
@@ -21,13 +22,14 @@ import { CreateOpenBookingRequest } from '@tennac-booking/sdk';
21
22
 
22
23
  const instance: CreateOpenBookingRequest = {
23
24
  slotIds,
25
+ playerShares,
26
+ isCreatorPayingAll,
24
27
  paymentMethod,
25
28
  useDefaultPaymentMethod,
26
29
  creditToUseInCents,
27
30
  maxPlayers,
28
31
  description,
29
32
  minLevel,
30
- initialPlayerIds,
31
33
  };
32
34
  ```
33
35
 
@@ -0,0 +1,24 @@
1
+ # EstimateOpenBookingJoinRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
9
+ **isCreatorPayingAll** | **boolean** | | [optional] [default to undefined]
10
+ **playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EstimateOpenBookingJoinRequest } from '@tennac-booking/sdk';
16
+
17
+ const instance: EstimateOpenBookingJoinRequest = {
18
+ creditToUseInCents,
19
+ isCreatorPayingAll,
20
+ playerShares,
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)