@tennac-booking/sdk 1.0.176 → 1.0.178

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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +409 -404
  2. package/README.md +9 -2
  3. package/api.ts +457 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +370 -1
  8. package/dist/api.js +137 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +370 -1
  16. package/dist/esm/api.js +137 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingPlayerInfo.md +26 -0
  28. package/docs/BookingPopulated.md +2 -0
  29. package/docs/BookingSummary.md +12 -0
  30. package/docs/BookingsApi.md +55 -0
  31. package/docs/BookingsUserApi.md +53 -0
  32. package/docs/ClubSummary.md +4 -0
  33. package/docs/CreateOpenBookingRequest.md +2 -0
  34. package/docs/GetOpenBookingPrice200Response.md +24 -0
  35. package/docs/GetOpenBookingPriceRequest.md +26 -0
  36. package/docs/JoinPriceEstimateResponse.md +38 -0
  37. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
  38. package/docs/OpenBookingInfo.md +2 -0
  39. package/docs/UserClubMembership.md +8 -0
  40. package/docs/UserProfileResponse.md +2 -0
  41. package/index.ts +1 -1
  42. package/package.json +1 -1
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}
@@ -3642,6 +3715,18 @@ export interface ClubSummary {
3642
3715
  * @memberof ClubSummary
3643
3716
  */
3644
3717
  'location': UserLocationSummary | null;
3718
+ /**
3719
+ *
3720
+ * @type {string}
3721
+ * @memberof ClubSummary
3722
+ */
3723
+ 'address'?: string | null;
3724
+ /**
3725
+ *
3726
+ * @type {string}
3727
+ * @memberof ClubSummary
3728
+ */
3729
+ 'description'?: string | null;
3645
3730
  /**
3646
3731
  *
3647
3732
  * @type {number}
@@ -4601,6 +4686,12 @@ export interface CreateOpenBookingRequest {
4601
4686
  * @memberof CreateOpenBookingRequest
4602
4687
  */
4603
4688
  'minLevel'?: string;
4689
+ /**
4690
+ * IDs des joueurs inclus de base dans la réservation (en plus du créateur)
4691
+ * @type {Array<string>}
4692
+ * @memberof CreateOpenBookingRequest
4693
+ */
4694
+ 'initialPlayerIds'?: Array<string>;
4604
4695
  }
4605
4696
 
4606
4697
 
@@ -6281,6 +6372,62 @@ export interface GetInfillPercentagePerPeriod200Response {
6281
6372
  */
6282
6373
  'infillPercentage': number;
6283
6374
  }
6375
+ /**
6376
+ *
6377
+ * @export
6378
+ * @interface GetOpenBookingPrice200Response
6379
+ */
6380
+ export interface GetOpenBookingPrice200Response {
6381
+ /**
6382
+ *
6383
+ * @type {number}
6384
+ * @memberof GetOpenBookingPrice200Response
6385
+ */
6386
+ 'totalBasePrice': number;
6387
+ /**
6388
+ *
6389
+ * @type {Array<PlayerPrice>}
6390
+ * @memberof GetOpenBookingPrice200Response
6391
+ */
6392
+ 'playersPrices': Array<PlayerPrice>;
6393
+ /**
6394
+ *
6395
+ * @type {number}
6396
+ * @memberof GetOpenBookingPrice200Response
6397
+ */
6398
+ 'basePricePerPlayer': number;
6399
+ }
6400
+ /**
6401
+ *
6402
+ * @export
6403
+ * @interface GetOpenBookingPriceRequest
6404
+ */
6405
+ export interface GetOpenBookingPriceRequest {
6406
+ /**
6407
+ * Construct a type with a set of properties K of type T
6408
+ * @type {{ [key: string]: number; }}
6409
+ * @memberof GetOpenBookingPriceRequest
6410
+ */
6411
+ 'creditsByPlayer'?: { [key: string]: number; };
6412
+ /**
6413
+ *
6414
+ * @type {Array<string>}
6415
+ * @memberof GetOpenBookingPriceRequest
6416
+ */
6417
+ 'initialPlayerIds'?: Array<string>;
6418
+ /**
6419
+ *
6420
+ * @type {number}
6421
+ * @memberof GetOpenBookingPriceRequest
6422
+ */
6423
+ 'maxPlayers': number;
6424
+ /**
6425
+ *
6426
+ * @type {Array<string>}
6427
+ * @memberof GetOpenBookingPriceRequest
6428
+ */
6429
+ 'slotIds': Array<string>;
6430
+ }
6284
6431
  /**
6285
6432
  *
6286
6433
  * @export
@@ -7445,6 +7592,98 @@ export interface JoinOpenEventResponse {
7445
7592
  */
7446
7593
  'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
7447
7594
  }
7595
+ /**
7596
+ *
7597
+ * @export
7598
+ * @interface JoinPriceEstimateResponse
7599
+ */
7600
+ export interface JoinPriceEstimateResponse {
7601
+ /**
7602
+ * ID de la réservation
7603
+ * @type {string}
7604
+ * @memberof JoinPriceEstimateResponse
7605
+ */
7606
+ 'bookingId': string;
7607
+ /**
7608
+ * Prix de base sans réductions (en centimes)
7609
+ * @type {number}
7610
+ * @memberof JoinPriceEstimateResponse
7611
+ */
7612
+ 'basePrice': number;
7613
+ /**
7614
+ * Prix après application de l\'abonnement (en centimes)
7615
+ * @type {number}
7616
+ * @memberof JoinPriceEstimateResponse
7617
+ */
7618
+ 'priceAfterSubscription': number;
7619
+ /**
7620
+ * Montant de la réduction d\'abonnement (en centimes)
7621
+ * @type {number}
7622
+ * @memberof JoinPriceEstimateResponse
7623
+ */
7624
+ 'subscriptionDiscount': number;
7625
+ /**
7626
+ *
7627
+ * @type {JoinPriceEstimateResponseSubscriptionInfo}
7628
+ * @memberof JoinPriceEstimateResponse
7629
+ */
7630
+ 'subscriptionInfo'?: JoinPriceEstimateResponseSubscriptionInfo;
7631
+ /**
7632
+ * Crédits disponibles pour le joueur dans ce club (en centimes)
7633
+ * @type {number}
7634
+ * @memberof JoinPriceEstimateResponse
7635
+ */
7636
+ 'availableCreditsInCents': number;
7637
+ /**
7638
+ * Crédits qui seront utilisés (en centimes)
7639
+ * @type {number}
7640
+ * @memberof JoinPriceEstimateResponse
7641
+ */
7642
+ 'creditToUseInCents': number;
7643
+ /**
7644
+ * Prix final après toutes les réductions et crédits (en centimes)
7645
+ * @type {number}
7646
+ * @memberof JoinPriceEstimateResponse
7647
+ */
7648
+ 'finalPriceInCents': number;
7649
+ /**
7650
+ * Indique si le joueur peut rejoindre la réservation
7651
+ * @type {boolean}
7652
+ * @memberof JoinPriceEstimateResponse
7653
+ */
7654
+ 'canJoin': boolean;
7655
+ /**
7656
+ * Raison si le joueur ne peut pas rejoindre
7657
+ * @type {string}
7658
+ * @memberof JoinPriceEstimateResponse
7659
+ */
7660
+ 'reason'?: string;
7661
+ }
7662
+ /**
7663
+ * Informations sur l\'abonnement du joueur
7664
+ * @export
7665
+ * @interface JoinPriceEstimateResponseSubscriptionInfo
7666
+ */
7667
+ export interface JoinPriceEstimateResponseSubscriptionInfo {
7668
+ /**
7669
+ *
7670
+ * @type {string}
7671
+ * @memberof JoinPriceEstimateResponseSubscriptionInfo
7672
+ */
7673
+ 'subscriptionName'?: string;
7674
+ /**
7675
+ *
7676
+ * @type {number}
7677
+ * @memberof JoinPriceEstimateResponseSubscriptionInfo
7678
+ */
7679
+ 'discountPercentage'?: number;
7680
+ /**
7681
+ *
7682
+ * @type {boolean}
7683
+ * @memberof JoinPriceEstimateResponseSubscriptionInfo
7684
+ */
7685
+ 'hasSubscription': boolean;
7686
+ }
7448
7687
  /**
7449
7688
  *
7450
7689
  * @export
@@ -8028,6 +8267,12 @@ export interface OpenBookingInfo {
8028
8267
  * @memberof OpenBookingInfo
8029
8268
  */
8030
8269
  'currentPlayersCount': number;
8270
+ /**
8271
+ * Prix de base pour rejoindre la réservation (en centimes)
8272
+ * @type {number}
8273
+ * @memberof OpenBookingInfo
8274
+ */
8275
+ 'basePriceToJoin'?: number;
8031
8276
  }
8032
8277
 
8033
8278
 
@@ -12581,6 +12826,30 @@ export interface UserClubMembership {
12581
12826
  * @memberof UserClubMembership
12582
12827
  */
12583
12828
  'clubPicture': string | null;
12829
+ /**
12830
+ *
12831
+ * @type {string}
12832
+ * @memberof UserClubMembership
12833
+ */
12834
+ 'address'?: string | null;
12835
+ /**
12836
+ *
12837
+ * @type {string}
12838
+ * @memberof UserClubMembership
12839
+ */
12840
+ 'description'?: string | null;
12841
+ /**
12842
+ *
12843
+ * @type {Array<string>}
12844
+ * @memberof UserClubMembership
12845
+ */
12846
+ 'tags'?: Array<string>;
12847
+ /**
12848
+ *
12849
+ * @type {Array<string>}
12850
+ * @memberof UserClubMembership
12851
+ */
12852
+ 'sports'?: Array<string>;
12584
12853
  /**
12585
12854
  *
12586
12855
  * @type {number}
@@ -13230,6 +13499,12 @@ export interface UserProfileResponse {
13230
13499
  * @memberof UserProfileResponse
13231
13500
  */
13232
13501
  'subscriptions'?: Array<ClubSubscriptions>;
13502
+ /**
13503
+ *
13504
+ * @type {Array<UserClubMembership>}
13505
+ * @memberof UserProfileResponse
13506
+ */
13507
+ 'clubs'?: Array<UserClubMembership>;
13233
13508
  /**
13234
13509
  *
13235
13510
  * @type {Array<ClubSummary>}
@@ -13775,6 +14050,48 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
13775
14050
  options: localVarRequestOptions,
13776
14051
  };
13777
14052
  },
14053
+ /**
14054
+ * 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
14055
+ * @param {string} bookingId
14056
+ * @param {number} [creditToUseInCents]
14057
+ * @param {*} [options] Override http request option.
14058
+ * @throws {RequiredError}
14059
+ */
14060
+ getJoinPriceEstimate: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14061
+ // verify required parameter 'bookingId' is not null or undefined
14062
+ assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId)
14063
+ const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
14064
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
14065
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14066
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14067
+ let baseOptions;
14068
+ if (configuration) {
14069
+ baseOptions = configuration.baseOptions;
14070
+ }
14071
+
14072
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14073
+ const localVarHeaderParameter = {} as any;
14074
+ const localVarQueryParameter = {} as any;
14075
+
14076
+ // authentication bearerAuth required
14077
+ // http bearer authentication required
14078
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14079
+
14080
+ if (creditToUseInCents !== undefined) {
14081
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
14082
+ }
14083
+
14084
+
14085
+
14086
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14087
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14088
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14089
+
14090
+ return {
14091
+ url: toPathString(localVarUrlObj),
14092
+ options: localVarRequestOptions,
14093
+ };
14094
+ },
13778
14095
  /**
13779
14096
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
13780
14097
  * @param {string} bookingId
@@ -14085,6 +14402,19 @@ export const BookingsApiFp = function(configuration?: Configuration) {
14085
14402
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getGuestBookingPrice']?.[localVarOperationServerIndex]?.url;
14086
14403
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14087
14404
  },
14405
+ /**
14406
+ * 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
14407
+ * @param {string} bookingId
14408
+ * @param {number} [creditToUseInCents]
14409
+ * @param {*} [options] Override http request option.
14410
+ * @throws {RequiredError}
14411
+ */
14412
+ async getJoinPriceEstimate(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinPriceEstimateResponse>> {
14413
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
14414
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14415
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getJoinPriceEstimate']?.[localVarOperationServerIndex]?.url;
14416
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14417
+ },
14088
14418
  /**
14089
14419
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
14090
14420
  * @param {string} bookingId
@@ -14211,6 +14541,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
14211
14541
  getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response> {
14212
14542
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
14213
14543
  },
14544
+ /**
14545
+ * 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
14546
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
14547
+ * @param {*} [options] Override http request option.
14548
+ * @throws {RequiredError}
14549
+ */
14550
+ getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinPriceEstimateResponse> {
14551
+ return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
14552
+ },
14214
14553
  /**
14215
14554
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
14216
14555
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -14336,6 +14675,27 @@ export interface BookingsApiGetGuestBookingPriceRequest {
14336
14675
  readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest
14337
14676
  }
14338
14677
 
14678
+ /**
14679
+ * Request parameters for getJoinPriceEstimate operation in BookingsApi.
14680
+ * @export
14681
+ * @interface BookingsApiGetJoinPriceEstimateRequest
14682
+ */
14683
+ export interface BookingsApiGetJoinPriceEstimateRequest {
14684
+ /**
14685
+ *
14686
+ * @type {string}
14687
+ * @memberof BookingsApiGetJoinPriceEstimate
14688
+ */
14689
+ readonly bookingId: string
14690
+
14691
+ /**
14692
+ *
14693
+ * @type {number}
14694
+ * @memberof BookingsApiGetJoinPriceEstimate
14695
+ */
14696
+ readonly creditToUseInCents?: number
14697
+ }
14698
+
14339
14699
  /**
14340
14700
  * Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
14341
14701
  * @export
@@ -14545,6 +14905,17 @@ export class BookingsApi extends BaseAPI {
14545
14905
  return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
14546
14906
  }
14547
14907
 
14908
+ /**
14909
+ * 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
14910
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
14911
+ * @param {*} [options] Override http request option.
14912
+ * @throws {RequiredError}
14913
+ * @memberof BookingsApi
14914
+ */
14915
+ public getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig) {
14916
+ return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
14917
+ }
14918
+
14548
14919
  /**
14549
14920
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
14550
14921
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -15715,6 +16086,45 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
15715
16086
  options: localVarRequestOptions,
15716
16087
  };
15717
16088
  },
16089
+ /**
16090
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16091
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
16092
+ * @param {*} [options] Override http request option.
16093
+ * @throws {RequiredError}
16094
+ */
16095
+ getOpenBookingPrice: async (getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16096
+ // verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
16097
+ assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest)
16098
+ const localVarPath = `/api/bookings/open/booking-price`;
16099
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16101
+ let baseOptions;
16102
+ if (configuration) {
16103
+ baseOptions = configuration.baseOptions;
16104
+ }
16105
+
16106
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16107
+ const localVarHeaderParameter = {} as any;
16108
+ const localVarQueryParameter = {} as any;
16109
+
16110
+ // authentication bearerAuth required
16111
+ // http bearer authentication required
16112
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16113
+
16114
+
16115
+
16116
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16117
+
16118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16120
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16121
+ localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration)
16122
+
16123
+ return {
16124
+ url: toPathString(localVarUrlObj),
16125
+ options: localVarRequestOptions,
16126
+ };
16127
+ },
15718
16128
  /**
15719
16129
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15720
16130
  * @param {string} bookingId
@@ -15804,6 +16214,18 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
15804
16214
  const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createOpenBooking']?.[localVarOperationServerIndex]?.url;
15805
16215
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15806
16216
  },
16217
+ /**
16218
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16219
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
16220
+ * @param {*} [options] Override http request option.
16221
+ * @throws {RequiredError}
16222
+ */
16223
+ async getOpenBookingPrice(getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenBookingPrice200Response>> {
16224
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
16225
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16226
+ const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.getOpenBookingPrice']?.[localVarOperationServerIndex]?.url;
16227
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16228
+ },
15807
16229
  /**
15808
16230
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15809
16231
  * @param {string} bookingId
@@ -15854,6 +16276,15 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
15854
16276
  createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
15855
16277
  return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
15856
16278
  },
16279
+ /**
16280
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16281
+ * @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
16282
+ * @param {*} [options] Override http request option.
16283
+ * @throws {RequiredError}
16284
+ */
16285
+ getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenBookingPrice200Response> {
16286
+ return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
16287
+ },
15857
16288
  /**
15858
16289
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15859
16290
  * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
@@ -15908,6 +16339,20 @@ export interface BookingsUserApiCreateOpenBookingRequest {
15908
16339
  readonly createOpenBookingRequest: CreateOpenBookingRequest
15909
16340
  }
15910
16341
 
16342
+ /**
16343
+ * Request parameters for getOpenBookingPrice operation in BookingsUserApi.
16344
+ * @export
16345
+ * @interface BookingsUserApiGetOpenBookingPriceRequest
16346
+ */
16347
+ export interface BookingsUserApiGetOpenBookingPriceRequest {
16348
+ /**
16349
+ *
16350
+ * @type {GetOpenBookingPriceRequest}
16351
+ * @memberof BookingsUserApiGetOpenBookingPrice
16352
+ */
16353
+ readonly getOpenBookingPriceRequest: GetOpenBookingPriceRequest
16354
+ }
16355
+
15911
16356
  /**
15912
16357
  * Request parameters for updateOpenBooking operation in BookingsUserApi.
15913
16358
  * @export
@@ -15969,6 +16414,17 @@ export class BookingsUserApi extends BaseAPI {
15969
16414
  return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
15970
16415
  }
15971
16416
 
16417
+ /**
16418
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
16419
+ * @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
16420
+ * @param {*} [options] Override http request option.
16421
+ * @throws {RequiredError}
16422
+ * @memberof BookingsUserApi
16423
+ */
16424
+ public getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig) {
16425
+ return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
16426
+ }
16427
+
15972
16428
  /**
15973
16429
  * Mettre à jour une réservation ouverte (description et niveau minimal)
15974
16430
  * @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).