@tennac-booking/sdk 1.0.129 → 1.0.131
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 +17 -2
- package/README.md +24 -5
- package/api.ts +876 -74
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +685 -57
- package/dist/api.js +286 -29
- 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 +685 -57
- package/dist/esm/api.js +282 -25
- 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/BookingsStaffApi.md +10 -10
- package/docs/{CheckInPlayersRequest.md → CheckInPlayerRequest.md} +5 -5
- package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
- package/docs/ClubAccessSettingsResponse.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +3 -3
- package/docs/ClubSettingsManagerApi.md +52 -0
- package/docs/ClubSettingsStaffApi.md +44 -0
- package/docs/ClubsStaffApi.md +47 -0
- package/docs/CreatePlan201Response.md +2 -0
- package/docs/CreateSubscriptionPlanRequest.md +2 -2
- package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
- package/docs/DeleteSubscriptionPlanResponse.md +2 -0
- package/docs/EstimateEventPrice200Response.md +0 -2
- package/docs/EventBookingDetailSummary.md +2 -2
- package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -0
- package/docs/GetClubType200Response.md +20 -0
- package/docs/HotelAccessSettings.md +26 -0
- package/docs/MonthlyTurnoverResponse.md +0 -1
- package/docs/OffPeakRule.md +2 -0
- package/docs/PartialHotelAccessSettings.md +27 -0
- package/docs/PartialPaymentRequirementsSettings.md +23 -0
- package/docs/PartialPublicAccessSettings.md +25 -0
- package/docs/PartialSchoolAccessSettings.md +25 -0
- package/docs/PaymentRequirementsSettings.md +22 -0
- package/docs/PlanPrice.md +26 -0
- package/docs/PlanPriceInput.md +22 -0
- package/docs/PublicAccessSettings.md +24 -0
- package/docs/PublicSubscriptionPlanResponse.md +5 -1
- package/docs/SchoolAccessSettings.md +24 -0
- package/docs/SendSubscriptionInvitationRequest.md +2 -0
- package/docs/SubscriptionPlanDiscountResponse.md +34 -0
- package/docs/SubscriptionPlanResponse.md +7 -1
- package/docs/SubscriptionsManagerApi.md +55 -1
- package/docs/UpdateClubAccessSettingsRequest.md +26 -0
- package/docs/UserClubSubscription.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.131
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = void 0;
|
|
25
|
+
exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = void 0;
|
|
27
|
+
exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -211,6 +211,11 @@ exports.InvoiceStatusSETUPPENDING = {
|
|
|
211
211
|
exports.InvoiceStatusSETUPSUCCESS = {
|
|
212
212
|
SetupSuccess: 'setup_success'
|
|
213
213
|
};
|
|
214
|
+
exports.PartialPublicAccessSettingsPaymentModeEnum = {
|
|
215
|
+
Free: 'free',
|
|
216
|
+
AccessFee: 'access_fee',
|
|
217
|
+
PerCourt: 'per_court'
|
|
218
|
+
};
|
|
214
219
|
/**
|
|
215
220
|
*
|
|
216
221
|
* @export
|
|
@@ -255,6 +260,11 @@ exports.PlayerCategoryId = {
|
|
|
255
260
|
MostActive: 'most-active',
|
|
256
261
|
Nearby: 'nearby'
|
|
257
262
|
};
|
|
263
|
+
exports.PublicAccessSettingsPaymentModeEnum = {
|
|
264
|
+
Free: 'free',
|
|
265
|
+
AccessFee: 'access_fee',
|
|
266
|
+
PerCourt: 'per_court'
|
|
267
|
+
};
|
|
258
268
|
exports.RecurringDefinitionResponseRecurringTypeEnum = {
|
|
259
269
|
Daily: 'daily',
|
|
260
270
|
Weekly: 'weekly',
|
|
@@ -930,17 +940,17 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
930
940
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
931
941
|
return {
|
|
932
942
|
/**
|
|
933
|
-
* Check-in
|
|
943
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
934
944
|
* @param {string} bookingId
|
|
935
|
-
* @param {
|
|
945
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
936
946
|
* @param {*} [options] Override http request option.
|
|
937
947
|
* @throws {RequiredError}
|
|
938
948
|
*/
|
|
939
|
-
|
|
949
|
+
checkInPlayer: (bookingId_1, checkInPlayerRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerRequest, options = {}) {
|
|
940
950
|
// verify required parameter 'bookingId' is not null or undefined
|
|
941
|
-
(0, common_1.assertParamExists)('
|
|
942
|
-
// verify required parameter '
|
|
943
|
-
(0, common_1.assertParamExists)('
|
|
951
|
+
(0, common_1.assertParamExists)('checkInPlayer', 'bookingId', bookingId);
|
|
952
|
+
// verify required parameter 'checkInPlayerRequest' is not null or undefined
|
|
953
|
+
(0, common_1.assertParamExists)('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest);
|
|
944
954
|
const localVarPath = `/api/bookings/{bookingId}/check-in`
|
|
945
955
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
946
956
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -959,7 +969,7 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
959
969
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
960
970
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
961
971
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
962
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
972
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerRequest, localVarRequestOptions, configuration);
|
|
963
973
|
return {
|
|
964
974
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
965
975
|
options: localVarRequestOptions,
|
|
@@ -1210,18 +1220,18 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1210
1220
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1211
1221
|
return {
|
|
1212
1222
|
/**
|
|
1213
|
-
* Check-in
|
|
1223
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1214
1224
|
* @param {string} bookingId
|
|
1215
|
-
* @param {
|
|
1225
|
+
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1216
1226
|
* @param {*} [options] Override http request option.
|
|
1217
1227
|
* @throws {RequiredError}
|
|
1218
1228
|
*/
|
|
1219
|
-
|
|
1229
|
+
checkInPlayer(bookingId, checkInPlayerRequest, options) {
|
|
1220
1230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1221
1231
|
var _a, _b, _c;
|
|
1222
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1232
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
|
|
1223
1233
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1224
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.
|
|
1234
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1225
1235
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1226
1236
|
});
|
|
1227
1237
|
},
|
|
@@ -1345,13 +1355,13 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1345
1355
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
1346
1356
|
return {
|
|
1347
1357
|
/**
|
|
1348
|
-
* Check-in
|
|
1349
|
-
* @param {
|
|
1358
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1359
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1350
1360
|
* @param {*} [options] Override http request option.
|
|
1351
1361
|
* @throws {RequiredError}
|
|
1352
1362
|
*/
|
|
1353
|
-
|
|
1354
|
-
return localVarFp.
|
|
1363
|
+
checkInPlayer(requestParameters, options) {
|
|
1364
|
+
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
1355
1365
|
},
|
|
1356
1366
|
/**
|
|
1357
1367
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -1427,14 +1437,14 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
1427
1437
|
*/
|
|
1428
1438
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
1429
1439
|
/**
|
|
1430
|
-
* Check-in
|
|
1431
|
-
* @param {
|
|
1440
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1441
|
+
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1432
1442
|
* @param {*} [options] Override http request option.
|
|
1433
1443
|
* @throws {RequiredError}
|
|
1434
1444
|
* @memberof BookingsStaffApi
|
|
1435
1445
|
*/
|
|
1436
|
-
|
|
1437
|
-
return (0, exports.BookingsStaffApiFp)(this.configuration).
|
|
1446
|
+
checkInPlayer(requestParameters, options) {
|
|
1447
|
+
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1438
1448
|
}
|
|
1439
1449
|
/**
|
|
1440
1450
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -3651,6 +3661,38 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
|
3651
3661
|
*/
|
|
3652
3662
|
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3653
3663
|
return {
|
|
3664
|
+
/**
|
|
3665
|
+
*
|
|
3666
|
+
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
3667
|
+
* @param {*} [options] Override http request option.
|
|
3668
|
+
* @throws {RequiredError}
|
|
3669
|
+
*/
|
|
3670
|
+
updateAccessSettings: (updateClubAccessSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubAccessSettingsRequest_1, ...args_1], void 0, function* (updateClubAccessSettingsRequest, options = {}) {
|
|
3671
|
+
// verify required parameter 'updateClubAccessSettingsRequest' is not null or undefined
|
|
3672
|
+
(0, common_1.assertParamExists)('updateAccessSettings', 'updateClubAccessSettingsRequest', updateClubAccessSettingsRequest);
|
|
3673
|
+
const localVarPath = `/api/club-settings/access`;
|
|
3674
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3675
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3676
|
+
let baseOptions;
|
|
3677
|
+
if (configuration) {
|
|
3678
|
+
baseOptions = configuration.baseOptions;
|
|
3679
|
+
}
|
|
3680
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3681
|
+
const localVarHeaderParameter = {};
|
|
3682
|
+
const localVarQueryParameter = {};
|
|
3683
|
+
// authentication bearerAuth required
|
|
3684
|
+
// http bearer authentication required
|
|
3685
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3686
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3687
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3688
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3689
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3690
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubAccessSettingsRequest, localVarRequestOptions, configuration);
|
|
3691
|
+
return {
|
|
3692
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3693
|
+
options: localVarRequestOptions,
|
|
3694
|
+
};
|
|
3695
|
+
}),
|
|
3654
3696
|
/**
|
|
3655
3697
|
*
|
|
3656
3698
|
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
@@ -3789,6 +3831,21 @@ exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosPar
|
|
|
3789
3831
|
const ClubSettingsManagerApiFp = function (configuration) {
|
|
3790
3832
|
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
3791
3833
|
return {
|
|
3834
|
+
/**
|
|
3835
|
+
*
|
|
3836
|
+
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
3837
|
+
* @param {*} [options] Override http request option.
|
|
3838
|
+
* @throws {RequiredError}
|
|
3839
|
+
*/
|
|
3840
|
+
updateAccessSettings(updateClubAccessSettingsRequest, options) {
|
|
3841
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3842
|
+
var _a, _b, _c;
|
|
3843
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAccessSettings(updateClubAccessSettingsRequest, options);
|
|
3844
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3845
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateAccessSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3846
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3847
|
+
});
|
|
3848
|
+
},
|
|
3792
3849
|
/**
|
|
3793
3850
|
*
|
|
3794
3851
|
* @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
|
|
@@ -3859,6 +3916,15 @@ exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
|
|
|
3859
3916
|
const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3860
3917
|
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
3861
3918
|
return {
|
|
3919
|
+
/**
|
|
3920
|
+
*
|
|
3921
|
+
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
3922
|
+
* @param {*} [options] Override http request option.
|
|
3923
|
+
* @throws {RequiredError}
|
|
3924
|
+
*/
|
|
3925
|
+
updateAccessSettings(requestParameters, options) {
|
|
3926
|
+
return localVarFp.updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3927
|
+
},
|
|
3862
3928
|
/**
|
|
3863
3929
|
*
|
|
3864
3930
|
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
@@ -3905,6 +3971,16 @@ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
|
3905
3971
|
* @extends {BaseAPI}
|
|
3906
3972
|
*/
|
|
3907
3973
|
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
3974
|
+
/**
|
|
3975
|
+
*
|
|
3976
|
+
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
3977
|
+
* @param {*} [options] Override http request option.
|
|
3978
|
+
* @throws {RequiredError}
|
|
3979
|
+
* @memberof ClubSettingsManagerApi
|
|
3980
|
+
*/
|
|
3981
|
+
updateAccessSettings(requestParameters, options) {
|
|
3982
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3983
|
+
}
|
|
3908
3984
|
/**
|
|
3909
3985
|
*
|
|
3910
3986
|
* @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
|
|
@@ -3953,6 +4029,33 @@ exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
|
|
|
3953
4029
|
*/
|
|
3954
4030
|
const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
|
|
3955
4031
|
return {
|
|
4032
|
+
/**
|
|
4033
|
+
*
|
|
4034
|
+
* @param {*} [options] Override http request option.
|
|
4035
|
+
* @throws {RequiredError}
|
|
4036
|
+
*/
|
|
4037
|
+
getAccessSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4038
|
+
const localVarPath = `/api/club-settings/access`;
|
|
4039
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4040
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4041
|
+
let baseOptions;
|
|
4042
|
+
if (configuration) {
|
|
4043
|
+
baseOptions = configuration.baseOptions;
|
|
4044
|
+
}
|
|
4045
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4046
|
+
const localVarHeaderParameter = {};
|
|
4047
|
+
const localVarQueryParameter = {};
|
|
4048
|
+
// authentication bearerAuth required
|
|
4049
|
+
// http bearer authentication required
|
|
4050
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4051
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4052
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4053
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4054
|
+
return {
|
|
4055
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4056
|
+
options: localVarRequestOptions,
|
|
4057
|
+
};
|
|
4058
|
+
}),
|
|
3956
4059
|
/**
|
|
3957
4060
|
*
|
|
3958
4061
|
* @param {*} [options] Override http request option.
|
|
@@ -4071,6 +4174,20 @@ exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCr
|
|
|
4071
4174
|
const ClubSettingsStaffApiFp = function (configuration) {
|
|
4072
4175
|
const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
|
|
4073
4176
|
return {
|
|
4177
|
+
/**
|
|
4178
|
+
*
|
|
4179
|
+
* @param {*} [options] Override http request option.
|
|
4180
|
+
* @throws {RequiredError}
|
|
4181
|
+
*/
|
|
4182
|
+
getAccessSettings(options) {
|
|
4183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4184
|
+
var _a, _b, _c;
|
|
4185
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccessSettings(options);
|
|
4186
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4187
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getAccessSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4188
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4189
|
+
});
|
|
4190
|
+
},
|
|
4074
4191
|
/**
|
|
4075
4192
|
*
|
|
4076
4193
|
* @param {*} [options] Override http request option.
|
|
@@ -4137,6 +4254,14 @@ exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
|
|
|
4137
4254
|
const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
4138
4255
|
const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
|
|
4139
4256
|
return {
|
|
4257
|
+
/**
|
|
4258
|
+
*
|
|
4259
|
+
* @param {*} [options] Override http request option.
|
|
4260
|
+
* @throws {RequiredError}
|
|
4261
|
+
*/
|
|
4262
|
+
getAccessSettings(options) {
|
|
4263
|
+
return localVarFp.getAccessSettings(options).then((request) => request(axios, basePath));
|
|
4264
|
+
},
|
|
4140
4265
|
/**
|
|
4141
4266
|
*
|
|
4142
4267
|
* @param {*} [options] Override http request option.
|
|
@@ -4179,6 +4304,15 @@ exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
|
|
|
4179
4304
|
* @extends {BaseAPI}
|
|
4180
4305
|
*/
|
|
4181
4306
|
class ClubSettingsStaffApi extends base_1.BaseAPI {
|
|
4307
|
+
/**
|
|
4308
|
+
*
|
|
4309
|
+
* @param {*} [options] Override http request option.
|
|
4310
|
+
* @throws {RequiredError}
|
|
4311
|
+
* @memberof ClubSettingsStaffApi
|
|
4312
|
+
*/
|
|
4313
|
+
getAccessSettings(options) {
|
|
4314
|
+
return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getAccessSettings(options).then((request) => request(this.axios, this.basePath));
|
|
4315
|
+
}
|
|
4182
4316
|
/**
|
|
4183
4317
|
*
|
|
4184
4318
|
* @param {*} [options] Override http request option.
|
|
@@ -6728,6 +6862,33 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6728
6862
|
options: localVarRequestOptions,
|
|
6729
6863
|
};
|
|
6730
6864
|
}),
|
|
6865
|
+
/**
|
|
6866
|
+
*
|
|
6867
|
+
* @param {*} [options] Override http request option.
|
|
6868
|
+
* @throws {RequiredError}
|
|
6869
|
+
*/
|
|
6870
|
+
getClubType: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6871
|
+
const localVarPath = `/api/clubs/clubType`;
|
|
6872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6873
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6874
|
+
let baseOptions;
|
|
6875
|
+
if (configuration) {
|
|
6876
|
+
baseOptions = configuration.baseOptions;
|
|
6877
|
+
}
|
|
6878
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6879
|
+
const localVarHeaderParameter = {};
|
|
6880
|
+
const localVarQueryParameter = {};
|
|
6881
|
+
// authentication bearerAuth required
|
|
6882
|
+
// http bearer authentication required
|
|
6883
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6884
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6886
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6887
|
+
return {
|
|
6888
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6889
|
+
options: localVarRequestOptions,
|
|
6890
|
+
};
|
|
6891
|
+
}),
|
|
6731
6892
|
/**
|
|
6732
6893
|
* Récupère les terrains d\'un club
|
|
6733
6894
|
* @param {*} [options] Override http request option.
|
|
@@ -6973,6 +7134,20 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6973
7134
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6974
7135
|
});
|
|
6975
7136
|
},
|
|
7137
|
+
/**
|
|
7138
|
+
*
|
|
7139
|
+
* @param {*} [options] Override http request option.
|
|
7140
|
+
* @throws {RequiredError}
|
|
7141
|
+
*/
|
|
7142
|
+
getClubType(options) {
|
|
7143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7144
|
+
var _a, _b, _c;
|
|
7145
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(options);
|
|
7146
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7147
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7148
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7149
|
+
});
|
|
7150
|
+
},
|
|
6976
7151
|
/**
|
|
6977
7152
|
* Récupère les terrains d\'un club
|
|
6978
7153
|
* @param {*} [options] Override http request option.
|
|
@@ -7098,6 +7273,14 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7098
7273
|
getClubRoles(options) {
|
|
7099
7274
|
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
7100
7275
|
},
|
|
7276
|
+
/**
|
|
7277
|
+
*
|
|
7278
|
+
* @param {*} [options] Override http request option.
|
|
7279
|
+
* @throws {RequiredError}
|
|
7280
|
+
*/
|
|
7281
|
+
getClubType(options) {
|
|
7282
|
+
return localVarFp.getClubType(options).then((request) => request(axios, basePath));
|
|
7283
|
+
},
|
|
7101
7284
|
/**
|
|
7102
7285
|
* Récupère les terrains d\'un club
|
|
7103
7286
|
* @param {*} [options] Override http request option.
|
|
@@ -7198,6 +7381,15 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
7198
7381
|
getClubRoles(options) {
|
|
7199
7382
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
7200
7383
|
}
|
|
7384
|
+
/**
|
|
7385
|
+
*
|
|
7386
|
+
* @param {*} [options] Override http request option.
|
|
7387
|
+
* @throws {RequiredError}
|
|
7388
|
+
* @memberof ClubsStaffApi
|
|
7389
|
+
*/
|
|
7390
|
+
getClubType(options) {
|
|
7391
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubType(options).then((request) => request(this.axios, this.basePath));
|
|
7392
|
+
}
|
|
7201
7393
|
/**
|
|
7202
7394
|
* Récupère les terrains d\'un club
|
|
7203
7395
|
* @param {*} [options] Override http request option.
|
|
@@ -9361,6 +9553,37 @@ exports.SportsPublicApi = SportsPublicApi;
|
|
|
9361
9553
|
*/
|
|
9362
9554
|
const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
9363
9555
|
return {
|
|
9556
|
+
/**
|
|
9557
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9558
|
+
* @param {string} productId
|
|
9559
|
+
* @param {*} [options] Override http request option.
|
|
9560
|
+
* @throws {RequiredError}
|
|
9561
|
+
*/
|
|
9562
|
+
archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
9563
|
+
// verify required parameter 'productId' is not null or undefined
|
|
9564
|
+
(0, common_1.assertParamExists)('archivePlan', 'productId', productId);
|
|
9565
|
+
const localVarPath = `/api/subscriptions/plans/{productId}/archive`
|
|
9566
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
9567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9568
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9569
|
+
let baseOptions;
|
|
9570
|
+
if (configuration) {
|
|
9571
|
+
baseOptions = configuration.baseOptions;
|
|
9572
|
+
}
|
|
9573
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9574
|
+
const localVarHeaderParameter = {};
|
|
9575
|
+
const localVarQueryParameter = {};
|
|
9576
|
+
// authentication bearerAuth required
|
|
9577
|
+
// http bearer authentication required
|
|
9578
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9579
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9580
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9581
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9582
|
+
return {
|
|
9583
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9584
|
+
options: localVarRequestOptions,
|
|
9585
|
+
};
|
|
9586
|
+
}),
|
|
9364
9587
|
/**
|
|
9365
9588
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9366
9589
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9394,7 +9617,7 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
9394
9617
|
};
|
|
9395
9618
|
}),
|
|
9396
9619
|
/**
|
|
9397
|
-
* Supprime
|
|
9620
|
+
* Supprime un plan par productId (manager)
|
|
9398
9621
|
* @param {string} productId
|
|
9399
9622
|
* @param {*} [options] Override http request option.
|
|
9400
9623
|
* @throws {RequiredError}
|
|
@@ -9466,6 +9689,21 @@ exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosP
|
|
|
9466
9689
|
const SubscriptionsManagerApiFp = function (configuration) {
|
|
9467
9690
|
const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
|
|
9468
9691
|
return {
|
|
9692
|
+
/**
|
|
9693
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9694
|
+
* @param {string} productId
|
|
9695
|
+
* @param {*} [options] Override http request option.
|
|
9696
|
+
* @throws {RequiredError}
|
|
9697
|
+
*/
|
|
9698
|
+
archivePlan(productId, options) {
|
|
9699
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9700
|
+
var _a, _b, _c;
|
|
9701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
|
|
9702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9703
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9704
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9705
|
+
});
|
|
9706
|
+
},
|
|
9469
9707
|
/**
|
|
9470
9708
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9471
9709
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9482,7 +9720,7 @@ const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9482
9720
|
});
|
|
9483
9721
|
},
|
|
9484
9722
|
/**
|
|
9485
|
-
* Supprime
|
|
9723
|
+
* Supprime un plan par productId (manager)
|
|
9486
9724
|
* @param {string} productId
|
|
9487
9725
|
* @param {*} [options] Override http request option.
|
|
9488
9726
|
* @throws {RequiredError}
|
|
@@ -9521,6 +9759,15 @@ exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
|
|
|
9521
9759
|
const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
9522
9760
|
const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
|
|
9523
9761
|
return {
|
|
9762
|
+
/**
|
|
9763
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9764
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9765
|
+
* @param {*} [options] Override http request option.
|
|
9766
|
+
* @throws {RequiredError}
|
|
9767
|
+
*/
|
|
9768
|
+
archivePlan(requestParameters, options) {
|
|
9769
|
+
return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
9770
|
+
},
|
|
9524
9771
|
/**
|
|
9525
9772
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9526
9773
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9531,7 +9778,7 @@ const SubscriptionsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
9531
9778
|
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
9532
9779
|
},
|
|
9533
9780
|
/**
|
|
9534
|
-
* Supprime
|
|
9781
|
+
* Supprime un plan par productId (manager)
|
|
9535
9782
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9536
9783
|
* @param {*} [options] Override http request option.
|
|
9537
9784
|
* @throws {RequiredError}
|
|
@@ -9558,6 +9805,16 @@ exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
|
|
|
9558
9805
|
* @extends {BaseAPI}
|
|
9559
9806
|
*/
|
|
9560
9807
|
class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
9808
|
+
/**
|
|
9809
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9810
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9811
|
+
* @param {*} [options] Override http request option.
|
|
9812
|
+
* @throws {RequiredError}
|
|
9813
|
+
* @memberof SubscriptionsManagerApi
|
|
9814
|
+
*/
|
|
9815
|
+
archivePlan(requestParameters, options) {
|
|
9816
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
9817
|
+
}
|
|
9561
9818
|
/**
|
|
9562
9819
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9563
9820
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9569,7 +9826,7 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
|
9569
9826
|
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9570
9827
|
}
|
|
9571
9828
|
/**
|
|
9572
|
-
* Supprime
|
|
9829
|
+
* Supprime un plan par productId (manager)
|
|
9573
9830
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9574
9831
|
* @param {*} [options] Override http request option.
|
|
9575
9832
|
* @throws {RequiredError}
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED