@tennac-booking/sdk 1.0.60 → 1.0.61
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 +40 -5
- package/README.md +47 -14
- package/api.ts +6803 -5030
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +3874 -2297
- package/dist/api.js +899 -495
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +3874 -2297
- package/dist/esm/api.js +880 -493
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/ClubResponse.md +0 -1
- package/docs/ClubsManagerApi.md +0 -55
- package/docs/ClubsStaffApi.md +2 -2
- package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
- package/docs/CreateSubscriptionPlanRequest.md +10 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
- package/docs/DefaultApi.md +0 -54
- package/docs/{DeleteClubResponse.md → DeleteSubscriptionPlanResponse.md} +4 -4
- package/docs/DiscountType.md +14 -0
- package/docs/OffPeakRule.md +26 -0
- package/docs/PlanInterval.md +14 -0
- package/docs/PublicSubscriptionPlanResponse.md +30 -0
- package/docs/StripeStripeDeletedProduct.md +25 -0
- package/docs/StripeStripePrice.md +63 -0
- package/docs/StripeStripePriceBillingScheme.md +10 -0
- package/docs/StripeStripePriceCurrencyOptions.md +28 -0
- package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
- package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
- package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
- package/docs/StripeStripePriceProduct.md +59 -0
- package/docs/StripeStripePriceRecurring.md +28 -0
- package/docs/StripeStripePriceRecurringInterval.md +14 -0
- package/docs/StripeStripePriceRecurringUsageType.md +10 -0
- package/docs/StripeStripePriceTaxBehavior.md +12 -0
- package/docs/StripeStripePriceTier.md +28 -0
- package/docs/StripeStripePriceTiersMode.md +10 -0
- package/docs/StripeStripePriceTransformQuantity.md +22 -0
- package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
- package/docs/StripeStripePriceType.md +10 -0
- package/docs/StripeStripeProduct.md +59 -0
- package/docs/StripeStripeProductDefaultPrice.md +63 -0
- package/docs/{GetCourtsByClub200Response.md → StripeStripeProductMarketingFeature.md} +5 -5
- package/docs/StripeStripeProductPackageDimensions.md +26 -0
- package/docs/StripeStripeProductTaxCode.md +27 -0
- package/docs/StripeStripeProductType.md +10 -0
- package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
- package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
- package/docs/StripeStripeTaxCode.md +27 -0
- package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
- package/docs/SubscriptionPlanResponse.md +14 -2
- package/docs/SubscriptionsManagerApi.md +171 -0
- package/docs/SubscriptionsPublicApi.md +60 -0
- package/docs/SubscriptionsStaffApi.md +54 -0
- package/docs/SubscriptionsUserApi.md +222 -0
- package/docs/UpdatePlanRequest.md +24 -0
- package/docs/UsersApi.md +0 -256
- package/index.ts +2 -2
- package/package.json +1 -1
- package/docs/SubscriptionSessionResponse.md +0 -20
package/dist/api.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* openapi.json
|
|
6
|
-
* API
|
|
6
|
+
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.61
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,8 +22,9 @@ 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.
|
|
25
|
+
exports.ClubAnalyticsApiAxiosParamCreator = 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.UserLocationSummaryTypeEnum = exports.UpdateUserRequestBodyLocationTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = 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.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.DiscountType = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = 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.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = 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 = void 0;
|
|
27
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = 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.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -75,6 +76,17 @@ exports.CreateClubRoleRequestRoleEnum = {
|
|
|
75
76
|
Manager: 'manager',
|
|
76
77
|
Staff: 'staff'
|
|
77
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @export
|
|
82
|
+
* @enum {string}
|
|
83
|
+
*/
|
|
84
|
+
exports.DiscountType = {
|
|
85
|
+
None: 'none',
|
|
86
|
+
Free: 'free',
|
|
87
|
+
Percentage: 'percentage',
|
|
88
|
+
OffPeak: 'off_peak'
|
|
89
|
+
};
|
|
78
90
|
/**
|
|
79
91
|
*
|
|
80
92
|
* @export
|
|
@@ -98,6 +110,126 @@ exports.PaymentMethod = {
|
|
|
98
110
|
Onsite: 'onsite',
|
|
99
111
|
Free: 'free'
|
|
100
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @export
|
|
116
|
+
* @enum {string}
|
|
117
|
+
*/
|
|
118
|
+
exports.PlanInterval = {
|
|
119
|
+
Monthly: 'monthly',
|
|
120
|
+
Yearly: 'yearly',
|
|
121
|
+
Trimester: 'trimester',
|
|
122
|
+
Semester: 'semester'
|
|
123
|
+
};
|
|
124
|
+
exports.StripeStripeDeletedProductObjectEnum = {
|
|
125
|
+
Product: 'product'
|
|
126
|
+
};
|
|
127
|
+
exports.StripeStripePriceObjectEnum = {
|
|
128
|
+
Price: 'price'
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @export
|
|
133
|
+
* @enum {string}
|
|
134
|
+
*/
|
|
135
|
+
exports.StripeStripePriceBillingScheme = {
|
|
136
|
+
PerUnit: 'per_unit',
|
|
137
|
+
Tiered: 'tiered'
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @export
|
|
142
|
+
* @enum {string}
|
|
143
|
+
*/
|
|
144
|
+
exports.StripeStripePriceCurrencyOptionsTaxBehavior = {
|
|
145
|
+
Exclusive: 'exclusive',
|
|
146
|
+
Inclusive: 'inclusive',
|
|
147
|
+
Unspecified: 'unspecified'
|
|
148
|
+
};
|
|
149
|
+
exports.StripeStripePriceProductObjectEnum = {
|
|
150
|
+
Product: 'product'
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @export
|
|
155
|
+
* @enum {string}
|
|
156
|
+
*/
|
|
157
|
+
exports.StripeStripePriceRecurringInterval = {
|
|
158
|
+
Day: 'day',
|
|
159
|
+
Month: 'month',
|
|
160
|
+
Week: 'week',
|
|
161
|
+
Year: 'year'
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @export
|
|
166
|
+
* @enum {string}
|
|
167
|
+
*/
|
|
168
|
+
exports.StripeStripePriceRecurringUsageType = {
|
|
169
|
+
Licensed: 'licensed',
|
|
170
|
+
Metered: 'metered'
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @export
|
|
175
|
+
* @enum {string}
|
|
176
|
+
*/
|
|
177
|
+
exports.StripeStripePriceTaxBehavior = {
|
|
178
|
+
Exclusive: 'exclusive',
|
|
179
|
+
Inclusive: 'inclusive',
|
|
180
|
+
Unspecified: 'unspecified'
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @export
|
|
185
|
+
* @enum {string}
|
|
186
|
+
*/
|
|
187
|
+
exports.StripeStripePriceTiersMode = {
|
|
188
|
+
Graduated: 'graduated',
|
|
189
|
+
Volume: 'volume'
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @export
|
|
194
|
+
* @enum {string}
|
|
195
|
+
*/
|
|
196
|
+
exports.StripeStripePriceTransformQuantityRound = {
|
|
197
|
+
Down: 'down',
|
|
198
|
+
Up: 'up'
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @enum {string}
|
|
204
|
+
*/
|
|
205
|
+
exports.StripeStripePriceType = {
|
|
206
|
+
OneTime: 'one_time',
|
|
207
|
+
Recurring: 'recurring'
|
|
208
|
+
};
|
|
209
|
+
exports.StripeStripeProductObjectEnum = {
|
|
210
|
+
Product: 'product'
|
|
211
|
+
};
|
|
212
|
+
exports.StripeStripeProductDefaultPriceObjectEnum = {
|
|
213
|
+
Price: 'price'
|
|
214
|
+
};
|
|
215
|
+
exports.StripeStripeProductTaxCodeObjectEnum = {
|
|
216
|
+
TaxCode: 'tax_code'
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @export
|
|
221
|
+
* @enum {string}
|
|
222
|
+
*/
|
|
223
|
+
exports.StripeStripeProductType = {
|
|
224
|
+
Good: 'good',
|
|
225
|
+
Service: 'service'
|
|
226
|
+
};
|
|
227
|
+
exports.StripeStripeResponseStripeStripePriceObjectEnum = {
|
|
228
|
+
Price: 'price'
|
|
229
|
+
};
|
|
230
|
+
exports.StripeStripeTaxCodeObjectEnum = {
|
|
231
|
+
TaxCode: 'tax_code'
|
|
232
|
+
};
|
|
101
233
|
/**
|
|
102
234
|
*
|
|
103
235
|
* @export
|
|
@@ -3497,38 +3629,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3497
3629
|
options: localVarRequestOptions,
|
|
3498
3630
|
};
|
|
3499
3631
|
}),
|
|
3500
|
-
/**
|
|
3501
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
3502
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
3503
|
-
* @param {*} [options] Override http request option.
|
|
3504
|
-
* @throws {RequiredError}
|
|
3505
|
-
*/
|
|
3506
|
-
createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
3507
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
3508
|
-
(0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
3509
|
-
const localVarPath = `/api/clubs/subscription-plans`;
|
|
3510
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3511
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3512
|
-
let baseOptions;
|
|
3513
|
-
if (configuration) {
|
|
3514
|
-
baseOptions = configuration.baseOptions;
|
|
3515
|
-
}
|
|
3516
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3517
|
-
const localVarHeaderParameter = {};
|
|
3518
|
-
const localVarQueryParameter = {};
|
|
3519
|
-
// authentication bearerAuth required
|
|
3520
|
-
// http bearer authentication required
|
|
3521
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3522
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3523
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3524
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3525
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3526
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
3527
|
-
return {
|
|
3528
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3529
|
-
options: localVarRequestOptions,
|
|
3530
|
-
};
|
|
3531
|
-
}),
|
|
3532
3632
|
/**
|
|
3533
3633
|
*
|
|
3534
3634
|
* @param {string} actualityId
|
|
@@ -4015,21 +4115,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
4015
4115
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4016
4116
|
});
|
|
4017
4117
|
},
|
|
4018
|
-
/**
|
|
4019
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4020
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
4021
|
-
* @param {*} [options] Override http request option.
|
|
4022
|
-
* @throws {RequiredError}
|
|
4023
|
-
*/
|
|
4024
|
-
createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
|
|
4025
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4026
|
-
var _a, _b, _c;
|
|
4027
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
|
|
4028
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4029
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4030
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4031
|
-
});
|
|
4032
|
-
},
|
|
4033
4118
|
/**
|
|
4034
4119
|
*
|
|
4035
4120
|
* @param {string} actualityId
|
|
@@ -4276,15 +4361,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
4276
4361
|
createSportForClub(requestParameters, options) {
|
|
4277
4362
|
return localVarFp.createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(axios, basePath));
|
|
4278
4363
|
},
|
|
4279
|
-
/**
|
|
4280
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4281
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4282
|
-
* @param {*} [options] Override http request option.
|
|
4283
|
-
* @throws {RequiredError}
|
|
4284
|
-
*/
|
|
4285
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4286
|
-
return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
4287
|
-
},
|
|
4288
4364
|
/**
|
|
4289
4365
|
*
|
|
4290
4366
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -4462,16 +4538,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
4462
4538
|
createSportForClub(requestParameters, options) {
|
|
4463
4539
|
return (0, exports.ClubsManagerApiFp)(this.configuration).createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4464
4540
|
}
|
|
4465
|
-
/**
|
|
4466
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4467
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4468
|
-
* @param {*} [options] Override http request option.
|
|
4469
|
-
* @throws {RequiredError}
|
|
4470
|
-
* @memberof ClubsManagerApi
|
|
4471
|
-
*/
|
|
4472
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4473
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4474
|
-
}
|
|
4475
4541
|
/**
|
|
4476
4542
|
*
|
|
4477
4543
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -5079,37 +5145,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
5079
5145
|
options: localVarRequestOptions,
|
|
5080
5146
|
};
|
|
5081
5147
|
}),
|
|
5082
|
-
/**
|
|
5083
|
-
* Supprime un club et toutes ses données associées
|
|
5084
|
-
* @param {string} id
|
|
5085
|
-
* @param {*} [options] Override http request option.
|
|
5086
|
-
* @throws {RequiredError}
|
|
5087
|
-
*/
|
|
5088
|
-
deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5089
|
-
// verify required parameter 'id' is not null or undefined
|
|
5090
|
-
(0, common_1.assertParamExists)('deleteClub', 'id', id);
|
|
5091
|
-
const localVarPath = `/api/clubs/{id}`
|
|
5092
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5093
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5094
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5095
|
-
let baseOptions;
|
|
5096
|
-
if (configuration) {
|
|
5097
|
-
baseOptions = configuration.baseOptions;
|
|
5098
|
-
}
|
|
5099
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5100
|
-
const localVarHeaderParameter = {};
|
|
5101
|
-
const localVarQueryParameter = {};
|
|
5102
|
-
// authentication bearerAuth required
|
|
5103
|
-
// http bearer authentication required
|
|
5104
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5105
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5106
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5107
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5108
|
-
return {
|
|
5109
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5110
|
-
options: localVarRequestOptions,
|
|
5111
|
-
};
|
|
5112
|
-
}),
|
|
5113
5148
|
};
|
|
5114
5149
|
};
|
|
5115
5150
|
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
@@ -5135,21 +5170,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
5135
5170
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5136
5171
|
});
|
|
5137
5172
|
},
|
|
5138
|
-
/**
|
|
5139
|
-
* Supprime un club et toutes ses données associées
|
|
5140
|
-
* @param {string} id
|
|
5141
|
-
* @param {*} [options] Override http request option.
|
|
5142
|
-
* @throws {RequiredError}
|
|
5143
|
-
*/
|
|
5144
|
-
deleteClub(id, options) {
|
|
5145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5146
|
-
var _a, _b, _c;
|
|
5147
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
|
|
5148
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5149
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5150
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5151
|
-
});
|
|
5152
|
-
},
|
|
5153
5173
|
};
|
|
5154
5174
|
};
|
|
5155
5175
|
exports.DefaultApiFp = DefaultApiFp;
|
|
@@ -5169,15 +5189,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5169
5189
|
createClub(requestParameters, options) {
|
|
5170
5190
|
return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
|
|
5171
5191
|
},
|
|
5172
|
-
/**
|
|
5173
|
-
* Supprime un club et toutes ses données associées
|
|
5174
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5175
|
-
* @param {*} [options] Override http request option.
|
|
5176
|
-
* @throws {RequiredError}
|
|
5177
|
-
*/
|
|
5178
|
-
deleteClub(requestParameters, options) {
|
|
5179
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5180
|
-
},
|
|
5181
5192
|
};
|
|
5182
5193
|
};
|
|
5183
5194
|
exports.DefaultApiFactory = DefaultApiFactory;
|
|
@@ -5198,16 +5209,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5198
5209
|
createClub(requestParameters, options) {
|
|
5199
5210
|
return (0, exports.DefaultApiFp)(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5200
5211
|
}
|
|
5201
|
-
/**
|
|
5202
|
-
* Supprime un club et toutes ses données associées
|
|
5203
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5204
|
-
* @param {*} [options] Override http request option.
|
|
5205
|
-
* @throws {RequiredError}
|
|
5206
|
-
* @memberof DefaultApi
|
|
5207
|
-
*/
|
|
5208
|
-
deleteClub(requestParameters, options) {
|
|
5209
|
-
return (0, exports.DefaultApiFp)(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5210
|
-
}
|
|
5211
5212
|
}
|
|
5212
5213
|
exports.DefaultApi = DefaultApi;
|
|
5213
5214
|
/**
|
|
@@ -6113,21 +6114,21 @@ class SportsStaffApi extends base_1.BaseAPI {
|
|
|
6113
6114
|
}
|
|
6114
6115
|
exports.SportsStaffApi = SportsStaffApi;
|
|
6115
6116
|
/**
|
|
6116
|
-
*
|
|
6117
|
+
* SubscriptionsManagerApi - axios parameter creator
|
|
6117
6118
|
* @export
|
|
6118
6119
|
*/
|
|
6119
|
-
const
|
|
6120
|
+
const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
6120
6121
|
return {
|
|
6121
6122
|
/**
|
|
6122
|
-
*
|
|
6123
|
-
* @param {
|
|
6123
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6124
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6124
6125
|
* @param {*} [options] Override http request option.
|
|
6125
6126
|
* @throws {RequiredError}
|
|
6126
6127
|
*/
|
|
6127
|
-
|
|
6128
|
-
// verify required parameter '
|
|
6129
|
-
(0, common_1.assertParamExists)('
|
|
6130
|
-
const localVarPath = `/api/
|
|
6128
|
+
createPlan: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
6129
|
+
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
6130
|
+
(0, common_1.assertParamExists)('createPlan', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
6131
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6131
6132
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6132
6133
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6133
6134
|
let baseOptions;
|
|
@@ -6144,61 +6145,60 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6144
6145
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6145
6146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6146
6147
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6147
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6148
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
6148
6149
|
return {
|
|
6149
6150
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6150
6151
|
options: localVarRequestOptions,
|
|
6151
6152
|
};
|
|
6152
6153
|
}),
|
|
6153
6154
|
/**
|
|
6154
|
-
*
|
|
6155
|
-
* @param {
|
|
6155
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6156
|
+
* @param {string} productId
|
|
6156
6157
|
* @param {*} [options] Override http request option.
|
|
6157
6158
|
* @throws {RequiredError}
|
|
6158
6159
|
*/
|
|
6159
|
-
|
|
6160
|
-
// verify required parameter '
|
|
6161
|
-
(0, common_1.assertParamExists)('
|
|
6162
|
-
const localVarPath = `/api/
|
|
6160
|
+
deletePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
6161
|
+
// verify required parameter 'productId' is not null or undefined
|
|
6162
|
+
(0, common_1.assertParamExists)('deletePlan', 'productId', productId);
|
|
6163
|
+
const localVarPath = `/api/subscriptions/plans/{productId}`
|
|
6164
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
6163
6165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6164
6166
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6165
6167
|
let baseOptions;
|
|
6166
6168
|
if (configuration) {
|
|
6167
6169
|
baseOptions = configuration.baseOptions;
|
|
6168
6170
|
}
|
|
6169
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6171
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6170
6172
|
const localVarHeaderParameter = {};
|
|
6171
6173
|
const localVarQueryParameter = {};
|
|
6172
6174
|
// authentication bearerAuth required
|
|
6173
6175
|
// http bearer authentication required
|
|
6174
6176
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6175
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6176
6177
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6177
6178
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6178
6179
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6179
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6180
6180
|
return {
|
|
6181
6181
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6182
6182
|
options: localVarRequestOptions,
|
|
6183
6183
|
};
|
|
6184
6184
|
}),
|
|
6185
6185
|
/**
|
|
6186
|
-
*
|
|
6187
|
-
* @param {
|
|
6186
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6187
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6188
6188
|
* @param {*} [options] Override http request option.
|
|
6189
6189
|
* @throws {RequiredError}
|
|
6190
6190
|
*/
|
|
6191
|
-
|
|
6192
|
-
// verify required parameter '
|
|
6193
|
-
(0, common_1.assertParamExists)('
|
|
6194
|
-
const localVarPath = `/api/
|
|
6191
|
+
updatePlan: (updatePlanRequest_1, ...args_1) => __awaiter(this, [updatePlanRequest_1, ...args_1], void 0, function* (updatePlanRequest, options = {}) {
|
|
6192
|
+
// verify required parameter 'updatePlanRequest' is not null or undefined
|
|
6193
|
+
(0, common_1.assertParamExists)('updatePlan', 'updatePlanRequest', updatePlanRequest);
|
|
6194
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6195
6195
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6196
6196
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6197
6197
|
let baseOptions;
|
|
6198
6198
|
if (configuration) {
|
|
6199
6199
|
baseOptions = configuration.baseOptions;
|
|
6200
6200
|
}
|
|
6201
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6202
6202
|
const localVarHeaderParameter = {};
|
|
6203
6203
|
const localVarQueryParameter = {};
|
|
6204
6204
|
// authentication bearerAuth required
|
|
@@ -6208,59 +6208,758 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6208
6208
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6209
6209
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6210
6210
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6211
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6211
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePlanRequest, localVarRequestOptions, configuration);
|
|
6212
6212
|
return {
|
|
6213
6213
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6214
6214
|
options: localVarRequestOptions,
|
|
6215
6215
|
};
|
|
6216
6216
|
}),
|
|
6217
|
+
};
|
|
6218
|
+
};
|
|
6219
|
+
exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator;
|
|
6220
|
+
/**
|
|
6221
|
+
* SubscriptionsManagerApi - functional programming interface
|
|
6222
|
+
* @export
|
|
6223
|
+
*/
|
|
6224
|
+
const SubscriptionsManagerApiFp = function (configuration) {
|
|
6225
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
|
|
6226
|
+
return {
|
|
6217
6227
|
/**
|
|
6218
|
-
*
|
|
6219
|
-
* @param {
|
|
6220
|
-
* @param {string} subscriptionId
|
|
6228
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6229
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6221
6230
|
* @param {*} [options] Override http request option.
|
|
6222
6231
|
* @throws {RequiredError}
|
|
6223
6232
|
*/
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6234
|
-
let baseOptions;
|
|
6235
|
-
if (configuration) {
|
|
6236
|
-
baseOptions = configuration.baseOptions;
|
|
6237
|
-
}
|
|
6238
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6239
|
-
const localVarHeaderParameter = {};
|
|
6240
|
-
const localVarQueryParameter = {};
|
|
6241
|
-
// authentication bearerAuth required
|
|
6242
|
-
// http bearer authentication required
|
|
6243
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6244
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6245
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6246
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6247
|
-
return {
|
|
6248
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6249
|
-
options: localVarRequestOptions,
|
|
6250
|
-
};
|
|
6251
|
-
}),
|
|
6233
|
+
createPlan(createSubscriptionPlanRequest, options) {
|
|
6234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6235
|
+
var _a, _b, _c;
|
|
6236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPlan(createSubscriptionPlanRequest, options);
|
|
6237
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6238
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.createPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6239
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6240
|
+
});
|
|
6241
|
+
},
|
|
6252
6242
|
/**
|
|
6253
|
-
*
|
|
6254
|
-
* @param {
|
|
6243
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6244
|
+
* @param {string} productId
|
|
6255
6245
|
* @param {*} [options] Override http request option.
|
|
6256
6246
|
* @throws {RequiredError}
|
|
6257
6247
|
*/
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6248
|
+
deletePlan(productId, options) {
|
|
6249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6250
|
+
var _a, _b, _c;
|
|
6251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePlan(productId, options);
|
|
6252
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6253
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.deletePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6254
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6255
|
+
});
|
|
6256
|
+
},
|
|
6257
|
+
/**
|
|
6258
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6259
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6260
|
+
* @param {*} [options] Override http request option.
|
|
6261
|
+
* @throws {RequiredError}
|
|
6262
|
+
*/
|
|
6263
|
+
updatePlan(updatePlanRequest, options) {
|
|
6264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6265
|
+
var _a, _b, _c;
|
|
6266
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(updatePlanRequest, options);
|
|
6267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6268
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.updatePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6269
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6270
|
+
});
|
|
6271
|
+
},
|
|
6272
|
+
};
|
|
6273
|
+
};
|
|
6274
|
+
exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
|
|
6275
|
+
/**
|
|
6276
|
+
* SubscriptionsManagerApi - factory interface
|
|
6277
|
+
* @export
|
|
6278
|
+
*/
|
|
6279
|
+
const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
6280
|
+
const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
|
|
6281
|
+
return {
|
|
6282
|
+
/**
|
|
6283
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6284
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6285
|
+
* @param {*} [options] Override http request option.
|
|
6286
|
+
* @throws {RequiredError}
|
|
6287
|
+
*/
|
|
6288
|
+
createPlan(requestParameters, options) {
|
|
6289
|
+
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6290
|
+
},
|
|
6291
|
+
/**
|
|
6292
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6293
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6294
|
+
* @param {*} [options] Override http request option.
|
|
6295
|
+
* @throws {RequiredError}
|
|
6296
|
+
*/
|
|
6297
|
+
deletePlan(requestParameters, options) {
|
|
6298
|
+
return localVarFp.deletePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6299
|
+
},
|
|
6300
|
+
/**
|
|
6301
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6302
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6303
|
+
* @param {*} [options] Override http request option.
|
|
6304
|
+
* @throws {RequiredError}
|
|
6305
|
+
*/
|
|
6306
|
+
updatePlan(requestParameters, options) {
|
|
6307
|
+
return localVarFp.updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(axios, basePath));
|
|
6308
|
+
},
|
|
6309
|
+
};
|
|
6310
|
+
};
|
|
6311
|
+
exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
|
|
6312
|
+
/**
|
|
6313
|
+
* SubscriptionsManagerApi - object-oriented interface
|
|
6314
|
+
* @export
|
|
6315
|
+
* @class SubscriptionsManagerApi
|
|
6316
|
+
* @extends {BaseAPI}
|
|
6317
|
+
*/
|
|
6318
|
+
class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
6319
|
+
/**
|
|
6320
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6321
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6322
|
+
* @param {*} [options] Override http request option.
|
|
6323
|
+
* @throws {RequiredError}
|
|
6324
|
+
* @memberof SubscriptionsManagerApi
|
|
6325
|
+
*/
|
|
6326
|
+
createPlan(requestParameters, options) {
|
|
6327
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6328
|
+
}
|
|
6329
|
+
/**
|
|
6330
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6331
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6332
|
+
* @param {*} [options] Override http request option.
|
|
6333
|
+
* @throws {RequiredError}
|
|
6334
|
+
* @memberof SubscriptionsManagerApi
|
|
6335
|
+
*/
|
|
6336
|
+
deletePlan(requestParameters, options) {
|
|
6337
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).deletePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6338
|
+
}
|
|
6339
|
+
/**
|
|
6340
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6341
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6342
|
+
* @param {*} [options] Override http request option.
|
|
6343
|
+
* @throws {RequiredError}
|
|
6344
|
+
* @memberof SubscriptionsManagerApi
|
|
6345
|
+
*/
|
|
6346
|
+
updatePlan(requestParameters, options) {
|
|
6347
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6348
|
+
}
|
|
6349
|
+
}
|
|
6350
|
+
exports.SubscriptionsManagerApi = SubscriptionsManagerApi;
|
|
6351
|
+
/**
|
|
6352
|
+
* SubscriptionsPublicApi - axios parameter creator
|
|
6353
|
+
* @export
|
|
6354
|
+
*/
|
|
6355
|
+
const SubscriptionsPublicApiAxiosParamCreator = function (configuration) {
|
|
6356
|
+
return {
|
|
6357
|
+
/**
|
|
6358
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6359
|
+
* @param {string} clubId
|
|
6360
|
+
* @param {*} [options] Override http request option.
|
|
6361
|
+
* @throws {RequiredError}
|
|
6362
|
+
*/
|
|
6363
|
+
getPublicPlans: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6364
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6365
|
+
(0, common_1.assertParamExists)('getPublicPlans', 'clubId', clubId);
|
|
6366
|
+
const localVarPath = `/api/subscriptions/plans/{clubId}`
|
|
6367
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6368
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6369
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6370
|
+
let baseOptions;
|
|
6371
|
+
if (configuration) {
|
|
6372
|
+
baseOptions = configuration.baseOptions;
|
|
6373
|
+
}
|
|
6374
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6375
|
+
const localVarHeaderParameter = {};
|
|
6376
|
+
const localVarQueryParameter = {};
|
|
6377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6379
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6380
|
+
return {
|
|
6381
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6382
|
+
options: localVarRequestOptions,
|
|
6383
|
+
};
|
|
6384
|
+
}),
|
|
6385
|
+
};
|
|
6386
|
+
};
|
|
6387
|
+
exports.SubscriptionsPublicApiAxiosParamCreator = SubscriptionsPublicApiAxiosParamCreator;
|
|
6388
|
+
/**
|
|
6389
|
+
* SubscriptionsPublicApi - functional programming interface
|
|
6390
|
+
* @export
|
|
6391
|
+
*/
|
|
6392
|
+
const SubscriptionsPublicApiFp = function (configuration) {
|
|
6393
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsPublicApiAxiosParamCreator)(configuration);
|
|
6394
|
+
return {
|
|
6395
|
+
/**
|
|
6396
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6397
|
+
* @param {string} clubId
|
|
6398
|
+
* @param {*} [options] Override http request option.
|
|
6399
|
+
* @throws {RequiredError}
|
|
6400
|
+
*/
|
|
6401
|
+
getPublicPlans(clubId, options) {
|
|
6402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6403
|
+
var _a, _b, _c;
|
|
6404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicPlans(clubId, options);
|
|
6405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6406
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsPublicApi.getPublicPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6408
|
+
});
|
|
6409
|
+
},
|
|
6410
|
+
};
|
|
6411
|
+
};
|
|
6412
|
+
exports.SubscriptionsPublicApiFp = SubscriptionsPublicApiFp;
|
|
6413
|
+
/**
|
|
6414
|
+
* SubscriptionsPublicApi - factory interface
|
|
6415
|
+
* @export
|
|
6416
|
+
*/
|
|
6417
|
+
const SubscriptionsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6418
|
+
const localVarFp = (0, exports.SubscriptionsPublicApiFp)(configuration);
|
|
6419
|
+
return {
|
|
6420
|
+
/**
|
|
6421
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6422
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6423
|
+
* @param {*} [options] Override http request option.
|
|
6424
|
+
* @throws {RequiredError}
|
|
6425
|
+
*/
|
|
6426
|
+
getPublicPlans(requestParameters, options) {
|
|
6427
|
+
return localVarFp.getPublicPlans(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6428
|
+
},
|
|
6429
|
+
};
|
|
6430
|
+
};
|
|
6431
|
+
exports.SubscriptionsPublicApiFactory = SubscriptionsPublicApiFactory;
|
|
6432
|
+
/**
|
|
6433
|
+
* SubscriptionsPublicApi - object-oriented interface
|
|
6434
|
+
* @export
|
|
6435
|
+
* @class SubscriptionsPublicApi
|
|
6436
|
+
* @extends {BaseAPI}
|
|
6437
|
+
*/
|
|
6438
|
+
class SubscriptionsPublicApi extends base_1.BaseAPI {
|
|
6439
|
+
/**
|
|
6440
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6441
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6442
|
+
* @param {*} [options] Override http request option.
|
|
6443
|
+
* @throws {RequiredError}
|
|
6444
|
+
* @memberof SubscriptionsPublicApi
|
|
6445
|
+
*/
|
|
6446
|
+
getPublicPlans(requestParameters, options) {
|
|
6447
|
+
return (0, exports.SubscriptionsPublicApiFp)(this.configuration).getPublicPlans(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
6448
|
+
}
|
|
6449
|
+
}
|
|
6450
|
+
exports.SubscriptionsPublicApi = SubscriptionsPublicApi;
|
|
6451
|
+
/**
|
|
6452
|
+
* SubscriptionsStaffApi - axios parameter creator
|
|
6453
|
+
* @export
|
|
6454
|
+
*/
|
|
6455
|
+
const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
|
|
6456
|
+
return {
|
|
6457
|
+
/**
|
|
6458
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6459
|
+
* @param {*} [options] Override http request option.
|
|
6460
|
+
* @throws {RequiredError}
|
|
6461
|
+
*/
|
|
6462
|
+
getClubPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6463
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6464
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6465
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6466
|
+
let baseOptions;
|
|
6467
|
+
if (configuration) {
|
|
6468
|
+
baseOptions = configuration.baseOptions;
|
|
6469
|
+
}
|
|
6470
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6471
|
+
const localVarHeaderParameter = {};
|
|
6472
|
+
const localVarQueryParameter = {};
|
|
6473
|
+
// authentication bearerAuth required
|
|
6474
|
+
// http bearer authentication required
|
|
6475
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6476
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6477
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6478
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6479
|
+
return {
|
|
6480
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6481
|
+
options: localVarRequestOptions,
|
|
6482
|
+
};
|
|
6483
|
+
}),
|
|
6484
|
+
};
|
|
6485
|
+
};
|
|
6486
|
+
exports.SubscriptionsStaffApiAxiosParamCreator = SubscriptionsStaffApiAxiosParamCreator;
|
|
6487
|
+
/**
|
|
6488
|
+
* SubscriptionsStaffApi - functional programming interface
|
|
6489
|
+
* @export
|
|
6490
|
+
*/
|
|
6491
|
+
const SubscriptionsStaffApiFp = function (configuration) {
|
|
6492
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsStaffApiAxiosParamCreator)(configuration);
|
|
6493
|
+
return {
|
|
6494
|
+
/**
|
|
6495
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6496
|
+
* @param {*} [options] Override http request option.
|
|
6497
|
+
* @throws {RequiredError}
|
|
6498
|
+
*/
|
|
6499
|
+
getClubPlans(options) {
|
|
6500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6501
|
+
var _a, _b, _c;
|
|
6502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlans(options);
|
|
6503
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6504
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsStaffApi.getClubPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6505
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6506
|
+
});
|
|
6507
|
+
},
|
|
6508
|
+
};
|
|
6509
|
+
};
|
|
6510
|
+
exports.SubscriptionsStaffApiFp = SubscriptionsStaffApiFp;
|
|
6511
|
+
/**
|
|
6512
|
+
* SubscriptionsStaffApi - factory interface
|
|
6513
|
+
* @export
|
|
6514
|
+
*/
|
|
6515
|
+
const SubscriptionsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6516
|
+
const localVarFp = (0, exports.SubscriptionsStaffApiFp)(configuration);
|
|
6517
|
+
return {
|
|
6518
|
+
/**
|
|
6519
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6520
|
+
* @param {*} [options] Override http request option.
|
|
6521
|
+
* @throws {RequiredError}
|
|
6522
|
+
*/
|
|
6523
|
+
getClubPlans(options) {
|
|
6524
|
+
return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
|
|
6525
|
+
},
|
|
6526
|
+
};
|
|
6527
|
+
};
|
|
6528
|
+
exports.SubscriptionsStaffApiFactory = SubscriptionsStaffApiFactory;
|
|
6529
|
+
/**
|
|
6530
|
+
* SubscriptionsStaffApi - object-oriented interface
|
|
6531
|
+
* @export
|
|
6532
|
+
* @class SubscriptionsStaffApi
|
|
6533
|
+
* @extends {BaseAPI}
|
|
6534
|
+
*/
|
|
6535
|
+
class SubscriptionsStaffApi extends base_1.BaseAPI {
|
|
6536
|
+
/**
|
|
6537
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6538
|
+
* @param {*} [options] Override http request option.
|
|
6539
|
+
* @throws {RequiredError}
|
|
6540
|
+
* @memberof SubscriptionsStaffApi
|
|
6541
|
+
*/
|
|
6542
|
+
getClubPlans(options) {
|
|
6543
|
+
return (0, exports.SubscriptionsStaffApiFp)(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
|
|
6544
|
+
}
|
|
6545
|
+
}
|
|
6546
|
+
exports.SubscriptionsStaffApi = SubscriptionsStaffApi;
|
|
6547
|
+
/**
|
|
6548
|
+
* SubscriptionsUserApi - axios parameter creator
|
|
6549
|
+
* @export
|
|
6550
|
+
*/
|
|
6551
|
+
const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
6552
|
+
return {
|
|
6553
|
+
/**
|
|
6554
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6555
|
+
* @param {string} clubId
|
|
6556
|
+
* @param {string} subscriptionId
|
|
6557
|
+
* @param {*} [options] Override http request option.
|
|
6558
|
+
* @throws {RequiredError}
|
|
6559
|
+
*/
|
|
6560
|
+
cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6561
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6562
|
+
(0, common_1.assertParamExists)('cancel', 'clubId', clubId);
|
|
6563
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6564
|
+
(0, common_1.assertParamExists)('cancel', 'subscriptionId', subscriptionId);
|
|
6565
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
6566
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6567
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6569
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6570
|
+
let baseOptions;
|
|
6571
|
+
if (configuration) {
|
|
6572
|
+
baseOptions = configuration.baseOptions;
|
|
6573
|
+
}
|
|
6574
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6575
|
+
const localVarHeaderParameter = {};
|
|
6576
|
+
const localVarQueryParameter = {};
|
|
6577
|
+
// authentication bearerAuth required
|
|
6578
|
+
// http bearer authentication required
|
|
6579
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6580
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6582
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6583
|
+
return {
|
|
6584
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6585
|
+
options: localVarRequestOptions,
|
|
6586
|
+
};
|
|
6587
|
+
}),
|
|
6588
|
+
/**
|
|
6589
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6590
|
+
* @param {*} [options] Override http request option.
|
|
6591
|
+
* @throws {RequiredError}
|
|
6592
|
+
*/
|
|
6593
|
+
mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6594
|
+
const localVarPath = `/api/subscriptions/me`;
|
|
6595
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6596
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6597
|
+
let baseOptions;
|
|
6598
|
+
if (configuration) {
|
|
6599
|
+
baseOptions = configuration.baseOptions;
|
|
6600
|
+
}
|
|
6601
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6602
|
+
const localVarHeaderParameter = {};
|
|
6603
|
+
const localVarQueryParameter = {};
|
|
6604
|
+
// authentication bearerAuth required
|
|
6605
|
+
// http bearer authentication required
|
|
6606
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6607
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6608
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6609
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6610
|
+
return {
|
|
6611
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6612
|
+
options: localVarRequestOptions,
|
|
6613
|
+
};
|
|
6614
|
+
}),
|
|
6615
|
+
/**
|
|
6616
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6617
|
+
* @param {string} clubId
|
|
6618
|
+
* @param {string} subscriptionId
|
|
6619
|
+
* @param {*} [options] Override http request option.
|
|
6620
|
+
* @throws {RequiredError}
|
|
6621
|
+
*/
|
|
6622
|
+
resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6623
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6624
|
+
(0, common_1.assertParamExists)('resume', 'clubId', clubId);
|
|
6625
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6626
|
+
(0, common_1.assertParamExists)('resume', 'subscriptionId', subscriptionId);
|
|
6627
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6628
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6629
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6631
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6632
|
+
let baseOptions;
|
|
6633
|
+
if (configuration) {
|
|
6634
|
+
baseOptions = configuration.baseOptions;
|
|
6635
|
+
}
|
|
6636
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6637
|
+
const localVarHeaderParameter = {};
|
|
6638
|
+
const localVarQueryParameter = {};
|
|
6639
|
+
// authentication bearerAuth required
|
|
6640
|
+
// http bearer authentication required
|
|
6641
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6642
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6644
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6645
|
+
return {
|
|
6646
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6647
|
+
options: localVarRequestOptions,
|
|
6648
|
+
};
|
|
6649
|
+
}),
|
|
6650
|
+
/**
|
|
6651
|
+
* S\'abonner à un plan (auth classique)
|
|
6652
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6653
|
+
* @param {*} [options] Override http request option.
|
|
6654
|
+
* @throws {RequiredError}
|
|
6655
|
+
*/
|
|
6656
|
+
subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
|
|
6657
|
+
// verify required parameter 'subscribeRequestBody' is not null or undefined
|
|
6658
|
+
(0, common_1.assertParamExists)('subscribe', 'subscribeRequestBody', subscribeRequestBody);
|
|
6659
|
+
const localVarPath = `/api/subscriptions/subscribe`;
|
|
6660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6661
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6662
|
+
let baseOptions;
|
|
6663
|
+
if (configuration) {
|
|
6664
|
+
baseOptions = configuration.baseOptions;
|
|
6665
|
+
}
|
|
6666
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6667
|
+
const localVarHeaderParameter = {};
|
|
6668
|
+
const localVarQueryParameter = {};
|
|
6669
|
+
// authentication bearerAuth required
|
|
6670
|
+
// http bearer authentication required
|
|
6671
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6672
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6673
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6676
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
6677
|
+
return {
|
|
6678
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6679
|
+
options: localVarRequestOptions,
|
|
6680
|
+
};
|
|
6681
|
+
}),
|
|
6682
|
+
};
|
|
6683
|
+
};
|
|
6684
|
+
exports.SubscriptionsUserApiAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator;
|
|
6685
|
+
/**
|
|
6686
|
+
* SubscriptionsUserApi - functional programming interface
|
|
6687
|
+
* @export
|
|
6688
|
+
*/
|
|
6689
|
+
const SubscriptionsUserApiFp = function (configuration) {
|
|
6690
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsUserApiAxiosParamCreator)(configuration);
|
|
6691
|
+
return {
|
|
6692
|
+
/**
|
|
6693
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6694
|
+
* @param {string} clubId
|
|
6695
|
+
* @param {string} subscriptionId
|
|
6696
|
+
* @param {*} [options] Override http request option.
|
|
6697
|
+
* @throws {RequiredError}
|
|
6698
|
+
*/
|
|
6699
|
+
cancel(clubId, subscriptionId, options) {
|
|
6700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6701
|
+
var _a, _b, _c;
|
|
6702
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
|
|
6703
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6704
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6705
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6706
|
+
});
|
|
6707
|
+
},
|
|
6708
|
+
/**
|
|
6709
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6710
|
+
* @param {*} [options] Override http request option.
|
|
6711
|
+
* @throws {RequiredError}
|
|
6712
|
+
*/
|
|
6713
|
+
mySubscriptions(options) {
|
|
6714
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6715
|
+
var _a, _b, _c;
|
|
6716
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
|
|
6717
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6718
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6719
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6720
|
+
});
|
|
6721
|
+
},
|
|
6722
|
+
/**
|
|
6723
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6724
|
+
* @param {string} clubId
|
|
6725
|
+
* @param {string} subscriptionId
|
|
6726
|
+
* @param {*} [options] Override http request option.
|
|
6727
|
+
* @throws {RequiredError}
|
|
6728
|
+
*/
|
|
6729
|
+
resume(clubId, subscriptionId, options) {
|
|
6730
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6731
|
+
var _a, _b, _c;
|
|
6732
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
|
|
6733
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6734
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6735
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6736
|
+
});
|
|
6737
|
+
},
|
|
6738
|
+
/**
|
|
6739
|
+
* S\'abonner à un plan (auth classique)
|
|
6740
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6741
|
+
* @param {*} [options] Override http request option.
|
|
6742
|
+
* @throws {RequiredError}
|
|
6743
|
+
*/
|
|
6744
|
+
subscribe(subscribeRequestBody, options) {
|
|
6745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6746
|
+
var _a, _b, _c;
|
|
6747
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
|
|
6748
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6749
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6750
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6751
|
+
});
|
|
6752
|
+
},
|
|
6753
|
+
};
|
|
6754
|
+
};
|
|
6755
|
+
exports.SubscriptionsUserApiFp = SubscriptionsUserApiFp;
|
|
6756
|
+
/**
|
|
6757
|
+
* SubscriptionsUserApi - factory interface
|
|
6758
|
+
* @export
|
|
6759
|
+
*/
|
|
6760
|
+
const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
|
|
6761
|
+
const localVarFp = (0, exports.SubscriptionsUserApiFp)(configuration);
|
|
6762
|
+
return {
|
|
6763
|
+
/**
|
|
6764
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6765
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6766
|
+
* @param {*} [options] Override http request option.
|
|
6767
|
+
* @throws {RequiredError}
|
|
6768
|
+
*/
|
|
6769
|
+
cancel(requestParameters, options) {
|
|
6770
|
+
return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6771
|
+
},
|
|
6772
|
+
/**
|
|
6773
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6774
|
+
* @param {*} [options] Override http request option.
|
|
6775
|
+
* @throws {RequiredError}
|
|
6776
|
+
*/
|
|
6777
|
+
mySubscriptions(options) {
|
|
6778
|
+
return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
|
|
6779
|
+
},
|
|
6780
|
+
/**
|
|
6781
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6782
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6783
|
+
* @param {*} [options] Override http request option.
|
|
6784
|
+
* @throws {RequiredError}
|
|
6785
|
+
*/
|
|
6786
|
+
resume(requestParameters, options) {
|
|
6787
|
+
return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6788
|
+
},
|
|
6789
|
+
/**
|
|
6790
|
+
* S\'abonner à un plan (auth classique)
|
|
6791
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6792
|
+
* @param {*} [options] Override http request option.
|
|
6793
|
+
* @throws {RequiredError}
|
|
6794
|
+
*/
|
|
6795
|
+
subscribe(requestParameters, options) {
|
|
6796
|
+
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
6797
|
+
},
|
|
6798
|
+
};
|
|
6799
|
+
};
|
|
6800
|
+
exports.SubscriptionsUserApiFactory = SubscriptionsUserApiFactory;
|
|
6801
|
+
/**
|
|
6802
|
+
* SubscriptionsUserApi - object-oriented interface
|
|
6803
|
+
* @export
|
|
6804
|
+
* @class SubscriptionsUserApi
|
|
6805
|
+
* @extends {BaseAPI}
|
|
6806
|
+
*/
|
|
6807
|
+
class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
6808
|
+
/**
|
|
6809
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6810
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6811
|
+
* @param {*} [options] Override http request option.
|
|
6812
|
+
* @throws {RequiredError}
|
|
6813
|
+
* @memberof SubscriptionsUserApi
|
|
6814
|
+
*/
|
|
6815
|
+
cancel(requestParameters, options) {
|
|
6816
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6817
|
+
}
|
|
6818
|
+
/**
|
|
6819
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6820
|
+
* @param {*} [options] Override http request option.
|
|
6821
|
+
* @throws {RequiredError}
|
|
6822
|
+
* @memberof SubscriptionsUserApi
|
|
6823
|
+
*/
|
|
6824
|
+
mySubscriptions(options) {
|
|
6825
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
6826
|
+
}
|
|
6827
|
+
/**
|
|
6828
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6829
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6830
|
+
* @param {*} [options] Override http request option.
|
|
6831
|
+
* @throws {RequiredError}
|
|
6832
|
+
* @memberof SubscriptionsUserApi
|
|
6833
|
+
*/
|
|
6834
|
+
resume(requestParameters, options) {
|
|
6835
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6836
|
+
}
|
|
6837
|
+
/**
|
|
6838
|
+
* S\'abonner à un plan (auth classique)
|
|
6839
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6840
|
+
* @param {*} [options] Override http request option.
|
|
6841
|
+
* @throws {RequiredError}
|
|
6842
|
+
* @memberof SubscriptionsUserApi
|
|
6843
|
+
*/
|
|
6844
|
+
subscribe(requestParameters, options) {
|
|
6845
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6846
|
+
}
|
|
6847
|
+
}
|
|
6848
|
+
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
6849
|
+
/**
|
|
6850
|
+
* UsersApi - axios parameter creator
|
|
6851
|
+
* @export
|
|
6852
|
+
*/
|
|
6853
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
|
6854
|
+
return {
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
6858
|
+
* @param {*} [options] Override http request option.
|
|
6859
|
+
* @throws {RequiredError}
|
|
6860
|
+
*/
|
|
6861
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
6862
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
6863
|
+
(0, common_1.assertParamExists)('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
6864
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6865
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6866
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6867
|
+
let baseOptions;
|
|
6868
|
+
if (configuration) {
|
|
6869
|
+
baseOptions = configuration.baseOptions;
|
|
6870
|
+
}
|
|
6871
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6872
|
+
const localVarHeaderParameter = {};
|
|
6873
|
+
const localVarQueryParameter = {};
|
|
6874
|
+
// authentication bearerAuth required
|
|
6875
|
+
// http bearer authentication required
|
|
6876
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6877
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6878
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6879
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6880
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6881
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
6882
|
+
return {
|
|
6883
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6884
|
+
options: localVarRequestOptions,
|
|
6885
|
+
};
|
|
6886
|
+
}),
|
|
6887
|
+
/**
|
|
6888
|
+
*
|
|
6889
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
6890
|
+
* @param {*} [options] Override http request option.
|
|
6891
|
+
* @throws {RequiredError}
|
|
6892
|
+
*/
|
|
6893
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
6894
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
6895
|
+
(0, common_1.assertParamExists)('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
6896
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6898
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6899
|
+
let baseOptions;
|
|
6900
|
+
if (configuration) {
|
|
6901
|
+
baseOptions = configuration.baseOptions;
|
|
6902
|
+
}
|
|
6903
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6904
|
+
const localVarHeaderParameter = {};
|
|
6905
|
+
const localVarQueryParameter = {};
|
|
6906
|
+
// authentication bearerAuth required
|
|
6907
|
+
// http bearer authentication required
|
|
6908
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6909
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6910
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6911
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6912
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6913
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6914
|
+
return {
|
|
6915
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6916
|
+
options: localVarRequestOptions,
|
|
6917
|
+
};
|
|
6918
|
+
}),
|
|
6919
|
+
/**
|
|
6920
|
+
*
|
|
6921
|
+
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
6922
|
+
* @param {*} [options] Override http request option.
|
|
6923
|
+
* @throws {RequiredError}
|
|
6924
|
+
*/
|
|
6925
|
+
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
6926
|
+
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
6927
|
+
(0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
6928
|
+
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
6929
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6930
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6931
|
+
let baseOptions;
|
|
6932
|
+
if (configuration) {
|
|
6933
|
+
baseOptions = configuration.baseOptions;
|
|
6934
|
+
}
|
|
6935
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6936
|
+
const localVarHeaderParameter = {};
|
|
6937
|
+
const localVarQueryParameter = {};
|
|
6938
|
+
// authentication bearerAuth required
|
|
6939
|
+
// http bearer authentication required
|
|
6940
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6941
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6942
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6943
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6944
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6945
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6946
|
+
return {
|
|
6947
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6948
|
+
options: localVarRequestOptions,
|
|
6949
|
+
};
|
|
6950
|
+
}),
|
|
6951
|
+
/**
|
|
6952
|
+
*
|
|
6953
|
+
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
6954
|
+
* @param {*} [options] Override http request option.
|
|
6955
|
+
* @throws {RequiredError}
|
|
6956
|
+
*/
|
|
6957
|
+
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
6958
|
+
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
6959
|
+
(0, common_1.assertParamExists)('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
6960
|
+
const localVarPath = `/api/users/me/password`;
|
|
6961
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6962
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6264
6963
|
let baseOptions;
|
|
6265
6964
|
if (configuration) {
|
|
6266
6965
|
baseOptions = configuration.baseOptions;
|
|
@@ -6722,65 +7421,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6722
7421
|
options: localVarRequestOptions,
|
|
6723
7422
|
};
|
|
6724
7423
|
}),
|
|
6725
|
-
/**
|
|
6726
|
-
*
|
|
6727
|
-
* @param {*} [options] Override http request option.
|
|
6728
|
-
* @throws {RequiredError}
|
|
6729
|
-
*/
|
|
6730
|
-
getUserSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6731
|
-
const localVarPath = `/api/users/me/subscriptions`;
|
|
6732
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6733
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6734
|
-
let baseOptions;
|
|
6735
|
-
if (configuration) {
|
|
6736
|
-
baseOptions = configuration.baseOptions;
|
|
6737
|
-
}
|
|
6738
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6739
|
-
const localVarHeaderParameter = {};
|
|
6740
|
-
const localVarQueryParameter = {};
|
|
6741
|
-
// authentication bearerAuth required
|
|
6742
|
-
// http bearer authentication required
|
|
6743
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6744
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6745
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6746
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6747
|
-
return {
|
|
6748
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6749
|
-
options: localVarRequestOptions,
|
|
6750
|
-
};
|
|
6751
|
-
}),
|
|
6752
|
-
/**
|
|
6753
|
-
*
|
|
6754
|
-
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
6755
|
-
* @param {*} [options] Override http request option.
|
|
6756
|
-
* @throws {RequiredError}
|
|
6757
|
-
*/
|
|
6758
|
-
initiateSubscriptionSession: (subscriptionSessionRequestBody_1, ...args_1) => __awaiter(this, [subscriptionSessionRequestBody_1, ...args_1], void 0, function* (subscriptionSessionRequestBody, options = {}) {
|
|
6759
|
-
// verify required parameter 'subscriptionSessionRequestBody' is not null or undefined
|
|
6760
|
-
(0, common_1.assertParamExists)('initiateSubscriptionSession', 'subscriptionSessionRequestBody', subscriptionSessionRequestBody);
|
|
6761
|
-
const localVarPath = `/api/users/me/subscription-session`;
|
|
6762
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6763
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6764
|
-
let baseOptions;
|
|
6765
|
-
if (configuration) {
|
|
6766
|
-
baseOptions = configuration.baseOptions;
|
|
6767
|
-
}
|
|
6768
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6769
|
-
const localVarHeaderParameter = {};
|
|
6770
|
-
const localVarQueryParameter = {};
|
|
6771
|
-
// authentication bearerAuth required
|
|
6772
|
-
// http bearer authentication required
|
|
6773
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6774
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6775
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6776
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6777
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6778
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionSessionRequestBody, localVarRequestOptions, configuration);
|
|
6779
|
-
return {
|
|
6780
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6781
|
-
options: localVarRequestOptions,
|
|
6782
|
-
};
|
|
6783
|
-
}),
|
|
6784
7424
|
/**
|
|
6785
7425
|
*
|
|
6786
7426
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -6959,41 +7599,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6959
7599
|
options: localVarRequestOptions,
|
|
6960
7600
|
};
|
|
6961
7601
|
}),
|
|
6962
|
-
/**
|
|
6963
|
-
*
|
|
6964
|
-
* @param {string} clubId
|
|
6965
|
-
* @param {string} subscriptionId
|
|
6966
|
-
* @param {*} [options] Override http request option.
|
|
6967
|
-
* @throws {RequiredError}
|
|
6968
|
-
*/
|
|
6969
|
-
resumeSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6970
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
6971
|
-
(0, common_1.assertParamExists)('resumeSubscription', 'clubId', clubId);
|
|
6972
|
-
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6973
|
-
(0, common_1.assertParamExists)('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
6974
|
-
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6975
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6976
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6977
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6978
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6979
|
-
let baseOptions;
|
|
6980
|
-
if (configuration) {
|
|
6981
|
-
baseOptions = configuration.baseOptions;
|
|
6982
|
-
}
|
|
6983
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6984
|
-
const localVarHeaderParameter = {};
|
|
6985
|
-
const localVarQueryParameter = {};
|
|
6986
|
-
// authentication bearerAuth required
|
|
6987
|
-
// http bearer authentication required
|
|
6988
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6989
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6990
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6991
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6992
|
-
return {
|
|
6993
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6994
|
-
options: localVarRequestOptions,
|
|
6995
|
-
};
|
|
6996
|
-
}),
|
|
6997
7602
|
/**
|
|
6998
7603
|
*
|
|
6999
7604
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
@@ -7055,38 +7660,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7055
7660
|
options: localVarRequestOptions,
|
|
7056
7661
|
};
|
|
7057
7662
|
}),
|
|
7058
|
-
/**
|
|
7059
|
-
*
|
|
7060
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
7061
|
-
* @param {*} [options] Override http request option.
|
|
7062
|
-
* @throws {RequiredError}
|
|
7063
|
-
*/
|
|
7064
|
-
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
7065
|
-
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
7066
|
-
(0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
7067
|
-
const localVarPath = `/api/users/me/subscribe`;
|
|
7068
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7069
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7070
|
-
let baseOptions;
|
|
7071
|
-
if (configuration) {
|
|
7072
|
-
baseOptions = configuration.baseOptions;
|
|
7073
|
-
}
|
|
7074
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7075
|
-
const localVarHeaderParameter = {};
|
|
7076
|
-
const localVarQueryParameter = {};
|
|
7077
|
-
// authentication bearerAuth required
|
|
7078
|
-
// http bearer authentication required
|
|
7079
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7080
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7081
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7082
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7083
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7084
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
7085
|
-
return {
|
|
7086
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7087
|
-
options: localVarRequestOptions,
|
|
7088
|
-
};
|
|
7089
|
-
}),
|
|
7090
7663
|
/**
|
|
7091
7664
|
*
|
|
7092
7665
|
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
@@ -7270,22 +7843,6 @@ const UsersApiFp = function (configuration) {
|
|
|
7270
7843
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7271
7844
|
});
|
|
7272
7845
|
},
|
|
7273
|
-
/**
|
|
7274
|
-
*
|
|
7275
|
-
* @param {string} clubId
|
|
7276
|
-
* @param {string} subscriptionId
|
|
7277
|
-
* @param {*} [options] Override http request option.
|
|
7278
|
-
* @throws {RequiredError}
|
|
7279
|
-
*/
|
|
7280
|
-
cancelSubscription(clubId, subscriptionId, options) {
|
|
7281
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7282
|
-
var _a, _b, _c;
|
|
7283
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
7284
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7285
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7286
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7287
|
-
});
|
|
7288
|
-
},
|
|
7289
7846
|
/**
|
|
7290
7847
|
*
|
|
7291
7848
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7514,35 +8071,6 @@ const UsersApiFp = function (configuration) {
|
|
|
7514
8071
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7515
8072
|
});
|
|
7516
8073
|
},
|
|
7517
|
-
/**
|
|
7518
|
-
*
|
|
7519
|
-
* @param {*} [options] Override http request option.
|
|
7520
|
-
* @throws {RequiredError}
|
|
7521
|
-
*/
|
|
7522
|
-
getUserSubscriptions(options) {
|
|
7523
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7524
|
-
var _a, _b, _c;
|
|
7525
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
7526
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7527
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7528
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7529
|
-
});
|
|
7530
|
-
},
|
|
7531
|
-
/**
|
|
7532
|
-
*
|
|
7533
|
-
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
7534
|
-
* @param {*} [options] Override http request option.
|
|
7535
|
-
* @throws {RequiredError}
|
|
7536
|
-
*/
|
|
7537
|
-
initiateSubscriptionSession(subscriptionSessionRequestBody, options) {
|
|
7538
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7539
|
-
var _a, _b, _c;
|
|
7540
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(subscriptionSessionRequestBody, options);
|
|
7541
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7542
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7543
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7544
|
-
});
|
|
7545
|
-
},
|
|
7546
8074
|
/**
|
|
7547
8075
|
*
|
|
7548
8076
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -7633,22 +8161,6 @@ const UsersApiFp = function (configuration) {
|
|
|
7633
8161
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7634
8162
|
});
|
|
7635
8163
|
},
|
|
7636
|
-
/**
|
|
7637
|
-
*
|
|
7638
|
-
* @param {string} clubId
|
|
7639
|
-
* @param {string} subscriptionId
|
|
7640
|
-
* @param {*} [options] Override http request option.
|
|
7641
|
-
* @throws {RequiredError}
|
|
7642
|
-
*/
|
|
7643
|
-
resumeSubscription(clubId, subscriptionId, options) {
|
|
7644
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7645
|
-
var _a, _b, _c;
|
|
7646
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.resumeSubscription(clubId, subscriptionId, options);
|
|
7647
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7648
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.resumeSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7649
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7650
|
-
});
|
|
7651
|
-
},
|
|
7652
8164
|
/**
|
|
7653
8165
|
*
|
|
7654
8166
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
@@ -7679,21 +8191,6 @@ const UsersApiFp = function (configuration) {
|
|
|
7679
8191
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7680
8192
|
});
|
|
7681
8193
|
},
|
|
7682
|
-
/**
|
|
7683
|
-
*
|
|
7684
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
7685
|
-
* @param {*} [options] Override http request option.
|
|
7686
|
-
* @throws {RequiredError}
|
|
7687
|
-
*/
|
|
7688
|
-
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
7689
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7690
|
-
var _a, _b, _c;
|
|
7691
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
7692
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7693
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7694
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7695
|
-
});
|
|
7696
|
-
},
|
|
7697
8194
|
/**
|
|
7698
8195
|
*
|
|
7699
8196
|
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
@@ -7791,15 +8288,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7791
8288
|
addPaymentMethodSetup(requestParameters, options) {
|
|
7792
8289
|
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
7793
8290
|
},
|
|
7794
|
-
/**
|
|
7795
|
-
*
|
|
7796
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
7797
|
-
* @param {*} [options] Override http request option.
|
|
7798
|
-
* @throws {RequiredError}
|
|
7799
|
-
*/
|
|
7800
|
-
cancelSubscription(requestParameters, options) {
|
|
7801
|
-
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
7802
|
-
},
|
|
7803
8291
|
/**
|
|
7804
8292
|
*
|
|
7805
8293
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -7929,23 +8417,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7929
8417
|
getUserProfileById(requestParameters, options) {
|
|
7930
8418
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7931
8419
|
},
|
|
7932
|
-
/**
|
|
7933
|
-
*
|
|
7934
|
-
* @param {*} [options] Override http request option.
|
|
7935
|
-
* @throws {RequiredError}
|
|
7936
|
-
*/
|
|
7937
|
-
getUserSubscriptions(options) {
|
|
7938
|
-
return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
|
|
7939
|
-
},
|
|
7940
|
-
/**
|
|
7941
|
-
*
|
|
7942
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
7943
|
-
* @param {*} [options] Override http request option.
|
|
7944
|
-
* @throws {RequiredError}
|
|
7945
|
-
*/
|
|
7946
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
7947
|
-
return localVarFp.initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
|
|
7948
|
-
},
|
|
7949
8420
|
/**
|
|
7950
8421
|
*
|
|
7951
8422
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8000,15 +8471,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8000
8471
|
requestPasswordReset(requestParameters, options) {
|
|
8001
8472
|
return localVarFp.requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(axios, basePath));
|
|
8002
8473
|
},
|
|
8003
|
-
/**
|
|
8004
|
-
*
|
|
8005
|
-
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
8006
|
-
* @param {*} [options] Override http request option.
|
|
8007
|
-
* @throws {RequiredError}
|
|
8008
|
-
*/
|
|
8009
|
-
resumeSubscription(requestParameters, options) {
|
|
8010
|
-
return localVarFp.resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
8011
|
-
},
|
|
8012
8474
|
/**
|
|
8013
8475
|
*
|
|
8014
8476
|
* @param {UsersApiSetupNoShowPaymentMethodRequest} requestParameters Request parameters.
|
|
@@ -8027,15 +8489,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8027
8489
|
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
8028
8490
|
return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(axios, basePath));
|
|
8029
8491
|
},
|
|
8030
|
-
/**
|
|
8031
|
-
*
|
|
8032
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
8033
|
-
* @param {*} [options] Override http request option.
|
|
8034
|
-
* @throws {RequiredError}
|
|
8035
|
-
*/
|
|
8036
|
-
subscribeToClub(requestParameters, options) {
|
|
8037
|
-
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
8038
|
-
},
|
|
8039
8492
|
/**
|
|
8040
8493
|
*
|
|
8041
8494
|
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
@@ -8112,16 +8565,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8112
8565
|
addPaymentMethodSetup(requestParameters, options) {
|
|
8113
8566
|
return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8114
8567
|
}
|
|
8115
|
-
/**
|
|
8116
|
-
*
|
|
8117
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
8118
|
-
* @param {*} [options] Override http request option.
|
|
8119
|
-
* @throws {RequiredError}
|
|
8120
|
-
* @memberof UsersApi
|
|
8121
|
-
*/
|
|
8122
|
-
cancelSubscription(requestParameters, options) {
|
|
8123
|
-
return (0, exports.UsersApiFp)(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8124
|
-
}
|
|
8125
8568
|
/**
|
|
8126
8569
|
*
|
|
8127
8570
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -8266,25 +8709,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8266
8709
|
getUserProfileById(requestParameters, options) {
|
|
8267
8710
|
return (0, exports.UsersApiFp)(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8268
8711
|
}
|
|
8269
|
-
/**
|
|
8270
|
-
*
|
|
8271
|
-
* @param {*} [options] Override http request option.
|
|
8272
|
-
* @throws {RequiredError}
|
|
8273
|
-
* @memberof UsersApi
|
|
8274
|
-
*/
|
|
8275
|
-
getUserSubscriptions(options) {
|
|
8276
|
-
return (0, exports.UsersApiFp)(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
8277
|
-
}
|
|
8278
|
-
/**
|
|
8279
|
-
*
|
|
8280
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
8281
|
-
* @param {*} [options] Override http request option.
|
|
8282
|
-
* @throws {RequiredError}
|
|
8283
|
-
* @memberof UsersApi
|
|
8284
|
-
*/
|
|
8285
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
8286
|
-
return (0, exports.UsersApiFp)(this.configuration).initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8287
|
-
}
|
|
8288
8712
|
/**
|
|
8289
8713
|
*
|
|
8290
8714
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8345,16 +8769,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8345
8769
|
requestPasswordReset(requestParameters, options) {
|
|
8346
8770
|
return (0, exports.UsersApiFp)(this.configuration).requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8347
8771
|
}
|
|
8348
|
-
/**
|
|
8349
|
-
*
|
|
8350
|
-
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
8351
|
-
* @param {*} [options] Override http request option.
|
|
8352
|
-
* @throws {RequiredError}
|
|
8353
|
-
* @memberof UsersApi
|
|
8354
|
-
*/
|
|
8355
|
-
resumeSubscription(requestParameters, options) {
|
|
8356
|
-
return (0, exports.UsersApiFp)(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8357
|
-
}
|
|
8358
8772
|
/**
|
|
8359
8773
|
*
|
|
8360
8774
|
* @param {UsersApiSetupNoShowPaymentMethodRequest} requestParameters Request parameters.
|
|
@@ -8375,16 +8789,6 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
8375
8789
|
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
8376
8790
|
return (0, exports.UsersApiFp)(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8377
8791
|
}
|
|
8378
|
-
/**
|
|
8379
|
-
*
|
|
8380
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
8381
|
-
* @param {*} [options] Override http request option.
|
|
8382
|
-
* @throws {RequiredError}
|
|
8383
|
-
* @memberof UsersApi
|
|
8384
|
-
*/
|
|
8385
|
-
subscribeToClub(requestParameters, options) {
|
|
8386
|
-
return (0, exports.UsersApiFp)(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8387
|
-
}
|
|
8388
8792
|
/**
|
|
8389
8793
|
*
|
|
8390
8794
|
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|