@tennac-booking/sdk 1.0.183 → 1.0.184

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.
@@ -52,6 +52,9 @@ docs/CheckInEventParticipants200ResponseInvoicesInner.md
52
52
  docs/CheckInEventParticipantsRequest.md
53
53
  docs/CheckInPlayerRequest.md
54
54
  docs/CheckInPlayerResponse.md
55
+ docs/CheckInPlayerSumupRequest.md
56
+ docs/CheckInPlayerSumupResponse.md
57
+ docs/CheckInSumupPaymentInfo.md
55
58
  docs/CheckTeamNameAvailability200Response.md
56
59
  docs/CheckedInPlayer.md
57
60
  docs/ClientApi.md
package/README.md CHANGED
@@ -65,6 +65,7 @@ Class | Method | HTTP request | Description
65
65
  *BookingsManagerApi* | [**applyNoShowFee**](docs/BookingsManagerApi.md#applynoshowfee) | **POST** /api/bookings/{bookingId}/no-show |
66
66
  *BookingsManagerApi* | [**managerCancelBooking**](docs/BookingsManagerApi.md#managercancelbooking) | **POST** /api/bookings/{bookingId}/manager-cancel |
67
67
  *BookingsStaffApi* | [**checkInPlayer**](docs/BookingsStaffApi.md#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in |
68
+ *BookingsStaffApi* | [**checkInPlayerWithSumup**](docs/BookingsStaffApi.md#checkinplayerwithsumup) | **POST** /api/bookings/{bookingId}/check-in/sumup |
68
69
  *BookingsStaffApi* | [**createStaffBooking**](docs/BookingsStaffApi.md#createstaffbooking) | **POST** /api/bookings/staff |
69
70
  *BookingsStaffApi* | [**getBookingById**](docs/BookingsStaffApi.md#getbookingbyid) | **GET** /api/bookings/{bookingId} |
70
71
  *BookingsStaffApi* | [**getBookingHistoryStaff**](docs/BookingsStaffApi.md#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} |
@@ -334,6 +335,9 @@ Class | Method | HTTP request | Description
334
335
  - [CheckInEventParticipantsRequest](docs/CheckInEventParticipantsRequest.md)
335
336
  - [CheckInPlayerRequest](docs/CheckInPlayerRequest.md)
336
337
  - [CheckInPlayerResponse](docs/CheckInPlayerResponse.md)
338
+ - [CheckInPlayerSumupRequest](docs/CheckInPlayerSumupRequest.md)
339
+ - [CheckInPlayerSumupResponse](docs/CheckInPlayerSumupResponse.md)
340
+ - [CheckInSumupPaymentInfo](docs/CheckInSumupPaymentInfo.md)
337
341
  - [CheckTeamNameAvailability200Response](docs/CheckTeamNameAvailability200Response.md)
338
342
  - [CheckedInPlayer](docs/CheckedInPlayer.md)
339
343
  - [ClientFullOnboardingResponse](docs/ClientFullOnboardingResponse.md)
package/api.ts CHANGED
@@ -1674,6 +1674,83 @@ export interface CheckInPlayerResponse {
1674
1674
  */
1675
1675
  'invoice': CheckedInPlayer;
1676
1676
  }
1677
+ /**
1678
+ *
1679
+ * @export
1680
+ * @interface CheckInPlayerSumupRequest
1681
+ */
1682
+ export interface CheckInPlayerSumupRequest {
1683
+ /**
1684
+ * ID du joueur qui a payé/est arrivé
1685
+ * @type {string}
1686
+ * @memberof CheckInPlayerSumupRequest
1687
+ */
1688
+ 'playerId': string;
1689
+ /**
1690
+ * Reader SumUp ciblé (optionnel)
1691
+ * @type {string}
1692
+ * @memberof CheckInPlayerSumupRequest
1693
+ */
1694
+ 'readerId'?: string;
1695
+ }
1696
+ /**
1697
+ *
1698
+ * @export
1699
+ * @interface CheckInPlayerSumupResponse
1700
+ */
1701
+ export interface CheckInPlayerSumupResponse {
1702
+ /**
1703
+ * Message de confirmation
1704
+ * @type {string}
1705
+ * @memberof CheckInPlayerSumupResponse
1706
+ */
1707
+ 'message': string;
1708
+ /**
1709
+ *
1710
+ * @type {CheckedInPlayer}
1711
+ * @memberof CheckInPlayerSumupResponse
1712
+ */
1713
+ 'invoice': CheckedInPlayer;
1714
+ /**
1715
+ *
1716
+ * @type {CheckInSumupPaymentInfo}
1717
+ * @memberof CheckInPlayerSumupResponse
1718
+ */
1719
+ 'sumupPayment'?: CheckInSumupPaymentInfo;
1720
+ }
1721
+ /**
1722
+ *
1723
+ * @export
1724
+ * @interface CheckInSumupPaymentInfo
1725
+ */
1726
+ export interface CheckInSumupPaymentInfo {
1727
+ /**
1728
+ * ID du paiement SumUp
1729
+ * @type {string}
1730
+ * @memberof CheckInSumupPaymentInfo
1731
+ */
1732
+ 'paymentId': string;
1733
+ /**
1734
+ * ID du checkout SumUp
1735
+ * @type {string}
1736
+ * @memberof CheckInSumupPaymentInfo
1737
+ */
1738
+ 'checkoutId'?: string;
1739
+ /**
1740
+ *
1741
+ * @type {PaymentStatus}
1742
+ * @memberof CheckInSumupPaymentInfo
1743
+ */
1744
+ 'status': PaymentStatus;
1745
+ /**
1746
+ * Reader SumUp utilisé
1747
+ * @type {string}
1748
+ * @memberof CheckInSumupPaymentInfo
1749
+ */
1750
+ 'readerId'?: string;
1751
+ }
1752
+
1753
+
1677
1754
  /**
1678
1755
  *
1679
1756
  * @export
@@ -11909,6 +11986,12 @@ export interface SumupPairReaderRequest {
11909
11986
  * @memberof SumupPairReaderRequest
11910
11987
  */
11911
11988
  'pairingCode': string;
11989
+ /**
11990
+ *
11991
+ * @type {string}
11992
+ * @memberof SumupPairReaderRequest
11993
+ */
11994
+ 'name': string;
11912
11995
  }
11913
11996
  /**
11914
11997
  *
@@ -15570,7 +15653,7 @@ export class BookingsManagerApi extends BaseAPI {
15570
15653
  export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
15571
15654
  return {
15572
15655
  /**
15573
- * Check-in d\'un joueur (paiement en ligne ou sur place)
15656
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15574
15657
  * @param {string} bookingId
15575
15658
  * @param {CheckInPlayerRequest} checkInPlayerRequest
15576
15659
  * @param {*} [options] Override http request option.
@@ -15612,6 +15695,49 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
15612
15695
  options: localVarRequestOptions,
15613
15696
  };
15614
15697
  },
15698
+ /**
15699
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
15700
+ * @param {string} bookingId
15701
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
15702
+ * @param {*} [options] Override http request option.
15703
+ * @throws {RequiredError}
15704
+ */
15705
+ checkInPlayerWithSumup: async (bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15706
+ // verify required parameter 'bookingId' is not null or undefined
15707
+ assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId)
15708
+ // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
15709
+ assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest)
15710
+ const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
15711
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15713
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15714
+ let baseOptions;
15715
+ if (configuration) {
15716
+ baseOptions = configuration.baseOptions;
15717
+ }
15718
+
15719
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15720
+ const localVarHeaderParameter = {} as any;
15721
+ const localVarQueryParameter = {} as any;
15722
+
15723
+ // authentication bearerAuth required
15724
+ // http bearer authentication required
15725
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15726
+
15727
+
15728
+
15729
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15730
+
15731
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15732
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15733
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15734
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration)
15735
+
15736
+ return {
15737
+ url: toPathString(localVarUrlObj),
15738
+ options: localVarRequestOptions,
15739
+ };
15740
+ },
15615
15741
  /**
15616
15742
  * Créer une réservation pour un joueur depuis l\'espace staff
15617
15743
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -15905,7 +16031,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
15905
16031
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
15906
16032
  return {
15907
16033
  /**
15908
- * Check-in d\'un joueur (paiement en ligne ou sur place)
16034
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15909
16035
  * @param {string} bookingId
15910
16036
  * @param {CheckInPlayerRequest} checkInPlayerRequest
15911
16037
  * @param {*} [options] Override http request option.
@@ -15917,6 +16043,19 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
15917
16043
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
15918
16044
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15919
16045
  },
16046
+ /**
16047
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
16048
+ * @param {string} bookingId
16049
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
16050
+ * @param {*} [options] Override http request option.
16051
+ * @throws {RequiredError}
16052
+ */
16053
+ async checkInPlayerWithSumup(bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerSumupResponse>> {
16054
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
16055
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16056
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']?.[localVarOperationServerIndex]?.url;
16057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16058
+ },
15920
16059
  /**
15921
16060
  * Créer une réservation pour un joueur depuis l\'espace staff
15922
16061
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -16016,7 +16155,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
16016
16155
  const localVarFp = BookingsStaffApiFp(configuration)
16017
16156
  return {
16018
16157
  /**
16019
- * Check-in d\'un joueur (paiement en ligne ou sur place)
16158
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
16020
16159
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
16021
16160
  * @param {*} [options] Override http request option.
16022
16161
  * @throws {RequiredError}
@@ -16024,6 +16163,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
16024
16163
  checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse> {
16025
16164
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
16026
16165
  },
16166
+ /**
16167
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
16168
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
16169
+ * @param {*} [options] Override http request option.
16170
+ * @throws {RequiredError}
16171
+ */
16172
+ checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerSumupResponse> {
16173
+ return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
16174
+ },
16027
16175
  /**
16028
16176
  * Créer une réservation pour un joueur depuis l\'espace staff
16029
16177
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -16111,6 +16259,27 @@ export interface BookingsStaffApiCheckInPlayerRequest {
16111
16259
  readonly checkInPlayerRequest: CheckInPlayerRequest
16112
16260
  }
16113
16261
 
16262
+ /**
16263
+ * Request parameters for checkInPlayerWithSumup operation in BookingsStaffApi.
16264
+ * @export
16265
+ * @interface BookingsStaffApiCheckInPlayerWithSumupRequest
16266
+ */
16267
+ export interface BookingsStaffApiCheckInPlayerWithSumupRequest {
16268
+ /**
16269
+ *
16270
+ * @type {string}
16271
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
16272
+ */
16273
+ readonly bookingId: string
16274
+
16275
+ /**
16276
+ *
16277
+ * @type {CheckInPlayerSumupRequest}
16278
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
16279
+ */
16280
+ readonly checkInPlayerSumupRequest: CheckInPlayerSumupRequest
16281
+ }
16282
+
16114
16283
  /**
16115
16284
  * Request parameters for createStaffBooking operation in BookingsStaffApi.
16116
16285
  * @export
@@ -16245,7 +16414,7 @@ export interface BookingsStaffApiListClubBookingsRequest {
16245
16414
  */
16246
16415
  export class BookingsStaffApi extends BaseAPI {
16247
16416
  /**
16248
- * Check-in d\'un joueur (paiement en ligne ou sur place)
16417
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
16249
16418
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
16250
16419
  * @param {*} [options] Override http request option.
16251
16420
  * @throws {RequiredError}
@@ -16255,6 +16424,17 @@ export class BookingsStaffApi extends BaseAPI {
16255
16424
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
16256
16425
  }
16257
16426
 
16427
+ /**
16428
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
16429
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
16430
+ * @param {*} [options] Override http request option.
16431
+ * @throws {RequiredError}
16432
+ * @memberof BookingsStaffApi
16433
+ */
16434
+ public checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig) {
16435
+ return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
16436
+ }
16437
+
16258
16438
  /**
16259
16439
  * Créer une réservation pour un joueur depuis l\'espace staff
16260
16440
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -1635,6 +1635,81 @@ export interface CheckInPlayerResponse {
1635
1635
  */
1636
1636
  'invoice': CheckedInPlayer;
1637
1637
  }
1638
+ /**
1639
+ *
1640
+ * @export
1641
+ * @interface CheckInPlayerSumupRequest
1642
+ */
1643
+ export interface CheckInPlayerSumupRequest {
1644
+ /**
1645
+ * ID du joueur qui a payé/est arrivé
1646
+ * @type {string}
1647
+ * @memberof CheckInPlayerSumupRequest
1648
+ */
1649
+ 'playerId': string;
1650
+ /**
1651
+ * Reader SumUp ciblé (optionnel)
1652
+ * @type {string}
1653
+ * @memberof CheckInPlayerSumupRequest
1654
+ */
1655
+ 'readerId'?: string;
1656
+ }
1657
+ /**
1658
+ *
1659
+ * @export
1660
+ * @interface CheckInPlayerSumupResponse
1661
+ */
1662
+ export interface CheckInPlayerSumupResponse {
1663
+ /**
1664
+ * Message de confirmation
1665
+ * @type {string}
1666
+ * @memberof CheckInPlayerSumupResponse
1667
+ */
1668
+ 'message': string;
1669
+ /**
1670
+ *
1671
+ * @type {CheckedInPlayer}
1672
+ * @memberof CheckInPlayerSumupResponse
1673
+ */
1674
+ 'invoice': CheckedInPlayer;
1675
+ /**
1676
+ *
1677
+ * @type {CheckInSumupPaymentInfo}
1678
+ * @memberof CheckInPlayerSumupResponse
1679
+ */
1680
+ 'sumupPayment'?: CheckInSumupPaymentInfo;
1681
+ }
1682
+ /**
1683
+ *
1684
+ * @export
1685
+ * @interface CheckInSumupPaymentInfo
1686
+ */
1687
+ export interface CheckInSumupPaymentInfo {
1688
+ /**
1689
+ * ID du paiement SumUp
1690
+ * @type {string}
1691
+ * @memberof CheckInSumupPaymentInfo
1692
+ */
1693
+ 'paymentId': string;
1694
+ /**
1695
+ * ID du checkout SumUp
1696
+ * @type {string}
1697
+ * @memberof CheckInSumupPaymentInfo
1698
+ */
1699
+ 'checkoutId'?: string;
1700
+ /**
1701
+ *
1702
+ * @type {PaymentStatus}
1703
+ * @memberof CheckInSumupPaymentInfo
1704
+ */
1705
+ 'status': PaymentStatus;
1706
+ /**
1707
+ * Reader SumUp utilisé
1708
+ * @type {string}
1709
+ * @memberof CheckInSumupPaymentInfo
1710
+ */
1711
+ 'readerId'?: string;
1712
+ }
1638
1713
  /**
1639
1714
  *
1640
1715
  * @export
@@ -11705,6 +11780,12 @@ export interface SumupPairReaderRequest {
11705
11780
  * @memberof SumupPairReaderRequest
11706
11781
  */
11707
11782
  'pairingCode': string;
11783
+ /**
11784
+ *
11785
+ * @type {string}
11786
+ * @memberof SumupPairReaderRequest
11787
+ */
11788
+ 'name': string;
11708
11789
  }
11709
11790
  /**
11710
11791
  *
@@ -14695,13 +14776,21 @@ export declare class BookingsManagerApi extends BaseAPI {
14695
14776
  */
14696
14777
  export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
14697
14778
  /**
14698
- * Check-in d\'un joueur (paiement en ligne ou sur place)
14779
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
14699
14780
  * @param {string} bookingId
14700
14781
  * @param {CheckInPlayerRequest} checkInPlayerRequest
14701
14782
  * @param {*} [options] Override http request option.
14702
14783
  * @throws {RequiredError}
14703
14784
  */
14704
14785
  checkInPlayer: (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14786
+ /**
14787
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
14788
+ * @param {string} bookingId
14789
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
14790
+ * @param {*} [options] Override http request option.
14791
+ * @throws {RequiredError}
14792
+ */
14793
+ checkInPlayerWithSumup: (bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14705
14794
  /**
14706
14795
  * Créer une réservation pour un joueur depuis l\'espace staff
14707
14796
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -14762,13 +14851,21 @@ export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configu
14762
14851
  */
14763
14852
  export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
14764
14853
  /**
14765
- * Check-in d\'un joueur (paiement en ligne ou sur place)
14854
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
14766
14855
  * @param {string} bookingId
14767
14856
  * @param {CheckInPlayerRequest} checkInPlayerRequest
14768
14857
  * @param {*} [options] Override http request option.
14769
14858
  * @throws {RequiredError}
14770
14859
  */
14771
14860
  checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>>;
14861
+ /**
14862
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
14863
+ * @param {string} bookingId
14864
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
14865
+ * @param {*} [options] Override http request option.
14866
+ * @throws {RequiredError}
14867
+ */
14868
+ checkInPlayerWithSumup(bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerSumupResponse>>;
14772
14869
  /**
14773
14870
  * Créer une réservation pour un joueur depuis l\'espace staff
14774
14871
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -14829,12 +14926,19 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
14829
14926
  */
14830
14927
  export declare const BookingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
14831
14928
  /**
14832
- * Check-in d\'un joueur (paiement en ligne ou sur place)
14929
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
14833
14930
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
14834
14931
  * @param {*} [options] Override http request option.
14835
14932
  * @throws {RequiredError}
14836
14933
  */
14837
14934
  checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse>;
14935
+ /**
14936
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
14937
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
14938
+ * @param {*} [options] Override http request option.
14939
+ * @throws {RequiredError}
14940
+ */
14941
+ checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerSumupResponse>;
14838
14942
  /**
14839
14943
  * Créer une réservation pour un joueur depuis l\'espace staff
14840
14944
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -14904,6 +15008,25 @@ export interface BookingsStaffApiCheckInPlayerRequest {
14904
15008
  */
14905
15009
  readonly checkInPlayerRequest: CheckInPlayerRequest;
14906
15010
  }
15011
+ /**
15012
+ * Request parameters for checkInPlayerWithSumup operation in BookingsStaffApi.
15013
+ * @export
15014
+ * @interface BookingsStaffApiCheckInPlayerWithSumupRequest
15015
+ */
15016
+ export interface BookingsStaffApiCheckInPlayerWithSumupRequest {
15017
+ /**
15018
+ *
15019
+ * @type {string}
15020
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
15021
+ */
15022
+ readonly bookingId: string;
15023
+ /**
15024
+ *
15025
+ * @type {CheckInPlayerSumupRequest}
15026
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
15027
+ */
15028
+ readonly checkInPlayerSumupRequest: CheckInPlayerSumupRequest;
15029
+ }
14907
15030
  /**
14908
15031
  * Request parameters for createStaffBooking operation in BookingsStaffApi.
14909
15032
  * @export
@@ -15027,13 +15150,21 @@ export interface BookingsStaffApiListClubBookingsRequest {
15027
15150
  */
15028
15151
  export declare class BookingsStaffApi extends BaseAPI {
15029
15152
  /**
15030
- * Check-in d\'un joueur (paiement en ligne ou sur place)
15153
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15031
15154
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
15032
15155
  * @param {*} [options] Override http request option.
15033
15156
  * @throws {RequiredError}
15034
15157
  * @memberof BookingsStaffApi
15035
15158
  */
15036
15159
  checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckInPlayerResponse, any, {}>>;
15160
+ /**
15161
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
15162
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
15163
+ * @param {*} [options] Override http request option.
15164
+ * @throws {RequiredError}
15165
+ * @memberof BookingsStaffApi
15166
+ */
15167
+ checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckInPlayerSumupResponse, any, {}>>;
15037
15168
  /**
15038
15169
  * Créer une réservation pour un joueur depuis l\'espace staff
15039
15170
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
package/dist/api.js CHANGED
@@ -1445,7 +1445,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
1445
1445
  const BookingsStaffApiAxiosParamCreator = function (configuration) {
1446
1446
  return {
1447
1447
  /**
1448
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1448
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1449
1449
  * @param {string} bookingId
1450
1450
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1451
1451
  * @param {*} [options] Override http request option.
@@ -1480,6 +1480,42 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
1480
1480
  options: localVarRequestOptions,
1481
1481
  };
1482
1482
  }),
1483
+ /**
1484
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1485
+ * @param {string} bookingId
1486
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1487
+ * @param {*} [options] Override http request option.
1488
+ * @throws {RequiredError}
1489
+ */
1490
+ checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
1491
+ // verify required parameter 'bookingId' is not null or undefined
1492
+ (0, common_1.assertParamExists)('checkInPlayerWithSumup', 'bookingId', bookingId);
1493
+ // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
1494
+ (0, common_1.assertParamExists)('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
1495
+ const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
1496
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
1497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1498
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1499
+ let baseOptions;
1500
+ if (configuration) {
1501
+ baseOptions = configuration.baseOptions;
1502
+ }
1503
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1504
+ const localVarHeaderParameter = {};
1505
+ const localVarQueryParameter = {};
1506
+ // authentication bearerAuth required
1507
+ // http bearer authentication required
1508
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1509
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1510
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1512
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1513
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
1514
+ return {
1515
+ url: (0, common_1.toPathString)(localVarUrlObj),
1516
+ options: localVarRequestOptions,
1517
+ };
1518
+ }),
1483
1519
  /**
1484
1520
  * Créer une réservation pour un joueur depuis l\'espace staff
1485
1521
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1725,7 +1761,7 @@ const BookingsStaffApiFp = function (configuration) {
1725
1761
  const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
1726
1762
  return {
1727
1763
  /**
1728
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1764
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1729
1765
  * @param {string} bookingId
1730
1766
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1731
1767
  * @param {*} [options] Override http request option.
@@ -1740,6 +1776,22 @@ const BookingsStaffApiFp = function (configuration) {
1740
1776
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1741
1777
  });
1742
1778
  },
1779
+ /**
1780
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1781
+ * @param {string} bookingId
1782
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1783
+ * @param {*} [options] Override http request option.
1784
+ * @throws {RequiredError}
1785
+ */
1786
+ checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
1787
+ return __awaiter(this, void 0, void 0, function* () {
1788
+ var _a, _b, _c;
1789
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
1790
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1791
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1792
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1793
+ });
1794
+ },
1743
1795
  /**
1744
1796
  * Créer une réservation pour un joueur depuis l\'espace staff
1745
1797
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1860,7 +1912,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
1860
1912
  const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
1861
1913
  return {
1862
1914
  /**
1863
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1915
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1864
1916
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1865
1917
  * @param {*} [options] Override http request option.
1866
1918
  * @throws {RequiredError}
@@ -1868,6 +1920,15 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
1868
1920
  checkInPlayer(requestParameters, options) {
1869
1921
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1870
1922
  },
1923
+ /**
1924
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1925
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
1926
+ * @param {*} [options] Override http request option.
1927
+ * @throws {RequiredError}
1928
+ */
1929
+ checkInPlayerWithSumup(requestParameters, options) {
1930
+ return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
1931
+ },
1871
1932
  /**
1872
1933
  * Créer une réservation pour un joueur depuis l\'espace staff
1873
1934
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -1942,7 +2003,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
1942
2003
  */
1943
2004
  class BookingsStaffApi extends base_1.BaseAPI {
1944
2005
  /**
1945
- * Check-in d\'un joueur (paiement en ligne ou sur place)
2006
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1946
2007
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1947
2008
  * @param {*} [options] Override http request option.
1948
2009
  * @throws {RequiredError}
@@ -1951,6 +2012,16 @@ class BookingsStaffApi extends base_1.BaseAPI {
1951
2012
  checkInPlayer(requestParameters, options) {
1952
2013
  return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1953
2014
  }
2015
+ /**
2016
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
2017
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ * @memberof BookingsStaffApi
2021
+ */
2022
+ checkInPlayerWithSumup(requestParameters, options) {
2023
+ return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
2024
+ }
1954
2025
  /**
1955
2026
  * Créer une réservation pour un joueur depuis l\'espace staff
1956
2027
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -1635,6 +1635,81 @@ export interface CheckInPlayerResponse {
1635
1635
  */
1636
1636
  'invoice': CheckedInPlayer;
1637
1637
  }
1638
+ /**
1639
+ *
1640
+ * @export
1641
+ * @interface CheckInPlayerSumupRequest
1642
+ */
1643
+ export interface CheckInPlayerSumupRequest {
1644
+ /**
1645
+ * ID du joueur qui a payé/est arrivé
1646
+ * @type {string}
1647
+ * @memberof CheckInPlayerSumupRequest
1648
+ */
1649
+ 'playerId': string;
1650
+ /**
1651
+ * Reader SumUp ciblé (optionnel)
1652
+ * @type {string}
1653
+ * @memberof CheckInPlayerSumupRequest
1654
+ */
1655
+ 'readerId'?: string;
1656
+ }
1657
+ /**
1658
+ *
1659
+ * @export
1660
+ * @interface CheckInPlayerSumupResponse
1661
+ */
1662
+ export interface CheckInPlayerSumupResponse {
1663
+ /**
1664
+ * Message de confirmation
1665
+ * @type {string}
1666
+ * @memberof CheckInPlayerSumupResponse
1667
+ */
1668
+ 'message': string;
1669
+ /**
1670
+ *
1671
+ * @type {CheckedInPlayer}
1672
+ * @memberof CheckInPlayerSumupResponse
1673
+ */
1674
+ 'invoice': CheckedInPlayer;
1675
+ /**
1676
+ *
1677
+ * @type {CheckInSumupPaymentInfo}
1678
+ * @memberof CheckInPlayerSumupResponse
1679
+ */
1680
+ 'sumupPayment'?: CheckInSumupPaymentInfo;
1681
+ }
1682
+ /**
1683
+ *
1684
+ * @export
1685
+ * @interface CheckInSumupPaymentInfo
1686
+ */
1687
+ export interface CheckInSumupPaymentInfo {
1688
+ /**
1689
+ * ID du paiement SumUp
1690
+ * @type {string}
1691
+ * @memberof CheckInSumupPaymentInfo
1692
+ */
1693
+ 'paymentId': string;
1694
+ /**
1695
+ * ID du checkout SumUp
1696
+ * @type {string}
1697
+ * @memberof CheckInSumupPaymentInfo
1698
+ */
1699
+ 'checkoutId'?: string;
1700
+ /**
1701
+ *
1702
+ * @type {PaymentStatus}
1703
+ * @memberof CheckInSumupPaymentInfo
1704
+ */
1705
+ 'status': PaymentStatus;
1706
+ /**
1707
+ * Reader SumUp utilisé
1708
+ * @type {string}
1709
+ * @memberof CheckInSumupPaymentInfo
1710
+ */
1711
+ 'readerId'?: string;
1712
+ }
1638
1713
  /**
1639
1714
  *
1640
1715
  * @export
@@ -11705,6 +11780,12 @@ export interface SumupPairReaderRequest {
11705
11780
  * @memberof SumupPairReaderRequest
11706
11781
  */
11707
11782
  'pairingCode': string;
11783
+ /**
11784
+ *
11785
+ * @type {string}
11786
+ * @memberof SumupPairReaderRequest
11787
+ */
11788
+ 'name': string;
11708
11789
  }
11709
11790
  /**
11710
11791
  *
@@ -14695,13 +14776,21 @@ export declare class BookingsManagerApi extends BaseAPI {
14695
14776
  */
14696
14777
  export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
14697
14778
  /**
14698
- * Check-in d\'un joueur (paiement en ligne ou sur place)
14779
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
14699
14780
  * @param {string} bookingId
14700
14781
  * @param {CheckInPlayerRequest} checkInPlayerRequest
14701
14782
  * @param {*} [options] Override http request option.
14702
14783
  * @throws {RequiredError}
14703
14784
  */
14704
14785
  checkInPlayer: (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14786
+ /**
14787
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
14788
+ * @param {string} bookingId
14789
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
14790
+ * @param {*} [options] Override http request option.
14791
+ * @throws {RequiredError}
14792
+ */
14793
+ checkInPlayerWithSumup: (bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14705
14794
  /**
14706
14795
  * Créer une réservation pour un joueur depuis l\'espace staff
14707
14796
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -14762,13 +14851,21 @@ export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configu
14762
14851
  */
14763
14852
  export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
14764
14853
  /**
14765
- * Check-in d\'un joueur (paiement en ligne ou sur place)
14854
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
14766
14855
  * @param {string} bookingId
14767
14856
  * @param {CheckInPlayerRequest} checkInPlayerRequest
14768
14857
  * @param {*} [options] Override http request option.
14769
14858
  * @throws {RequiredError}
14770
14859
  */
14771
14860
  checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>>;
14861
+ /**
14862
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
14863
+ * @param {string} bookingId
14864
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
14865
+ * @param {*} [options] Override http request option.
14866
+ * @throws {RequiredError}
14867
+ */
14868
+ checkInPlayerWithSumup(bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerSumupResponse>>;
14772
14869
  /**
14773
14870
  * Créer une réservation pour un joueur depuis l\'espace staff
14774
14871
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -14829,12 +14926,19 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
14829
14926
  */
14830
14927
  export declare const BookingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
14831
14928
  /**
14832
- * Check-in d\'un joueur (paiement en ligne ou sur place)
14929
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
14833
14930
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
14834
14931
  * @param {*} [options] Override http request option.
14835
14932
  * @throws {RequiredError}
14836
14933
  */
14837
14934
  checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse>;
14935
+ /**
14936
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
14937
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
14938
+ * @param {*} [options] Override http request option.
14939
+ * @throws {RequiredError}
14940
+ */
14941
+ checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerSumupResponse>;
14838
14942
  /**
14839
14943
  * Créer une réservation pour un joueur depuis l\'espace staff
14840
14944
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -14904,6 +15008,25 @@ export interface BookingsStaffApiCheckInPlayerRequest {
14904
15008
  */
14905
15009
  readonly checkInPlayerRequest: CheckInPlayerRequest;
14906
15010
  }
15011
+ /**
15012
+ * Request parameters for checkInPlayerWithSumup operation in BookingsStaffApi.
15013
+ * @export
15014
+ * @interface BookingsStaffApiCheckInPlayerWithSumupRequest
15015
+ */
15016
+ export interface BookingsStaffApiCheckInPlayerWithSumupRequest {
15017
+ /**
15018
+ *
15019
+ * @type {string}
15020
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
15021
+ */
15022
+ readonly bookingId: string;
15023
+ /**
15024
+ *
15025
+ * @type {CheckInPlayerSumupRequest}
15026
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
15027
+ */
15028
+ readonly checkInPlayerSumupRequest: CheckInPlayerSumupRequest;
15029
+ }
14907
15030
  /**
14908
15031
  * Request parameters for createStaffBooking operation in BookingsStaffApi.
14909
15032
  * @export
@@ -15027,13 +15150,21 @@ export interface BookingsStaffApiListClubBookingsRequest {
15027
15150
  */
15028
15151
  export declare class BookingsStaffApi extends BaseAPI {
15029
15152
  /**
15030
- * Check-in d\'un joueur (paiement en ligne ou sur place)
15153
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15031
15154
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
15032
15155
  * @param {*} [options] Override http request option.
15033
15156
  * @throws {RequiredError}
15034
15157
  * @memberof BookingsStaffApi
15035
15158
  */
15036
15159
  checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckInPlayerResponse, any, {}>>;
15160
+ /**
15161
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
15162
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
15163
+ * @param {*} [options] Override http request option.
15164
+ * @throws {RequiredError}
15165
+ * @memberof BookingsStaffApi
15166
+ */
15167
+ checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckInPlayerSumupResponse, any, {}>>;
15037
15168
  /**
15038
15169
  * Créer une réservation pour un joueur depuis l\'espace staff
15039
15170
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -1430,7 +1430,7 @@ export class BookingsManagerApi extends BaseAPI {
1430
1430
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1431
1431
  return {
1432
1432
  /**
1433
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1433
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1434
1434
  * @param {string} bookingId
1435
1435
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1436
1436
  * @param {*} [options] Override http request option.
@@ -1465,6 +1465,42 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1465
1465
  options: localVarRequestOptions,
1466
1466
  };
1467
1467
  }),
1468
+ /**
1469
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1470
+ * @param {string} bookingId
1471
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1472
+ * @param {*} [options] Override http request option.
1473
+ * @throws {RequiredError}
1474
+ */
1475
+ checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
1476
+ // verify required parameter 'bookingId' is not null or undefined
1477
+ assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId);
1478
+ // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
1479
+ assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
1480
+ const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
1481
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
1482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1484
+ let baseOptions;
1485
+ if (configuration) {
1486
+ baseOptions = configuration.baseOptions;
1487
+ }
1488
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1489
+ const localVarHeaderParameter = {};
1490
+ const localVarQueryParameter = {};
1491
+ // authentication bearerAuth required
1492
+ // http bearer authentication required
1493
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1494
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1495
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1497
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1498
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
1499
+ return {
1500
+ url: toPathString(localVarUrlObj),
1501
+ options: localVarRequestOptions,
1502
+ };
1503
+ }),
1468
1504
  /**
1469
1505
  * Créer une réservation pour un joueur depuis l\'espace staff
1470
1506
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1709,7 +1745,7 @@ export const BookingsStaffApiFp = function (configuration) {
1709
1745
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1710
1746
  return {
1711
1747
  /**
1712
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1748
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1713
1749
  * @param {string} bookingId
1714
1750
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1715
1751
  * @param {*} [options] Override http request option.
@@ -1724,6 +1760,22 @@ export const BookingsStaffApiFp = function (configuration) {
1724
1760
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1725
1761
  });
1726
1762
  },
1763
+ /**
1764
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1765
+ * @param {string} bookingId
1766
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1767
+ * @param {*} [options] Override http request option.
1768
+ * @throws {RequiredError}
1769
+ */
1770
+ checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
1771
+ return __awaiter(this, void 0, void 0, function* () {
1772
+ var _a, _b, _c;
1773
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
1774
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1775
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1776
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1777
+ });
1778
+ },
1727
1779
  /**
1728
1780
  * Créer une réservation pour un joueur depuis l\'espace staff
1729
1781
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1843,7 +1895,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1843
1895
  const localVarFp = BookingsStaffApiFp(configuration);
1844
1896
  return {
1845
1897
  /**
1846
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1898
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1847
1899
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1848
1900
  * @param {*} [options] Override http request option.
1849
1901
  * @throws {RequiredError}
@@ -1851,6 +1903,15 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1851
1903
  checkInPlayer(requestParameters, options) {
1852
1904
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1853
1905
  },
1906
+ /**
1907
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1908
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
1909
+ * @param {*} [options] Override http request option.
1910
+ * @throws {RequiredError}
1911
+ */
1912
+ checkInPlayerWithSumup(requestParameters, options) {
1913
+ return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
1914
+ },
1854
1915
  /**
1855
1916
  * Créer une réservation pour un joueur depuis l\'espace staff
1856
1917
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -1924,7 +1985,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1924
1985
  */
1925
1986
  export class BookingsStaffApi extends BaseAPI {
1926
1987
  /**
1927
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1988
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1928
1989
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1929
1990
  * @param {*} [options] Override http request option.
1930
1991
  * @throws {RequiredError}
@@ -1933,6 +1994,16 @@ export class BookingsStaffApi extends BaseAPI {
1933
1994
  checkInPlayer(requestParameters, options) {
1934
1995
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1935
1996
  }
1997
+ /**
1998
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1999
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
2000
+ * @param {*} [options] Override http request option.
2001
+ * @throws {RequiredError}
2002
+ * @memberof BookingsStaffApi
2003
+ */
2004
+ checkInPlayerWithSumup(requestParameters, options) {
2005
+ return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
2006
+ }
1936
2007
  /**
1937
2008
  * Créer une réservation pour un joueur depuis l\'espace staff
1938
2009
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**checkInPlayer**](#checkinplayer) | **POST** /api/bookings/{bookingId}/check-in | |
8
+ |[**checkInPlayerWithSumup**](#checkinplayerwithsumup) | **POST** /api/bookings/{bookingId}/check-in/sumup | |
8
9
  |[**createStaffBooking**](#createstaffbooking) | **POST** /api/bookings/staff | |
9
10
  |[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
10
11
  |[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
@@ -16,7 +17,7 @@ All URIs are relative to *http://localhost*
16
17
  # **checkInPlayer**
17
18
  > CheckInPlayerResponse checkInPlayer(checkInPlayerRequest)
18
19
 
19
- Check-in d\'un joueur (paiement en ligne ou sur place)
20
+ Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
20
21
 
21
22
  ### Example
22
23
 
@@ -68,6 +69,61 @@ const { status, data } = await apiInstance.checkInPlayer(
68
69
 
69
70
  [[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)
70
71
 
72
+ # **checkInPlayerWithSumup**
73
+ > CheckInPlayerSumupResponse checkInPlayerWithSumup(checkInPlayerSumupRequest)
74
+
75
+ Check-in d\'un joueur avec création d\'un checkout SumUp
76
+
77
+ ### Example
78
+
79
+ ```typescript
80
+ import {
81
+ BookingsStaffApi,
82
+ Configuration,
83
+ CheckInPlayerSumupRequest
84
+ } from '@tennac-booking/sdk';
85
+
86
+ const configuration = new Configuration();
87
+ const apiInstance = new BookingsStaffApi(configuration);
88
+
89
+ let bookingId: string; // (default to undefined)
90
+ let checkInPlayerSumupRequest: CheckInPlayerSumupRequest; //
91
+
92
+ const { status, data } = await apiInstance.checkInPlayerWithSumup(
93
+ bookingId,
94
+ checkInPlayerSumupRequest
95
+ );
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ |Name | Type | Description | Notes|
101
+ |------------- | ------------- | ------------- | -------------|
102
+ | **checkInPlayerSumupRequest** | **CheckInPlayerSumupRequest**| | |
103
+ | **bookingId** | [**string**] | | defaults to undefined|
104
+
105
+
106
+ ### Return type
107
+
108
+ **CheckInPlayerSumupResponse**
109
+
110
+ ### Authorization
111
+
112
+ [bearerAuth](../README.md#bearerAuth)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: application/json
117
+ - **Accept**: application/json
118
+
119
+
120
+ ### HTTP response details
121
+ | Status code | Description | Response headers |
122
+ |-------------|-------------|------------------|
123
+ |**200** | Checkout SumUp déclenché | - |
124
+
125
+ [[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)
126
+
71
127
  # **createStaffBooking**
72
128
  > BookingResponse createStaffBooking(staffCreateBookingRequest)
73
129
 
@@ -0,0 +1,22 @@
1
+ # CheckInPlayerSumupRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | ID du joueur qui a payé/est arrivé | [default to undefined]
9
+ **readerId** | **string** | Reader SumUp ciblé (optionnel) | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CheckInPlayerSumupRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: CheckInPlayerSumupRequest = {
17
+ playerId,
18
+ readerId,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # CheckInPlayerSumupResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message de confirmation | [default to undefined]
9
+ **invoice** | [**CheckedInPlayer**](CheckedInPlayer.md) | | [default to undefined]
10
+ **sumupPayment** | [**CheckInSumupPaymentInfo**](CheckInSumupPaymentInfo.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { CheckInPlayerSumupResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: CheckInPlayerSumupResponse = {
18
+ message,
19
+ invoice,
20
+ sumupPayment,
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)
@@ -0,0 +1,26 @@
1
+ # CheckInSumupPaymentInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paymentId** | **string** | ID du paiement SumUp | [default to undefined]
9
+ **checkoutId** | **string** | ID du checkout SumUp | [optional] [default to undefined]
10
+ **status** | [**PaymentStatus**](PaymentStatus.md) | | [default to undefined]
11
+ **readerId** | **string** | Reader SumUp utilisé | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { CheckInSumupPaymentInfo } from '@tennac-booking/sdk';
17
+
18
+ const instance: CheckInSumupPaymentInfo = {
19
+ paymentId,
20
+ checkoutId,
21
+ status,
22
+ readerId,
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)
@@ -6,6 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **pairingCode** | **string** | | [default to undefined]
9
+ **name** | **string** | | [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
@@ -14,6 +15,7 @@ import { SumupPairReaderRequest } from '@tennac-booking/sdk';
14
15
 
15
16
  const instance: SumupPairReaderRequest = {
16
17
  pairingCode,
18
+ name,
17
19
  };
18
20
  ```
19
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.183",
3
+ "version": "1.0.184",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {