@tennac-booking/sdk 1.0.242 → 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 +4 -0
- package/README.md +5 -0
- package/api.ts +309 -0
- package/dist/api.d.ts +262 -0
- package/dist/api.js +69 -0
- package/dist/esm/api.d.ts +262 -0
- package/dist/esm/api.js +69 -0
- package/docs/ClubEvent.md +2 -0
- package/docs/ClubPageResponse.md +2 -0
- package/docs/CreateEventRequest.md +2 -0
- package/docs/EventBookingDetailSummary.md +2 -0
- package/docs/EventBookingDetailSummaryPartnersInner.md +26 -0
- package/docs/EventResponse.md +2 -0
- package/docs/PublicSubscriptionPlanResponse.md +6 -0
- package/docs/RecurringDefinitionResponse.md +2 -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/docs/UpdateEventRequest.md +2 -0
- package/docs/UpdateRecurringDefinitionRequest.md +2 -0
- package/docs/UserEventSummary.md +8 -0
- package/docs/UserEventSummarySportsDetailsInner.md +24 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -178,6 +178,7 @@ docs/EstimateOpenBookingJoinRequest.md
|
|
|
178
178
|
docs/EstimateOpenEventBookingJoinPrice200Response.md
|
|
179
179
|
docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md
|
|
180
180
|
docs/EventBookingDetailSummary.md
|
|
181
|
+
docs/EventBookingDetailSummaryPartnersInner.md
|
|
181
182
|
docs/EventBookingDetailSummaryPaymentPerPlayersInner.md
|
|
182
183
|
docs/EventBookingResponse.md
|
|
183
184
|
docs/EventBookingResponsePaymentPerPlayersInner.md
|
|
@@ -391,6 +392,8 @@ docs/SubscribeRequestBody.md
|
|
|
391
392
|
docs/SubscriberPrice.md
|
|
392
393
|
docs/SubscriptionInfo.md
|
|
393
394
|
docs/SubscriptionMutationResponse.md
|
|
395
|
+
docs/SubscriptionPaymentSheetRequest.md
|
|
396
|
+
docs/SubscriptionPaymentSheetResponse.md
|
|
394
397
|
docs/SubscriptionPlanDiscountResponse.md
|
|
395
398
|
docs/SubscriptionPlanDiscountUpdateRequest.md
|
|
396
399
|
docs/SubscriptionPlanDiscountUpdateRequestValidFrom.md
|
|
@@ -454,6 +457,7 @@ docs/UserClubMembershipsResponse.md
|
|
|
454
457
|
docs/UserClubSubscription.md
|
|
455
458
|
docs/UserEventParticipation.md
|
|
456
459
|
docs/UserEventSummary.md
|
|
460
|
+
docs/UserEventSummarySportsDetailsInner.md
|
|
457
461
|
docs/UserEventsResponse.md
|
|
458
462
|
docs/UserInfo.md
|
|
459
463
|
docs/UserLocationSummary.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} |
|
|
@@ -476,6 +477,7 @@ Class | Method | HTTP request | Description
|
|
|
476
477
|
- [EstimateOpenEventBookingJoinPrice200Response](docs/EstimateOpenEventBookingJoinPrice200Response.md)
|
|
477
478
|
- [EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo](docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md)
|
|
478
479
|
- [EventBookingDetailSummary](docs/EventBookingDetailSummary.md)
|
|
480
|
+
- [EventBookingDetailSummaryPartnersInner](docs/EventBookingDetailSummaryPartnersInner.md)
|
|
479
481
|
- [EventBookingDetailSummaryPaymentPerPlayersInner](docs/EventBookingDetailSummaryPaymentPerPlayersInner.md)
|
|
480
482
|
- [EventBookingResponse](docs/EventBookingResponse.md)
|
|
481
483
|
- [EventBookingResponsePaymentPerPlayersInner](docs/EventBookingResponsePaymentPerPlayersInner.md)
|
|
@@ -680,6 +682,8 @@ Class | Method | HTTP request | Description
|
|
|
680
682
|
- [SubscriberPrice](docs/SubscriberPrice.md)
|
|
681
683
|
- [SubscriptionInfo](docs/SubscriptionInfo.md)
|
|
682
684
|
- [SubscriptionMutationResponse](docs/SubscriptionMutationResponse.md)
|
|
685
|
+
- [SubscriptionPaymentSheetRequest](docs/SubscriptionPaymentSheetRequest.md)
|
|
686
|
+
- [SubscriptionPaymentSheetResponse](docs/SubscriptionPaymentSheetResponse.md)
|
|
683
687
|
- [SubscriptionPlanDiscountResponse](docs/SubscriptionPlanDiscountResponse.md)
|
|
684
688
|
- [SubscriptionPlanDiscountUpdateRequest](docs/SubscriptionPlanDiscountUpdateRequest.md)
|
|
685
689
|
- [SubscriptionPlanDiscountUpdateRequestValidFrom](docs/SubscriptionPlanDiscountUpdateRequestValidFrom.md)
|
|
@@ -736,6 +740,7 @@ Class | Method | HTTP request | Description
|
|
|
736
740
|
- [UserClubSubscription](docs/UserClubSubscription.md)
|
|
737
741
|
- [UserEventParticipation](docs/UserEventParticipation.md)
|
|
738
742
|
- [UserEventSummary](docs/UserEventSummary.md)
|
|
743
|
+
- [UserEventSummarySportsDetailsInner](docs/UserEventSummarySportsDetailsInner.md)
|
|
739
744
|
- [UserEventsResponse](docs/UserEventsResponse.md)
|
|
740
745
|
- [UserInfo](docs/UserInfo.md)
|
|
741
746
|
- [UserLocationSummary](docs/UserLocationSummary.md)
|
package/api.ts
CHANGED
|
@@ -2360,6 +2360,12 @@ export interface ClubEvent {
|
|
|
2360
2360
|
* @memberof ClubEvent
|
|
2361
2361
|
*/
|
|
2362
2362
|
'description'?: string;
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @type {string}
|
|
2366
|
+
* @memberof ClubEvent
|
|
2367
|
+
*/
|
|
2368
|
+
'category'?: string;
|
|
2363
2369
|
/**
|
|
2364
2370
|
*
|
|
2365
2371
|
* @type {string}
|
|
@@ -2874,6 +2880,12 @@ export interface ClubPageResponse {
|
|
|
2874
2880
|
* @memberof ClubPageResponse
|
|
2875
2881
|
*/
|
|
2876
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;
|
|
2877
2889
|
/**
|
|
2878
2890
|
* Indique si la fonctionnalité \"no show\" est activée
|
|
2879
2891
|
* @type {boolean}
|
|
@@ -4863,6 +4875,12 @@ export interface CreateEventRequest {
|
|
|
4863
4875
|
* @memberof CreateEventRequest
|
|
4864
4876
|
*/
|
|
4865
4877
|
'title': string;
|
|
4878
|
+
/**
|
|
4879
|
+
*
|
|
4880
|
+
* @type {string}
|
|
4881
|
+
* @memberof CreateEventRequest
|
|
4882
|
+
*/
|
|
4883
|
+
'category'?: string;
|
|
4866
4884
|
/**
|
|
4867
4885
|
*
|
|
4868
4886
|
* @type {string}
|
|
@@ -5875,6 +5893,12 @@ export interface EventBookingDetailSummary {
|
|
|
5875
5893
|
* @memberof EventBookingDetailSummary
|
|
5876
5894
|
*/
|
|
5877
5895
|
'players': Array<string>;
|
|
5896
|
+
/**
|
|
5897
|
+
*
|
|
5898
|
+
* @type {Array<EventBookingDetailSummaryPartnersInner>}
|
|
5899
|
+
* @memberof EventBookingDetailSummary
|
|
5900
|
+
*/
|
|
5901
|
+
'partners'?: Array<EventBookingDetailSummaryPartnersInner>;
|
|
5878
5902
|
/**
|
|
5879
5903
|
* Détails des paiements par joueur pour cette réservation d\'événement. Remplace l\'ancien champ `invoices`.
|
|
5880
5904
|
* @type {Array<EventBookingDetailSummaryPaymentPerPlayersInner>}
|
|
@@ -5939,6 +5963,37 @@ export const EventBookingDetailSummaryUserParticipationStatusEnum = {
|
|
|
5939
5963
|
|
|
5940
5964
|
export type EventBookingDetailSummaryUserParticipationStatusEnum = typeof EventBookingDetailSummaryUserParticipationStatusEnum[keyof typeof EventBookingDetailSummaryUserParticipationStatusEnum];
|
|
5941
5965
|
|
|
5966
|
+
/**
|
|
5967
|
+
*
|
|
5968
|
+
* @export
|
|
5969
|
+
* @interface EventBookingDetailSummaryPartnersInner
|
|
5970
|
+
*/
|
|
5971
|
+
export interface EventBookingDetailSummaryPartnersInner {
|
|
5972
|
+
/**
|
|
5973
|
+
*
|
|
5974
|
+
* @type {string}
|
|
5975
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5976
|
+
*/
|
|
5977
|
+
'profilePicture'?: string | null;
|
|
5978
|
+
/**
|
|
5979
|
+
*
|
|
5980
|
+
* @type {string}
|
|
5981
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5982
|
+
*/
|
|
5983
|
+
'lastName'?: string | null;
|
|
5984
|
+
/**
|
|
5985
|
+
*
|
|
5986
|
+
* @type {string}
|
|
5987
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5988
|
+
*/
|
|
5989
|
+
'firstName'?: string | null;
|
|
5990
|
+
/**
|
|
5991
|
+
*
|
|
5992
|
+
* @type {string}
|
|
5993
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5994
|
+
*/
|
|
5995
|
+
'id': string;
|
|
5996
|
+
}
|
|
5942
5997
|
/**
|
|
5943
5998
|
*
|
|
5944
5999
|
* @export
|
|
@@ -6280,6 +6335,12 @@ export interface EventResponse {
|
|
|
6280
6335
|
* @memberof EventResponse
|
|
6281
6336
|
*/
|
|
6282
6337
|
'title': string;
|
|
6338
|
+
/**
|
|
6339
|
+
*
|
|
6340
|
+
* @type {string}
|
|
6341
|
+
* @memberof EventResponse
|
|
6342
|
+
*/
|
|
6343
|
+
'category'?: string;
|
|
6283
6344
|
/**
|
|
6284
6345
|
*
|
|
6285
6346
|
* @type {string}
|
|
@@ -10996,6 +11057,24 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
10996
11057
|
* @memberof PublicSubscriptionPlanResponse
|
|
10997
11058
|
*/
|
|
10998
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;
|
|
10999
11078
|
}
|
|
11000
11079
|
|
|
11001
11080
|
|
|
@@ -11459,6 +11538,12 @@ export interface RecurringDefinitionResponse {
|
|
|
11459
11538
|
* @memberof RecurringDefinitionResponse
|
|
11460
11539
|
*/
|
|
11461
11540
|
'title': string;
|
|
11541
|
+
/**
|
|
11542
|
+
*
|
|
11543
|
+
* @type {string}
|
|
11544
|
+
* @memberof RecurringDefinitionResponse
|
|
11545
|
+
*/
|
|
11546
|
+
'category'?: string;
|
|
11462
11547
|
/**
|
|
11463
11548
|
*
|
|
11464
11549
|
* @type {string}
|
|
@@ -13248,6 +13333,80 @@ export interface SubscriptionMutationResponse {
|
|
|
13248
13333
|
*/
|
|
13249
13334
|
'subscription': { [key: string]: any; };
|
|
13250
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
|
+
}
|
|
13251
13410
|
/**
|
|
13252
13411
|
*
|
|
13253
13412
|
* @export
|
|
@@ -14396,6 +14555,12 @@ export interface UpdateEventRequest {
|
|
|
14396
14555
|
* @memberof UpdateEventRequest
|
|
14397
14556
|
*/
|
|
14398
14557
|
'title'?: string;
|
|
14558
|
+
/**
|
|
14559
|
+
*
|
|
14560
|
+
* @type {string}
|
|
14561
|
+
* @memberof UpdateEventRequest
|
|
14562
|
+
*/
|
|
14563
|
+
'category'?: string;
|
|
14399
14564
|
/**
|
|
14400
14565
|
*
|
|
14401
14566
|
* @type {string}
|
|
@@ -14634,6 +14799,12 @@ export interface UpdateRecurringDefinitionRequest {
|
|
|
14634
14799
|
* @memberof UpdateRecurringDefinitionRequest
|
|
14635
14800
|
*/
|
|
14636
14801
|
'title'?: string;
|
|
14802
|
+
/**
|
|
14803
|
+
*
|
|
14804
|
+
* @type {string}
|
|
14805
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
14806
|
+
*/
|
|
14807
|
+
'category'?: string;
|
|
14637
14808
|
/**
|
|
14638
14809
|
*
|
|
14639
14810
|
* @type {string}
|
|
@@ -15301,12 +15472,30 @@ export interface UserEventSummary {
|
|
|
15301
15472
|
* @memberof UserEventSummary
|
|
15302
15473
|
*/
|
|
15303
15474
|
'clubId': string;
|
|
15475
|
+
/**
|
|
15476
|
+
*
|
|
15477
|
+
* @type {string}
|
|
15478
|
+
* @memberof UserEventSummary
|
|
15479
|
+
*/
|
|
15480
|
+
'clubName'?: string | null;
|
|
15481
|
+
/**
|
|
15482
|
+
*
|
|
15483
|
+
* @type {string}
|
|
15484
|
+
* @memberof UserEventSummary
|
|
15485
|
+
*/
|
|
15486
|
+
'clubLogo'?: string | null;
|
|
15304
15487
|
/**
|
|
15305
15488
|
*
|
|
15306
15489
|
* @type {string}
|
|
15307
15490
|
* @memberof UserEventSummary
|
|
15308
15491
|
*/
|
|
15309
15492
|
'title': string;
|
|
15493
|
+
/**
|
|
15494
|
+
*
|
|
15495
|
+
* @type {string}
|
|
15496
|
+
* @memberof UserEventSummary
|
|
15497
|
+
*/
|
|
15498
|
+
'category'?: string | null;
|
|
15310
15499
|
/**
|
|
15311
15500
|
*
|
|
15312
15501
|
* @type {string}
|
|
@@ -15361,6 +15550,12 @@ export interface UserEventSummary {
|
|
|
15361
15550
|
* @memberof UserEventSummary
|
|
15362
15551
|
*/
|
|
15363
15552
|
'sports'?: Array<string>;
|
|
15553
|
+
/**
|
|
15554
|
+
*
|
|
15555
|
+
* @type {Array<UserEventSummarySportsDetailsInner>}
|
|
15556
|
+
* @memberof UserEventSummary
|
|
15557
|
+
*/
|
|
15558
|
+
'sportsDetails'?: Array<UserEventSummarySportsDetailsInner>;
|
|
15364
15559
|
/**
|
|
15365
15560
|
*
|
|
15366
15561
|
* @type {Array<string>}
|
|
@@ -15370,6 +15565,31 @@ export interface UserEventSummary {
|
|
|
15370
15565
|
}
|
|
15371
15566
|
|
|
15372
15567
|
|
|
15568
|
+
/**
|
|
15569
|
+
*
|
|
15570
|
+
* @export
|
|
15571
|
+
* @interface UserEventSummarySportsDetailsInner
|
|
15572
|
+
*/
|
|
15573
|
+
export interface UserEventSummarySportsDetailsInner {
|
|
15574
|
+
/**
|
|
15575
|
+
*
|
|
15576
|
+
* @type {string}
|
|
15577
|
+
* @memberof UserEventSummarySportsDetailsInner
|
|
15578
|
+
*/
|
|
15579
|
+
'name'?: string | null;
|
|
15580
|
+
/**
|
|
15581
|
+
*
|
|
15582
|
+
* @type {string}
|
|
15583
|
+
* @memberof UserEventSummarySportsDetailsInner
|
|
15584
|
+
*/
|
|
15585
|
+
'key'?: string | null;
|
|
15586
|
+
/**
|
|
15587
|
+
*
|
|
15588
|
+
* @type {string}
|
|
15589
|
+
* @memberof UserEventSummarySportsDetailsInner
|
|
15590
|
+
*/
|
|
15591
|
+
'id': string;
|
|
15592
|
+
}
|
|
15373
15593
|
/**
|
|
15374
15594
|
*
|
|
15375
15595
|
* @export
|
|
@@ -33200,6 +33420,10 @@ export const SubscriptionsPublicApiAxiosParamCreator = function (configuration?:
|
|
|
33200
33420
|
const localVarHeaderParameter = {} as any;
|
|
33201
33421
|
const localVarQueryParameter = {} as any;
|
|
33202
33422
|
|
|
33423
|
+
// authentication bearerAuth required
|
|
33424
|
+
// http bearer authentication required
|
|
33425
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33426
|
+
|
|
33203
33427
|
|
|
33204
33428
|
|
|
33205
33429
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -33631,6 +33855,45 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration?: C
|
|
|
33631
33855
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33632
33856
|
localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration)
|
|
33633
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
|
+
|
|
33634
33897
|
return {
|
|
33635
33898
|
url: toPathString(localVarUrlObj),
|
|
33636
33899
|
options: localVarRequestOptions,
|
|
@@ -33695,6 +33958,18 @@ export const SubscriptionsUserApiFp = function(configuration?: Configuration) {
|
|
|
33695
33958
|
const localVarOperationServerBasePath = operationServerMap['SubscriptionsUserApi.subscribe']?.[localVarOperationServerIndex]?.url;
|
|
33696
33959
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33697
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
|
+
},
|
|
33698
33973
|
}
|
|
33699
33974
|
};
|
|
33700
33975
|
|
|
@@ -33740,6 +34015,15 @@ export const SubscriptionsUserApiFactory = function (configuration?: Configurati
|
|
|
33740
34015
|
subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionMutationResponse> {
|
|
33741
34016
|
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
33742
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
|
+
},
|
|
33743
34027
|
};
|
|
33744
34028
|
};
|
|
33745
34029
|
|
|
@@ -33799,6 +34083,20 @@ export interface SubscriptionsUserApiSubscribeRequest {
|
|
|
33799
34083
|
readonly subscribeRequestBody: SubscribeRequestBody
|
|
33800
34084
|
}
|
|
33801
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
|
+
|
|
33802
34100
|
/**
|
|
33803
34101
|
* SubscriptionsUserApi - object-oriented interface
|
|
33804
34102
|
* @export
|
|
@@ -33848,6 +34146,17 @@ export class SubscriptionsUserApi extends BaseAPI {
|
|
|
33848
34146
|
public subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig) {
|
|
33849
34147
|
return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
33850
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
|
+
}
|
|
33851
34160
|
}
|
|
33852
34161
|
|
|
33853
34162
|
|