@tennac-booking/sdk 1.0.301 → 1.0.302

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.
@@ -190,9 +190,10 @@ docs/DiscountType.md
190
190
  docs/DuplicateClubDayScheduleRequest.md
191
191
  docs/EmailExistsRequestBody.md
192
192
  docs/EmailExistsResponse.md
193
- docs/EstimateEventPrice200Response.md
193
+ docs/EstimateEventPlayerPrice.md
194
194
  docs/EstimateEventPriceRequest.md
195
- docs/EstimateEventPriceRequestSharesInner.md
195
+ docs/EstimateEventPriceResponse.md
196
+ docs/EstimateEventPriceShare.md
196
197
  docs/EstimateOpenBookingJoinRequest.md
197
198
  docs/EstimateOpenEventBookingJoinPrice200Response.md
198
199
  docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md
package/README.md CHANGED
@@ -512,9 +512,10 @@ Class | Method | HTTP request | Description
512
512
  - [DuplicateClubDayScheduleRequest](docs/DuplicateClubDayScheduleRequest.md)
513
513
  - [EmailExistsRequestBody](docs/EmailExistsRequestBody.md)
514
514
  - [EmailExistsResponse](docs/EmailExistsResponse.md)
515
- - [EstimateEventPrice200Response](docs/EstimateEventPrice200Response.md)
515
+ - [EstimateEventPlayerPrice](docs/EstimateEventPlayerPrice.md)
516
516
  - [EstimateEventPriceRequest](docs/EstimateEventPriceRequest.md)
517
- - [EstimateEventPriceRequestSharesInner](docs/EstimateEventPriceRequestSharesInner.md)
517
+ - [EstimateEventPriceResponse](docs/EstimateEventPriceResponse.md)
518
+ - [EstimateEventPriceShare](docs/EstimateEventPriceShare.md)
518
519
  - [EstimateOpenBookingJoinRequest](docs/EstimateOpenBookingJoinRequest.md)
519
520
  - [EstimateOpenEventBookingJoinPrice200Response](docs/EstimateOpenEventBookingJoinPrice200Response.md)
520
521
  - [EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo](docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md)
package/api.ts CHANGED
@@ -6585,95 +6585,184 @@ export interface EmailExistsResponse {
6585
6585
  /**
6586
6586
  *
6587
6587
  * @export
6588
- * @interface EstimateEventPrice200Response
6588
+ * @interface EstimateEventPlayerPrice
6589
6589
  */
6590
- export interface EstimateEventPrice200Response {
6590
+ export interface EstimateEventPlayerPrice {
6591
6591
  /**
6592
- * Construct a type with a set of properties K of type T
6593
- * @type {{ [key: string]: number; }}
6594
- * @memberof EstimateEventPrice200Response
6592
+ *
6593
+ * @type {string}
6594
+ * @memberof EstimateEventPlayerPrice
6595
6595
  */
6596
- 'perPayerAfterCredits'?: { [key: string]: number; };
6596
+ 'playerId': string;
6597
+ /**
6598
+ *
6599
+ * @type {string}
6600
+ * @memberof EstimateEventPlayerPrice
6601
+ */
6602
+ 'firstName'?: string;
6597
6603
  /**
6598
6604
  *
6599
6605
  * @type {number}
6600
- * @memberof EstimateEventPrice200Response
6606
+ * @memberof EstimateEventPlayerPrice
6601
6607
  */
6602
- 'totalAfterCredits'?: number;
6608
+ 'price': number;
6609
+ }
6610
+ /**
6611
+ *
6612
+ * @export
6613
+ * @interface EstimateEventPriceRequest
6614
+ */
6615
+ export interface EstimateEventPriceRequest {
6616
+ /**
6617
+ *
6618
+ * @type {Array<string>}
6619
+ * @memberof EstimateEventPriceRequest
6620
+ */
6621
+ 'playerIds': Array<string>;
6622
+ /**
6623
+ *
6624
+ * @type {Array<EstimateEventPriceShare>}
6625
+ * @memberof EstimateEventPriceRequest
6626
+ */
6627
+ 'shares'?: Array<EstimateEventPriceShare>;
6628
+ /**
6629
+ *
6630
+ * @type {PaymentMethod}
6631
+ * @memberof EstimateEventPriceRequest
6632
+ */
6633
+ 'paymentMethod'?: PaymentMethod;
6603
6634
  /**
6604
6635
  *
6605
6636
  * @type {number}
6606
- * @memberof EstimateEventPrice200Response
6637
+ * @memberof EstimateEventPriceRequest
6607
6638
  */
6608
- 'creditsAppliedInCents'?: number;
6639
+ 'playersCount'?: number;
6609
6640
  /**
6610
6641
  *
6611
- * @type {string}
6612
- * @memberof EstimateEventPrice200Response
6642
+ * @type {boolean}
6643
+ * @memberof EstimateEventPriceRequest
6613
6644
  */
6614
- 'currency': string;
6645
+ 'isCreatorPayingAll'?: boolean;
6615
6646
  /**
6616
6647
  *
6617
6648
  * @type {number}
6618
- * @memberof EstimateEventPrice200Response
6649
+ * @memberof EstimateEventPriceRequest
6619
6650
  */
6620
- 'total': number;
6651
+ 'reservedPlayerCount'?: number;
6621
6652
  /**
6622
- * Construct a type with a set of properties K of type T
6623
- * @type {{ [key: string]: number; }}
6624
- * @memberof EstimateEventPrice200Response
6653
+ *
6654
+ * @type {string}
6655
+ * @memberof EstimateEventPriceRequest
6625
6656
  */
6626
- 'perPlayer': { [key: string]: number; };
6657
+ 'creatorId'?: string;
6658
+ /**
6659
+ *
6660
+ * @type {number}
6661
+ * @memberof EstimateEventPriceRequest
6662
+ */
6663
+ 'creditToUseInCents'?: number;
6627
6664
  }
6665
+
6666
+
6628
6667
  /**
6629
6668
  *
6630
6669
  * @export
6631
- * @interface EstimateEventPriceRequest
6670
+ * @interface EstimateEventPriceResponse
6632
6671
  */
6633
- export interface EstimateEventPriceRequest {
6672
+ export interface EstimateEventPriceResponse {
6673
+ /**
6674
+ * Construct a type with a set of properties K of type T
6675
+ * @type {{ [key: string]: number; }}
6676
+ * @memberof EstimateEventPriceResponse
6677
+ */
6678
+ 'perPlayer': { [key: string]: number; };
6679
+ /**
6680
+ *
6681
+ * @type {Array<EstimateEventPlayerPrice>}
6682
+ * @memberof EstimateEventPriceResponse
6683
+ */
6684
+ 'playerPrices': Array<EstimateEventPlayerPrice>;
6685
+ /**
6686
+ * Construct a type with a set of properties K of type T
6687
+ * @type {{ [key: string]: number; }}
6688
+ * @memberof EstimateEventPriceResponse
6689
+ */
6690
+ 'perPayer': { [key: string]: number; };
6634
6691
  /**
6635
6692
  *
6636
6693
  * @type {number}
6637
- * @memberof EstimateEventPriceRequest
6694
+ * @memberof EstimateEventPriceResponse
6638
6695
  */
6639
- 'creditToUseInCents'?: number;
6696
+ 'total': number;
6640
6697
  /**
6641
6698
  *
6642
6699
  * @type {string}
6643
- * @memberof EstimateEventPriceRequest
6700
+ * @memberof EstimateEventPriceResponse
6644
6701
  */
6645
- 'creatorId'?: string;
6702
+ 'currency': string;
6646
6703
  /**
6647
6704
  *
6648
- * @type {Array<EstimateEventPriceRequestSharesInner>}
6649
- * @memberof EstimateEventPriceRequest
6705
+ * @type {PaymentMethod}
6706
+ * @memberof EstimateEventPriceResponse
6650
6707
  */
6651
- 'shares'?: Array<EstimateEventPriceRequestSharesInner>;
6708
+ 'paymentMethod'?: PaymentMethod;
6652
6709
  /**
6653
6710
  *
6654
- * @type {Array<string>}
6655
- * @memberof EstimateEventPriceRequest
6711
+ * @type {number}
6712
+ * @memberof EstimateEventPriceResponse
6656
6713
  */
6657
- 'playerIds': Array<string>;
6714
+ 'playersCount'?: number;
6715
+ /**
6716
+ *
6717
+ * @type {number}
6718
+ * @memberof EstimateEventPriceResponse
6719
+ */
6720
+ 'reservedPlayerCount'?: number;
6721
+ /**
6722
+ *
6723
+ * @type {number}
6724
+ * @memberof EstimateEventPriceResponse
6725
+ */
6726
+ 'missingParticipantsCount'?: number;
6727
+ /**
6728
+ *
6729
+ * @type {number}
6730
+ * @memberof EstimateEventPriceResponse
6731
+ */
6732
+ 'creditsAppliedInCents'?: number;
6733
+ /**
6734
+ *
6735
+ * @type {number}
6736
+ * @memberof EstimateEventPriceResponse
6737
+ */
6738
+ 'totalAfterCredits'?: number;
6739
+ /**
6740
+ * Construct a type with a set of properties K of type T
6741
+ * @type {{ [key: string]: number; }}
6742
+ * @memberof EstimateEventPriceResponse
6743
+ */
6744
+ 'perPayerAfterCredits'?: { [key: string]: number; };
6658
6745
  }
6746
+
6747
+
6659
6748
  /**
6660
6749
  *
6661
6750
  * @export
6662
- * @interface EstimateEventPriceRequestSharesInner
6751
+ * @interface EstimateEventPriceShare
6663
6752
  */
6664
- export interface EstimateEventPriceRequestSharesInner {
6753
+ export interface EstimateEventPriceShare {
6665
6754
  /**
6666
6755
  *
6667
- * @type {Array<string>}
6668
- * @memberof EstimateEventPriceRequestSharesInner
6756
+ * @type {string}
6757
+ * @memberof EstimateEventPriceShare
6669
6758
  */
6670
- 'paysAlsoFor'?: Array<string>;
6759
+ 'playerId': string;
6671
6760
  /**
6672
6761
  *
6673
- * @type {string}
6674
- * @memberof EstimateEventPriceRequestSharesInner
6762
+ * @type {Array<string>}
6763
+ * @memberof EstimateEventPriceShare
6675
6764
  */
6676
- 'playerId': string;
6765
+ 'paysAlsoFor'?: Array<string>;
6677
6766
  }
6678
6767
  /**
6679
6768
  *
@@ -32817,7 +32906,7 @@ export const EventsApiFp = function(configuration?: Configuration) {
32817
32906
  * @param {*} [options] Override http request option.
32818
32907
  * @throws {RequiredError}
32819
32908
  */
32820
- async estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>> {
32909
+ async estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPriceResponse>> {
32821
32910
  const localVarAxiosArgs = await localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
32822
32911
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32823
32912
  const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateEventPrice']?.[localVarOperationServerIndex]?.url;
@@ -33015,7 +33104,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
33015
33104
  * @param {*} [options] Override http request option.
33016
33105
  * @throws {RequiredError}
33017
33106
  */
33018
- estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response> {
33107
+ estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPriceResponse> {
33019
33108
  return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
33020
33109
  },
33021
33110
  /**
package/dist/api.d.ts CHANGED
@@ -6482,99 +6482,186 @@ export interface EmailExistsResponse {
6482
6482
  /**
6483
6483
  *
6484
6484
  * @export
6485
- * @interface EstimateEventPrice200Response
6485
+ * @interface EstimateEventPlayerPrice
6486
6486
  */
6487
- export interface EstimateEventPrice200Response {
6487
+ export interface EstimateEventPlayerPrice {
6488
6488
  /**
6489
- * Construct a type with a set of properties K of type T
6490
- * @type {{ [key: string]: number; }}
6491
- * @memberof EstimateEventPrice200Response
6489
+ *
6490
+ * @type {string}
6491
+ * @memberof EstimateEventPlayerPrice
6492
6492
  */
6493
- 'perPayerAfterCredits'?: {
6494
- [key: string]: number;
6495
- };
6493
+ 'playerId': string;
6494
+ /**
6495
+ *
6496
+ * @type {string}
6497
+ * @memberof EstimateEventPlayerPrice
6498
+ */
6499
+ 'firstName'?: string;
6496
6500
  /**
6497
6501
  *
6498
6502
  * @type {number}
6499
- * @memberof EstimateEventPrice200Response
6503
+ * @memberof EstimateEventPlayerPrice
6500
6504
  */
6501
- 'totalAfterCredits'?: number;
6505
+ 'price': number;
6506
+ }
6507
+ /**
6508
+ *
6509
+ * @export
6510
+ * @interface EstimateEventPriceRequest
6511
+ */
6512
+ export interface EstimateEventPriceRequest {
6513
+ /**
6514
+ *
6515
+ * @type {Array<string>}
6516
+ * @memberof EstimateEventPriceRequest
6517
+ */
6518
+ 'playerIds': Array<string>;
6519
+ /**
6520
+ *
6521
+ * @type {Array<EstimateEventPriceShare>}
6522
+ * @memberof EstimateEventPriceRequest
6523
+ */
6524
+ 'shares'?: Array<EstimateEventPriceShare>;
6525
+ /**
6526
+ *
6527
+ * @type {PaymentMethod}
6528
+ * @memberof EstimateEventPriceRequest
6529
+ */
6530
+ 'paymentMethod'?: PaymentMethod;
6502
6531
  /**
6503
6532
  *
6504
6533
  * @type {number}
6505
- * @memberof EstimateEventPrice200Response
6534
+ * @memberof EstimateEventPriceRequest
6506
6535
  */
6507
- 'creditsAppliedInCents'?: number;
6536
+ 'playersCount'?: number;
6537
+ /**
6538
+ *
6539
+ * @type {boolean}
6540
+ * @memberof EstimateEventPriceRequest
6541
+ */
6542
+ 'isCreatorPayingAll'?: boolean;
6543
+ /**
6544
+ *
6545
+ * @type {number}
6546
+ * @memberof EstimateEventPriceRequest
6547
+ */
6548
+ 'reservedPlayerCount'?: number;
6508
6549
  /**
6509
6550
  *
6510
6551
  * @type {string}
6511
- * @memberof EstimateEventPrice200Response
6552
+ * @memberof EstimateEventPriceRequest
6512
6553
  */
6513
- 'currency': string;
6554
+ 'creatorId'?: string;
6514
6555
  /**
6515
6556
  *
6516
6557
  * @type {number}
6517
- * @memberof EstimateEventPrice200Response
6558
+ * @memberof EstimateEventPriceRequest
6518
6559
  */
6519
- 'total': number;
6560
+ 'creditToUseInCents'?: number;
6561
+ }
6562
+ /**
6563
+ *
6564
+ * @export
6565
+ * @interface EstimateEventPriceResponse
6566
+ */
6567
+ export interface EstimateEventPriceResponse {
6520
6568
  /**
6521
6569
  * Construct a type with a set of properties K of type T
6522
6570
  * @type {{ [key: string]: number; }}
6523
- * @memberof EstimateEventPrice200Response
6571
+ * @memberof EstimateEventPriceResponse
6524
6572
  */
6525
6573
  'perPlayer': {
6526
6574
  [key: string]: number;
6527
6575
  };
6528
- }
6529
- /**
6530
- *
6531
- * @export
6532
- * @interface EstimateEventPriceRequest
6533
- */
6534
- export interface EstimateEventPriceRequest {
6576
+ /**
6577
+ *
6578
+ * @type {Array<EstimateEventPlayerPrice>}
6579
+ * @memberof EstimateEventPriceResponse
6580
+ */
6581
+ 'playerPrices': Array<EstimateEventPlayerPrice>;
6582
+ /**
6583
+ * Construct a type with a set of properties K of type T
6584
+ * @type {{ [key: string]: number; }}
6585
+ * @memberof EstimateEventPriceResponse
6586
+ */
6587
+ 'perPayer': {
6588
+ [key: string]: number;
6589
+ };
6535
6590
  /**
6536
6591
  *
6537
6592
  * @type {number}
6538
- * @memberof EstimateEventPriceRequest
6593
+ * @memberof EstimateEventPriceResponse
6539
6594
  */
6540
- 'creditToUseInCents'?: number;
6595
+ 'total': number;
6541
6596
  /**
6542
6597
  *
6543
6598
  * @type {string}
6544
- * @memberof EstimateEventPriceRequest
6599
+ * @memberof EstimateEventPriceResponse
6545
6600
  */
6546
- 'creatorId'?: string;
6601
+ 'currency': string;
6547
6602
  /**
6548
6603
  *
6549
- * @type {Array<EstimateEventPriceRequestSharesInner>}
6550
- * @memberof EstimateEventPriceRequest
6604
+ * @type {PaymentMethod}
6605
+ * @memberof EstimateEventPriceResponse
6551
6606
  */
6552
- 'shares'?: Array<EstimateEventPriceRequestSharesInner>;
6607
+ 'paymentMethod'?: PaymentMethod;
6553
6608
  /**
6554
6609
  *
6555
- * @type {Array<string>}
6556
- * @memberof EstimateEventPriceRequest
6610
+ * @type {number}
6611
+ * @memberof EstimateEventPriceResponse
6557
6612
  */
6558
- 'playerIds': Array<string>;
6613
+ 'playersCount'?: number;
6614
+ /**
6615
+ *
6616
+ * @type {number}
6617
+ * @memberof EstimateEventPriceResponse
6618
+ */
6619
+ 'reservedPlayerCount'?: number;
6620
+ /**
6621
+ *
6622
+ * @type {number}
6623
+ * @memberof EstimateEventPriceResponse
6624
+ */
6625
+ 'missingParticipantsCount'?: number;
6626
+ /**
6627
+ *
6628
+ * @type {number}
6629
+ * @memberof EstimateEventPriceResponse
6630
+ */
6631
+ 'creditsAppliedInCents'?: number;
6632
+ /**
6633
+ *
6634
+ * @type {number}
6635
+ * @memberof EstimateEventPriceResponse
6636
+ */
6637
+ 'totalAfterCredits'?: number;
6638
+ /**
6639
+ * Construct a type with a set of properties K of type T
6640
+ * @type {{ [key: string]: number; }}
6641
+ * @memberof EstimateEventPriceResponse
6642
+ */
6643
+ 'perPayerAfterCredits'?: {
6644
+ [key: string]: number;
6645
+ };
6559
6646
  }
6560
6647
  /**
6561
6648
  *
6562
6649
  * @export
6563
- * @interface EstimateEventPriceRequestSharesInner
6650
+ * @interface EstimateEventPriceShare
6564
6651
  */
6565
- export interface EstimateEventPriceRequestSharesInner {
6652
+ export interface EstimateEventPriceShare {
6566
6653
  /**
6567
6654
  *
6568
- * @type {Array<string>}
6569
- * @memberof EstimateEventPriceRequestSharesInner
6655
+ * @type {string}
6656
+ * @memberof EstimateEventPriceShare
6570
6657
  */
6571
- 'paysAlsoFor'?: Array<string>;
6658
+ 'playerId': string;
6572
6659
  /**
6573
6660
  *
6574
- * @type {string}
6575
- * @memberof EstimateEventPriceRequestSharesInner
6661
+ * @type {Array<string>}
6662
+ * @memberof EstimateEventPriceShare
6576
6663
  */
6577
- 'playerId': string;
6664
+ 'paysAlsoFor'?: Array<string>;
6578
6665
  }
6579
6666
  /**
6580
6667
  *
@@ -25869,7 +25956,7 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
25869
25956
  * @param {*} [options] Override http request option.
25870
25957
  * @throws {RequiredError}
25871
25958
  */
25872
- estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>>;
25959
+ estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPriceResponse>>;
25873
25960
  /**
25874
25961
  * Estimer le prix pour rejoindre un événement ouvert
25875
25962
  * @param {string} eventBookingId
@@ -25991,7 +26078,7 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
25991
26078
  * @param {*} [options] Override http request option.
25992
26079
  * @throws {RequiredError}
25993
26080
  */
25994
- estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response>;
26081
+ estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPriceResponse>;
25995
26082
  /**
25996
26083
  * Estimer le prix pour rejoindre un événement ouvert
25997
26084
  * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
@@ -26379,7 +26466,7 @@ export declare class EventsApi extends BaseAPI {
26379
26466
  * @throws {RequiredError}
26380
26467
  * @memberof EventsApi
26381
26468
  */
26382
- estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateEventPrice200Response, any, {}>>;
26469
+ estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateEventPriceResponse, any, {}>>;
26383
26470
  /**
26384
26471
  * Estimer le prix pour rejoindre un événement ouvert
26385
26472
  * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -6482,99 +6482,186 @@ export interface EmailExistsResponse {
6482
6482
  /**
6483
6483
  *
6484
6484
  * @export
6485
- * @interface EstimateEventPrice200Response
6485
+ * @interface EstimateEventPlayerPrice
6486
6486
  */
6487
- export interface EstimateEventPrice200Response {
6487
+ export interface EstimateEventPlayerPrice {
6488
6488
  /**
6489
- * Construct a type with a set of properties K of type T
6490
- * @type {{ [key: string]: number; }}
6491
- * @memberof EstimateEventPrice200Response
6489
+ *
6490
+ * @type {string}
6491
+ * @memberof EstimateEventPlayerPrice
6492
6492
  */
6493
- 'perPayerAfterCredits'?: {
6494
- [key: string]: number;
6495
- };
6493
+ 'playerId': string;
6494
+ /**
6495
+ *
6496
+ * @type {string}
6497
+ * @memberof EstimateEventPlayerPrice
6498
+ */
6499
+ 'firstName'?: string;
6496
6500
  /**
6497
6501
  *
6498
6502
  * @type {number}
6499
- * @memberof EstimateEventPrice200Response
6503
+ * @memberof EstimateEventPlayerPrice
6500
6504
  */
6501
- 'totalAfterCredits'?: number;
6505
+ 'price': number;
6506
+ }
6507
+ /**
6508
+ *
6509
+ * @export
6510
+ * @interface EstimateEventPriceRequest
6511
+ */
6512
+ export interface EstimateEventPriceRequest {
6513
+ /**
6514
+ *
6515
+ * @type {Array<string>}
6516
+ * @memberof EstimateEventPriceRequest
6517
+ */
6518
+ 'playerIds': Array<string>;
6519
+ /**
6520
+ *
6521
+ * @type {Array<EstimateEventPriceShare>}
6522
+ * @memberof EstimateEventPriceRequest
6523
+ */
6524
+ 'shares'?: Array<EstimateEventPriceShare>;
6525
+ /**
6526
+ *
6527
+ * @type {PaymentMethod}
6528
+ * @memberof EstimateEventPriceRequest
6529
+ */
6530
+ 'paymentMethod'?: PaymentMethod;
6502
6531
  /**
6503
6532
  *
6504
6533
  * @type {number}
6505
- * @memberof EstimateEventPrice200Response
6534
+ * @memberof EstimateEventPriceRequest
6506
6535
  */
6507
- 'creditsAppliedInCents'?: number;
6536
+ 'playersCount'?: number;
6537
+ /**
6538
+ *
6539
+ * @type {boolean}
6540
+ * @memberof EstimateEventPriceRequest
6541
+ */
6542
+ 'isCreatorPayingAll'?: boolean;
6543
+ /**
6544
+ *
6545
+ * @type {number}
6546
+ * @memberof EstimateEventPriceRequest
6547
+ */
6548
+ 'reservedPlayerCount'?: number;
6508
6549
  /**
6509
6550
  *
6510
6551
  * @type {string}
6511
- * @memberof EstimateEventPrice200Response
6552
+ * @memberof EstimateEventPriceRequest
6512
6553
  */
6513
- 'currency': string;
6554
+ 'creatorId'?: string;
6514
6555
  /**
6515
6556
  *
6516
6557
  * @type {number}
6517
- * @memberof EstimateEventPrice200Response
6558
+ * @memberof EstimateEventPriceRequest
6518
6559
  */
6519
- 'total': number;
6560
+ 'creditToUseInCents'?: number;
6561
+ }
6562
+ /**
6563
+ *
6564
+ * @export
6565
+ * @interface EstimateEventPriceResponse
6566
+ */
6567
+ export interface EstimateEventPriceResponse {
6520
6568
  /**
6521
6569
  * Construct a type with a set of properties K of type T
6522
6570
  * @type {{ [key: string]: number; }}
6523
- * @memberof EstimateEventPrice200Response
6571
+ * @memberof EstimateEventPriceResponse
6524
6572
  */
6525
6573
  'perPlayer': {
6526
6574
  [key: string]: number;
6527
6575
  };
6528
- }
6529
- /**
6530
- *
6531
- * @export
6532
- * @interface EstimateEventPriceRequest
6533
- */
6534
- export interface EstimateEventPriceRequest {
6576
+ /**
6577
+ *
6578
+ * @type {Array<EstimateEventPlayerPrice>}
6579
+ * @memberof EstimateEventPriceResponse
6580
+ */
6581
+ 'playerPrices': Array<EstimateEventPlayerPrice>;
6582
+ /**
6583
+ * Construct a type with a set of properties K of type T
6584
+ * @type {{ [key: string]: number; }}
6585
+ * @memberof EstimateEventPriceResponse
6586
+ */
6587
+ 'perPayer': {
6588
+ [key: string]: number;
6589
+ };
6535
6590
  /**
6536
6591
  *
6537
6592
  * @type {number}
6538
- * @memberof EstimateEventPriceRequest
6593
+ * @memberof EstimateEventPriceResponse
6539
6594
  */
6540
- 'creditToUseInCents'?: number;
6595
+ 'total': number;
6541
6596
  /**
6542
6597
  *
6543
6598
  * @type {string}
6544
- * @memberof EstimateEventPriceRequest
6599
+ * @memberof EstimateEventPriceResponse
6545
6600
  */
6546
- 'creatorId'?: string;
6601
+ 'currency': string;
6547
6602
  /**
6548
6603
  *
6549
- * @type {Array<EstimateEventPriceRequestSharesInner>}
6550
- * @memberof EstimateEventPriceRequest
6604
+ * @type {PaymentMethod}
6605
+ * @memberof EstimateEventPriceResponse
6551
6606
  */
6552
- 'shares'?: Array<EstimateEventPriceRequestSharesInner>;
6607
+ 'paymentMethod'?: PaymentMethod;
6553
6608
  /**
6554
6609
  *
6555
- * @type {Array<string>}
6556
- * @memberof EstimateEventPriceRequest
6610
+ * @type {number}
6611
+ * @memberof EstimateEventPriceResponse
6557
6612
  */
6558
- 'playerIds': Array<string>;
6613
+ 'playersCount'?: number;
6614
+ /**
6615
+ *
6616
+ * @type {number}
6617
+ * @memberof EstimateEventPriceResponse
6618
+ */
6619
+ 'reservedPlayerCount'?: number;
6620
+ /**
6621
+ *
6622
+ * @type {number}
6623
+ * @memberof EstimateEventPriceResponse
6624
+ */
6625
+ 'missingParticipantsCount'?: number;
6626
+ /**
6627
+ *
6628
+ * @type {number}
6629
+ * @memberof EstimateEventPriceResponse
6630
+ */
6631
+ 'creditsAppliedInCents'?: number;
6632
+ /**
6633
+ *
6634
+ * @type {number}
6635
+ * @memberof EstimateEventPriceResponse
6636
+ */
6637
+ 'totalAfterCredits'?: number;
6638
+ /**
6639
+ * Construct a type with a set of properties K of type T
6640
+ * @type {{ [key: string]: number; }}
6641
+ * @memberof EstimateEventPriceResponse
6642
+ */
6643
+ 'perPayerAfterCredits'?: {
6644
+ [key: string]: number;
6645
+ };
6559
6646
  }
6560
6647
  /**
6561
6648
  *
6562
6649
  * @export
6563
- * @interface EstimateEventPriceRequestSharesInner
6650
+ * @interface EstimateEventPriceShare
6564
6651
  */
6565
- export interface EstimateEventPriceRequestSharesInner {
6652
+ export interface EstimateEventPriceShare {
6566
6653
  /**
6567
6654
  *
6568
- * @type {Array<string>}
6569
- * @memberof EstimateEventPriceRequestSharesInner
6655
+ * @type {string}
6656
+ * @memberof EstimateEventPriceShare
6570
6657
  */
6571
- 'paysAlsoFor'?: Array<string>;
6658
+ 'playerId': string;
6572
6659
  /**
6573
6660
  *
6574
- * @type {string}
6575
- * @memberof EstimateEventPriceRequestSharesInner
6661
+ * @type {Array<string>}
6662
+ * @memberof EstimateEventPriceShare
6576
6663
  */
6577
- 'playerId': string;
6664
+ 'paysAlsoFor'?: Array<string>;
6578
6665
  }
6579
6666
  /**
6580
6667
  *
@@ -25869,7 +25956,7 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
25869
25956
  * @param {*} [options] Override http request option.
25870
25957
  * @throws {RequiredError}
25871
25958
  */
25872
- estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPrice200Response>>;
25959
+ estimateEventPrice(eventId: string, estimateEventPriceRequest: EstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateEventPriceResponse>>;
25873
25960
  /**
25874
25961
  * Estimer le prix pour rejoindre un événement ouvert
25875
25962
  * @param {string} eventBookingId
@@ -25991,7 +26078,7 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
25991
26078
  * @param {*} [options] Override http request option.
25992
26079
  * @throws {RequiredError}
25993
26080
  */
25994
- estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response>;
26081
+ estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPriceResponse>;
25995
26082
  /**
25996
26083
  * Estimer le prix pour rejoindre un événement ouvert
25997
26084
  * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
@@ -26379,7 +26466,7 @@ export declare class EventsApi extends BaseAPI {
26379
26466
  * @throws {RequiredError}
26380
26467
  * @memberof EventsApi
26381
26468
  */
26382
- estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateEventPrice200Response, any, {}>>;
26469
+ estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateEventPriceResponse, any, {}>>;
26383
26470
  /**
26384
26471
  * Estimer le prix pour rejoindre un événement ouvert
26385
26472
  * @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
@@ -0,0 +1,24 @@
1
+ # EstimateEventPlayerPrice
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **price** | **number** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EstimateEventPlayerPrice } from '@tennac-booking/sdk';
16
+
17
+ const instance: EstimateEventPlayerPrice = {
18
+ playerId,
19
+ firstName,
20
+ price,
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)
@@ -5,10 +5,14 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **creditToUseInCents** | **number** | | [optional] [default to undefined]
9
- **creatorId** | **string** | | [optional] [default to undefined]
10
- **shares** | [**Array&lt;EstimateEventPriceRequestSharesInner&gt;**](EstimateEventPriceRequestSharesInner.md) | | [optional] [default to undefined]
11
8
  **playerIds** | **Array&lt;string&gt;** | | [default to undefined]
9
+ **shares** | [**Array&lt;EstimateEventPriceShare&gt;**](EstimateEventPriceShare.md) | | [optional] [default to undefined]
10
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
11
+ **playersCount** | **number** | | [optional] [default to undefined]
12
+ **isCreatorPayingAll** | **boolean** | | [optional] [default to undefined]
13
+ **reservedPlayerCount** | **number** | | [optional] [default to undefined]
14
+ **creatorId** | **string** | | [optional] [default to undefined]
15
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
12
16
 
13
17
  ## Example
14
18
 
@@ -16,10 +20,14 @@ Name | Type | Description | Notes
16
20
  import { EstimateEventPriceRequest } from '@tennac-booking/sdk';
17
21
 
18
22
  const instance: EstimateEventPriceRequest = {
19
- creditToUseInCents,
20
- creatorId,
21
- shares,
22
23
  playerIds,
24
+ shares,
25
+ paymentMethod,
26
+ playersCount,
27
+ isCreatorPayingAll,
28
+ reservedPlayerCount,
29
+ creatorId,
30
+ creditToUseInCents,
23
31
  };
24
32
  ```
25
33
 
@@ -1,29 +1,41 @@
1
- # EstimateEventPrice200Response
1
+ # EstimateEventPriceResponse
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
9
- **totalAfterCredits** | **number** | | [optional] [default to undefined]
10
- **creditsAppliedInCents** | **number** | | [optional] [default to undefined]
11
- **currency** | **string** | | [default to undefined]
12
- **total** | **number** | | [default to undefined]
13
8
  **perPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
9
+ **playerPrices** | [**Array&lt;EstimateEventPlayerPrice&gt;**](EstimateEventPlayerPrice.md) | | [default to undefined]
10
+ **perPayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
11
+ **total** | **number** | | [default to undefined]
12
+ **currency** | **string** | | [default to undefined]
13
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
14
+ **playersCount** | **number** | | [optional] [default to undefined]
15
+ **reservedPlayerCount** | **number** | | [optional] [default to undefined]
16
+ **missingParticipantsCount** | **number** | | [optional] [default to undefined]
17
+ **creditsAppliedInCents** | **number** | | [optional] [default to undefined]
18
+ **totalAfterCredits** | **number** | | [optional] [default to undefined]
19
+ **perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
14
20
 
15
21
  ## Example
16
22
 
17
23
  ```typescript
18
- import { EstimateEventPrice200Response } from '@tennac-booking/sdk';
24
+ import { EstimateEventPriceResponse } from '@tennac-booking/sdk';
19
25
 
20
- const instance: EstimateEventPrice200Response = {
21
- perPayerAfterCredits,
22
- totalAfterCredits,
23
- creditsAppliedInCents,
24
- currency,
25
- total,
26
+ const instance: EstimateEventPriceResponse = {
26
27
  perPlayer,
28
+ playerPrices,
29
+ perPayer,
30
+ total,
31
+ currency,
32
+ paymentMethod,
33
+ playersCount,
34
+ reservedPlayerCount,
35
+ missingParticipantsCount,
36
+ creditsAppliedInCents,
37
+ totalAfterCredits,
38
+ perPayerAfterCredits,
27
39
  };
28
40
  ```
29
41
 
@@ -1,21 +1,21 @@
1
- # EstimateEventPriceRequestSharesInner
1
+ # EstimateEventPriceShare
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **paysAlsoFor** | **Array&lt;string&gt;** | | [optional] [default to undefined]
9
8
  **playerId** | **string** | | [default to undefined]
9
+ **paysAlsoFor** | **Array&lt;string&gt;** | | [optional] [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { EstimateEventPriceRequestSharesInner } from '@tennac-booking/sdk';
14
+ import { EstimateEventPriceShare } from '@tennac-booking/sdk';
15
15
 
16
- const instance: EstimateEventPriceRequestSharesInner = {
17
- paysAlsoFor,
16
+ const instance: EstimateEventPriceShare = {
18
17
  playerId,
18
+ paysAlsoFor,
19
19
  };
20
20
  ```
21
21
 
package/docs/EventsApi.md CHANGED
@@ -77,7 +77,7 @@ No authorization required
77
77
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
78
78
 
79
79
  # **estimateEventPrice**
80
- > EstimateEventPrice200Response estimateEventPrice(estimateEventPriceRequest)
80
+ > EstimateEventPriceResponse estimateEventPrice(estimateEventPriceRequest)
81
81
 
82
82
  Estime le prix de participation à un événement pour une liste de joueurs
83
83
 
@@ -112,7 +112,7 @@ const { status, data } = await apiInstance.estimateEventPrice(
112
112
 
113
113
  ### Return type
114
114
 
115
- **EstimateEventPrice200Response**
115
+ **EstimateEventPriceResponse**
116
116
 
117
117
  ### Authorization
118
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.301",
3
+ "version": "1.0.302",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {