@tennac-booking/sdk 1.0.152 → 1.0.154
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/.openapi-generator/FILES +370 -368
- package/README.md +5 -2
- package/api.ts +130 -23
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +91 -23
- package/dist/api.js +68 -5
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +91 -23
- package/dist/esm/api.js +68 -5
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsApi.md +54 -1
- package/docs/EventResponse.md +2 -2
- package/docs/GetGuestBookingPrice200Response.md +20 -0
- package/docs/GetGuestBookingPriceRequest.md +20 -0
- package/docs/IUserAttributes.md +5 -5
- package/docs/StaffUserProfileResponse.md +5 -5
- package/docs/UpdateEventRequest.md +2 -2
- package/docs/UserProfileResponse.md +5 -5
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.154
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @tennac-booking/sdk@1.0.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.154 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -55,6 +55,7 @@ Class | Method | HTTP request | Description
|
|
|
55
55
|
*BookingsApi* | [**estimateOpenBookingJoinPrice**](docs/BookingsApi.md#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate |
|
|
56
56
|
*BookingsApi* | [**getBookingHistory**](docs/BookingsApi.md#getbookinghistory) | **GET** /api/bookings/history/{bookingId} |
|
|
57
57
|
*BookingsApi* | [**getBookingPrice**](docs/BookingsApi.md#getbookingprice) | **POST** /api/bookings/booking-price |
|
|
58
|
+
*BookingsApi* | [**getGuestBookingPrice**](docs/BookingsApi.md#getguestbookingprice) | **POST** /api/bookings/guest/booking-price |
|
|
58
59
|
*BookingsApi* | [**getOpenBookingJoinPrice**](docs/BookingsApi.md#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price |
|
|
59
60
|
*BookingsApi* | [**getOpenBookings**](docs/BookingsApi.md#getopenbookings) | **GET** /api/bookings/open |
|
|
60
61
|
*BookingsApi* | [**getQuickReservationSlots**](docs/BookingsApi.md#getquickreservationslots) | **GET** /api/bookings/quick-reservations |
|
|
@@ -411,6 +412,8 @@ Class | Method | HTTP request | Description
|
|
|
411
412
|
- [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
|
|
412
413
|
- [GetClubsWithVerificationDomains200ResponseInner](docs/GetClubsWithVerificationDomains200ResponseInner.md)
|
|
413
414
|
- [GetCourtsByClubAndSportById200Response](docs/GetCourtsByClubAndSportById200Response.md)
|
|
415
|
+
- [GetGuestBookingPrice200Response](docs/GetGuestBookingPrice200Response.md)
|
|
416
|
+
- [GetGuestBookingPriceRequest](docs/GetGuestBookingPriceRequest.md)
|
|
414
417
|
- [GetInfillPercentagePerPeriod200Response](docs/GetInfillPercentagePerPeriod200Response.md)
|
|
415
418
|
- [GetOpenBookings200Response](docs/GetOpenBookings200Response.md)
|
|
416
419
|
- [GetOpenEventBookingJoinPrice200Response](docs/GetOpenEventBookingJoinPrice200Response.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.154
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5410,7 +5410,7 @@ export interface EventResponse {
|
|
|
5410
5410
|
* @type {number}
|
|
5411
5411
|
* @memberof EventResponse
|
|
5412
5412
|
*/
|
|
5413
|
-
'
|
|
5413
|
+
'registrationOpenDaysBefore': number;
|
|
5414
5414
|
/**
|
|
5415
5415
|
*
|
|
5416
5416
|
* @type {string}
|
|
@@ -5824,6 +5824,32 @@ export interface GetCourtsByClubAndSportById200Response {
|
|
|
5824
5824
|
*/
|
|
5825
5825
|
'courts': Array<ICourtData>;
|
|
5826
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
|
+
}
|
|
5827
5853
|
/**
|
|
5828
5854
|
*
|
|
5829
5855
|
* @export
|
|
@@ -6209,7 +6235,7 @@ export interface IUserAttributes {
|
|
|
6209
6235
|
* @type {boolean}
|
|
6210
6236
|
* @memberof IUserAttributes
|
|
6211
6237
|
*/
|
|
6212
|
-
'isAccountVerified'
|
|
6238
|
+
'isAccountVerified'?: boolean;
|
|
6213
6239
|
/**
|
|
6214
6240
|
*
|
|
6215
6241
|
* @type {Array<ILevelBySports>}
|
|
@@ -6287,7 +6313,7 @@ export interface IUserAttributes {
|
|
|
6287
6313
|
* @type {boolean}
|
|
6288
6314
|
* @memberof IUserAttributes
|
|
6289
6315
|
*/
|
|
6290
|
-
'isAdmin'
|
|
6316
|
+
'isAdmin'?: boolean;
|
|
6291
6317
|
/**
|
|
6292
6318
|
*
|
|
6293
6319
|
* @type {boolean}
|
|
@@ -6299,13 +6325,13 @@ export interface IUserAttributes {
|
|
|
6299
6325
|
* @type {string}
|
|
6300
6326
|
* @memberof IUserAttributes
|
|
6301
6327
|
*/
|
|
6302
|
-
'createdAt'
|
|
6328
|
+
'createdAt'?: string;
|
|
6303
6329
|
/**
|
|
6304
6330
|
*
|
|
6305
6331
|
* @type {string}
|
|
6306
6332
|
* @memberof IUserAttributes
|
|
6307
6333
|
*/
|
|
6308
|
-
'updatedAt'
|
|
6334
|
+
'updatedAt'?: string;
|
|
6309
6335
|
/**
|
|
6310
6336
|
*
|
|
6311
6337
|
* @type {boolean}
|
|
@@ -6329,7 +6355,7 @@ export interface IUserAttributes {
|
|
|
6329
6355
|
* @type {boolean}
|
|
6330
6356
|
* @memberof IUserAttributes
|
|
6331
6357
|
*/
|
|
6332
|
-
'isProfileVisible'
|
|
6358
|
+
'isProfileVisible'?: boolean;
|
|
6333
6359
|
/**
|
|
6334
6360
|
*
|
|
6335
6361
|
* @type {Array<string>}
|
|
@@ -9907,7 +9933,7 @@ export interface StaffUserProfileResponse {
|
|
|
9907
9933
|
* @type {boolean}
|
|
9908
9934
|
* @memberof StaffUserProfileResponse
|
|
9909
9935
|
*/
|
|
9910
|
-
'isAccountVerified'
|
|
9936
|
+
'isAccountVerified'?: boolean;
|
|
9911
9937
|
/**
|
|
9912
9938
|
*
|
|
9913
9939
|
* @type {Array<ILevelBySports>}
|
|
@@ -9985,7 +10011,7 @@ export interface StaffUserProfileResponse {
|
|
|
9985
10011
|
* @type {boolean}
|
|
9986
10012
|
* @memberof StaffUserProfileResponse
|
|
9987
10013
|
*/
|
|
9988
|
-
'isAdmin'
|
|
10014
|
+
'isAdmin'?: boolean;
|
|
9989
10015
|
/**
|
|
9990
10016
|
*
|
|
9991
10017
|
* @type {boolean}
|
|
@@ -9997,13 +10023,13 @@ export interface StaffUserProfileResponse {
|
|
|
9997
10023
|
* @type {string}
|
|
9998
10024
|
* @memberof StaffUserProfileResponse
|
|
9999
10025
|
*/
|
|
10000
|
-
'createdAt'
|
|
10026
|
+
'createdAt'?: string;
|
|
10001
10027
|
/**
|
|
10002
10028
|
*
|
|
10003
10029
|
* @type {string}
|
|
10004
10030
|
* @memberof StaffUserProfileResponse
|
|
10005
10031
|
*/
|
|
10006
|
-
'updatedAt'
|
|
10032
|
+
'updatedAt'?: string;
|
|
10007
10033
|
/**
|
|
10008
10034
|
*
|
|
10009
10035
|
* @type {boolean}
|
|
@@ -10027,7 +10053,7 @@ export interface StaffUserProfileResponse {
|
|
|
10027
10053
|
* @type {boolean}
|
|
10028
10054
|
* @memberof StaffUserProfileResponse
|
|
10029
10055
|
*/
|
|
10030
|
-
'isProfileVisible'
|
|
10056
|
+
'isProfileVisible'?: boolean;
|
|
10031
10057
|
/**
|
|
10032
10058
|
*
|
|
10033
10059
|
* @type {Array<string>}
|
|
@@ -10975,10 +11001,10 @@ export interface UpdateEventRequest {
|
|
|
10975
11001
|
'levels'?: Array<string | null>;
|
|
10976
11002
|
/**
|
|
10977
11003
|
*
|
|
10978
|
-
* @type {
|
|
11004
|
+
* @type {number}
|
|
10979
11005
|
* @memberof UpdateEventRequest
|
|
10980
11006
|
*/
|
|
10981
|
-
'
|
|
11007
|
+
'registrationOpenDaysBefore'?: number;
|
|
10982
11008
|
/**
|
|
10983
11009
|
*
|
|
10984
11010
|
* @type {Array<EventSponsor>}
|
|
@@ -11979,7 +12005,7 @@ export interface UserProfileResponse {
|
|
|
11979
12005
|
* @type {boolean}
|
|
11980
12006
|
* @memberof UserProfileResponse
|
|
11981
12007
|
*/
|
|
11982
|
-
'isAccountVerified'
|
|
12008
|
+
'isAccountVerified'?: boolean;
|
|
11983
12009
|
/**
|
|
11984
12010
|
*
|
|
11985
12011
|
* @type {Array<ILevelBySports>}
|
|
@@ -12057,7 +12083,7 @@ export interface UserProfileResponse {
|
|
|
12057
12083
|
* @type {boolean}
|
|
12058
12084
|
* @memberof UserProfileResponse
|
|
12059
12085
|
*/
|
|
12060
|
-
'isAdmin'
|
|
12086
|
+
'isAdmin'?: boolean;
|
|
12061
12087
|
/**
|
|
12062
12088
|
*
|
|
12063
12089
|
* @type {boolean}
|
|
@@ -12069,13 +12095,13 @@ export interface UserProfileResponse {
|
|
|
12069
12095
|
* @type {string}
|
|
12070
12096
|
* @memberof UserProfileResponse
|
|
12071
12097
|
*/
|
|
12072
|
-
'createdAt'
|
|
12098
|
+
'createdAt'?: string;
|
|
12073
12099
|
/**
|
|
12074
12100
|
*
|
|
12075
12101
|
* @type {string}
|
|
12076
12102
|
* @memberof UserProfileResponse
|
|
12077
12103
|
*/
|
|
12078
|
-
'updatedAt'
|
|
12104
|
+
'updatedAt'?: string;
|
|
12079
12105
|
/**
|
|
12080
12106
|
*
|
|
12081
12107
|
* @type {boolean}
|
|
@@ -12099,7 +12125,7 @@ export interface UserProfileResponse {
|
|
|
12099
12125
|
* @type {boolean}
|
|
12100
12126
|
* @memberof UserProfileResponse
|
|
12101
12127
|
*/
|
|
12102
|
-
'isProfileVisible'
|
|
12128
|
+
'isProfileVisible'?: boolean;
|
|
12103
12129
|
/**
|
|
12104
12130
|
*
|
|
12105
12131
|
* @type {Array<string>}
|
|
@@ -12318,7 +12344,7 @@ export interface YearlyTurnoverResponse {
|
|
|
12318
12344
|
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12319
12345
|
return {
|
|
12320
12346
|
/**
|
|
12321
|
-
* Créer une réservation en tant qu\'invité (guest)
|
|
12347
|
+
* Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
|
|
12322
12348
|
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
12323
12349
|
* @param {*} [options] Override http request option.
|
|
12324
12350
|
* @throws {RequiredError}
|
|
@@ -12470,6 +12496,41 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12470
12496
|
options: localVarRequestOptions,
|
|
12471
12497
|
};
|
|
12472
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
|
+
},
|
|
12473
12534
|
/**
|
|
12474
12535
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12475
12536
|
* @param {string} bookingId
|
|
@@ -12720,7 +12781,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12720
12781
|
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
12721
12782
|
return {
|
|
12722
12783
|
/**
|
|
12723
|
-
* Créer une réservation en tant qu\'invité (guest)
|
|
12784
|
+
* Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
|
|
12724
12785
|
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
12725
12786
|
* @param {*} [options] Override http request option.
|
|
12726
12787
|
* @throws {RequiredError}
|
|
@@ -12768,6 +12829,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12768
12829
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
12769
12830
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12770
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
|
+
},
|
|
12771
12844
|
/**
|
|
12772
12845
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12773
12846
|
* @param {string} bookingId
|
|
@@ -12850,7 +12923,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12850
12923
|
const localVarFp = BookingsApiFp(configuration)
|
|
12851
12924
|
return {
|
|
12852
12925
|
/**
|
|
12853
|
-
* Créer une réservation en tant qu\'invité (guest)
|
|
12926
|
+
* Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
|
|
12854
12927
|
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
12855
12928
|
* @param {*} [options] Override http request option.
|
|
12856
12929
|
* @throws {RequiredError}
|
|
@@ -12885,6 +12958,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12885
12958
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
|
|
12886
12959
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
12887
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
|
+
},
|
|
12888
12970
|
/**
|
|
12889
12971
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12890
12972
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -12996,6 +13078,20 @@ export interface BookingsApiGetBookingPriceRequest {
|
|
|
12996
13078
|
readonly bookingPriceBody: BookingPriceBody
|
|
12997
13079
|
}
|
|
12998
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
|
+
|
|
12999
13095
|
/**
|
|
13000
13096
|
* Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
|
|
13001
13097
|
* @export
|
|
@@ -13151,7 +13247,7 @@ export interface BookingsApiLeaveOpenBookingRequest {
|
|
|
13151
13247
|
*/
|
|
13152
13248
|
export class BookingsApi extends BaseAPI {
|
|
13153
13249
|
/**
|
|
13154
|
-
* Créer une réservation en tant qu\'invité (guest)
|
|
13250
|
+
* Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
|
|
13155
13251
|
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
13156
13252
|
* @param {*} [options] Override http request option.
|
|
13157
13253
|
* @throws {RequiredError}
|
|
@@ -13194,6 +13290,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
13194
13290
|
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
13195
13291
|
}
|
|
13196
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
|
+
|
|
13197
13304
|
/**
|
|
13198
13305
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13199
13306
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED