@tennac-booking/sdk 1.0.209 → 1.0.211
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 +3 -2
- package/README.md +7 -7
- package/api.ts +185 -256
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +177 -193
- package/dist/api.js +40 -109
- 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 +177 -193
- package/dist/esm/api.js +40 -109
- 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 +20 -74
- package/docs/ClubPageResponse.md +10 -0
- package/docs/ClubResponse.md +2 -0
- package/docs/CreateOpenBookingRequest.md +3 -5
- package/docs/EstimateOpenBookingJoinRequest.md +24 -0
- package/docs/JoinOpenBookingRequest.md +4 -2
- package/docs/OpenBookingBasePriceResponse.md +24 -0
- package/docs/OpenBookingJoinEstimateResponse.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/JoinPriceEstimateResponse.md +0 -38
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +0 -25
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.210
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2660,6 +2660,36 @@ 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>; };
|
|
2687
|
+
/**
|
|
2688
|
+
* Construct a type with a set of properties K of type T
|
|
2689
|
+
* @type {{ [key: string]: Array<number>; }}
|
|
2690
|
+
* @memberof ClubPageResponse
|
|
2691
|
+
*/
|
|
2692
|
+
'slotDurationsBySport'?: { [key: string]: Array<number>; };
|
|
2663
2693
|
/**
|
|
2664
2694
|
*
|
|
2665
2695
|
* @type {ClubPresentation}
|
|
@@ -3642,6 +3672,12 @@ export interface ClubResponse {
|
|
|
3642
3672
|
* @memberof ClubResponse
|
|
3643
3673
|
*/
|
|
3644
3674
|
'indoorOutdoorBySport'?: { [key: string]: Array<CourtEnvironment>; };
|
|
3675
|
+
/**
|
|
3676
|
+
* Construct a type with a set of properties K of type T
|
|
3677
|
+
* @type {{ [key: string]: Array<number>; }}
|
|
3678
|
+
* @memberof ClubResponse
|
|
3679
|
+
*/
|
|
3680
|
+
'slotDurationsBySport'?: { [key: string]: Array<number>; };
|
|
3645
3681
|
/**
|
|
3646
3682
|
* Autoriser plusieurs réservations en même temps
|
|
3647
3683
|
* @type {boolean}
|
|
@@ -4880,13 +4916,13 @@ export interface CreateOpenBookingRequest {
|
|
|
4880
4916
|
*/
|
|
4881
4917
|
'slotIds': Array<string>;
|
|
4882
4918
|
/**
|
|
4883
|
-
* Liste
|
|
4884
|
-
* @type {Array<
|
|
4919
|
+
* Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll)
|
|
4920
|
+
* @type {Array<PlayerShare>}
|
|
4885
4921
|
* @memberof CreateOpenBookingRequest
|
|
4886
4922
|
*/
|
|
4887
|
-
'
|
|
4923
|
+
'playerShares'?: Array<PlayerShare>;
|
|
4888
4924
|
/**
|
|
4889
|
-
* Indique si le créateur paie pour tous les joueurs initiaux
|
|
4925
|
+
* Indique si le créateur paie pour tous les joueurs initiaux (incompatible avec playerShares)
|
|
4890
4926
|
* @type {boolean}
|
|
4891
4927
|
* @memberof CreateOpenBookingRequest
|
|
4892
4928
|
*/
|
|
@@ -4927,13 +4963,6 @@ export interface CreateOpenBookingRequest {
|
|
|
4927
4963
|
* @memberof CreateOpenBookingRequest
|
|
4928
4964
|
*/
|
|
4929
4965
|
'minLevel'?: string;
|
|
4930
|
-
/**
|
|
4931
|
-
*
|
|
4932
|
-
* @type {Array<string>}
|
|
4933
|
-
* @memberof CreateOpenBookingRequest
|
|
4934
|
-
* @deprecated
|
|
4935
|
-
*/
|
|
4936
|
-
'initialPlayerIds'?: Array<string>;
|
|
4937
4966
|
}
|
|
4938
4967
|
|
|
4939
4968
|
|
|
@@ -5447,6 +5476,31 @@ export interface EstimateEventPriceRequestSharesInner {
|
|
|
5447
5476
|
*/
|
|
5448
5477
|
'playerId': string;
|
|
5449
5478
|
}
|
|
5479
|
+
/**
|
|
5480
|
+
*
|
|
5481
|
+
* @export
|
|
5482
|
+
* @interface EstimateOpenBookingJoinRequest
|
|
5483
|
+
*/
|
|
5484
|
+
export interface EstimateOpenBookingJoinRequest {
|
|
5485
|
+
/**
|
|
5486
|
+
*
|
|
5487
|
+
* @type {number}
|
|
5488
|
+
* @memberof EstimateOpenBookingJoinRequest
|
|
5489
|
+
*/
|
|
5490
|
+
'creditToUseInCents'?: number;
|
|
5491
|
+
/**
|
|
5492
|
+
*
|
|
5493
|
+
* @type {boolean}
|
|
5494
|
+
* @memberof EstimateOpenBookingJoinRequest
|
|
5495
|
+
*/
|
|
5496
|
+
'isCreatorPayingAll'?: boolean;
|
|
5497
|
+
/**
|
|
5498
|
+
*
|
|
5499
|
+
* @type {Array<PlayerShare>}
|
|
5500
|
+
* @memberof EstimateOpenBookingJoinRequest
|
|
5501
|
+
*/
|
|
5502
|
+
'playerShares'?: Array<PlayerShare>;
|
|
5503
|
+
}
|
|
5450
5504
|
/**
|
|
5451
5505
|
*
|
|
5452
5506
|
* @export
|
|
@@ -7846,6 +7900,18 @@ export interface JoinEventWaitList200Response {
|
|
|
7846
7900
|
* @interface JoinOpenBookingRequest
|
|
7847
7901
|
*/
|
|
7848
7902
|
export interface JoinOpenBookingRequest {
|
|
7903
|
+
/**
|
|
7904
|
+
* Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll)
|
|
7905
|
+
* @type {Array<PlayerShare>}
|
|
7906
|
+
* @memberof JoinOpenBookingRequest
|
|
7907
|
+
*/
|
|
7908
|
+
'playerShares'?: Array<PlayerShare>;
|
|
7909
|
+
/**
|
|
7910
|
+
* Indique si le joueur qui rejoint paie pour tous les joueurs qu\'il ajoute (incompatible avec playerShares)
|
|
7911
|
+
* @type {boolean}
|
|
7912
|
+
* @memberof JoinOpenBookingRequest
|
|
7913
|
+
*/
|
|
7914
|
+
'isCreatorPayingAll'?: boolean;
|
|
7849
7915
|
/**
|
|
7850
7916
|
*
|
|
7851
7917
|
* @type {PaymentMethod}
|
|
@@ -7864,12 +7930,6 @@ export interface JoinOpenBookingRequest {
|
|
|
7864
7930
|
* @memberof JoinOpenBookingRequest
|
|
7865
7931
|
*/
|
|
7866
7932
|
'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
7933
|
}
|
|
7874
7934
|
|
|
7875
7935
|
|
|
@@ -7968,98 +8028,6 @@ export interface JoinOpenEventResponse {
|
|
|
7968
8028
|
*/
|
|
7969
8029
|
'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
|
|
7970
8030
|
}
|
|
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
8031
|
/**
|
|
8064
8032
|
*
|
|
8065
8033
|
* @export
|
|
@@ -8541,6 +8509,31 @@ export interface OffPeakRule {
|
|
|
8541
8509
|
*/
|
|
8542
8510
|
'dayOfWeek': number;
|
|
8543
8511
|
}
|
|
8512
|
+
/**
|
|
8513
|
+
*
|
|
8514
|
+
* @export
|
|
8515
|
+
* @interface OpenBookingBasePriceResponse
|
|
8516
|
+
*/
|
|
8517
|
+
export interface OpenBookingBasePriceResponse {
|
|
8518
|
+
/**
|
|
8519
|
+
* Prix de base par joueur (en centimes) pour rejoindre
|
|
8520
|
+
* @type {number}
|
|
8521
|
+
* @memberof OpenBookingBasePriceResponse
|
|
8522
|
+
*/
|
|
8523
|
+
'basePricePerPlayer': number;
|
|
8524
|
+
/**
|
|
8525
|
+
* Prix total de base de la réservation (en centimes)
|
|
8526
|
+
* @type {number}
|
|
8527
|
+
* @memberof OpenBookingBasePriceResponse
|
|
8528
|
+
*/
|
|
8529
|
+
'totalBasePrice': number;
|
|
8530
|
+
/**
|
|
8531
|
+
* Nombre de places restantes
|
|
8532
|
+
* @type {number}
|
|
8533
|
+
* @memberof OpenBookingBasePriceResponse
|
|
8534
|
+
*/
|
|
8535
|
+
'availableSlots': number;
|
|
8536
|
+
}
|
|
8544
8537
|
/**
|
|
8545
8538
|
*
|
|
8546
8539
|
* @export
|
|
@@ -8652,6 +8645,37 @@ export interface OpenBookingInfo {
|
|
|
8652
8645
|
}
|
|
8653
8646
|
|
|
8654
8647
|
|
|
8648
|
+
/**
|
|
8649
|
+
*
|
|
8650
|
+
* @export
|
|
8651
|
+
* @interface OpenBookingJoinEstimateResponse
|
|
8652
|
+
*/
|
|
8653
|
+
export interface OpenBookingJoinEstimateResponse {
|
|
8654
|
+
/**
|
|
8655
|
+
* Prix de base par joueur (en centimes)
|
|
8656
|
+
* @type {number}
|
|
8657
|
+
* @memberof OpenBookingJoinEstimateResponse
|
|
8658
|
+
*/
|
|
8659
|
+
'basePricePerPlayer': number;
|
|
8660
|
+
/**
|
|
8661
|
+
* Détails de prix pour chaque joueur qui rejoint
|
|
8662
|
+
* @type {Array<PlayerPrice>}
|
|
8663
|
+
* @memberof OpenBookingJoinEstimateResponse
|
|
8664
|
+
*/
|
|
8665
|
+
'playersPrices': Array<PlayerPrice>;
|
|
8666
|
+
/**
|
|
8667
|
+
* Crédits disponibles pour l\'utilisateur qui demande à rejoindre (en centimes)
|
|
8668
|
+
* @type {number}
|
|
8669
|
+
* @memberof OpenBookingJoinEstimateResponse
|
|
8670
|
+
*/
|
|
8671
|
+
'availableCreditsInCents': number;
|
|
8672
|
+
/**
|
|
8673
|
+
* Nombre de places restantes
|
|
8674
|
+
* @type {number}
|
|
8675
|
+
* @memberof OpenBookingJoinEstimateResponse
|
|
8676
|
+
*/
|
|
8677
|
+
'availableSlots': number;
|
|
8678
|
+
}
|
|
8655
8679
|
/**
|
|
8656
8680
|
*
|
|
8657
8681
|
* @export
|
|
@@ -15039,16 +15063,18 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15039
15063
|
};
|
|
15040
15064
|
},
|
|
15041
15065
|
/**
|
|
15042
|
-
*
|
|
15066
|
+
* 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
15067
|
* @param {string} bookingId
|
|
15044
|
-
* @param {
|
|
15068
|
+
* @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
|
|
15045
15069
|
* @param {*} [options] Override http request option.
|
|
15046
15070
|
* @throws {RequiredError}
|
|
15047
15071
|
*/
|
|
15048
|
-
|
|
15072
|
+
estimateOpenBookingJoin: async (bookingId: string, estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15049
15073
|
// verify required parameter 'bookingId' is not null or undefined
|
|
15050
|
-
assertParamExists('
|
|
15051
|
-
|
|
15074
|
+
assertParamExists('estimateOpenBookingJoin', 'bookingId', bookingId)
|
|
15075
|
+
// verify required parameter 'estimateOpenBookingJoinRequest' is not null or undefined
|
|
15076
|
+
assertParamExists('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest)
|
|
15077
|
+
const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
|
|
15052
15078
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
15053
15079
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15054
15080
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15057,7 +15083,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15057
15083
|
baseOptions = configuration.baseOptions;
|
|
15058
15084
|
}
|
|
15059
15085
|
|
|
15060
|
-
const localVarRequestOptions = { method: '
|
|
15086
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15061
15087
|
const localVarHeaderParameter = {} as any;
|
|
15062
15088
|
const localVarQueryParameter = {} as any;
|
|
15063
15089
|
|
|
@@ -15065,15 +15091,14 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15065
15091
|
// http bearer authentication required
|
|
15066
15092
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15067
15093
|
|
|
15068
|
-
if (creditToUseInCents !== undefined) {
|
|
15069
|
-
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
15070
|
-
}
|
|
15071
|
-
|
|
15072
15094
|
|
|
15073
15095
|
|
|
15096
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15097
|
+
|
|
15074
15098
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15075
15099
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15076
15100
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15101
|
+
localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration)
|
|
15077
15102
|
|
|
15078
15103
|
return {
|
|
15079
15104
|
url: toPathString(localVarUrlObj),
|
|
@@ -15192,57 +15217,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15192
15217
|
};
|
|
15193
15218
|
},
|
|
15194
15219
|
/**
|
|
15195
|
-
*
|
|
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
|
|
15220
|
+
* 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
15221
|
* @param {string} bookingId
|
|
15239
15222
|
* @param {*} [options] Override http request option.
|
|
15240
15223
|
* @throws {RequiredError}
|
|
15241
15224
|
*/
|
|
15242
|
-
|
|
15225
|
+
getOpenBookingBasePrice: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15243
15226
|
// verify required parameter 'bookingId' is not null or undefined
|
|
15244
|
-
assertParamExists('
|
|
15245
|
-
const localVarPath = `/api/bookings/{bookingId}/open/
|
|
15227
|
+
assertParamExists('getOpenBookingBasePrice', 'bookingId', bookingId)
|
|
15228
|
+
const localVarPath = `/api/bookings/{bookingId}/open/base-price`
|
|
15246
15229
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
15247
15230
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15248
15231
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15495,16 +15478,16 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
15495
15478
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15496
15479
|
},
|
|
15497
15480
|
/**
|
|
15498
|
-
*
|
|
15481
|
+
* 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
15482
|
* @param {string} bookingId
|
|
15500
|
-
* @param {
|
|
15483
|
+
* @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
|
|
15501
15484
|
* @param {*} [options] Override http request option.
|
|
15502
15485
|
* @throws {RequiredError}
|
|
15503
15486
|
*/
|
|
15504
|
-
async
|
|
15505
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
15487
|
+
async estimateOpenBookingJoin(bookingId: string, estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingJoinEstimateResponse>> {
|
|
15488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options);
|
|
15506
15489
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15507
|
-
const localVarOperationServerBasePath = operationServerMap['BookingsApi.
|
|
15490
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.estimateOpenBookingJoin']?.[localVarOperationServerIndex]?.url;
|
|
15508
15491
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15509
15492
|
},
|
|
15510
15493
|
/**
|
|
@@ -15544,28 +15527,15 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
15544
15527
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15545
15528
|
},
|
|
15546
15529
|
/**
|
|
15547
|
-
*
|
|
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
|
|
15530
|
+
* 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
15531
|
* @param {string} bookingId
|
|
15562
15532
|
* @param {*} [options] Override http request option.
|
|
15563
15533
|
* @throws {RequiredError}
|
|
15564
15534
|
*/
|
|
15565
|
-
async
|
|
15566
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
15535
|
+
async getOpenBookingBasePrice(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingBasePriceResponse>> {
|
|
15536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingBasePrice(bookingId, options);
|
|
15567
15537
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15568
|
-
const localVarOperationServerBasePath = operationServerMap['BookingsApi.
|
|
15538
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookingBasePrice']?.[localVarOperationServerIndex]?.url;
|
|
15569
15539
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15570
15540
|
},
|
|
15571
15541
|
/**
|
|
@@ -15647,13 +15617,13 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
15647
15617
|
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
15648
15618
|
},
|
|
15649
15619
|
/**
|
|
15650
|
-
*
|
|
15651
|
-
* @param {
|
|
15620
|
+
* 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.
|
|
15621
|
+
* @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
|
|
15652
15622
|
* @param {*} [options] Override http request option.
|
|
15653
15623
|
* @throws {RequiredError}
|
|
15654
15624
|
*/
|
|
15655
|
-
|
|
15656
|
-
return localVarFp.
|
|
15625
|
+
estimateOpenBookingJoin(requestParameters: BookingsApiEstimateOpenBookingJoinRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingJoinEstimateResponse> {
|
|
15626
|
+
return localVarFp.estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(axios, basePath));
|
|
15657
15627
|
},
|
|
15658
15628
|
/**
|
|
15659
15629
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -15683,22 +15653,13 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
15683
15653
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
15684
15654
|
},
|
|
15685
15655
|
/**
|
|
15686
|
-
*
|
|
15687
|
-
* @param {
|
|
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.
|
|
15656
|
+
* 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.
|
|
15657
|
+
* @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
|
|
15697
15658
|
* @param {*} [options] Override http request option.
|
|
15698
15659
|
* @throws {RequiredError}
|
|
15699
15660
|
*/
|
|
15700
|
-
|
|
15701
|
-
return localVarFp.
|
|
15661
|
+
getOpenBookingBasePrice(requestParameters: BookingsApiGetOpenBookingBasePriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingBasePriceResponse> {
|
|
15662
|
+
return localVarFp.getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
15702
15663
|
},
|
|
15703
15664
|
/**
|
|
15704
15665
|
*
|
|
@@ -15754,24 +15715,24 @@ export interface BookingsApiCreateGuestBookingRequest {
|
|
|
15754
15715
|
}
|
|
15755
15716
|
|
|
15756
15717
|
/**
|
|
15757
|
-
* Request parameters for
|
|
15718
|
+
* Request parameters for estimateOpenBookingJoin operation in BookingsApi.
|
|
15758
15719
|
* @export
|
|
15759
|
-
* @interface
|
|
15720
|
+
* @interface BookingsApiEstimateOpenBookingJoinRequest
|
|
15760
15721
|
*/
|
|
15761
|
-
export interface
|
|
15722
|
+
export interface BookingsApiEstimateOpenBookingJoinRequest {
|
|
15762
15723
|
/**
|
|
15763
15724
|
*
|
|
15764
15725
|
* @type {string}
|
|
15765
|
-
* @memberof
|
|
15726
|
+
* @memberof BookingsApiEstimateOpenBookingJoin
|
|
15766
15727
|
*/
|
|
15767
15728
|
readonly bookingId: string
|
|
15768
15729
|
|
|
15769
15730
|
/**
|
|
15770
15731
|
*
|
|
15771
|
-
* @type {
|
|
15772
|
-
* @memberof
|
|
15732
|
+
* @type {EstimateOpenBookingJoinRequest}
|
|
15733
|
+
* @memberof BookingsApiEstimateOpenBookingJoin
|
|
15773
15734
|
*/
|
|
15774
|
-
readonly
|
|
15735
|
+
readonly estimateOpenBookingJoinRequest: EstimateOpenBookingJoinRequest
|
|
15775
15736
|
}
|
|
15776
15737
|
|
|
15777
15738
|
/**
|
|
@@ -15817,36 +15778,15 @@ export interface BookingsApiGetGuestBookingPriceRequest {
|
|
|
15817
15778
|
}
|
|
15818
15779
|
|
|
15819
15780
|
/**
|
|
15820
|
-
* Request parameters for
|
|
15821
|
-
* @export
|
|
15822
|
-
* @interface BookingsApiGetJoinPriceEstimateRequest
|
|
15823
|
-
*/
|
|
15824
|
-
export interface BookingsApiGetJoinPriceEstimateRequest {
|
|
15825
|
-
/**
|
|
15826
|
-
*
|
|
15827
|
-
* @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.
|
|
15781
|
+
* Request parameters for getOpenBookingBasePrice operation in BookingsApi.
|
|
15842
15782
|
* @export
|
|
15843
|
-
* @interface
|
|
15783
|
+
* @interface BookingsApiGetOpenBookingBasePriceRequest
|
|
15844
15784
|
*/
|
|
15845
|
-
export interface
|
|
15785
|
+
export interface BookingsApiGetOpenBookingBasePriceRequest {
|
|
15846
15786
|
/**
|
|
15847
15787
|
*
|
|
15848
15788
|
* @type {string}
|
|
15849
|
-
* @memberof
|
|
15789
|
+
* @memberof BookingsApiGetOpenBookingBasePrice
|
|
15850
15790
|
*/
|
|
15851
15791
|
readonly bookingId: string
|
|
15852
15792
|
}
|
|
@@ -16003,14 +15943,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
16003
15943
|
}
|
|
16004
15944
|
|
|
16005
15945
|
/**
|
|
16006
|
-
*
|
|
16007
|
-
* @param {
|
|
15946
|
+
* 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.
|
|
15947
|
+
* @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
|
|
16008
15948
|
* @param {*} [options] Override http request option.
|
|
16009
15949
|
* @throws {RequiredError}
|
|
16010
15950
|
* @memberof BookingsApi
|
|
16011
15951
|
*/
|
|
16012
|
-
public
|
|
16013
|
-
return BookingsApiFp(this.configuration).
|
|
15952
|
+
public estimateOpenBookingJoin(requestParameters: BookingsApiEstimateOpenBookingJoinRequest, options?: RawAxiosRequestConfig) {
|
|
15953
|
+
return BookingsApiFp(this.configuration).estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16014
15954
|
}
|
|
16015
15955
|
|
|
16016
15956
|
/**
|
|
@@ -16047,25 +15987,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
16047
15987
|
}
|
|
16048
15988
|
|
|
16049
15989
|
/**
|
|
16050
|
-
*
|
|
16051
|
-
* @param {
|
|
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.
|
|
15990
|
+
* 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.
|
|
15991
|
+
* @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
|
|
16063
15992
|
* @param {*} [options] Override http request option.
|
|
16064
15993
|
* @throws {RequiredError}
|
|
16065
15994
|
* @memberof BookingsApi
|
|
16066
15995
|
*/
|
|
16067
|
-
public
|
|
16068
|
-
return BookingsApiFp(this.configuration).
|
|
15996
|
+
public getOpenBookingBasePrice(requestParameters: BookingsApiGetOpenBookingBasePriceRequest, options?: RawAxiosRequestConfig) {
|
|
15997
|
+
return BookingsApiFp(this.configuration).getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
16069
15998
|
}
|
|
16070
15999
|
|
|
16071
16000
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED