@tennac-booking/sdk 1.0.243 → 1.0.245
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 +6 -0
- package/README.md +8 -0
- package/api.ts +556 -0
- package/dist/api.d.ts +461 -0
- package/dist/api.js +153 -5
- package/dist/esm/api.d.ts +461 -0
- package/dist/esm/api.js +148 -0
- package/docs/ClubPageResponse.md +2 -0
- package/docs/EventBookingDetailClubInfo.md +26 -0
- package/docs/EventBookingDetailEventSummary.md +56 -0
- package/docs/EventBookingDetailResponse.md +28 -0
- package/docs/EventBookingDetailResponseBooking.md +38 -0
- package/docs/PublicSubscriptionPlanResponse.md +6 -0
- package/docs/SubscriptionPaymentSheetRequest.md +24 -0
- package/docs/SubscriptionPaymentSheetResponse.md +34 -0
- package/docs/SubscriptionsPublicApi.md +1 -1
- package/docs/SubscriptionsUserApi.md +55 -0
- package/docs/UsersApi.md +51 -0
- package/package.json +1 -1
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}
|
|
@@ -5857,6 +5863,286 @@ export interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo {
|
|
|
5857
5863
|
*/
|
|
5858
5864
|
'hasSubscription': boolean;
|
|
5859
5865
|
}
|
|
5866
|
+
/**
|
|
5867
|
+
*
|
|
5868
|
+
* @export
|
|
5869
|
+
* @interface EventBookingDetailClubInfo
|
|
5870
|
+
*/
|
|
5871
|
+
export interface EventBookingDetailClubInfo {
|
|
5872
|
+
/**
|
|
5873
|
+
*
|
|
5874
|
+
* @type {string}
|
|
5875
|
+
* @memberof EventBookingDetailClubInfo
|
|
5876
|
+
*/
|
|
5877
|
+
'id': string;
|
|
5878
|
+
/**
|
|
5879
|
+
*
|
|
5880
|
+
* @type {string}
|
|
5881
|
+
* @memberof EventBookingDetailClubInfo
|
|
5882
|
+
*/
|
|
5883
|
+
'name'?: string | null;
|
|
5884
|
+
/**
|
|
5885
|
+
*
|
|
5886
|
+
* @type {string}
|
|
5887
|
+
* @memberof EventBookingDetailClubInfo
|
|
5888
|
+
*/
|
|
5889
|
+
'picture'?: string | null;
|
|
5890
|
+
/**
|
|
5891
|
+
*
|
|
5892
|
+
* @type {string}
|
|
5893
|
+
* @memberof EventBookingDetailClubInfo
|
|
5894
|
+
*/
|
|
5895
|
+
'address'?: string | null;
|
|
5896
|
+
}
|
|
5897
|
+
/**
|
|
5898
|
+
*
|
|
5899
|
+
* @export
|
|
5900
|
+
* @interface EventBookingDetailEventSummary
|
|
5901
|
+
*/
|
|
5902
|
+
export interface EventBookingDetailEventSummary {
|
|
5903
|
+
/**
|
|
5904
|
+
*
|
|
5905
|
+
* @type {string}
|
|
5906
|
+
* @memberof EventBookingDetailEventSummary
|
|
5907
|
+
*/
|
|
5908
|
+
'id': string;
|
|
5909
|
+
/**
|
|
5910
|
+
*
|
|
5911
|
+
* @type {string}
|
|
5912
|
+
* @memberof EventBookingDetailEventSummary
|
|
5913
|
+
*/
|
|
5914
|
+
'clubId': string;
|
|
5915
|
+
/**
|
|
5916
|
+
*
|
|
5917
|
+
* @type {string}
|
|
5918
|
+
* @memberof EventBookingDetailEventSummary
|
|
5919
|
+
*/
|
|
5920
|
+
'type': EventBookingDetailEventSummaryTypeEnum;
|
|
5921
|
+
/**
|
|
5922
|
+
*
|
|
5923
|
+
* @type {string}
|
|
5924
|
+
* @memberof EventBookingDetailEventSummary
|
|
5925
|
+
*/
|
|
5926
|
+
'title': string;
|
|
5927
|
+
/**
|
|
5928
|
+
*
|
|
5929
|
+
* @type {string}
|
|
5930
|
+
* @memberof EventBookingDetailEventSummary
|
|
5931
|
+
*/
|
|
5932
|
+
'category'?: string;
|
|
5933
|
+
/**
|
|
5934
|
+
*
|
|
5935
|
+
* @type {string}
|
|
5936
|
+
* @memberof EventBookingDetailEventSummary
|
|
5937
|
+
*/
|
|
5938
|
+
'description'?: string;
|
|
5939
|
+
/**
|
|
5940
|
+
*
|
|
5941
|
+
* @type {string}
|
|
5942
|
+
* @memberof EventBookingDetailEventSummary
|
|
5943
|
+
*/
|
|
5944
|
+
'photoUrl'?: string;
|
|
5945
|
+
/**
|
|
5946
|
+
*
|
|
5947
|
+
* @type {boolean}
|
|
5948
|
+
* @memberof EventBookingDetailEventSummary
|
|
5949
|
+
*/
|
|
5950
|
+
'isAllDay': boolean;
|
|
5951
|
+
/**
|
|
5952
|
+
*
|
|
5953
|
+
* @type {string}
|
|
5954
|
+
* @memberof EventBookingDetailEventSummary
|
|
5955
|
+
*/
|
|
5956
|
+
'date': string;
|
|
5957
|
+
/**
|
|
5958
|
+
*
|
|
5959
|
+
* @type {number}
|
|
5960
|
+
* @memberof EventBookingDetailEventSummary
|
|
5961
|
+
*/
|
|
5962
|
+
'startTime'?: number;
|
|
5963
|
+
/**
|
|
5964
|
+
*
|
|
5965
|
+
* @type {number}
|
|
5966
|
+
* @memberof EventBookingDetailEventSummary
|
|
5967
|
+
*/
|
|
5968
|
+
'endTime'?: number;
|
|
5969
|
+
/**
|
|
5970
|
+
*
|
|
5971
|
+
* @type {Array<string>}
|
|
5972
|
+
* @memberof EventBookingDetailEventSummary
|
|
5973
|
+
*/
|
|
5974
|
+
'courts': Array<string>;
|
|
5975
|
+
/**
|
|
5976
|
+
*
|
|
5977
|
+
* @type {Array<SportWithLevels>}
|
|
5978
|
+
* @memberof EventBookingDetailEventSummary
|
|
5979
|
+
*/
|
|
5980
|
+
'sports': Array<SportWithLevels>;
|
|
5981
|
+
/**
|
|
5982
|
+
*
|
|
5983
|
+
* @type {string}
|
|
5984
|
+
* @memberof EventBookingDetailEventSummary
|
|
5985
|
+
*/
|
|
5986
|
+
'recurringType': EventBookingDetailEventSummaryRecurringTypeEnum;
|
|
5987
|
+
/**
|
|
5988
|
+
*
|
|
5989
|
+
* @type {string}
|
|
5990
|
+
* @memberof EventBookingDetailEventSummary
|
|
5991
|
+
*/
|
|
5992
|
+
'recurrenceEndDate'?: string;
|
|
5993
|
+
/**
|
|
5994
|
+
*
|
|
5995
|
+
* @type {string}
|
|
5996
|
+
* @memberof EventBookingDetailEventSummary
|
|
5997
|
+
*/
|
|
5998
|
+
'participationType': EventBookingDetailEventSummaryParticipationTypeEnum;
|
|
5999
|
+
/**
|
|
6000
|
+
*
|
|
6001
|
+
* @type {number}
|
|
6002
|
+
* @memberof EventBookingDetailEventSummary
|
|
6003
|
+
*/
|
|
6004
|
+
'playersPerTeam'?: number;
|
|
6005
|
+
/**
|
|
6006
|
+
*
|
|
6007
|
+
* @type {Array<string | null>}
|
|
6008
|
+
* @memberof EventBookingDetailEventSummary
|
|
6009
|
+
*/
|
|
6010
|
+
'levels'?: Array<string | null>;
|
|
6011
|
+
/**
|
|
6012
|
+
*
|
|
6013
|
+
* @type {Array<EventSponsor>}
|
|
6014
|
+
* @memberof EventBookingDetailEventSummary
|
|
6015
|
+
*/
|
|
6016
|
+
'sponsors'?: Array<EventSponsor>;
|
|
6017
|
+
}
|
|
6018
|
+
|
|
6019
|
+
export const EventBookingDetailEventSummaryTypeEnum = {
|
|
6020
|
+
Event: 'event',
|
|
6021
|
+
Closure: 'closure'
|
|
6022
|
+
} as const;
|
|
6023
|
+
|
|
6024
|
+
export type EventBookingDetailEventSummaryTypeEnum = typeof EventBookingDetailEventSummaryTypeEnum[keyof typeof EventBookingDetailEventSummaryTypeEnum];
|
|
6025
|
+
export const EventBookingDetailEventSummaryRecurringTypeEnum = {
|
|
6026
|
+
Unique: 'unique',
|
|
6027
|
+
Daily: 'daily',
|
|
6028
|
+
Weekly: 'weekly',
|
|
6029
|
+
Monthly: 'monthly'
|
|
6030
|
+
} as const;
|
|
6031
|
+
|
|
6032
|
+
export type EventBookingDetailEventSummaryRecurringTypeEnum = typeof EventBookingDetailEventSummaryRecurringTypeEnum[keyof typeof EventBookingDetailEventSummaryRecurringTypeEnum];
|
|
6033
|
+
export const EventBookingDetailEventSummaryParticipationTypeEnum = {
|
|
6034
|
+
Solo: 'solo',
|
|
6035
|
+
Team: 'team'
|
|
6036
|
+
} as const;
|
|
6037
|
+
|
|
6038
|
+
export type EventBookingDetailEventSummaryParticipationTypeEnum = typeof EventBookingDetailEventSummaryParticipationTypeEnum[keyof typeof EventBookingDetailEventSummaryParticipationTypeEnum];
|
|
6039
|
+
|
|
6040
|
+
/**
|
|
6041
|
+
*
|
|
6042
|
+
* @export
|
|
6043
|
+
* @interface EventBookingDetailResponse
|
|
6044
|
+
*/
|
|
6045
|
+
export interface EventBookingDetailResponse {
|
|
6046
|
+
/**
|
|
6047
|
+
*
|
|
6048
|
+
* @type {EventBookingDetailClubInfo}
|
|
6049
|
+
* @memberof EventBookingDetailResponse
|
|
6050
|
+
*/
|
|
6051
|
+
'club': EventBookingDetailClubInfo;
|
|
6052
|
+
/**
|
|
6053
|
+
*
|
|
6054
|
+
* @type {EventBookingDetailEventSummary}
|
|
6055
|
+
* @memberof EventBookingDetailResponse
|
|
6056
|
+
*/
|
|
6057
|
+
'event': EventBookingDetailEventSummary;
|
|
6058
|
+
/**
|
|
6059
|
+
*
|
|
6060
|
+
* @type {EventBookingDetailResponseBooking}
|
|
6061
|
+
* @memberof EventBookingDetailResponse
|
|
6062
|
+
*/
|
|
6063
|
+
'booking': EventBookingDetailResponseBooking;
|
|
6064
|
+
/**
|
|
6065
|
+
*
|
|
6066
|
+
* @type {Array<BookingPlayerPaymentSummary>}
|
|
6067
|
+
* @memberof EventBookingDetailResponse
|
|
6068
|
+
*/
|
|
6069
|
+
'players': Array<BookingPlayerPaymentSummary>;
|
|
6070
|
+
/**
|
|
6071
|
+
*
|
|
6072
|
+
* @type {Array<BookingHistoryPopulated>}
|
|
6073
|
+
* @memberof EventBookingDetailResponse
|
|
6074
|
+
*/
|
|
6075
|
+
'history': Array<BookingHistoryPopulated>;
|
|
6076
|
+
}
|
|
6077
|
+
/**
|
|
6078
|
+
*
|
|
6079
|
+
* @export
|
|
6080
|
+
* @interface EventBookingDetailResponseBooking
|
|
6081
|
+
*/
|
|
6082
|
+
export interface EventBookingDetailResponseBooking {
|
|
6083
|
+
/**
|
|
6084
|
+
*
|
|
6085
|
+
* @type {number}
|
|
6086
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6087
|
+
*/
|
|
6088
|
+
'participantsCount': number;
|
|
6089
|
+
/**
|
|
6090
|
+
*
|
|
6091
|
+
* @type {string}
|
|
6092
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6093
|
+
*/
|
|
6094
|
+
'updatedAt': string;
|
|
6095
|
+
/**
|
|
6096
|
+
*
|
|
6097
|
+
* @type {string}
|
|
6098
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6099
|
+
*/
|
|
6100
|
+
'createdAt': string;
|
|
6101
|
+
/**
|
|
6102
|
+
*
|
|
6103
|
+
* @type {string}
|
|
6104
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6105
|
+
*/
|
|
6106
|
+
'limitCancellationDate'?: string | null;
|
|
6107
|
+
/**
|
|
6108
|
+
*
|
|
6109
|
+
* @type {string}
|
|
6110
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6111
|
+
*/
|
|
6112
|
+
'limitSetupDate'?: string | null;
|
|
6113
|
+
/**
|
|
6114
|
+
*
|
|
6115
|
+
* @type {boolean}
|
|
6116
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6117
|
+
*/
|
|
6118
|
+
'paymentMethodSetupCompleted': boolean;
|
|
6119
|
+
/**
|
|
6120
|
+
*
|
|
6121
|
+
* @type {boolean}
|
|
6122
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6123
|
+
*/
|
|
6124
|
+
'isCreatorPayingAll': boolean;
|
|
6125
|
+
/**
|
|
6126
|
+
*
|
|
6127
|
+
* @type {string}
|
|
6128
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6129
|
+
*/
|
|
6130
|
+
'teamName'?: string | null;
|
|
6131
|
+
/**
|
|
6132
|
+
*
|
|
6133
|
+
* @type {EventBookingStatus}
|
|
6134
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6135
|
+
*/
|
|
6136
|
+
'status': EventBookingStatus;
|
|
6137
|
+
/**
|
|
6138
|
+
*
|
|
6139
|
+
* @type {string}
|
|
6140
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6141
|
+
*/
|
|
6142
|
+
'id': string;
|
|
6143
|
+
}
|
|
6144
|
+
|
|
6145
|
+
|
|
5860
6146
|
/**
|
|
5861
6147
|
*
|
|
5862
6148
|
* @export
|
|
@@ -11051,6 +11337,24 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
11051
11337
|
* @memberof PublicSubscriptionPlanResponse
|
|
11052
11338
|
*/
|
|
11053
11339
|
'discount'?: SubscriptionPlanDiscountResponse;
|
|
11340
|
+
/**
|
|
11341
|
+
*
|
|
11342
|
+
* @type {boolean}
|
|
11343
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
11344
|
+
*/
|
|
11345
|
+
'isUserSubscribed'?: boolean;
|
|
11346
|
+
/**
|
|
11347
|
+
*
|
|
11348
|
+
* @type {string}
|
|
11349
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
11350
|
+
*/
|
|
11351
|
+
'userSubscriptionId'?: string | null;
|
|
11352
|
+
/**
|
|
11353
|
+
*
|
|
11354
|
+
* @type {string}
|
|
11355
|
+
* @memberof PublicSubscriptionPlanResponse
|
|
11356
|
+
*/
|
|
11357
|
+
'userSubscriptionStatus'?: string | null;
|
|
11054
11358
|
}
|
|
11055
11359
|
|
|
11056
11360
|
|
|
@@ -13309,6 +13613,86 @@ export interface SubscriptionMutationResponse {
|
|
|
13309
13613
|
*/
|
|
13310
13614
|
'subscription': { [key: string]: any; };
|
|
13311
13615
|
}
|
|
13616
|
+
/**
|
|
13617
|
+
*
|
|
13618
|
+
* @export
|
|
13619
|
+
* @interface SubscriptionPaymentSheetRequest
|
|
13620
|
+
*/
|
|
13621
|
+
export interface SubscriptionPaymentSheetRequest {
|
|
13622
|
+
/**
|
|
13623
|
+
*
|
|
13624
|
+
* @type {boolean}
|
|
13625
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13626
|
+
*/
|
|
13627
|
+
'useEphemeralKey'?: boolean;
|
|
13628
|
+
/**
|
|
13629
|
+
*
|
|
13630
|
+
* @type {string}
|
|
13631
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13632
|
+
*/
|
|
13633
|
+
'priceId': string;
|
|
13634
|
+
/**
|
|
13635
|
+
*
|
|
13636
|
+
* @type {string}
|
|
13637
|
+
* @memberof SubscriptionPaymentSheetRequest
|
|
13638
|
+
*/
|
|
13639
|
+
'clubId': string;
|
|
13640
|
+
}
|
|
13641
|
+
/**
|
|
13642
|
+
*
|
|
13643
|
+
* @export
|
|
13644
|
+
* @interface SubscriptionPaymentSheetResponse
|
|
13645
|
+
*/
|
|
13646
|
+
export interface SubscriptionPaymentSheetResponse {
|
|
13647
|
+
/**
|
|
13648
|
+
*
|
|
13649
|
+
* @type {string}
|
|
13650
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13651
|
+
*/
|
|
13652
|
+
'customerSessionClientSecret'?: string;
|
|
13653
|
+
/**
|
|
13654
|
+
*
|
|
13655
|
+
* @type {string}
|
|
13656
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13657
|
+
*/
|
|
13658
|
+
'customerEphemeralKeySecret'?: string;
|
|
13659
|
+
/**
|
|
13660
|
+
*
|
|
13661
|
+
* @type {string}
|
|
13662
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13663
|
+
*/
|
|
13664
|
+
'subscriptionId': string;
|
|
13665
|
+
/**
|
|
13666
|
+
*
|
|
13667
|
+
* @type {string}
|
|
13668
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13669
|
+
*/
|
|
13670
|
+
'stripeAccountId': string;
|
|
13671
|
+
/**
|
|
13672
|
+
*
|
|
13673
|
+
* @type {string}
|
|
13674
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13675
|
+
*/
|
|
13676
|
+
'publishableKey': string;
|
|
13677
|
+
/**
|
|
13678
|
+
*
|
|
13679
|
+
* @type {string}
|
|
13680
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13681
|
+
*/
|
|
13682
|
+
'customerId': string;
|
|
13683
|
+
/**
|
|
13684
|
+
*
|
|
13685
|
+
* @type {string}
|
|
13686
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13687
|
+
*/
|
|
13688
|
+
'setupIntentClientSecret'?: string;
|
|
13689
|
+
/**
|
|
13690
|
+
*
|
|
13691
|
+
* @type {string}
|
|
13692
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13693
|
+
*/
|
|
13694
|
+
'paymentIntentClientSecret'?: string;
|
|
13695
|
+
}
|
|
13312
13696
|
/**
|
|
13313
13697
|
*
|
|
13314
13698
|
* @export
|
|
@@ -33322,6 +33706,10 @@ export const SubscriptionsPublicApiAxiosParamCreator = function (configuration?:
|
|
|
33322
33706
|
const localVarHeaderParameter = {} as any;
|
|
33323
33707
|
const localVarQueryParameter = {} as any;
|
|
33324
33708
|
|
|
33709
|
+
// authentication bearerAuth required
|
|
33710
|
+
// http bearer authentication required
|
|
33711
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33712
|
+
|
|
33325
33713
|
|
|
33326
33714
|
|
|
33327
33715
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -33753,6 +34141,45 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration?: C
|
|
|
33753
34141
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33754
34142
|
localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration)
|
|
33755
34143
|
|
|
34144
|
+
return {
|
|
34145
|
+
url: toPathString(localVarUrlObj),
|
|
34146
|
+
options: localVarRequestOptions,
|
|
34147
|
+
};
|
|
34148
|
+
},
|
|
34149
|
+
/**
|
|
34150
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
34151
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
34152
|
+
* @param {*} [options] Override http request option.
|
|
34153
|
+
* @throws {RequiredError}
|
|
34154
|
+
*/
|
|
34155
|
+
subscriptionPaymentSheet: async (subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34156
|
+
// verify required parameter 'subscriptionPaymentSheetRequest' is not null or undefined
|
|
34157
|
+
assertParamExists('subscriptionPaymentSheet', 'subscriptionPaymentSheetRequest', subscriptionPaymentSheetRequest)
|
|
34158
|
+
const localVarPath = `/api/subscriptions/payment-sheet`;
|
|
34159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34160
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34161
|
+
let baseOptions;
|
|
34162
|
+
if (configuration) {
|
|
34163
|
+
baseOptions = configuration.baseOptions;
|
|
34164
|
+
}
|
|
34165
|
+
|
|
34166
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
34167
|
+
const localVarHeaderParameter = {} as any;
|
|
34168
|
+
const localVarQueryParameter = {} as any;
|
|
34169
|
+
|
|
34170
|
+
// authentication bearerAuth required
|
|
34171
|
+
// http bearer authentication required
|
|
34172
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34173
|
+
|
|
34174
|
+
|
|
34175
|
+
|
|
34176
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34177
|
+
|
|
34178
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34180
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34181
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionPaymentSheetRequest, localVarRequestOptions, configuration)
|
|
34182
|
+
|
|
33756
34183
|
return {
|
|
33757
34184
|
url: toPathString(localVarUrlObj),
|
|
33758
34185
|
options: localVarRequestOptions,
|
|
@@ -33817,6 +34244,18 @@ export const SubscriptionsUserApiFp = function(configuration?: Configuration) {
|
|
|
33817
34244
|
const localVarOperationServerBasePath = operationServerMap['SubscriptionsUserApi.subscribe']?.[localVarOperationServerIndex]?.url;
|
|
33818
34245
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33819
34246
|
},
|
|
34247
|
+
/**
|
|
34248
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
34249
|
+
* @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
|
|
34250
|
+
* @param {*} [options] Override http request option.
|
|
34251
|
+
* @throws {RequiredError}
|
|
34252
|
+
*/
|
|
34253
|
+
async subscriptionPaymentSheet(subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>> {
|
|
34254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.subscriptionPaymentSheet(subscriptionPaymentSheetRequest, options);
|
|
34255
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
34256
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsUserApi.subscriptionPaymentSheet']?.[localVarOperationServerIndex]?.url;
|
|
34257
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34258
|
+
},
|
|
33820
34259
|
}
|
|
33821
34260
|
};
|
|
33822
34261
|
|
|
@@ -33862,6 +34301,15 @@ export const SubscriptionsUserApiFactory = function (configuration?: Configurati
|
|
|
33862
34301
|
subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionMutationResponse> {
|
|
33863
34302
|
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
33864
34303
|
},
|
|
34304
|
+
/**
|
|
34305
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
34306
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
34307
|
+
* @param {*} [options] Override http request option.
|
|
34308
|
+
* @throws {RequiredError}
|
|
34309
|
+
*/
|
|
34310
|
+
subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse> {
|
|
34311
|
+
return localVarFp.subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(axios, basePath));
|
|
34312
|
+
},
|
|
33865
34313
|
};
|
|
33866
34314
|
};
|
|
33867
34315
|
|
|
@@ -33921,6 +34369,20 @@ export interface SubscriptionsUserApiSubscribeRequest {
|
|
|
33921
34369
|
readonly subscribeRequestBody: SubscribeRequestBody
|
|
33922
34370
|
}
|
|
33923
34371
|
|
|
34372
|
+
/**
|
|
34373
|
+
* Request parameters for subscriptionPaymentSheet operation in SubscriptionsUserApi.
|
|
34374
|
+
* @export
|
|
34375
|
+
* @interface SubscriptionsUserApiSubscriptionPaymentSheetRequest
|
|
34376
|
+
*/
|
|
34377
|
+
export interface SubscriptionsUserApiSubscriptionPaymentSheetRequest {
|
|
34378
|
+
/**
|
|
34379
|
+
*
|
|
34380
|
+
* @type {SubscriptionPaymentSheetRequest}
|
|
34381
|
+
* @memberof SubscriptionsUserApiSubscriptionPaymentSheet
|
|
34382
|
+
*/
|
|
34383
|
+
readonly subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest
|
|
34384
|
+
}
|
|
34385
|
+
|
|
33924
34386
|
/**
|
|
33925
34387
|
* SubscriptionsUserApi - object-oriented interface
|
|
33926
34388
|
* @export
|
|
@@ -33970,6 +34432,17 @@ export class SubscriptionsUserApi extends BaseAPI {
|
|
|
33970
34432
|
public subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig) {
|
|
33971
34433
|
return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
33972
34434
|
}
|
|
34435
|
+
|
|
34436
|
+
/**
|
|
34437
|
+
* Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
|
|
34438
|
+
* @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
|
|
34439
|
+
* @param {*} [options] Override http request option.
|
|
34440
|
+
* @throws {RequiredError}
|
|
34441
|
+
* @memberof SubscriptionsUserApi
|
|
34442
|
+
*/
|
|
34443
|
+
public subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig) {
|
|
34444
|
+
return SubscriptionsUserApiFp(this.configuration).subscriptionPaymentSheet(requestParameters.subscriptionPaymentSheetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34445
|
+
}
|
|
33973
34446
|
}
|
|
33974
34447
|
|
|
33975
34448
|
|
|
@@ -35551,6 +36024,43 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
35551
36024
|
|
|
35552
36025
|
|
|
35553
36026
|
|
|
36027
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36029
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
36030
|
+
|
|
36031
|
+
return {
|
|
36032
|
+
url: toPathString(localVarUrlObj),
|
|
36033
|
+
options: localVarRequestOptions,
|
|
36034
|
+
};
|
|
36035
|
+
},
|
|
36036
|
+
/**
|
|
36037
|
+
*
|
|
36038
|
+
* @param {string} eventBookingId
|
|
36039
|
+
* @param {*} [options] Override http request option.
|
|
36040
|
+
* @throws {RequiredError}
|
|
36041
|
+
*/
|
|
36042
|
+
getEventBookingDetail: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36043
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
36044
|
+
assertParamExists('getEventBookingDetail', 'eventBookingId', eventBookingId)
|
|
36045
|
+
const localVarPath = `/api/users/me/event-booking-detail/{eventBookingId}`
|
|
36046
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
36047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
36048
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
36049
|
+
let baseOptions;
|
|
36050
|
+
if (configuration) {
|
|
36051
|
+
baseOptions = configuration.baseOptions;
|
|
36052
|
+
}
|
|
36053
|
+
|
|
36054
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
36055
|
+
const localVarHeaderParameter = {} as any;
|
|
36056
|
+
const localVarQueryParameter = {} as any;
|
|
36057
|
+
|
|
36058
|
+
// authentication bearerAuth required
|
|
36059
|
+
// http bearer authentication required
|
|
36060
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
36061
|
+
|
|
36062
|
+
|
|
36063
|
+
|
|
35554
36064
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35555
36065
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35556
36066
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -37270,6 +37780,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
37270
37780
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getBookingDetail']?.[localVarOperationServerIndex]?.url;
|
|
37271
37781
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37272
37782
|
},
|
|
37783
|
+
/**
|
|
37784
|
+
*
|
|
37785
|
+
* @param {string} eventBookingId
|
|
37786
|
+
* @param {*} [options] Override http request option.
|
|
37787
|
+
* @throws {RequiredError}
|
|
37788
|
+
*/
|
|
37789
|
+
async getEventBookingDetail(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventBookingDetailResponse>> {
|
|
37790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventBookingDetail(eventBookingId, options);
|
|
37791
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
37792
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getEventBookingDetail']?.[localVarOperationServerIndex]?.url;
|
|
37793
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37794
|
+
},
|
|
37273
37795
|
/**
|
|
37274
37796
|
*
|
|
37275
37797
|
* @param {*} [options] Override http request option.
|
|
@@ -37853,6 +38375,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
37853
38375
|
getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingSummary> {
|
|
37854
38376
|
return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
37855
38377
|
},
|
|
38378
|
+
/**
|
|
38379
|
+
*
|
|
38380
|
+
* @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
|
|
38381
|
+
* @param {*} [options] Override http request option.
|
|
38382
|
+
* @throws {RequiredError}
|
|
38383
|
+
*/
|
|
38384
|
+
getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventBookingDetailResponse> {
|
|
38385
|
+
return localVarFp.getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
38386
|
+
},
|
|
37856
38387
|
/**
|
|
37857
38388
|
*
|
|
37858
38389
|
* @param {*} [options] Override http request option.
|
|
@@ -38301,6 +38832,20 @@ export interface UsersApiGetBookingDetailRequest {
|
|
|
38301
38832
|
readonly bookingId: string
|
|
38302
38833
|
}
|
|
38303
38834
|
|
|
38835
|
+
/**
|
|
38836
|
+
* Request parameters for getEventBookingDetail operation in UsersApi.
|
|
38837
|
+
* @export
|
|
38838
|
+
* @interface UsersApiGetEventBookingDetailRequest
|
|
38839
|
+
*/
|
|
38840
|
+
export interface UsersApiGetEventBookingDetailRequest {
|
|
38841
|
+
/**
|
|
38842
|
+
*
|
|
38843
|
+
* @type {string}
|
|
38844
|
+
* @memberof UsersApiGetEventBookingDetail
|
|
38845
|
+
*/
|
|
38846
|
+
readonly eventBookingId: string
|
|
38847
|
+
}
|
|
38848
|
+
|
|
38304
38849
|
/**
|
|
38305
38850
|
* Request parameters for getNearestClubs operation in UsersApi.
|
|
38306
38851
|
* @export
|
|
@@ -39035,6 +39580,17 @@ export class UsersApi extends BaseAPI {
|
|
|
39035
39580
|
return UsersApiFp(this.configuration).getBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
39036
39581
|
}
|
|
39037
39582
|
|
|
39583
|
+
/**
|
|
39584
|
+
*
|
|
39585
|
+
* @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
|
|
39586
|
+
* @param {*} [options] Override http request option.
|
|
39587
|
+
* @throws {RequiredError}
|
|
39588
|
+
* @memberof UsersApi
|
|
39589
|
+
*/
|
|
39590
|
+
public getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig) {
|
|
39591
|
+
return UsersApiFp(this.configuration).getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
39592
|
+
}
|
|
39593
|
+
|
|
39038
39594
|
/**
|
|
39039
39595
|
*
|
|
39040
39596
|
* @param {*} [options] Override http request option.
|