@tennac-booking/sdk 1.0.122 → 1.0.124
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 +3 -0
- package/README.md +4 -0
- package/api.ts +255 -13
- package/dist/api.d.ts +208 -13
- package/dist/api.js +69 -4
- package/dist/esm/api.d.ts +208 -13
- package/dist/esm/api.js +69 -4
- package/docs/ClubPlayerSubscriptionSummary.md +3 -3
- package/docs/CreatePlan201Response.md +2 -0
- package/docs/CreateSubscriptionPlanRequest.md +2 -2
- package/docs/DeleteSubscriptionPlanResponse.md +2 -0
- package/docs/MonthlyTurnoverResponse.md +0 -1
- package/docs/PlanPrice.md +26 -0
- package/docs/PlanPriceInput.md +22 -0
- package/docs/PublicSubscriptionPlanResponse.md +5 -1
- package/docs/SendSubscriptionInvitationRequest.md +2 -0
- package/docs/SubscriptionPlanDiscountResponse.md +34 -0
- package/docs/SubscriptionPlanResponse.md +7 -1
- package/docs/SubscriptionsManagerApi.md +55 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2705,11 +2705,11 @@ export interface ClubPlayerSubscriptionSummary {
|
|
|
2705
2705
|
*/
|
|
2706
2706
|
'name': string | null;
|
|
2707
2707
|
/**
|
|
2708
|
-
*
|
|
2709
|
-
* @type {
|
|
2708
|
+
* Tarifications disponibles
|
|
2709
|
+
* @type {Array<PlanPrice>}
|
|
2710
2710
|
* @memberof ClubPlayerSubscriptionSummary
|
|
2711
2711
|
*/
|
|
2712
|
-
'
|
|
2712
|
+
'prices': Array<PlanPrice>;
|
|
2713
2713
|
/**
|
|
2714
2714
|
* Devise
|
|
2715
2715
|
* @type {string}
|
|
@@ -2717,7 +2717,7 @@ export interface ClubPlayerSubscriptionSummary {
|
|
|
2717
2717
|
*/
|
|
2718
2718
|
'currency': string | null;
|
|
2719
2719
|
/**
|
|
2720
|
-
* Intervalle
|
|
2720
|
+
* Intervalle par défaut
|
|
2721
2721
|
* @type {string}
|
|
2722
2722
|
* @memberof ClubPlayerSubscriptionSummary
|
|
2723
2723
|
*/
|
|
@@ -3917,6 +3917,12 @@ export interface CreateOnsiteInvoiceResponseInvoice {
|
|
|
3917
3917
|
* @interface CreatePlan201Response
|
|
3918
3918
|
*/
|
|
3919
3919
|
export interface CreatePlan201Response {
|
|
3920
|
+
/**
|
|
3921
|
+
*
|
|
3922
|
+
* @type {Array<string>}
|
|
3923
|
+
* @memberof CreatePlan201Response
|
|
3924
|
+
*/
|
|
3925
|
+
'priceIds': Array<string>;
|
|
3920
3926
|
/**
|
|
3921
3927
|
*
|
|
3922
3928
|
* @type {string}
|
|
@@ -4031,10 +4037,10 @@ export interface CreateSubscriptionPlanRequest {
|
|
|
4031
4037
|
'description'?: string;
|
|
4032
4038
|
/**
|
|
4033
4039
|
*
|
|
4034
|
-
* @type {
|
|
4040
|
+
* @type {Array<PlanPriceInput>}
|
|
4035
4041
|
* @memberof CreateSubscriptionPlanRequest
|
|
4036
4042
|
*/
|
|
4037
|
-
'
|
|
4043
|
+
'prices': Array<PlanPriceInput>;
|
|
4038
4044
|
/**
|
|
4039
4045
|
*
|
|
4040
4046
|
* @type {string}
|
|
@@ -4230,6 +4236,12 @@ export interface DeleteSubscriptionPlanResponse {
|
|
|
4230
4236
|
* @memberof DeleteSubscriptionPlanResponse
|
|
4231
4237
|
*/
|
|
4232
4238
|
'message': string;
|
|
4239
|
+
/**
|
|
4240
|
+
*
|
|
4241
|
+
* @type {boolean}
|
|
4242
|
+
* @memberof DeleteSubscriptionPlanResponse
|
|
4243
|
+
*/
|
|
4244
|
+
'archivedInstead'?: boolean;
|
|
4233
4245
|
}
|
|
4234
4246
|
/**
|
|
4235
4247
|
*
|
|
@@ -6002,7 +6014,7 @@ export interface MonthlyBreakdown {
|
|
|
6002
6014
|
'invoiceCount': number;
|
|
6003
6015
|
}
|
|
6004
6016
|
/**
|
|
6005
|
-
*
|
|
6017
|
+
*
|
|
6006
6018
|
* @export
|
|
6007
6019
|
* @interface MonthlyTurnoverResponse
|
|
6008
6020
|
*/
|
|
@@ -6442,6 +6454,56 @@ export declare const PlanInterval: {
|
|
|
6442
6454
|
readonly Semester: "semester";
|
|
6443
6455
|
};
|
|
6444
6456
|
export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
|
|
6457
|
+
/**
|
|
6458
|
+
*
|
|
6459
|
+
* @export
|
|
6460
|
+
* @interface PlanPrice
|
|
6461
|
+
*/
|
|
6462
|
+
export interface PlanPrice {
|
|
6463
|
+
/**
|
|
6464
|
+
*
|
|
6465
|
+
* @type {number}
|
|
6466
|
+
* @memberof PlanPrice
|
|
6467
|
+
*/
|
|
6468
|
+
'amountInCents': number;
|
|
6469
|
+
/**
|
|
6470
|
+
*
|
|
6471
|
+
* @type {PlanInterval}
|
|
6472
|
+
* @memberof PlanPrice
|
|
6473
|
+
*/
|
|
6474
|
+
'interval': PlanInterval;
|
|
6475
|
+
/**
|
|
6476
|
+
*
|
|
6477
|
+
* @type {boolean}
|
|
6478
|
+
* @memberof PlanPrice
|
|
6479
|
+
*/
|
|
6480
|
+
'active'?: boolean;
|
|
6481
|
+
/**
|
|
6482
|
+
*
|
|
6483
|
+
* @type {string}
|
|
6484
|
+
* @memberof PlanPrice
|
|
6485
|
+
*/
|
|
6486
|
+
'stripePriceId'?: string;
|
|
6487
|
+
}
|
|
6488
|
+
/**
|
|
6489
|
+
*
|
|
6490
|
+
* @export
|
|
6491
|
+
* @interface PlanPriceInput
|
|
6492
|
+
*/
|
|
6493
|
+
export interface PlanPriceInput {
|
|
6494
|
+
/**
|
|
6495
|
+
*
|
|
6496
|
+
* @type {number}
|
|
6497
|
+
* @memberof PlanPriceInput
|
|
6498
|
+
*/
|
|
6499
|
+
'amountInCents': number;
|
|
6500
|
+
/**
|
|
6501
|
+
*
|
|
6502
|
+
* @type {PlanInterval}
|
|
6503
|
+
* @memberof PlanPriceInput
|
|
6504
|
+
*/
|
|
6505
|
+
'interval': PlanInterval;
|
|
6506
|
+
}
|
|
6445
6507
|
/**
|
|
6446
6508
|
*
|
|
6447
6509
|
* @export
|
|
@@ -6812,13 +6874,19 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
6812
6874
|
* @type {number}
|
|
6813
6875
|
* @memberof PublicSubscriptionPlanResponse
|
|
6814
6876
|
*/
|
|
6815
|
-
'amountInCents'
|
|
6877
|
+
'amountInCents'?: number;
|
|
6816
6878
|
/**
|
|
6817
6879
|
*
|
|
6818
6880
|
* @type {string}
|
|
6819
6881
|
* @memberof PublicSubscriptionPlanResponse
|
|
6820
6882
|
*/
|
|
6821
6883
|
'currency': string;
|
|
6884
|
+
/**
|
|
6885
|
+
*
|
|
6886
|
+
* @type {Array<PlanPrice>}
|
|
6887
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
6888
|
+
*/
|
|
6889
|
+
'prices': Array<PlanPrice>;
|
|
6822
6890
|
/**
|
|
6823
6891
|
*
|
|
6824
6892
|
* @type {PlanInterval}
|
|
@@ -6831,6 +6899,12 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
6831
6899
|
* @memberof PublicSubscriptionPlanResponse
|
|
6832
6900
|
*/
|
|
6833
6901
|
'description'?: string;
|
|
6902
|
+
/**
|
|
6903
|
+
*
|
|
6904
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
6905
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
6906
|
+
*/
|
|
6907
|
+
'discount'?: SubscriptionPlanDiscountResponse;
|
|
6834
6908
|
}
|
|
6835
6909
|
/**
|
|
6836
6910
|
*
|
|
@@ -7461,6 +7535,12 @@ export interface SendSubscriptionInvitationRequest {
|
|
|
7461
7535
|
* @memberof SendSubscriptionInvitationRequest
|
|
7462
7536
|
*/
|
|
7463
7537
|
'productId': string;
|
|
7538
|
+
/**
|
|
7539
|
+
* Price spécifique proposé dans l\'invitation (facultatif).
|
|
7540
|
+
* @type {string}
|
|
7541
|
+
* @memberof SendSubscriptionInvitationRequest
|
|
7542
|
+
*/
|
|
7543
|
+
'priceId'?: string;
|
|
7464
7544
|
}
|
|
7465
7545
|
/**
|
|
7466
7546
|
*
|
|
@@ -9564,6 +9644,61 @@ export interface SubscriptionMutationResponse {
|
|
|
9564
9644
|
[key: string]: any;
|
|
9565
9645
|
};
|
|
9566
9646
|
}
|
|
9647
|
+
/**
|
|
9648
|
+
*
|
|
9649
|
+
* @export
|
|
9650
|
+
* @interface SubscriptionPlanDiscountResponse
|
|
9651
|
+
*/
|
|
9652
|
+
export interface SubscriptionPlanDiscountResponse {
|
|
9653
|
+
/**
|
|
9654
|
+
*
|
|
9655
|
+
* @type {DiscountType}
|
|
9656
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9657
|
+
*/
|
|
9658
|
+
'type': DiscountType;
|
|
9659
|
+
/**
|
|
9660
|
+
*
|
|
9661
|
+
* @type {number}
|
|
9662
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9663
|
+
*/
|
|
9664
|
+
'percentage'?: number;
|
|
9665
|
+
/**
|
|
9666
|
+
*
|
|
9667
|
+
* @type {number}
|
|
9668
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9669
|
+
*/
|
|
9670
|
+
'maxDiscountAmountInCents'?: number;
|
|
9671
|
+
/**
|
|
9672
|
+
*
|
|
9673
|
+
* @type {string}
|
|
9674
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9675
|
+
*/
|
|
9676
|
+
'validFrom'?: string;
|
|
9677
|
+
/**
|
|
9678
|
+
*
|
|
9679
|
+
* @type {string}
|
|
9680
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9681
|
+
*/
|
|
9682
|
+
'validTo'?: string;
|
|
9683
|
+
/**
|
|
9684
|
+
*
|
|
9685
|
+
* @type {Array<string>}
|
|
9686
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9687
|
+
*/
|
|
9688
|
+
'offPeakRuleNames'?: Array<string>;
|
|
9689
|
+
/**
|
|
9690
|
+
*
|
|
9691
|
+
* @type {Array<OffPeakRule>}
|
|
9692
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9693
|
+
*/
|
|
9694
|
+
'offPeakRules'?: Array<OffPeakRule>;
|
|
9695
|
+
/**
|
|
9696
|
+
*
|
|
9697
|
+
* @type {boolean}
|
|
9698
|
+
* @memberof SubscriptionPlanDiscountResponse
|
|
9699
|
+
*/
|
|
9700
|
+
'bookingFree'?: boolean;
|
|
9701
|
+
}
|
|
9567
9702
|
/**
|
|
9568
9703
|
*
|
|
9569
9704
|
* @export
|
|
@@ -9599,13 +9734,19 @@ export interface SubscriptionPlanResponse {
|
|
|
9599
9734
|
* @type {number}
|
|
9600
9735
|
* @memberof SubscriptionPlanResponse
|
|
9601
9736
|
*/
|
|
9602
|
-
'amountInCents'
|
|
9737
|
+
'amountInCents'?: number;
|
|
9603
9738
|
/**
|
|
9604
9739
|
*
|
|
9605
9740
|
* @type {string}
|
|
9606
9741
|
* @memberof SubscriptionPlanResponse
|
|
9607
9742
|
*/
|
|
9608
9743
|
'currency': string;
|
|
9744
|
+
/**
|
|
9745
|
+
*
|
|
9746
|
+
* @type {Array<PlanPrice>}
|
|
9747
|
+
* @memberof SubscriptionPlanResponse
|
|
9748
|
+
*/
|
|
9749
|
+
'prices': Array<PlanPrice>;
|
|
9609
9750
|
/**
|
|
9610
9751
|
*
|
|
9611
9752
|
* @type {PlanInterval}
|
|
@@ -9618,6 +9759,18 @@ export interface SubscriptionPlanResponse {
|
|
|
9618
9759
|
* @memberof SubscriptionPlanResponse
|
|
9619
9760
|
*/
|
|
9620
9761
|
'priceActive': boolean;
|
|
9762
|
+
/**
|
|
9763
|
+
*
|
|
9764
|
+
* @type {string}
|
|
9765
|
+
* @memberof SubscriptionPlanResponse
|
|
9766
|
+
*/
|
|
9767
|
+
'description'?: string;
|
|
9768
|
+
/**
|
|
9769
|
+
*
|
|
9770
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
9771
|
+
* @memberof SubscriptionPlanResponse
|
|
9772
|
+
*/
|
|
9773
|
+
'discount'?: SubscriptionPlanDiscountResponse;
|
|
9621
9774
|
}
|
|
9622
9775
|
/**
|
|
9623
9776
|
*
|
|
@@ -16672,6 +16825,13 @@ export declare class SportsPublicApi extends BaseAPI {
|
|
|
16672
16825
|
* @export
|
|
16673
16826
|
*/
|
|
16674
16827
|
export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
16828
|
+
/**
|
|
16829
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16830
|
+
* @param {string} productId
|
|
16831
|
+
* @param {*} [options] Override http request option.
|
|
16832
|
+
* @throws {RequiredError}
|
|
16833
|
+
*/
|
|
16834
|
+
archivePlan: (productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16675
16835
|
/**
|
|
16676
16836
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16677
16837
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -16680,7 +16840,7 @@ export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?:
|
|
|
16680
16840
|
*/
|
|
16681
16841
|
createPlan: (createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16682
16842
|
/**
|
|
16683
|
-
* Supprime
|
|
16843
|
+
* Supprime un plan par productId (manager)
|
|
16684
16844
|
* @param {string} productId
|
|
16685
16845
|
* @param {*} [options] Override http request option.
|
|
16686
16846
|
* @throws {RequiredError}
|
|
@@ -16699,6 +16859,13 @@ export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?:
|
|
|
16699
16859
|
* @export
|
|
16700
16860
|
*/
|
|
16701
16861
|
export declare const SubscriptionsManagerApiFp: (configuration?: Configuration) => {
|
|
16862
|
+
/**
|
|
16863
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16864
|
+
* @param {string} productId
|
|
16865
|
+
* @param {*} [options] Override http request option.
|
|
16866
|
+
* @throws {RequiredError}
|
|
16867
|
+
*/
|
|
16868
|
+
archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>>;
|
|
16702
16869
|
/**
|
|
16703
16870
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16704
16871
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -16707,7 +16874,7 @@ export declare const SubscriptionsManagerApiFp: (configuration?: Configuration)
|
|
|
16707
16874
|
*/
|
|
16708
16875
|
createPlan(createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePlan201Response>>;
|
|
16709
16876
|
/**
|
|
16710
|
-
* Supprime
|
|
16877
|
+
* Supprime un plan par productId (manager)
|
|
16711
16878
|
* @param {string} productId
|
|
16712
16879
|
* @param {*} [options] Override http request option.
|
|
16713
16880
|
* @throws {RequiredError}
|
|
@@ -16726,6 +16893,13 @@ export declare const SubscriptionsManagerApiFp: (configuration?: Configuration)
|
|
|
16726
16893
|
* @export
|
|
16727
16894
|
*/
|
|
16728
16895
|
export declare const SubscriptionsManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
16896
|
+
/**
|
|
16897
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16898
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
16899
|
+
* @param {*} [options] Override http request option.
|
|
16900
|
+
* @throws {RequiredError}
|
|
16901
|
+
*/
|
|
16902
|
+
archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse>;
|
|
16729
16903
|
/**
|
|
16730
16904
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16731
16905
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -16734,7 +16908,7 @@ export declare const SubscriptionsManagerApiFactory: (configuration?: Configurat
|
|
|
16734
16908
|
*/
|
|
16735
16909
|
createPlan(requestParameters: SubscriptionsManagerApiCreatePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreatePlan201Response>;
|
|
16736
16910
|
/**
|
|
16737
|
-
* Supprime
|
|
16911
|
+
* Supprime un plan par productId (manager)
|
|
16738
16912
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
16739
16913
|
* @param {*} [options] Override http request option.
|
|
16740
16914
|
* @throws {RequiredError}
|
|
@@ -16748,6 +16922,19 @@ export declare const SubscriptionsManagerApiFactory: (configuration?: Configurat
|
|
|
16748
16922
|
*/
|
|
16749
16923
|
updatePlan(requestParameters: SubscriptionsManagerApiUpdatePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<StripeStripeResponseStripeStripePrice>;
|
|
16750
16924
|
};
|
|
16925
|
+
/**
|
|
16926
|
+
* Request parameters for archivePlan operation in SubscriptionsManagerApi.
|
|
16927
|
+
* @export
|
|
16928
|
+
* @interface SubscriptionsManagerApiArchivePlanRequest
|
|
16929
|
+
*/
|
|
16930
|
+
export interface SubscriptionsManagerApiArchivePlanRequest {
|
|
16931
|
+
/**
|
|
16932
|
+
*
|
|
16933
|
+
* @type {string}
|
|
16934
|
+
* @memberof SubscriptionsManagerApiArchivePlan
|
|
16935
|
+
*/
|
|
16936
|
+
readonly productId: string;
|
|
16937
|
+
}
|
|
16751
16938
|
/**
|
|
16752
16939
|
* Request parameters for createPlan operation in SubscriptionsManagerApi.
|
|
16753
16940
|
* @export
|
|
@@ -16794,6 +16981,14 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
|
|
|
16794
16981
|
* @extends {BaseAPI}
|
|
16795
16982
|
*/
|
|
16796
16983
|
export declare class SubscriptionsManagerApi extends BaseAPI {
|
|
16984
|
+
/**
|
|
16985
|
+
* Supprime (archive) un plan par productId (manager)
|
|
16986
|
+
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
16987
|
+
* @param {*} [options] Override http request option.
|
|
16988
|
+
* @throws {RequiredError}
|
|
16989
|
+
* @memberof SubscriptionsManagerApi
|
|
16990
|
+
*/
|
|
16991
|
+
archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteSubscriptionPlanResponse, any, {}>>;
|
|
16797
16992
|
/**
|
|
16798
16993
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
16799
16994
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -16803,7 +16998,7 @@ export declare class SubscriptionsManagerApi extends BaseAPI {
|
|
|
16803
16998
|
*/
|
|
16804
16999
|
createPlan(requestParameters: SubscriptionsManagerApiCreatePlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePlan201Response, any, {}>>;
|
|
16805
17000
|
/**
|
|
16806
|
-
* Supprime
|
|
17001
|
+
* Supprime un plan par productId (manager)
|
|
16807
17002
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
16808
17003
|
* @param {*} [options] Override http request option.
|
|
16809
17004
|
* @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}
|