@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/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
@@ -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/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.
@@ -13162,6 +13233,42 @@ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13162
13233
  options: localVarRequestOptions,
13163
13234
  };
13164
13235
  }),
13236
+ /**
13237
+ * Pair a SumUp reader with a club.
13238
+ * @param {string} clubId
13239
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13240
+ * @param {*} [options] Override http request option.
13241
+ * @throws {RequiredError}
13242
+ */
13243
+ pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
13244
+ // verify required parameter 'clubId' is not null or undefined
13245
+ assertParamExists('pairSumupReader', 'clubId', clubId);
13246
+ // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13247
+ assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13248
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
13249
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13251
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13252
+ let baseOptions;
13253
+ if (configuration) {
13254
+ baseOptions = configuration.baseOptions;
13255
+ }
13256
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13257
+ const localVarHeaderParameter = {};
13258
+ const localVarQueryParameter = {};
13259
+ // authentication bearerAuth required
13260
+ // http bearer authentication required
13261
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13262
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13263
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13265
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13266
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13267
+ return {
13268
+ url: toPathString(localVarUrlObj),
13269
+ options: localVarRequestOptions,
13270
+ };
13271
+ }),
13165
13272
  /**
13166
13273
  * Select a SumUp reader for a club.
13167
13274
  * @param {string} clubId
@@ -13266,6 +13373,22 @@ export const SumUpManagerApiFp = function (configuration) {
13266
13373
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13267
13374
  });
13268
13375
  },
13376
+ /**
13377
+ * Pair a SumUp reader with a club.
13378
+ * @param {string} clubId
13379
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13380
+ * @param {*} [options] Override http request option.
13381
+ * @throws {RequiredError}
13382
+ */
13383
+ pairSumupReader(clubId, sumupPairReaderRequest, options) {
13384
+ return __awaiter(this, void 0, void 0, function* () {
13385
+ var _a, _b, _c;
13386
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
13387
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13388
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13389
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13390
+ });
13391
+ },
13269
13392
  /**
13270
13393
  * Select a SumUp reader for a club.
13271
13394
  * @param {string} clubId
@@ -13327,6 +13450,15 @@ export const SumUpManagerApiFactory = function (configuration, basePath, axios)
13327
13450
  listSumupReaders(requestParameters, options) {
13328
13451
  return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
13329
13452
  },
13453
+ /**
13454
+ * Pair a SumUp reader with a club.
13455
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13456
+ * @param {*} [options] Override http request option.
13457
+ * @throws {RequiredError}
13458
+ */
13459
+ pairSumupReader(requestParameters, options) {
13460
+ return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
13461
+ },
13330
13462
  /**
13331
13463
  * Select a SumUp reader for a club.
13332
13464
  * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
@@ -13385,6 +13517,16 @@ export class SumUpManagerApi extends BaseAPI {
13385
13517
  listSumupReaders(requestParameters, options) {
13386
13518
  return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13387
13519
  }
13520
+ /**
13521
+ * Pair a SumUp reader with a club.
13522
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13523
+ * @param {*} [options] Override http request option.
13524
+ * @throws {RequiredError}
13525
+ * @memberof SumUpManagerApi
13526
+ */
13527
+ pairSumupReader(requestParameters, options) {
13528
+ return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
13529
+ }
13388
13530
  /**
13389
13531
  * Select a SumUp reader for a club.
13390
13532
  * @param {SumUpManagerApiSelectSumupReaderRequest} 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)