@tennac-booking/sdk 1.0.176 → 1.0.177

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.
@@ -23,6 +23,7 @@ docs/BookingPaymentStatus.md
23
23
  docs/BookingPaymentStatusResponse.md
24
24
  docs/BookingPaymentStatusResponseBooking.md
25
25
  docs/BookingPaymentStatusResponseSummary.md
26
+ docs/BookingPlayerInfo.md
26
27
  docs/BookingPlayerPaymentSummary.md
27
28
  docs/BookingPopulated.md
28
29
  docs/BookingPriceBody.md
@@ -196,6 +197,8 @@ docs/GetCourtsByClubAndSportById200ResponseCourtsInner.md
196
197
  docs/GetGuestBookingPrice200Response.md
197
198
  docs/GetGuestBookingPriceRequest.md
198
199
  docs/GetInfillPercentagePerPeriod200Response.md
200
+ docs/GetOpenBookingPrice200Response.md
201
+ docs/GetOpenBookingPriceRequest.md
199
202
  docs/GetOpenEventBookingJoinPrice200Response.md
200
203
  docs/GetOpenEventBookings200Response.md
201
204
  docs/GetPublishedActualities200Response.md
@@ -229,6 +232,8 @@ docs/JoinEventWaitList200Response.md
229
232
  docs/JoinOpenBookingResponse.md
230
233
  docs/JoinOpenEventBookingRequest.md
231
234
  docs/JoinOpenEventResponse.md
235
+ docs/JoinPriceEstimateResponse.md
236
+ docs/JoinPriceEstimateResponseSubscriptionInfo.md
232
237
  docs/LastSixMonthsTurnoverItem.md
233
238
  docs/LeastBookedTimeSlotItem.md
234
239
  docs/LeastBookedTimeSlotsResponse.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tennac-booking/sdk@1.0.176
1
+ ## @tennac-booking/sdk@1.0.177
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @tennac-booking/sdk@1.0.176 --save
39
+ npm install @tennac-booking/sdk@1.0.177 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
56
56
  *BookingsApi* | [**getBookingHistory**](docs/BookingsApi.md#getbookinghistory) | **GET** /api/bookings/history/{bookingId} |
57
57
  *BookingsApi* | [**getBookingPrice**](docs/BookingsApi.md#getbookingprice) | **POST** /api/bookings/booking-price |
58
58
  *BookingsApi* | [**getGuestBookingPrice**](docs/BookingsApi.md#getguestbookingprice) | **POST** /api/bookings/guest/booking-price |
59
+ *BookingsApi* | [**getJoinPriceEstimate**](docs/BookingsApi.md#getjoinpriceestimate) | **GET** /api/bookings/{bookingId}/join-price-estimate |
59
60
  *BookingsApi* | [**getOpenBookingJoinPrice**](docs/BookingsApi.md#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price |
60
61
  *BookingsApi* | [**getOpenBookings**](docs/BookingsApi.md#getopenbookings) | **GET** /api/bookings/open |
61
62
  *BookingsApi* | [**getQuickReservationSlots**](docs/BookingsApi.md#getquickreservationslots) | **GET** /api/bookings/quick-reservations |
@@ -74,6 +75,7 @@ Class | Method | HTTP request | Description
74
75
  *BookingsUserApi* | [**cancelBooking**](docs/BookingsUserApi.md#cancelbooking) | **DELETE** /api/bookings/{bookingId} |
75
76
  *BookingsUserApi* | [**createBooking**](docs/BookingsUserApi.md#createbooking) | **POST** /api/bookings |
76
77
  *BookingsUserApi* | [**createOpenBooking**](docs/BookingsUserApi.md#createopenbooking) | **POST** /api/bookings/open |
78
+ *BookingsUserApi* | [**getOpenBookingPrice**](docs/BookingsUserApi.md#getopenbookingprice) | **POST** /api/bookings/open/booking-price |
77
79
  *BookingsUserApi* | [**updateOpenBooking**](docs/BookingsUserApi.md#updateopenbooking) | **PATCH** /api/bookings/{bookingId}/open |
78
80
  *ClientApi* | [**clientRegister**](docs/ClientApi.md#clientregister) | **POST** /clients/register |
79
81
  *ClientApi* | [**getClientSubscriptions**](docs/ClientApi.md#getclientsubscriptions) | **GET** /clients/subscriptions |
@@ -298,6 +300,7 @@ Class | Method | HTTP request | Description
298
300
  - [BookingPaymentStatusResponse](docs/BookingPaymentStatusResponse.md)
299
301
  - [BookingPaymentStatusResponseBooking](docs/BookingPaymentStatusResponseBooking.md)
300
302
  - [BookingPaymentStatusResponseSummary](docs/BookingPaymentStatusResponseSummary.md)
303
+ - [BookingPlayerInfo](docs/BookingPlayerInfo.md)
301
304
  - [BookingPlayerPaymentSummary](docs/BookingPlayerPaymentSummary.md)
302
305
  - [BookingPopulated](docs/BookingPopulated.md)
303
306
  - [BookingPriceBody](docs/BookingPriceBody.md)
@@ -450,6 +453,8 @@ Class | Method | HTTP request | Description
450
453
  - [GetGuestBookingPrice200Response](docs/GetGuestBookingPrice200Response.md)
451
454
  - [GetGuestBookingPriceRequest](docs/GetGuestBookingPriceRequest.md)
452
455
  - [GetInfillPercentagePerPeriod200Response](docs/GetInfillPercentagePerPeriod200Response.md)
456
+ - [GetOpenBookingPrice200Response](docs/GetOpenBookingPrice200Response.md)
457
+ - [GetOpenBookingPriceRequest](docs/GetOpenBookingPriceRequest.md)
453
458
  - [GetOpenEventBookingJoinPrice200Response](docs/GetOpenEventBookingJoinPrice200Response.md)
454
459
  - [GetOpenEventBookings200Response](docs/GetOpenEventBookings200Response.md)
455
460
  - [GetPublishedActualities200Response](docs/GetPublishedActualities200Response.md)
@@ -482,6 +487,8 @@ Class | Method | HTTP request | Description
482
487
  - [JoinOpenBookingResponse](docs/JoinOpenBookingResponse.md)
483
488
  - [JoinOpenEventBookingRequest](docs/JoinOpenEventBookingRequest.md)
484
489
  - [JoinOpenEventResponse](docs/JoinOpenEventResponse.md)
490
+ - [JoinPriceEstimateResponse](docs/JoinPriceEstimateResponse.md)
491
+ - [JoinPriceEstimateResponseSubscriptionInfo](docs/JoinPriceEstimateResponseSubscriptionInfo.md)
485
492
  - [LastSixMonthsTurnoverItem](docs/LastSixMonthsTurnoverItem.md)
486
493
  - [LeastBookedTimeSlotItem](docs/LeastBookedTimeSlotItem.md)
487
494
  - [LeastBookedTimeSlotsResponse](docs/LeastBookedTimeSlotsResponse.md)
package/api.ts 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.176
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -671,6 +671,37 @@ export interface BookingPaymentStatusResponseSummary {
671
671
  */
672
672
  'totalPlayers': number;
673
673
  }
674
+ /**
675
+ *
676
+ * @export
677
+ * @interface BookingPlayerInfo
678
+ */
679
+ export interface BookingPlayerInfo {
680
+ /**
681
+ *
682
+ * @type {string}
683
+ * @memberof BookingPlayerInfo
684
+ */
685
+ 'id': string;
686
+ /**
687
+ *
688
+ * @type {string}
689
+ * @memberof BookingPlayerInfo
690
+ */
691
+ 'firstName'?: string | null;
692
+ /**
693
+ *
694
+ * @type {string}
695
+ * @memberof BookingPlayerInfo
696
+ */
697
+ 'lastName'?: string | null;
698
+ /**
699
+ *
700
+ * @type {string}
701
+ * @memberof BookingPlayerInfo
702
+ */
703
+ 'profilePicture'?: string | null;
704
+ }
674
705
  /**
675
706
  *
676
707
  * @export
@@ -764,6 +795,12 @@ export interface BookingPopulated {
764
795
  * @memberof BookingPopulated
765
796
  */
766
797
  'players': Array<UserInfo>;
798
+ /**
799
+ * Joueurs inclus à la création de la réservation (pour les créneaux ouverts)
800
+ * @type {Array<UserInfo>}
801
+ * @memberof BookingPopulated
802
+ */
803
+ 'initialPlayers'?: Array<UserInfo>;
767
804
  /**
768
805
  * Statut des paiements par joueur
769
806
  * @type {Array<PaymentByPlayerInfo>}
@@ -1086,6 +1123,42 @@ export interface BookingSummary {
1086
1123
  * @memberof BookingSummary
1087
1124
  */
1088
1125
  'isPublic': boolean;
1126
+ /**
1127
+ *
1128
+ * @type {boolean}
1129
+ * @memberof BookingSummary
1130
+ */
1131
+ 'isOpen': boolean;
1132
+ /**
1133
+ *
1134
+ * @type {number}
1135
+ * @memberof BookingSummary
1136
+ */
1137
+ 'maxPlayers'?: number | null;
1138
+ /**
1139
+ *
1140
+ * @type {number}
1141
+ * @memberof BookingSummary
1142
+ */
1143
+ 'maxPlayersDesired'?: number | null;
1144
+ /**
1145
+ *
1146
+ * @type {string}
1147
+ * @memberof BookingSummary
1148
+ */
1149
+ 'description'?: string | null;
1150
+ /**
1151
+ *
1152
+ * @type {string}
1153
+ * @memberof BookingSummary
1154
+ */
1155
+ 'minLevel'?: string | null;
1156
+ /**
1157
+ *
1158
+ * @type {Array<BookingPlayerInfo>}
1159
+ * @memberof BookingSummary
1160
+ */
1161
+ 'initialPlayers'?: Array<BookingPlayerInfo>;
1089
1162
  /**
1090
1163
  *
1091
1164
  * @type {string}
@@ -4601,6 +4674,12 @@ export interface CreateOpenBookingRequest {
4601
4674
  * @memberof CreateOpenBookingRequest
4602
4675
  */
4603
4676
  'minLevel'?: string;
4677
+ /**
4678
+ * IDs des joueurs inclus de base dans la réservation (en plus du créateur)
4679
+ * @type {Array<string>}
4680
+ * @memberof CreateOpenBookingRequest
4681
+ */
4682
+ 'initialPlayerIds'?: Array<string>;
4604
4683
  }
4605
4684
 
4606
4685
 
@@ -6281,6 +6360,62 @@ export interface GetInfillPercentagePerPeriod200Response {
6281
6360
  */
6282
6361
  'infillPercentage': number;
6283
6362
  }
6363
+ /**
6364
+ *
6365
+ * @export
6366
+ * @interface GetOpenBookingPrice200Response
6367
+ */
6368
+ export interface GetOpenBookingPrice200Response {
6369
+ /**
6370
+ *
6371
+ * @type {number}
6372
+ * @memberof GetOpenBookingPrice200Response
6373
+ */
6374
+ 'totalBasePrice': number;
6375
+ /**
6376
+ *
6377
+ * @type {Array<PlayerPrice>}
6378
+ * @memberof GetOpenBookingPrice200Response
6379
+ */
6380
+ 'playersPrices': Array<PlayerPrice>;
6381
+ /**
6382
+ *
6383
+ * @type {number}
6384
+ * @memberof GetOpenBookingPrice200Response
6385
+ */
6386
+ 'basePricePerPlayer': number;
6387
+ }
6388
+ /**
6389
+ *
6390
+ * @export
6391
+ * @interface GetOpenBookingPriceRequest
6392
+ */
6393
+ export interface GetOpenBookingPriceRequest {
6394
+ /**
6395
+ * Construct a type with a set of properties K of type T
6396
+ * @type {{ [key: string]: number; }}
6397
+ * @memberof GetOpenBookingPriceRequest
6398
+ */
6399
+ 'creditsByPlayer'?: { [key: string]: number; };
6400
+ /**
6401
+ *
6402
+ * @type {Array<string>}
6403
+ * @memberof GetOpenBookingPriceRequest
6404
+ */
6405
+ 'initialPlayerIds'?: Array<string>;
6406
+ /**
6407
+ *
6408
+ * @type {number}
6409
+ * @memberof GetOpenBookingPriceRequest
6410
+ */
6411
+ 'maxPlayers': number;
6412
+ /**
6413
+ *
6414
+ * @type {Array<string>}
6415
+ * @memberof GetOpenBookingPriceRequest
6416
+ */
6417
+ 'slotIds': Array<string>;
6418
+ }
6284
6419
  /**
6285
6420
  *
6286
6421
  * @export
@@ -7445,6 +7580,98 @@ export interface JoinOpenEventResponse {
7445
7580
  */
7446
7581
  'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
7447
7582
  }
7583
+ /**
7584
+ *
7585
+ * @export
7586
+ * @interface JoinPriceEstimateResponse
7587
+ */
7588
+ export interface JoinPriceEstimateResponse {
7589
+ /**
7590
+ * ID de la réservation
7591
+ * @type {string}
7592
+ * @memberof JoinPriceEstimateResponse
7593
+ */
7594
+ 'bookingId': string;
7595
+ /**
7596
+ * Prix de base sans réductions (en centimes)
7597
+ * @type {number}
7598
+ * @memberof JoinPriceEstimateResponse
7599
+ */
7600
+ 'basePrice': number;
7601
+ /**
7602
+ * Prix après application de l\'abonnement (en centimes)
7603
+ * @type {number}
7604
+ * @memberof JoinPriceEstimateResponse
7605
+ */
7606
+ 'priceAfterSubscription': number;
7607
+ /**
7608
+ * Montant de la réduction d\'abonnement (en centimes)
7609
+ * @type {number}
7610
+ * @memberof JoinPriceEstimateResponse
7611
+ */
7612
+ 'subscriptionDiscount': number;
7613
+ /**
7614
+ *
7615
+ * @type {JoinPriceEstimateResponseSubscriptionInfo}
7616
+ * @memberof JoinPriceEstimateResponse
7617
+ */
7618
+ 'subscriptionInfo'?: JoinPriceEstimateResponseSubscriptionInfo;
7619
+ /**
7620
+ * Crédits disponibles pour le joueur dans ce club (en centimes)
7621
+ * @type {number}
7622
+ * @memberof JoinPriceEstimateResponse
7623
+ */
7624
+ 'availableCreditsInCents': number;
7625
+ /**
7626
+ * Crédits qui seront utilisés (en centimes)
7627
+ * @type {number}
7628
+ * @memberof JoinPriceEstimateResponse
7629
+ */
7630
+ 'creditToUseInCents': number;
7631
+ /**
7632
+ * Prix final après toutes les réductions et crédits (en centimes)
7633
+ * @type {number}
7634
+ * @memberof JoinPriceEstimateResponse
7635
+ */
7636
+ 'finalPriceInCents': number;
7637
+ /**
7638
+ * Indique si le joueur peut rejoindre la réservation
7639
+ * @type {boolean}
7640
+ * @memberof JoinPriceEstimateResponse
7641
+ */
7642
+ 'canJoin': boolean;
7643
+ /**
7644
+ * Raison si le joueur ne peut pas rejoindre
7645
+ * @type {string}
7646
+ * @memberof JoinPriceEstimateResponse
7647
+ */
7648
+ 'reason'?: string;
7649
+ }
7650
+ /**
7651
+ * Informations sur l\'abonnement du joueur
7652
+ * @export
7653
+ * @interface JoinPriceEstimateResponseSubscriptionInfo
7654
+ */
7655
+ export interface JoinPriceEstimateResponseSubscriptionInfo {
7656
+ /**
7657
+ *
7658
+ * @type {string}
7659
+ * @memberof JoinPriceEstimateResponseSubscriptionInfo
7660
+ */
7661
+ 'subscriptionName'?: string;
7662
+ /**
7663
+ *
7664
+ * @type {number}
7665
+ * @memberof JoinPriceEstimateResponseSubscriptionInfo
7666
+ */
7667
+ 'discountPercentage'?: number;
7668
+ /**
7669
+ *
7670
+ * @type {boolean}
7671
+ * @memberof JoinPriceEstimateResponseSubscriptionInfo
7672
+ */
7673
+ 'hasSubscription': boolean;
7674
+ }
7448
7675
  /**
7449
7676
  *
7450
7677
  * @export
@@ -8028,6 +8255,12 @@ export interface OpenBookingInfo {
8028
8255
  * @memberof OpenBookingInfo
8029
8256
  */
8030
8257
  'currentPlayersCount': number;
8258
+ /**
8259
+ * Prix de base pour rejoindre la réservation (en centimes)
8260
+ * @type {number}
8261
+ * @memberof OpenBookingInfo
8262
+ */
8263
+ 'basePriceToJoin'?: number;
8031
8264
  }
8032
8265
 
8033
8266
 
@@ -13775,6 +14008,48 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
13775
14008
  options: localVarRequestOptions,
13776
14009
  };
13777
14010
  },
14011
+ /**
14012
+ * 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
14013
+ * @param {string} bookingId
14014
+ * @param {number} [creditToUseInCents]
14015
+ * @param {*} [options] Override http request option.
14016
+ * @throws {RequiredError}
14017
+ */
14018
+ getJoinPriceEstimate: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14019
+ // verify required parameter 'bookingId' is not null or undefined
14020
+ assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId)
14021
+ const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
14022
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
14023
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14024
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14025
+ let baseOptions;
14026
+ if (configuration) {
14027
+ baseOptions = configuration.baseOptions;
14028
+ }
14029
+
14030
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14031
+ const localVarHeaderParameter = {} as any;
14032
+ const localVarQueryParameter = {} as any;
14033
+
14034
+ // authentication bearerAuth required
14035
+ // http bearer authentication required
14036
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14037
+
14038
+ if (creditToUseInCents !== undefined) {
14039
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
14040
+ }
14041
+
14042
+
14043
+
14044
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14045
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14046
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14047
+
14048
+ return {
14049
+ url: toPathString(localVarUrlObj),
14050
+ options: localVarRequestOptions,
14051
+ };
14052
+ },
13778
14053
  /**
13779
14054
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
13780
14055
  * @param {string} bookingId
@@ -14085,6 +14360,19 @@ export const BookingsApiFp = function(configuration?: Configuration) {
14085
14360
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getGuestBookingPrice']?.[localVarOperationServerIndex]?.url;
14086
14361
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14087
14362
  },
14363
+ /**
14364
+ * 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
14365
+ * @param {string} bookingId
14366
+ * @param {number} [creditToUseInCents]
14367
+ * @param {*} [options] Override http request option.
14368
+ * @throws {RequiredError}
14369
+ */
14370
+ async getJoinPriceEstimate(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinPriceEstimateResponse>> {
14371
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
14372
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14373
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getJoinPriceEstimate']?.[localVarOperationServerIndex]?.url;
14374
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14375
+ },
14088
14376
  /**
14089
14377
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
14090
14378
  * @param {string} bookingId
@@ -14211,6 +14499,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
14211
14499
  getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response> {
14212
14500
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
14213
14501
  },
14502
+ /**
14503
+ * 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
14504
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
14505
+ * @param {*} [options] Override http request option.
14506
+ * @throws {RequiredError}
14507
+ */
14508
+ getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinPriceEstimateResponse> {
14509
+ return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
14510
+ },
14214
14511
  /**
14215
14512
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
14216
14513
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -14336,6 +14633,27 @@ export interface BookingsApiGetGuestBookingPriceRequest {
14336
14633
  readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest
14337
14634
  }
14338
14635
 
14636
+ /**
14637
+ * Request parameters for getJoinPriceEstimate operation in BookingsApi.
14638
+ * @export
14639
+ * @interface BookingsApiGetJoinPriceEstimateRequest
14640
+ */
14641
+ export interface BookingsApiGetJoinPriceEstimateRequest {
14642
+ /**
14643
+ *
14644
+ * @type {string}
14645
+ * @memberof BookingsApiGetJoinPriceEstimate
14646
+ */
14647
+ readonly bookingId: string
14648
+
14649
+ /**
14650
+ *
14651
+ * @type {number}
14652
+ * @memberof BookingsApiGetJoinPriceEstimate
14653
+ */
14654
+ readonly creditToUseInCents?: number
14655
+ }
14656
+
14339
14657
  /**
14340
14658
  * Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
14341
14659
  * @export
@@ -14545,6 +14863,17 @@ export class BookingsApi extends BaseAPI {
14545
14863
  return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
14546
14864
  }
14547
14865
 
14866
+ /**
14867
+ * 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
14868
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
14869
+ * @param {*} [options] Override http request option.
14870
+ * @throws {RequiredError}
14871
+ * @memberof BookingsApi
14872
+ */
14873
+ public getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig) {
14874
+ return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
14875
+ }
14876
+
14548
14877
  /**
14549
14878
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
14550
14879
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -15715,6 +16044,45 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
15715
16044
  options: localVarRequestOptions,
15716
16045
  };
15717
16046
  },
16047
+ /**
16048
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16049
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
16050
+ * @param {*} [options] Override http request option.
16051
+ * @throws {RequiredError}
16052
+ */
16053
+ getOpenBookingPrice: async (getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16054
+ // verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
16055
+ assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest)
16056
+ const localVarPath = `/api/bookings/open/booking-price`;
16057
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16058
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16059
+ let baseOptions;
16060
+ if (configuration) {
16061
+ baseOptions = configuration.baseOptions;
16062
+ }
16063
+
16064
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16065
+ const localVarHeaderParameter = {} as any;
16066
+ const localVarQueryParameter = {} as any;
16067
+
16068
+ // authentication bearerAuth required
16069
+ // http bearer authentication required
16070
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16071
+
16072
+
16073
+
16074
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16075
+
16076
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16077
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16078
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16079
+ localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration)
16080
+
16081
+ return {
16082
+ url: toPathString(localVarUrlObj),
16083
+ options: localVarRequestOptions,
16084
+ };
16085
+ },
15718
16086
  /**
15719
16087
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15720
16088
  * @param {string} bookingId
@@ -15804,6 +16172,18 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
15804
16172
  const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createOpenBooking']?.[localVarOperationServerIndex]?.url;
15805
16173
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15806
16174
  },
16175
+ /**
16176
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16177
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
16178
+ * @param {*} [options] Override http request option.
16179
+ * @throws {RequiredError}
16180
+ */
16181
+ async getOpenBookingPrice(getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenBookingPrice200Response>> {
16182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
16183
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16184
+ const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.getOpenBookingPrice']?.[localVarOperationServerIndex]?.url;
16185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16186
+ },
15807
16187
  /**
15808
16188
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15809
16189
  * @param {string} bookingId
@@ -15854,6 +16234,15 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
15854
16234
  createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
15855
16235
  return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
15856
16236
  },
16237
+ /**
16238
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16239
+ * @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
16240
+ * @param {*} [options] Override http request option.
16241
+ * @throws {RequiredError}
16242
+ */
16243
+ getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenBookingPrice200Response> {
16244
+ return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
16245
+ },
15857
16246
  /**
15858
16247
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15859
16248
  * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
@@ -15908,6 +16297,20 @@ export interface BookingsUserApiCreateOpenBookingRequest {
15908
16297
  readonly createOpenBookingRequest: CreateOpenBookingRequest
15909
16298
  }
15910
16299
 
16300
+ /**
16301
+ * Request parameters for getOpenBookingPrice operation in BookingsUserApi.
16302
+ * @export
16303
+ * @interface BookingsUserApiGetOpenBookingPriceRequest
16304
+ */
16305
+ export interface BookingsUserApiGetOpenBookingPriceRequest {
16306
+ /**
16307
+ *
16308
+ * @type {GetOpenBookingPriceRequest}
16309
+ * @memberof BookingsUserApiGetOpenBookingPrice
16310
+ */
16311
+ readonly getOpenBookingPriceRequest: GetOpenBookingPriceRequest
16312
+ }
16313
+
15911
16314
  /**
15912
16315
  * Request parameters for updateOpenBooking operation in BookingsUserApi.
15913
16316
  * @export
@@ -15969,6 +16372,17 @@ export class BookingsUserApi extends BaseAPI {
15969
16372
  return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
15970
16373
  }
15971
16374
 
16375
+ /**
16376
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16377
+ * @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
16378
+ * @param {*} [options] Override http request option.
16379
+ * @throws {RequiredError}
16380
+ * @memberof BookingsUserApi
16381
+ */
16382
+ public getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig) {
16383
+ return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
16384
+ }
16385
+
15972
16386
  /**
15973
16387
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15974
16388
  * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
package/base.ts 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.176
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts 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.176
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts 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.176
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).