@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/esm/api.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* openapi.json
|
|
5
|
-
* API
|
|
5
|
+
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.61
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -71,6 +71,17 @@ export const CreateClubRoleRequestRoleEnum = {
|
|
|
71
71
|
Manager: 'manager',
|
|
72
72
|
Staff: 'staff'
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
* @enum {string}
|
|
78
|
+
*/
|
|
79
|
+
export const DiscountType = {
|
|
80
|
+
None: 'none',
|
|
81
|
+
Free: 'free',
|
|
82
|
+
Percentage: 'percentage',
|
|
83
|
+
OffPeak: 'off_peak'
|
|
84
|
+
};
|
|
74
85
|
/**
|
|
75
86
|
*
|
|
76
87
|
* @export
|
|
@@ -94,6 +105,126 @@ export const PaymentMethod = {
|
|
|
94
105
|
Onsite: 'onsite',
|
|
95
106
|
Free: 'free'
|
|
96
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @export
|
|
111
|
+
* @enum {string}
|
|
112
|
+
*/
|
|
113
|
+
export const PlanInterval = {
|
|
114
|
+
Monthly: 'monthly',
|
|
115
|
+
Yearly: 'yearly',
|
|
116
|
+
Trimester: 'trimester',
|
|
117
|
+
Semester: 'semester'
|
|
118
|
+
};
|
|
119
|
+
export const StripeStripeDeletedProductObjectEnum = {
|
|
120
|
+
Product: 'product'
|
|
121
|
+
};
|
|
122
|
+
export const StripeStripePriceObjectEnum = {
|
|
123
|
+
Price: 'price'
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @enum {string}
|
|
129
|
+
*/
|
|
130
|
+
export const StripeStripePriceBillingScheme = {
|
|
131
|
+
PerUnit: 'per_unit',
|
|
132
|
+
Tiered: 'tiered'
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @export
|
|
137
|
+
* @enum {string}
|
|
138
|
+
*/
|
|
139
|
+
export const StripeStripePriceCurrencyOptionsTaxBehavior = {
|
|
140
|
+
Exclusive: 'exclusive',
|
|
141
|
+
Inclusive: 'inclusive',
|
|
142
|
+
Unspecified: 'unspecified'
|
|
143
|
+
};
|
|
144
|
+
export const StripeStripePriceProductObjectEnum = {
|
|
145
|
+
Product: 'product'
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @export
|
|
150
|
+
* @enum {string}
|
|
151
|
+
*/
|
|
152
|
+
export const StripeStripePriceRecurringInterval = {
|
|
153
|
+
Day: 'day',
|
|
154
|
+
Month: 'month',
|
|
155
|
+
Week: 'week',
|
|
156
|
+
Year: 'year'
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @enum {string}
|
|
162
|
+
*/
|
|
163
|
+
export const StripeStripePriceRecurringUsageType = {
|
|
164
|
+
Licensed: 'licensed',
|
|
165
|
+
Metered: 'metered'
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @export
|
|
170
|
+
* @enum {string}
|
|
171
|
+
*/
|
|
172
|
+
export const StripeStripePriceTaxBehavior = {
|
|
173
|
+
Exclusive: 'exclusive',
|
|
174
|
+
Inclusive: 'inclusive',
|
|
175
|
+
Unspecified: 'unspecified'
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @export
|
|
180
|
+
* @enum {string}
|
|
181
|
+
*/
|
|
182
|
+
export const StripeStripePriceTiersMode = {
|
|
183
|
+
Graduated: 'graduated',
|
|
184
|
+
Volume: 'volume'
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @export
|
|
189
|
+
* @enum {string}
|
|
190
|
+
*/
|
|
191
|
+
export const StripeStripePriceTransformQuantityRound = {
|
|
192
|
+
Down: 'down',
|
|
193
|
+
Up: 'up'
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @export
|
|
198
|
+
* @enum {string}
|
|
199
|
+
*/
|
|
200
|
+
export const StripeStripePriceType = {
|
|
201
|
+
OneTime: 'one_time',
|
|
202
|
+
Recurring: 'recurring'
|
|
203
|
+
};
|
|
204
|
+
export const StripeStripeProductObjectEnum = {
|
|
205
|
+
Product: 'product'
|
|
206
|
+
};
|
|
207
|
+
export const StripeStripeProductDefaultPriceObjectEnum = {
|
|
208
|
+
Price: 'price'
|
|
209
|
+
};
|
|
210
|
+
export const StripeStripeProductTaxCodeObjectEnum = {
|
|
211
|
+
TaxCode: 'tax_code'
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @export
|
|
216
|
+
* @enum {string}
|
|
217
|
+
*/
|
|
218
|
+
export const StripeStripeProductType = {
|
|
219
|
+
Good: 'good',
|
|
220
|
+
Service: 'service'
|
|
221
|
+
};
|
|
222
|
+
export const StripeStripeResponseStripeStripePriceObjectEnum = {
|
|
223
|
+
Price: 'price'
|
|
224
|
+
};
|
|
225
|
+
export const StripeStripeTaxCodeObjectEnum = {
|
|
226
|
+
TaxCode: 'tax_code'
|
|
227
|
+
};
|
|
97
228
|
/**
|
|
98
229
|
*
|
|
99
230
|
* @export
|
|
@@ -3453,38 +3584,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3453
3584
|
options: localVarRequestOptions,
|
|
3454
3585
|
};
|
|
3455
3586
|
}),
|
|
3456
|
-
/**
|
|
3457
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
3458
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
3459
|
-
* @param {*} [options] Override http request option.
|
|
3460
|
-
* @throws {RequiredError}
|
|
3461
|
-
*/
|
|
3462
|
-
createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
3463
|
-
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
3464
|
-
assertParamExists('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
3465
|
-
const localVarPath = `/api/clubs/subscription-plans`;
|
|
3466
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3467
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3468
|
-
let baseOptions;
|
|
3469
|
-
if (configuration) {
|
|
3470
|
-
baseOptions = configuration.baseOptions;
|
|
3471
|
-
}
|
|
3472
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3473
|
-
const localVarHeaderParameter = {};
|
|
3474
|
-
const localVarQueryParameter = {};
|
|
3475
|
-
// authentication bearerAuth required
|
|
3476
|
-
// http bearer authentication required
|
|
3477
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3478
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3479
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3480
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3481
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3482
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
3483
|
-
return {
|
|
3484
|
-
url: toPathString(localVarUrlObj),
|
|
3485
|
-
options: localVarRequestOptions,
|
|
3486
|
-
};
|
|
3487
|
-
}),
|
|
3488
3587
|
/**
|
|
3489
3588
|
*
|
|
3490
3589
|
* @param {string} actualityId
|
|
@@ -3970,21 +4069,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
3970
4069
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3971
4070
|
});
|
|
3972
4071
|
},
|
|
3973
|
-
/**
|
|
3974
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
3975
|
-
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
3976
|
-
* @param {*} [options] Override http request option.
|
|
3977
|
-
* @throws {RequiredError}
|
|
3978
|
-
*/
|
|
3979
|
-
createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
|
|
3980
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3981
|
-
var _a, _b, _c;
|
|
3982
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
|
|
3983
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3984
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3985
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3986
|
-
});
|
|
3987
|
-
},
|
|
3988
4072
|
/**
|
|
3989
4073
|
*
|
|
3990
4074
|
* @param {string} actualityId
|
|
@@ -4230,15 +4314,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
4230
4314
|
createSportForClub(requestParameters, options) {
|
|
4231
4315
|
return localVarFp.createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(axios, basePath));
|
|
4232
4316
|
},
|
|
4233
|
-
/**
|
|
4234
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4235
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4236
|
-
* @param {*} [options] Override http request option.
|
|
4237
|
-
* @throws {RequiredError}
|
|
4238
|
-
*/
|
|
4239
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4240
|
-
return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
4241
|
-
},
|
|
4242
4317
|
/**
|
|
4243
4318
|
*
|
|
4244
4319
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -4415,16 +4490,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
4415
4490
|
createSportForClub(requestParameters, options) {
|
|
4416
4491
|
return ClubsManagerApiFp(this.configuration).createSportForClub(requestParameters.createSportForClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4417
4492
|
}
|
|
4418
|
-
/**
|
|
4419
|
-
* Crée un plan d\'abonnement Stripe pour un club
|
|
4420
|
-
* @param {ClubsManagerApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
|
|
4421
|
-
* @param {*} [options] Override http request option.
|
|
4422
|
-
* @throws {RequiredError}
|
|
4423
|
-
* @memberof ClubsManagerApi
|
|
4424
|
-
*/
|
|
4425
|
-
createSubscriptionPlanForClub(requestParameters, options) {
|
|
4426
|
-
return ClubsManagerApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4427
|
-
}
|
|
4428
4493
|
/**
|
|
4429
4494
|
*
|
|
4430
4495
|
* @param {ClubsManagerApiDeleteActualityRequest} requestParameters Request parameters.
|
|
@@ -5027,37 +5092,6 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
5027
5092
|
options: localVarRequestOptions,
|
|
5028
5093
|
};
|
|
5029
5094
|
}),
|
|
5030
|
-
/**
|
|
5031
|
-
* Supprime un club et toutes ses données associées
|
|
5032
|
-
* @param {string} id
|
|
5033
|
-
* @param {*} [options] Override http request option.
|
|
5034
|
-
* @throws {RequiredError}
|
|
5035
|
-
*/
|
|
5036
|
-
deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5037
|
-
// verify required parameter 'id' is not null or undefined
|
|
5038
|
-
assertParamExists('deleteClub', 'id', id);
|
|
5039
|
-
const localVarPath = `/api/clubs/{id}`
|
|
5040
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5041
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5042
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5043
|
-
let baseOptions;
|
|
5044
|
-
if (configuration) {
|
|
5045
|
-
baseOptions = configuration.baseOptions;
|
|
5046
|
-
}
|
|
5047
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5048
|
-
const localVarHeaderParameter = {};
|
|
5049
|
-
const localVarQueryParameter = {};
|
|
5050
|
-
// authentication bearerAuth required
|
|
5051
|
-
// http bearer authentication required
|
|
5052
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5053
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5054
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5055
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5056
|
-
return {
|
|
5057
|
-
url: toPathString(localVarUrlObj),
|
|
5058
|
-
options: localVarRequestOptions,
|
|
5059
|
-
};
|
|
5060
|
-
}),
|
|
5061
5095
|
};
|
|
5062
5096
|
};
|
|
5063
5097
|
/**
|
|
@@ -5082,21 +5116,6 @@ export const DefaultApiFp = function (configuration) {
|
|
|
5082
5116
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5083
5117
|
});
|
|
5084
5118
|
},
|
|
5085
|
-
/**
|
|
5086
|
-
* Supprime un club et toutes ses données associées
|
|
5087
|
-
* @param {string} id
|
|
5088
|
-
* @param {*} [options] Override http request option.
|
|
5089
|
-
* @throws {RequiredError}
|
|
5090
|
-
*/
|
|
5091
|
-
deleteClub(id, options) {
|
|
5092
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5093
|
-
var _a, _b, _c;
|
|
5094
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
|
|
5095
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5096
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5097
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5098
|
-
});
|
|
5099
|
-
},
|
|
5100
5119
|
};
|
|
5101
5120
|
};
|
|
5102
5121
|
/**
|
|
@@ -5115,15 +5134,6 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5115
5134
|
createClub(requestParameters, options) {
|
|
5116
5135
|
return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
|
|
5117
5136
|
},
|
|
5118
|
-
/**
|
|
5119
|
-
* Supprime un club et toutes ses données associées
|
|
5120
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5121
|
-
* @param {*} [options] Override http request option.
|
|
5122
|
-
* @throws {RequiredError}
|
|
5123
|
-
*/
|
|
5124
|
-
deleteClub(requestParameters, options) {
|
|
5125
|
-
return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5126
|
-
},
|
|
5127
5137
|
};
|
|
5128
5138
|
};
|
|
5129
5139
|
/**
|
|
@@ -5143,16 +5153,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
5143
5153
|
createClub(requestParameters, options) {
|
|
5144
5154
|
return DefaultApiFp(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5145
5155
|
}
|
|
5146
|
-
/**
|
|
5147
|
-
* Supprime un club et toutes ses données associées
|
|
5148
|
-
* @param {DefaultApiDeleteClubRequest} requestParameters Request parameters.
|
|
5149
|
-
* @param {*} [options] Override http request option.
|
|
5150
|
-
* @throws {RequiredError}
|
|
5151
|
-
* @memberof DefaultApi
|
|
5152
|
-
*/
|
|
5153
|
-
deleteClub(requestParameters, options) {
|
|
5154
|
-
return DefaultApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
5155
|
-
}
|
|
5156
5156
|
}
|
|
5157
5157
|
/**
|
|
5158
5158
|
* EventsApi - axios parameter creator
|
|
@@ -6037,21 +6037,21 @@ export class SportsStaffApi extends BaseAPI {
|
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
/**
|
|
6040
|
-
*
|
|
6040
|
+
* SubscriptionsManagerApi - axios parameter creator
|
|
6041
6041
|
* @export
|
|
6042
6042
|
*/
|
|
6043
|
-
export const
|
|
6043
|
+
export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
6044
6044
|
return {
|
|
6045
6045
|
/**
|
|
6046
|
-
*
|
|
6047
|
-
* @param {
|
|
6046
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6047
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6048
6048
|
* @param {*} [options] Override http request option.
|
|
6049
6049
|
* @throws {RequiredError}
|
|
6050
6050
|
*/
|
|
6051
|
-
|
|
6052
|
-
// verify required parameter '
|
|
6053
|
-
assertParamExists('
|
|
6054
|
-
const localVarPath = `/api/
|
|
6051
|
+
createPlan: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
|
|
6052
|
+
// verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
|
|
6053
|
+
assertParamExists('createPlan', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
|
|
6054
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6055
6055
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6056
6056
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6057
6057
|
let baseOptions;
|
|
@@ -6068,61 +6068,60 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6068
6068
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6069
6069
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6070
6070
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6071
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6071
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
6072
6072
|
return {
|
|
6073
6073
|
url: toPathString(localVarUrlObj),
|
|
6074
6074
|
options: localVarRequestOptions,
|
|
6075
6075
|
};
|
|
6076
6076
|
}),
|
|
6077
6077
|
/**
|
|
6078
|
-
*
|
|
6079
|
-
* @param {
|
|
6078
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6079
|
+
* @param {string} productId
|
|
6080
6080
|
* @param {*} [options] Override http request option.
|
|
6081
6081
|
* @throws {RequiredError}
|
|
6082
6082
|
*/
|
|
6083
|
-
|
|
6084
|
-
// verify required parameter '
|
|
6085
|
-
assertParamExists('
|
|
6086
|
-
const localVarPath = `/api/
|
|
6083
|
+
deletePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
6084
|
+
// verify required parameter 'productId' is not null or undefined
|
|
6085
|
+
assertParamExists('deletePlan', 'productId', productId);
|
|
6086
|
+
const localVarPath = `/api/subscriptions/plans/{productId}`
|
|
6087
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
6087
6088
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6088
6089
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6089
6090
|
let baseOptions;
|
|
6090
6091
|
if (configuration) {
|
|
6091
6092
|
baseOptions = configuration.baseOptions;
|
|
6092
6093
|
}
|
|
6093
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6094
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6094
6095
|
const localVarHeaderParameter = {};
|
|
6095
6096
|
const localVarQueryParameter = {};
|
|
6096
6097
|
// authentication bearerAuth required
|
|
6097
6098
|
// http bearer authentication required
|
|
6098
6099
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6099
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6100
6100
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6101
6101
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6102
6102
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6103
|
-
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6104
6103
|
return {
|
|
6105
6104
|
url: toPathString(localVarUrlObj),
|
|
6106
6105
|
options: localVarRequestOptions,
|
|
6107
6106
|
};
|
|
6108
6107
|
}),
|
|
6109
6108
|
/**
|
|
6110
|
-
*
|
|
6111
|
-
* @param {
|
|
6109
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6110
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6112
6111
|
* @param {*} [options] Override http request option.
|
|
6113
6112
|
* @throws {RequiredError}
|
|
6114
6113
|
*/
|
|
6115
|
-
|
|
6116
|
-
// verify required parameter '
|
|
6117
|
-
assertParamExists('
|
|
6118
|
-
const localVarPath = `/api/
|
|
6114
|
+
updatePlan: (updatePlanRequest_1, ...args_1) => __awaiter(this, [updatePlanRequest_1, ...args_1], void 0, function* (updatePlanRequest, options = {}) {
|
|
6115
|
+
// verify required parameter 'updatePlanRequest' is not null or undefined
|
|
6116
|
+
assertParamExists('updatePlan', 'updatePlanRequest', updatePlanRequest);
|
|
6117
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6119
6118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6120
6119
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6121
6120
|
let baseOptions;
|
|
6122
6121
|
if (configuration) {
|
|
6123
6122
|
baseOptions = configuration.baseOptions;
|
|
6124
6123
|
}
|
|
6125
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6124
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6126
6125
|
const localVarHeaderParameter = {};
|
|
6127
6126
|
const localVarQueryParameter = {};
|
|
6128
6127
|
// authentication bearerAuth required
|
|
@@ -6132,59 +6131,742 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6132
6131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6133
6132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6134
6133
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6135
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
6134
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlanRequest, localVarRequestOptions, configuration);
|
|
6136
6135
|
return {
|
|
6137
6136
|
url: toPathString(localVarUrlObj),
|
|
6138
6137
|
options: localVarRequestOptions,
|
|
6139
6138
|
};
|
|
6140
6139
|
}),
|
|
6140
|
+
};
|
|
6141
|
+
};
|
|
6142
|
+
/**
|
|
6143
|
+
* SubscriptionsManagerApi - functional programming interface
|
|
6144
|
+
* @export
|
|
6145
|
+
*/
|
|
6146
|
+
export const SubscriptionsManagerApiFp = function (configuration) {
|
|
6147
|
+
const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
|
|
6148
|
+
return {
|
|
6141
6149
|
/**
|
|
6142
|
-
*
|
|
6143
|
-
* @param {
|
|
6144
|
-
* @param {string} subscriptionId
|
|
6150
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6151
|
+
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
6145
6152
|
* @param {*} [options] Override http request option.
|
|
6146
6153
|
* @throws {RequiredError}
|
|
6147
6154
|
*/
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6158
|
-
let baseOptions;
|
|
6159
|
-
if (configuration) {
|
|
6160
|
-
baseOptions = configuration.baseOptions;
|
|
6161
|
-
}
|
|
6162
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6163
|
-
const localVarHeaderParameter = {};
|
|
6164
|
-
const localVarQueryParameter = {};
|
|
6165
|
-
// authentication bearerAuth required
|
|
6166
|
-
// http bearer authentication required
|
|
6167
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6168
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6169
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6170
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6171
|
-
return {
|
|
6172
|
-
url: toPathString(localVarUrlObj),
|
|
6173
|
-
options: localVarRequestOptions,
|
|
6174
|
-
};
|
|
6175
|
-
}),
|
|
6155
|
+
createPlan(createSubscriptionPlanRequest, options) {
|
|
6156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6157
|
+
var _a, _b, _c;
|
|
6158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPlan(createSubscriptionPlanRequest, options);
|
|
6159
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6160
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.createPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6161
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6162
|
+
});
|
|
6163
|
+
},
|
|
6176
6164
|
/**
|
|
6177
|
-
*
|
|
6178
|
-
* @param {
|
|
6165
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6166
|
+
* @param {string} productId
|
|
6179
6167
|
* @param {*} [options] Override http request option.
|
|
6180
6168
|
* @throws {RequiredError}
|
|
6181
6169
|
*/
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6170
|
+
deletePlan(productId, options) {
|
|
6171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6172
|
+
var _a, _b, _c;
|
|
6173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePlan(productId, options);
|
|
6174
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6175
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.deletePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6176
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6177
|
+
});
|
|
6178
|
+
},
|
|
6179
|
+
/**
|
|
6180
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6181
|
+
* @param {UpdatePlanRequest} updatePlanRequest
|
|
6182
|
+
* @param {*} [options] Override http request option.
|
|
6183
|
+
* @throws {RequiredError}
|
|
6184
|
+
*/
|
|
6185
|
+
updatePlan(updatePlanRequest, options) {
|
|
6186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6187
|
+
var _a, _b, _c;
|
|
6188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(updatePlanRequest, options);
|
|
6189
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6190
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.updatePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6191
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6192
|
+
});
|
|
6193
|
+
},
|
|
6194
|
+
};
|
|
6195
|
+
};
|
|
6196
|
+
/**
|
|
6197
|
+
* SubscriptionsManagerApi - factory interface
|
|
6198
|
+
* @export
|
|
6199
|
+
*/
|
|
6200
|
+
export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
6201
|
+
const localVarFp = SubscriptionsManagerApiFp(configuration);
|
|
6202
|
+
return {
|
|
6203
|
+
/**
|
|
6204
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6205
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6206
|
+
* @param {*} [options] Override http request option.
|
|
6207
|
+
* @throws {RequiredError}
|
|
6208
|
+
*/
|
|
6209
|
+
createPlan(requestParameters, options) {
|
|
6210
|
+
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
6211
|
+
},
|
|
6212
|
+
/**
|
|
6213
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6214
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6215
|
+
* @param {*} [options] Override http request option.
|
|
6216
|
+
* @throws {RequiredError}
|
|
6217
|
+
*/
|
|
6218
|
+
deletePlan(requestParameters, options) {
|
|
6219
|
+
return localVarFp.deletePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
6220
|
+
},
|
|
6221
|
+
/**
|
|
6222
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6223
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6224
|
+
* @param {*} [options] Override http request option.
|
|
6225
|
+
* @throws {RequiredError}
|
|
6226
|
+
*/
|
|
6227
|
+
updatePlan(requestParameters, options) {
|
|
6228
|
+
return localVarFp.updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(axios, basePath));
|
|
6229
|
+
},
|
|
6230
|
+
};
|
|
6231
|
+
};
|
|
6232
|
+
/**
|
|
6233
|
+
* SubscriptionsManagerApi - object-oriented interface
|
|
6234
|
+
* @export
|
|
6235
|
+
* @class SubscriptionsManagerApi
|
|
6236
|
+
* @extends {BaseAPI}
|
|
6237
|
+
*/
|
|
6238
|
+
export class SubscriptionsManagerApi extends BaseAPI {
|
|
6239
|
+
/**
|
|
6240
|
+
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
6241
|
+
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
6242
|
+
* @param {*} [options] Override http request option.
|
|
6243
|
+
* @throws {RequiredError}
|
|
6244
|
+
* @memberof SubscriptionsManagerApi
|
|
6245
|
+
*/
|
|
6246
|
+
createPlan(requestParameters, options) {
|
|
6247
|
+
return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6248
|
+
}
|
|
6249
|
+
/**
|
|
6250
|
+
* Supprime (archive) un plan par productId (manager)
|
|
6251
|
+
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
6252
|
+
* @param {*} [options] Override http request option.
|
|
6253
|
+
* @throws {RequiredError}
|
|
6254
|
+
* @memberof SubscriptionsManagerApi
|
|
6255
|
+
*/
|
|
6256
|
+
deletePlan(requestParameters, options) {
|
|
6257
|
+
return SubscriptionsManagerApiFp(this.configuration).deletePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
6258
|
+
}
|
|
6259
|
+
/**
|
|
6260
|
+
* Met à jour un plan en créant un nouveau price et en archivant l\'ancien (manager)
|
|
6261
|
+
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
6262
|
+
* @param {*} [options] Override http request option.
|
|
6263
|
+
* @throws {RequiredError}
|
|
6264
|
+
* @memberof SubscriptionsManagerApi
|
|
6265
|
+
*/
|
|
6266
|
+
updatePlan(requestParameters, options) {
|
|
6267
|
+
return SubscriptionsManagerApiFp(this.configuration).updatePlan(requestParameters.updatePlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6268
|
+
}
|
|
6269
|
+
}
|
|
6270
|
+
/**
|
|
6271
|
+
* SubscriptionsPublicApi - axios parameter creator
|
|
6272
|
+
* @export
|
|
6273
|
+
*/
|
|
6274
|
+
export const SubscriptionsPublicApiAxiosParamCreator = function (configuration) {
|
|
6275
|
+
return {
|
|
6276
|
+
/**
|
|
6277
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6278
|
+
* @param {string} clubId
|
|
6279
|
+
* @param {*} [options] Override http request option.
|
|
6280
|
+
* @throws {RequiredError}
|
|
6281
|
+
*/
|
|
6282
|
+
getPublicPlans: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6283
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6284
|
+
assertParamExists('getPublicPlans', 'clubId', clubId);
|
|
6285
|
+
const localVarPath = `/api/subscriptions/plans/{clubId}`
|
|
6286
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6289
|
+
let baseOptions;
|
|
6290
|
+
if (configuration) {
|
|
6291
|
+
baseOptions = configuration.baseOptions;
|
|
6292
|
+
}
|
|
6293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6294
|
+
const localVarHeaderParameter = {};
|
|
6295
|
+
const localVarQueryParameter = {};
|
|
6296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6298
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6299
|
+
return {
|
|
6300
|
+
url: toPathString(localVarUrlObj),
|
|
6301
|
+
options: localVarRequestOptions,
|
|
6302
|
+
};
|
|
6303
|
+
}),
|
|
6304
|
+
};
|
|
6305
|
+
};
|
|
6306
|
+
/**
|
|
6307
|
+
* SubscriptionsPublicApi - functional programming interface
|
|
6308
|
+
* @export
|
|
6309
|
+
*/
|
|
6310
|
+
export const SubscriptionsPublicApiFp = function (configuration) {
|
|
6311
|
+
const localVarAxiosParamCreator = SubscriptionsPublicApiAxiosParamCreator(configuration);
|
|
6312
|
+
return {
|
|
6313
|
+
/**
|
|
6314
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6315
|
+
* @param {string} clubId
|
|
6316
|
+
* @param {*} [options] Override http request option.
|
|
6317
|
+
* @throws {RequiredError}
|
|
6318
|
+
*/
|
|
6319
|
+
getPublicPlans(clubId, options) {
|
|
6320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6321
|
+
var _a, _b, _c;
|
|
6322
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicPlans(clubId, options);
|
|
6323
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6324
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsPublicApi.getPublicPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6325
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6326
|
+
});
|
|
6327
|
+
},
|
|
6328
|
+
};
|
|
6329
|
+
};
|
|
6330
|
+
/**
|
|
6331
|
+
* SubscriptionsPublicApi - factory interface
|
|
6332
|
+
* @export
|
|
6333
|
+
*/
|
|
6334
|
+
export const SubscriptionsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6335
|
+
const localVarFp = SubscriptionsPublicApiFp(configuration);
|
|
6336
|
+
return {
|
|
6337
|
+
/**
|
|
6338
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6339
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6340
|
+
* @param {*} [options] Override http request option.
|
|
6341
|
+
* @throws {RequiredError}
|
|
6342
|
+
*/
|
|
6343
|
+
getPublicPlans(requestParameters, options) {
|
|
6344
|
+
return localVarFp.getPublicPlans(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6345
|
+
},
|
|
6346
|
+
};
|
|
6347
|
+
};
|
|
6348
|
+
/**
|
|
6349
|
+
* SubscriptionsPublicApi - object-oriented interface
|
|
6350
|
+
* @export
|
|
6351
|
+
* @class SubscriptionsPublicApi
|
|
6352
|
+
* @extends {BaseAPI}
|
|
6353
|
+
*/
|
|
6354
|
+
export class SubscriptionsPublicApi extends BaseAPI {
|
|
6355
|
+
/**
|
|
6356
|
+
* Liste simplifiée des plans d\'abonnement actifs d\'un club (public)
|
|
6357
|
+
* @param {SubscriptionsPublicApiGetPublicPlansRequest} requestParameters Request parameters.
|
|
6358
|
+
* @param {*} [options] Override http request option.
|
|
6359
|
+
* @throws {RequiredError}
|
|
6360
|
+
* @memberof SubscriptionsPublicApi
|
|
6361
|
+
*/
|
|
6362
|
+
getPublicPlans(requestParameters, options) {
|
|
6363
|
+
return SubscriptionsPublicApiFp(this.configuration).getPublicPlans(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
6364
|
+
}
|
|
6365
|
+
}
|
|
6366
|
+
/**
|
|
6367
|
+
* SubscriptionsStaffApi - axios parameter creator
|
|
6368
|
+
* @export
|
|
6369
|
+
*/
|
|
6370
|
+
export const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
|
|
6371
|
+
return {
|
|
6372
|
+
/**
|
|
6373
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6374
|
+
* @param {*} [options] Override http request option.
|
|
6375
|
+
* @throws {RequiredError}
|
|
6376
|
+
*/
|
|
6377
|
+
getClubPlans: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6378
|
+
const localVarPath = `/api/subscriptions/plans`;
|
|
6379
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6380
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6381
|
+
let baseOptions;
|
|
6382
|
+
if (configuration) {
|
|
6383
|
+
baseOptions = configuration.baseOptions;
|
|
6384
|
+
}
|
|
6385
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6386
|
+
const localVarHeaderParameter = {};
|
|
6387
|
+
const localVarQueryParameter = {};
|
|
6388
|
+
// authentication bearerAuth required
|
|
6389
|
+
// http bearer authentication required
|
|
6390
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6394
|
+
return {
|
|
6395
|
+
url: toPathString(localVarUrlObj),
|
|
6396
|
+
options: localVarRequestOptions,
|
|
6397
|
+
};
|
|
6398
|
+
}),
|
|
6399
|
+
};
|
|
6400
|
+
};
|
|
6401
|
+
/**
|
|
6402
|
+
* SubscriptionsStaffApi - functional programming interface
|
|
6403
|
+
* @export
|
|
6404
|
+
*/
|
|
6405
|
+
export const SubscriptionsStaffApiFp = function (configuration) {
|
|
6406
|
+
const localVarAxiosParamCreator = SubscriptionsStaffApiAxiosParamCreator(configuration);
|
|
6407
|
+
return {
|
|
6408
|
+
/**
|
|
6409
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6410
|
+
* @param {*} [options] Override http request option.
|
|
6411
|
+
* @throws {RequiredError}
|
|
6412
|
+
*/
|
|
6413
|
+
getClubPlans(options) {
|
|
6414
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6415
|
+
var _a, _b, _c;
|
|
6416
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlans(options);
|
|
6417
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6418
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsStaffApi.getClubPlans']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6419
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6420
|
+
});
|
|
6421
|
+
},
|
|
6422
|
+
};
|
|
6423
|
+
};
|
|
6424
|
+
/**
|
|
6425
|
+
* SubscriptionsStaffApi - factory interface
|
|
6426
|
+
* @export
|
|
6427
|
+
*/
|
|
6428
|
+
export const SubscriptionsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6429
|
+
const localVarFp = SubscriptionsStaffApiFp(configuration);
|
|
6430
|
+
return {
|
|
6431
|
+
/**
|
|
6432
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6433
|
+
* @param {*} [options] Override http request option.
|
|
6434
|
+
* @throws {RequiredError}
|
|
6435
|
+
*/
|
|
6436
|
+
getClubPlans(options) {
|
|
6437
|
+
return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
|
|
6438
|
+
},
|
|
6439
|
+
};
|
|
6440
|
+
};
|
|
6441
|
+
/**
|
|
6442
|
+
* SubscriptionsStaffApi - object-oriented interface
|
|
6443
|
+
* @export
|
|
6444
|
+
* @class SubscriptionsStaffApi
|
|
6445
|
+
* @extends {BaseAPI}
|
|
6446
|
+
*/
|
|
6447
|
+
export class SubscriptionsStaffApi extends BaseAPI {
|
|
6448
|
+
/**
|
|
6449
|
+
* Liste détaillée des plans (actifs/inactifs) du club courant (staff)
|
|
6450
|
+
* @param {*} [options] Override http request option.
|
|
6451
|
+
* @throws {RequiredError}
|
|
6452
|
+
* @memberof SubscriptionsStaffApi
|
|
6453
|
+
*/
|
|
6454
|
+
getClubPlans(options) {
|
|
6455
|
+
return SubscriptionsStaffApiFp(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
|
|
6456
|
+
}
|
|
6457
|
+
}
|
|
6458
|
+
/**
|
|
6459
|
+
* SubscriptionsUserApi - axios parameter creator
|
|
6460
|
+
* @export
|
|
6461
|
+
*/
|
|
6462
|
+
export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
6463
|
+
return {
|
|
6464
|
+
/**
|
|
6465
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6466
|
+
* @param {string} clubId
|
|
6467
|
+
* @param {string} subscriptionId
|
|
6468
|
+
* @param {*} [options] Override http request option.
|
|
6469
|
+
* @throws {RequiredError}
|
|
6470
|
+
*/
|
|
6471
|
+
cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6472
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6473
|
+
assertParamExists('cancel', 'clubId', clubId);
|
|
6474
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6475
|
+
assertParamExists('cancel', 'subscriptionId', subscriptionId);
|
|
6476
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
6477
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6478
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6479
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6480
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6481
|
+
let baseOptions;
|
|
6482
|
+
if (configuration) {
|
|
6483
|
+
baseOptions = configuration.baseOptions;
|
|
6484
|
+
}
|
|
6485
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6486
|
+
const localVarHeaderParameter = {};
|
|
6487
|
+
const localVarQueryParameter = {};
|
|
6488
|
+
// authentication bearerAuth required
|
|
6489
|
+
// http bearer authentication required
|
|
6490
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6493
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6494
|
+
return {
|
|
6495
|
+
url: toPathString(localVarUrlObj),
|
|
6496
|
+
options: localVarRequestOptions,
|
|
6497
|
+
};
|
|
6498
|
+
}),
|
|
6499
|
+
/**
|
|
6500
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6501
|
+
* @param {*} [options] Override http request option.
|
|
6502
|
+
* @throws {RequiredError}
|
|
6503
|
+
*/
|
|
6504
|
+
mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6505
|
+
const localVarPath = `/api/subscriptions/me`;
|
|
6506
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6507
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6508
|
+
let baseOptions;
|
|
6509
|
+
if (configuration) {
|
|
6510
|
+
baseOptions = configuration.baseOptions;
|
|
6511
|
+
}
|
|
6512
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6513
|
+
const localVarHeaderParameter = {};
|
|
6514
|
+
const localVarQueryParameter = {};
|
|
6515
|
+
// authentication bearerAuth required
|
|
6516
|
+
// http bearer authentication required
|
|
6517
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6518
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6519
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6520
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6521
|
+
return {
|
|
6522
|
+
url: toPathString(localVarUrlObj),
|
|
6523
|
+
options: localVarRequestOptions,
|
|
6524
|
+
};
|
|
6525
|
+
}),
|
|
6526
|
+
/**
|
|
6527
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6528
|
+
* @param {string} clubId
|
|
6529
|
+
* @param {string} subscriptionId
|
|
6530
|
+
* @param {*} [options] Override http request option.
|
|
6531
|
+
* @throws {RequiredError}
|
|
6532
|
+
*/
|
|
6533
|
+
resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6534
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6535
|
+
assertParamExists('resume', 'clubId', clubId);
|
|
6536
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6537
|
+
assertParamExists('resume', 'subscriptionId', subscriptionId);
|
|
6538
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6539
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6540
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6542
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6543
|
+
let baseOptions;
|
|
6544
|
+
if (configuration) {
|
|
6545
|
+
baseOptions = configuration.baseOptions;
|
|
6546
|
+
}
|
|
6547
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6548
|
+
const localVarHeaderParameter = {};
|
|
6549
|
+
const localVarQueryParameter = {};
|
|
6550
|
+
// authentication bearerAuth required
|
|
6551
|
+
// http bearer authentication required
|
|
6552
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6553
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6555
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6556
|
+
return {
|
|
6557
|
+
url: toPathString(localVarUrlObj),
|
|
6558
|
+
options: localVarRequestOptions,
|
|
6559
|
+
};
|
|
6560
|
+
}),
|
|
6561
|
+
/**
|
|
6562
|
+
* S\'abonner à un plan (auth classique)
|
|
6563
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6564
|
+
* @param {*} [options] Override http request option.
|
|
6565
|
+
* @throws {RequiredError}
|
|
6566
|
+
*/
|
|
6567
|
+
subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
|
|
6568
|
+
// verify required parameter 'subscribeRequestBody' is not null or undefined
|
|
6569
|
+
assertParamExists('subscribe', 'subscribeRequestBody', subscribeRequestBody);
|
|
6570
|
+
const localVarPath = `/api/subscriptions/subscribe`;
|
|
6571
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6572
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6573
|
+
let baseOptions;
|
|
6574
|
+
if (configuration) {
|
|
6575
|
+
baseOptions = configuration.baseOptions;
|
|
6576
|
+
}
|
|
6577
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6578
|
+
const localVarHeaderParameter = {};
|
|
6579
|
+
const localVarQueryParameter = {};
|
|
6580
|
+
// authentication bearerAuth required
|
|
6581
|
+
// http bearer authentication required
|
|
6582
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6583
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6584
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6585
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6586
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6587
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
6588
|
+
return {
|
|
6589
|
+
url: toPathString(localVarUrlObj),
|
|
6590
|
+
options: localVarRequestOptions,
|
|
6591
|
+
};
|
|
6592
|
+
}),
|
|
6593
|
+
};
|
|
6594
|
+
};
|
|
6595
|
+
/**
|
|
6596
|
+
* SubscriptionsUserApi - functional programming interface
|
|
6597
|
+
* @export
|
|
6598
|
+
*/
|
|
6599
|
+
export const SubscriptionsUserApiFp = function (configuration) {
|
|
6600
|
+
const localVarAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator(configuration);
|
|
6601
|
+
return {
|
|
6602
|
+
/**
|
|
6603
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6604
|
+
* @param {string} clubId
|
|
6605
|
+
* @param {string} subscriptionId
|
|
6606
|
+
* @param {*} [options] Override http request option.
|
|
6607
|
+
* @throws {RequiredError}
|
|
6608
|
+
*/
|
|
6609
|
+
cancel(clubId, subscriptionId, options) {
|
|
6610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6611
|
+
var _a, _b, _c;
|
|
6612
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
|
|
6613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6614
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6616
|
+
});
|
|
6617
|
+
},
|
|
6618
|
+
/**
|
|
6619
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6620
|
+
* @param {*} [options] Override http request option.
|
|
6621
|
+
* @throws {RequiredError}
|
|
6622
|
+
*/
|
|
6623
|
+
mySubscriptions(options) {
|
|
6624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6625
|
+
var _a, _b, _c;
|
|
6626
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
|
|
6627
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6628
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6629
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6630
|
+
});
|
|
6631
|
+
},
|
|
6632
|
+
/**
|
|
6633
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6634
|
+
* @param {string} clubId
|
|
6635
|
+
* @param {string} subscriptionId
|
|
6636
|
+
* @param {*} [options] Override http request option.
|
|
6637
|
+
* @throws {RequiredError}
|
|
6638
|
+
*/
|
|
6639
|
+
resume(clubId, subscriptionId, options) {
|
|
6640
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6641
|
+
var _a, _b, _c;
|
|
6642
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
|
|
6643
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6644
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6645
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6646
|
+
});
|
|
6647
|
+
},
|
|
6648
|
+
/**
|
|
6649
|
+
* S\'abonner à un plan (auth classique)
|
|
6650
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
6651
|
+
* @param {*} [options] Override http request option.
|
|
6652
|
+
* @throws {RequiredError}
|
|
6653
|
+
*/
|
|
6654
|
+
subscribe(subscribeRequestBody, options) {
|
|
6655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6656
|
+
var _a, _b, _c;
|
|
6657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
|
|
6658
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6659
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6660
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6661
|
+
});
|
|
6662
|
+
},
|
|
6663
|
+
};
|
|
6664
|
+
};
|
|
6665
|
+
/**
|
|
6666
|
+
* SubscriptionsUserApi - factory interface
|
|
6667
|
+
* @export
|
|
6668
|
+
*/
|
|
6669
|
+
export const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
|
|
6670
|
+
const localVarFp = SubscriptionsUserApiFp(configuration);
|
|
6671
|
+
return {
|
|
6672
|
+
/**
|
|
6673
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6674
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6675
|
+
* @param {*} [options] Override http request option.
|
|
6676
|
+
* @throws {RequiredError}
|
|
6677
|
+
*/
|
|
6678
|
+
cancel(requestParameters, options) {
|
|
6679
|
+
return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6680
|
+
},
|
|
6681
|
+
/**
|
|
6682
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6683
|
+
* @param {*} [options] Override http request option.
|
|
6684
|
+
* @throws {RequiredError}
|
|
6685
|
+
*/
|
|
6686
|
+
mySubscriptions(options) {
|
|
6687
|
+
return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
|
|
6688
|
+
},
|
|
6689
|
+
/**
|
|
6690
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6691
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6692
|
+
* @param {*} [options] Override http request option.
|
|
6693
|
+
* @throws {RequiredError}
|
|
6694
|
+
*/
|
|
6695
|
+
resume(requestParameters, options) {
|
|
6696
|
+
return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
6697
|
+
},
|
|
6698
|
+
/**
|
|
6699
|
+
* S\'abonner à un plan (auth classique)
|
|
6700
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6701
|
+
* @param {*} [options] Override http request option.
|
|
6702
|
+
* @throws {RequiredError}
|
|
6703
|
+
*/
|
|
6704
|
+
subscribe(requestParameters, options) {
|
|
6705
|
+
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
6706
|
+
},
|
|
6707
|
+
};
|
|
6708
|
+
};
|
|
6709
|
+
/**
|
|
6710
|
+
* SubscriptionsUserApi - object-oriented interface
|
|
6711
|
+
* @export
|
|
6712
|
+
* @class SubscriptionsUserApi
|
|
6713
|
+
* @extends {BaseAPI}
|
|
6714
|
+
*/
|
|
6715
|
+
export class SubscriptionsUserApi extends BaseAPI {
|
|
6716
|
+
/**
|
|
6717
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
6718
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
6719
|
+
* @param {*} [options] Override http request option.
|
|
6720
|
+
* @throws {RequiredError}
|
|
6721
|
+
* @memberof SubscriptionsUserApi
|
|
6722
|
+
*/
|
|
6723
|
+
cancel(requestParameters, options) {
|
|
6724
|
+
return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6725
|
+
}
|
|
6726
|
+
/**
|
|
6727
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
6728
|
+
* @param {*} [options] Override http request option.
|
|
6729
|
+
* @throws {RequiredError}
|
|
6730
|
+
* @memberof SubscriptionsUserApi
|
|
6731
|
+
*/
|
|
6732
|
+
mySubscriptions(options) {
|
|
6733
|
+
return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
6734
|
+
}
|
|
6735
|
+
/**
|
|
6736
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
6737
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
6738
|
+
* @param {*} [options] Override http request option.
|
|
6739
|
+
* @throws {RequiredError}
|
|
6740
|
+
* @memberof SubscriptionsUserApi
|
|
6741
|
+
*/
|
|
6742
|
+
resume(requestParameters, options) {
|
|
6743
|
+
return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
6744
|
+
}
|
|
6745
|
+
/**
|
|
6746
|
+
* S\'abonner à un plan (auth classique)
|
|
6747
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
6748
|
+
* @param {*} [options] Override http request option.
|
|
6749
|
+
* @throws {RequiredError}
|
|
6750
|
+
* @memberof SubscriptionsUserApi
|
|
6751
|
+
*/
|
|
6752
|
+
subscribe(requestParameters, options) {
|
|
6753
|
+
return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6754
|
+
}
|
|
6755
|
+
}
|
|
6756
|
+
/**
|
|
6757
|
+
* UsersApi - axios parameter creator
|
|
6758
|
+
* @export
|
|
6759
|
+
*/
|
|
6760
|
+
export const UsersApiAxiosParamCreator = function (configuration) {
|
|
6761
|
+
return {
|
|
6762
|
+
/**
|
|
6763
|
+
*
|
|
6764
|
+
* @param {FavoriteClubRequestBody} favoriteClubRequestBody
|
|
6765
|
+
* @param {*} [options] Override http request option.
|
|
6766
|
+
* @throws {RequiredError}
|
|
6767
|
+
*/
|
|
6768
|
+
addFavoriteClub: (favoriteClubRequestBody_1, ...args_1) => __awaiter(this, [favoriteClubRequestBody_1, ...args_1], void 0, function* (favoriteClubRequestBody, options = {}) {
|
|
6769
|
+
// verify required parameter 'favoriteClubRequestBody' is not null or undefined
|
|
6770
|
+
assertParamExists('addFavoriteClub', 'favoriteClubRequestBody', favoriteClubRequestBody);
|
|
6771
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
6772
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6773
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6774
|
+
let baseOptions;
|
|
6775
|
+
if (configuration) {
|
|
6776
|
+
baseOptions = configuration.baseOptions;
|
|
6777
|
+
}
|
|
6778
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6779
|
+
const localVarHeaderParameter = {};
|
|
6780
|
+
const localVarQueryParameter = {};
|
|
6781
|
+
// authentication bearerAuth required
|
|
6782
|
+
// http bearer authentication required
|
|
6783
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6784
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6785
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6786
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6787
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6788
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoriteClubRequestBody, localVarRequestOptions, configuration);
|
|
6789
|
+
return {
|
|
6790
|
+
url: toPathString(localVarUrlObj),
|
|
6791
|
+
options: localVarRequestOptions,
|
|
6792
|
+
};
|
|
6793
|
+
}),
|
|
6794
|
+
/**
|
|
6795
|
+
*
|
|
6796
|
+
* @param {FavoritePlayerRequestBody} favoritePlayerRequestBody
|
|
6797
|
+
* @param {*} [options] Override http request option.
|
|
6798
|
+
* @throws {RequiredError}
|
|
6799
|
+
*/
|
|
6800
|
+
addFavoritePlayer: (favoritePlayerRequestBody_1, ...args_1) => __awaiter(this, [favoritePlayerRequestBody_1, ...args_1], void 0, function* (favoritePlayerRequestBody, options = {}) {
|
|
6801
|
+
// verify required parameter 'favoritePlayerRequestBody' is not null or undefined
|
|
6802
|
+
assertParamExists('addFavoritePlayer', 'favoritePlayerRequestBody', favoritePlayerRequestBody);
|
|
6803
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
6804
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6805
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6806
|
+
let baseOptions;
|
|
6807
|
+
if (configuration) {
|
|
6808
|
+
baseOptions = configuration.baseOptions;
|
|
6809
|
+
}
|
|
6810
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6811
|
+
const localVarHeaderParameter = {};
|
|
6812
|
+
const localVarQueryParameter = {};
|
|
6813
|
+
// authentication bearerAuth required
|
|
6814
|
+
// http bearer authentication required
|
|
6815
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6816
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6817
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6819
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6820
|
+
localVarRequestOptions.data = serializeDataIfNeeded(favoritePlayerRequestBody, localVarRequestOptions, configuration);
|
|
6821
|
+
return {
|
|
6822
|
+
url: toPathString(localVarUrlObj),
|
|
6823
|
+
options: localVarRequestOptions,
|
|
6824
|
+
};
|
|
6825
|
+
}),
|
|
6826
|
+
/**
|
|
6827
|
+
*
|
|
6828
|
+
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
6829
|
+
* @param {*} [options] Override http request option.
|
|
6830
|
+
* @throws {RequiredError}
|
|
6831
|
+
*/
|
|
6832
|
+
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
6833
|
+
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
6834
|
+
assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
6835
|
+
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
6836
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6837
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6838
|
+
let baseOptions;
|
|
6839
|
+
if (configuration) {
|
|
6840
|
+
baseOptions = configuration.baseOptions;
|
|
6841
|
+
}
|
|
6842
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6843
|
+
const localVarHeaderParameter = {};
|
|
6844
|
+
const localVarQueryParameter = {};
|
|
6845
|
+
// authentication bearerAuth required
|
|
6846
|
+
// http bearer authentication required
|
|
6847
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6848
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6849
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6850
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6851
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6852
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
6853
|
+
return {
|
|
6854
|
+
url: toPathString(localVarUrlObj),
|
|
6855
|
+
options: localVarRequestOptions,
|
|
6856
|
+
};
|
|
6857
|
+
}),
|
|
6858
|
+
/**
|
|
6859
|
+
*
|
|
6860
|
+
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
6861
|
+
* @param {*} [options] Override http request option.
|
|
6862
|
+
* @throws {RequiredError}
|
|
6863
|
+
*/
|
|
6864
|
+
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
6865
|
+
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
6866
|
+
assertParamExists('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
6867
|
+
const localVarPath = `/api/users/me/password`;
|
|
6868
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6869
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6188
6870
|
let baseOptions;
|
|
6189
6871
|
if (configuration) {
|
|
6190
6872
|
baseOptions = configuration.baseOptions;
|
|
@@ -6646,65 +7328,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6646
7328
|
options: localVarRequestOptions,
|
|
6647
7329
|
};
|
|
6648
7330
|
}),
|
|
6649
|
-
/**
|
|
6650
|
-
*
|
|
6651
|
-
* @param {*} [options] Override http request option.
|
|
6652
|
-
* @throws {RequiredError}
|
|
6653
|
-
*/
|
|
6654
|
-
getUserSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6655
|
-
const localVarPath = `/api/users/me/subscriptions`;
|
|
6656
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6657
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6658
|
-
let baseOptions;
|
|
6659
|
-
if (configuration) {
|
|
6660
|
-
baseOptions = configuration.baseOptions;
|
|
6661
|
-
}
|
|
6662
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6663
|
-
const localVarHeaderParameter = {};
|
|
6664
|
-
const localVarQueryParameter = {};
|
|
6665
|
-
// authentication bearerAuth required
|
|
6666
|
-
// http bearer authentication required
|
|
6667
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6668
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6669
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6670
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6671
|
-
return {
|
|
6672
|
-
url: toPathString(localVarUrlObj),
|
|
6673
|
-
options: localVarRequestOptions,
|
|
6674
|
-
};
|
|
6675
|
-
}),
|
|
6676
|
-
/**
|
|
6677
|
-
*
|
|
6678
|
-
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
6679
|
-
* @param {*} [options] Override http request option.
|
|
6680
|
-
* @throws {RequiredError}
|
|
6681
|
-
*/
|
|
6682
|
-
initiateSubscriptionSession: (subscriptionSessionRequestBody_1, ...args_1) => __awaiter(this, [subscriptionSessionRequestBody_1, ...args_1], void 0, function* (subscriptionSessionRequestBody, options = {}) {
|
|
6683
|
-
// verify required parameter 'subscriptionSessionRequestBody' is not null or undefined
|
|
6684
|
-
assertParamExists('initiateSubscriptionSession', 'subscriptionSessionRequestBody', subscriptionSessionRequestBody);
|
|
6685
|
-
const localVarPath = `/api/users/me/subscription-session`;
|
|
6686
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6687
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6688
|
-
let baseOptions;
|
|
6689
|
-
if (configuration) {
|
|
6690
|
-
baseOptions = configuration.baseOptions;
|
|
6691
|
-
}
|
|
6692
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6693
|
-
const localVarHeaderParameter = {};
|
|
6694
|
-
const localVarQueryParameter = {};
|
|
6695
|
-
// authentication bearerAuth required
|
|
6696
|
-
// http bearer authentication required
|
|
6697
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6698
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6699
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6700
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6701
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6702
|
-
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionSessionRequestBody, localVarRequestOptions, configuration);
|
|
6703
|
-
return {
|
|
6704
|
-
url: toPathString(localVarUrlObj),
|
|
6705
|
-
options: localVarRequestOptions,
|
|
6706
|
-
};
|
|
6707
|
-
}),
|
|
6708
7331
|
/**
|
|
6709
7332
|
*
|
|
6710
7333
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -6883,41 +7506,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6883
7506
|
options: localVarRequestOptions,
|
|
6884
7507
|
};
|
|
6885
7508
|
}),
|
|
6886
|
-
/**
|
|
6887
|
-
*
|
|
6888
|
-
* @param {string} clubId
|
|
6889
|
-
* @param {string} subscriptionId
|
|
6890
|
-
* @param {*} [options] Override http request option.
|
|
6891
|
-
* @throws {RequiredError}
|
|
6892
|
-
*/
|
|
6893
|
-
resumeSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
6894
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
6895
|
-
assertParamExists('resumeSubscription', 'clubId', clubId);
|
|
6896
|
-
// verify required parameter 'subscriptionId' is not null or undefined
|
|
6897
|
-
assertParamExists('resumeSubscription', 'subscriptionId', subscriptionId);
|
|
6898
|
-
const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
6899
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
6900
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
6901
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6902
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6903
|
-
let baseOptions;
|
|
6904
|
-
if (configuration) {
|
|
6905
|
-
baseOptions = configuration.baseOptions;
|
|
6906
|
-
}
|
|
6907
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6908
|
-
const localVarHeaderParameter = {};
|
|
6909
|
-
const localVarQueryParameter = {};
|
|
6910
|
-
// authentication bearerAuth required
|
|
6911
|
-
// http bearer authentication required
|
|
6912
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6913
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6914
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6915
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6916
|
-
return {
|
|
6917
|
-
url: toPathString(localVarUrlObj),
|
|
6918
|
-
options: localVarRequestOptions,
|
|
6919
|
-
};
|
|
6920
|
-
}),
|
|
6921
7509
|
/**
|
|
6922
7510
|
*
|
|
6923
7511
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
@@ -6979,38 +7567,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
6979
7567
|
options: localVarRequestOptions,
|
|
6980
7568
|
};
|
|
6981
7569
|
}),
|
|
6982
|
-
/**
|
|
6983
|
-
*
|
|
6984
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
6985
|
-
* @param {*} [options] Override http request option.
|
|
6986
|
-
* @throws {RequiredError}
|
|
6987
|
-
*/
|
|
6988
|
-
subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
|
|
6989
|
-
// verify required parameter 'subscribeToClubRequestBody' is not null or undefined
|
|
6990
|
-
assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
|
|
6991
|
-
const localVarPath = `/api/users/me/subscribe`;
|
|
6992
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6993
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6994
|
-
let baseOptions;
|
|
6995
|
-
if (configuration) {
|
|
6996
|
-
baseOptions = configuration.baseOptions;
|
|
6997
|
-
}
|
|
6998
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6999
|
-
const localVarHeaderParameter = {};
|
|
7000
|
-
const localVarQueryParameter = {};
|
|
7001
|
-
// authentication bearerAuth required
|
|
7002
|
-
// http bearer authentication required
|
|
7003
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7004
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7005
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7006
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7007
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7008
|
-
localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
|
|
7009
|
-
return {
|
|
7010
|
-
url: toPathString(localVarUrlObj),
|
|
7011
|
-
options: localVarRequestOptions,
|
|
7012
|
-
};
|
|
7013
|
-
}),
|
|
7014
7570
|
/**
|
|
7015
7571
|
*
|
|
7016
7572
|
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
@@ -7193,22 +7749,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
7193
7749
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7194
7750
|
});
|
|
7195
7751
|
},
|
|
7196
|
-
/**
|
|
7197
|
-
*
|
|
7198
|
-
* @param {string} clubId
|
|
7199
|
-
* @param {string} subscriptionId
|
|
7200
|
-
* @param {*} [options] Override http request option.
|
|
7201
|
-
* @throws {RequiredError}
|
|
7202
|
-
*/
|
|
7203
|
-
cancelSubscription(clubId, subscriptionId, options) {
|
|
7204
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7205
|
-
var _a, _b, _c;
|
|
7206
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
|
|
7207
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7208
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7209
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7210
|
-
});
|
|
7211
|
-
},
|
|
7212
7752
|
/**
|
|
7213
7753
|
*
|
|
7214
7754
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7437,35 +7977,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
7437
7977
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7438
7978
|
});
|
|
7439
7979
|
},
|
|
7440
|
-
/**
|
|
7441
|
-
*
|
|
7442
|
-
* @param {*} [options] Override http request option.
|
|
7443
|
-
* @throws {RequiredError}
|
|
7444
|
-
*/
|
|
7445
|
-
getUserSubscriptions(options) {
|
|
7446
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7447
|
-
var _a, _b, _c;
|
|
7448
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
|
|
7449
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7450
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7451
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7452
|
-
});
|
|
7453
|
-
},
|
|
7454
|
-
/**
|
|
7455
|
-
*
|
|
7456
|
-
* @param {SubscriptionSessionRequestBody} subscriptionSessionRequestBody
|
|
7457
|
-
* @param {*} [options] Override http request option.
|
|
7458
|
-
* @throws {RequiredError}
|
|
7459
|
-
*/
|
|
7460
|
-
initiateSubscriptionSession(subscriptionSessionRequestBody, options) {
|
|
7461
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7462
|
-
var _a, _b, _c;
|
|
7463
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(subscriptionSessionRequestBody, options);
|
|
7464
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7465
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7466
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7467
|
-
});
|
|
7468
|
-
},
|
|
7469
7980
|
/**
|
|
7470
7981
|
*
|
|
7471
7982
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -7556,22 +8067,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
7556
8067
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7557
8068
|
});
|
|
7558
8069
|
},
|
|
7559
|
-
/**
|
|
7560
|
-
*
|
|
7561
|
-
* @param {string} clubId
|
|
7562
|
-
* @param {string} subscriptionId
|
|
7563
|
-
* @param {*} [options] Override http request option.
|
|
7564
|
-
* @throws {RequiredError}
|
|
7565
|
-
*/
|
|
7566
|
-
resumeSubscription(clubId, subscriptionId, options) {
|
|
7567
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7568
|
-
var _a, _b, _c;
|
|
7569
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.resumeSubscription(clubId, subscriptionId, options);
|
|
7570
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7571
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.resumeSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7572
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7573
|
-
});
|
|
7574
|
-
},
|
|
7575
8070
|
/**
|
|
7576
8071
|
*
|
|
7577
8072
|
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
@@ -7602,21 +8097,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
7602
8097
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7603
8098
|
});
|
|
7604
8099
|
},
|
|
7605
|
-
/**
|
|
7606
|
-
*
|
|
7607
|
-
* @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
|
|
7608
|
-
* @param {*} [options] Override http request option.
|
|
7609
|
-
* @throws {RequiredError}
|
|
7610
|
-
*/
|
|
7611
|
-
subscribeToClub(subscribeToClubRequestBody, options) {
|
|
7612
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7613
|
-
var _a, _b, _c;
|
|
7614
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
|
|
7615
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7616
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7617
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7618
|
-
});
|
|
7619
|
-
},
|
|
7620
8100
|
/**
|
|
7621
8101
|
*
|
|
7622
8102
|
* @param {UpdateCustomerRequestBody} updateCustomerRequestBody
|
|
@@ -7713,15 +8193,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7713
8193
|
addPaymentMethodSetup(requestParameters, options) {
|
|
7714
8194
|
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
7715
8195
|
},
|
|
7716
|
-
/**
|
|
7717
|
-
*
|
|
7718
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
7719
|
-
* @param {*} [options] Override http request option.
|
|
7720
|
-
* @throws {RequiredError}
|
|
7721
|
-
*/
|
|
7722
|
-
cancelSubscription(requestParameters, options) {
|
|
7723
|
-
return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
7724
|
-
},
|
|
7725
8196
|
/**
|
|
7726
8197
|
*
|
|
7727
8198
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -7851,23 +8322,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7851
8322
|
getUserProfileById(requestParameters, options) {
|
|
7852
8323
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7853
8324
|
},
|
|
7854
|
-
/**
|
|
7855
|
-
*
|
|
7856
|
-
* @param {*} [options] Override http request option.
|
|
7857
|
-
* @throws {RequiredError}
|
|
7858
|
-
*/
|
|
7859
|
-
getUserSubscriptions(options) {
|
|
7860
|
-
return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
|
|
7861
|
-
},
|
|
7862
|
-
/**
|
|
7863
|
-
*
|
|
7864
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
7865
|
-
* @param {*} [options] Override http request option.
|
|
7866
|
-
* @throws {RequiredError}
|
|
7867
|
-
*/
|
|
7868
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
7869
|
-
return localVarFp.initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
|
|
7870
|
-
},
|
|
7871
8325
|
/**
|
|
7872
8326
|
*
|
|
7873
8327
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -7922,15 +8376,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7922
8376
|
requestPasswordReset(requestParameters, options) {
|
|
7923
8377
|
return localVarFp.requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(axios, basePath));
|
|
7924
8378
|
},
|
|
7925
|
-
/**
|
|
7926
|
-
*
|
|
7927
|
-
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
7928
|
-
* @param {*} [options] Override http request option.
|
|
7929
|
-
* @throws {RequiredError}
|
|
7930
|
-
*/
|
|
7931
|
-
resumeSubscription(requestParameters, options) {
|
|
7932
|
-
return localVarFp.resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
7933
|
-
},
|
|
7934
8379
|
/**
|
|
7935
8380
|
*
|
|
7936
8381
|
* @param {UsersApiSetupNoShowPaymentMethodRequest} requestParameters Request parameters.
|
|
@@ -7949,15 +8394,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7949
8394
|
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
7950
8395
|
return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(axios, basePath));
|
|
7951
8396
|
},
|
|
7952
|
-
/**
|
|
7953
|
-
*
|
|
7954
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
7955
|
-
* @param {*} [options] Override http request option.
|
|
7956
|
-
* @throws {RequiredError}
|
|
7957
|
-
*/
|
|
7958
|
-
subscribeToClub(requestParameters, options) {
|
|
7959
|
-
return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
|
|
7960
|
-
},
|
|
7961
8397
|
/**
|
|
7962
8398
|
*
|
|
7963
8399
|
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
@@ -8033,16 +8469,6 @@ export class UsersApi extends BaseAPI {
|
|
|
8033
8469
|
addPaymentMethodSetup(requestParameters, options) {
|
|
8034
8470
|
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8035
8471
|
}
|
|
8036
|
-
/**
|
|
8037
|
-
*
|
|
8038
|
-
* @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
|
|
8039
|
-
* @param {*} [options] Override http request option.
|
|
8040
|
-
* @throws {RequiredError}
|
|
8041
|
-
* @memberof UsersApi
|
|
8042
|
-
*/
|
|
8043
|
-
cancelSubscription(requestParameters, options) {
|
|
8044
|
-
return UsersApiFp(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8045
|
-
}
|
|
8046
8472
|
/**
|
|
8047
8473
|
*
|
|
8048
8474
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -8187,25 +8613,6 @@ export class UsersApi extends BaseAPI {
|
|
|
8187
8613
|
getUserProfileById(requestParameters, options) {
|
|
8188
8614
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
8189
8615
|
}
|
|
8190
|
-
/**
|
|
8191
|
-
*
|
|
8192
|
-
* @param {*} [options] Override http request option.
|
|
8193
|
-
* @throws {RequiredError}
|
|
8194
|
-
* @memberof UsersApi
|
|
8195
|
-
*/
|
|
8196
|
-
getUserSubscriptions(options) {
|
|
8197
|
-
return UsersApiFp(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
8198
|
-
}
|
|
8199
|
-
/**
|
|
8200
|
-
*
|
|
8201
|
-
* @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
|
|
8202
|
-
* @param {*} [options] Override http request option.
|
|
8203
|
-
* @throws {RequiredError}
|
|
8204
|
-
* @memberof UsersApi
|
|
8205
|
-
*/
|
|
8206
|
-
initiateSubscriptionSession(requestParameters, options) {
|
|
8207
|
-
return UsersApiFp(this.configuration).initiateSubscriptionSession(requestParameters.subscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8208
|
-
}
|
|
8209
8616
|
/**
|
|
8210
8617
|
*
|
|
8211
8618
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8266,16 +8673,6 @@ export class UsersApi extends BaseAPI {
|
|
|
8266
8673
|
requestPasswordReset(requestParameters, options) {
|
|
8267
8674
|
return UsersApiFp(this.configuration).requestPasswordReset(requestParameters.passwordResetRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8268
8675
|
}
|
|
8269
|
-
/**
|
|
8270
|
-
*
|
|
8271
|
-
* @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
|
|
8272
|
-
* @param {*} [options] Override http request option.
|
|
8273
|
-
* @throws {RequiredError}
|
|
8274
|
-
* @memberof UsersApi
|
|
8275
|
-
*/
|
|
8276
|
-
resumeSubscription(requestParameters, options) {
|
|
8277
|
-
return UsersApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
8278
|
-
}
|
|
8279
8676
|
/**
|
|
8280
8677
|
*
|
|
8281
8678
|
* @param {UsersApiSetupNoShowPaymentMethodRequest} requestParameters Request parameters.
|
|
@@ -8296,16 +8693,6 @@ export class UsersApi extends BaseAPI {
|
|
|
8296
8693
|
signInOrSignUpWithGoogle(requestParameters, options) {
|
|
8297
8694
|
return UsersApiFp(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleAuthRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8298
8695
|
}
|
|
8299
|
-
/**
|
|
8300
|
-
*
|
|
8301
|
-
* @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
|
|
8302
|
-
* @param {*} [options] Override http request option.
|
|
8303
|
-
* @throws {RequiredError}
|
|
8304
|
-
* @memberof UsersApi
|
|
8305
|
-
*/
|
|
8306
|
-
subscribeToClub(requestParameters, options) {
|
|
8307
|
-
return UsersApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8308
|
-
}
|
|
8309
8696
|
/**
|
|
8310
8697
|
*
|
|
8311
8698
|
* @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
|