@tennac-booking/sdk 1.0.302 → 1.0.304
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 +6 -0
- package/README.md +7 -0
- package/api.ts +484 -12
- package/dist/api.d.ts +385 -12
- package/dist/api.js +170 -2
- package/dist/esm/api.d.ts +385 -12
- package/dist/esm/api.js +164 -0
- package/docs/BookingGuestCheckinResponse.md +26 -0
- package/docs/BookingPopulated.md +4 -0
- package/docs/BookingSummary.md +4 -0
- package/docs/BookingsStaffApi.md +52 -0
- package/docs/ErrorResponse.md +28 -0
- package/docs/EstimateEventPriceRequest.md +0 -2
- package/docs/EstimateEventPriceResponse.md +0 -2
- package/docs/EventBookingDetailResponseBooking.md +4 -0
- package/docs/EventBookingGuestCheckinResponse.md +26 -0
- package/docs/EventBookingsStaffApi.md +62 -0
- package/docs/JoinEventRequest.md +2 -0
- package/docs/PaymentCoverageResult.md +40 -0
- package/docs/PaymentDistributionResult.md +32 -0
- package/docs/StaffEventBookingResponse.md +4 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -546,6 +546,39 @@ export interface BookingCourtInfo {
|
|
|
546
546
|
*/
|
|
547
547
|
'name'?: string | null;
|
|
548
548
|
}
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @export
|
|
552
|
+
* @interface BookingGuestCheckinResponse
|
|
553
|
+
*/
|
|
554
|
+
export interface BookingGuestCheckinResponse {
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {string}
|
|
558
|
+
* @memberof BookingGuestCheckinResponse
|
|
559
|
+
*/
|
|
560
|
+
'message': string;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {string}
|
|
564
|
+
* @memberof BookingGuestCheckinResponse
|
|
565
|
+
*/
|
|
566
|
+
'bookingId': string;
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {BookingStatus}
|
|
570
|
+
* @memberof BookingGuestCheckinResponse
|
|
571
|
+
*/
|
|
572
|
+
'status': BookingStatus;
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @type {PaymentCoverageResult}
|
|
576
|
+
* @memberof BookingGuestCheckinResponse
|
|
577
|
+
*/
|
|
578
|
+
'financials': PaymentCoverageResult;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
|
|
549
582
|
/**
|
|
550
583
|
*
|
|
551
584
|
* @export
|
|
@@ -1121,12 +1154,24 @@ export interface BookingPopulated {
|
|
|
1121
1154
|
* @memberof BookingPopulated
|
|
1122
1155
|
*/
|
|
1123
1156
|
'playersCount': number;
|
|
1157
|
+
/**
|
|
1158
|
+
*
|
|
1159
|
+
* @type {number}
|
|
1160
|
+
* @memberof BookingPopulated
|
|
1161
|
+
*/
|
|
1162
|
+
'guestPaymentsCount'?: number;
|
|
1124
1163
|
/**
|
|
1125
1164
|
*
|
|
1126
1165
|
* @type {number}
|
|
1127
1166
|
* @memberof BookingPopulated
|
|
1128
1167
|
*/
|
|
1129
1168
|
'maxPlayersDesired'?: number;
|
|
1169
|
+
/**
|
|
1170
|
+
*
|
|
1171
|
+
* @type {PaymentDistributionResult}
|
|
1172
|
+
* @memberof BookingPopulated
|
|
1173
|
+
*/
|
|
1174
|
+
'paymentDistribution'?: PaymentDistributionResult;
|
|
1130
1175
|
}
|
|
1131
1176
|
|
|
1132
1177
|
|
|
@@ -1529,6 +1574,12 @@ export interface BookingSummary {
|
|
|
1529
1574
|
* @memberof BookingSummary
|
|
1530
1575
|
*/
|
|
1531
1576
|
'playersCount'?: number | null;
|
|
1577
|
+
/**
|
|
1578
|
+
*
|
|
1579
|
+
* @type {number}
|
|
1580
|
+
* @memberof BookingSummary
|
|
1581
|
+
*/
|
|
1582
|
+
'guestPaymentsCount'?: number | null;
|
|
1532
1583
|
/**
|
|
1533
1584
|
*
|
|
1534
1585
|
* @type {string}
|
|
@@ -1601,6 +1652,12 @@ export interface BookingSummary {
|
|
|
1601
1652
|
* @memberof BookingSummary
|
|
1602
1653
|
*/
|
|
1603
1654
|
'totalAmount': number;
|
|
1655
|
+
/**
|
|
1656
|
+
*
|
|
1657
|
+
* @type {PaymentDistributionResult}
|
|
1658
|
+
* @memberof BookingSummary
|
|
1659
|
+
*/
|
|
1660
|
+
'paymentDistribution'?: PaymentDistributionResult;
|
|
1604
1661
|
/**
|
|
1605
1662
|
*
|
|
1606
1663
|
* @type {string}
|
|
@@ -6582,6 +6639,43 @@ export interface EmailExistsResponse {
|
|
|
6582
6639
|
*/
|
|
6583
6640
|
'verified': boolean;
|
|
6584
6641
|
}
|
|
6642
|
+
/**
|
|
6643
|
+
*
|
|
6644
|
+
* @export
|
|
6645
|
+
* @interface ErrorResponse
|
|
6646
|
+
*/
|
|
6647
|
+
export interface ErrorResponse {
|
|
6648
|
+
/**
|
|
6649
|
+
*
|
|
6650
|
+
* @type {string}
|
|
6651
|
+
* @memberof ErrorResponse
|
|
6652
|
+
*/
|
|
6653
|
+
'name': string;
|
|
6654
|
+
/**
|
|
6655
|
+
*
|
|
6656
|
+
* @type {string}
|
|
6657
|
+
* @memberof ErrorResponse
|
|
6658
|
+
*/
|
|
6659
|
+
'message': string;
|
|
6660
|
+
/**
|
|
6661
|
+
*
|
|
6662
|
+
* @type {string}
|
|
6663
|
+
* @memberof ErrorResponse
|
|
6664
|
+
*/
|
|
6665
|
+
'stack'?: string;
|
|
6666
|
+
/**
|
|
6667
|
+
*
|
|
6668
|
+
* @type {number}
|
|
6669
|
+
* @memberof ErrorResponse
|
|
6670
|
+
*/
|
|
6671
|
+
'statusCode': number;
|
|
6672
|
+
/**
|
|
6673
|
+
*
|
|
6674
|
+
* @type {any}
|
|
6675
|
+
* @memberof ErrorResponse
|
|
6676
|
+
*/
|
|
6677
|
+
'details'?: any;
|
|
6678
|
+
}
|
|
6585
6679
|
/**
|
|
6586
6680
|
*
|
|
6587
6681
|
* @export
|
|
@@ -6643,12 +6737,6 @@ export interface EstimateEventPriceRequest {
|
|
|
6643
6737
|
* @memberof EstimateEventPriceRequest
|
|
6644
6738
|
*/
|
|
6645
6739
|
'isCreatorPayingAll'?: boolean;
|
|
6646
|
-
/**
|
|
6647
|
-
*
|
|
6648
|
-
* @type {number}
|
|
6649
|
-
* @memberof EstimateEventPriceRequest
|
|
6650
|
-
*/
|
|
6651
|
-
'reservedPlayerCount'?: number;
|
|
6652
6740
|
/**
|
|
6653
6741
|
*
|
|
6654
6742
|
* @type {string}
|
|
@@ -6712,12 +6800,6 @@ export interface EstimateEventPriceResponse {
|
|
|
6712
6800
|
* @memberof EstimateEventPriceResponse
|
|
6713
6801
|
*/
|
|
6714
6802
|
'playersCount'?: number;
|
|
6715
|
-
/**
|
|
6716
|
-
*
|
|
6717
|
-
* @type {number}
|
|
6718
|
-
* @memberof EstimateEventPriceResponse
|
|
6719
|
-
*/
|
|
6720
|
-
'reservedPlayerCount'?: number;
|
|
6721
6803
|
/**
|
|
6722
6804
|
*
|
|
6723
6805
|
* @type {number}
|
|
@@ -7075,6 +7157,18 @@ export interface EventBookingDetailResponse {
|
|
|
7075
7157
|
* @interface EventBookingDetailResponseBooking
|
|
7076
7158
|
*/
|
|
7077
7159
|
export interface EventBookingDetailResponseBooking {
|
|
7160
|
+
/**
|
|
7161
|
+
*
|
|
7162
|
+
* @type {PaymentDistributionResult}
|
|
7163
|
+
* @memberof EventBookingDetailResponseBooking
|
|
7164
|
+
*/
|
|
7165
|
+
'paymentDistribution'?: PaymentDistributionResult;
|
|
7166
|
+
/**
|
|
7167
|
+
*
|
|
7168
|
+
* @type {number}
|
|
7169
|
+
* @memberof EventBookingDetailResponseBooking
|
|
7170
|
+
*/
|
|
7171
|
+
'guestPaymentsCount'?: number;
|
|
7078
7172
|
/**
|
|
7079
7173
|
*
|
|
7080
7174
|
* @type {number}
|
|
@@ -7320,6 +7414,39 @@ export interface EventBookingDetailSummaryPaymentPerPlayersInner {
|
|
|
7320
7414
|
}
|
|
7321
7415
|
|
|
7322
7416
|
|
|
7417
|
+
/**
|
|
7418
|
+
*
|
|
7419
|
+
* @export
|
|
7420
|
+
* @interface EventBookingGuestCheckinResponse
|
|
7421
|
+
*/
|
|
7422
|
+
export interface EventBookingGuestCheckinResponse {
|
|
7423
|
+
/**
|
|
7424
|
+
*
|
|
7425
|
+
* @type {string}
|
|
7426
|
+
* @memberof EventBookingGuestCheckinResponse
|
|
7427
|
+
*/
|
|
7428
|
+
'message': string;
|
|
7429
|
+
/**
|
|
7430
|
+
*
|
|
7431
|
+
* @type {string}
|
|
7432
|
+
* @memberof EventBookingGuestCheckinResponse
|
|
7433
|
+
*/
|
|
7434
|
+
'eventBookingId': string;
|
|
7435
|
+
/**
|
|
7436
|
+
*
|
|
7437
|
+
* @type {EventBookingStatus}
|
|
7438
|
+
* @memberof EventBookingGuestCheckinResponse
|
|
7439
|
+
*/
|
|
7440
|
+
'status': EventBookingStatus;
|
|
7441
|
+
/**
|
|
7442
|
+
*
|
|
7443
|
+
* @type {PaymentCoverageResult}
|
|
7444
|
+
* @memberof EventBookingGuestCheckinResponse
|
|
7445
|
+
*/
|
|
7446
|
+
'financials': PaymentCoverageResult;
|
|
7447
|
+
}
|
|
7448
|
+
|
|
7449
|
+
|
|
7323
7450
|
/**
|
|
7324
7451
|
*
|
|
7325
7452
|
* @export
|
|
@@ -9807,6 +9934,12 @@ export interface JoinEventRequest {
|
|
|
9807
9934
|
* @memberof JoinEventRequest
|
|
9808
9935
|
*/
|
|
9809
9936
|
'players'?: Array<string>;
|
|
9937
|
+
/**
|
|
9938
|
+
*
|
|
9939
|
+
* @type {number}
|
|
9940
|
+
* @memberof JoinEventRequest
|
|
9941
|
+
*/
|
|
9942
|
+
'playersCount'?: number;
|
|
9810
9943
|
/**
|
|
9811
9944
|
*
|
|
9812
9945
|
* @type {string}
|
|
@@ -13029,6 +13162,128 @@ export interface PaymentByPlayerInfo {
|
|
|
13029
13162
|
*/
|
|
13030
13163
|
'accepted': boolean;
|
|
13031
13164
|
}
|
|
13165
|
+
/**
|
|
13166
|
+
*
|
|
13167
|
+
* @export
|
|
13168
|
+
* @interface PaymentCoverageResult
|
|
13169
|
+
*/
|
|
13170
|
+
export interface PaymentCoverageResult {
|
|
13171
|
+
/**
|
|
13172
|
+
*
|
|
13173
|
+
* @type {number}
|
|
13174
|
+
* @memberof PaymentCoverageResult
|
|
13175
|
+
*/
|
|
13176
|
+
'totalAmount': number;
|
|
13177
|
+
/**
|
|
13178
|
+
*
|
|
13179
|
+
* @type {number}
|
|
13180
|
+
* @memberof PaymentCoverageResult
|
|
13181
|
+
*/
|
|
13182
|
+
'playersCount': number;
|
|
13183
|
+
/**
|
|
13184
|
+
*
|
|
13185
|
+
* @type {number}
|
|
13186
|
+
* @memberof PaymentCoverageResult
|
|
13187
|
+
*/
|
|
13188
|
+
'registeredPlayersCount': number;
|
|
13189
|
+
/**
|
|
13190
|
+
*
|
|
13191
|
+
* @type {number}
|
|
13192
|
+
* @memberof PaymentCoverageResult
|
|
13193
|
+
*/
|
|
13194
|
+
'guestsCount': number;
|
|
13195
|
+
/**
|
|
13196
|
+
*
|
|
13197
|
+
* @type {number}
|
|
13198
|
+
* @memberof PaymentCoverageResult
|
|
13199
|
+
*/
|
|
13200
|
+
'guestPaymentsCount': number;
|
|
13201
|
+
/**
|
|
13202
|
+
*
|
|
13203
|
+
* @type {number}
|
|
13204
|
+
* @memberof PaymentCoverageResult
|
|
13205
|
+
*/
|
|
13206
|
+
'share': number;
|
|
13207
|
+
/**
|
|
13208
|
+
*
|
|
13209
|
+
* @type {number}
|
|
13210
|
+
* @memberof PaymentCoverageResult
|
|
13211
|
+
*/
|
|
13212
|
+
'registeredPaidAmount': number;
|
|
13213
|
+
/**
|
|
13214
|
+
*
|
|
13215
|
+
* @type {number}
|
|
13216
|
+
* @memberof PaymentCoverageResult
|
|
13217
|
+
*/
|
|
13218
|
+
'guestPaidAmount': number;
|
|
13219
|
+
/**
|
|
13220
|
+
*
|
|
13221
|
+
* @type {number}
|
|
13222
|
+
* @memberof PaymentCoverageResult
|
|
13223
|
+
*/
|
|
13224
|
+
'totalPaid': number;
|
|
13225
|
+
/**
|
|
13226
|
+
*
|
|
13227
|
+
* @type {number}
|
|
13228
|
+
* @memberof PaymentCoverageResult
|
|
13229
|
+
*/
|
|
13230
|
+
'remainingAmount': number;
|
|
13231
|
+
/**
|
|
13232
|
+
*
|
|
13233
|
+
* @type {boolean}
|
|
13234
|
+
* @memberof PaymentCoverageResult
|
|
13235
|
+
*/
|
|
13236
|
+
'isFullyPaid': boolean;
|
|
13237
|
+
}
|
|
13238
|
+
/**
|
|
13239
|
+
*
|
|
13240
|
+
* @export
|
|
13241
|
+
* @interface PaymentDistributionResult
|
|
13242
|
+
*/
|
|
13243
|
+
export interface PaymentDistributionResult {
|
|
13244
|
+
/**
|
|
13245
|
+
*
|
|
13246
|
+
* @type {number}
|
|
13247
|
+
* @memberof PaymentDistributionResult
|
|
13248
|
+
*/
|
|
13249
|
+
'totalAmount': number;
|
|
13250
|
+
/**
|
|
13251
|
+
*
|
|
13252
|
+
* @type {number}
|
|
13253
|
+
* @memberof PaymentDistributionResult
|
|
13254
|
+
*/
|
|
13255
|
+
'paidAmount': number;
|
|
13256
|
+
/**
|
|
13257
|
+
*
|
|
13258
|
+
* @type {number}
|
|
13259
|
+
* @memberof PaymentDistributionResult
|
|
13260
|
+
*/
|
|
13261
|
+
'remainingAmount': number;
|
|
13262
|
+
/**
|
|
13263
|
+
*
|
|
13264
|
+
* @type {number}
|
|
13265
|
+
* @memberof PaymentDistributionResult
|
|
13266
|
+
*/
|
|
13267
|
+
'playersCount': number;
|
|
13268
|
+
/**
|
|
13269
|
+
*
|
|
13270
|
+
* @type {number}
|
|
13271
|
+
* @memberof PaymentDistributionResult
|
|
13272
|
+
*/
|
|
13273
|
+
'registeredPlayersCount': number;
|
|
13274
|
+
/**
|
|
13275
|
+
*
|
|
13276
|
+
* @type {number}
|
|
13277
|
+
* @memberof PaymentDistributionResult
|
|
13278
|
+
*/
|
|
13279
|
+
'guestsCount': number;
|
|
13280
|
+
/**
|
|
13281
|
+
*
|
|
13282
|
+
* @type {number}
|
|
13283
|
+
* @memberof PaymentDistributionResult
|
|
13284
|
+
*/
|
|
13285
|
+
'guestShare': number;
|
|
13286
|
+
}
|
|
13032
13287
|
/**
|
|
13033
13288
|
*
|
|
13034
13289
|
* @export
|
|
@@ -15782,6 +16037,18 @@ export interface StaffEventBookingResponse {
|
|
|
15782
16037
|
* @memberof StaffEventBookingResponse
|
|
15783
16038
|
*/
|
|
15784
16039
|
'amount'?: number;
|
|
16040
|
+
/**
|
|
16041
|
+
*
|
|
16042
|
+
* @type {number}
|
|
16043
|
+
* @memberof StaffEventBookingResponse
|
|
16044
|
+
*/
|
|
16045
|
+
'guestPaymentsCount'?: number;
|
|
16046
|
+
/**
|
|
16047
|
+
*
|
|
16048
|
+
* @type {PaymentDistributionResult}
|
|
16049
|
+
* @memberof StaffEventBookingResponse
|
|
16050
|
+
*/
|
|
16051
|
+
'paymentDistribution'?: PaymentDistributionResult;
|
|
15785
16052
|
/**
|
|
15786
16053
|
*
|
|
15787
16054
|
* @type {string}
|
|
@@ -21308,6 +21575,43 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
21308
21575
|
*/
|
|
21309
21576
|
export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
21310
21577
|
return {
|
|
21578
|
+
/**
|
|
21579
|
+
* Check-in d\'un invité sans compte (paiement sur place)
|
|
21580
|
+
* @param {string} bookingId
|
|
21581
|
+
* @param {*} [options] Override http request option.
|
|
21582
|
+
* @throws {RequiredError}
|
|
21583
|
+
*/
|
|
21584
|
+
bookingGuestCheckin: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21585
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
21586
|
+
assertParamExists('bookingGuestCheckin', 'bookingId', bookingId)
|
|
21587
|
+
const localVarPath = `/api/bookings/{bookingId}/guest-checkin`
|
|
21588
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
21589
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21590
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21591
|
+
let baseOptions;
|
|
21592
|
+
if (configuration) {
|
|
21593
|
+
baseOptions = configuration.baseOptions;
|
|
21594
|
+
}
|
|
21595
|
+
|
|
21596
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21597
|
+
const localVarHeaderParameter = {} as any;
|
|
21598
|
+
const localVarQueryParameter = {} as any;
|
|
21599
|
+
|
|
21600
|
+
// authentication bearerAuth required
|
|
21601
|
+
// http bearer authentication required
|
|
21602
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21603
|
+
|
|
21604
|
+
|
|
21605
|
+
|
|
21606
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21607
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21608
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21609
|
+
|
|
21610
|
+
return {
|
|
21611
|
+
url: toPathString(localVarUrlObj),
|
|
21612
|
+
options: localVarRequestOptions,
|
|
21613
|
+
};
|
|
21614
|
+
},
|
|
21311
21615
|
/**
|
|
21312
21616
|
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
21313
21617
|
* @param {string} bookingId
|
|
@@ -21760,6 +22064,18 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
|
|
|
21760
22064
|
export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
21761
22065
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
|
|
21762
22066
|
return {
|
|
22067
|
+
/**
|
|
22068
|
+
* Check-in d\'un invité sans compte (paiement sur place)
|
|
22069
|
+
* @param {string} bookingId
|
|
22070
|
+
* @param {*} [options] Override http request option.
|
|
22071
|
+
* @throws {RequiredError}
|
|
22072
|
+
*/
|
|
22073
|
+
async bookingGuestCheckin(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingGuestCheckinResponse>> {
|
|
22074
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingGuestCheckin(bookingId, options);
|
|
22075
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22076
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.bookingGuestCheckin']?.[localVarOperationServerIndex]?.url;
|
|
22077
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22078
|
+
},
|
|
21763
22079
|
/**
|
|
21764
22080
|
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
21765
22081
|
* @param {string} bookingId
|
|
@@ -21908,6 +22224,15 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
|
21908
22224
|
export const BookingsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
21909
22225
|
const localVarFp = BookingsStaffApiFp(configuration)
|
|
21910
22226
|
return {
|
|
22227
|
+
/**
|
|
22228
|
+
* Check-in d\'un invité sans compte (paiement sur place)
|
|
22229
|
+
* @param {BookingsStaffApiBookingGuestCheckinRequest} requestParameters Request parameters.
|
|
22230
|
+
* @param {*} [options] Override http request option.
|
|
22231
|
+
* @throws {RequiredError}
|
|
22232
|
+
*/
|
|
22233
|
+
bookingGuestCheckin(requestParameters: BookingsStaffApiBookingGuestCheckinRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingGuestCheckinResponse> {
|
|
22234
|
+
return localVarFp.bookingGuestCheckin(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
22235
|
+
},
|
|
21911
22236
|
/**
|
|
21912
22237
|
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
21913
22238
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
@@ -22010,6 +22335,20 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
22010
22335
|
};
|
|
22011
22336
|
};
|
|
22012
22337
|
|
|
22338
|
+
/**
|
|
22339
|
+
* Request parameters for bookingGuestCheckin operation in BookingsStaffApi.
|
|
22340
|
+
* @export
|
|
22341
|
+
* @interface BookingsStaffApiBookingGuestCheckinRequest
|
|
22342
|
+
*/
|
|
22343
|
+
export interface BookingsStaffApiBookingGuestCheckinRequest {
|
|
22344
|
+
/**
|
|
22345
|
+
*
|
|
22346
|
+
* @type {string}
|
|
22347
|
+
* @memberof BookingsStaffApiBookingGuestCheckin
|
|
22348
|
+
*/
|
|
22349
|
+
readonly bookingId: string
|
|
22350
|
+
}
|
|
22351
|
+
|
|
22013
22352
|
/**
|
|
22014
22353
|
* Request parameters for checkInPlayer operation in BookingsStaffApi.
|
|
22015
22354
|
* @export
|
|
@@ -22213,6 +22552,17 @@ export interface BookingsStaffApiListClubBookingsRequest {
|
|
|
22213
22552
|
* @extends {BaseAPI}
|
|
22214
22553
|
*/
|
|
22215
22554
|
export class BookingsStaffApi extends BaseAPI {
|
|
22555
|
+
/**
|
|
22556
|
+
* Check-in d\'un invité sans compte (paiement sur place)
|
|
22557
|
+
* @param {BookingsStaffApiBookingGuestCheckinRequest} requestParameters Request parameters.
|
|
22558
|
+
* @param {*} [options] Override http request option.
|
|
22559
|
+
* @throws {RequiredError}
|
|
22560
|
+
* @memberof BookingsStaffApi
|
|
22561
|
+
*/
|
|
22562
|
+
public bookingGuestCheckin(requestParameters: BookingsStaffApiBookingGuestCheckinRequest, options?: RawAxiosRequestConfig) {
|
|
22563
|
+
return BookingsStaffApiFp(this.configuration).bookingGuestCheckin(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
22564
|
+
}
|
|
22565
|
+
|
|
22216
22566
|
/**
|
|
22217
22567
|
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
22218
22568
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
@@ -32266,6 +32616,128 @@ export class DefaultApi extends BaseAPI {
|
|
|
32266
32616
|
|
|
32267
32617
|
|
|
32268
32618
|
|
|
32619
|
+
/**
|
|
32620
|
+
* EventBookingsStaffApi - axios parameter creator
|
|
32621
|
+
* @export
|
|
32622
|
+
*/
|
|
32623
|
+
export const EventBookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32624
|
+
return {
|
|
32625
|
+
/**
|
|
32626
|
+
* Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
|
|
32627
|
+
* @param {string} eventBookingId
|
|
32628
|
+
* @param {*} [options] Override http request option.
|
|
32629
|
+
* @throws {RequiredError}
|
|
32630
|
+
*/
|
|
32631
|
+
eventBookingGuestCheckin: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32632
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
32633
|
+
assertParamExists('eventBookingGuestCheckin', 'eventBookingId', eventBookingId)
|
|
32634
|
+
const localVarPath = `/api/event-bookings/{eventBookingId}/guest-checkin`
|
|
32635
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
32636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32637
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32638
|
+
let baseOptions;
|
|
32639
|
+
if (configuration) {
|
|
32640
|
+
baseOptions = configuration.baseOptions;
|
|
32641
|
+
}
|
|
32642
|
+
|
|
32643
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32644
|
+
const localVarHeaderParameter = {} as any;
|
|
32645
|
+
const localVarQueryParameter = {} as any;
|
|
32646
|
+
|
|
32647
|
+
// authentication bearerAuth required
|
|
32648
|
+
// http bearer authentication required
|
|
32649
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32650
|
+
|
|
32651
|
+
|
|
32652
|
+
|
|
32653
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32655
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32656
|
+
|
|
32657
|
+
return {
|
|
32658
|
+
url: toPathString(localVarUrlObj),
|
|
32659
|
+
options: localVarRequestOptions,
|
|
32660
|
+
};
|
|
32661
|
+
},
|
|
32662
|
+
}
|
|
32663
|
+
};
|
|
32664
|
+
|
|
32665
|
+
/**
|
|
32666
|
+
* EventBookingsStaffApi - functional programming interface
|
|
32667
|
+
* @export
|
|
32668
|
+
*/
|
|
32669
|
+
export const EventBookingsStaffApiFp = function(configuration?: Configuration) {
|
|
32670
|
+
const localVarAxiosParamCreator = EventBookingsStaffApiAxiosParamCreator(configuration)
|
|
32671
|
+
return {
|
|
32672
|
+
/**
|
|
32673
|
+
* Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
|
|
32674
|
+
* @param {string} eventBookingId
|
|
32675
|
+
* @param {*} [options] Override http request option.
|
|
32676
|
+
* @throws {RequiredError}
|
|
32677
|
+
*/
|
|
32678
|
+
async eventBookingGuestCheckin(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventBookingGuestCheckinResponse>> {
|
|
32679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eventBookingGuestCheckin(eventBookingId, options);
|
|
32680
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32681
|
+
const localVarOperationServerBasePath = operationServerMap['EventBookingsStaffApi.eventBookingGuestCheckin']?.[localVarOperationServerIndex]?.url;
|
|
32682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32683
|
+
},
|
|
32684
|
+
}
|
|
32685
|
+
};
|
|
32686
|
+
|
|
32687
|
+
/**
|
|
32688
|
+
* EventBookingsStaffApi - factory interface
|
|
32689
|
+
* @export
|
|
32690
|
+
*/
|
|
32691
|
+
export const EventBookingsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32692
|
+
const localVarFp = EventBookingsStaffApiFp(configuration)
|
|
32693
|
+
return {
|
|
32694
|
+
/**
|
|
32695
|
+
* Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
|
|
32696
|
+
* @param {EventBookingsStaffApiEventBookingGuestCheckinRequest} requestParameters Request parameters.
|
|
32697
|
+
* @param {*} [options] Override http request option.
|
|
32698
|
+
* @throws {RequiredError}
|
|
32699
|
+
*/
|
|
32700
|
+
eventBookingGuestCheckin(requestParameters: EventBookingsStaffApiEventBookingGuestCheckinRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventBookingGuestCheckinResponse> {
|
|
32701
|
+
return localVarFp.eventBookingGuestCheckin(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
32702
|
+
},
|
|
32703
|
+
};
|
|
32704
|
+
};
|
|
32705
|
+
|
|
32706
|
+
/**
|
|
32707
|
+
* Request parameters for eventBookingGuestCheckin operation in EventBookingsStaffApi.
|
|
32708
|
+
* @export
|
|
32709
|
+
* @interface EventBookingsStaffApiEventBookingGuestCheckinRequest
|
|
32710
|
+
*/
|
|
32711
|
+
export interface EventBookingsStaffApiEventBookingGuestCheckinRequest {
|
|
32712
|
+
/**
|
|
32713
|
+
*
|
|
32714
|
+
* @type {string}
|
|
32715
|
+
* @memberof EventBookingsStaffApiEventBookingGuestCheckin
|
|
32716
|
+
*/
|
|
32717
|
+
readonly eventBookingId: string
|
|
32718
|
+
}
|
|
32719
|
+
|
|
32720
|
+
/**
|
|
32721
|
+
* EventBookingsStaffApi - object-oriented interface
|
|
32722
|
+
* @export
|
|
32723
|
+
* @class EventBookingsStaffApi
|
|
32724
|
+
* @extends {BaseAPI}
|
|
32725
|
+
*/
|
|
32726
|
+
export class EventBookingsStaffApi extends BaseAPI {
|
|
32727
|
+
/**
|
|
32728
|
+
* Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
|
|
32729
|
+
* @param {EventBookingsStaffApiEventBookingGuestCheckinRequest} requestParameters Request parameters.
|
|
32730
|
+
* @param {*} [options] Override http request option.
|
|
32731
|
+
* @throws {RequiredError}
|
|
32732
|
+
* @memberof EventBookingsStaffApi
|
|
32733
|
+
*/
|
|
32734
|
+
public eventBookingGuestCheckin(requestParameters: EventBookingsStaffApiEventBookingGuestCheckinRequest, options?: RawAxiosRequestConfig) {
|
|
32735
|
+
return EventBookingsStaffApiFp(this.configuration).eventBookingGuestCheckin(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
32736
|
+
}
|
|
32737
|
+
}
|
|
32738
|
+
|
|
32739
|
+
|
|
32740
|
+
|
|
32269
32741
|
/**
|
|
32270
32742
|
* EventsApi - axios parameter creator
|
|
32271
32743
|
* @export
|