@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/dist/esm/api.d.ts
CHANGED
|
@@ -2313,6 +2313,12 @@ export interface ClubEvent {
|
|
|
2313
2313
|
* @memberof ClubEvent
|
|
2314
2314
|
*/
|
|
2315
2315
|
'description'?: string;
|
|
2316
|
+
/**
|
|
2317
|
+
*
|
|
2318
|
+
* @type {string}
|
|
2319
|
+
* @memberof ClubEvent
|
|
2320
|
+
*/
|
|
2321
|
+
'category'?: string;
|
|
2316
2322
|
/**
|
|
2317
2323
|
*
|
|
2318
2324
|
* @type {string}
|
|
@@ -2823,6 +2829,12 @@ export interface ClubPageResponse {
|
|
|
2823
2829
|
* @memberof ClubPageResponse
|
|
2824
2830
|
*/
|
|
2825
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;
|
|
2826
2838
|
/**
|
|
2827
2839
|
* Indique si la fonctionnalité \"no show\" est activée
|
|
2828
2840
|
* @type {boolean}
|
|
@@ -4807,6 +4819,12 @@ export interface CreateEventRequest {
|
|
|
4807
4819
|
* @memberof CreateEventRequest
|
|
4808
4820
|
*/
|
|
4809
4821
|
'title': string;
|
|
4822
|
+
/**
|
|
4823
|
+
*
|
|
4824
|
+
* @type {string}
|
|
4825
|
+
* @memberof CreateEventRequest
|
|
4826
|
+
*/
|
|
4827
|
+
'category'?: string;
|
|
4810
4828
|
/**
|
|
4811
4829
|
*
|
|
4812
4830
|
* @type {string}
|
|
@@ -5799,6 +5817,12 @@ export interface EventBookingDetailSummary {
|
|
|
5799
5817
|
* @memberof EventBookingDetailSummary
|
|
5800
5818
|
*/
|
|
5801
5819
|
'players': Array<string>;
|
|
5820
|
+
/**
|
|
5821
|
+
*
|
|
5822
|
+
* @type {Array<EventBookingDetailSummaryPartnersInner>}
|
|
5823
|
+
* @memberof EventBookingDetailSummary
|
|
5824
|
+
*/
|
|
5825
|
+
'partners'?: Array<EventBookingDetailSummaryPartnersInner>;
|
|
5802
5826
|
/**
|
|
5803
5827
|
* Détails des paiements par joueur pour cette réservation d\'événement. Remplace l\'ancien champ `invoices`.
|
|
5804
5828
|
* @type {Array<EventBookingDetailSummaryPaymentPerPlayersInner>}
|
|
@@ -5860,6 +5884,37 @@ export declare const EventBookingDetailSummaryUserParticipationStatusEnum: {
|
|
|
5860
5884
|
readonly Waitlist: "waitlist";
|
|
5861
5885
|
};
|
|
5862
5886
|
export type EventBookingDetailSummaryUserParticipationStatusEnum = typeof EventBookingDetailSummaryUserParticipationStatusEnum[keyof typeof EventBookingDetailSummaryUserParticipationStatusEnum];
|
|
5887
|
+
/**
|
|
5888
|
+
*
|
|
5889
|
+
* @export
|
|
5890
|
+
* @interface EventBookingDetailSummaryPartnersInner
|
|
5891
|
+
*/
|
|
5892
|
+
export interface EventBookingDetailSummaryPartnersInner {
|
|
5893
|
+
/**
|
|
5894
|
+
*
|
|
5895
|
+
* @type {string}
|
|
5896
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5897
|
+
*/
|
|
5898
|
+
'profilePicture'?: string | null;
|
|
5899
|
+
/**
|
|
5900
|
+
*
|
|
5901
|
+
* @type {string}
|
|
5902
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5903
|
+
*/
|
|
5904
|
+
'lastName'?: string | null;
|
|
5905
|
+
/**
|
|
5906
|
+
*
|
|
5907
|
+
* @type {string}
|
|
5908
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5909
|
+
*/
|
|
5910
|
+
'firstName'?: string | null;
|
|
5911
|
+
/**
|
|
5912
|
+
*
|
|
5913
|
+
* @type {string}
|
|
5914
|
+
* @memberof EventBookingDetailSummaryPartnersInner
|
|
5915
|
+
*/
|
|
5916
|
+
'id': string;
|
|
5917
|
+
}
|
|
5863
5918
|
/**
|
|
5864
5919
|
*
|
|
5865
5920
|
* @export
|
|
@@ -6193,6 +6248,12 @@ export interface EventResponse {
|
|
|
6193
6248
|
* @memberof EventResponse
|
|
6194
6249
|
*/
|
|
6195
6250
|
'title': string;
|
|
6251
|
+
/**
|
|
6252
|
+
*
|
|
6253
|
+
* @type {string}
|
|
6254
|
+
* @memberof EventResponse
|
|
6255
|
+
*/
|
|
6256
|
+
'category'?: string;
|
|
6196
6257
|
/**
|
|
6197
6258
|
*
|
|
6198
6259
|
* @type {string}
|
|
@@ -10819,6 +10880,24 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
10819
10880
|
* @memberof PublicSubscriptionPlanResponse
|
|
10820
10881
|
*/
|
|
10821
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;
|
|
10822
10901
|
}
|
|
10823
10902
|
/**
|
|
10824
10903
|
*
|
|
@@ -11276,6 +11355,12 @@ export interface RecurringDefinitionResponse {
|
|
|
11276
11355
|
* @memberof RecurringDefinitionResponse
|
|
11277
11356
|
*/
|
|
11278
11357
|
'title': string;
|
|
11358
|
+
/**
|
|
11359
|
+
*
|
|
11360
|
+
* @type {string}
|
|
11361
|
+
* @memberof RecurringDefinitionResponse
|
|
11362
|
+
*/
|
|
11363
|
+
'category'?: string;
|
|
11279
11364
|
/**
|
|
11280
11365
|
*
|
|
11281
11366
|
* @type {string}
|
|
@@ -13038,6 +13123,80 @@ export interface SubscriptionMutationResponse {
|
|
|
13038
13123
|
[key: string]: any;
|
|
13039
13124
|
};
|
|
13040
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
|
+
}
|
|
13041
13200
|
/**
|
|
13042
13201
|
*
|
|
13043
13202
|
* @export
|
|
@@ -14168,6 +14327,12 @@ export interface UpdateEventRequest {
|
|
|
14168
14327
|
* @memberof UpdateEventRequest
|
|
14169
14328
|
*/
|
|
14170
14329
|
'title'?: string;
|
|
14330
|
+
/**
|
|
14331
|
+
*
|
|
14332
|
+
* @type {string}
|
|
14333
|
+
* @memberof UpdateEventRequest
|
|
14334
|
+
*/
|
|
14335
|
+
'category'?: string;
|
|
14171
14336
|
/**
|
|
14172
14337
|
*
|
|
14173
14338
|
* @type {string}
|
|
@@ -14400,6 +14565,12 @@ export interface UpdateRecurringDefinitionRequest {
|
|
|
14400
14565
|
* @memberof UpdateRecurringDefinitionRequest
|
|
14401
14566
|
*/
|
|
14402
14567
|
'title'?: string;
|
|
14568
|
+
/**
|
|
14569
|
+
*
|
|
14570
|
+
* @type {string}
|
|
14571
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
14572
|
+
*/
|
|
14573
|
+
'category'?: string;
|
|
14403
14574
|
/**
|
|
14404
14575
|
*
|
|
14405
14576
|
* @type {string}
|
|
@@ -15053,12 +15224,30 @@ export interface UserEventSummary {
|
|
|
15053
15224
|
* @memberof UserEventSummary
|
|
15054
15225
|
*/
|
|
15055
15226
|
'clubId': string;
|
|
15227
|
+
/**
|
|
15228
|
+
*
|
|
15229
|
+
* @type {string}
|
|
15230
|
+
* @memberof UserEventSummary
|
|
15231
|
+
*/
|
|
15232
|
+
'clubName'?: string | null;
|
|
15233
|
+
/**
|
|
15234
|
+
*
|
|
15235
|
+
* @type {string}
|
|
15236
|
+
* @memberof UserEventSummary
|
|
15237
|
+
*/
|
|
15238
|
+
'clubLogo'?: string | null;
|
|
15056
15239
|
/**
|
|
15057
15240
|
*
|
|
15058
15241
|
* @type {string}
|
|
15059
15242
|
* @memberof UserEventSummary
|
|
15060
15243
|
*/
|
|
15061
15244
|
'title': string;
|
|
15245
|
+
/**
|
|
15246
|
+
*
|
|
15247
|
+
* @type {string}
|
|
15248
|
+
* @memberof UserEventSummary
|
|
15249
|
+
*/
|
|
15250
|
+
'category'?: string | null;
|
|
15062
15251
|
/**
|
|
15063
15252
|
*
|
|
15064
15253
|
* @type {string}
|
|
@@ -15113,6 +15302,12 @@ export interface UserEventSummary {
|
|
|
15113
15302
|
* @memberof UserEventSummary
|
|
15114
15303
|
*/
|
|
15115
15304
|
'sports'?: Array<string>;
|
|
15305
|
+
/**
|
|
15306
|
+
*
|
|
15307
|
+
* @type {Array<UserEventSummarySportsDetailsInner>}
|
|
15308
|
+
* @memberof UserEventSummary
|
|
15309
|
+
*/
|
|
15310
|
+
'sportsDetails'?: Array<UserEventSummarySportsDetailsInner>;
|
|
15116
15311
|
/**
|
|
15117
15312
|
*
|
|
15118
15313
|
* @type {Array<string>}
|
|
@@ -15120,6 +15315,31 @@ export interface UserEventSummary {
|
|
|
15120
15315
|
*/
|
|
15121
15316
|
'courts'?: Array<string>;
|
|
15122
15317
|
}
|
|
15318
|
+
/**
|
|
15319
|
+
*
|
|
15320
|
+
* @export
|
|
15321
|
+
* @interface UserEventSummarySportsDetailsInner
|
|
15322
|
+
*/
|
|
15323
|
+
export interface UserEventSummarySportsDetailsInner {
|
|
15324
|
+
/**
|
|
15325
|
+
*
|
|
15326
|
+
* @type {string}
|
|
15327
|
+
* @memberof UserEventSummarySportsDetailsInner
|
|
15328
|
+
*/
|
|
15329
|
+
'name'?: string | null;
|
|
15330
|
+
/**
|
|
15331
|
+
*
|
|
15332
|
+
* @type {string}
|
|
15333
|
+
* @memberof UserEventSummarySportsDetailsInner
|
|
15334
|
+
*/
|
|
15335
|
+
'key'?: string | null;
|
|
15336
|
+
/**
|
|
15337
|
+
*
|
|
15338
|
+
* @type {string}
|
|
15339
|
+
* @memberof UserEventSummarySportsDetailsInner
|
|
15340
|
+
*/
|
|
15341
|
+
'id': string;
|
|
15342
|
+
}
|
|
15123
15343
|
/**
|
|
15124
15344
|
*
|
|
15125
15345
|
* @export
|
|
@@ -24956,6 +25176,13 @@ export declare const SubscriptionsUserApiAxiosParamCreator: (configuration?: Con
|
|
|
24956
25176
|
* @throws {RequiredError}
|
|
24957
25177
|
*/
|
|
24958
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>;
|
|
24959
25186
|
};
|
|
24960
25187
|
/**
|
|
24961
25188
|
* SubscriptionsUserApi - functional programming interface
|
|
@@ -24991,6 +25218,13 @@ export declare const SubscriptionsUserApiFp: (configuration?: Configuration) =>
|
|
|
24991
25218
|
* @throws {RequiredError}
|
|
24992
25219
|
*/
|
|
24993
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>>;
|
|
24994
25228
|
};
|
|
24995
25229
|
/**
|
|
24996
25230
|
* SubscriptionsUserApi - factory interface
|
|
@@ -25024,6 +25258,13 @@ export declare const SubscriptionsUserApiFactory: (configuration?: Configuration
|
|
|
25024
25258
|
* @throws {RequiredError}
|
|
25025
25259
|
*/
|
|
25026
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>;
|
|
25027
25268
|
};
|
|
25028
25269
|
/**
|
|
25029
25270
|
* Request parameters for cancel operation in SubscriptionsUserApi.
|
|
@@ -25076,6 +25317,19 @@ export interface SubscriptionsUserApiSubscribeRequest {
|
|
|
25076
25317
|
*/
|
|
25077
25318
|
readonly subscribeRequestBody: SubscribeRequestBody;
|
|
25078
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
|
+
}
|
|
25079
25333
|
/**
|
|
25080
25334
|
* SubscriptionsUserApi - object-oriented interface
|
|
25081
25335
|
* @export
|
|
@@ -25114,6 +25368,14 @@ export declare class SubscriptionsUserApi extends BaseAPI {
|
|
|
25114
25368
|
* @memberof SubscriptionsUserApi
|
|
25115
25369
|
*/
|
|
25116
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, {}>>;
|
|
25117
25379
|
}
|
|
25118
25380
|
/**
|
|
25119
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/ClubEvent.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**imageSrc** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**sport** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**category** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**endDate** | **string** | | [default to undefined]
|
|
12
13
|
**startDate** | **string** | | [default to undefined]
|
|
13
14
|
**name** | **string** | | [default to undefined]
|
|
@@ -22,6 +23,7 @@ const instance: ClubEvent = {
|
|
|
22
23
|
imageSrc,
|
|
23
24
|
sport,
|
|
24
25
|
description,
|
|
26
|
+
category,
|
|
25
27
|
endDate,
|
|
26
28
|
startDate,
|
|
27
29
|
name,
|
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,
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**type** | **string** | | [default to undefined]
|
|
9
9
|
**title** | **string** | | [default to undefined]
|
|
10
|
+
**category** | **string** | | [optional] [default to undefined]
|
|
10
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**isAllDay** | **boolean** | | [default to undefined]
|
|
@@ -39,6 +40,7 @@ import { CreateEventRequest } from '@tennac-booking/sdk';
|
|
|
39
40
|
const instance: CreateEventRequest = {
|
|
40
41
|
type,
|
|
41
42
|
title,
|
|
43
|
+
category,
|
|
42
44
|
description,
|
|
43
45
|
photoUrl,
|
|
44
46
|
isAllDay,
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
|
|
10
10
|
**teamName** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**players** | **Array<string>** | | [default to undefined]
|
|
12
|
+
**partners** | [**Array<EventBookingDetailSummaryPartnersInner>**](EventBookingDetailSummaryPartnersInner.md) | | [optional] [default to undefined]
|
|
12
13
|
**paymentPerPlayers** | [**Array<EventBookingDetailSummaryPaymentPerPlayersInner>**](EventBookingDetailSummaryPaymentPerPlayersInner.md) | Détails des paiements par joueur pour cette réservation d\'événement. Remplace l\'ancien champ `invoices`. | [default to undefined]
|
|
13
14
|
**creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
14
15
|
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
@@ -29,6 +30,7 @@ const instance: EventBookingDetailSummary = {
|
|
|
29
30
|
status,
|
|
30
31
|
teamName,
|
|
31
32
|
players,
|
|
33
|
+
partners,
|
|
32
34
|
paymentPerPlayers,
|
|
33
35
|
creatorPaymentMethodId,
|
|
34
36
|
paymentMethodSetupCompleted,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# EventBookingDetailSummaryPartnersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**id** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { EventBookingDetailSummaryPartnersInner } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: EventBookingDetailSummaryPartnersInner = {
|
|
19
|
+
profilePicture,
|
|
20
|
+
lastName,
|
|
21
|
+
firstName,
|
|
22
|
+
id,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/EventResponse.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**clubId** | **string** | | [default to undefined]
|
|
10
10
|
**type** | **string** | | [default to undefined]
|
|
11
11
|
**title** | **string** | | [default to undefined]
|
|
12
|
+
**category** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**description** | **string** | | [optional] [default to undefined]
|
|
13
14
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
14
15
|
**isAllDay** | **boolean** | | [default to undefined]
|
|
@@ -48,6 +49,7 @@ const instance: EventResponse = {
|
|
|
48
49
|
clubId,
|
|
49
50
|
type,
|
|
50
51
|
title,
|
|
52
|
+
category,
|
|
51
53
|
description,
|
|
52
54
|
photoUrl,
|
|
53
55
|
isAllDay,
|
|
@@ -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
|
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**title** | **string** | | [default to undefined]
|
|
11
|
+
**category** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**baseStartDate** | **string** | | [default to undefined]
|
|
12
13
|
**baseEndDate** | **string** | | [default to undefined]
|
|
13
14
|
**isAllDay** | **boolean** | | [default to undefined]
|
|
@@ -27,6 +28,7 @@ const instance: RecurringDefinitionResponse = {
|
|
|
27
28
|
id,
|
|
28
29
|
clubId,
|
|
29
30
|
title,
|
|
31
|
+
category,
|
|
30
32
|
baseStartDate,
|
|
31
33
|
baseEndDate,
|
|
32
34
|
isAllDay,
|
|
@@ -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)
|