@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/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}
@@ -5781,6 +5787,279 @@ export interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo {
5781
5787
  */
5782
5788
  'hasSubscription': boolean;
5783
5789
  }
5790
+ /**
5791
+ *
5792
+ * @export
5793
+ * @interface EventBookingDetailClubInfo
5794
+ */
5795
+ export interface EventBookingDetailClubInfo {
5796
+ /**
5797
+ *
5798
+ * @type {string}
5799
+ * @memberof EventBookingDetailClubInfo
5800
+ */
5801
+ 'id': string;
5802
+ /**
5803
+ *
5804
+ * @type {string}
5805
+ * @memberof EventBookingDetailClubInfo
5806
+ */
5807
+ 'name'?: string | null;
5808
+ /**
5809
+ *
5810
+ * @type {string}
5811
+ * @memberof EventBookingDetailClubInfo
5812
+ */
5813
+ 'picture'?: string | null;
5814
+ /**
5815
+ *
5816
+ * @type {string}
5817
+ * @memberof EventBookingDetailClubInfo
5818
+ */
5819
+ 'address'?: string | null;
5820
+ }
5821
+ /**
5822
+ *
5823
+ * @export
5824
+ * @interface EventBookingDetailEventSummary
5825
+ */
5826
+ export interface EventBookingDetailEventSummary {
5827
+ /**
5828
+ *
5829
+ * @type {string}
5830
+ * @memberof EventBookingDetailEventSummary
5831
+ */
5832
+ 'id': string;
5833
+ /**
5834
+ *
5835
+ * @type {string}
5836
+ * @memberof EventBookingDetailEventSummary
5837
+ */
5838
+ 'clubId': string;
5839
+ /**
5840
+ *
5841
+ * @type {string}
5842
+ * @memberof EventBookingDetailEventSummary
5843
+ */
5844
+ 'type': EventBookingDetailEventSummaryTypeEnum;
5845
+ /**
5846
+ *
5847
+ * @type {string}
5848
+ * @memberof EventBookingDetailEventSummary
5849
+ */
5850
+ 'title': string;
5851
+ /**
5852
+ *
5853
+ * @type {string}
5854
+ * @memberof EventBookingDetailEventSummary
5855
+ */
5856
+ 'category'?: string;
5857
+ /**
5858
+ *
5859
+ * @type {string}
5860
+ * @memberof EventBookingDetailEventSummary
5861
+ */
5862
+ 'description'?: string;
5863
+ /**
5864
+ *
5865
+ * @type {string}
5866
+ * @memberof EventBookingDetailEventSummary
5867
+ */
5868
+ 'photoUrl'?: string;
5869
+ /**
5870
+ *
5871
+ * @type {boolean}
5872
+ * @memberof EventBookingDetailEventSummary
5873
+ */
5874
+ 'isAllDay': boolean;
5875
+ /**
5876
+ *
5877
+ * @type {string}
5878
+ * @memberof EventBookingDetailEventSummary
5879
+ */
5880
+ 'date': string;
5881
+ /**
5882
+ *
5883
+ * @type {number}
5884
+ * @memberof EventBookingDetailEventSummary
5885
+ */
5886
+ 'startTime'?: number;
5887
+ /**
5888
+ *
5889
+ * @type {number}
5890
+ * @memberof EventBookingDetailEventSummary
5891
+ */
5892
+ 'endTime'?: number;
5893
+ /**
5894
+ *
5895
+ * @type {Array<string>}
5896
+ * @memberof EventBookingDetailEventSummary
5897
+ */
5898
+ 'courts': Array<string>;
5899
+ /**
5900
+ *
5901
+ * @type {Array<SportWithLevels>}
5902
+ * @memberof EventBookingDetailEventSummary
5903
+ */
5904
+ 'sports': Array<SportWithLevels>;
5905
+ /**
5906
+ *
5907
+ * @type {string}
5908
+ * @memberof EventBookingDetailEventSummary
5909
+ */
5910
+ 'recurringType': EventBookingDetailEventSummaryRecurringTypeEnum;
5911
+ /**
5912
+ *
5913
+ * @type {string}
5914
+ * @memberof EventBookingDetailEventSummary
5915
+ */
5916
+ 'recurrenceEndDate'?: string;
5917
+ /**
5918
+ *
5919
+ * @type {string}
5920
+ * @memberof EventBookingDetailEventSummary
5921
+ */
5922
+ 'participationType': EventBookingDetailEventSummaryParticipationTypeEnum;
5923
+ /**
5924
+ *
5925
+ * @type {number}
5926
+ * @memberof EventBookingDetailEventSummary
5927
+ */
5928
+ 'playersPerTeam'?: number;
5929
+ /**
5930
+ *
5931
+ * @type {Array<string | null>}
5932
+ * @memberof EventBookingDetailEventSummary
5933
+ */
5934
+ 'levels'?: Array<string | null>;
5935
+ /**
5936
+ *
5937
+ * @type {Array<EventSponsor>}
5938
+ * @memberof EventBookingDetailEventSummary
5939
+ */
5940
+ 'sponsors'?: Array<EventSponsor>;
5941
+ }
5942
+ export declare const EventBookingDetailEventSummaryTypeEnum: {
5943
+ readonly Event: "event";
5944
+ readonly Closure: "closure";
5945
+ };
5946
+ export type EventBookingDetailEventSummaryTypeEnum = typeof EventBookingDetailEventSummaryTypeEnum[keyof typeof EventBookingDetailEventSummaryTypeEnum];
5947
+ export declare const EventBookingDetailEventSummaryRecurringTypeEnum: {
5948
+ readonly Unique: "unique";
5949
+ readonly Daily: "daily";
5950
+ readonly Weekly: "weekly";
5951
+ readonly Monthly: "monthly";
5952
+ };
5953
+ export type EventBookingDetailEventSummaryRecurringTypeEnum = typeof EventBookingDetailEventSummaryRecurringTypeEnum[keyof typeof EventBookingDetailEventSummaryRecurringTypeEnum];
5954
+ export declare const EventBookingDetailEventSummaryParticipationTypeEnum: {
5955
+ readonly Solo: "solo";
5956
+ readonly Team: "team";
5957
+ };
5958
+ export type EventBookingDetailEventSummaryParticipationTypeEnum = typeof EventBookingDetailEventSummaryParticipationTypeEnum[keyof typeof EventBookingDetailEventSummaryParticipationTypeEnum];
5959
+ /**
5960
+ *
5961
+ * @export
5962
+ * @interface EventBookingDetailResponse
5963
+ */
5964
+ export interface EventBookingDetailResponse {
5965
+ /**
5966
+ *
5967
+ * @type {EventBookingDetailClubInfo}
5968
+ * @memberof EventBookingDetailResponse
5969
+ */
5970
+ 'club': EventBookingDetailClubInfo;
5971
+ /**
5972
+ *
5973
+ * @type {EventBookingDetailEventSummary}
5974
+ * @memberof EventBookingDetailResponse
5975
+ */
5976
+ 'event': EventBookingDetailEventSummary;
5977
+ /**
5978
+ *
5979
+ * @type {EventBookingDetailResponseBooking}
5980
+ * @memberof EventBookingDetailResponse
5981
+ */
5982
+ 'booking': EventBookingDetailResponseBooking;
5983
+ /**
5984
+ *
5985
+ * @type {Array<BookingPlayerPaymentSummary>}
5986
+ * @memberof EventBookingDetailResponse
5987
+ */
5988
+ 'players': Array<BookingPlayerPaymentSummary>;
5989
+ /**
5990
+ *
5991
+ * @type {Array<BookingHistoryPopulated>}
5992
+ * @memberof EventBookingDetailResponse
5993
+ */
5994
+ 'history': Array<BookingHistoryPopulated>;
5995
+ }
5996
+ /**
5997
+ *
5998
+ * @export
5999
+ * @interface EventBookingDetailResponseBooking
6000
+ */
6001
+ export interface EventBookingDetailResponseBooking {
6002
+ /**
6003
+ *
6004
+ * @type {number}
6005
+ * @memberof EventBookingDetailResponseBooking
6006
+ */
6007
+ 'participantsCount': number;
6008
+ /**
6009
+ *
6010
+ * @type {string}
6011
+ * @memberof EventBookingDetailResponseBooking
6012
+ */
6013
+ 'updatedAt': string;
6014
+ /**
6015
+ *
6016
+ * @type {string}
6017
+ * @memberof EventBookingDetailResponseBooking
6018
+ */
6019
+ 'createdAt': string;
6020
+ /**
6021
+ *
6022
+ * @type {string}
6023
+ * @memberof EventBookingDetailResponseBooking
6024
+ */
6025
+ 'limitCancellationDate'?: string | null;
6026
+ /**
6027
+ *
6028
+ * @type {string}
6029
+ * @memberof EventBookingDetailResponseBooking
6030
+ */
6031
+ 'limitSetupDate'?: string | null;
6032
+ /**
6033
+ *
6034
+ * @type {boolean}
6035
+ * @memberof EventBookingDetailResponseBooking
6036
+ */
6037
+ 'paymentMethodSetupCompleted': boolean;
6038
+ /**
6039
+ *
6040
+ * @type {boolean}
6041
+ * @memberof EventBookingDetailResponseBooking
6042
+ */
6043
+ 'isCreatorPayingAll': boolean;
6044
+ /**
6045
+ *
6046
+ * @type {string}
6047
+ * @memberof EventBookingDetailResponseBooking
6048
+ */
6049
+ 'teamName'?: string | null;
6050
+ /**
6051
+ *
6052
+ * @type {EventBookingStatus}
6053
+ * @memberof EventBookingDetailResponseBooking
6054
+ */
6055
+ 'status': EventBookingStatus;
6056
+ /**
6057
+ *
6058
+ * @type {string}
6059
+ * @memberof EventBookingDetailResponseBooking
6060
+ */
6061
+ 'id': string;
6062
+ }
5784
6063
  /**
5785
6064
  *
5786
6065
  * @export
@@ -10874,6 +11153,24 @@ export interface PublicSubscriptionPlanResponse {
10874
11153
  * @memberof PublicSubscriptionPlanResponse
10875
11154
  */
10876
11155
  'discount'?: SubscriptionPlanDiscountResponse;
11156
+ /**
11157
+ *
11158
+ * @type {boolean}
11159
+ * @memberof PublicSubscriptionPlanResponse
11160
+ */
11161
+ 'isUserSubscribed'?: boolean;
11162
+ /**
11163
+ *
11164
+ * @type {string}
11165
+ * @memberof PublicSubscriptionPlanResponse
11166
+ */
11167
+ 'userSubscriptionId'?: string | null;
11168
+ /**
11169
+ *
11170
+ * @type {string}
11171
+ * @memberof PublicSubscriptionPlanResponse
11172
+ */
11173
+ 'userSubscriptionStatus'?: string | null;
10877
11174
  }
10878
11175
  /**
10879
11176
  *
@@ -13099,6 +13396,86 @@ export interface SubscriptionMutationResponse {
13099
13396
  [key: string]: any;
13100
13397
  };
13101
13398
  }
13399
+ /**
13400
+ *
13401
+ * @export
13402
+ * @interface SubscriptionPaymentSheetRequest
13403
+ */
13404
+ export interface SubscriptionPaymentSheetRequest {
13405
+ /**
13406
+ *
13407
+ * @type {boolean}
13408
+ * @memberof SubscriptionPaymentSheetRequest
13409
+ */
13410
+ 'useEphemeralKey'?: boolean;
13411
+ /**
13412
+ *
13413
+ * @type {string}
13414
+ * @memberof SubscriptionPaymentSheetRequest
13415
+ */
13416
+ 'priceId': string;
13417
+ /**
13418
+ *
13419
+ * @type {string}
13420
+ * @memberof SubscriptionPaymentSheetRequest
13421
+ */
13422
+ 'clubId': string;
13423
+ }
13424
+ /**
13425
+ *
13426
+ * @export
13427
+ * @interface SubscriptionPaymentSheetResponse
13428
+ */
13429
+ export interface SubscriptionPaymentSheetResponse {
13430
+ /**
13431
+ *
13432
+ * @type {string}
13433
+ * @memberof SubscriptionPaymentSheetResponse
13434
+ */
13435
+ 'customerSessionClientSecret'?: string;
13436
+ /**
13437
+ *
13438
+ * @type {string}
13439
+ * @memberof SubscriptionPaymentSheetResponse
13440
+ */
13441
+ 'customerEphemeralKeySecret'?: string;
13442
+ /**
13443
+ *
13444
+ * @type {string}
13445
+ * @memberof SubscriptionPaymentSheetResponse
13446
+ */
13447
+ 'subscriptionId': string;
13448
+ /**
13449
+ *
13450
+ * @type {string}
13451
+ * @memberof SubscriptionPaymentSheetResponse
13452
+ */
13453
+ 'stripeAccountId': string;
13454
+ /**
13455
+ *
13456
+ * @type {string}
13457
+ * @memberof SubscriptionPaymentSheetResponse
13458
+ */
13459
+ 'publishableKey': string;
13460
+ /**
13461
+ *
13462
+ * @type {string}
13463
+ * @memberof SubscriptionPaymentSheetResponse
13464
+ */
13465
+ 'customerId': string;
13466
+ /**
13467
+ *
13468
+ * @type {string}
13469
+ * @memberof SubscriptionPaymentSheetResponse
13470
+ */
13471
+ 'setupIntentClientSecret'?: string;
13472
+ /**
13473
+ *
13474
+ * @type {string}
13475
+ * @memberof SubscriptionPaymentSheetResponse
13476
+ */
13477
+ 'paymentIntentClientSecret'?: string;
13478
+ }
13102
13479
  /**
13103
13480
  *
13104
13481
  * @export
@@ -25078,6 +25455,13 @@ export declare const SubscriptionsUserApiAxiosParamCreator: (configuration?: Con
25078
25455
  * @throws {RequiredError}
25079
25456
  */
25080
25457
  subscribe: (subscribeRequestBody: SubscribeRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25458
+ /**
25459
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
25460
+ * @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
25461
+ * @param {*} [options] Override http request option.
25462
+ * @throws {RequiredError}
25463
+ */
25464
+ subscriptionPaymentSheet: (subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25081
25465
  };
25082
25466
  /**
25083
25467
  * SubscriptionsUserApi - functional programming interface
@@ -25113,6 +25497,13 @@ export declare const SubscriptionsUserApiFp: (configuration?: Configuration) =>
25113
25497
  * @throws {RequiredError}
25114
25498
  */
25115
25499
  subscribe(subscribeRequestBody: SubscribeRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionMutationResponse>>;
25500
+ /**
25501
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
25502
+ * @param {SubscriptionPaymentSheetRequest} subscriptionPaymentSheetRequest
25503
+ * @param {*} [options] Override http request option.
25504
+ * @throws {RequiredError}
25505
+ */
25506
+ subscriptionPaymentSheet(subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>>;
25116
25507
  };
25117
25508
  /**
25118
25509
  * SubscriptionsUserApi - factory interface
@@ -25146,6 +25537,13 @@ export declare const SubscriptionsUserApiFactory: (configuration?: Configuration
25146
25537
  * @throws {RequiredError}
25147
25538
  */
25148
25539
  subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionMutationResponse>;
25540
+ /**
25541
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
25542
+ * @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
25543
+ * @param {*} [options] Override http request option.
25544
+ * @throws {RequiredError}
25545
+ */
25546
+ subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse>;
25149
25547
  };
25150
25548
  /**
25151
25549
  * Request parameters for cancel operation in SubscriptionsUserApi.
@@ -25198,6 +25596,19 @@ export interface SubscriptionsUserApiSubscribeRequest {
25198
25596
  */
25199
25597
  readonly subscribeRequestBody: SubscribeRequestBody;
25200
25598
  }
25599
+ /**
25600
+ * Request parameters for subscriptionPaymentSheet operation in SubscriptionsUserApi.
25601
+ * @export
25602
+ * @interface SubscriptionsUserApiSubscriptionPaymentSheetRequest
25603
+ */
25604
+ export interface SubscriptionsUserApiSubscriptionPaymentSheetRequest {
25605
+ /**
25606
+ *
25607
+ * @type {SubscriptionPaymentSheetRequest}
25608
+ * @memberof SubscriptionsUserApiSubscriptionPaymentSheet
25609
+ */
25610
+ readonly subscriptionPaymentSheetRequest: SubscriptionPaymentSheetRequest;
25611
+ }
25201
25612
  /**
25202
25613
  * SubscriptionsUserApi - object-oriented interface
25203
25614
  * @export
@@ -25236,6 +25647,14 @@ export declare class SubscriptionsUserApi extends BaseAPI {
25236
25647
  * @memberof SubscriptionsUserApi
25237
25648
  */
25238
25649
  subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionMutationResponse, any, {}>>;
25650
+ /**
25651
+ * Prépare un PaymentSheet Stripe pour souscrire à un plan (paiement obligatoire)
25652
+ * @param {SubscriptionsUserApiSubscriptionPaymentSheetRequest} requestParameters Request parameters.
25653
+ * @param {*} [options] Override http request option.
25654
+ * @throws {RequiredError}
25655
+ * @memberof SubscriptionsUserApi
25656
+ */
25657
+ subscriptionPaymentSheet(requestParameters: SubscriptionsUserApiSubscriptionPaymentSheetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionPaymentSheetResponse, any, {}>>;
25239
25658
  }
25240
25659
  /**
25241
25660
  * SumUpApi - axios parameter creator
@@ -25986,6 +26405,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
25986
26405
  * @throws {RequiredError}
25987
26406
  */
25988
26407
  getBookingDetail: (bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26408
+ /**
26409
+ *
26410
+ * @param {string} eventBookingId
26411
+ * @param {*} [options] Override http request option.
26412
+ * @throws {RequiredError}
26413
+ */
26414
+ getEventBookingDetail: (eventBookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25989
26415
  /**
25990
26416
  *
25991
26417
  * @param {*} [options] Override http request option.
@@ -26346,6 +26772,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
26346
26772
  * @throws {RequiredError}
26347
26773
  */
26348
26774
  getBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingSummary>>;
26775
+ /**
26776
+ *
26777
+ * @param {string} eventBookingId
26778
+ * @param {*} [options] Override http request option.
26779
+ * @throws {RequiredError}
26780
+ */
26781
+ getEventBookingDetail(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventBookingDetailResponse>>;
26349
26782
  /**
26350
26783
  *
26351
26784
  * @param {*} [options] Override http request option.
@@ -26714,6 +27147,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
26714
27147
  * @throws {RequiredError}
26715
27148
  */
26716
27149
  getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingSummary>;
27150
+ /**
27151
+ *
27152
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
27153
+ * @param {*} [options] Override http request option.
27154
+ * @throws {RequiredError}
27155
+ */
27156
+ getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventBookingDetailResponse>;
26717
27157
  /**
26718
27158
  *
26719
27159
  * @param {*} [options] Override http request option.
@@ -27080,6 +27520,19 @@ export interface UsersApiGetBookingDetailRequest {
27080
27520
  */
27081
27521
  readonly bookingId: string;
27082
27522
  }
27523
+ /**
27524
+ * Request parameters for getEventBookingDetail operation in UsersApi.
27525
+ * @export
27526
+ * @interface UsersApiGetEventBookingDetailRequest
27527
+ */
27528
+ export interface UsersApiGetEventBookingDetailRequest {
27529
+ /**
27530
+ *
27531
+ * @type {string}
27532
+ * @memberof UsersApiGetEventBookingDetail
27533
+ */
27534
+ readonly eventBookingId: string;
27535
+ }
27083
27536
  /**
27084
27537
  * Request parameters for getNearestClubs operation in UsersApi.
27085
27538
  * @export
@@ -27733,6 +28186,14 @@ export declare class UsersApi extends BaseAPI {
27733
28186
  * @memberof UsersApi
27734
28187
  */
27735
28188
  getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingSummary, any, {}>>;
28189
+ /**
28190
+ *
28191
+ * @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
28192
+ * @param {*} [options] Override http request option.
28193
+ * @throws {RequiredError}
28194
+ * @memberof UsersApi
28195
+ */
28196
+ getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventBookingDetailResponse, any, {}>>;
27736
28197
  /**
27737
28198
  *
27738
28199
  * @param {*} [options] Override http request option.