@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/dist/esm/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/esm/api.js
CHANGED
|
@@ -9058,6 +9058,37 @@ export class SportsPublicApi extends BaseAPI {
|
|
|
9058
9058
|
*/
|
|
9059
9059
|
export const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
9060
9060
|
return {
|
|
9061
|
+
/**
|
|
9062
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9063
|
+
* @param {string} productId
|
|
9064
|
+
* @param {*} [options] Override http request option.
|
|
9065
|
+
* @throws {RequiredError}
|
|
9066
|
+
*/
|
|
9067
|
+
archivePlan: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
|
|
9068
|
+
// verify required parameter 'productId' is not null or undefined
|
|
9069
|
+
assertParamExists('archivePlan', 'productId', productId);
|
|
9070
|
+
const localVarPath = `/api/subscriptions/plans/{productId}/archive`
|
|
9071
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
9072
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9073
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9074
|
+
let baseOptions;
|
|
9075
|
+
if (configuration) {
|
|
9076
|
+
baseOptions = configuration.baseOptions;
|
|
9077
|
+
}
|
|
9078
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9079
|
+
const localVarHeaderParameter = {};
|
|
9080
|
+
const localVarQueryParameter = {};
|
|
9081
|
+
// authentication bearerAuth required
|
|
9082
|
+
// http bearer authentication required
|
|
9083
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
9084
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9085
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9086
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9087
|
+
return {
|
|
9088
|
+
url: toPathString(localVarUrlObj),
|
|
9089
|
+
options: localVarRequestOptions,
|
|
9090
|
+
};
|
|
9091
|
+
}),
|
|
9061
9092
|
/**
|
|
9062
9093
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9063
9094
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9091,7 +9122,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
|
|
|
9091
9122
|
};
|
|
9092
9123
|
}),
|
|
9093
9124
|
/**
|
|
9094
|
-
* Supprime
|
|
9125
|
+
* Supprime un plan par productId (manager)
|
|
9095
9126
|
* @param {string} productId
|
|
9096
9127
|
* @param {*} [options] Override http request option.
|
|
9097
9128
|
* @throws {RequiredError}
|
|
@@ -9162,6 +9193,21 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration)
|
|
|
9162
9193
|
export const SubscriptionsManagerApiFp = function (configuration) {
|
|
9163
9194
|
const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration);
|
|
9164
9195
|
return {
|
|
9196
|
+
/**
|
|
9197
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9198
|
+
* @param {string} productId
|
|
9199
|
+
* @param {*} [options] Override http request option.
|
|
9200
|
+
* @throws {RequiredError}
|
|
9201
|
+
*/
|
|
9202
|
+
archivePlan(productId, options) {
|
|
9203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9204
|
+
var _a, _b, _c;
|
|
9205
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePlan(productId, options);
|
|
9206
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9207
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsManagerApi.archivePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9208
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9209
|
+
});
|
|
9210
|
+
},
|
|
9165
9211
|
/**
|
|
9166
9212
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9167
9213
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -9178,7 +9224,7 @@ export const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9178
9224
|
});
|
|
9179
9225
|
},
|
|
9180
9226
|
/**
|
|
9181
|
-
* Supprime
|
|
9227
|
+
* Supprime un plan par productId (manager)
|
|
9182
9228
|
* @param {string} productId
|
|
9183
9229
|
* @param {*} [options] Override http request option.
|
|
9184
9230
|
* @throws {RequiredError}
|
|
@@ -9216,6 +9262,15 @@ export const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9216
9262
|
export const SubscriptionsManagerApiFactory = function (configuration, basePath, axios) {
|
|
9217
9263
|
const localVarFp = SubscriptionsManagerApiFp(configuration);
|
|
9218
9264
|
return {
|
|
9265
|
+
/**
|
|
9266
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9267
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9268
|
+
* @param {*} [options] Override http request option.
|
|
9269
|
+
* @throws {RequiredError}
|
|
9270
|
+
*/
|
|
9271
|
+
archivePlan(requestParameters, options) {
|
|
9272
|
+
return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
9273
|
+
},
|
|
9219
9274
|
/**
|
|
9220
9275
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9221
9276
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9226,7 +9281,7 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
|
|
|
9226
9281
|
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
9227
9282
|
},
|
|
9228
9283
|
/**
|
|
9229
|
-
* Supprime
|
|
9284
|
+
* Supprime un plan par productId (manager)
|
|
9230
9285
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9231
9286
|
* @param {*} [options] Override http request option.
|
|
9232
9287
|
* @throws {RequiredError}
|
|
@@ -9252,6 +9307,16 @@ export const SubscriptionsManagerApiFactory = function (configuration, basePath,
|
|
|
9252
9307
|
* @extends {BaseAPI}
|
|
9253
9308
|
*/
|
|
9254
9309
|
export class SubscriptionsManagerApi extends BaseAPI {
|
|
9310
|
+
/**
|
|
9311
|
+
* Supprime (archive) un plan par productId (manager)
|
|
9312
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
9313
|
+
* @param {*} [options] Override http request option.
|
|
9314
|
+
* @throws {RequiredError}
|
|
9315
|
+
* @memberof SubscriptionsManagerApi
|
|
9316
|
+
*/
|
|
9317
|
+
archivePlan(requestParameters, options) {
|
|
9318
|
+
return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
9319
|
+
}
|
|
9255
9320
|
/**
|
|
9256
9321
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
9257
9322
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -9263,7 +9328,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
|
|
|
9263
9328
|
return SubscriptionsManagerApiFp(this.configuration).createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9264
9329
|
}
|
|
9265
9330
|
/**
|
|
9266
|
-
* Supprime
|
|
9331
|
+
* Supprime un plan par productId (manager)
|
|
9267
9332
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
9268
9333
|
* @param {*} [options] Override http request option.
|
|
9269
9334
|
* @throws {RequiredError}
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**bookingFree** | **boolean** | | [optional] [default to undefined]
|
|
9
9
|
**offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
|
|
10
|
+
**offPeakRuleNames** | **Array<string>** | 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. | [optional] [default to undefined]
|
|
10
11
|
**validTo** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**validFrom** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**maxDiscountAmountInCents** | **number** | | [optional] [default to undefined]
|
|
@@ -21,6 +22,7 @@ import { CreateSubscriptionPlanRequestDiscount } from '@tennac-booking/sdk';
|
|
|
21
22
|
const instance: CreateSubscriptionPlanRequestDiscount = {
|
|
22
23
|
bookingFree,
|
|
23
24
|
offPeakRules,
|
|
25
|
+
offPeakRuleNames,
|
|
24
26
|
validTo,
|
|
25
27
|
validFrom,
|
|
26
28
|
maxDiscountAmountInCents,
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | | [default to undefined]
|
|
9
|
+
**archivedInstead** | **boolean** | | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { DeleteSubscriptionPlanResponse } from '@tennac-booking/sdk';
|
|
|
14
15
|
|
|
15
16
|
const instance: DeleteSubscriptionPlanResponse = {
|
|
16
17
|
message,
|
|
18
|
+
archivedInstead,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/docs/OffPeakRule.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**pricingPeriodName** | **string** | | [optional] [default to undefined]
|
|
8
9
|
**percentage** | **number** | | [default to undefined]
|
|
9
10
|
**endHour** | **number** | | [default to undefined]
|
|
10
11
|
**startHour** | **number** | | [default to undefined]
|
|
@@ -16,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
16
17
|
import { OffPeakRule } from '@tennac-booking/sdk';
|
|
17
18
|
|
|
18
19
|
const instance: OffPeakRule = {
|
|
20
|
+
pricingPeriodName,
|
|
19
21
|
percentage,
|
|
20
22
|
endHour,
|
|
21
23
|
startHour,
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**currency** | **string** | | [default to undefined]
|
|
12
12
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
13
13
|
**description** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: PublicSubscriptionPlanResponse = {
|
|
|
24
25
|
currency,
|
|
25
26
|
interval,
|
|
26
27
|
description,
|
|
28
|
+
discount,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# SubscriptionPlanDiscountResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | [**DiscountType**](DiscountType.md) | | [default to undefined]
|
|
9
|
+
**percentage** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**maxDiscountAmountInCents** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**validFrom** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**validTo** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**offPeakRuleNames** | **Array<string>** | | [optional] [default to undefined]
|
|
14
|
+
**offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
|
|
15
|
+
**bookingFree** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { SubscriptionPlanDiscountResponse } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: SubscriptionPlanDiscountResponse = {
|
|
23
|
+
type,
|
|
24
|
+
percentage,
|
|
25
|
+
maxDiscountAmountInCents,
|
|
26
|
+
validFrom,
|
|
27
|
+
validTo,
|
|
28
|
+
offPeakRuleNames,
|
|
29
|
+
offPeakRules,
|
|
30
|
+
bookingFree,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**currency** | **string** | | [default to undefined]
|
|
14
14
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
15
15
|
**priceActive** | **boolean** | | [default to undefined]
|
|
16
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
16
18
|
|
|
17
19
|
## Example
|
|
18
20
|
|
|
@@ -28,6 +30,8 @@ const instance: SubscriptionPlanResponse = {
|
|
|
28
30
|
currency,
|
|
29
31
|
interval,
|
|
30
32
|
priceActive,
|
|
33
|
+
description,
|
|
34
|
+
discount,
|
|
31
35
|
};
|
|
32
36
|
```
|
|
33
37
|
|
|
@@ -4,10 +4,64 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**archivePlan**](#archiveplan) | **POST** /api/subscriptions/plans/{productId}/archive | |
|
|
7
8
|
|[**createPlan**](#createplan) | **POST** /api/subscriptions/plans | |
|
|
8
9
|
|[**deletePlan**](#deleteplan) | **DELETE** /api/subscriptions/plans/{productId} | |
|
|
9
10
|
|[**updatePlan**](#updateplan) | **PUT** /api/subscriptions/plans | |
|
|
10
11
|
|
|
12
|
+
# **archivePlan**
|
|
13
|
+
> DeleteSubscriptionPlanResponse archivePlan()
|
|
14
|
+
|
|
15
|
+
Supprime (archive) un plan par productId (manager)
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
SubscriptionsManagerApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new SubscriptionsManagerApi(configuration);
|
|
27
|
+
|
|
28
|
+
let productId: string; // (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.archivePlan(
|
|
31
|
+
productId
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **productId** | [**string**] | | defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**DeleteSubscriptionPlanResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Plan archivé | - |
|
|
60
|
+
|**400** | Bad Request | - |
|
|
61
|
+
|**401** | Unauthorized | - |
|
|
62
|
+
|
|
63
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
64
|
+
|
|
11
65
|
# **createPlan**
|
|
12
66
|
> CreatePlan201Response createPlan(createSubscriptionPlanRequest)
|
|
13
67
|
|
|
@@ -65,7 +119,7 @@ const { status, data } = await apiInstance.createPlan(
|
|
|
65
119
|
# **deletePlan**
|
|
66
120
|
> DeleteSubscriptionPlanResponse deletePlan()
|
|
67
121
|
|
|
68
|
-
Supprime
|
|
122
|
+
Supprime un plan par productId (manager)
|
|
69
123
|
|
|
70
124
|
### Example
|
|
71
125
|
|