@tennac-booking/sdk 1.0.88 → 1.0.90
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 +16 -7
- package/README.md +19 -12
- package/api.ts +1053 -620
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +844 -443
- package/dist/api.js +296 -209
- 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 +844 -443
- package/dist/esm/api.js +284 -206
- 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/BookingClubInfo.md +28 -0
- package/docs/{SetupPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPaymentStatus.md +24 -0
- package/docs/BookingPlayerPaymentSummary.md +34 -0
- package/docs/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
- package/docs/BookingPriceResponse.md +22 -0
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingSlotInfo.md +30 -0
- package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
- package/docs/BookingSummary.md +54 -2
- package/docs/BookingsApi.md +55 -0
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubsApi.md +1 -1
- package/docs/CreateBookingRequest.md +4 -2
- package/docs/IUserAttributes.md +2 -12
- package/docs/InvoiceStatus.md +22 -0
- package/docs/MyClubInfosResponse.md +26 -0
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/{ConfirmPaymentMethodResponse.md → QuickReservationClubSport.md} +7 -7
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UserApi.md +60 -0
- package/docs/UserBookingsResponse.md +28 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +4 -160
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
package/dist/esm/api.js
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.89
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -134,6 +134,21 @@ export const Gender = {
|
|
|
134
134
|
export const IUserLocationTypeEnum = {
|
|
135
135
|
Point: 'Point'
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @export
|
|
140
|
+
* @enum {string}
|
|
141
|
+
*/
|
|
142
|
+
export const InvoiceStatus = {
|
|
143
|
+
SetupPending: 'setup_pending',
|
|
144
|
+
SetupSuccess: 'setup_success',
|
|
145
|
+
Pending: 'pending',
|
|
146
|
+
Paid: 'paid',
|
|
147
|
+
Failed: 'failed',
|
|
148
|
+
Authorized: 'authorized',
|
|
149
|
+
Canceled: 'canceled',
|
|
150
|
+
Expired: 'expired'
|
|
151
|
+
};
|
|
137
152
|
/**
|
|
138
153
|
*
|
|
139
154
|
* @export
|
|
@@ -364,6 +379,38 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
364
379
|
options: localVarRequestOptions,
|
|
365
380
|
};
|
|
366
381
|
}),
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
|
|
389
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
390
|
+
assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
|
|
391
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
if (configuration) {
|
|
396
|
+
baseOptions = configuration.baseOptions;
|
|
397
|
+
}
|
|
398
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
399
|
+
const localVarHeaderParameter = {};
|
|
400
|
+
const localVarQueryParameter = {};
|
|
401
|
+
// authentication bearerAuth required
|
|
402
|
+
// http bearer authentication required
|
|
403
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
404
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
408
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration);
|
|
409
|
+
return {
|
|
410
|
+
url: toPathString(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
}),
|
|
367
414
|
/**
|
|
368
415
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
369
416
|
* @param {number} [latitude]
|
|
@@ -374,12 +421,13 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
374
421
|
* @param {string} [startTime]
|
|
375
422
|
* @param {number} [priceMax]
|
|
376
423
|
* @param {string} [courtTypes]
|
|
424
|
+
* @param {string} [surfaceTypes]
|
|
377
425
|
* @param {number} [limitPerClub]
|
|
378
426
|
* @param {number} [maxClubs]
|
|
379
427
|
* @param {*} [options] Override http request option.
|
|
380
428
|
* @throws {RequiredError}
|
|
381
429
|
*/
|
|
382
|
-
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
|
|
430
|
+
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options = {}) {
|
|
383
431
|
const localVarPath = `/api/bookings/quick-reservations`;
|
|
384
432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
433
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -414,8 +462,11 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
414
462
|
if (courtTypes !== undefined) {
|
|
415
463
|
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
416
464
|
}
|
|
465
|
+
if (surfaceTypes !== undefined) {
|
|
466
|
+
localVarQueryParameter['surfaceTypes'] = surfaceTypes;
|
|
467
|
+
}
|
|
417
468
|
if (limitPerClub !== undefined) {
|
|
418
|
-
localVarQueryParameter['
|
|
469
|
+
localVarQueryParameter['_limitPerClub'] = limitPerClub;
|
|
419
470
|
}
|
|
420
471
|
if (maxClubs !== undefined) {
|
|
421
472
|
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
@@ -452,6 +503,21 @@ export const BookingsApiFp = function (configuration) {
|
|
|
452
503
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
453
504
|
});
|
|
454
505
|
},
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
getBookingPrice(bookingPriceBody, options) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
var _a, _b, _c;
|
|
515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
516
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
517
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
519
|
+
});
|
|
520
|
+
},
|
|
455
521
|
/**
|
|
456
522
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
457
523
|
* @param {number} [latitude]
|
|
@@ -462,15 +528,16 @@ export const BookingsApiFp = function (configuration) {
|
|
|
462
528
|
* @param {string} [startTime]
|
|
463
529
|
* @param {number} [priceMax]
|
|
464
530
|
* @param {string} [courtTypes]
|
|
531
|
+
* @param {string} [surfaceTypes]
|
|
465
532
|
* @param {number} [limitPerClub]
|
|
466
533
|
* @param {number} [maxClubs]
|
|
467
534
|
* @param {*} [options] Override http request option.
|
|
468
535
|
* @throws {RequiredError}
|
|
469
536
|
*/
|
|
470
|
-
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
537
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
|
|
471
538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
472
539
|
var _a, _b, _c;
|
|
473
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
|
|
474
541
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
475
542
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
476
543
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -494,6 +561,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
494
561
|
getBookingHistory(requestParameters, options) {
|
|
495
562
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
496
563
|
},
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
getBookingPrice(requestParameters, options) {
|
|
571
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
572
|
+
},
|
|
497
573
|
/**
|
|
498
574
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
499
575
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -501,7 +577,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
501
577
|
* @throws {RequiredError}
|
|
502
578
|
*/
|
|
503
579
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
504
|
-
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
580
|
+
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
505
581
|
},
|
|
506
582
|
};
|
|
507
583
|
};
|
|
@@ -522,6 +598,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
522
598
|
getBookingHistory(requestParameters, options) {
|
|
523
599
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
524
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
* @memberof BookingsApi
|
|
607
|
+
*/
|
|
608
|
+
getBookingPrice(requestParameters, options) {
|
|
609
|
+
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
610
|
+
}
|
|
525
611
|
/**
|
|
526
612
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
527
613
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -530,7 +616,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
530
616
|
* @memberof BookingsApi
|
|
531
617
|
*/
|
|
532
618
|
getQuickReservationSlots(requestParameters = {}, options) {
|
|
533
|
-
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
534
620
|
}
|
|
535
621
|
}
|
|
536
622
|
/**
|
|
@@ -3342,7 +3428,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
|
|
|
3342
3428
|
export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
3343
3429
|
return {
|
|
3344
3430
|
/**
|
|
3345
|
-
* Récupère la liste des clubs actifs
|
|
3431
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3346
3432
|
* @param {*} [options] Override http request option.
|
|
3347
3433
|
* @throws {RequiredError}
|
|
3348
3434
|
*/
|
|
@@ -3690,7 +3776,7 @@ export const ClubsApiFp = function (configuration) {
|
|
|
3690
3776
|
const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
|
|
3691
3777
|
return {
|
|
3692
3778
|
/**
|
|
3693
|
-
* Récupère la liste des clubs actifs
|
|
3779
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3694
3780
|
* @param {*} [options] Override http request option.
|
|
3695
3781
|
* @throws {RequiredError}
|
|
3696
3782
|
*/
|
|
@@ -3879,7 +3965,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3879
3965
|
const localVarFp = ClubsApiFp(configuration);
|
|
3880
3966
|
return {
|
|
3881
3967
|
/**
|
|
3882
|
-
* Récupère la liste des clubs actifs
|
|
3968
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3883
3969
|
* @param {*} [options] Override http request option.
|
|
3884
3970
|
* @throws {RequiredError}
|
|
3885
3971
|
*/
|
|
@@ -3992,7 +4078,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
3992
4078
|
*/
|
|
3993
4079
|
export class ClubsApi extends BaseAPI {
|
|
3994
4080
|
/**
|
|
3995
|
-
* Récupère la liste des clubs actifs
|
|
4081
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3996
4082
|
* @param {*} [options] Override http request option.
|
|
3997
4083
|
* @throws {RequiredError}
|
|
3998
4084
|
* @memberof ClubsApi
|
|
@@ -7021,6 +7107,95 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
7021
7107
|
return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7022
7108
|
}
|
|
7023
7109
|
}
|
|
7110
|
+
/**
|
|
7111
|
+
* SportsPublicApi - axios parameter creator
|
|
7112
|
+
* @export
|
|
7113
|
+
*/
|
|
7114
|
+
export const SportsPublicApiAxiosParamCreator = function (configuration) {
|
|
7115
|
+
return {
|
|
7116
|
+
/**
|
|
7117
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7118
|
+
* @param {*} [options] Override http request option.
|
|
7119
|
+
* @throws {RequiredError}
|
|
7120
|
+
*/
|
|
7121
|
+
getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7122
|
+
const localVarPath = `/api/sports/verified`;
|
|
7123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7125
|
+
let baseOptions;
|
|
7126
|
+
if (configuration) {
|
|
7127
|
+
baseOptions = configuration.baseOptions;
|
|
7128
|
+
}
|
|
7129
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7130
|
+
const localVarHeaderParameter = {};
|
|
7131
|
+
const localVarQueryParameter = {};
|
|
7132
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7133
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7134
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7135
|
+
return {
|
|
7136
|
+
url: toPathString(localVarUrlObj),
|
|
7137
|
+
options: localVarRequestOptions,
|
|
7138
|
+
};
|
|
7139
|
+
}),
|
|
7140
|
+
};
|
|
7141
|
+
};
|
|
7142
|
+
/**
|
|
7143
|
+
* SportsPublicApi - functional programming interface
|
|
7144
|
+
* @export
|
|
7145
|
+
*/
|
|
7146
|
+
export const SportsPublicApiFp = function (configuration) {
|
|
7147
|
+
const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
|
|
7148
|
+
return {
|
|
7149
|
+
/**
|
|
7150
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7151
|
+
* @param {*} [options] Override http request option.
|
|
7152
|
+
* @throws {RequiredError}
|
|
7153
|
+
*/
|
|
7154
|
+
getVerifiedSports(options) {
|
|
7155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7156
|
+
var _a, _b, _c;
|
|
7157
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
|
|
7158
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7159
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7160
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7161
|
+
});
|
|
7162
|
+
},
|
|
7163
|
+
};
|
|
7164
|
+
};
|
|
7165
|
+
/**
|
|
7166
|
+
* SportsPublicApi - factory interface
|
|
7167
|
+
* @export
|
|
7168
|
+
*/
|
|
7169
|
+
export const SportsPublicApiFactory = function (configuration, basePath, axios) {
|
|
7170
|
+
const localVarFp = SportsPublicApiFp(configuration);
|
|
7171
|
+
return {
|
|
7172
|
+
/**
|
|
7173
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7174
|
+
* @param {*} [options] Override http request option.
|
|
7175
|
+
* @throws {RequiredError}
|
|
7176
|
+
*/
|
|
7177
|
+
getVerifiedSports(options) {
|
|
7178
|
+
return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
|
|
7179
|
+
},
|
|
7180
|
+
};
|
|
7181
|
+
};
|
|
7182
|
+
/**
|
|
7183
|
+
* SportsPublicApi - object-oriented interface
|
|
7184
|
+
* @export
|
|
7185
|
+
* @class SportsPublicApi
|
|
7186
|
+
* @extends {BaseAPI}
|
|
7187
|
+
*/
|
|
7188
|
+
export class SportsPublicApi extends BaseAPI {
|
|
7189
|
+
/**
|
|
7190
|
+
* Récupère tous les sports vérifiés, accessibles publiquement
|
|
7191
|
+
* @param {*} [options] Override http request option.
|
|
7192
|
+
* @throws {RequiredError}
|
|
7193
|
+
* @memberof SportsPublicApi
|
|
7194
|
+
*/
|
|
7195
|
+
getVerifiedSports(options) {
|
|
7196
|
+
return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
|
|
7197
|
+
}
|
|
7198
|
+
}
|
|
7024
7199
|
/**
|
|
7025
7200
|
* SportsStaffApi - axios parameter creator
|
|
7026
7201
|
* @export
|
|
@@ -7831,53 +8006,122 @@ export class SubscriptionsUserApi extends BaseAPI {
|
|
|
7831
8006
|
}
|
|
7832
8007
|
}
|
|
7833
8008
|
/**
|
|
7834
|
-
*
|
|
8009
|
+
* UserApi - axios parameter creator
|
|
7835
8010
|
* @export
|
|
7836
8011
|
*/
|
|
7837
|
-
export const
|
|
8012
|
+
export const UserApiAxiosParamCreator = function (configuration) {
|
|
7838
8013
|
return {
|
|
7839
8014
|
/**
|
|
7840
|
-
*
|
|
7841
|
-
* @param {
|
|
8015
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8016
|
+
* @param {string} clubId
|
|
7842
8017
|
* @param {*} [options] Override http request option.
|
|
7843
8018
|
* @throws {RequiredError}
|
|
7844
8019
|
*/
|
|
7845
|
-
|
|
7846
|
-
// verify required parameter '
|
|
7847
|
-
assertParamExists('
|
|
7848
|
-
const localVarPath = `/api/users/me/
|
|
8020
|
+
getMyClubInfos: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
8021
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
8022
|
+
assertParamExists('getMyClubInfos', 'clubId', clubId);
|
|
8023
|
+
const localVarPath = `/api/users/me/club-infos`;
|
|
7849
8024
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7850
8025
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7851
8026
|
let baseOptions;
|
|
7852
8027
|
if (configuration) {
|
|
7853
8028
|
baseOptions = configuration.baseOptions;
|
|
7854
8029
|
}
|
|
7855
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8030
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7856
8031
|
const localVarHeaderParameter = {};
|
|
7857
8032
|
const localVarQueryParameter = {};
|
|
7858
8033
|
// authentication bearerAuth required
|
|
7859
8034
|
// http bearer authentication required
|
|
7860
8035
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7861
|
-
|
|
8036
|
+
if (clubId !== undefined) {
|
|
8037
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
8038
|
+
}
|
|
7862
8039
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7863
8040
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7864
8041
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7865
|
-
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7866
8042
|
return {
|
|
7867
8043
|
url: toPathString(localVarUrlObj),
|
|
7868
8044
|
options: localVarRequestOptions,
|
|
7869
8045
|
};
|
|
7870
8046
|
}),
|
|
8047
|
+
};
|
|
8048
|
+
};
|
|
8049
|
+
/**
|
|
8050
|
+
* UserApi - functional programming interface
|
|
8051
|
+
* @export
|
|
8052
|
+
*/
|
|
8053
|
+
export const UserApiFp = function (configuration) {
|
|
8054
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
8055
|
+
return {
|
|
8056
|
+
/**
|
|
8057
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8058
|
+
* @param {string} clubId
|
|
8059
|
+
* @param {*} [options] Override http request option.
|
|
8060
|
+
* @throws {RequiredError}
|
|
8061
|
+
*/
|
|
8062
|
+
getMyClubInfos(clubId, options) {
|
|
8063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8064
|
+
var _a, _b, _c;
|
|
8065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubInfos(clubId, options);
|
|
8066
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8067
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.getMyClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8068
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8069
|
+
});
|
|
8070
|
+
},
|
|
8071
|
+
};
|
|
8072
|
+
};
|
|
8073
|
+
/**
|
|
8074
|
+
* UserApi - factory interface
|
|
8075
|
+
* @export
|
|
8076
|
+
*/
|
|
8077
|
+
export const UserApiFactory = function (configuration, basePath, axios) {
|
|
8078
|
+
const localVarFp = UserApiFp(configuration);
|
|
8079
|
+
return {
|
|
8080
|
+
/**
|
|
8081
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8082
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
8083
|
+
* @param {*} [options] Override http request option.
|
|
8084
|
+
* @throws {RequiredError}
|
|
8085
|
+
*/
|
|
8086
|
+
getMyClubInfos(requestParameters, options) {
|
|
8087
|
+
return localVarFp.getMyClubInfos(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
8088
|
+
},
|
|
8089
|
+
};
|
|
8090
|
+
};
|
|
8091
|
+
/**
|
|
8092
|
+
* UserApi - object-oriented interface
|
|
8093
|
+
* @export
|
|
8094
|
+
* @class UserApi
|
|
8095
|
+
* @extends {BaseAPI}
|
|
8096
|
+
*/
|
|
8097
|
+
export class UserApi extends BaseAPI {
|
|
8098
|
+
/**
|
|
8099
|
+
* Récupère les informations du club de l\'utilisateur
|
|
8100
|
+
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
8101
|
+
* @param {*} [options] Override http request option.
|
|
8102
|
+
* @throws {RequiredError}
|
|
8103
|
+
* @memberof UserApi
|
|
8104
|
+
*/
|
|
8105
|
+
getMyClubInfos(requestParameters, options) {
|
|
8106
|
+
return UserApiFp(this.configuration).getMyClubInfos(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
8107
|
+
}
|
|
8108
|
+
}
|
|
8109
|
+
/**
|
|
8110
|
+
* UsersApi - axios parameter creator
|
|
8111
|
+
* @export
|
|
8112
|
+
*/
|
|
8113
|
+
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
8114
|
+
return {
|
|
7871
8115
|
/**
|
|
7872
8116
|
*
|
|
7873
|
-
* @param {
|
|
8117
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
7874
8118
|
* @param {*} [options] Override http request option.
|
|
7875
8119
|
* @throws {RequiredError}
|
|
7876
8120
|
*/
|
|
7877
|
-
|
|
7878
|
-
// verify required parameter '
|
|
7879
|
-
assertParamExists('
|
|
7880
|
-
const localVarPath = `/api/users/me/
|
|
8121
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
8122
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
8123
|
+
assertParamExists('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
8124
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
7881
8125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7882
8126
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7883
8127
|
let baseOptions;
|
|
@@ -7894,7 +8138,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7894
8138
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7895
8139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7896
8140
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7897
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
8141
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
7898
8142
|
return {
|
|
7899
8143
|
url: toPathString(localVarUrlObj),
|
|
7900
8144
|
options: localVarRequestOptions,
|
|
@@ -7902,14 +8146,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7902
8146
|
}),
|
|
7903
8147
|
/**
|
|
7904
8148
|
*
|
|
7905
|
-
* @param {
|
|
8149
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
7906
8150
|
* @param {*} [options] Override http request option.
|
|
7907
8151
|
* @throws {RequiredError}
|
|
7908
8152
|
*/
|
|
7909
|
-
|
|
7910
|
-
// verify required parameter '
|
|
7911
|
-
assertParamExists('
|
|
7912
|
-
const localVarPath = `/api/users/me/
|
|
8153
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
8154
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
8155
|
+
assertParamExists('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
8156
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
7913
8157
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7914
8158
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7915
8159
|
let baseOptions;
|
|
@@ -7926,7 +8170,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7926
8170
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7927
8171
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7928
8172
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7929
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
8173
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
7930
8174
|
return {
|
|
7931
8175
|
url: toPathString(localVarUrlObj),
|
|
7932
8176
|
options: localVarRequestOptions,
|
|
@@ -7934,14 +8178,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7934
8178
|
}),
|
|
7935
8179
|
/**
|
|
7936
8180
|
*
|
|
7937
|
-
* @param {
|
|
8181
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
7938
8182
|
* @param {*} [options] Override http request option.
|
|
7939
8183
|
* @throws {RequiredError}
|
|
7940
8184
|
*/
|
|
7941
|
-
|
|
7942
|
-
// verify required parameter '
|
|
7943
|
-
assertParamExists('
|
|
7944
|
-
const localVarPath = `/api/users/
|
|
8185
|
+
addOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
8186
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
8187
|
+
assertParamExists('addOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
8188
|
+
const localVarPath = `/api/users/me/add-organization`;
|
|
7945
8189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7946
8190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7947
8191
|
let baseOptions;
|
|
@@ -7958,7 +8202,7 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7958
8202
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7959
8203
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7960
8204
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7961
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
8205
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
7962
8206
|
return {
|
|
7963
8207
|
url: toPathString(localVarUrlObj),
|
|
7964
8208
|
options: localVarRequestOptions,
|
|
@@ -7996,38 +8240,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7996
8240
|
options: localVarRequestOptions,
|
|
7997
8241
|
};
|
|
7998
8242
|
}),
|
|
7999
|
-
/**
|
|
8000
|
-
*
|
|
8001
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
8002
|
-
* @param {*} [options] Override http request option.
|
|
8003
|
-
* @throws {RequiredError}
|
|
8004
|
-
*/
|
|
8005
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
8006
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
8007
|
-
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
8008
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
8009
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8010
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8011
|
-
let baseOptions;
|
|
8012
|
-
if (configuration) {
|
|
8013
|
-
baseOptions = configuration.baseOptions;
|
|
8014
|
-
}
|
|
8015
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8016
|
-
const localVarHeaderParameter = {};
|
|
8017
|
-
const localVarQueryParameter = {};
|
|
8018
|
-
// authentication bearerAuth required
|
|
8019
|
-
// http bearer authentication required
|
|
8020
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8021
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8022
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8023
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8024
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8025
|
-
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8026
|
-
return {
|
|
8027
|
-
url: toPathString(localVarUrlObj),
|
|
8028
|
-
options: localVarRequestOptions,
|
|
8029
|
-
};
|
|
8030
|
-
}),
|
|
8031
8243
|
/**
|
|
8032
8244
|
*
|
|
8033
8245
|
* @param {*} [options] Override http request option.
|
|
@@ -8797,38 +9009,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8797
9009
|
options: localVarRequestOptions,
|
|
8798
9010
|
};
|
|
8799
9011
|
}),
|
|
8800
|
-
/**
|
|
8801
|
-
*
|
|
8802
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8803
|
-
* @param {*} [options] Override http request option.
|
|
8804
|
-
* @throws {RequiredError}
|
|
8805
|
-
*/
|
|
8806
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8807
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8808
|
-
assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8809
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8810
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8811
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8812
|
-
let baseOptions;
|
|
8813
|
-
if (configuration) {
|
|
8814
|
-
baseOptions = configuration.baseOptions;
|
|
8815
|
-
}
|
|
8816
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8817
|
-
const localVarHeaderParameter = {};
|
|
8818
|
-
const localVarQueryParameter = {};
|
|
8819
|
-
// authentication bearerAuth required
|
|
8820
|
-
// http bearer authentication required
|
|
8821
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8822
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8823
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8824
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8825
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8826
|
-
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8827
|
-
return {
|
|
8828
|
-
url: toPathString(localVarUrlObj),
|
|
8829
|
-
options: localVarRequestOptions,
|
|
8830
|
-
};
|
|
8831
|
-
}),
|
|
8832
9012
|
/**
|
|
8833
9013
|
*
|
|
8834
9014
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9098,21 +9278,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9098
9278
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9099
9279
|
});
|
|
9100
9280
|
},
|
|
9101
|
-
/**
|
|
9102
|
-
*
|
|
9103
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
9104
|
-
* @param {*} [options] Override http request option.
|
|
9105
|
-
* @throws {RequiredError}
|
|
9106
|
-
*/
|
|
9107
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
9108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9109
|
-
var _a, _b, _c;
|
|
9110
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
9111
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9112
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9113
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9114
|
-
});
|
|
9115
|
-
},
|
|
9116
9281
|
/**
|
|
9117
9282
|
*
|
|
9118
9283
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -9128,21 +9293,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9128
9293
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9129
9294
|
});
|
|
9130
9295
|
},
|
|
9131
|
-
/**
|
|
9132
|
-
*
|
|
9133
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
9134
|
-
* @param {*} [options] Override http request option.
|
|
9135
|
-
* @throws {RequiredError}
|
|
9136
|
-
*/
|
|
9137
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
9138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9139
|
-
var _a, _b, _c;
|
|
9140
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
9141
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9142
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9143
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9144
|
-
});
|
|
9145
|
-
},
|
|
9146
9296
|
/**
|
|
9147
9297
|
*
|
|
9148
9298
|
* @param {*} [options] Override http request option.
|
|
@@ -9513,21 +9663,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9513
9663
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9514
9664
|
});
|
|
9515
9665
|
},
|
|
9516
|
-
/**
|
|
9517
|
-
*
|
|
9518
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9519
|
-
* @param {*} [options] Override http request option.
|
|
9520
|
-
* @throws {RequiredError}
|
|
9521
|
-
*/
|
|
9522
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9523
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9524
|
-
var _a, _b, _c;
|
|
9525
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9526
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9527
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9528
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9529
|
-
});
|
|
9530
|
-
},
|
|
9531
9666
|
/**
|
|
9532
9667
|
*
|
|
9533
9668
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9669,15 +9804,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9669
9804
|
addOrganization(requestParameters, options) {
|
|
9670
9805
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9671
9806
|
},
|
|
9672
|
-
/**
|
|
9673
|
-
*
|
|
9674
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9675
|
-
* @param {*} [options] Override http request option.
|
|
9676
|
-
* @throws {RequiredError}
|
|
9677
|
-
*/
|
|
9678
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9679
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9680
|
-
},
|
|
9681
9807
|
/**
|
|
9682
9808
|
*
|
|
9683
9809
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9687,15 +9813,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9687
9813
|
changePassword(requestParameters, options) {
|
|
9688
9814
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9689
9815
|
},
|
|
9690
|
-
/**
|
|
9691
|
-
*
|
|
9692
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9693
|
-
* @param {*} [options] Override http request option.
|
|
9694
|
-
* @throws {RequiredError}
|
|
9695
|
-
*/
|
|
9696
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9697
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9698
|
-
},
|
|
9699
9816
|
/**
|
|
9700
9817
|
*
|
|
9701
9818
|
* @param {*} [options] Override http request option.
|
|
@@ -9904,15 +10021,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9904
10021
|
resetPassword(requestParameters, options) {
|
|
9905
10022
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9906
10023
|
},
|
|
9907
|
-
/**
|
|
9908
|
-
*
|
|
9909
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9910
|
-
* @param {*} [options] Override http request option.
|
|
9911
|
-
* @throws {RequiredError}
|
|
9912
|
-
*/
|
|
9913
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9914
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9915
|
-
},
|
|
9916
10024
|
/**
|
|
9917
10025
|
*
|
|
9918
10026
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -10015,16 +10123,6 @@ export class UsersApi extends BaseAPI {
|
|
|
10015
10123
|
addOrganization(requestParameters, options) {
|
|
10016
10124
|
return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10017
10125
|
}
|
|
10018
|
-
/**
|
|
10019
|
-
*
|
|
10020
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10021
|
-
* @param {*} [options] Override http request option.
|
|
10022
|
-
* @throws {RequiredError}
|
|
10023
|
-
* @memberof UsersApi
|
|
10024
|
-
*/
|
|
10025
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
10026
|
-
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10027
|
-
}
|
|
10028
10126
|
/**
|
|
10029
10127
|
*
|
|
10030
10128
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -10035,16 +10133,6 @@ export class UsersApi extends BaseAPI {
|
|
|
10035
10133
|
changePassword(requestParameters, options) {
|
|
10036
10134
|
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10037
10135
|
}
|
|
10038
|
-
/**
|
|
10039
|
-
*
|
|
10040
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
10041
|
-
* @param {*} [options] Override http request option.
|
|
10042
|
-
* @throws {RequiredError}
|
|
10043
|
-
* @memberof UsersApi
|
|
10044
|
-
*/
|
|
10045
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
10046
|
-
return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10047
|
-
}
|
|
10048
10136
|
/**
|
|
10049
10137
|
*
|
|
10050
10138
|
* @param {*} [options] Override http request option.
|
|
@@ -10277,16 +10365,6 @@ export class UsersApi extends BaseAPI {
|
|
|
10277
10365
|
resetPassword(requestParameters, options) {
|
|
10278
10366
|
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10279
10367
|
}
|
|
10280
|
-
/**
|
|
10281
|
-
*
|
|
10282
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
10283
|
-
* @param {*} [options] Override http request option.
|
|
10284
|
-
* @throws {RequiredError}
|
|
10285
|
-
* @memberof UsersApi
|
|
10286
|
-
*/
|
|
10287
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
10288
|
-
return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
10289
|
-
}
|
|
10290
10368
|
/**
|
|
10291
10369
|
*
|
|
10292
10370
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|