@tennac-booking/sdk 1.0.243 → 1.0.244
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 +2 -0
- package/README.md +3 -0
- package/api.ts +187 -0
- package/dist/api.d.ts +140 -0
- package/dist/api.js +69 -0
- package/dist/esm/api.d.ts +140 -0
- package/dist/esm/api.js +69 -0
- package/docs/ClubPageResponse.md +2 -0
- package/docs/PublicSubscriptionPlanResponse.md +6 -0
- package/docs/SubscriptionPaymentSheetRequest.md +24 -0
- package/docs/SubscriptionPaymentSheetResponse.md +32 -0
- package/docs/SubscriptionsPublicApi.md +1 -1
- package/docs/SubscriptionsUserApi.md +55 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -392,6 +392,8 @@ docs/SubscribeRequestBody.md
|
|
|
392
392
|
docs/SubscriberPrice.md
|
|
393
393
|
docs/SubscriptionInfo.md
|
|
394
394
|
docs/SubscriptionMutationResponse.md
|
|
395
|
+
docs/SubscriptionPaymentSheetRequest.md
|
|
396
|
+
docs/SubscriptionPaymentSheetResponse.md
|
|
395
397
|
docs/SubscriptionPlanDiscountResponse.md
|
|
396
398
|
docs/SubscriptionPlanDiscountUpdateRequest.md
|
|
397
399
|
docs/SubscriptionPlanDiscountUpdateRequestValidFrom.md
|
package/README.md
CHANGED
|
@@ -242,6 +242,7 @@ Class | Method | HTTP request | Description
|
|
|
242
242
|
*SubscriptionsUserApi* | [**mySubscriptions**](docs/SubscriptionsUserApi.md#mysubscriptions) | **GET** /api/subscriptions/me |
|
|
243
243
|
*SubscriptionsUserApi* | [**resume**](docs/SubscriptionsUserApi.md#resume) | **POST** /api/subscriptions/{clubId}/{subscriptionId}/resume |
|
|
244
244
|
*SubscriptionsUserApi* | [**subscribe**](docs/SubscriptionsUserApi.md#subscribe) | **POST** /api/subscriptions/subscribe |
|
|
245
|
+
*SubscriptionsUserApi* | [**subscriptionPaymentSheet**](docs/SubscriptionsUserApi.md#subscriptionpaymentsheet) | **POST** /api/subscriptions/payment-sheet |
|
|
245
246
|
*SumUpApi* | [**sumupOauthCallback**](docs/SumUpApi.md#sumupoauthcallback) | **GET** /api/sumup/oauth/callback |
|
|
246
247
|
*SumUpManagerApi* | [**createSumupReader**](docs/SumUpManagerApi.md#createsumupreader) | **POST** /api/clubs/{clubId}/sumup/readers |
|
|
247
248
|
*SumUpManagerApi* | [**deleteSumupReader**](docs/SumUpManagerApi.md#deletesumupreader) | **DELETE** /api/clubs/{clubId}/sumup/readers/{readerId} |
|
|
@@ -681,6 +682,8 @@ Class | Method | HTTP request | Description
|
|
|
681
682
|
- [SubscriberPrice](docs/SubscriberPrice.md)
|
|
682
683
|
- [SubscriptionInfo](docs/SubscriptionInfo.md)
|
|
683
684
|
- [SubscriptionMutationResponse](docs/SubscriptionMutationResponse.md)
|
|
685
|
+
- [SubscriptionPaymentSheetRequest](docs/SubscriptionPaymentSheetRequest.md)
|
|
686
|
+
- [SubscriptionPaymentSheetResponse](docs/SubscriptionPaymentSheetResponse.md)
|
|
684
687
|
- [SubscriptionPlanDiscountResponse](docs/SubscriptionPlanDiscountResponse.md)
|
|
685
688
|
- [SubscriptionPlanDiscountUpdateRequest](docs/SubscriptionPlanDiscountUpdateRequest.md)
|
|
686
689
|
- [SubscriptionPlanDiscountUpdateRequestValidFrom](docs/SubscriptionPlanDiscountUpdateRequestValidFrom.md)
|
package/api.ts
CHANGED
|
@@ -2880,6 +2880,12 @@ export interface ClubPageResponse {
|
|
|
2880
2880
|
* @memberof ClubPageResponse
|
|
2881
2881
|
*/
|
|
2882
2882
|
'paymentFeature'?: boolean;
|
|
2883
|
+
/**
|
|
2884
|
+
* Indique si le club propose au moins un abonnement actif
|
|
2885
|
+
* @type {boolean}
|
|
2886
|
+
* @memberof ClubPageResponse
|
|
2887
|
+
*/
|
|
2888
|
+
'hasActiveSubscriptions': boolean;
|
|
2883
2889
|
/**
|
|
2884
2890
|
* Indique si la fonctionnalité \"no show\" est activée
|
|
2885
2891
|
* @type {boolean}
|
|
@@ -11051,6 +11057,24 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
11051
11057
|
* @memberof PublicSubscriptionPlanResponse
|
|
11052
11058
|
*/
|
|
11053
11059
|
'discount'?: SubscriptionPlanDiscountResponse;
|
|
11060
|
+
/**
|
|
11061
|
+
*
|
|
11062
|
+
* @type {boolean}
|
|
11063
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
11064
|
+
*/
|
|
11065
|
+
'isUserSubscribed'?: boolean;
|
|
11066
|
+
/**
|
|
11067
|
+
*
|
|
11068
|
+
* @type {string}
|
|
11069
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
11070
|
+
*/
|
|
11071
|
+
'userSubscriptionId'?: string | null;
|
|
11072
|
+
/**
|
|
11073
|
+
*
|
|
11074
|
+
* @type {string}
|
|
11075
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
11076
|
+
*/
|
|
11077
|
+
'userSubscriptionStatus'?: string | null;
|
|
11054
11078
|
}
|
|
11055
11079
|
|
|
11056
11080
|
|
|
@@ -13309,6 +13333,80 @@ export interface SubscriptionMutationResponse {
|
|
|
13309
13333
|
*/
|
|
13310
13334
|
'subscription': { [key: string]: any; };
|
|
13311
13335
|
}
|
|
13336
|
+
/**
|
|
13337
|
+
*
|
|
13338
|
+
* @export
|
|
13339
|
+
* @interface SubscriptionPaymentSheetRequest
|
|
13340
|
+
*/
|
|
13341
|
+
export interface SubscriptionPaymentSheetRequest {
|
|
13342
|
+
/**
|
|
13343
|
+
*
|
|
13344
|
+
* @type {boolean}
|
|
13345
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13346
|
+
*/
|
|
13347
|
+
'useEphemeralKey'?: boolean;
|
|
13348
|
+
/**
|
|
13349
|
+
*
|
|
13350
|
+
* @type {string}
|
|
13351
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13352
|
+
*/
|
|
13353
|
+
'priceId': string;
|
|
13354
|
+
/**
|
|
13355
|
+
*
|
|
13356
|
+
* @type {string}
|
|
13357
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13358
|
+
*/
|
|
13359
|
+
'clubId': string;
|
|
13360
|
+
}
|
|
13361
|
+
/**
|
|
13362
|
+
*
|
|
13363
|
+
* @export
|
|
13364
|
+
* @interface SubscriptionPaymentSheetResponse
|
|
13365
|
+
*/
|
|
13366
|
+
export interface SubscriptionPaymentSheetResponse {
|
|
13367
|
+
/**
|
|
13368
|
+
*
|
|
13369
|
+
* @type {string}
|
|
13370
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13371
|
+
*/
|
|
13372
|
+
'customerSessionClientSecret'?: string;
|
|
13373
|
+
/**
|
|
13374
|
+
*
|
|
13375
|
+
* @type {string}
|
|
13376
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13377
|
+
*/
|
|
13378
|
+
'customerEphemeralKeySecret'?: string;
|
|
13379
|
+
/**
|
|
13380
|
+
*
|
|
13381
|
+
* @type {string}
|
|
13382
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13383
|
+
*/
|
|
13384
|
+
'subscriptionId': string;
|
|
13385
|
+
/**
|
|
13386
|
+
*
|
|
13387
|
+
* @type {string}
|
|
13388
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13389
|
+
*/
|
|
13390
|
+
'stripeAccountId': string;
|
|
13391
|
+
/**
|
|
13392
|
+
*
|
|
13393
|
+
* @type {string}
|
|
13394
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13395
|
+
*/
|
|
13396
|
+
'publishableKey': string;
|
|
13397
|
+
/**
|
|
13398
|
+
*
|
|
13399
|
+
* @type {string}
|
|
13400
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13401
|
+
*/
|
|
13402
|
+
'customerId': string;
|
|
13403
|
+
/**
|
|
13404
|
+
*
|
|
13405
|
+
* @type {string}
|
|
13406
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13407
|
+
*/
|
|
13408
|
+
'paymentIntentClientSecret': string;
|
|
13409
|
+
}
|
|
13312
13410
|
/**
|
|
13313
13411
|
*
|
|
13314
13412
|
* @export
|
|
@@ -33322,6 +33420,10 @@ export const SubscriptionsPublicApiAxiosParamCreator = function (configuration?:
|
|
|
33322
33420
|
const localVarHeaderParameter = {} as any;
|
|
33323
33421
|
const localVarQueryParameter = {} as any;
|
|
33324
33422
|
|
|
33423
|
+
// authentication bearerAuth required
|
|
33424
|
+
// http bearer authentication required
|
|
33425
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33426
|
+
|
|
33325
33427
|
|
|
33326
33428
|
|
|
33327
33429
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -33753,6 +33855,45 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration?: C
|
|
|
33753
33855
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33754
33856
|
localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration)
|
|
33755
33857
|
|
|
33858
|
+
return {
|
|
33859
|
+
url: toPathString(localVarUrlObj),
|
|
33860
|
+
options: localVarRequestOptions,
|
|
33861
|
+
};
|
|
33862
|
+
},
|
|
33863
|
+
/**
|
|
33864
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
33865
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
33866
|
+
* @param {*} [options] Override http request option.
|
|
33867
|
+
* @throws {RequiredError}
|
|
33868
|
+
*/
|
|
33869
|
+
subscriptionPaymentSheet: async (subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33870
|
+
// verify required parameter 'subscriptionPaymentSheetRequest' is not null or undefined
|
|
33871
|
+
assertParamExists('subscriptionPaymentSheet', 'subscriptionPaymentSheetRequest', subscriptionPaymentSheetRequest)
|
|
33872
|
+
const localVarPath = `/api/subscriptions/payment-sheet`;
|
|
33873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33874
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33875
|
+
let baseOptions;
|
|
33876
|
+
if (configuration) {
|
|
33877
|
+
baseOptions = configuration.baseOptions;
|
|
33878
|
+
}
|
|
33879
|
+
|
|
33880
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33881
|
+
const localVarHeaderParameter = {} as any;
|
|
33882
|
+
const localVarQueryParameter = {} as any;
|
|
33883
|
+
|
|
33884
|
+
// authentication bearerAuth required
|
|
33885
|
+
// http bearer authentication required
|
|
33886
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33887
|
+
|
|
33888
|
+
|
|
33889
|
+
|
|
33890
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33891
|
+
|
|
33892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33894
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33895
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionPaymentSheetRequest, localVarRequestOptions, configuration)
|
|
33896
|
+
|
|
33756
33897
|
return {
|
|
33757
33898
|
url: toPathString(localVarUrlObj),
|
|
33758
33899
|
options: localVarRequestOptions,
|
|
@@ -33817,6 +33958,18 @@ export const SubscriptionsUserApiFp = function(configuration?: Configuration) {
|
|
|
33817
33958
|
const localVarOperationServerBasePath = operationServerMap['SubscriptionsUserApi.subscribe']?.[localVarOperationServerIndex]?.url;
|
|
33818
33959
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33819
33960
|
},
|
|
33961
|
+
/**
|
|
33962
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
33963
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
33964
|
+
* @param {*} [options] Override http request option.
|
|
33965
|
+
* @throws {RequiredError}
|
|
33966
|
+
*/
|
|
33967
|
+
async subscriptionPaymentSheet(subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>> {
|
|
33968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options);
|
|
33969
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33970
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsUserApi.subscriptionPaymentSheet']?.[localVarOperationServerIndex]?.url;
|
|
33971
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33972
|
+
},
|
|
33820
33973
|
}
|
|
33821
33974
|
};
|
|
33822
33975
|
|
|
@@ -33862,6 +34015,15 @@ export const SubscriptionsUserApiFactory = function (configuration?: Configurati
|
|
|
33862
34015
|
subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionMutationResponse> {
|
|
33863
34016
|
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
33864
34017
|
},
|
|
34018
|
+
/**
|
|
34019
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
34020
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
34021
|
+
* @param {*} [options] Override http request option.
|
|
34022
|
+
* @throws {RequiredError}
|
|
34023
|
+
*/
|
|
34024
|
+
subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse> {
|
|
34025
|
+
return localVarFp.subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(axios, basePath));
|
|
34026
|
+
},
|
|
33865
34027
|
};
|
|
33866
34028
|
};
|
|
33867
34029
|
|
|
@@ -33921,6 +34083,20 @@ export interface SubscriptionsUserApiSubscribeRequest {
|
|
|
33921
34083
|
readonly subscribeRequestBody: SubscribeRequestBody
|
|
33922
34084
|
}
|
|
33923
34085
|
|
|
34086
|
+
/**
|
|
34087
|
+
* Request parameters for subscriptionPaymentSheet operation in SubscriptionsUserApi.
|
|
34088
|
+
* @export
|
|
34089
|
+
* @interface SubscriptionsUserApiSubscriptionPaymentSheetRequest
|
|
34090
|
+
*/
|
|
34091
|
+
export interface SubscriptionsUserApiSubscriptionPaymentSheetRequest {
|
|
34092
|
+
/**
|
|
34093
|
+
*
|
|
34094
|
+
* @type {SubscriptionPaymentSheetRequest}
|
|
34095
|
+
* @memberof SubscriptionsUserApiSubscriptionPaymentSheet
|
|
34096
|
+
*/
|
|
34097
|
+
readonly subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest
|
|
34098
|
+
}
|
|
34099
|
+
|
|
33924
34100
|
/**
|
|
33925
34101
|
* SubscriptionsUserApi - object-oriented interface
|
|
33926
34102
|
* @export
|
|
@@ -33970,6 +34146,17 @@ export class SubscriptionsUserApi extends BaseAPI {
|
|
|
33970
34146
|
public subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig) {
|
|
33971
34147
|
return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
33972
34148
|
}
|
|
34149
|
+
|
|
34150
|
+
/**
|
|
34151
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
34152
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
34153
|
+
* @param {*} [options] Override http request option.
|
|
34154
|
+
* @throws {RequiredError}
|
|
34155
|
+
* @memberof SubscriptionsUserApi
|
|
34156
|
+
*/
|
|
34157
|
+
public subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig) {
|
|
34158
|
+
return SubscriptionsUserApiFp(this.configuration).subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34159
|
+
}
|
|
33973
34160
|
}
|
|
33974
34161
|
|
|
33975
34162
|
|
package/dist/api.d.ts
CHANGED
|
@@ -2829,6 +2829,12 @@ export interface ClubPageResponse {
|
|
|
2829
2829
|
* @memberof ClubPageResponse
|
|
2830
2830
|
*/
|
|
2831
2831
|
'paymentFeature'?: boolean;
|
|
2832
|
+
/**
|
|
2833
|
+
* Indique si le club propose au moins un abonnement actif
|
|
2834
|
+
* @type {boolean}
|
|
2835
|
+
* @memberof ClubPageResponse
|
|
2836
|
+
*/
|
|
2837
|
+
'hasActiveSubscriptions': boolean;
|
|
2832
2838
|
/**
|
|
2833
2839
|
* Indique si la fonctionnalité \"no show\" est activée
|
|
2834
2840
|
* @type {boolean}
|
|
@@ -10874,6 +10880,24 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
10874
10880
|
* @memberof PublicSubscriptionPlanResponse
|
|
10875
10881
|
*/
|
|
10876
10882
|
'discount'?: SubscriptionPlanDiscountResponse;
|
|
10883
|
+
/**
|
|
10884
|
+
*
|
|
10885
|
+
* @type {boolean}
|
|
10886
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
10887
|
+
*/
|
|
10888
|
+
'isUserSubscribed'?: boolean;
|
|
10889
|
+
/**
|
|
10890
|
+
*
|
|
10891
|
+
* @type {string}
|
|
10892
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
10893
|
+
*/
|
|
10894
|
+
'userSubscriptionId'?: string | null;
|
|
10895
|
+
/**
|
|
10896
|
+
*
|
|
10897
|
+
* @type {string}
|
|
10898
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
10899
|
+
*/
|
|
10900
|
+
'userSubscriptionStatus'?: string | null;
|
|
10877
10901
|
}
|
|
10878
10902
|
/**
|
|
10879
10903
|
*
|
|
@@ -13099,6 +13123,80 @@ export interface SubscriptionMutationResponse {
|
|
|
13099
13123
|
[key: string]: any;
|
|
13100
13124
|
};
|
|
13101
13125
|
}
|
|
13126
|
+
/**
|
|
13127
|
+
*
|
|
13128
|
+
* @export
|
|
13129
|
+
* @interface SubscriptionPaymentSheetRequest
|
|
13130
|
+
*/
|
|
13131
|
+
export interface SubscriptionPaymentSheetRequest {
|
|
13132
|
+
/**
|
|
13133
|
+
*
|
|
13134
|
+
* @type {boolean}
|
|
13135
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13136
|
+
*/
|
|
13137
|
+
'useEphemeralKey'?: boolean;
|
|
13138
|
+
/**
|
|
13139
|
+
*
|
|
13140
|
+
* @type {string}
|
|
13141
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13142
|
+
*/
|
|
13143
|
+
'priceId': string;
|
|
13144
|
+
/**
|
|
13145
|
+
*
|
|
13146
|
+
* @type {string}
|
|
13147
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13148
|
+
*/
|
|
13149
|
+
'clubId': string;
|
|
13150
|
+
}
|
|
13151
|
+
/**
|
|
13152
|
+
*
|
|
13153
|
+
* @export
|
|
13154
|
+
* @interface SubscriptionPaymentSheetResponse
|
|
13155
|
+
*/
|
|
13156
|
+
export interface SubscriptionPaymentSheetResponse {
|
|
13157
|
+
/**
|
|
13158
|
+
*
|
|
13159
|
+
* @type {string}
|
|
13160
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13161
|
+
*/
|
|
13162
|
+
'customerSessionClientSecret'?: string;
|
|
13163
|
+
/**
|
|
13164
|
+
*
|
|
13165
|
+
* @type {string}
|
|
13166
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13167
|
+
*/
|
|
13168
|
+
'customerEphemeralKeySecret'?: string;
|
|
13169
|
+
/**
|
|
13170
|
+
*
|
|
13171
|
+
* @type {string}
|
|
13172
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13173
|
+
*/
|
|
13174
|
+
'subscriptionId': string;
|
|
13175
|
+
/**
|
|
13176
|
+
*
|
|
13177
|
+
* @type {string}
|
|
13178
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13179
|
+
*/
|
|
13180
|
+
'stripeAccountId': string;
|
|
13181
|
+
/**
|
|
13182
|
+
*
|
|
13183
|
+
* @type {string}
|
|
13184
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13185
|
+
*/
|
|
13186
|
+
'publishableKey': string;
|
|
13187
|
+
/**
|
|
13188
|
+
*
|
|
13189
|
+
* @type {string}
|
|
13190
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13191
|
+
*/
|
|
13192
|
+
'customerId': string;
|
|
13193
|
+
/**
|
|
13194
|
+
*
|
|
13195
|
+
* @type {string}
|
|
13196
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13197
|
+
*/
|
|
13198
|
+
'paymentIntentClientSecret': string;
|
|
13199
|
+
}
|
|
13102
13200
|
/**
|
|
13103
13201
|
*
|
|
13104
13202
|
* @export
|
|
@@ -25078,6 +25176,13 @@ export declare const SubscriptionsUserApiAxiosParamCreator: (configuration?: Con
|
|
|
25078
25176
|
* @throws {RequiredError}
|
|
25079
25177
|
*/
|
|
25080
25178
|
subscribe: (subscribeRequestBody: SubscribeRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25179
|
+
/**
|
|
25180
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25181
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
25182
|
+
* @param {*} [options] Override http request option.
|
|
25183
|
+
* @throws {RequiredError}
|
|
25184
|
+
*/
|
|
25185
|
+
subscriptionPaymentSheet: (subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25081
25186
|
};
|
|
25082
25187
|
/**
|
|
25083
25188
|
* SubscriptionsUserApi - functional programming interface
|
|
@@ -25113,6 +25218,13 @@ export declare const SubscriptionsUserApiFp: (configuration?: Configuration) =>
|
|
|
25113
25218
|
* @throws {RequiredError}
|
|
25114
25219
|
*/
|
|
25115
25220
|
subscribe(subscribeRequestBody: SubscribeRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionMutationResponse>>;
|
|
25221
|
+
/**
|
|
25222
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25223
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
25224
|
+
* @param {*} [options] Override http request option.
|
|
25225
|
+
* @throws {RequiredError}
|
|
25226
|
+
*/
|
|
25227
|
+
subscriptionPaymentSheet(subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>>;
|
|
25116
25228
|
};
|
|
25117
25229
|
/**
|
|
25118
25230
|
* SubscriptionsUserApi - factory interface
|
|
@@ -25146,6 +25258,13 @@ export declare const SubscriptionsUserApiFactory: (configuration?: Configuration
|
|
|
25146
25258
|
* @throws {RequiredError}
|
|
25147
25259
|
*/
|
|
25148
25260
|
subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionMutationResponse>;
|
|
25261
|
+
/**
|
|
25262
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25263
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
25264
|
+
* @param {*} [options] Override http request option.
|
|
25265
|
+
* @throws {RequiredError}
|
|
25266
|
+
*/
|
|
25267
|
+
subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse>;
|
|
25149
25268
|
};
|
|
25150
25269
|
/**
|
|
25151
25270
|
* Request parameters for cancel operation in SubscriptionsUserApi.
|
|
@@ -25198,6 +25317,19 @@ export interface SubscriptionsUserApiSubscribeRequest {
|
|
|
25198
25317
|
*/
|
|
25199
25318
|
readonly subscribeRequestBody: SubscribeRequestBody;
|
|
25200
25319
|
}
|
|
25320
|
+
/**
|
|
25321
|
+
* Request parameters for subscriptionPaymentSheet operation in SubscriptionsUserApi.
|
|
25322
|
+
* @export
|
|
25323
|
+
* @interface SubscriptionsUserApiSubscriptionPaymentSheetRequest
|
|
25324
|
+
*/
|
|
25325
|
+
export interface SubscriptionsUserApiSubscriptionPaymentSheetRequest {
|
|
25326
|
+
/**
|
|
25327
|
+
*
|
|
25328
|
+
* @type {SubscriptionPaymentSheetRequest}
|
|
25329
|
+
* @memberof SubscriptionsUserApiSubscriptionPaymentSheet
|
|
25330
|
+
*/
|
|
25331
|
+
readonly subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest;
|
|
25332
|
+
}
|
|
25201
25333
|
/**
|
|
25202
25334
|
* SubscriptionsUserApi - object-oriented interface
|
|
25203
25335
|
* @export
|
|
@@ -25236,6 +25368,14 @@ export declare class SubscriptionsUserApi extends BaseAPI {
|
|
|
25236
25368
|
* @memberof SubscriptionsUserApi
|
|
25237
25369
|
*/
|
|
25238
25370
|
subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionMutationResponse, any, {}>>;
|
|
25371
|
+
/**
|
|
25372
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25373
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
25374
|
+
* @param {*} [options] Override http request option.
|
|
25375
|
+
* @throws {RequiredError}
|
|
25376
|
+
* @memberof SubscriptionsUserApi
|
|
25377
|
+
*/
|
|
25378
|
+
subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionPaymentSheetResponse, any, {}>>;
|
|
25239
25379
|
}
|
|
25240
25380
|
/**
|
|
25241
25381
|
* SumUpApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -13791,6 +13791,9 @@ const SubscriptionsPublicApiAxiosParamCreator = function (configuration) {
|
|
|
13791
13791
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13792
13792
|
const localVarHeaderParameter = {};
|
|
13793
13793
|
const localVarQueryParameter = {};
|
|
13794
|
+
// authentication bearerAuth required
|
|
13795
|
+
// http bearer authentication required
|
|
13796
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13794
13797
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13795
13798
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13796
13799
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -14162,6 +14165,38 @@ const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
14162
14165
|
options: localVarRequestOptions,
|
|
14163
14166
|
};
|
|
14164
14167
|
}),
|
|
14168
|
+
/**
|
|
14169
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14170
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
14171
|
+
* @param {*} [options] Override http request option.
|
|
14172
|
+
* @throws {RequiredError}
|
|
14173
|
+
*/
|
|
14174
|
+
subscriptionPaymentSheet: (subscriptionPaymentSheetRequest_1, ...args_1) => __awaiter(this, [subscriptionPaymentSheetRequest_1, ...args_1], void 0, function* (subscriptionPaymentSheetRequest, options = {}) {
|
|
14175
|
+
// verify required parameter 'subscriptionPaymentSheetRequest' is not null or undefined
|
|
14176
|
+
(0, common_1.assertParamExists)('subscriptionPaymentSheet', 'subscriptionPaymentSheetRequest', subscriptionPaymentSheetRequest);
|
|
14177
|
+
const localVarPath = `/api/subscriptions/payment-sheet`;
|
|
14178
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14179
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14180
|
+
let baseOptions;
|
|
14181
|
+
if (configuration) {
|
|
14182
|
+
baseOptions = configuration.baseOptions;
|
|
14183
|
+
}
|
|
14184
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14185
|
+
const localVarHeaderParameter = {};
|
|
14186
|
+
const localVarQueryParameter = {};
|
|
14187
|
+
// authentication bearerAuth required
|
|
14188
|
+
// http bearer authentication required
|
|
14189
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14190
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14191
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14193
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14194
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionPaymentSheetRequest, localVarRequestOptions, configuration);
|
|
14195
|
+
return {
|
|
14196
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14197
|
+
options: localVarRequestOptions,
|
|
14198
|
+
};
|
|
14199
|
+
}),
|
|
14165
14200
|
};
|
|
14166
14201
|
};
|
|
14167
14202
|
exports.SubscriptionsUserApiAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator;
|
|
@@ -14233,6 +14268,21 @@ const SubscriptionsUserApiFp = function (configuration) {
|
|
|
14233
14268
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14234
14269
|
});
|
|
14235
14270
|
},
|
|
14271
|
+
/**
|
|
14272
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14273
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
14274
|
+
* @param {*} [options] Override http request option.
|
|
14275
|
+
* @throws {RequiredError}
|
|
14276
|
+
*/
|
|
14277
|
+
subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options) {
|
|
14278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14279
|
+
var _a, _b, _c;
|
|
14280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options);
|
|
14281
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14282
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsUserApi.subscriptionPaymentSheet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14283
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14284
|
+
});
|
|
14285
|
+
},
|
|
14236
14286
|
};
|
|
14237
14287
|
};
|
|
14238
14288
|
exports.SubscriptionsUserApiFp = SubscriptionsUserApiFp;
|
|
@@ -14278,6 +14328,15 @@ const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
14278
14328
|
subscribe(requestParameters, options) {
|
|
14279
14329
|
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
14280
14330
|
},
|
|
14331
|
+
/**
|
|
14332
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14333
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
14334
|
+
* @param {*} [options] Override http request option.
|
|
14335
|
+
* @throws {RequiredError}
|
|
14336
|
+
*/
|
|
14337
|
+
subscriptionPaymentSheet(requestParameters, options) {
|
|
14338
|
+
return localVarFp.subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(axios, basePath));
|
|
14339
|
+
},
|
|
14281
14340
|
};
|
|
14282
14341
|
};
|
|
14283
14342
|
exports.SubscriptionsUserApiFactory = SubscriptionsUserApiFactory;
|
|
@@ -14327,6 +14386,16 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
14327
14386
|
subscribe(requestParameters, options) {
|
|
14328
14387
|
return (0, exports.SubscriptionsUserApiFp)(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14329
14388
|
}
|
|
14389
|
+
/**
|
|
14390
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14391
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
14392
|
+
* @param {*} [options] Override http request option.
|
|
14393
|
+
* @throws {RequiredError}
|
|
14394
|
+
* @memberof SubscriptionsUserApi
|
|
14395
|
+
*/
|
|
14396
|
+
subscriptionPaymentSheet(requestParameters, options) {
|
|
14397
|
+
return (0, exports.SubscriptionsUserApiFp)(this.configuration).subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14398
|
+
}
|
|
14330
14399
|
}
|
|
14331
14400
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
14332
14401
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2829,6 +2829,12 @@ export interface ClubPageResponse {
|
|
|
2829
2829
|
* @memberof ClubPageResponse
|
|
2830
2830
|
*/
|
|
2831
2831
|
'paymentFeature'?: boolean;
|
|
2832
|
+
/**
|
|
2833
|
+
* Indique si le club propose au moins un abonnement actif
|
|
2834
|
+
* @type {boolean}
|
|
2835
|
+
* @memberof ClubPageResponse
|
|
2836
|
+
*/
|
|
2837
|
+
'hasActiveSubscriptions': boolean;
|
|
2832
2838
|
/**
|
|
2833
2839
|
* Indique si la fonctionnalité \"no show\" est activée
|
|
2834
2840
|
* @type {boolean}
|
|
@@ -10874,6 +10880,24 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
10874
10880
|
* @memberof PublicSubscriptionPlanResponse
|
|
10875
10881
|
*/
|
|
10876
10882
|
'discount'?: SubscriptionPlanDiscountResponse;
|
|
10883
|
+
/**
|
|
10884
|
+
*
|
|
10885
|
+
* @type {boolean}
|
|
10886
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
10887
|
+
*/
|
|
10888
|
+
'isUserSubscribed'?: boolean;
|
|
10889
|
+
/**
|
|
10890
|
+
*
|
|
10891
|
+
* @type {string}
|
|
10892
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
10893
|
+
*/
|
|
10894
|
+
'userSubscriptionId'?: string | null;
|
|
10895
|
+
/**
|
|
10896
|
+
*
|
|
10897
|
+
* @type {string}
|
|
10898
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
10899
|
+
*/
|
|
10900
|
+
'userSubscriptionStatus'?: string | null;
|
|
10877
10901
|
}
|
|
10878
10902
|
/**
|
|
10879
10903
|
*
|
|
@@ -13099,6 +13123,80 @@ export interface SubscriptionMutationResponse {
|
|
|
13099
13123
|
[key: string]: any;
|
|
13100
13124
|
};
|
|
13101
13125
|
}
|
|
13126
|
+
/**
|
|
13127
|
+
*
|
|
13128
|
+
* @export
|
|
13129
|
+
* @interface SubscriptionPaymentSheetRequest
|
|
13130
|
+
*/
|
|
13131
|
+
export interface SubscriptionPaymentSheetRequest {
|
|
13132
|
+
/**
|
|
13133
|
+
*
|
|
13134
|
+
* @type {boolean}
|
|
13135
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13136
|
+
*/
|
|
13137
|
+
'useEphemeralKey'?: boolean;
|
|
13138
|
+
/**
|
|
13139
|
+
*
|
|
13140
|
+
* @type {string}
|
|
13141
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13142
|
+
*/
|
|
13143
|
+
'priceId': string;
|
|
13144
|
+
/**
|
|
13145
|
+
*
|
|
13146
|
+
* @type {string}
|
|
13147
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13148
|
+
*/
|
|
13149
|
+
'clubId': string;
|
|
13150
|
+
}
|
|
13151
|
+
/**
|
|
13152
|
+
*
|
|
13153
|
+
* @export
|
|
13154
|
+
* @interface SubscriptionPaymentSheetResponse
|
|
13155
|
+
*/
|
|
13156
|
+
export interface SubscriptionPaymentSheetResponse {
|
|
13157
|
+
/**
|
|
13158
|
+
*
|
|
13159
|
+
* @type {string}
|
|
13160
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13161
|
+
*/
|
|
13162
|
+
'customerSessionClientSecret'?: string;
|
|
13163
|
+
/**
|
|
13164
|
+
*
|
|
13165
|
+
* @type {string}
|
|
13166
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13167
|
+
*/
|
|
13168
|
+
'customerEphemeralKeySecret'?: string;
|
|
13169
|
+
/**
|
|
13170
|
+
*
|
|
13171
|
+
* @type {string}
|
|
13172
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13173
|
+
*/
|
|
13174
|
+
'subscriptionId': string;
|
|
13175
|
+
/**
|
|
13176
|
+
*
|
|
13177
|
+
* @type {string}
|
|
13178
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13179
|
+
*/
|
|
13180
|
+
'stripeAccountId': string;
|
|
13181
|
+
/**
|
|
13182
|
+
*
|
|
13183
|
+
* @type {string}
|
|
13184
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13185
|
+
*/
|
|
13186
|
+
'publishableKey': string;
|
|
13187
|
+
/**
|
|
13188
|
+
*
|
|
13189
|
+
* @type {string}
|
|
13190
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13191
|
+
*/
|
|
13192
|
+
'customerId': string;
|
|
13193
|
+
/**
|
|
13194
|
+
*
|
|
13195
|
+
* @type {string}
|
|
13196
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13197
|
+
*/
|
|
13198
|
+
'paymentIntentClientSecret': string;
|
|
13199
|
+
}
|
|
13102
13200
|
/**
|
|
13103
13201
|
*
|
|
13104
13202
|
* @export
|
|
@@ -25078,6 +25176,13 @@ export declare const SubscriptionsUserApiAxiosParamCreator: (configuration?: Con
|
|
|
25078
25176
|
* @throws {RequiredError}
|
|
25079
25177
|
*/
|
|
25080
25178
|
subscribe: (subscribeRequestBody: SubscribeRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25179
|
+
/**
|
|
25180
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25181
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
25182
|
+
* @param {*} [options] Override http request option.
|
|
25183
|
+
* @throws {RequiredError}
|
|
25184
|
+
*/
|
|
25185
|
+
subscriptionPaymentSheet: (subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25081
25186
|
};
|
|
25082
25187
|
/**
|
|
25083
25188
|
* SubscriptionsUserApi - functional programming interface
|
|
@@ -25113,6 +25218,13 @@ export declare const SubscriptionsUserApiFp: (configuration?: Configuration) =>
|
|
|
25113
25218
|
* @throws {RequiredError}
|
|
25114
25219
|
*/
|
|
25115
25220
|
subscribe(subscribeRequestBody: SubscribeRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionMutationResponse>>;
|
|
25221
|
+
/**
|
|
25222
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25223
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
25224
|
+
* @param {*} [options] Override http request option.
|
|
25225
|
+
* @throws {RequiredError}
|
|
25226
|
+
*/
|
|
25227
|
+
subscriptionPaymentSheet(subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>>;
|
|
25116
25228
|
};
|
|
25117
25229
|
/**
|
|
25118
25230
|
* SubscriptionsUserApi - factory interface
|
|
@@ -25146,6 +25258,13 @@ export declare const SubscriptionsUserApiFactory: (configuration?: Configuration
|
|
|
25146
25258
|
* @throws {RequiredError}
|
|
25147
25259
|
*/
|
|
25148
25260
|
subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionMutationResponse>;
|
|
25261
|
+
/**
|
|
25262
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25263
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
25264
|
+
* @param {*} [options] Override http request option.
|
|
25265
|
+
* @throws {RequiredError}
|
|
25266
|
+
*/
|
|
25267
|
+
subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse>;
|
|
25149
25268
|
};
|
|
25150
25269
|
/**
|
|
25151
25270
|
* Request parameters for cancel operation in SubscriptionsUserApi.
|
|
@@ -25198,6 +25317,19 @@ export interface SubscriptionsUserApiSubscribeRequest {
|
|
|
25198
25317
|
*/
|
|
25199
25318
|
readonly subscribeRequestBody: SubscribeRequestBody;
|
|
25200
25319
|
}
|
|
25320
|
+
/**
|
|
25321
|
+
* Request parameters for subscriptionPaymentSheet operation in SubscriptionsUserApi.
|
|
25322
|
+
* @export
|
|
25323
|
+
* @interface SubscriptionsUserApiSubscriptionPaymentSheetRequest
|
|
25324
|
+
*/
|
|
25325
|
+
export interface SubscriptionsUserApiSubscriptionPaymentSheetRequest {
|
|
25326
|
+
/**
|
|
25327
|
+
*
|
|
25328
|
+
* @type {SubscriptionPaymentSheetRequest}
|
|
25329
|
+
* @memberof SubscriptionsUserApiSubscriptionPaymentSheet
|
|
25330
|
+
*/
|
|
25331
|
+
readonly subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest;
|
|
25332
|
+
}
|
|
25201
25333
|
/**
|
|
25202
25334
|
* SubscriptionsUserApi - object-oriented interface
|
|
25203
25335
|
* @export
|
|
@@ -25236,6 +25368,14 @@ export declare class SubscriptionsUserApi extends BaseAPI {
|
|
|
25236
25368
|
* @memberof SubscriptionsUserApi
|
|
25237
25369
|
*/
|
|
25238
25370
|
subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionMutationResponse, any, {}>>;
|
|
25371
|
+
/**
|
|
25372
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
25373
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
25374
|
+
* @param {*} [options] Override http request option.
|
|
25375
|
+
* @throws {RequiredError}
|
|
25376
|
+
* @memberof SubscriptionsUserApi
|
|
25377
|
+
*/
|
|
25378
|
+
subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionPaymentSheetResponse, any, {}>>;
|
|
25239
25379
|
}
|
|
25240
25380
|
/**
|
|
25241
25381
|
* SumUpApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -13668,6 +13668,9 @@ export const SubscriptionsPublicApiAxiosParamCreator = function (configuration)
|
|
|
13668
13668
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13669
13669
|
const localVarHeaderParameter = {};
|
|
13670
13670
|
const localVarQueryParameter = {};
|
|
13671
|
+
// authentication bearerAuth required
|
|
13672
|
+
// http bearer authentication required
|
|
13673
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13671
13674
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13672
13675
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13673
13676
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -14031,6 +14034,38 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
14031
14034
|
options: localVarRequestOptions,
|
|
14032
14035
|
};
|
|
14033
14036
|
}),
|
|
14037
|
+
/**
|
|
14038
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14039
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
14040
|
+
* @param {*} [options] Override http request option.
|
|
14041
|
+
* @throws {RequiredError}
|
|
14042
|
+
*/
|
|
14043
|
+
subscriptionPaymentSheet: (subscriptionPaymentSheetRequest_1, ...args_1) => __awaiter(this, [subscriptionPaymentSheetRequest_1, ...args_1], void 0, function* (subscriptionPaymentSheetRequest, options = {}) {
|
|
14044
|
+
// verify required parameter 'subscriptionPaymentSheetRequest' is not null or undefined
|
|
14045
|
+
assertParamExists('subscriptionPaymentSheet', 'subscriptionPaymentSheetRequest', subscriptionPaymentSheetRequest);
|
|
14046
|
+
const localVarPath = `/api/subscriptions/payment-sheet`;
|
|
14047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14048
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14049
|
+
let baseOptions;
|
|
14050
|
+
if (configuration) {
|
|
14051
|
+
baseOptions = configuration.baseOptions;
|
|
14052
|
+
}
|
|
14053
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14054
|
+
const localVarHeaderParameter = {};
|
|
14055
|
+
const localVarQueryParameter = {};
|
|
14056
|
+
// authentication bearerAuth required
|
|
14057
|
+
// http bearer authentication required
|
|
14058
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14059
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14060
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14061
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14062
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14063
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionPaymentSheetRequest, localVarRequestOptions, configuration);
|
|
14064
|
+
return {
|
|
14065
|
+
url: toPathString(localVarUrlObj),
|
|
14066
|
+
options: localVarRequestOptions,
|
|
14067
|
+
};
|
|
14068
|
+
}),
|
|
14034
14069
|
};
|
|
14035
14070
|
};
|
|
14036
14071
|
/**
|
|
@@ -14101,6 +14136,21 @@ export const SubscriptionsUserApiFp = function (configuration) {
|
|
|
14101
14136
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14102
14137
|
});
|
|
14103
14138
|
},
|
|
14139
|
+
/**
|
|
14140
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14141
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
14142
|
+
* @param {*} [options] Override http request option.
|
|
14143
|
+
* @throws {RequiredError}
|
|
14144
|
+
*/
|
|
14145
|
+
subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options) {
|
|
14146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14147
|
+
var _a, _b, _c;
|
|
14148
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options);
|
|
14149
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14150
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscriptionPaymentSheet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14152
|
+
});
|
|
14153
|
+
},
|
|
14104
14154
|
};
|
|
14105
14155
|
};
|
|
14106
14156
|
/**
|
|
@@ -14145,6 +14195,15 @@ export const SubscriptionsUserApiFactory = function (configuration, basePath, ax
|
|
|
14145
14195
|
subscribe(requestParameters, options) {
|
|
14146
14196
|
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
14147
14197
|
},
|
|
14198
|
+
/**
|
|
14199
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14200
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
14201
|
+
* @param {*} [options] Override http request option.
|
|
14202
|
+
* @throws {RequiredError}
|
|
14203
|
+
*/
|
|
14204
|
+
subscriptionPaymentSheet(requestParameters, options) {
|
|
14205
|
+
return localVarFp.subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(axios, basePath));
|
|
14206
|
+
},
|
|
14148
14207
|
};
|
|
14149
14208
|
};
|
|
14150
14209
|
/**
|
|
@@ -14193,6 +14252,16 @@ export class SubscriptionsUserApi extends BaseAPI {
|
|
|
14193
14252
|
subscribe(requestParameters, options) {
|
|
14194
14253
|
return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14195
14254
|
}
|
|
14255
|
+
/**
|
|
14256
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
14257
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
14258
|
+
* @param {*} [options] Override http request option.
|
|
14259
|
+
* @throws {RequiredError}
|
|
14260
|
+
* @memberof SubscriptionsUserApi
|
|
14261
|
+
*/
|
|
14262
|
+
subscriptionPaymentSheet(requestParameters, options) {
|
|
14263
|
+
return SubscriptionsUserApiFp(this.configuration).subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14264
|
+
}
|
|
14196
14265
|
}
|
|
14197
14266
|
/**
|
|
14198
14267
|
* SumUpApi - axios parameter creator
|
package/docs/ClubPageResponse.md
CHANGED
|
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
|
|
16
16
|
**isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
|
|
17
17
|
**paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
|
|
18
|
+
**hasActiveSubscriptions** | **boolean** | Indique si le club propose au moins un abonnement actif | [default to undefined]
|
|
18
19
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
19
20
|
**clubCustomerStatus** | [**ClubPageResponseClubCustomerStatus**](ClubPageResponseClubCustomerStatus.md) | | [optional] [default to undefined]
|
|
20
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
@@ -49,6 +50,7 @@ const instance: ClubPageResponse = {
|
|
|
49
50
|
location,
|
|
50
51
|
isActive,
|
|
51
52
|
paymentFeature,
|
|
53
|
+
hasActiveSubscriptions,
|
|
52
54
|
isNoShowEnabled,
|
|
53
55
|
clubCustomerStatus,
|
|
54
56
|
sports,
|
|
@@ -13,6 +13,9 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
14
14
|
**description** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
16
|
+
**isUserSubscribed** | **boolean** | | [optional] [default to undefined]
|
|
17
|
+
**userSubscriptionId** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**userSubscriptionStatus** | **string** | | [optional] [default to undefined]
|
|
16
19
|
|
|
17
20
|
## Example
|
|
18
21
|
|
|
@@ -28,6 +31,9 @@ const instance: PublicSubscriptionPlanResponse = {
|
|
|
28
31
|
interval,
|
|
29
32
|
description,
|
|
30
33
|
discount,
|
|
34
|
+
isUserSubscribed,
|
|
35
|
+
userSubscriptionId,
|
|
36
|
+
userSubscriptionStatus,
|
|
31
37
|
};
|
|
32
38
|
```
|
|
33
39
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SubscriptionPaymentSheetRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**useEphemeralKey** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**priceId** | **string** | | [default to undefined]
|
|
10
|
+
**clubId** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SubscriptionPaymentSheetRequest } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SubscriptionPaymentSheetRequest = {
|
|
18
|
+
useEphemeralKey,
|
|
19
|
+
priceId,
|
|
20
|
+
clubId,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# SubscriptionPaymentSheetResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**customerSessionClientSecret** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**customerEphemeralKeySecret** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**subscriptionId** | **string** | | [default to undefined]
|
|
11
|
+
**stripeAccountId** | **string** | | [default to undefined]
|
|
12
|
+
**publishableKey** | **string** | | [default to undefined]
|
|
13
|
+
**customerId** | **string** | | [default to undefined]
|
|
14
|
+
**paymentIntentClientSecret** | **string** | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { SubscriptionPaymentSheetResponse } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: SubscriptionPaymentSheetResponse = {
|
|
22
|
+
customerSessionClientSecret,
|
|
23
|
+
customerEphemeralKeySecret,
|
|
24
|
+
subscriptionId,
|
|
25
|
+
stripeAccountId,
|
|
26
|
+
publishableKey,
|
|
27
|
+
customerId,
|
|
28
|
+
paymentIntentClientSecret,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**mySubscriptions**](#mysubscriptions) | **GET** /api/subscriptions/me | |
|
|
9
9
|
|[**resume**](#resume) | **POST** /api/subscriptions/{clubId}/{subscriptionId}/resume | |
|
|
10
10
|
|[**subscribe**](#subscribe) | **POST** /api/subscriptions/subscribe | |
|
|
11
|
+
|[**subscriptionPaymentSheet**](#subscriptionpaymentsheet) | **POST** /api/subscriptions/payment-sheet | |
|
|
11
12
|
|
|
12
13
|
# **cancel**
|
|
13
14
|
> SubscriptionMutationResponse cancel()
|
|
@@ -220,3 +221,57 @@ const { status, data } = await apiInstance.subscribe(
|
|
|
220
221
|
|
|
221
222
|
[[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)
|
|
222
223
|
|
|
224
|
+
# **subscriptionPaymentSheet**
|
|
225
|
+
> SubscriptionPaymentSheetResponse subscriptionPaymentSheet(subscriptionPaymentSheetRequest)
|
|
226
|
+
|
|
227
|
+
Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
228
|
+
|
|
229
|
+
### Example
|
|
230
|
+
|
|
231
|
+
```typescript
|
|
232
|
+
import {
|
|
233
|
+
SubscriptionsUserApi,
|
|
234
|
+
Configuration,
|
|
235
|
+
SubscriptionPaymentSheetRequest
|
|
236
|
+
} from '@tennac-booking/sdk';
|
|
237
|
+
|
|
238
|
+
const configuration = new Configuration();
|
|
239
|
+
const apiInstance = new SubscriptionsUserApi(configuration);
|
|
240
|
+
|
|
241
|
+
let subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest; //
|
|
242
|
+
|
|
243
|
+
const { status, data } = await apiInstance.subscriptionPaymentSheet(
|
|
244
|
+
subscriptionPaymentSheetRequest
|
|
245
|
+
);
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Parameters
|
|
249
|
+
|
|
250
|
+
|Name | Type | Description | Notes|
|
|
251
|
+
|------------- | ------------- | ------------- | -------------|
|
|
252
|
+
| **subscriptionPaymentSheetRequest** | **SubscriptionPaymentSheetRequest**| | |
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Return type
|
|
256
|
+
|
|
257
|
+
**SubscriptionPaymentSheetResponse**
|
|
258
|
+
|
|
259
|
+
### Authorization
|
|
260
|
+
|
|
261
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
262
|
+
|
|
263
|
+
### HTTP request headers
|
|
264
|
+
|
|
265
|
+
- **Content-Type**: application/json
|
|
266
|
+
- **Accept**: application/json
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
### HTTP response details
|
|
270
|
+
| Status code | Description | Response headers |
|
|
271
|
+
|-------------|-------------|------------------|
|
|
272
|
+
|**200** | Payment sheet ready | - |
|
|
273
|
+
|**400** | Bad Request | - |
|
|
274
|
+
|**401** | Unauthorized | - |
|
|
275
|
+
|
|
276
|
+
[[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)
|
|
277
|
+
|