@tennac-booking/sdk 1.0.302 → 1.0.303

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/esm/api.d.ts CHANGED
@@ -536,6 +536,37 @@ export interface BookingCourtInfo {
536
536
  */
537
537
  'name'?: string | null;
538
538
  }
539
+ /**
540
+ *
541
+ * @export
542
+ * @interface BookingGuestCheckinResponse
543
+ */
544
+ export interface BookingGuestCheckinResponse {
545
+ /**
546
+ *
547
+ * @type {string}
548
+ * @memberof BookingGuestCheckinResponse
549
+ */
550
+ 'message': string;
551
+ /**
552
+ *
553
+ * @type {string}
554
+ * @memberof BookingGuestCheckinResponse
555
+ */
556
+ 'bookingId': string;
557
+ /**
558
+ *
559
+ * @type {BookingStatus}
560
+ * @memberof BookingGuestCheckinResponse
561
+ */
562
+ 'status': BookingStatus;
563
+ /**
564
+ *
565
+ * @type {PaymentCoverageResult}
566
+ * @memberof BookingGuestCheckinResponse
567
+ */
568
+ 'financials': PaymentCoverageResult;
569
+ }
539
570
  /**
540
571
  *
541
572
  * @export
@@ -1096,12 +1127,24 @@ export interface BookingPopulated {
1096
1127
  * @memberof BookingPopulated
1097
1128
  */
1098
1129
  'playersCount': number;
1130
+ /**
1131
+ *
1132
+ * @type {number}
1133
+ * @memberof BookingPopulated
1134
+ */
1135
+ 'guestPaymentsCount'?: number;
1099
1136
  /**
1100
1137
  *
1101
1138
  * @type {number}
1102
1139
  * @memberof BookingPopulated
1103
1140
  */
1104
1141
  'maxPlayersDesired'?: number;
1142
+ /**
1143
+ *
1144
+ * @type {PaymentDistributionResult}
1145
+ * @memberof BookingPopulated
1146
+ */
1147
+ 'paymentDistribution'?: PaymentDistributionResult;
1105
1148
  }
1106
1149
  /**
1107
1150
  *
@@ -1498,6 +1541,12 @@ export interface BookingSummary {
1498
1541
  * @memberof BookingSummary
1499
1542
  */
1500
1543
  'playersCount'?: number | null;
1544
+ /**
1545
+ *
1546
+ * @type {number}
1547
+ * @memberof BookingSummary
1548
+ */
1549
+ 'guestPaymentsCount'?: number | null;
1501
1550
  /**
1502
1551
  *
1503
1552
  * @type {string}
@@ -1570,6 +1619,12 @@ export interface BookingSummary {
1570
1619
  * @memberof BookingSummary
1571
1620
  */
1572
1621
  'totalAmount': number;
1622
+ /**
1623
+ *
1624
+ * @type {PaymentDistributionResult}
1625
+ * @memberof BookingSummary
1626
+ */
1627
+ 'paymentDistribution'?: PaymentDistributionResult;
1573
1628
  /**
1574
1629
  *
1575
1630
  * @type {string}
@@ -6479,6 +6534,43 @@ export interface EmailExistsResponse {
6479
6534
  */
6480
6535
  'verified': boolean;
6481
6536
  }
6537
+ /**
6538
+ *
6539
+ * @export
6540
+ * @interface ErrorResponse
6541
+ */
6542
+ export interface ErrorResponse {
6543
+ /**
6544
+ *
6545
+ * @type {string}
6546
+ * @memberof ErrorResponse
6547
+ */
6548
+ 'name': string;
6549
+ /**
6550
+ *
6551
+ * @type {string}
6552
+ * @memberof ErrorResponse
6553
+ */
6554
+ 'message': string;
6555
+ /**
6556
+ *
6557
+ * @type {string}
6558
+ * @memberof ErrorResponse
6559
+ */
6560
+ 'stack'?: string;
6561
+ /**
6562
+ *
6563
+ * @type {number}
6564
+ * @memberof ErrorResponse
6565
+ */
6566
+ 'statusCode': number;
6567
+ /**
6568
+ *
6569
+ * @type {any}
6570
+ * @memberof ErrorResponse
6571
+ */
6572
+ 'details'?: any;
6573
+ }
6482
6574
  /**
6483
6575
  *
6484
6576
  * @export
@@ -6540,12 +6632,6 @@ export interface EstimateEventPriceRequest {
6540
6632
  * @memberof EstimateEventPriceRequest
6541
6633
  */
6542
6634
  'isCreatorPayingAll'?: boolean;
6543
- /**
6544
- *
6545
- * @type {number}
6546
- * @memberof EstimateEventPriceRequest
6547
- */
6548
- 'reservedPlayerCount'?: number;
6549
6635
  /**
6550
6636
  *
6551
6637
  * @type {string}
@@ -6611,12 +6697,6 @@ export interface EstimateEventPriceResponse {
6611
6697
  * @memberof EstimateEventPriceResponse
6612
6698
  */
6613
6699
  'playersCount'?: number;
6614
- /**
6615
- *
6616
- * @type {number}
6617
- * @memberof EstimateEventPriceResponse
6618
- */
6619
- 'reservedPlayerCount'?: number;
6620
6700
  /**
6621
6701
  *
6622
6702
  * @type {number}
@@ -6969,6 +7049,18 @@ export interface EventBookingDetailResponse {
6969
7049
  * @interface EventBookingDetailResponseBooking
6970
7050
  */
6971
7051
  export interface EventBookingDetailResponseBooking {
7052
+ /**
7053
+ *
7054
+ * @type {PaymentDistributionResult}
7055
+ * @memberof EventBookingDetailResponseBooking
7056
+ */
7057
+ 'paymentDistribution'?: PaymentDistributionResult;
7058
+ /**
7059
+ *
7060
+ * @type {number}
7061
+ * @memberof EventBookingDetailResponseBooking
7062
+ */
7063
+ 'guestPaymentsCount'?: number;
6972
7064
  /**
6973
7065
  *
6974
7066
  * @type {number}
@@ -7207,6 +7299,37 @@ export interface EventBookingDetailSummaryPaymentPerPlayersInner {
7207
7299
  */
7208
7300
  'id': string;
7209
7301
  }
7302
+ /**
7303
+ *
7304
+ * @export
7305
+ * @interface EventBookingGuestCheckinResponse
7306
+ */
7307
+ export interface EventBookingGuestCheckinResponse {
7308
+ /**
7309
+ *
7310
+ * @type {string}
7311
+ * @memberof EventBookingGuestCheckinResponse
7312
+ */
7313
+ 'message': string;
7314
+ /**
7315
+ *
7316
+ * @type {string}
7317
+ * @memberof EventBookingGuestCheckinResponse
7318
+ */
7319
+ 'eventBookingId': string;
7320
+ /**
7321
+ *
7322
+ * @type {EventBookingStatus}
7323
+ * @memberof EventBookingGuestCheckinResponse
7324
+ */
7325
+ 'status': EventBookingStatus;
7326
+ /**
7327
+ *
7328
+ * @type {PaymentCoverageResult}
7329
+ * @memberof EventBookingGuestCheckinResponse
7330
+ */
7331
+ 'financials': PaymentCoverageResult;
7332
+ }
7210
7333
  /**
7211
7334
  *
7212
7335
  * @export
@@ -9653,6 +9776,12 @@ export interface JoinEventRequest {
9653
9776
  * @memberof JoinEventRequest
9654
9777
  */
9655
9778
  'players'?: Array<string>;
9779
+ /**
9780
+ *
9781
+ * @type {number}
9782
+ * @memberof JoinEventRequest
9783
+ */
9784
+ 'playersCount'?: number;
9656
9785
  /**
9657
9786
  *
9658
9787
  * @type {string}
@@ -12844,6 +12973,128 @@ export interface PaymentByPlayerInfo {
12844
12973
  */
12845
12974
  'accepted': boolean;
12846
12975
  }
12976
+ /**
12977
+ *
12978
+ * @export
12979
+ * @interface PaymentCoverageResult
12980
+ */
12981
+ export interface PaymentCoverageResult {
12982
+ /**
12983
+ *
12984
+ * @type {number}
12985
+ * @memberof PaymentCoverageResult
12986
+ */
12987
+ 'totalAmount': number;
12988
+ /**
12989
+ *
12990
+ * @type {number}
12991
+ * @memberof PaymentCoverageResult
12992
+ */
12993
+ 'playersCount': number;
12994
+ /**
12995
+ *
12996
+ * @type {number}
12997
+ * @memberof PaymentCoverageResult
12998
+ */
12999
+ 'registeredPlayersCount': number;
13000
+ /**
13001
+ *
13002
+ * @type {number}
13003
+ * @memberof PaymentCoverageResult
13004
+ */
13005
+ 'guestsCount': number;
13006
+ /**
13007
+ *
13008
+ * @type {number}
13009
+ * @memberof PaymentCoverageResult
13010
+ */
13011
+ 'guestPaymentsCount': number;
13012
+ /**
13013
+ *
13014
+ * @type {number}
13015
+ * @memberof PaymentCoverageResult
13016
+ */
13017
+ 'share': number;
13018
+ /**
13019
+ *
13020
+ * @type {number}
13021
+ * @memberof PaymentCoverageResult
13022
+ */
13023
+ 'registeredPaidAmount': number;
13024
+ /**
13025
+ *
13026
+ * @type {number}
13027
+ * @memberof PaymentCoverageResult
13028
+ */
13029
+ 'guestPaidAmount': number;
13030
+ /**
13031
+ *
13032
+ * @type {number}
13033
+ * @memberof PaymentCoverageResult
13034
+ */
13035
+ 'totalPaid': number;
13036
+ /**
13037
+ *
13038
+ * @type {number}
13039
+ * @memberof PaymentCoverageResult
13040
+ */
13041
+ 'remainingAmount': number;
13042
+ /**
13043
+ *
13044
+ * @type {boolean}
13045
+ * @memberof PaymentCoverageResult
13046
+ */
13047
+ 'isFullyPaid': boolean;
13048
+ }
13049
+ /**
13050
+ *
13051
+ * @export
13052
+ * @interface PaymentDistributionResult
13053
+ */
13054
+ export interface PaymentDistributionResult {
13055
+ /**
13056
+ *
13057
+ * @type {number}
13058
+ * @memberof PaymentDistributionResult
13059
+ */
13060
+ 'totalAmount': number;
13061
+ /**
13062
+ *
13063
+ * @type {number}
13064
+ * @memberof PaymentDistributionResult
13065
+ */
13066
+ 'paidAmount': number;
13067
+ /**
13068
+ *
13069
+ * @type {number}
13070
+ * @memberof PaymentDistributionResult
13071
+ */
13072
+ 'remainingAmount': number;
13073
+ /**
13074
+ *
13075
+ * @type {number}
13076
+ * @memberof PaymentDistributionResult
13077
+ */
13078
+ 'playersCount': number;
13079
+ /**
13080
+ *
13081
+ * @type {number}
13082
+ * @memberof PaymentDistributionResult
13083
+ */
13084
+ 'registeredPlayersCount': number;
13085
+ /**
13086
+ *
13087
+ * @type {number}
13088
+ * @memberof PaymentDistributionResult
13089
+ */
13090
+ 'guestsCount': number;
13091
+ /**
13092
+ *
13093
+ * @type {number}
13094
+ * @memberof PaymentDistributionResult
13095
+ */
13096
+ 'guestShare': number;
13097
+ }
12847
13098
  /**
12848
13099
  *
12849
13100
  * @export
@@ -15532,6 +15783,18 @@ export interface StaffEventBookingResponse {
15532
15783
  * @memberof StaffEventBookingResponse
15533
15784
  */
15534
15785
  'amount'?: number;
15786
+ /**
15787
+ *
15788
+ * @type {number}
15789
+ * @memberof StaffEventBookingResponse
15790
+ */
15791
+ 'guestPaymentsCount'?: number;
15792
+ /**
15793
+ *
15794
+ * @type {PaymentDistributionResult}
15795
+ * @memberof StaffEventBookingResponse
15796
+ */
15797
+ 'paymentDistribution'?: PaymentDistributionResult;
15535
15798
  /**
15536
15799
  *
15537
15800
  * @type {string}
@@ -20320,6 +20583,13 @@ export declare class BookingsManagerApi extends BaseAPI {
20320
20583
  * @export
20321
20584
  */
20322
20585
  export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
20586
+ /**
20587
+ * Check-in d\'un invité sans compte (paiement sur place)
20588
+ * @param {string} bookingId
20589
+ * @param {*} [options] Override http request option.
20590
+ * @throws {RequiredError}
20591
+ */
20592
+ bookingGuestCheckin: (bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20323
20593
  /**
20324
20594
  * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
20325
20595
  * @param {string} bookingId
@@ -20409,6 +20679,13 @@ export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configu
20409
20679
  * @export
20410
20680
  */
20411
20681
  export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
20682
+ /**
20683
+ * Check-in d\'un invité sans compte (paiement sur place)
20684
+ * @param {string} bookingId
20685
+ * @param {*} [options] Override http request option.
20686
+ * @throws {RequiredError}
20687
+ */
20688
+ bookingGuestCheckin(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingGuestCheckinResponse>>;
20412
20689
  /**
20413
20690
  * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
20414
20691
  * @param {string} bookingId
@@ -20498,6 +20775,13 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
20498
20775
  * @export
20499
20776
  */
20500
20777
  export declare const BookingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
20778
+ /**
20779
+ * Check-in d\'un invité sans compte (paiement sur place)
20780
+ * @param {BookingsStaffApiBookingGuestCheckinRequest} requestParameters Request parameters.
20781
+ * @param {*} [options] Override http request option.
20782
+ * @throws {RequiredError}
20783
+ */
20784
+ bookingGuestCheckin(requestParameters: BookingsStaffApiBookingGuestCheckinRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingGuestCheckinResponse>;
20501
20785
  /**
20502
20786
  * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
20503
20787
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
@@ -20576,6 +20860,19 @@ export declare const BookingsStaffApiFactory: (configuration?: Configuration, ba
20576
20860
  */
20577
20861
  listClubBookings(requestParameters?: BookingsStaffApiListClubBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffBookingsPaginatedResponse>;
20578
20862
  };
20863
+ /**
20864
+ * Request parameters for bookingGuestCheckin operation in BookingsStaffApi.
20865
+ * @export
20866
+ * @interface BookingsStaffApiBookingGuestCheckinRequest
20867
+ */
20868
+ export interface BookingsStaffApiBookingGuestCheckinRequest {
20869
+ /**
20870
+ *
20871
+ * @type {string}
20872
+ * @memberof BookingsStaffApiBookingGuestCheckin
20873
+ */
20874
+ readonly bookingId: string;
20875
+ }
20579
20876
  /**
20580
20877
  * Request parameters for checkInPlayer operation in BookingsStaffApi.
20581
20878
  * @export
@@ -20762,6 +21059,14 @@ export interface BookingsStaffApiListClubBookingsRequest {
20762
21059
  * @extends {BaseAPI}
20763
21060
  */
20764
21061
  export declare class BookingsStaffApi extends BaseAPI {
21062
+ /**
21063
+ * Check-in d\'un invité sans compte (paiement sur place)
21064
+ * @param {BookingsStaffApiBookingGuestCheckinRequest} requestParameters Request parameters.
21065
+ * @param {*} [options] Override http request option.
21066
+ * @throws {RequiredError}
21067
+ * @memberof BookingsStaffApi
21068
+ */
21069
+ bookingGuestCheckin(requestParameters: BookingsStaffApiBookingGuestCheckinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingGuestCheckinResponse, any, {}>>;
20765
21070
  /**
20766
21071
  * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
20767
21072
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
@@ -25812,6 +26117,74 @@ export declare class DefaultApi extends BaseAPI {
25812
26117
  */
25813
26118
  createClub(requestParameters: DefaultApiCreateClubRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubResponse, any, {}>>;
25814
26119
  }
26120
+ /**
26121
+ * EventBookingsStaffApi - axios parameter creator
26122
+ * @export
26123
+ */
26124
+ export declare const EventBookingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
26125
+ /**
26126
+ * Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
26127
+ * @param {string} eventBookingId
26128
+ * @param {*} [options] Override http request option.
26129
+ * @throws {RequiredError}
26130
+ */
26131
+ eventBookingGuestCheckin: (eventBookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26132
+ };
26133
+ /**
26134
+ * EventBookingsStaffApi - functional programming interface
26135
+ * @export
26136
+ */
26137
+ export declare const EventBookingsStaffApiFp: (configuration?: Configuration) => {
26138
+ /**
26139
+ * Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
26140
+ * @param {string} eventBookingId
26141
+ * @param {*} [options] Override http request option.
26142
+ * @throws {RequiredError}
26143
+ */
26144
+ eventBookingGuestCheckin(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventBookingGuestCheckinResponse>>;
26145
+ };
26146
+ /**
26147
+ * EventBookingsStaffApi - factory interface
26148
+ * @export
26149
+ */
26150
+ export declare const EventBookingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
26151
+ /**
26152
+ * Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
26153
+ * @param {EventBookingsStaffApiEventBookingGuestCheckinRequest} requestParameters Request parameters.
26154
+ * @param {*} [options] Override http request option.
26155
+ * @throws {RequiredError}
26156
+ */
26157
+ eventBookingGuestCheckin(requestParameters: EventBookingsStaffApiEventBookingGuestCheckinRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventBookingGuestCheckinResponse>;
26158
+ };
26159
+ /**
26160
+ * Request parameters for eventBookingGuestCheckin operation in EventBookingsStaffApi.
26161
+ * @export
26162
+ * @interface EventBookingsStaffApiEventBookingGuestCheckinRequest
26163
+ */
26164
+ export interface EventBookingsStaffApiEventBookingGuestCheckinRequest {
26165
+ /**
26166
+ *
26167
+ * @type {string}
26168
+ * @memberof EventBookingsStaffApiEventBookingGuestCheckin
26169
+ */
26170
+ readonly eventBookingId: string;
26171
+ }
26172
+ /**
26173
+ * EventBookingsStaffApi - object-oriented interface
26174
+ * @export
26175
+ * @class EventBookingsStaffApi
26176
+ * @extends {BaseAPI}
26177
+ */
26178
+ export declare class EventBookingsStaffApi extends BaseAPI {
26179
+ /**
26180
+ * Check-in d\'un invité sans compte (paiement sur place) pour une inscription événement
26181
+ * @param {EventBookingsStaffApiEventBookingGuestCheckinRequest} requestParameters Request parameters.
26182
+ * @param {*} [options] Override http request option.
26183
+ * @throws {RequiredError}
26184
+ * @memberof EventBookingsStaffApi
26185
+ */
26186
+ eventBookingGuestCheckin(requestParameters: EventBookingsStaffApiEventBookingGuestCheckinRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventBookingGuestCheckinResponse, any, {}>>;
26187
+ }
25815
26188
  /**
25816
26189
  * EventsApi - axios parameter creator
25817
26190
  * @export