@tennac-booking/sdk 1.0.149 → 1.0.151

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.149
7
+ * The version of the OpenAPI document: 1.0.151
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4172,6 +4172,57 @@ export const CreateEventRequestVisibilityTypeEnum = {
4172
4172
 
4173
4173
  export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisibilityTypeEnum[keyof typeof CreateEventRequestVisibilityTypeEnum];
4174
4174
 
4175
+ /**
4176
+ *
4177
+ * @export
4178
+ * @interface CreateGuestBookingRequest
4179
+ */
4180
+ export interface CreateGuestBookingRequest {
4181
+ /**
4182
+ * ID du créneau à réserver
4183
+ * @type {Array<string>}
4184
+ * @memberof CreateGuestBookingRequest
4185
+ */
4186
+ 'slotIds': Array<string>;
4187
+ /**
4188
+ * Prénom de l\'invité
4189
+ * @type {string}
4190
+ * @memberof CreateGuestBookingRequest
4191
+ */
4192
+ 'firstName': string;
4193
+ /**
4194
+ * Nom de famille de l\'invité
4195
+ * @type {string}
4196
+ * @memberof CreateGuestBookingRequest
4197
+ */
4198
+ 'lastName': string;
4199
+ /**
4200
+ * Email de l\'invité
4201
+ * @type {string}
4202
+ * @memberof CreateGuestBookingRequest
4203
+ */
4204
+ 'email': string;
4205
+ /**
4206
+ * Numéro de téléphone de l\'invité
4207
+ * @type {string}
4208
+ * @memberof CreateGuestBookingRequest
4209
+ */
4210
+ 'phoneNumber'?: string;
4211
+ /**
4212
+ *
4213
+ * @type {PaymentMethod}
4214
+ * @memberof CreateGuestBookingRequest
4215
+ */
4216
+ 'paymentMethod': PaymentMethod;
4217
+ /**
4218
+ * Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
4219
+ * @type {boolean}
4220
+ * @memberof CreateGuestBookingRequest
4221
+ */
4222
+ 'useDefaultPaymentMethod'?: boolean;
4223
+ }
4224
+
4225
+
4175
4226
  /**
4176
4227
  *
4177
4228
  * @export
@@ -5773,6 +5824,32 @@ export interface GetCourtsByClubAndSportById200Response {
5773
5824
  */
5774
5825
  'courts': Array<ICourtData>;
5775
5826
  }
5827
+ /**
5828
+ *
5829
+ * @export
5830
+ * @interface GetGuestBookingPrice200Response
5831
+ */
5832
+ export interface GetGuestBookingPrice200Response {
5833
+ /**
5834
+ *
5835
+ * @type {number}
5836
+ * @memberof GetGuestBookingPrice200Response
5837
+ */
5838
+ 'totalPrice': number;
5839
+ }
5840
+ /**
5841
+ *
5842
+ * @export
5843
+ * @interface GetGuestBookingPriceRequest
5844
+ */
5845
+ export interface GetGuestBookingPriceRequest {
5846
+ /**
5847
+ *
5848
+ * @type {Array<string>}
5849
+ * @memberof GetGuestBookingPriceRequest
5850
+ */
5851
+ 'slotIds': Array<string>;
5852
+ }
5776
5853
  /**
5777
5854
  *
5778
5855
  * @export
@@ -5811,6 +5888,25 @@ export interface GetOpenBookings200Response {
5811
5888
  */
5812
5889
  'bookings': Array<BookingInfo>;
5813
5890
  }
5891
+ /**
5892
+ *
5893
+ * @export
5894
+ * @interface GetOpenEventBookingJoinPrice200Response
5895
+ */
5896
+ export interface GetOpenEventBookingJoinPrice200Response {
5897
+ /**
5898
+ *
5899
+ * @type {number}
5900
+ * @memberof GetOpenEventBookingJoinPrice200Response
5901
+ */
5902
+ 'availableCreditsInCents': number;
5903
+ /**
5904
+ *
5905
+ * @type {number}
5906
+ * @memberof GetOpenEventBookingJoinPrice200Response
5907
+ */
5908
+ 'priceToPayInCents': number;
5909
+ }
5814
5910
  /**
5815
5911
  *
5816
5912
  * @export
@@ -6139,7 +6235,7 @@ export interface IUserAttributes {
6139
6235
  * @type {boolean}
6140
6236
  * @memberof IUserAttributes
6141
6237
  */
6142
- 'isAccountVerified': boolean;
6238
+ 'isAccountVerified'?: boolean;
6143
6239
  /**
6144
6240
  *
6145
6241
  * @type {Array<ILevelBySports>}
@@ -6211,7 +6307,13 @@ export interface IUserAttributes {
6211
6307
  * @type {boolean}
6212
6308
  * @memberof IUserAttributes
6213
6309
  */
6214
- 'isAdmin': boolean;
6310
+ 'isGuest'?: boolean;
6311
+ /**
6312
+ *
6313
+ * @type {boolean}
6314
+ * @memberof IUserAttributes
6315
+ */
6316
+ 'isAdmin'?: boolean;
6215
6317
  /**
6216
6318
  *
6217
6319
  * @type {boolean}
@@ -6223,13 +6325,13 @@ export interface IUserAttributes {
6223
6325
  * @type {string}
6224
6326
  * @memberof IUserAttributes
6225
6327
  */
6226
- 'createdAt': string;
6328
+ 'createdAt'?: string;
6227
6329
  /**
6228
6330
  *
6229
6331
  * @type {string}
6230
6332
  * @memberof IUserAttributes
6231
6333
  */
6232
- 'updatedAt': string;
6334
+ 'updatedAt'?: string;
6233
6335
  /**
6234
6336
  *
6235
6337
  * @type {boolean}
@@ -6253,7 +6355,7 @@ export interface IUserAttributes {
6253
6355
  * @type {boolean}
6254
6356
  * @memberof IUserAttributes
6255
6357
  */
6256
- 'isProfileVisible': boolean;
6358
+ 'isProfileVisible'?: boolean;
6257
6359
  /**
6258
6360
  *
6259
6361
  * @type {Array<string>}
@@ -9831,7 +9933,7 @@ export interface StaffUserProfileResponse {
9831
9933
  * @type {boolean}
9832
9934
  * @memberof StaffUserProfileResponse
9833
9935
  */
9834
- 'isAccountVerified': boolean;
9936
+ 'isAccountVerified'?: boolean;
9835
9937
  /**
9836
9938
  *
9837
9939
  * @type {Array<ILevelBySports>}
@@ -9903,7 +10005,13 @@ export interface StaffUserProfileResponse {
9903
10005
  * @type {boolean}
9904
10006
  * @memberof StaffUserProfileResponse
9905
10007
  */
9906
- 'isAdmin': boolean;
10008
+ 'isGuest'?: boolean;
10009
+ /**
10010
+ *
10011
+ * @type {boolean}
10012
+ * @memberof StaffUserProfileResponse
10013
+ */
10014
+ 'isAdmin'?: boolean;
9907
10015
  /**
9908
10016
  *
9909
10017
  * @type {boolean}
@@ -9915,13 +10023,13 @@ export interface StaffUserProfileResponse {
9915
10023
  * @type {string}
9916
10024
  * @memberof StaffUserProfileResponse
9917
10025
  */
9918
- 'createdAt': string;
10026
+ 'createdAt'?: string;
9919
10027
  /**
9920
10028
  *
9921
10029
  * @type {string}
9922
10030
  * @memberof StaffUserProfileResponse
9923
10031
  */
9924
- 'updatedAt': string;
10032
+ 'updatedAt'?: string;
9925
10033
  /**
9926
10034
  *
9927
10035
  * @type {boolean}
@@ -9945,7 +10053,7 @@ export interface StaffUserProfileResponse {
9945
10053
  * @type {boolean}
9946
10054
  * @memberof StaffUserProfileResponse
9947
10055
  */
9948
- 'isProfileVisible': boolean;
10056
+ 'isProfileVisible'?: boolean;
9949
10057
  /**
9950
10058
  *
9951
10059
  * @type {Array<string>}
@@ -11267,6 +11375,18 @@ export interface UpdateUserRequestBody {
11267
11375
  * @memberof UpdateUserRequestBody
11268
11376
  */
11269
11377
  'phone'?: string;
11378
+ /**
11379
+ *
11380
+ * @type {Gender}
11381
+ * @memberof UpdateUserRequestBody
11382
+ */
11383
+ 'gender'?: Gender;
11384
+ /**
11385
+ *
11386
+ * @type {string}
11387
+ * @memberof UpdateUserRequestBody
11388
+ */
11389
+ 'birthDate'?: string;
11270
11390
  /**
11271
11391
  *
11272
11392
  * @type {string}
@@ -11304,6 +11424,8 @@ export interface UpdateUserRequestBody {
11304
11424
  */
11305
11425
  'location'?: RegisterRequestBodyLocation;
11306
11426
  }
11427
+
11428
+
11307
11429
  /**
11308
11430
  *
11309
11431
  * @export
@@ -11883,7 +12005,7 @@ export interface UserProfileResponse {
11883
12005
  * @type {boolean}
11884
12006
  * @memberof UserProfileResponse
11885
12007
  */
11886
- 'isAccountVerified': boolean;
12008
+ 'isAccountVerified'?: boolean;
11887
12009
  /**
11888
12010
  *
11889
12011
  * @type {Array<ILevelBySports>}
@@ -11955,7 +12077,13 @@ export interface UserProfileResponse {
11955
12077
  * @type {boolean}
11956
12078
  * @memberof UserProfileResponse
11957
12079
  */
11958
- 'isAdmin': boolean;
12080
+ 'isGuest'?: boolean;
12081
+ /**
12082
+ *
12083
+ * @type {boolean}
12084
+ * @memberof UserProfileResponse
12085
+ */
12086
+ 'isAdmin'?: boolean;
11959
12087
  /**
11960
12088
  *
11961
12089
  * @type {boolean}
@@ -11967,13 +12095,13 @@ export interface UserProfileResponse {
11967
12095
  * @type {string}
11968
12096
  * @memberof UserProfileResponse
11969
12097
  */
11970
- 'createdAt': string;
12098
+ 'createdAt'?: string;
11971
12099
  /**
11972
12100
  *
11973
12101
  * @type {string}
11974
12102
  * @memberof UserProfileResponse
11975
12103
  */
11976
- 'updatedAt': string;
12104
+ 'updatedAt'?: string;
11977
12105
  /**
11978
12106
  *
11979
12107
  * @type {boolean}
@@ -11997,7 +12125,7 @@ export interface UserProfileResponse {
11997
12125
  * @type {boolean}
11998
12126
  * @memberof UserProfileResponse
11999
12127
  */
12000
- 'isProfileVisible': boolean;
12128
+ 'isProfileVisible'?: boolean;
12001
12129
  /**
12002
12130
  *
12003
12131
  * @type {Array<string>}
@@ -12215,6 +12343,41 @@ export interface YearlyTurnoverResponse {
12215
12343
  */
12216
12344
  export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
12217
12345
  return {
12346
+ /**
12347
+ * Créer une réservation en tant qu\'invité (guest)
12348
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
12349
+ * @param {*} [options] Override http request option.
12350
+ * @throws {RequiredError}
12351
+ */
12352
+ createGuestBooking: async (createGuestBookingRequest: CreateGuestBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12353
+ // verify required parameter 'createGuestBookingRequest' is not null or undefined
12354
+ assertParamExists('createGuestBooking', 'createGuestBookingRequest', createGuestBookingRequest)
12355
+ const localVarPath = `/api/bookings/guest`;
12356
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12357
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12358
+ let baseOptions;
12359
+ if (configuration) {
12360
+ baseOptions = configuration.baseOptions;
12361
+ }
12362
+
12363
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12364
+ const localVarHeaderParameter = {} as any;
12365
+ const localVarQueryParameter = {} as any;
12366
+
12367
+
12368
+
12369
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12370
+
12371
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12373
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12374
+ localVarRequestOptions.data = serializeDataIfNeeded(createGuestBookingRequest, localVarRequestOptions, configuration)
12375
+
12376
+ return {
12377
+ url: toPathString(localVarUrlObj),
12378
+ options: localVarRequestOptions,
12379
+ };
12380
+ },
12218
12381
  /**
12219
12382
  * Estimer le prix pour rejoindre une réservation ouverte
12220
12383
  * @param {string} bookingId
@@ -12333,6 +12496,78 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12333
12496
  options: localVarRequestOptions,
12334
12497
  };
12335
12498
  },
12499
+ /**
12500
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
12501
+ * @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
12502
+ * @param {*} [options] Override http request option.
12503
+ * @throws {RequiredError}
12504
+ */
12505
+ getGuestBookingPrice: async (getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12506
+ // verify required parameter 'getGuestBookingPriceRequest' is not null or undefined
12507
+ assertParamExists('getGuestBookingPrice', 'getGuestBookingPriceRequest', getGuestBookingPriceRequest)
12508
+ const localVarPath = `/api/bookings/guest/booking-price`;
12509
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12510
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12511
+ let baseOptions;
12512
+ if (configuration) {
12513
+ baseOptions = configuration.baseOptions;
12514
+ }
12515
+
12516
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12517
+ const localVarHeaderParameter = {} as any;
12518
+ const localVarQueryParameter = {} as any;
12519
+
12520
+
12521
+
12522
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12523
+
12524
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12526
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12527
+ localVarRequestOptions.data = serializeDataIfNeeded(getGuestBookingPriceRequest, localVarRequestOptions, configuration)
12528
+
12529
+ return {
12530
+ url: toPathString(localVarUrlObj),
12531
+ options: localVarRequestOptions,
12532
+ };
12533
+ },
12534
+ /**
12535
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12536
+ * @param {string} bookingId
12537
+ * @param {*} [options] Override http request option.
12538
+ * @throws {RequiredError}
12539
+ */
12540
+ getOpenBookingJoinPrice: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12541
+ // verify required parameter 'bookingId' is not null or undefined
12542
+ assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId)
12543
+ const localVarPath = `/api/bookings/{bookingId}/open/join-price`
12544
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12546
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12547
+ let baseOptions;
12548
+ if (configuration) {
12549
+ baseOptions = configuration.baseOptions;
12550
+ }
12551
+
12552
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12553
+ const localVarHeaderParameter = {} as any;
12554
+ const localVarQueryParameter = {} as any;
12555
+
12556
+ // authentication bearerAuth required
12557
+ // http bearer authentication required
12558
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12559
+
12560
+
12561
+
12562
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12563
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12564
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12565
+
12566
+ return {
12567
+ url: toPathString(localVarUrlObj),
12568
+ options: localVarRequestOptions,
12569
+ };
12570
+ },
12336
12571
  /**
12337
12572
  *
12338
12573
  * @param {string} [clubId]
@@ -12545,6 +12780,18 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12545
12780
  export const BookingsApiFp = function(configuration?: Configuration) {
12546
12781
  const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
12547
12782
  return {
12783
+ /**
12784
+ * Créer une réservation en tant qu\'invité (guest)
12785
+ * @param {CreateGuestBookingRequest} createGuestBookingRequest
12786
+ * @param {*} [options] Override http request option.
12787
+ * @throws {RequiredError}
12788
+ */
12789
+ async createGuestBooking(createGuestBookingRequest: CreateGuestBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>> {
12790
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createGuestBooking(createGuestBookingRequest, options);
12791
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12792
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.createGuestBooking']?.[localVarOperationServerIndex]?.url;
12793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12794
+ },
12548
12795
  /**
12549
12796
  * Estimer le prix pour rejoindre une réservation ouverte
12550
12797
  * @param {string} bookingId
@@ -12582,6 +12829,30 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12582
12829
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
12583
12830
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12584
12831
  },
12832
+ /**
12833
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
12834
+ * @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
12835
+ * @param {*} [options] Override http request option.
12836
+ * @throws {RequiredError}
12837
+ */
12838
+ async getGuestBookingPrice(getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGuestBookingPrice200Response>> {
12839
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGuestBookingPrice(getGuestBookingPriceRequest, options);
12840
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12841
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getGuestBookingPrice']?.[localVarOperationServerIndex]?.url;
12842
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12843
+ },
12844
+ /**
12845
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12846
+ * @param {string} bookingId
12847
+ * @param {*} [options] Override http request option.
12848
+ * @throws {RequiredError}
12849
+ */
12850
+ async getOpenBookingJoinPrice(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>> {
12851
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
12852
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12853
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
12854
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12855
+ },
12585
12856
  /**
12586
12857
  *
12587
12858
  * @param {string} [clubId]
@@ -12651,6 +12922,15 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12651
12922
  export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12652
12923
  const localVarFp = BookingsApiFp(configuration)
12653
12924
  return {
12925
+ /**
12926
+ * Créer une réservation en tant qu\'invité (guest)
12927
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
12928
+ * @param {*} [options] Override http request option.
12929
+ * @throws {RequiredError}
12930
+ */
12931
+ createGuestBooking(requestParameters: BookingsApiCreateGuestBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
12932
+ return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
12933
+ },
12654
12934
  /**
12655
12935
  * Estimer le prix pour rejoindre une réservation ouverte
12656
12936
  * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -12678,6 +12958,24 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12678
12958
  getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
12679
12959
  return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
12680
12960
  },
12961
+ /**
12962
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
12963
+ * @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
12964
+ * @param {*} [options] Override http request option.
12965
+ * @throws {RequiredError}
12966
+ */
12967
+ getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response> {
12968
+ return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
12969
+ },
12970
+ /**
12971
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12972
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
12973
+ * @param {*} [options] Override http request option.
12974
+ * @throws {RequiredError}
12975
+ */
12976
+ getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response> {
12977
+ return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
12978
+ },
12681
12979
  /**
12682
12980
  *
12683
12981
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -12717,6 +13015,20 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12717
13015
  };
12718
13016
  };
12719
13017
 
13018
+ /**
13019
+ * Request parameters for createGuestBooking operation in BookingsApi.
13020
+ * @export
13021
+ * @interface BookingsApiCreateGuestBookingRequest
13022
+ */
13023
+ export interface BookingsApiCreateGuestBookingRequest {
13024
+ /**
13025
+ *
13026
+ * @type {CreateGuestBookingRequest}
13027
+ * @memberof BookingsApiCreateGuestBooking
13028
+ */
13029
+ readonly createGuestBookingRequest: CreateGuestBookingRequest
13030
+ }
13031
+
12720
13032
  /**
12721
13033
  * Request parameters for estimateOpenBookingJoinPrice operation in BookingsApi.
12722
13034
  * @export
@@ -12766,6 +13078,34 @@ export interface BookingsApiGetBookingPriceRequest {
12766
13078
  readonly bookingPriceBody: BookingPriceBody
12767
13079
  }
12768
13080
 
13081
+ /**
13082
+ * Request parameters for getGuestBookingPrice operation in BookingsApi.
13083
+ * @export
13084
+ * @interface BookingsApiGetGuestBookingPriceRequest
13085
+ */
13086
+ export interface BookingsApiGetGuestBookingPriceRequest {
13087
+ /**
13088
+ *
13089
+ * @type {GetGuestBookingPriceRequest}
13090
+ * @memberof BookingsApiGetGuestBookingPrice
13091
+ */
13092
+ readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest
13093
+ }
13094
+
13095
+ /**
13096
+ * Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
13097
+ * @export
13098
+ * @interface BookingsApiGetOpenBookingJoinPriceRequest
13099
+ */
13100
+ export interface BookingsApiGetOpenBookingJoinPriceRequest {
13101
+ /**
13102
+ *
13103
+ * @type {string}
13104
+ * @memberof BookingsApiGetOpenBookingJoinPrice
13105
+ */
13106
+ readonly bookingId: string
13107
+ }
13108
+
12769
13109
  /**
12770
13110
  * Request parameters for getOpenBookings operation in BookingsApi.
12771
13111
  * @export
@@ -12906,6 +13246,17 @@ export interface BookingsApiLeaveOpenBookingRequest {
12906
13246
  * @extends {BaseAPI}
12907
13247
  */
12908
13248
  export class BookingsApi extends BaseAPI {
13249
+ /**
13250
+ * Créer une réservation en tant qu\'invité (guest)
13251
+ * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
13252
+ * @param {*} [options] Override http request option.
13253
+ * @throws {RequiredError}
13254
+ * @memberof BookingsApi
13255
+ */
13256
+ public createGuestBooking(requestParameters: BookingsApiCreateGuestBookingRequest, options?: RawAxiosRequestConfig) {
13257
+ return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
13258
+ }
13259
+
12909
13260
  /**
12910
13261
  * Estimer le prix pour rejoindre une réservation ouverte
12911
13262
  * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -12939,6 +13290,28 @@ export class BookingsApi extends BaseAPI {
12939
13290
  return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
12940
13291
  }
12941
13292
 
13293
+ /**
13294
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
13295
+ * @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
13296
+ * @param {*} [options] Override http request option.
13297
+ * @throws {RequiredError}
13298
+ * @memberof BookingsApi
13299
+ */
13300
+ public getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig) {
13301
+ return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
13302
+ }
13303
+
13304
+ /**
13305
+ * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
13306
+ * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
13307
+ * @param {*} [options] Override http request option.
13308
+ * @throws {RequiredError}
13309
+ * @memberof BookingsApi
13310
+ */
13311
+ public getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
13312
+ return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
13313
+ }
13314
+
12942
13315
  /**
12943
13316
  *
12944
13317
  * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
@@ -22825,6 +23198,43 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
22825
23198
 
22826
23199
 
22827
23200
 
23201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23203
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23204
+
23205
+ return {
23206
+ url: toPathString(localVarUrlObj),
23207
+ options: localVarRequestOptions,
23208
+ };
23209
+ },
23210
+ /**
23211
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
23212
+ * @param {string} eventBookingId
23213
+ * @param {*} [options] Override http request option.
23214
+ * @throws {RequiredError}
23215
+ */
23216
+ getOpenEventBookingJoinPrice: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23217
+ // verify required parameter 'eventBookingId' is not null or undefined
23218
+ assertParamExists('getOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId)
23219
+ const localVarPath = `/api/events/{eventBookingId}/open/join-price`
23220
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
23221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23222
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23223
+ let baseOptions;
23224
+ if (configuration) {
23225
+ baseOptions = configuration.baseOptions;
23226
+ }
23227
+
23228
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
23229
+ const localVarHeaderParameter = {} as any;
23230
+ const localVarQueryParameter = {} as any;
23231
+
23232
+ // authentication bearerAuth required
23233
+ // http bearer authentication required
23234
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
23235
+
23236
+
23237
+
22828
23238
  setSearchParams(localVarUrlObj, localVarQueryParameter);
22829
23239
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22830
23240
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -23144,6 +23554,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
23144
23554
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
23145
23555
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23146
23556
  },
23557
+ /**
23558
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
23559
+ * @param {string} eventBookingId
23560
+ * @param {*} [options] Override http request option.
23561
+ * @throws {RequiredError}
23562
+ */
23563
+ async getOpenEventBookingJoinPrice(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>> {
23564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenEventBookingJoinPrice(eventBookingId, options);
23565
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23566
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.getOpenEventBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
23567
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23568
+ },
23147
23569
  /**
23148
23570
  *
23149
23571
  * @param {string} [clubId]
@@ -23268,6 +23690,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
23268
23690
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
23269
23691
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
23270
23692
  },
23693
+ /**
23694
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
23695
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
23696
+ * @param {*} [options] Override http request option.
23697
+ * @throws {RequiredError}
23698
+ */
23699
+ getOpenEventBookingJoinPrice(requestParameters: EventsApiGetOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response> {
23700
+ return localVarFp.getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
23701
+ },
23271
23702
  /**
23272
23703
  *
23273
23704
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
@@ -23409,6 +23840,20 @@ export interface EventsApiGetEventByIdRequest {
23409
23840
  readonly userId?: string
23410
23841
  }
23411
23842
 
23843
+ /**
23844
+ * Request parameters for getOpenEventBookingJoinPrice operation in EventsApi.
23845
+ * @export
23846
+ * @interface EventsApiGetOpenEventBookingJoinPriceRequest
23847
+ */
23848
+ export interface EventsApiGetOpenEventBookingJoinPriceRequest {
23849
+ /**
23850
+ *
23851
+ * @type {string}
23852
+ * @memberof EventsApiGetOpenEventBookingJoinPrice
23853
+ */
23854
+ readonly eventBookingId: string
23855
+ }
23856
+
23412
23857
  /**
23413
23858
  * Request parameters for getOpenEventBookings operation in EventsApi.
23414
23859
  * @export
@@ -23586,6 +24031,17 @@ export class EventsApi extends BaseAPI {
23586
24031
  return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
23587
24032
  }
23588
24033
 
24034
+ /**
24035
+ * Estimer simplement le prix à payer pour rejoindre un événement ouvert
24036
+ * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
24037
+ * @param {*} [options] Override http request option.
24038
+ * @throws {RequiredError}
24039
+ * @memberof EventsApi
24040
+ */
24041
+ public getOpenEventBookingJoinPrice(requestParameters: EventsApiGetOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
24042
+ return EventsApiFp(this.configuration).getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
24043
+ }
24044
+
23589
24045
  /**
23590
24046
  *
23591
24047
  * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.