@tennac-booking/sdk 1.0.207 → 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.201
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}
@@ -4879,6 +4903,18 @@ export interface CreateOpenBookingRequest {
4879
4903
  * @memberof CreateOpenBookingRequest
4880
4904
  */
4881
4905
  'slotIds': Array<string>;
4906
+ /**
4907
+ * Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll)
4908
+ * @type {Array<PlayerShare>}
4909
+ * @memberof CreateOpenBookingRequest
4910
+ */
4911
+ 'playerShares'?: Array<PlayerShare>;
4912
+ /**
4913
+ * Indique si le créateur paie pour tous les joueurs initiaux (incompatible avec playerShares)
4914
+ * @type {boolean}
4915
+ * @memberof CreateOpenBookingRequest
4916
+ */
4917
+ 'isCreatorPayingAll'?: boolean;
4882
4918
  /**
4883
4919
  *
4884
4920
  * @type {PaymentMethod}
@@ -4915,12 +4951,6 @@ export interface CreateOpenBookingRequest {
4915
4951
  * @memberof CreateOpenBookingRequest
4916
4952
  */
4917
4953
  'minLevel'?: string;
4918
- /**
4919
- * IDs des joueurs inclus de base dans la réservation (en plus du créateur)
4920
- * @type {Array<string>}
4921
- * @memberof CreateOpenBookingRequest
4922
- */
4923
- 'initialPlayerIds'?: Array<string>;
4924
4954
  }
4925
4955
 
4926
4956
 
@@ -5434,6 +5464,31 @@ export interface EstimateEventPriceRequestSharesInner {
5434
5464
  */
5435
5465
  'playerId': string;
5436
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
+ }
5437
5492
  /**
5438
5493
  *
5439
5494
  * @export
@@ -7833,6 +7888,18 @@ export interface JoinEventWaitList200Response {
7833
7888
  * @interface JoinOpenBookingRequest
7834
7889
  */
7835
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;
7836
7903
  /**
7837
7904
  *
7838
7905
  * @type {PaymentMethod}
@@ -7851,12 +7918,6 @@ export interface JoinOpenBookingRequest {
7851
7918
  * @memberof JoinOpenBookingRequest
7852
7919
  */
7853
7920
  'creditToUseInCents'?: number;
7854
- /**
7855
- * Liste des autres joueurs qui rejoignent également (n\'inclut PAS le joueur qui fait la requête, chacun paie sa part)
7856
- * @type {Array<PlayerWithPaymentMethod>}
7857
- * @memberof JoinOpenBookingRequest
7858
- */
7859
- 'players'?: Array<PlayerWithPaymentMethod>;
7860
7921
  }
7861
7922
 
7862
7923
 
@@ -7955,98 +8016,6 @@ export interface JoinOpenEventResponse {
7955
8016
  */
7956
8017
  'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
7957
8018
  }
7958
- /**
7959
- *
7960
- * @export
7961
- * @interface JoinPriceEstimateResponse
7962
- */
7963
- export interface JoinPriceEstimateResponse {
7964
- /**
7965
- * ID de la réservation
7966
- * @type {string}
7967
- * @memberof JoinPriceEstimateResponse
7968
- */
7969
- 'bookingId': string;
7970
- /**
7971
- * Prix de base sans réductions (en centimes)
7972
- * @type {number}
7973
- * @memberof JoinPriceEstimateResponse
7974
- */
7975
- 'basePrice': number;
7976
- /**
7977
- * Prix après application de l\'abonnement (en centimes)
7978
- * @type {number}
7979
- * @memberof JoinPriceEstimateResponse
7980
- */
7981
- 'priceAfterSubscription': number;
7982
- /**
7983
- * Montant de la réduction d\'abonnement (en centimes)
7984
- * @type {number}
7985
- * @memberof JoinPriceEstimateResponse
7986
- */
7987
- 'subscriptionDiscount': number;
7988
- /**
7989
- *
7990
- * @type {JoinPriceEstimateResponseSubscriptionInfo}
7991
- * @memberof JoinPriceEstimateResponse
7992
- */
7993
- 'subscriptionInfo'?: JoinPriceEstimateResponseSubscriptionInfo;
7994
- /**
7995
- * Crédits disponibles pour le joueur dans ce club (en centimes)
7996
- * @type {number}
7997
- * @memberof JoinPriceEstimateResponse
7998
- */
7999
- 'availableCreditsInCents': number;
8000
- /**
8001
- * Crédits qui seront utilisés (en centimes)
8002
- * @type {number}
8003
- * @memberof JoinPriceEstimateResponse
8004
- */
8005
- 'creditToUseInCents': number;
8006
- /**
8007
- * Prix final après toutes les réductions et crédits (en centimes)
8008
- * @type {number}
8009
- * @memberof JoinPriceEstimateResponse
8010
- */
8011
- 'finalPriceInCents': number;
8012
- /**
8013
- * Indique si le joueur peut rejoindre la réservation
8014
- * @type {boolean}
8015
- * @memberof JoinPriceEstimateResponse
8016
- */
8017
- 'canJoin': boolean;
8018
- /**
8019
- * Raison si le joueur ne peut pas rejoindre
8020
- * @type {string}
8021
- * @memberof JoinPriceEstimateResponse
8022
- */
8023
- 'reason'?: string;
8024
- }
8025
- /**
8026
- * Informations sur l\'abonnement du joueur
8027
- * @export
8028
- * @interface JoinPriceEstimateResponseSubscriptionInfo
8029
- */
8030
- export interface JoinPriceEstimateResponseSubscriptionInfo {
8031
- /**
8032
- *
8033
- * @type {string}
8034
- * @memberof JoinPriceEstimateResponseSubscriptionInfo
8035
- */
8036
- 'subscriptionName'?: string;
8037
- /**
8038
- *
8039
- * @type {number}
8040
- * @memberof JoinPriceEstimateResponseSubscriptionInfo
8041
- */
8042
- 'discountPercentage'?: number;
8043
- /**
8044
- *
8045
- * @type {boolean}
8046
- * @memberof JoinPriceEstimateResponseSubscriptionInfo
8047
- */
8048
- 'hasSubscription': boolean;
8049
- }
8050
8019
  /**
8051
8020
  *
8052
8021
  * @export
@@ -8528,6 +8497,31 @@ export interface OffPeakRule {
8528
8497
  */
8529
8498
  'dayOfWeek': number;
8530
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
+ }
8531
8525
  /**
8532
8526
  *
8533
8527
  * @export
@@ -8571,11 +8565,17 @@ export interface OpenBookingInfo {
8571
8565
  */
8572
8566
  'totalPrice': number;
8573
8567
  /**
8574
- * Informations des créneaux
8575
- * @type {Array<OpenBookingSlotInfo>}
8568
+ * Date de début du premier créneau
8569
+ * @type {string}
8570
+ * @memberof OpenBookingInfo
8571
+ */
8572
+ 'startDate': string;
8573
+ /**
8574
+ * Date de fin du dernier créneau
8575
+ * @type {string}
8576
8576
  * @memberof OpenBookingInfo
8577
8577
  */
8578
- 'slots': Array<OpenBookingSlotInfo>;
8578
+ 'endDate': string;
8579
8579
  /**
8580
8580
  * Indique si le créateur paie pour tous
8581
8581
  * @type {boolean}
@@ -8633,6 +8633,37 @@ export interface OpenBookingInfo {
8633
8633
  }
8634
8634
 
8635
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
+ }
8636
8667
  /**
8637
8668
  *
8638
8669
  * @export
@@ -8664,31 +8695,6 @@ export interface OpenBookingPlayerInfo {
8664
8695
  */
8665
8696
  'profilePicture'?: string;
8666
8697
  }
8667
- /**
8668
- *
8669
- * @export
8670
- * @interface OpenBookingSlotInfo
8671
- */
8672
- export interface OpenBookingSlotInfo {
8673
- /**
8674
- * ID du slot
8675
- * @type {string}
8676
- * @memberof OpenBookingSlotInfo
8677
- */
8678
- 'id': string;
8679
- /**
8680
- * Date de début ISO
8681
- * @type {string}
8682
- * @memberof OpenBookingSlotInfo
8683
- */
8684
- 'startDate': string;
8685
- /**
8686
- * Date de fin ISO
8687
- * @type {string}
8688
- * @memberof OpenBookingSlotInfo
8689
- */
8690
- 'endDate': string;
8691
- }
8692
8698
  /**
8693
8699
  *
8694
8700
  * @export
@@ -15045,16 +15051,18 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15045
15051
  };
15046
15052
  },
15047
15053
  /**
15048
- * 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.
15049
15055
  * @param {string} bookingId
15050
- * @param {number} [creditToUseInCents]
15056
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
15051
15057
  * @param {*} [options] Override http request option.
15052
15058
  * @throws {RequiredError}
15053
15059
  */
15054
- estimateOpenBookingJoinPrice: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15060
+ estimateOpenBookingJoin: async (bookingId: string, estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15055
15061
  // verify required parameter 'bookingId' is not null or undefined
15056
- assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId)
15057
- 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`
15058
15066
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15059
15067
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15060
15068
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15063,7 +15071,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15063
15071
  baseOptions = configuration.baseOptions;
15064
15072
  }
15065
15073
 
15066
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15074
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15067
15075
  const localVarHeaderParameter = {} as any;
15068
15076
  const localVarQueryParameter = {} as any;
15069
15077
 
@@ -15071,15 +15079,14 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15071
15079
  // http bearer authentication required
15072
15080
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
15073
15081
 
15074
- if (creditToUseInCents !== undefined) {
15075
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
15076
- }
15077
-
15078
15082
 
15079
15083
 
15084
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15085
+
15080
15086
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15081
15087
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15082
15088
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15089
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration)
15083
15090
 
15084
15091
  return {
15085
15092
  url: toPathString(localVarUrlObj),
@@ -15198,57 +15205,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15198
15205
  };
15199
15206
  },
15200
15207
  /**
15201
- * 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
15202
- * @param {string} bookingId
15203
- * @param {number} [creditToUseInCents]
15204
- * @param {*} [options] Override http request option.
15205
- * @throws {RequiredError}
15206
- */
15207
- getJoinPriceEstimate: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15208
- // verify required parameter 'bookingId' is not null or undefined
15209
- assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId)
15210
- const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
15211
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15212
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15213
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15214
- let baseOptions;
15215
- if (configuration) {
15216
- baseOptions = configuration.baseOptions;
15217
- }
15218
-
15219
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15220
- const localVarHeaderParameter = {} as any;
15221
- const localVarQueryParameter = {} as any;
15222
-
15223
- // authentication bearerAuth required
15224
- // http bearer authentication required
15225
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
15226
-
15227
- if (creditToUseInCents !== undefined) {
15228
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
15229
- }
15230
-
15231
-
15232
-
15233
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15234
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15235
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15236
-
15237
- return {
15238
- url: toPathString(localVarUrlObj),
15239
- options: localVarRequestOptions,
15240
- };
15241
- },
15242
- /**
15243
- * 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.
15244
15209
  * @param {string} bookingId
15245
15210
  * @param {*} [options] Override http request option.
15246
15211
  * @throws {RequiredError}
15247
15212
  */
15248
- getOpenBookingJoinPrice: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15213
+ getOpenBookingBasePrice: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15249
15214
  // verify required parameter 'bookingId' is not null or undefined
15250
- assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId)
15251
- const localVarPath = `/api/bookings/{bookingId}/open/join-price`
15215
+ assertParamExists('getOpenBookingBasePrice', 'bookingId', bookingId)
15216
+ const localVarPath = `/api/bookings/{bookingId}/open/base-price`
15252
15217
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15253
15218
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15254
15219
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15501,16 +15466,16 @@ export const BookingsApiFp = function(configuration?: Configuration) {
15501
15466
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15502
15467
  },
15503
15468
  /**
15504
- * 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.
15505
15470
  * @param {string} bookingId
15506
- * @param {number} [creditToUseInCents]
15471
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
15507
15472
  * @param {*} [options] Override http request option.
15508
15473
  * @throws {RequiredError}
15509
15474
  */
15510
- async estimateOpenBookingJoinPrice(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>> {
15511
- 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);
15512
15477
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15513
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
15478
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.estimateOpenBookingJoin']?.[localVarOperationServerIndex]?.url;
15514
15479
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15515
15480
  },
15516
15481
  /**
@@ -15550,28 +15515,15 @@ export const BookingsApiFp = function(configuration?: Configuration) {
15550
15515
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15551
15516
  },
15552
15517
  /**
15553
- * 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
15554
- * @param {string} bookingId
15555
- * @param {number} [creditToUseInCents]
15556
- * @param {*} [options] Override http request option.
15557
- * @throws {RequiredError}
15558
- */
15559
- async getJoinPriceEstimate(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinPriceEstimateResponse>> {
15560
- const localVarAxiosArgs = await localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
15561
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15562
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.getJoinPriceEstimate']?.[localVarOperationServerIndex]?.url;
15563
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15564
- },
15565
- /**
15566
- * 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.
15567
15519
  * @param {string} bookingId
15568
15520
  * @param {*} [options] Override http request option.
15569
15521
  * @throws {RequiredError}
15570
15522
  */
15571
- async getOpenBookingJoinPrice(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>> {
15572
- 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);
15573
15525
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15574
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
15526
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookingBasePrice']?.[localVarOperationServerIndex]?.url;
15575
15527
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15576
15528
  },
15577
15529
  /**
@@ -15653,13 +15605,13 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
15653
15605
  return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
15654
15606
  },
15655
15607
  /**
15656
- * Estimer le prix pour rejoindre une réservation ouverte
15657
- * @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.
15658
15610
  * @param {*} [options] Override http request option.
15659
15611
  * @throws {RequiredError}
15660
15612
  */
15661
- estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response> {
15662
- 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));
15663
15615
  },
15664
15616
  /**
15665
15617
  * Obtenir l\'historique d\'une réservation par ID
@@ -15689,22 +15641,13 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
15689
15641
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
15690
15642
  },
15691
15643
  /**
15692
- * 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
15693
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
15694
- * @param {*} [options] Override http request option.
15695
- * @throws {RequiredError}
15696
- */
15697
- getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinPriceEstimateResponse> {
15698
- return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
15699
- },
15700
- /**
15701
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
15702
- * @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.
15703
15646
  * @param {*} [options] Override http request option.
15704
15647
  * @throws {RequiredError}
15705
15648
  */
15706
- getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response> {
15707
- 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));
15708
15651
  },
15709
15652
  /**
15710
15653
  *
@@ -15760,24 +15703,24 @@ export interface BookingsApiCreateGuestBookingRequest {
15760
15703
  }
15761
15704
 
15762
15705
  /**
15763
- * Request parameters for estimateOpenBookingJoinPrice operation in BookingsApi.
15706
+ * Request parameters for estimateOpenBookingJoin operation in BookingsApi.
15764
15707
  * @export
15765
- * @interface BookingsApiEstimateOpenBookingJoinPriceRequest
15708
+ * @interface BookingsApiEstimateOpenBookingJoinRequest
15766
15709
  */
15767
- export interface BookingsApiEstimateOpenBookingJoinPriceRequest {
15710
+ export interface BookingsApiEstimateOpenBookingJoinRequest {
15768
15711
  /**
15769
15712
  *
15770
15713
  * @type {string}
15771
- * @memberof BookingsApiEstimateOpenBookingJoinPrice
15714
+ * @memberof BookingsApiEstimateOpenBookingJoin
15772
15715
  */
15773
15716
  readonly bookingId: string
15774
15717
 
15775
15718
  /**
15776
15719
  *
15777
- * @type {number}
15778
- * @memberof BookingsApiEstimateOpenBookingJoinPrice
15720
+ * @type {EstimateOpenBookingJoinRequest}
15721
+ * @memberof BookingsApiEstimateOpenBookingJoin
15779
15722
  */
15780
- readonly creditToUseInCents?: number
15723
+ readonly estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest
15781
15724
  }
15782
15725
 
15783
15726
  /**
@@ -15823,36 +15766,15 @@ export interface BookingsApiGetGuestBookingPriceRequest {
15823
15766
  }
15824
15767
 
15825
15768
  /**
15826
- * Request parameters for getJoinPriceEstimate operation in BookingsApi.
15769
+ * Request parameters for getOpenBookingBasePrice operation in BookingsApi.
15827
15770
  * @export
15828
- * @interface BookingsApiGetJoinPriceEstimateRequest
15771
+ * @interface BookingsApiGetOpenBookingBasePriceRequest
15829
15772
  */
15830
- export interface BookingsApiGetJoinPriceEstimateRequest {
15773
+ export interface BookingsApiGetOpenBookingBasePriceRequest {
15831
15774
  /**
15832
15775
  *
15833
15776
  * @type {string}
15834
- * @memberof BookingsApiGetJoinPriceEstimate
15835
- */
15836
- readonly bookingId: string
15837
-
15838
- /**
15839
- *
15840
- * @type {number}
15841
- * @memberof BookingsApiGetJoinPriceEstimate
15842
- */
15843
- readonly creditToUseInCents?: number
15844
- }
15845
-
15846
- /**
15847
- * Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
15848
- * @export
15849
- * @interface BookingsApiGetOpenBookingJoinPriceRequest
15850
- */
15851
- export interface BookingsApiGetOpenBookingJoinPriceRequest {
15852
- /**
15853
- *
15854
- * @type {string}
15855
- * @memberof BookingsApiGetOpenBookingJoinPrice
15777
+ * @memberof BookingsApiGetOpenBookingBasePrice
15856
15778
  */
15857
15779
  readonly bookingId: string
15858
15780
  }
@@ -16009,14 +15931,14 @@ export class BookingsApi extends BaseAPI {
16009
15931
  }
16010
15932
 
16011
15933
  /**
16012
- * Estimer le prix pour rejoindre une réservation ouverte
16013
- * @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.
16014
15936
  * @param {*} [options] Override http request option.
16015
15937
  * @throws {RequiredError}
16016
15938
  * @memberof BookingsApi
16017
15939
  */
16018
- public estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
16019
- 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));
16020
15942
  }
16021
15943
 
16022
15944
  /**
@@ -16053,25 +15975,14 @@ export class BookingsApi extends BaseAPI {
16053
15975
  }
16054
15976
 
16055
15977
  /**
16056
- * 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
16057
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
16058
- * @param {*} [options] Override http request option.
16059
- * @throws {RequiredError}
16060
- * @memberof BookingsApi
16061
- */
16062
- public getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig) {
16063
- return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
16064
- }
16065
-
16066
- /**
16067
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
16068
- * @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.
16069
15980
  * @param {*} [options] Override http request option.
16070
15981
  * @throws {RequiredError}
16071
15982
  * @memberof BookingsApi
16072
15983
  */
16073
- public getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
16074
- 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));
16075
15986
  }
16076
15987
 
16077
15988
  /**