@tennac-booking/sdk 1.0.149 → 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/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.149
7
+ * The version of the OpenAPI document: 1.0.150
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -398,6 +398,35 @@ export const WeekdayKey = {
398
398
  */
399
399
  export const BookingsApiAxiosParamCreator = function (configuration) {
400
400
  return {
401
+ /**
402
+ * Créer une réservation en tant qu\'invité (guest)
403
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ createGuestBooking: (createGuestBookingRequest_1, ...args_1) => __awaiter(this, [createGuestBookingRequest_1, ...args_1], void 0, function* (createGuestBookingRequest, options = {}) {
408
+ // verify required parameter 'createGuestBookingRequest' is not null or undefined
409
+ assertParamExists('createGuestBooking', 'createGuestBookingRequest', createGuestBookingRequest);
410
+ const localVarPath = `/api/bookings/guest`;
411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
412
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
413
+ let baseOptions;
414
+ if (configuration) {
415
+ baseOptions = configuration.baseOptions;
416
+ }
417
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
418
+ const localVarHeaderParameter = {};
419
+ const localVarQueryParameter = {};
420
+ localVarHeaderParameter['Content-Type'] = 'application/json';
421
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
422
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
423
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
424
+ localVarRequestOptions.data = serializeDataIfNeeded(createGuestBookingRequest, localVarRequestOptions, configuration);
425
+ return {
426
+ url: toPathString(localVarUrlObj),
427
+ options: localVarRequestOptions,
428
+ };
429
+ }),
401
430
  /**
402
431
  * Estimer le prix pour rejoindre une réservation ouverte
403
432
  * @param {string} bookingId
@@ -496,6 +525,37 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
496
525
  options: localVarRequestOptions,
497
526
  };
498
527
  }),
528
+ /**
529
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
530
+ * @param {string} bookingId
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
535
+ // verify required parameter 'bookingId' is not null or undefined
536
+ assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId);
537
+ const localVarPath = `/api/bookings/{bookingId}/open/join-price`
538
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
540
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
541
+ let baseOptions;
542
+ if (configuration) {
543
+ baseOptions = configuration.baseOptions;
544
+ }
545
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
546
+ const localVarHeaderParameter = {};
547
+ const localVarQueryParameter = {};
548
+ // authentication bearerAuth required
549
+ // http bearer authentication required
550
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
551
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
552
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
553
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
554
+ return {
555
+ url: toPathString(localVarUrlObj),
556
+ options: localVarRequestOptions,
557
+ };
558
+ }),
499
559
  /**
500
560
  *
501
561
  * @param {string} [clubId]
@@ -671,6 +731,21 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
671
731
  export const BookingsApiFp = function (configuration) {
672
732
  const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
673
733
  return {
734
+ /**
735
+ * Créer une réservation en tant qu\'invité (guest)
736
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
737
+ * @param {*} [options] Override http request option.
738
+ * @throws {RequiredError}
739
+ */
740
+ createGuestBooking(createGuestBookingRequest, options) {
741
+ return __awaiter(this, void 0, void 0, function* () {
742
+ var _a, _b, _c;
743
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createGuestBooking(createGuestBookingRequest, options);
744
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
745
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.createGuestBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
746
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
747
+ });
748
+ },
674
749
  /**
675
750
  * Estimer le prix pour rejoindre une réservation ouverte
676
751
  * @param {string} bookingId
@@ -717,6 +792,21 @@ export const BookingsApiFp = function (configuration) {
717
792
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
718
793
  });
719
794
  },
795
+ /**
796
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
797
+ * @param {string} bookingId
798
+ * @param {*} [options] Override http request option.
799
+ * @throws {RequiredError}
800
+ */
801
+ getOpenBookingJoinPrice(bookingId, options) {
802
+ return __awaiter(this, void 0, void 0, function* () {
803
+ var _a, _b, _c;
804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
805
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
806
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
808
+ });
809
+ },
720
810
  /**
721
811
  *
722
812
  * @param {string} [clubId]
@@ -797,6 +887,15 @@ export const BookingsApiFp = function (configuration) {
797
887
  export const BookingsApiFactory = function (configuration, basePath, axios) {
798
888
  const localVarFp = BookingsApiFp(configuration);
799
889
  return {
890
+ /**
891
+ * Créer une réservation en tant qu\'invité (guest)
892
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ createGuestBooking(requestParameters, options) {
897
+ return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
898
+ },
800
899
  /**
801
900
  * Estimer le prix pour rejoindre une réservation ouverte
802
901
  * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -824,6 +923,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
824
923
  getBookingPrice(requestParameters, options) {
825
924
  return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
826
925
  },
926
+ /**
927
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
928
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ getOpenBookingJoinPrice(requestParameters, options) {
933
+ return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
934
+ },
827
935
  /**
828
936
  *
829
937
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -869,6 +977,16 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
869
977
  * @extends {BaseAPI}
870
978
  */
871
979
  export class BookingsApi extends BaseAPI {
980
+ /**
981
+ * Créer une réservation en tant qu\'invité (guest)
982
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
983
+ * @param {*} [options] Override http request option.
984
+ * @throws {RequiredError}
985
+ * @memberof BookingsApi
986
+ */
987
+ createGuestBooking(requestParameters, options) {
988
+ return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
989
+ }
872
990
  /**
873
991
  * Estimer le prix pour rejoindre une réservation ouverte
874
992
  * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -899,6 +1017,16 @@ export class BookingsApi extends BaseAPI {
899
1017
  getBookingPrice(requestParameters, options) {
900
1018
  return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
901
1019
  }
1020
+ /**
1021
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1022
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ * @memberof BookingsApi
1026
+ */
1027
+ getOpenBookingJoinPrice(requestParameters, options) {
1028
+ return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1029
+ }
902
1030
  /**
903
1031
  *
904
1032
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -8802,6 +8930,37 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8802
8930
  options: localVarRequestOptions,
8803
8931
  };
8804
8932
  }),
8933
+ /**
8934
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
8935
+ * @param {string} eventBookingId
8936
+ * @param {*} [options] Override http request option.
8937
+ * @throws {RequiredError}
8938
+ */
8939
+ getOpenEventBookingJoinPrice: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
8940
+ // verify required parameter 'eventBookingId' is not null or undefined
8941
+ assertParamExists('getOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
8942
+ const localVarPath = `/api/events/{eventBookingId}/open/join-price`
8943
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
8944
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8945
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8946
+ let baseOptions;
8947
+ if (configuration) {
8948
+ baseOptions = configuration.baseOptions;
8949
+ }
8950
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8951
+ const localVarHeaderParameter = {};
8952
+ const localVarQueryParameter = {};
8953
+ // authentication bearerAuth required
8954
+ // http bearer authentication required
8955
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8956
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8958
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8959
+ return {
8960
+ url: toPathString(localVarUrlObj),
8961
+ options: localVarRequestOptions,
8962
+ };
8963
+ }),
8805
8964
  /**
8806
8965
  *
8807
8966
  * @param {string} [clubId]
@@ -9081,6 +9240,21 @@ export const EventsApiFp = function (configuration) {
9081
9240
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9082
9241
  });
9083
9242
  },
9243
+ /**
9244
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9245
+ * @param {string} eventBookingId
9246
+ * @param {*} [options] Override http request option.
9247
+ * @throws {RequiredError}
9248
+ */
9249
+ getOpenEventBookingJoinPrice(eventBookingId, options) {
9250
+ return __awaiter(this, void 0, void 0, function* () {
9251
+ var _a, _b, _c;
9252
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookingJoinPrice(eventBookingId, options);
9253
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9254
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9256
+ });
9257
+ },
9084
9258
  /**
9085
9259
  *
9086
9260
  * @param {string} [clubId]
@@ -9222,6 +9396,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
9222
9396
  getEventById(requestParameters, options) {
9223
9397
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
9224
9398
  },
9399
+ /**
9400
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9401
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9402
+ * @param {*} [options] Override http request option.
9403
+ * @throws {RequiredError}
9404
+ */
9405
+ getOpenEventBookingJoinPrice(requestParameters, options) {
9406
+ return localVarFp.getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
9407
+ },
9225
9408
  /**
9226
9409
  *
9227
9410
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
@@ -9325,6 +9508,16 @@ export class EventsApi extends BaseAPI {
9325
9508
  getEventById(requestParameters, options) {
9326
9509
  return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
9327
9510
  }
9511
+ /**
9512
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9513
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
9514
+ * @param {*} [options] Override http request option.
9515
+ * @throws {RequiredError}
9516
+ * @memberof EventsApi
9517
+ */
9518
+ getOpenEventBookingJoinPrice(requestParameters, options) {
9519
+ return EventsApiFp(this.configuration).getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
9520
+ }
9328
9521
  /**
9329
9522
  *
9330
9523
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.149
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/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.149
7
+ * The version of the OpenAPI document: 1.0.150
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.149
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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.149
7
+ * The version of the OpenAPI document: 1.0.150
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.149
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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.149
7
+ * The version of the OpenAPI document: 1.0.150
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.149
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/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.149
7
+ * The version of the OpenAPI document: 1.0.150
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.149
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/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.149
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).
@@ -4,14 +4,68 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**createGuestBooking**](#createguestbooking) | **POST** /api/bookings/guest | |
7
8
  |[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
8
9
  |[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
9
10
  |[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
11
+ |[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
10
12
  |[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
11
13
  |[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
12
14
  |[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
13
15
  |[**leaveOpenBooking**](#leaveopenbooking) | **DELETE** /api/bookings/{bookingId}/open/leave | |
14
16
 
17
+ # **createGuestBooking**
18
+ > BookingResponse createGuestBooking(createGuestBookingRequest)
19
+
20
+ Créer une réservation en tant qu\'invité (guest)
21
+
22
+ ### Example
23
+
24
+ ```typescript
25
+ import {
26
+ BookingsApi,
27
+ Configuration,
28
+ CreateGuestBookingRequest
29
+ } from '@tennac-booking/sdk';
30
+
31
+ const configuration = new Configuration();
32
+ const apiInstance = new BookingsApi(configuration);
33
+
34
+ let createGuestBookingRequest: CreateGuestBookingRequest; //
35
+
36
+ const { status, data } = await apiInstance.createGuestBooking(
37
+ createGuestBookingRequest
38
+ );
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ |Name | Type | Description | Notes|
44
+ |------------- | ------------- | ------------- | -------------|
45
+ | **createGuestBookingRequest** | **CreateGuestBookingRequest**| | |
46
+
47
+
48
+ ### Return type
49
+
50
+ **BookingResponse**
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**201** | Réservation guest créée avec succès | - |
66
+
67
+ [[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)
68
+
15
69
  # **estimateOpenBookingJoinPrice**
16
70
  > EstimateOpenEventBookingJoinPrice200Response estimateOpenBookingJoinPrice()
17
71
 
@@ -168,6 +222,57 @@ const { status, data } = await apiInstance.getBookingPrice(
168
222
 
169
223
  [[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)
170
224
 
225
+ # **getOpenBookingJoinPrice**
226
+ > GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
227
+
228
+ Estimer simplement le prix à payer pour rejoindre une réservation ouverte
229
+
230
+ ### Example
231
+
232
+ ```typescript
233
+ import {
234
+ BookingsApi,
235
+ Configuration
236
+ } from '@tennac-booking/sdk';
237
+
238
+ const configuration = new Configuration();
239
+ const apiInstance = new BookingsApi(configuration);
240
+
241
+ let bookingId: string; // (default to undefined)
242
+
243
+ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
244
+ bookingId
245
+ );
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ |Name | Type | Description | Notes|
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **bookingId** | [**string**] | | defaults to undefined|
253
+
254
+
255
+ ### Return type
256
+
257
+ **GetOpenEventBookingJoinPrice200Response**
258
+
259
+ ### Authorization
260
+
261
+ [bearerAuth](../README.md#bearerAuth)
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: Not defined
266
+ - **Accept**: application/json
267
+
268
+
269
+ ### HTTP response details
270
+ | Status code | Description | Response headers |
271
+ |-------------|-------------|------------------|
272
+ |**200** | Prix à payer calculé | - |
273
+
274
+ [[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)
275
+
171
276
  # **getOpenBookings**
172
277
  > GetOpenBookings200Response getOpenBookings()
173
278
 
@@ -0,0 +1,32 @@
1
+ # CreateGuestBookingRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
9
+ **firstName** | **string** | Prénom de l\'invité | [default to undefined]
10
+ **lastName** | **string** | Nom de famille de l\'invité | [default to undefined]
11
+ **email** | **string** | Email de l\'invité | [default to undefined]
12
+ **phoneNumber** | **string** | Numéro de téléphone de l\'invité | [optional] [default to undefined]
13
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
14
+ **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { CreateGuestBookingRequest } from '@tennac-booking/sdk';
20
+
21
+ const instance: CreateGuestBookingRequest = {
22
+ slotIds,
23
+ firstName,
24
+ lastName,
25
+ email,
26
+ phoneNumber,
27
+ paymentMethod,
28
+ useDefaultPaymentMethod,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/EventsApi.md CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
9
9
  |[**estimateOpenEventBookingJoinPrice**](#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate | |
10
10
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
11
+ |[**getOpenEventBookingJoinPrice**](#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price | |
11
12
  |[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
12
13
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
13
14
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
@@ -240,6 +241,59 @@ No authorization required
240
241
 
241
242
  [[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)
242
243
 
244
+ # **getOpenEventBookingJoinPrice**
245
+ > GetOpenEventBookingJoinPrice200Response getOpenEventBookingJoinPrice()
246
+
247
+ Estimer simplement le prix à payer pour rejoindre un événement ouvert
248
+
249
+ ### Example
250
+
251
+ ```typescript
252
+ import {
253
+ EventsApi,
254
+ Configuration
255
+ } from '@tennac-booking/sdk';
256
+
257
+ const configuration = new Configuration();
258
+ const apiInstance = new EventsApi(configuration);
259
+
260
+ let eventBookingId: string; // (default to undefined)
261
+
262
+ const { status, data } = await apiInstance.getOpenEventBookingJoinPrice(
263
+ eventBookingId
264
+ );
265
+ ```
266
+
267
+ ### Parameters
268
+
269
+ |Name | Type | Description | Notes|
270
+ |------------- | ------------- | ------------- | -------------|
271
+ | **eventBookingId** | [**string**] | | defaults to undefined|
272
+
273
+
274
+ ### Return type
275
+
276
+ **GetOpenEventBookingJoinPrice200Response**
277
+
278
+ ### Authorization
279
+
280
+ [bearerAuth](../README.md#bearerAuth)
281
+
282
+ ### HTTP request headers
283
+
284
+ - **Content-Type**: Not defined
285
+ - **Accept**: application/json
286
+
287
+
288
+ ### HTTP response details
289
+ | Status code | Description | Response headers |
290
+ |-------------|-------------|------------------|
291
+ |**200** | Prix à payer calculé | - |
292
+ |**400** | Bad Request | - |
293
+ |**404** | Not Found | - |
294
+
295
+ [[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)
296
+
243
297
  # **getOpenEventBookings**
244
298
  > GetOpenEventBookings200Response getOpenEventBookings()
245
299
 
@@ -0,0 +1,22 @@
1
+ # GetOpenEventBookingJoinPrice200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **availableCreditsInCents** | **number** | | [default to undefined]
9
+ **priceToPayInCents** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GetOpenEventBookingJoinPrice200Response } from '@tennac-booking/sdk';
15
+
16
+ const instance: GetOpenEventBookingJoinPrice200Response = {
17
+ availableCreditsInCents,
18
+ priceToPayInCents,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
24
24
  **emailVerificationToken** | **string** | | [optional] [default to undefined]
25
25
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
26
26
  **organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
27
+ **isGuest** | **boolean** | | [optional] [default to undefined]
27
28
  **isAdmin** | **boolean** | | [default to undefined]
28
29
  **isClient** | **boolean** | | [optional] [default to undefined]
29
30
  **createdAt** | **string** | | [default to undefined]
@@ -61,6 +62,7 @@ const instance: IUserAttributes = {
61
62
  emailVerificationToken,
62
63
  emailVerificationExpires,
63
64
  organizations,
65
+ isGuest,
64
66
  isAdmin,
65
67
  isClient,
66
68
  createdAt,
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
24
24
  **emailVerificationToken** | **string** | | [optional] [default to undefined]
25
25
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
26
26
  **organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
27
+ **isGuest** | **boolean** | | [optional] [default to undefined]
27
28
  **isAdmin** | **boolean** | | [default to undefined]
28
29
  **isClient** | **boolean** | | [optional] [default to undefined]
29
30
  **createdAt** | **string** | | [default to undefined]
@@ -63,6 +64,7 @@ const instance: StaffUserProfileResponse = {
63
64
  emailVerificationToken,
64
65
  emailVerificationExpires,
65
66
  organizations,
67
+ isGuest,
66
68
  isAdmin,
67
69
  isClient,
68
70
  createdAt,