@tennac-booking/sdk 1.0.182 → 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.
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
@@ -11566,6 +11641,18 @@ export interface SumupAccountStatusResponse {
11566
11641
  * @memberof SumupAccountStatusResponse
11567
11642
  */
11568
11643
  'readerId'?: string;
11644
+ /**
11645
+ *
11646
+ * @type {string}
11647
+ * @memberof SumupAccountStatusResponse
11648
+ */
11649
+ 'readerName'?: string;
11650
+ /**
11651
+ *
11652
+ * @type {string}
11653
+ * @memberof SumupAccountStatusResponse
11654
+ */
11655
+ 'readerPairedAt'?: string;
11569
11656
  /**
11570
11657
  *
11571
11658
  * @type {string}
@@ -11681,6 +11768,38 @@ export interface SumupOAuthCallbackResponse {
11681
11768
  */
11682
11769
  'scope'?: string;
11683
11770
  }
11771
+ /**
11772
+ *
11773
+ * @export
11774
+ * @interface SumupPairReaderRequest
11775
+ */
11776
+ export interface SumupPairReaderRequest {
11777
+ /**
11778
+ *
11779
+ * @type {string}
11780
+ * @memberof SumupPairReaderRequest
11781
+ */
11782
+ 'pairingCode': string;
11783
+ /**
11784
+ *
11785
+ * @type {string}
11786
+ * @memberof SumupPairReaderRequest
11787
+ */
11788
+ 'name': string;
11789
+ }
11790
+ /**
11791
+ *
11792
+ * @export
11793
+ * @interface SumupPairReaderResponse
11794
+ */
11795
+ export interface SumupPairReaderResponse {
11796
+ /**
11797
+ *
11798
+ * @type {SumupReaderInfo}
11799
+ * @memberof SumupPairReaderResponse
11800
+ */
11801
+ 'reader': SumupReaderInfo;
11802
+ }
11684
11803
  /**
11685
11804
  *
11686
11805
  * @export
@@ -14657,13 +14776,21 @@ export declare class BookingsManagerApi extends BaseAPI {
14657
14776
  */
14658
14777
  export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configuration) => {
14659
14778
  /**
14660
- * 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)
14661
14780
  * @param {string} bookingId
14662
14781
  * @param {CheckInPlayerRequest} checkInPlayerRequest
14663
14782
  * @param {*} [options] Override http request option.
14664
14783
  * @throws {RequiredError}
14665
14784
  */
14666
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>;
14667
14794
  /**
14668
14795
  * Créer une réservation pour un joueur depuis l\'espace staff
14669
14796
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -14724,13 +14851,21 @@ export declare const BookingsStaffApiAxiosParamCreator: (configuration?: Configu
14724
14851
  */
14725
14852
  export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
14726
14853
  /**
14727
- * 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)
14728
14855
  * @param {string} bookingId
14729
14856
  * @param {CheckInPlayerRequest} checkInPlayerRequest
14730
14857
  * @param {*} [options] Override http request option.
14731
14858
  * @throws {RequiredError}
14732
14859
  */
14733
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>>;
14734
14869
  /**
14735
14870
  * Créer une réservation pour un joueur depuis l\'espace staff
14736
14871
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -14791,12 +14926,19 @@ export declare const BookingsStaffApiFp: (configuration?: Configuration) => {
14791
14926
  */
14792
14927
  export declare const BookingsStaffApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
14793
14928
  /**
14794
- * 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)
14795
14930
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
14796
14931
  * @param {*} [options] Override http request option.
14797
14932
  * @throws {RequiredError}
14798
14933
  */
14799
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>;
14800
14942
  /**
14801
14943
  * Créer une réservation pour un joueur depuis l\'espace staff
14802
14944
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -14866,6 +15008,25 @@ export interface BookingsStaffApiCheckInPlayerRequest {
14866
15008
  */
14867
15009
  readonly checkInPlayerRequest: CheckInPlayerRequest;
14868
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
+ }
14869
15030
  /**
14870
15031
  * Request parameters for createStaffBooking operation in BookingsStaffApi.
14871
15032
  * @export
@@ -14989,13 +15150,21 @@ export interface BookingsStaffApiListClubBookingsRequest {
14989
15150
  */
14990
15151
  export declare class BookingsStaffApi extends BaseAPI {
14991
15152
  /**
14992
- * 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)
14993
15154
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
14994
15155
  * @param {*} [options] Override http request option.
14995
15156
  * @throws {RequiredError}
14996
15157
  * @memberof BookingsStaffApi
14997
15158
  */
14998
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, {}>>;
14999
15168
  /**
15000
15169
  * Créer une réservation pour un joueur depuis l\'espace staff
15001
15170
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -22257,6 +22426,14 @@ export declare const SumUpManagerApiAxiosParamCreator: (configuration?: Configur
22257
22426
  * @throws {RequiredError}
22258
22427
  */
22259
22428
  listSumupReaders: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22429
+ /**
22430
+ * Pair a SumUp reader with a club.
22431
+ * @param {string} clubId
22432
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
22433
+ * @param {*} [options] Override http request option.
22434
+ * @throws {RequiredError}
22435
+ */
22436
+ pairSumupReader: (clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22260
22437
  /**
22261
22438
  * Select a SumUp reader for a club.
22262
22439
  * @param {string} clubId
@@ -22299,6 +22476,14 @@ export declare const SumUpManagerApiFp: (configuration?: Configuration) => {
22299
22476
  * @throws {RequiredError}
22300
22477
  */
22301
22478
  listSumupReaders(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReadersResponse>>;
22479
+ /**
22480
+ * Pair a SumUp reader with a club.
22481
+ * @param {string} clubId
22482
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
22483
+ * @param {*} [options] Override http request option.
22484
+ * @throws {RequiredError}
22485
+ */
22486
+ pairSumupReader(clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupPairReaderResponse>>;
22302
22487
  /**
22303
22488
  * Select a SumUp reader for a club.
22304
22489
  * @param {string} clubId
@@ -22341,6 +22526,13 @@ export declare const SumUpManagerApiFactory: (configuration?: Configuration, bas
22341
22526
  * @throws {RequiredError}
22342
22527
  */
22343
22528
  listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReadersResponse>;
22529
+ /**
22530
+ * Pair a SumUp reader with a club.
22531
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
22532
+ * @param {*} [options] Override http request option.
22533
+ * @throws {RequiredError}
22534
+ */
22535
+ pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupPairReaderResponse>;
22344
22536
  /**
22345
22537
  * Select a SumUp reader for a club.
22346
22538
  * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
@@ -22401,6 +22593,25 @@ export interface SumUpManagerApiListSumupReadersRequest {
22401
22593
  */
22402
22594
  readonly clubId: string;
22403
22595
  }
22596
+ /**
22597
+ * Request parameters for pairSumupReader operation in SumUpManagerApi.
22598
+ * @export
22599
+ * @interface SumUpManagerApiPairSumupReaderRequest
22600
+ */
22601
+ export interface SumUpManagerApiPairSumupReaderRequest {
22602
+ /**
22603
+ *
22604
+ * @type {string}
22605
+ * @memberof SumUpManagerApiPairSumupReader
22606
+ */
22607
+ readonly clubId: string;
22608
+ /**
22609
+ *
22610
+ * @type {SumupPairReaderRequest}
22611
+ * @memberof SumUpManagerApiPairSumupReader
22612
+ */
22613
+ readonly sumupPairReaderRequest: SumupPairReaderRequest;
22614
+ }
22404
22615
  /**
22405
22616
  * Request parameters for selectSumupReader operation in SumUpManagerApi.
22406
22617
  * @export
@@ -22459,6 +22670,14 @@ export declare class SumUpManagerApi extends BaseAPI {
22459
22670
  * @memberof SumUpManagerApi
22460
22671
  */
22461
22672
  listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SumupReadersResponse, any, {}>>;
22673
+ /**
22674
+ * Pair a SumUp reader with a club.
22675
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
22676
+ * @param {*} [options] Override http request option.
22677
+ * @throws {RequiredError}
22678
+ * @memberof SumUpManagerApi
22679
+ */
22680
+ pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SumupPairReaderResponse, any, {}>>;
22462
22681
  /**
22463
22682
  * Select a SumUp reader for a club.
22464
22683
  * @param {SumUpManagerApiSelectSumupReaderRequest} 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.
@@ -13293,6 +13364,42 @@ const SumUpManagerApiAxiosParamCreator = function (configuration) {
13293
13364
  options: localVarRequestOptions,
13294
13365
  };
13295
13366
  }),
13367
+ /**
13368
+ * Pair a SumUp reader with a club.
13369
+ * @param {string} clubId
13370
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13371
+ * @param {*} [options] Override http request option.
13372
+ * @throws {RequiredError}
13373
+ */
13374
+ pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
13375
+ // verify required parameter 'clubId' is not null or undefined
13376
+ (0, common_1.assertParamExists)('pairSumupReader', 'clubId', clubId);
13377
+ // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13378
+ (0, common_1.assertParamExists)('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13379
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
13380
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13382
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13383
+ let baseOptions;
13384
+ if (configuration) {
13385
+ baseOptions = configuration.baseOptions;
13386
+ }
13387
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13388
+ const localVarHeaderParameter = {};
13389
+ const localVarQueryParameter = {};
13390
+ // authentication bearerAuth required
13391
+ // http bearer authentication required
13392
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13393
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13395
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13396
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13397
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupPairReaderRequest, localVarRequestOptions, configuration);
13398
+ return {
13399
+ url: (0, common_1.toPathString)(localVarUrlObj),
13400
+ options: localVarRequestOptions,
13401
+ };
13402
+ }),
13296
13403
  /**
13297
13404
  * Select a SumUp reader for a club.
13298
13405
  * @param {string} clubId
@@ -13398,6 +13505,22 @@ const SumUpManagerApiFp = function (configuration) {
13398
13505
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13399
13506
  });
13400
13507
  },
13508
+ /**
13509
+ * Pair a SumUp reader with a club.
13510
+ * @param {string} clubId
13511
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13512
+ * @param {*} [options] Override http request option.
13513
+ * @throws {RequiredError}
13514
+ */
13515
+ pairSumupReader(clubId, sumupPairReaderRequest, options) {
13516
+ return __awaiter(this, void 0, void 0, function* () {
13517
+ var _a, _b, _c;
13518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
13519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13520
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13521
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13522
+ });
13523
+ },
13401
13524
  /**
13402
13525
  * Select a SumUp reader for a club.
13403
13526
  * @param {string} clubId
@@ -13460,6 +13583,15 @@ const SumUpManagerApiFactory = function (configuration, basePath, axios) {
13460
13583
  listSumupReaders(requestParameters, options) {
13461
13584
  return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
13462
13585
  },
13586
+ /**
13587
+ * Pair a SumUp reader with a club.
13588
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13589
+ * @param {*} [options] Override http request option.
13590
+ * @throws {RequiredError}
13591
+ */
13592
+ pairSumupReader(requestParameters, options) {
13593
+ return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
13594
+ },
13463
13595
  /**
13464
13596
  * Select a SumUp reader for a club.
13465
13597
  * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
@@ -13519,6 +13651,16 @@ class SumUpManagerApi extends base_1.BaseAPI {
13519
13651
  listSumupReaders(requestParameters, options) {
13520
13652
  return (0, exports.SumUpManagerApiFp)(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13521
13653
  }
13654
+ /**
13655
+ * Pair a SumUp reader with a club.
13656
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13657
+ * @param {*} [options] Override http request option.
13658
+ * @throws {RequiredError}
13659
+ * @memberof SumUpManagerApi
13660
+ */
13661
+ pairSumupReader(requestParameters, options) {
13662
+ return (0, exports.SumUpManagerApiFp)(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
13663
+ }
13522
13664
  /**
13523
13665
  * Select a SumUp reader for a club.
13524
13666
  * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.