@tennac-booking/sdk 1.0.209 → 1.0.210

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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.208
7
+ * The version of the OpenAPI document: 1.0.210
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2660,6 +2660,30 @@ export interface ClubPageResponse {
2660
2660
  * @memberof ClubPageResponse
2661
2661
  */
2662
2662
  'sports'?: Array<string>;
2663
+ /**
2664
+ * Nombre total de terrains du club
2665
+ * @type {number}
2666
+ * @memberof ClubPageResponse
2667
+ */
2668
+ 'courtsCount'?: number;
2669
+ /**
2670
+ * Construct a type with a set of properties K of type T
2671
+ * @type {{ [key: string]: number; }}
2672
+ * @memberof ClubPageResponse
2673
+ */
2674
+ 'courtsCountBySport'?: { [key: string]: number; };
2675
+ /**
2676
+ * Construct a type with a set of properties K of type T
2677
+ * @type {{ [key: string]: Array<SurfaceType>; }}
2678
+ * @memberof ClubPageResponse
2679
+ */
2680
+ 'surfacesBySport'?: { [key: string]: Array<SurfaceType>; };
2681
+ /**
2682
+ * Construct a type with a set of properties K of type T
2683
+ * @type {{ [key: string]: Array<CourtEnvironment>; }}
2684
+ * @memberof ClubPageResponse
2685
+ */
2686
+ 'indoorOutdoorBySport'?: { [key: string]: Array<CourtEnvironment>; };
2663
2687
  /**
2664
2688
  *
2665
2689
  * @type {ClubPresentation}
@@ -4880,13 +4904,13 @@ export interface CreateOpenBookingRequest {
4880
4904
  */
4881
4905
  'slotIds': Array<string>;
4882
4906
  /**
4883
- * Liste de tous les joueurs initiaux avec leurs méthodes de paiement (INCLUT LE CRÉATEUR)
4884
- * @type {Array<PlayerWithPaymentMethod>}
4907
+ * Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll)
4908
+ * @type {Array<PlayerShare>}
4885
4909
  * @memberof CreateOpenBookingRequest
4886
4910
  */
4887
- 'players'?: Array<PlayerWithPaymentMethod>;
4911
+ 'playerShares'?: Array<PlayerShare>;
4888
4912
  /**
4889
- * Indique si le créateur paie pour tous les joueurs initiaux
4913
+ * Indique si le créateur paie pour tous les joueurs initiaux (incompatible avec playerShares)
4890
4914
  * @type {boolean}
4891
4915
  * @memberof CreateOpenBookingRequest
4892
4916
  */
@@ -4927,13 +4951,6 @@ export interface CreateOpenBookingRequest {
4927
4951
  * @memberof CreateOpenBookingRequest
4928
4952
  */
4929
4953
  'minLevel'?: string;
4930
- /**
4931
- *
4932
- * @type {Array<string>}
4933
- * @memberof CreateOpenBookingRequest
4934
- * @deprecated
4935
- */
4936
- 'initialPlayerIds'?: Array<string>;
4937
4954
  }
4938
4955
 
4939
4956
 
@@ -5447,6 +5464,31 @@ export interface EstimateEventPriceRequestSharesInner {
5447
5464
  */
5448
5465
  'playerId': string;
5449
5466
  }
5467
+ /**
5468
+ *
5469
+ * @export
5470
+ * @interface EstimateOpenBookingJoinRequest
5471
+ */
5472
+ export interface EstimateOpenBookingJoinRequest {
5473
+ /**
5474
+ *
5475
+ * @type {number}
5476
+ * @memberof EstimateOpenBookingJoinRequest
5477
+ */
5478
+ 'creditToUseInCents'?: number;
5479
+ /**
5480
+ *
5481
+ * @type {boolean}
5482
+ * @memberof EstimateOpenBookingJoinRequest
5483
+ */
5484
+ 'isCreatorPayingAll'?: boolean;
5485
+ /**
5486
+ *
5487
+ * @type {Array<PlayerShare>}
5488
+ * @memberof EstimateOpenBookingJoinRequest
5489
+ */
5490
+ 'playerShares'?: Array<PlayerShare>;
5491
+ }
5450
5492
  /**
5451
5493
  *
5452
5494
  * @export
@@ -7846,6 +7888,18 @@ export interface JoinEventWaitList200Response {
7846
7888
  * @interface JoinOpenBookingRequest
7847
7889
  */
7848
7890
  export interface JoinOpenBookingRequest {
7891
+ /**
7892
+ * Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll)
7893
+ * @type {Array<PlayerShare>}
7894
+ * @memberof JoinOpenBookingRequest
7895
+ */
7896
+ 'playerShares'?: Array<PlayerShare>;
7897
+ /**
7898
+ * Indique si le joueur qui rejoint paie pour tous les joueurs qu\'il ajoute (incompatible avec playerShares)
7899
+ * @type {boolean}
7900
+ * @memberof JoinOpenBookingRequest
7901
+ */
7902
+ 'isCreatorPayingAll'?: boolean;
7849
7903
  /**
7850
7904
  *
7851
7905
  * @type {PaymentMethod}
@@ -7864,12 +7918,6 @@ export interface JoinOpenBookingRequest {
7864
7918
  * @memberof JoinOpenBookingRequest
7865
7919
  */
7866
7920
  'creditToUseInCents'?: number;
7867
- /**
7868
- * Liste des autres joueurs qui rejoignent également (n\'inclut PAS le joueur qui fait la requête, chacun paie sa part)
7869
- * @type {Array<PlayerWithPaymentMethod>}
7870
- * @memberof JoinOpenBookingRequest
7871
- */
7872
- 'players'?: Array<PlayerWithPaymentMethod>;
7873
7921
  }
7874
7922
 
7875
7923
 
@@ -7968,98 +8016,6 @@ export interface JoinOpenEventResponse {
7968
8016
  */
7969
8017
  'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
7970
8018
  }
7971
- /**
7972
- *
7973
- * @export
7974
- * @interface JoinPriceEstimateResponse
7975
- */
7976
- export interface JoinPriceEstimateResponse {
7977
- /**
7978
- * ID de la réservation
7979
- * @type {string}
7980
- * @memberof JoinPriceEstimateResponse
7981
- */
7982
- 'bookingId': string;
7983
- /**
7984
- * Prix de base sans réductions (en centimes)
7985
- * @type {number}
7986
- * @memberof JoinPriceEstimateResponse
7987
- */
7988
- 'basePrice': number;
7989
- /**
7990
- * Prix après application de l\'abonnement (en centimes)
7991
- * @type {number}
7992
- * @memberof JoinPriceEstimateResponse
7993
- */
7994
- 'priceAfterSubscription': number;
7995
- /**
7996
- * Montant de la réduction d\'abonnement (en centimes)
7997
- * @type {number}
7998
- * @memberof JoinPriceEstimateResponse
7999
- */
8000
- 'subscriptionDiscount': number;
8001
- /**
8002
- *
8003
- * @type {JoinPriceEstimateResponseSubscriptionInfo}
8004
- * @memberof JoinPriceEstimateResponse
8005
- */
8006
- 'subscriptionInfo'?: JoinPriceEstimateResponseSubscriptionInfo;
8007
- /**
8008
- * Crédits disponibles pour le joueur dans ce club (en centimes)
8009
- * @type {number}
8010
- * @memberof JoinPriceEstimateResponse
8011
- */
8012
- 'availableCreditsInCents': number;
8013
- /**
8014
- * Crédits qui seront utilisés (en centimes)
8015
- * @type {number}
8016
- * @memberof JoinPriceEstimateResponse
8017
- */
8018
- 'creditToUseInCents': number;
8019
- /**
8020
- * Prix final après toutes les réductions et crédits (en centimes)
8021
- * @type {number}
8022
- * @memberof JoinPriceEstimateResponse
8023
- */
8024
- 'finalPriceInCents': number;
8025
- /**
8026
- * Indique si le joueur peut rejoindre la réservation
8027
- * @type {boolean}
8028
- * @memberof JoinPriceEstimateResponse
8029
- */
8030
- 'canJoin': boolean;
8031
- /**
8032
- * Raison si le joueur ne peut pas rejoindre
8033
- * @type {string}
8034
- * @memberof JoinPriceEstimateResponse
8035
- */
8036
- 'reason'?: string;
8037
- }
8038
- /**
8039
- * Informations sur l\'abonnement du joueur
8040
- * @export
8041
- * @interface JoinPriceEstimateResponseSubscriptionInfo
8042
- */
8043
- export interface JoinPriceEstimateResponseSubscriptionInfo {
8044
- /**
8045
- *
8046
- * @type {string}
8047
- * @memberof JoinPriceEstimateResponseSubscriptionInfo
8048
- */
8049
- 'subscriptionName'?: string;
8050
- /**
8051
- *
8052
- * @type {number}
8053
- * @memberof JoinPriceEstimateResponseSubscriptionInfo
8054
- */
8055
- 'discountPercentage'?: number;
8056
- /**
8057
- *
8058
- * @type {boolean}
8059
- * @memberof JoinPriceEstimateResponseSubscriptionInfo
8060
- */
8061
- 'hasSubscription': boolean;
8062
- }
8063
8019
  /**
8064
8020
  *
8065
8021
  * @export
@@ -8541,6 +8497,31 @@ export interface OffPeakRule {
8541
8497
  */
8542
8498
  'dayOfWeek': number;
8543
8499
  }
8500
+ /**
8501
+ *
8502
+ * @export
8503
+ * @interface OpenBookingBasePriceResponse
8504
+ */
8505
+ export interface OpenBookingBasePriceResponse {
8506
+ /**
8507
+ * Prix de base par joueur (en centimes) pour rejoindre
8508
+ * @type {number}
8509
+ * @memberof OpenBookingBasePriceResponse
8510
+ */
8511
+ 'basePricePerPlayer': number;
8512
+ /**
8513
+ * Prix total de base de la réservation (en centimes)
8514
+ * @type {number}
8515
+ * @memberof OpenBookingBasePriceResponse
8516
+ */
8517
+ 'totalBasePrice': number;
8518
+ /**
8519
+ * Nombre de places restantes
8520
+ * @type {number}
8521
+ * @memberof OpenBookingBasePriceResponse
8522
+ */
8523
+ 'availableSlots': number;
8524
+ }
8544
8525
  /**
8545
8526
  *
8546
8527
  * @export
@@ -8652,6 +8633,37 @@ export interface OpenBookingInfo {
8652
8633
  }
8653
8634
 
8654
8635
 
8636
+ /**
8637
+ *
8638
+ * @export
8639
+ * @interface OpenBookingJoinEstimateResponse
8640
+ */
8641
+ export interface OpenBookingJoinEstimateResponse {
8642
+ /**
8643
+ * Prix de base par joueur (en centimes)
8644
+ * @type {number}
8645
+ * @memberof OpenBookingJoinEstimateResponse
8646
+ */
8647
+ 'basePricePerPlayer': number;
8648
+ /**
8649
+ * Détails de prix pour chaque joueur qui rejoint
8650
+ * @type {Array<PlayerPrice>}
8651
+ * @memberof OpenBookingJoinEstimateResponse
8652
+ */
8653
+ 'playersPrices': Array<PlayerPrice>;
8654
+ /**
8655
+ * Crédits disponibles pour l\'utilisateur qui demande à rejoindre (en centimes)
8656
+ * @type {number}
8657
+ * @memberof OpenBookingJoinEstimateResponse
8658
+ */
8659
+ 'availableCreditsInCents': number;
8660
+ /**
8661
+ * Nombre de places restantes
8662
+ * @type {number}
8663
+ * @memberof OpenBookingJoinEstimateResponse
8664
+ */
8665
+ 'availableSlots': number;
8666
+ }
8655
8667
  /**
8656
8668
  *
8657
8669
  * @export
@@ -15039,16 +15051,18 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15039
15051
  };
15040
15052
  },
15041
15053
  /**
15042
- * Estimer le prix pour rejoindre une réservation ouverte
15054
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
15043
15055
  * @param {string} bookingId
15044
- * @param {number} [creditToUseInCents]
15056
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
15045
15057
  * @param {*} [options] Override http request option.
15046
15058
  * @throws {RequiredError}
15047
15059
  */
15048
- estimateOpenBookingJoinPrice: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15060
+ estimateOpenBookingJoin: async (bookingId: string, estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15049
15061
  // verify required parameter 'bookingId' is not null or undefined
15050
- assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId)
15051
- const localVarPath = `/api/bookings/{bookingId}/open/estimate`
15062
+ assertParamExists('estimateOpenBookingJoin', 'bookingId', bookingId)
15063
+ // verify required parameter 'estimateOpenBookingJoinRequest' is not null or undefined
15064
+ assertParamExists('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest)
15065
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
15052
15066
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15053
15067
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15054
15068
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15057,7 +15071,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15057
15071
  baseOptions = configuration.baseOptions;
15058
15072
  }
15059
15073
 
15060
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15074
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15061
15075
  const localVarHeaderParameter = {} as any;
15062
15076
  const localVarQueryParameter = {} as any;
15063
15077
 
@@ -15065,15 +15079,14 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15065
15079
  // http bearer authentication required
15066
15080
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
15067
15081
 
15068
- if (creditToUseInCents !== undefined) {
15069
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
15070
- }
15071
-
15072
15082
 
15073
15083
 
15084
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15085
+
15074
15086
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15075
15087
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15076
15088
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15089
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration)
15077
15090
 
15078
15091
  return {
15079
15092
  url: toPathString(localVarUrlObj),
@@ -15192,57 +15205,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15192
15205
  };
15193
15206
  },
15194
15207
  /**
15195
- * 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
15196
- * @param {string} bookingId
15197
- * @param {number} [creditToUseInCents]
15198
- * @param {*} [options] Override http request option.
15199
- * @throws {RequiredError}
15200
- */
15201
- getJoinPriceEstimate: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15202
- // verify required parameter 'bookingId' is not null or undefined
15203
- assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId)
15204
- const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
15205
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15206
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15207
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15208
- let baseOptions;
15209
- if (configuration) {
15210
- baseOptions = configuration.baseOptions;
15211
- }
15212
-
15213
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15214
- const localVarHeaderParameter = {} as any;
15215
- const localVarQueryParameter = {} as any;
15216
-
15217
- // authentication bearerAuth required
15218
- // http bearer authentication required
15219
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
15220
-
15221
- if (creditToUseInCents !== undefined) {
15222
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
15223
- }
15224
-
15225
-
15226
-
15227
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15228
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15229
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15230
-
15231
- return {
15232
- url: toPathString(localVarUrlObj),
15233
- options: localVarRequestOptions,
15234
- };
15235
- },
15236
- /**
15237
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
15208
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
15238
15209
  * @param {string} bookingId
15239
15210
  * @param {*} [options] Override http request option.
15240
15211
  * @throws {RequiredError}
15241
15212
  */
15242
- getOpenBookingJoinPrice: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15213
+ getOpenBookingBasePrice: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15243
15214
  // verify required parameter 'bookingId' is not null or undefined
15244
- assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId)
15245
- const localVarPath = `/api/bookings/{bookingId}/open/join-price`
15215
+ assertParamExists('getOpenBookingBasePrice', 'bookingId', bookingId)
15216
+ const localVarPath = `/api/bookings/{bookingId}/open/base-price`
15246
15217
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15247
15218
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15248
15219
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15495,16 +15466,16 @@ export const BookingsApiFp = function(configuration?: Configuration) {
15495
15466
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15496
15467
  },
15497
15468
  /**
15498
- * Estimer le prix pour rejoindre une réservation ouverte
15469
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
15499
15470
  * @param {string} bookingId
15500
- * @param {number} [creditToUseInCents]
15471
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
15501
15472
  * @param {*} [options] Override http request option.
15502
15473
  * @throws {RequiredError}
15503
15474
  */
15504
- async estimateOpenBookingJoinPrice(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>> {
15505
- const localVarAxiosArgs = await localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
15475
+ async estimateOpenBookingJoin(bookingId: string, estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingJoinEstimateResponse>> {
15476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options);
15506
15477
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15507
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
15478
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.estimateOpenBookingJoin']?.[localVarOperationServerIndex]?.url;
15508
15479
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15509
15480
  },
15510
15481
  /**
@@ -15544,28 +15515,15 @@ export const BookingsApiFp = function(configuration?: Configuration) {
15544
15515
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15545
15516
  },
15546
15517
  /**
15547
- * 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
15548
- * @param {string} bookingId
15549
- * @param {number} [creditToUseInCents]
15550
- * @param {*} [options] Override http request option.
15551
- * @throws {RequiredError}
15552
- */
15553
- async getJoinPriceEstimate(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinPriceEstimateResponse>> {
15554
- const localVarAxiosArgs = await localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
15555
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15556
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.getJoinPriceEstimate']?.[localVarOperationServerIndex]?.url;
15557
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15558
- },
15559
- /**
15560
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
15518
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
15561
15519
  * @param {string} bookingId
15562
15520
  * @param {*} [options] Override http request option.
15563
15521
  * @throws {RequiredError}
15564
15522
  */
15565
- async getOpenBookingJoinPrice(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>> {
15566
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
15523
+ async getOpenBookingBasePrice(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingBasePriceResponse>> {
15524
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingBasePrice(bookingId, options);
15567
15525
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15568
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
15526
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookingBasePrice']?.[localVarOperationServerIndex]?.url;
15569
15527
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15570
15528
  },
15571
15529
  /**
@@ -15647,13 +15605,13 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
15647
15605
  return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
15648
15606
  },
15649
15607
  /**
15650
- * Estimer le prix pour rejoindre une réservation ouverte
15651
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
15608
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
15609
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
15652
15610
  * @param {*} [options] Override http request option.
15653
15611
  * @throws {RequiredError}
15654
15612
  */
15655
- estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response> {
15656
- return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
15613
+ estimateOpenBookingJoin(requestParameters: BookingsApiEstimateOpenBookingJoinRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingJoinEstimateResponse> {
15614
+ return localVarFp.estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(axios, basePath));
15657
15615
  },
15658
15616
  /**
15659
15617
  * Obtenir l\'historique d\'une réservation par ID
@@ -15683,22 +15641,13 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
15683
15641
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
15684
15642
  },
15685
15643
  /**
15686
- * 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
15687
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
15688
- * @param {*} [options] Override http request option.
15689
- * @throws {RequiredError}
15690
- */
15691
- getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinPriceEstimateResponse> {
15692
- return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
15693
- },
15694
- /**
15695
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
15696
- * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
15644
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
15645
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
15697
15646
  * @param {*} [options] Override http request option.
15698
15647
  * @throws {RequiredError}
15699
15648
  */
15700
- getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response> {
15701
- return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
15649
+ getOpenBookingBasePrice(requestParameters: BookingsApiGetOpenBookingBasePriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingBasePriceResponse> {
15650
+ return localVarFp.getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
15702
15651
  },
15703
15652
  /**
15704
15653
  *
@@ -15754,24 +15703,24 @@ export interface BookingsApiCreateGuestBookingRequest {
15754
15703
  }
15755
15704
 
15756
15705
  /**
15757
- * Request parameters for estimateOpenBookingJoinPrice operation in BookingsApi.
15706
+ * Request parameters for estimateOpenBookingJoin operation in BookingsApi.
15758
15707
  * @export
15759
- * @interface BookingsApiEstimateOpenBookingJoinPriceRequest
15708
+ * @interface BookingsApiEstimateOpenBookingJoinRequest
15760
15709
  */
15761
- export interface BookingsApiEstimateOpenBookingJoinPriceRequest {
15710
+ export interface BookingsApiEstimateOpenBookingJoinRequest {
15762
15711
  /**
15763
15712
  *
15764
15713
  * @type {string}
15765
- * @memberof BookingsApiEstimateOpenBookingJoinPrice
15714
+ * @memberof BookingsApiEstimateOpenBookingJoin
15766
15715
  */
15767
15716
  readonly bookingId: string
15768
15717
 
15769
15718
  /**
15770
15719
  *
15771
- * @type {number}
15772
- * @memberof BookingsApiEstimateOpenBookingJoinPrice
15720
+ * @type {EstimateOpenBookingJoinRequest}
15721
+ * @memberof BookingsApiEstimateOpenBookingJoin
15773
15722
  */
15774
- readonly creditToUseInCents?: number
15723
+ readonly estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest
15775
15724
  }
15776
15725
 
15777
15726
  /**
@@ -15817,36 +15766,15 @@ export interface BookingsApiGetGuestBookingPriceRequest {
15817
15766
  }
15818
15767
 
15819
15768
  /**
15820
- * Request parameters for getJoinPriceEstimate operation in BookingsApi.
15769
+ * Request parameters for getOpenBookingBasePrice operation in BookingsApi.
15821
15770
  * @export
15822
- * @interface BookingsApiGetJoinPriceEstimateRequest
15771
+ * @interface BookingsApiGetOpenBookingBasePriceRequest
15823
15772
  */
15824
- export interface BookingsApiGetJoinPriceEstimateRequest {
15773
+ export interface BookingsApiGetOpenBookingBasePriceRequest {
15825
15774
  /**
15826
15775
  *
15827
15776
  * @type {string}
15828
- * @memberof BookingsApiGetJoinPriceEstimate
15829
- */
15830
- readonly bookingId: string
15831
-
15832
- /**
15833
- *
15834
- * @type {number}
15835
- * @memberof BookingsApiGetJoinPriceEstimate
15836
- */
15837
- readonly creditToUseInCents?: number
15838
- }
15839
-
15840
- /**
15841
- * Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
15842
- * @export
15843
- * @interface BookingsApiGetOpenBookingJoinPriceRequest
15844
- */
15845
- export interface BookingsApiGetOpenBookingJoinPriceRequest {
15846
- /**
15847
- *
15848
- * @type {string}
15849
- * @memberof BookingsApiGetOpenBookingJoinPrice
15777
+ * @memberof BookingsApiGetOpenBookingBasePrice
15850
15778
  */
15851
15779
  readonly bookingId: string
15852
15780
  }
@@ -16003,14 +15931,14 @@ export class BookingsApi extends BaseAPI {
16003
15931
  }
16004
15932
 
16005
15933
  /**
16006
- * Estimer le prix pour rejoindre une réservation ouverte
16007
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
15934
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
15935
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
16008
15936
  * @param {*} [options] Override http request option.
16009
15937
  * @throws {RequiredError}
16010
15938
  * @memberof BookingsApi
16011
15939
  */
16012
- public estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
16013
- return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
15940
+ public estimateOpenBookingJoin(requestParameters: BookingsApiEstimateOpenBookingJoinRequest, options?: RawAxiosRequestConfig) {
15941
+ return BookingsApiFp(this.configuration).estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(this.axios, this.basePath));
16014
15942
  }
16015
15943
 
16016
15944
  /**
@@ -16047,25 +15975,14 @@ export class BookingsApi extends BaseAPI {
16047
15975
  }
16048
15976
 
16049
15977
  /**
16050
- * 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
16051
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
16052
- * @param {*} [options] Override http request option.
16053
- * @throws {RequiredError}
16054
- * @memberof BookingsApi
16055
- */
16056
- public getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig) {
16057
- return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
16058
- }
16059
-
16060
- /**
16061
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
16062
- * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
15978
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
15979
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
16063
15980
  * @param {*} [options] Override http request option.
16064
15981
  * @throws {RequiredError}
16065
15982
  * @memberof BookingsApi
16066
15983
  */
16067
- public getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
16068
- return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
15984
+ public getOpenBookingBasePrice(requestParameters: BookingsApiGetOpenBookingBasePriceRequest, options?: RawAxiosRequestConfig) {
15985
+ return BookingsApiFp(this.configuration).getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
16069
15986
  }
16070
15987
 
16071
15988
  /**
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.208
7
+ * The version of the OpenAPI document: 1.0.210
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/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.208
7
+ * The version of the OpenAPI document: 1.0.210
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/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.208
7
+ * The version of the OpenAPI document: 1.0.210
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).