@tennac-booking/sdk 1.0.148 → 1.0.150

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/api.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.132
8
+ * The version of the OpenAPI document: 1.0.150
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -161,6 +161,8 @@ exports.EventResponseVisibilityTypeEnum = {
161
161
  exports.Gender = {
162
162
  Male: 'male',
163
163
  Female: 'female',
164
+ NonBinary: 'non_binary',
165
+ Transgender: 'transgender',
164
166
  Other: 'other'
165
167
  };
166
168
  exports.IUserLocationTypeEnum = {
@@ -402,6 +404,70 @@ exports.WeekdayKey = {
402
404
  */
403
405
  const BookingsApiAxiosParamCreator = function (configuration) {
404
406
  return {
407
+ /**
408
+ * Créer une réservation en tant qu\'invité (guest)
409
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ createGuestBooking: (createGuestBookingRequest_1, ...args_1) => __awaiter(this, [createGuestBookingRequest_1, ...args_1], void 0, function* (createGuestBookingRequest, options = {}) {
414
+ // verify required parameter 'createGuestBookingRequest' is not null or undefined
415
+ (0, common_1.assertParamExists)('createGuestBooking', 'createGuestBookingRequest', createGuestBookingRequest);
416
+ const localVarPath = `/api/bookings/guest`;
417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
418
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
419
+ let baseOptions;
420
+ if (configuration) {
421
+ baseOptions = configuration.baseOptions;
422
+ }
423
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
424
+ const localVarHeaderParameter = {};
425
+ const localVarQueryParameter = {};
426
+ localVarHeaderParameter['Content-Type'] = 'application/json';
427
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
428
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
429
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
430
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGuestBookingRequest, localVarRequestOptions, configuration);
431
+ return {
432
+ url: (0, common_1.toPathString)(localVarUrlObj),
433
+ options: localVarRequestOptions,
434
+ };
435
+ }),
436
+ /**
437
+ * Estimer le prix pour rejoindre une réservation ouverte
438
+ * @param {string} bookingId
439
+ * @param {number} [creditToUseInCents]
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
444
+ // verify required parameter 'bookingId' is not null or undefined
445
+ (0, common_1.assertParamExists)('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
446
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate`
447
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
449
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
450
+ let baseOptions;
451
+ if (configuration) {
452
+ baseOptions = configuration.baseOptions;
453
+ }
454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
455
+ const localVarHeaderParameter = {};
456
+ const localVarQueryParameter = {};
457
+ // authentication bearerAuth required
458
+ // http bearer authentication required
459
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
460
+ if (creditToUseInCents !== undefined) {
461
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
462
+ }
463
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
465
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
466
+ return {
467
+ url: (0, common_1.toPathString)(localVarUrlObj),
468
+ options: localVarRequestOptions,
469
+ };
470
+ }),
405
471
  /**
406
472
  * Obtenir l\'historique d\'une réservation par ID
407
473
  * @param {string} bookingId
@@ -465,6 +531,37 @@ const BookingsApiAxiosParamCreator = function (configuration) {
465
531
  options: localVarRequestOptions,
466
532
  };
467
533
  }),
534
+ /**
535
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
536
+ * @param {string} bookingId
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
541
+ // verify required parameter 'bookingId' is not null or undefined
542
+ (0, common_1.assertParamExists)('getOpenBookingJoinPrice', 'bookingId', bookingId);
543
+ const localVarPath = `/api/bookings/{bookingId}/open/join-price`
544
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
546
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
547
+ let baseOptions;
548
+ if (configuration) {
549
+ baseOptions = configuration.baseOptions;
550
+ }
551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
552
+ const localVarHeaderParameter = {};
553
+ const localVarQueryParameter = {};
554
+ // authentication bearerAuth required
555
+ // http bearer authentication required
556
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
557
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
559
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
560
+ return {
561
+ url: (0, common_1.toPathString)(localVarUrlObj),
562
+ options: localVarRequestOptions,
563
+ };
564
+ }),
468
565
  /**
469
566
  *
470
567
  * @param {string} [clubId]
@@ -641,6 +738,37 @@ exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
641
738
  const BookingsApiFp = function (configuration) {
642
739
  const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
643
740
  return {
741
+ /**
742
+ * Créer une réservation en tant qu\'invité (guest)
743
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ createGuestBooking(createGuestBookingRequest, options) {
748
+ return __awaiter(this, void 0, void 0, function* () {
749
+ var _a, _b, _c;
750
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createGuestBooking(createGuestBookingRequest, options);
751
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
752
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.createGuestBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
753
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
754
+ });
755
+ },
756
+ /**
757
+ * Estimer le prix pour rejoindre une réservation ouverte
758
+ * @param {string} bookingId
759
+ * @param {number} [creditToUseInCents]
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
764
+ return __awaiter(this, void 0, void 0, function* () {
765
+ var _a, _b, _c;
766
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
767
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
768
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
769
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
770
+ });
771
+ },
644
772
  /**
645
773
  * Obtenir l\'historique d\'une réservation par ID
646
774
  * @param {string} bookingId
@@ -671,6 +799,21 @@ const BookingsApiFp = function (configuration) {
671
799
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
672
800
  });
673
801
  },
802
+ /**
803
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
804
+ * @param {string} bookingId
805
+ * @param {*} [options] Override http request option.
806
+ * @throws {RequiredError}
807
+ */
808
+ getOpenBookingJoinPrice(bookingId, options) {
809
+ return __awaiter(this, void 0, void 0, function* () {
810
+ var _a, _b, _c;
811
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
812
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
813
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
814
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
815
+ });
816
+ },
674
817
  /**
675
818
  *
676
819
  * @param {string} [clubId]
@@ -752,6 +895,24 @@ exports.BookingsApiFp = BookingsApiFp;
752
895
  const BookingsApiFactory = function (configuration, basePath, axios) {
753
896
  const localVarFp = (0, exports.BookingsApiFp)(configuration);
754
897
  return {
898
+ /**
899
+ * Créer une réservation en tant qu\'invité (guest)
900
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ createGuestBooking(requestParameters, options) {
905
+ return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
906
+ },
907
+ /**
908
+ * Estimer le prix pour rejoindre une réservation ouverte
909
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ estimateOpenBookingJoinPrice(requestParameters, options) {
914
+ return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
915
+ },
755
916
  /**
756
917
  * Obtenir l\'historique d\'une réservation par ID
757
918
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -770,6 +931,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
770
931
  getBookingPrice(requestParameters, options) {
771
932
  return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
772
933
  },
934
+ /**
935
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
936
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ getOpenBookingJoinPrice(requestParameters, options) {
941
+ return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
942
+ },
773
943
  /**
774
944
  *
775
945
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -816,6 +986,26 @@ exports.BookingsApiFactory = BookingsApiFactory;
816
986
  * @extends {BaseAPI}
817
987
  */
818
988
  class BookingsApi extends base_1.BaseAPI {
989
+ /**
990
+ * Créer une réservation en tant qu\'invité (guest)
991
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
992
+ * @param {*} [options] Override http request option.
993
+ * @throws {RequiredError}
994
+ * @memberof BookingsApi
995
+ */
996
+ createGuestBooking(requestParameters, options) {
997
+ return (0, exports.BookingsApiFp)(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
998
+ }
999
+ /**
1000
+ * Estimer le prix pour rejoindre une réservation ouverte
1001
+ * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ * @memberof BookingsApi
1005
+ */
1006
+ estimateOpenBookingJoinPrice(requestParameters, options) {
1007
+ return (0, exports.BookingsApiFp)(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1008
+ }
819
1009
  /**
820
1010
  * Obtenir l\'historique d\'une réservation par ID
821
1011
  * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
@@ -836,6 +1026,16 @@ class BookingsApi extends base_1.BaseAPI {
836
1026
  getBookingPrice(requestParameters, options) {
837
1027
  return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
838
1028
  }
1029
+ /**
1030
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1031
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ * @memberof BookingsApi
1035
+ */
1036
+ getOpenBookingJoinPrice(requestParameters, options) {
1037
+ return (0, exports.BookingsApiFp)(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1038
+ }
839
1039
  /**
840
1040
  *
841
1041
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -8737,6 +8937,41 @@ const EventsApiAxiosParamCreator = function (configuration) {
8737
8937
  options: localVarRequestOptions,
8738
8938
  };
8739
8939
  }),
8940
+ /**
8941
+ * Estimer le prix pour rejoindre un événement ouvert
8942
+ * @param {string} eventBookingId
8943
+ * @param {number} [creditToUseInCents]
8944
+ * @param {*} [options] Override http request option.
8945
+ * @throws {RequiredError}
8946
+ */
8947
+ estimateOpenEventBookingJoinPrice: (eventBookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [eventBookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (eventBookingId, creditToUseInCents, options = {}) {
8948
+ // verify required parameter 'eventBookingId' is not null or undefined
8949
+ (0, common_1.assertParamExists)('estimateOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
8950
+ const localVarPath = `/api/events/{eventBookingId}/open/estimate`
8951
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
8952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8953
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8954
+ let baseOptions;
8955
+ if (configuration) {
8956
+ baseOptions = configuration.baseOptions;
8957
+ }
8958
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8959
+ const localVarHeaderParameter = {};
8960
+ const localVarQueryParameter = {};
8961
+ // authentication bearerAuth required
8962
+ // http bearer authentication required
8963
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8964
+ if (creditToUseInCents !== undefined) {
8965
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
8966
+ }
8967
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8968
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8969
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8970
+ return {
8971
+ url: (0, common_1.toPathString)(localVarUrlObj),
8972
+ options: localVarRequestOptions,
8973
+ };
8974
+ }),
8740
8975
  /**
8741
8976
  * Get a specific event by ID
8742
8977
  * @param {string} eventId
@@ -8769,6 +9004,37 @@ const EventsApiAxiosParamCreator = function (configuration) {
8769
9004
  options: localVarRequestOptions,
8770
9005
  };
8771
9006
  }),
9007
+ /**
9008
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9009
+ * @param {string} eventBookingId
9010
+ * @param {*} [options] Override http request option.
9011
+ * @throws {RequiredError}
9012
+ */
9013
+ getOpenEventBookingJoinPrice: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
9014
+ // verify required parameter 'eventBookingId' is not null or undefined
9015
+ (0, common_1.assertParamExists)('getOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
9016
+ const localVarPath = `/api/events/{eventBookingId}/open/join-price`
9017
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
9018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9019
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9020
+ let baseOptions;
9021
+ if (configuration) {
9022
+ baseOptions = configuration.baseOptions;
9023
+ }
9024
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9025
+ const localVarHeaderParameter = {};
9026
+ const localVarQueryParameter = {};
9027
+ // authentication bearerAuth required
9028
+ // http bearer authentication required
9029
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9030
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9032
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9033
+ return {
9034
+ url: (0, common_1.toPathString)(localVarUrlObj),
9035
+ options: localVarRequestOptions,
9036
+ };
9037
+ }),
8772
9038
  /**
8773
9039
  *
8774
9040
  * @param {string} [clubId]
@@ -9017,6 +9283,22 @@ const EventsApiFp = function (configuration) {
9017
9283
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9018
9284
  });
9019
9285
  },
9286
+ /**
9287
+ * Estimer le prix pour rejoindre un événement ouvert
9288
+ * @param {string} eventBookingId
9289
+ * @param {number} [creditToUseInCents]
9290
+ * @param {*} [options] Override http request option.
9291
+ * @throws {RequiredError}
9292
+ */
9293
+ estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options) {
9294
+ return __awaiter(this, void 0, void 0, function* () {
9295
+ var _a, _b, _c;
9296
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options);
9297
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9298
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9299
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9300
+ });
9301
+ },
9020
9302
  /**
9021
9303
  * Get a specific event by ID
9022
9304
  * @param {string} eventId
@@ -9033,6 +9315,21 @@ const EventsApiFp = function (configuration) {
9033
9315
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9034
9316
  });
9035
9317
  },
9318
+ /**
9319
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9320
+ * @param {string} eventBookingId
9321
+ * @param {*} [options] Override http request option.
9322
+ * @throws {RequiredError}
9323
+ */
9324
+ getOpenEventBookingJoinPrice(eventBookingId, options) {
9325
+ return __awaiter(this, void 0, void 0, function* () {
9326
+ var _a, _b, _c;
9327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookingJoinPrice(eventBookingId, options);
9328
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9329
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9330
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9331
+ });
9332
+ },
9036
9333
  /**
9037
9334
  *
9038
9335
  * @param {string} [clubId]
@@ -9157,6 +9454,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
9157
9454
  estimateEventPrice(requestParameters, options) {
9158
9455
  return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
9159
9456
  },
9457
+ /**
9458
+ * Estimer le prix pour rejoindre un événement ouvert
9459
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9460
+ * @param {*} [options] Override http request option.
9461
+ * @throws {RequiredError}
9462
+ */
9463
+ estimateOpenEventBookingJoinPrice(requestParameters, options) {
9464
+ return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
9465
+ },
9160
9466
  /**
9161
9467
  * Get a specific event by ID
9162
9468
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -9166,6 +9472,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
9166
9472
  getEventById(requestParameters, options) {
9167
9473
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
9168
9474
  },
9475
+ /**
9476
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9477
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9478
+ * @param {*} [options] Override http request option.
9479
+ * @throws {RequiredError}
9480
+ */
9481
+ getOpenEventBookingJoinPrice(requestParameters, options) {
9482
+ return localVarFp.getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
9483
+ },
9169
9484
  /**
9170
9485
  *
9171
9486
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
@@ -9250,6 +9565,16 @@ class EventsApi extends base_1.BaseAPI {
9250
9565
  estimateEventPrice(requestParameters, options) {
9251
9566
  return (0, exports.EventsApiFp)(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
9252
9567
  }
9568
+ /**
9569
+ * Estimer le prix pour rejoindre un événement ouvert
9570
+ * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9571
+ * @param {*} [options] Override http request option.
9572
+ * @throws {RequiredError}
9573
+ * @memberof EventsApi
9574
+ */
9575
+ estimateOpenEventBookingJoinPrice(requestParameters, options) {
9576
+ return (0, exports.EventsApiFp)(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
9577
+ }
9253
9578
  /**
9254
9579
  * Get a specific event by ID
9255
9580
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -9260,6 +9585,16 @@ class EventsApi extends base_1.BaseAPI {
9260
9585
  getEventById(requestParameters, options) {
9261
9586
  return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
9262
9587
  }
9588
+ /**
9589
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9590
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9591
+ * @param {*} [options] Override http request option.
9592
+ * @throws {RequiredError}
9593
+ * @memberof EventsApi
9594
+ */
9595
+ getOpenEventBookingJoinPrice(requestParameters, options) {
9596
+ return (0, exports.EventsApiFp)(this.configuration).getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
9597
+ }
9263
9598
  /**
9264
9599
  *
9265
9600
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
package/dist/base.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.132
5
+ * The version of the OpenAPI document: 1.0.150
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.132
8
+ * The version of the OpenAPI document: 1.0.150
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.132
5
+ * The version of the OpenAPI document: 1.0.150
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.132
8
+ * The version of the OpenAPI document: 1.0.150
9
9
  *
10
10
  *
11
11
  * 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.132
5
+ * The version of the OpenAPI document: 1.0.150
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.132
8
+ * The version of the OpenAPI document: 1.0.150
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).