@tennac-booking/sdk 1.0.121 → 1.0.123
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 +331 -329
- package/README.md +2 -0
- package/api.ts +181 -4
- package/dist/api.d.ts +138 -4
- package/dist/api.js +69 -4
- package/dist/esm/api.d.ts +138 -4
- package/dist/esm/api.js +69 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
- package/docs/DeleteSubscriptionPlanResponse.md +2 -0
- package/docs/OffPeakRule.md +2 -0
- package/docs/PublicSubscriptionPlanResponse.md +2 -0
- package/docs/SubscriptionPlanDiscountResponse.md +34 -0
- package/docs/SubscriptionPlanResponse.md +4 -0
- package/docs/SubscriptionsManagerApi.md +55 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -171,6 +171,7 @@ Class | Method | HTTP request | Description
|
|
|
171
171
|
*SportsManagerApi* | [**deleteSport**](docs/SportsManagerApi.md#deletesport) | **DELETE** /api/sports/{id} |
|
|
172
172
|
*SportsManagerApi* | [**updateSport**](docs/SportsManagerApi.md#updatesport) | **PUT** /api/sports/{id} |
|
|
173
173
|
*SportsPublicApi* | [**getVerifiedSports**](docs/SportsPublicApi.md#getverifiedsports) | **GET** /api/sports/verified |
|
|
174
|
+
*SubscriptionsManagerApi* | [**archivePlan**](docs/SubscriptionsManagerApi.md#archiveplan) | **POST** /api/subscriptions/plans/{productId}/archive |
|
|
174
175
|
*SubscriptionsManagerApi* | [**createPlan**](docs/SubscriptionsManagerApi.md#createplan) | **POST** /api/subscriptions/plans |
|
|
175
176
|
*SubscriptionsManagerApi* | [**deletePlan**](docs/SubscriptionsManagerApi.md#deleteplan) | **DELETE** /api/subscriptions/plans/{productId} |
|
|
176
177
|
*SubscriptionsManagerApi* | [**updatePlan**](docs/SubscriptionsManagerApi.md#updateplan) | **PUT** /api/subscriptions/plans |
|
|
@@ -476,6 +477,7 @@ Class | Method | HTTP request | Description
|
|
|
476
477
|
- [SubscriberPrice](docs/SubscriberPrice.md)
|
|
477
478
|
- [SubscriptionInfo](docs/SubscriptionInfo.md)
|
|
478
479
|
- [SubscriptionMutationResponse](docs/SubscriptionMutationResponse.md)
|
|
480
|
+
- [SubscriptionPlanDiscountResponse](docs/SubscriptionPlanDiscountResponse.md)
|
|
479
481
|
- [SubscriptionPlanResponse](docs/SubscriptionPlanResponse.md)
|
|
480
482
|
- [SurfaceType](docs/SurfaceType.md)
|
|
481
483
|
- [Team](docs/Team.md)
|
package/api.ts
CHANGED
|
@@ -4140,8 +4140,15 @@ export interface CreateSubscriptionPlanRequestDiscount {
|
|
|
4140
4140
|
*
|
|
4141
4141
|
* @type {Array<OffPeakRule>}
|
|
4142
4142
|
* @memberof CreateSubscriptionPlanRequestDiscount
|
|
4143
|
+
* @deprecated
|
|
4143
4144
|
*/
|
|
4144
4145
|
'offPeakRules'?: Array<OffPeakRule>;
|
|
4146
|
+
/**
|
|
4147
|
+
* Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club.
|
|
4148
|
+
* @type {Array<string>}
|
|
4149
|
+
* @memberof CreateSubscriptionPlanRequestDiscount
|
|
4150
|
+
*/
|
|
4151
|
+
'offPeakRuleNames'?: Array<string>;
|
|
4145
4152
|
/**
|
|
4146
4153
|
*
|
|
4147
4154
|
* @type {string}
|
|
@@ -4295,6 +4302,12 @@ export interface DeleteSubscriptionPlanResponse {
|
|
|
4295
4302
|
* @memberof DeleteSubscriptionPlanResponse
|
|
4296
4303
|
*/
|
|
4297
4304
|
'message': string;
|
|
4305
|
+
/**
|
|
4306
|
+
*
|
|
4307
|
+
* @type {boolean}
|
|
4308
|
+
* @memberof DeleteSubscriptionPlanResponse
|
|
4309
|
+
*/
|
|
4310
|
+
'archivedInstead'?: boolean;
|
|
4298
4311
|
}
|
|
4299
4312
|
/**
|
|
4300
4313
|
*
|
|
@@ -6204,6 +6217,12 @@ export interface NoShowFeeResponse {
|
|
|
6204
6217
|
* @interface OffPeakRule
|
|
6205
6218
|
*/
|
|
6206
6219
|
export interface OffPeakRule {
|
|
6220
|
+
/**
|
|
6221
|
+
*
|
|
6222
|
+
* @type {string}
|
|
6223
|
+
* @memberof OffPeakRule
|
|
6224
|
+
*/
|
|
6225
|
+
'pricingPeriodName'?: string;
|
|
6207
6226
|
/**
|
|
6208
6227
|
*
|
|
6209
6228
|
* @type {number}
|
|
@@ -6927,6 +6946,12 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
6927
6946
|
* @memberof PublicSubscriptionPlanResponse
|
|
6928
6947
|
*/
|
|
6929
6948
|
'description'?: string;
|
|
6949
|
+
/**
|
|
6950
|
+
*
|
|
6951
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
6952
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
6953
|
+
*/
|
|
6954
|
+
'discount'?: SubscriptionPlanDiscountResponse;
|
|
6930
6955
|
}
|
|
6931
6956
|
|
|
6932
6957
|
|
|
@@ -9723,6 +9748,63 @@ export interface SubscriptionMutationResponse {
|
|
|
9723
9748
|
*/
|
|
9724
9749
|
'subscription': { [key: string]: any; };
|
|
9725
9750
|
}
|
|
9751
|
+
/**
|
|
9752
|
+
*
|
|
9753
|
+
* @export
|
|
9754
|
+
* @interface SubscriptionPlanDiscountResponse
|
|
9755
|
+
*/
|
|
9756
|
+
export interface SubscriptionPlanDiscountResponse {
|
|
9757
|
+
/**
|
|
9758
|
+
*
|
|
9759
|
+
* @type {DiscountType}
|
|
9760
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9761
|
+
*/
|
|
9762
|
+
'type': DiscountType;
|
|
9763
|
+
/**
|
|
9764
|
+
*
|
|
9765
|
+
* @type {number}
|
|
9766
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9767
|
+
*/
|
|
9768
|
+
'percentage'?: number;
|
|
9769
|
+
/**
|
|
9770
|
+
*
|
|
9771
|
+
* @type {number}
|
|
9772
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9773
|
+
*/
|
|
9774
|
+
'maxDiscountAmountInCents'?: number;
|
|
9775
|
+
/**
|
|
9776
|
+
*
|
|
9777
|
+
* @type {string}
|
|
9778
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9779
|
+
*/
|
|
9780
|
+
'validFrom'?: string;
|
|
9781
|
+
/**
|
|
9782
|
+
*
|
|
9783
|
+
* @type {string}
|
|
9784
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9785
|
+
*/
|
|
9786
|
+
'validTo'?: string;
|
|
9787
|
+
/**
|
|
9788
|
+
*
|
|
9789
|
+
* @type {Array<string>}
|
|
9790
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9791
|
+
*/
|
|
9792
|
+
'offPeakRuleNames'?: Array<string>;
|
|
9793
|
+
/**
|
|
9794
|
+
*
|
|
9795
|
+
* @type {Array<OffPeakRule>}
|
|
9796
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9797
|
+
*/
|
|
9798
|
+
'offPeakRules'?: Array<OffPeakRule>;
|
|
9799
|
+
/**
|
|
9800
|
+
*
|
|
9801
|
+
* @type {boolean}
|
|
9802
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9803
|
+
*/
|
|
9804
|
+
'bookingFree'?: boolean;
|
|
9805
|
+
}
|
|
9806
|
+
|
|
9807
|
+
|
|
9726
9808
|
/**
|
|
9727
9809
|
*
|
|
9728
9810
|
* @export
|
|
@@ -9777,6 +9859,18 @@ export interface SubscriptionPlanResponse {
|
|
|
9777
9859
|
* @memberof SubscriptionPlanResponse
|
|
9778
9860
|
*/
|
|
9779
9861
|
'priceActive': boolean;
|
|
9862
|
+
/**
|
|
9863
|
+
*
|
|
9864
|
+
* @type {string}
|
|
9865
|
+
* @memberof SubscriptionPlanResponse
|
|
9866
|
+
*/
|
|
9867
|
+
'description'?: string;
|
|
9868
|
+
/**
|
|
9869
|
+
*
|
|
9870
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
9871
|
+
* @memberof SubscriptionPlanResponse
|
|
9872
|
+
*/
|
|
9873
|
+
'discount'?: SubscriptionPlanDiscountResponse;
|
|
9780
9874
|
}
|
|
9781
9875
|
|
|
9782
9876
|
|
|
@@ -22228,6 +22322,43 @@ export class SportsPublicApi extends BaseAPI {
|
|
|
22228
22322
|
*/
|
|
22229
22323
|
export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
22230
22324
|
return {
|
|
22325
|
+
/**
|
|
22326
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22327
|
+
* @param {string} productId
|
|
22328
|
+
* @param {*} [options] Override http request option.
|
|
22329
|
+
* @throws {RequiredError}
|
|
22330
|
+
*/
|
|
22331
|
+
archivePlan: async (productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22332
|
+
// verify required parameter 'productId' is not null or undefined
|
|
22333
|
+
assertParamExists('archivePlan', 'productId', productId)
|
|
22334
|
+
const localVarPath = `/api/subscriptions/plans/{productId}/archive`
|
|
22335
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
22336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22337
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22338
|
+
let baseOptions;
|
|
22339
|
+
if (configuration) {
|
|
22340
|
+
baseOptions = configuration.baseOptions;
|
|
22341
|
+
}
|
|
22342
|
+
|
|
22343
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
22344
|
+
const localVarHeaderParameter = {} as any;
|
|
22345
|
+
const localVarQueryParameter = {} as any;
|
|
22346
|
+
|
|
22347
|
+
// authentication bearerAuth required
|
|
22348
|
+
// http bearer authentication required
|
|
22349
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
22350
|
+
|
|
22351
|
+
|
|
22352
|
+
|
|
22353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22355
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22356
|
+
|
|
22357
|
+
return {
|
|
22358
|
+
url: toPathString(localVarUrlObj),
|
|
22359
|
+
options: localVarRequestOptions,
|
|
22360
|
+
};
|
|
22361
|
+
},
|
|
22231
22362
|
/**
|
|
22232
22363
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22233
22364
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -22268,7 +22399,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
|
|
|
22268
22399
|
};
|
|
22269
22400
|
},
|
|
22270
22401
|
/**
|
|
22271
|
-
* Supprime
|
|
22402
|
+
* Supprime un plan par productId (manager)
|
|
22272
22403
|
* @param {string} productId
|
|
22273
22404
|
* @param {*} [options] Override http request option.
|
|
22274
22405
|
* @throws {RequiredError}
|
|
@@ -22353,6 +22484,18 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
|
|
|
22353
22484
|
export const SubscriptionsManagerApiFp = function(configuration?: Configuration) {
|
|
22354
22485
|
const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration)
|
|
22355
22486
|
return {
|
|
22487
|
+
/**
|
|
22488
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22489
|
+
* @param {string} productId
|
|
22490
|
+
* @param {*} [options] Override http request option.
|
|
22491
|
+
* @throws {RequiredError}
|
|
22492
|
+
*/
|
|
22493
|
+
async archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>> {
|
|
22494
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archivePlan(productId, options);
|
|
22495
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22496
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsManagerApi.archivePlan']?.[localVarOperationServerIndex]?.url;
|
|
22497
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22498
|
+
},
|
|
22356
22499
|
/**
|
|
22357
22500
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22358
22501
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -22366,7 +22509,7 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
|
|
|
22366
22509
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22367
22510
|
},
|
|
22368
22511
|
/**
|
|
22369
|
-
* Supprime
|
|
22512
|
+
* Supprime un plan par productId (manager)
|
|
22370
22513
|
* @param {string} productId
|
|
22371
22514
|
* @param {*} [options] Override http request option.
|
|
22372
22515
|
* @throws {RequiredError}
|
|
@@ -22399,6 +22542,15 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
|
|
|
22399
22542
|
export const SubscriptionsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
22400
22543
|
const localVarFp = SubscriptionsManagerApiFp(configuration)
|
|
22401
22544
|
return {
|
|
22545
|
+
/**
|
|
22546
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22547
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
22548
|
+
* @param {*} [options] Override http request option.
|
|
22549
|
+
* @throws {RequiredError}
|
|
22550
|
+
*/
|
|
22551
|
+
archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse> {
|
|
22552
|
+
return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
22553
|
+
},
|
|
22402
22554
|
/**
|
|
22403
22555
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22404
22556
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -22409,7 +22561,7 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
|
|
|
22409
22561
|
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
22410
22562
|
},
|
|
22411
22563
|
/**
|
|
22412
|
-
* Supprime
|
|
22564
|
+
* Supprime un plan par productId (manager)
|
|
22413
22565
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
22414
22566
|
* @param {*} [options] Override http request option.
|
|
22415
22567
|
* @throws {RequiredError}
|
|
@@ -22429,6 +22581,20 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
|
|
|
22429
22581
|
};
|
|
22430
22582
|
};
|
|
22431
22583
|
|
|
22584
|
+
/**
|
|
22585
|
+
* Request parameters for archivePlan operation in SubscriptionsManagerApi.
|
|
22586
|
+
* @export
|
|
22587
|
+
* @interface SubscriptionsManagerApiArchivePlanRequest
|
|
22588
|
+
*/
|
|
22589
|
+
export interface SubscriptionsManagerApiArchivePlanRequest {
|
|
22590
|
+
/**
|
|
22591
|
+
*
|
|
22592
|
+
* @type {string}
|
|
22593
|
+
* @memberof SubscriptionsManagerApiArchivePlan
|
|
22594
|
+
*/
|
|
22595
|
+
readonly productId: string
|
|
22596
|
+
}
|
|
22597
|
+
|
|
22432
22598
|
/**
|
|
22433
22599
|
* Request parameters for createPlan operation in SubscriptionsManagerApi.
|
|
22434
22600
|
* @export
|
|
@@ -22478,6 +22644,17 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
|
|
|
22478
22644
|
* @extends {BaseAPI}
|
|
22479
22645
|
*/
|
|
22480
22646
|
export class SubscriptionsManagerApi extends BaseAPI {
|
|
22647
|
+
/**
|
|
22648
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22649
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
22650
|
+
* @param {*} [options] Override http request option.
|
|
22651
|
+
* @throws {RequiredError}
|
|
22652
|
+
* @memberof SubscriptionsManagerApi
|
|
22653
|
+
*/
|
|
22654
|
+
public archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig) {
|
|
22655
|
+
return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
22656
|
+
}
|
|
22657
|
+
|
|
22481
22658
|
/**
|
|
22482
22659
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22483
22660
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -22490,7 +22667,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
|
|
|
22490
22667
|
}
|
|
22491
22668
|
|
|
22492
22669
|
/**
|
|
22493
|
-
* Supprime
|
|
22670
|
+
* Supprime un plan par productId (manager)
|
|
22494
22671
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
22495
22672
|
* @param {*} [options] Override http request option.
|
|
22496
22673
|
* @throws {RequiredError}
|
package/dist/api.d.ts
CHANGED
|
@@ -4070,8 +4070,15 @@ export interface CreateSubscriptionPlanRequestDiscount {
|
|
|
4070
4070
|
*
|
|
4071
4071
|
* @type {Array<OffPeakRule>}
|
|
4072
4072
|
* @memberof CreateSubscriptionPlanRequestDiscount
|
|
4073
|
+
* @deprecated
|
|
4073
4074
|
*/
|
|
4074
4075
|
'offPeakRules'?: Array<OffPeakRule>;
|
|
4076
|
+
/**
|
|
4077
|
+
* Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club.
|
|
4078
|
+
* @type {Array<string>}
|
|
4079
|
+
* @memberof CreateSubscriptionPlanRequestDiscount
|
|
4080
|
+
*/
|
|
4081
|
+
'offPeakRuleNames'?: Array<string>;
|
|
4075
4082
|
/**
|
|
4076
4083
|
*
|
|
4077
4084
|
* @type {string}
|
|
@@ -4223,6 +4230,12 @@ export interface DeleteSubscriptionPlanResponse {
|
|
|
4223
4230
|
* @memberof DeleteSubscriptionPlanResponse
|
|
4224
4231
|
*/
|
|
4225
4232
|
'message': string;
|
|
4233
|
+
/**
|
|
4234
|
+
*
|
|
4235
|
+
* @type {boolean}
|
|
4236
|
+
* @memberof DeleteSubscriptionPlanResponse
|
|
4237
|
+
*/
|
|
4238
|
+
'archivedInstead'?: boolean;
|
|
4226
4239
|
}
|
|
4227
4240
|
/**
|
|
4228
4241
|
*
|
|
@@ -6111,6 +6124,12 @@ export interface NoShowFeeResponse {
|
|
|
6111
6124
|
* @interface OffPeakRule
|
|
6112
6125
|
*/
|
|
6113
6126
|
export interface OffPeakRule {
|
|
6127
|
+
/**
|
|
6128
|
+
*
|
|
6129
|
+
* @type {string}
|
|
6130
|
+
* @memberof OffPeakRule
|
|
6131
|
+
*/
|
|
6132
|
+
'pricingPeriodName'?: string;
|
|
6114
6133
|
/**
|
|
6115
6134
|
*
|
|
6116
6135
|
* @type {number}
|
|
@@ -6818,6 +6837,12 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
6818
6837
|
* @memberof PublicSubscriptionPlanResponse
|
|
6819
6838
|
*/
|
|
6820
6839
|
'description'?: string;
|
|
6840
|
+
/**
|
|
6841
|
+
*
|
|
6842
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
6843
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
6844
|
+
*/
|
|
6845
|
+
'discount'?: SubscriptionPlanDiscountResponse;
|
|
6821
6846
|
}
|
|
6822
6847
|
/**
|
|
6823
6848
|
*
|
|
@@ -9551,6 +9576,61 @@ export interface SubscriptionMutationResponse {
|
|
|
9551
9576
|
[key: string]: any;
|
|
9552
9577
|
};
|
|
9553
9578
|
}
|
|
9579
|
+
/**
|
|
9580
|
+
*
|
|
9581
|
+
* @export
|
|
9582
|
+
* @interface SubscriptionPlanDiscountResponse
|
|
9583
|
+
*/
|
|
9584
|
+
export interface SubscriptionPlanDiscountResponse {
|
|
9585
|
+
/**
|
|
9586
|
+
*
|
|
9587
|
+
* @type {DiscountType}
|
|
9588
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9589
|
+
*/
|
|
9590
|
+
'type': DiscountType;
|
|
9591
|
+
/**
|
|
9592
|
+
*
|
|
9593
|
+
* @type {number}
|
|
9594
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9595
|
+
*/
|
|
9596
|
+
'percentage'?: number;
|
|
9597
|
+
/**
|
|
9598
|
+
*
|
|
9599
|
+
* @type {number}
|
|
9600
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9601
|
+
*/
|
|
9602
|
+
'maxDiscountAmountInCents'?: number;
|
|
9603
|
+
/**
|
|
9604
|
+
*
|
|
9605
|
+
* @type {string}
|
|
9606
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9607
|
+
*/
|
|
9608
|
+
'validFrom'?: string;
|
|
9609
|
+
/**
|
|
9610
|
+
*
|
|
9611
|
+
* @type {string}
|
|
9612
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9613
|
+
*/
|
|
9614
|
+
'validTo'?: string;
|
|
9615
|
+
/**
|
|
9616
|
+
*
|
|
9617
|
+
* @type {Array<string>}
|
|
9618
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9619
|
+
*/
|
|
9620
|
+
'offPeakRuleNames'?: Array<string>;
|
|
9621
|
+
/**
|
|
9622
|
+
*
|
|
9623
|
+
* @type {Array<OffPeakRule>}
|
|
9624
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9625
|
+
*/
|
|
9626
|
+
'offPeakRules'?: Array<OffPeakRule>;
|
|
9627
|
+
/**
|
|
9628
|
+
*
|
|
9629
|
+
* @type {boolean}
|
|
9630
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9631
|
+
*/
|
|
9632
|
+
'bookingFree'?: boolean;
|
|
9633
|
+
}
|
|
9554
9634
|
/**
|
|
9555
9635
|
*
|
|
9556
9636
|
* @export
|
|
@@ -9605,6 +9685,18 @@ export interface SubscriptionPlanResponse {
|
|
|
9605
9685
|
* @memberof SubscriptionPlanResponse
|
|
9606
9686
|
*/
|
|
9607
9687
|
'priceActive': boolean;
|
|
9688
|
+
/**
|
|
9689
|
+
*
|
|
9690
|
+
* @type {string}
|
|
9691
|
+
* @memberof SubscriptionPlanResponse
|
|
9692
|
+
*/
|
|
9693
|
+
'description'?: string;
|
|
9694
|
+
/**
|
|
9695
|
+
*
|
|
9696
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
9697
|
+
* @memberof SubscriptionPlanResponse
|
|
9698
|
+
*/
|
|
9699
|
+
'discount'?: SubscriptionPlanDiscountResponse;
|
|
9608
9700
|
}
|
|
9609
9701
|
/**
|
|
9610
9702
|
*
|
|
@@ -16659,6 +16751,13 @@ export declare class SportsPublicApi extends BaseAPI {
|
|
|
16659
16751
|
* @export
|
|
16660
16752
|
*/
|
|
16661
16753
|
export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
16754
|
+
/**
|
|
16755
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16756
|
+
* @param {string} productId
|
|
16757
|
+
* @param {*} [options] Override http request option.
|
|
16758
|
+
* @throws {RequiredError}
|
|
16759
|
+
*/
|
|
16760
|
+
archivePlan: (productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16662
16761
|
/**
|
|
16663
16762
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16664
16763
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -16667,7 +16766,7 @@ export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?:
|
|
|
16667
16766
|
*/
|
|
16668
16767
|
createPlan: (createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16669
16768
|
/**
|
|
16670
|
-
* Supprime
|
|
16769
|
+
* Supprime un plan par productId (manager)
|
|
16671
16770
|
* @param {string} productId
|
|
16672
16771
|
* @param {*} [options] Override http request option.
|
|
16673
16772
|
* @throws {RequiredError}
|
|
@@ -16686,6 +16785,13 @@ export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?:
|
|
|
16686
16785
|
* @export
|
|
16687
16786
|
*/
|
|
16688
16787
|
export declare const SubscriptionsManagerApiFp: (configuration?: Configuration) => {
|
|
16788
|
+
/**
|
|
16789
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16790
|
+
* @param {string} productId
|
|
16791
|
+
* @param {*} [options] Override http request option.
|
|
16792
|
+
* @throws {RequiredError}
|
|
16793
|
+
*/
|
|
16794
|
+
archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>>;
|
|
16689
16795
|
/**
|
|
16690
16796
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16691
16797
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -16694,7 +16800,7 @@ export declare const SubscriptionsManagerApiFp: (configuration?: Configuration)
|
|
|
16694
16800
|
*/
|
|
16695
16801
|
createPlan(createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePlan201Response>>;
|
|
16696
16802
|
/**
|
|
16697
|
-
* Supprime
|
|
16803
|
+
* Supprime un plan par productId (manager)
|
|
16698
16804
|
* @param {string} productId
|
|
16699
16805
|
* @param {*} [options] Override http request option.
|
|
16700
16806
|
* @throws {RequiredError}
|
|
@@ -16713,6 +16819,13 @@ export declare const SubscriptionsManagerApiFp: (configuration?: Configuration)
|
|
|
16713
16819
|
* @export
|
|
16714
16820
|
*/
|
|
16715
16821
|
export declare const SubscriptionsManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
16822
|
+
/**
|
|
16823
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16824
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
16825
|
+
* @param {*} [options] Override http request option.
|
|
16826
|
+
* @throws {RequiredError}
|
|
16827
|
+
*/
|
|
16828
|
+
archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse>;
|
|
16716
16829
|
/**
|
|
16717
16830
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16718
16831
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -16721,7 +16834,7 @@ export declare const SubscriptionsManagerApiFactory: (configuration?: Configurat
|
|
|
16721
16834
|
*/
|
|
16722
16835
|
createPlan(requestParameters: SubscriptionsManagerApiCreatePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreatePlan201Response>;
|
|
16723
16836
|
/**
|
|
16724
|
-
* Supprime
|
|
16837
|
+
* Supprime un plan par productId (manager)
|
|
16725
16838
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
16726
16839
|
* @param {*} [options] Override http request option.
|
|
16727
16840
|
* @throws {RequiredError}
|
|
@@ -16735,6 +16848,19 @@ export declare const SubscriptionsManagerApiFactory: (configuration?: Configurat
|
|
|
16735
16848
|
*/
|
|
16736
16849
|
updatePlan(requestParameters: SubscriptionsManagerApiUpdatePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<StripeStripeResponseStripeStripePrice>;
|
|
16737
16850
|
};
|
|
16851
|
+
/**
|
|
16852
|
+
* Request parameters for archivePlan operation in SubscriptionsManagerApi.
|
|
16853
|
+
* @export
|
|
16854
|
+
* @interface SubscriptionsManagerApiArchivePlanRequest
|
|
16855
|
+
*/
|
|
16856
|
+
export interface SubscriptionsManagerApiArchivePlanRequest {
|
|
16857
|
+
/**
|
|
16858
|
+
*
|
|
16859
|
+
* @type {string}
|
|
16860
|
+
* @memberof SubscriptionsManagerApiArchivePlan
|
|
16861
|
+
*/
|
|
16862
|
+
readonly productId: string;
|
|
16863
|
+
}
|
|
16738
16864
|
/**
|
|
16739
16865
|
* Request parameters for createPlan operation in SubscriptionsManagerApi.
|
|
16740
16866
|
* @export
|
|
@@ -16781,6 +16907,14 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
|
|
|
16781
16907
|
* @extends {BaseAPI}
|
|
16782
16908
|
*/
|
|
16783
16909
|
export declare class SubscriptionsManagerApi extends BaseAPI {
|
|
16910
|
+
/**
|
|
16911
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16912
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
16913
|
+
* @param {*} [options] Override http request option.
|
|
16914
|
+
* @throws {RequiredError}
|
|
16915
|
+
* @memberof SubscriptionsManagerApi
|
|
16916
|
+
*/
|
|
16917
|
+
archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteSubscriptionPlanResponse, any, {}>>;
|
|
16784
16918
|
/**
|
|
16785
16919
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16786
16920
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -16790,7 +16924,7 @@ export declare class SubscriptionsManagerApi extends BaseAPI {
|
|
|
16790
16924
|
*/
|
|
16791
16925
|
createPlan(requestParameters: SubscriptionsManagerApiCreatePlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePlan201Response, any, {}>>;
|
|
16792
16926
|
/**
|
|
16793
|
-
* Supprime
|
|
16927
|
+
* Supprime un plan par productId (manager)
|
|
16794
16928
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
16795
16929
|
* @param {*} [options] Override http request option.
|
|
16796
16930
|
* @throws {RequiredError}
|
package/dist/api.js
CHANGED
|
@@ -9148,6 +9148,37 @@ exports.SportsPublicApi = SportsPublicApi;
|
|
|
9148
9148
|
*/
|
|
9149
9149
|
const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
9150
9150
|
return {
|
|
9151
|
+
/**
|
|
9152
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9153
|
+
* @param {string} productId
|
|
9154
|
+
* @param {*} [options] Override http request option.
|
|
9155
|
+
* @throws {RequiredError}
|
|
9156
|
+
*/
|
|
9157
|
+
archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
9158
|
+
// verify required parameter 'productId' is not null or undefined
|
|
9159
|
+
(0, common_1.assertParamExists)('archivePlan', 'productId', productId);
|
|
9160
|
+
const localVarPath = `/api/subscriptions/plans/{productId}/archive`
|
|
9161
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
9162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9163
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9164
|
+
let baseOptions;
|
|
9165
|
+
if (configuration) {
|
|
9166
|
+
baseOptions = configuration.baseOptions;
|
|
9167
|
+
}
|
|
9168
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9169
|
+
const localVarHeaderParameter = {};
|
|
9170
|
+
const localVarQueryParameter = {};
|
|
9171
|
+
// authentication bearerAuth required
|
|
9172
|
+
// http bearer authentication required
|
|
9173
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9174
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9176
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9177
|
+
return {
|
|
9178
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9179
|
+
options: localVarRequestOptions,
|
|
9180
|
+
};
|
|
9181
|
+
}),
|
|
9151
9182
|
/**
|
|
9152
9183
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9153
9184
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9181,7 +9212,7 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
9181
9212
|
};
|
|
9182
9213
|
}),
|
|
9183
9214
|
/**
|
|
9184
|
-
* Supprime
|
|
9215
|
+
* Supprime un plan par productId (manager)
|
|
9185
9216
|
* @param {string} productId
|
|
9186
9217
|
* @param {*} [options] Override http request option.
|
|
9187
9218
|
* @throws {RequiredError}
|
|
@@ -9253,6 +9284,21 @@ exports.SubscriptionsManagerApiAxiosParamCreator = SubscriptionsManagerApiAxiosP
|
|
|
9253
9284
|
const SubscriptionsManagerApiFp = function (configuration) {
|
|
9254
9285
|
const localVarAxiosParamCreator = (0, exports.SubscriptionsManagerApiAxiosParamCreator)(configuration);
|
|
9255
9286
|
return {
|
|
9287
|
+
/**
|
|
9288
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9289
|
+
* @param {string} productId
|
|
9290
|
+
* @param {*} [options] Override http request option.
|
|
9291
|
+
* @throws {RequiredError}
|
|
9292
|
+
*/
|
|
9293
|
+
archivePlan(productId, options) {
|
|
9294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9295
|
+
var _a, _b, _c;
|
|
9296
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
|
|
9297
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9298
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9299
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9300
|
+
});
|
|
9301
|
+
},
|
|
9256
9302
|
/**
|
|
9257
9303
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9258
9304
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9269,7 +9315,7 @@ const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9269
9315
|
});
|
|
9270
9316
|
},
|
|
9271
9317
|
/**
|
|
9272
|
-
* Supprime
|
|
9318
|
+
* Supprime un plan par productId (manager)
|
|
9273
9319
|
* @param {string} productId
|
|
9274
9320
|
* @param {*} [options] Override http request option.
|
|
9275
9321
|
* @throws {RequiredError}
|
|
@@ -9308,6 +9354,15 @@ exports.SubscriptionsManagerApiFp = SubscriptionsManagerApiFp;
|
|
|
9308
9354
|
const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
9309
9355
|
const localVarFp = (0, exports.SubscriptionsManagerApiFp)(configuration);
|
|
9310
9356
|
return {
|
|
9357
|
+
/**
|
|
9358
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9359
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9360
|
+
* @param {*} [options] Override http request option.
|
|
9361
|
+
* @throws {RequiredError}
|
|
9362
|
+
*/
|
|
9363
|
+
archivePlan(requestParameters, options) {
|
|
9364
|
+
return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
9365
|
+
},
|
|
9311
9366
|
/**
|
|
9312
9367
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9313
9368
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9318,7 +9373,7 @@ const SubscriptionsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
9318
9373
|
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
9319
9374
|
},
|
|
9320
9375
|
/**
|
|
9321
|
-
* Supprime
|
|
9376
|
+
* Supprime un plan par productId (manager)
|
|
9322
9377
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9323
9378
|
* @param {*} [options] Override http request option.
|
|
9324
9379
|
* @throws {RequiredError}
|
|
@@ -9345,6 +9400,16 @@ exports.SubscriptionsManagerApiFactory = SubscriptionsManagerApiFactory;
|
|
|
9345
9400
|
* @extends {BaseAPI}
|
|
9346
9401
|
*/
|
|
9347
9402
|
class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
9403
|
+
/**
|
|
9404
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9405
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9406
|
+
* @param {*} [options] Override http request option.
|
|
9407
|
+
* @throws {RequiredError}
|
|
9408
|
+
* @memberof SubscriptionsManagerApi
|
|
9409
|
+
*/
|
|
9410
|
+
archivePlan(requestParameters, options) {
|
|
9411
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
9412
|
+
}
|
|
9348
9413
|
/**
|
|
9349
9414
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9350
9415
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9356,7 +9421,7 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
|
9356
9421
|
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9357
9422
|
}
|
|
9358
9423
|
/**
|
|
9359
|
-
* Supprime
|
|
9424
|
+
* Supprime un plan par productId (manager)
|
|
9360
9425
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9361
9426
|
* @param {*} [options] Override http request option.
|
|
9362
9427
|
* @throws {RequiredError}
|