@tennac-booking/sdk 1.0.184 → 1.0.186

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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +2 -19
  2. package/README.md +7 -29
  3. package/api.ts +334 -1613
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +254 -1113
  8. package/dist/api.js +186 -893
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +254 -1113
  16. package/dist/esm/api.js +182 -876
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsApi.md +5 -5
  28. package/docs/BookingsStaffApi.md +1 -57
  29. package/docs/EventsStaffApi.md +119 -25
  30. package/docs/JoinOpenBookingRequest.md +26 -0
  31. package/docs/StaffEventsPageResponse.md +22 -0
  32. package/docs/UserClubMembership.md +2 -0
  33. package/docs/UserProfileResponse.md +2 -0
  34. package/index.ts +1 -1
  35. package/package.json +1 -1
  36. package/docs/CheckInPlayerSumupRequest.md +0 -22
  37. package/docs/CheckInPlayerSumupResponse.md +0 -24
  38. package/docs/CheckInSumupPaymentInfo.md +0 -26
  39. package/docs/PaymentIntentResult.md +0 -28
  40. package/docs/PaymentProviderType.md +0 -10
  41. package/docs/PaymentStatus.md +0 -14
  42. package/docs/PaymentsStaffApi.md +0 -124
  43. package/docs/StaffEventsPaginatedResponse.md +0 -26
  44. package/docs/SumUpApi.md +0 -63
  45. package/docs/SumUpManagerApi.md +0 -332
  46. package/docs/SumupAccountStatusResponse.md +0 -32
  47. package/docs/SumupCancelPaymentRequest.md +0 -20
  48. package/docs/SumupConnectUrlResponse.md +0 -20
  49. package/docs/SumupCreatePaymentRequest.md +0 -32
  50. package/docs/SumupOAuthCallbackResponse.md +0 -24
  51. package/docs/SumupPairReaderRequest.md +0 -22
  52. package/docs/SumupPairReaderResponse.md +0 -20
  53. package/docs/SumupReaderInfo.md +0 -34
  54. package/docs/SumupReadersResponse.md +0 -20
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.177
7
+ * The version of the OpenAPI document: 1.0.185
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -252,26 +252,6 @@ export const PaymentMethod = {
252
252
  OnsiteCash: 'onsite_cash',
253
253
  Free: 'free'
254
254
  };
255
- /**
256
- *
257
- * @export
258
- * @enum {string}
259
- */
260
- export const PaymentProviderType = {
261
- Stripe: 'stripe',
262
- Sumup: 'sumup'
263
- };
264
- /**
265
- *
266
- * @export
267
- * @enum {string}
268
- */
269
- export const PaymentStatus = {
270
- Pending: 'pending',
271
- Succeeded: 'succeeded',
272
- Failed: 'failed',
273
- Cancelled: 'cancelled'
274
- };
275
255
  /**
276
256
  *
277
257
  * @export
@@ -774,15 +754,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
774
754
  /**
775
755
  *
776
756
  * @param {string} bookingId
777
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
757
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
778
758
  * @param {*} [options] Override http request option.
779
759
  * @throws {RequiredError}
780
760
  */
781
- joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
761
+ joinOpenBooking: (bookingId_1, joinOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenBookingRequest, options = {}) {
782
762
  // verify required parameter 'bookingId' is not null or undefined
783
763
  assertParamExists('joinOpenBooking', 'bookingId', bookingId);
784
- // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
785
- assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
764
+ // verify required parameter 'joinOpenBookingRequest' is not null or undefined
765
+ assertParamExists('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest);
786
766
  const localVarPath = `/api/bookings/{bookingId}/open/join`
787
767
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
788
768
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -801,7 +781,7 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
801
781
  setSearchParams(localVarUrlObj, localVarQueryParameter);
802
782
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
803
783
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
804
- localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
784
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenBookingRequest, localVarRequestOptions, configuration);
805
785
  return {
806
786
  url: toPathString(localVarUrlObj),
807
787
  options: localVarRequestOptions,
@@ -997,14 +977,14 @@ export const BookingsApiFp = function (configuration) {
997
977
  /**
998
978
  *
999
979
  * @param {string} bookingId
1000
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
980
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
1001
981
  * @param {*} [options] Override http request option.
1002
982
  * @throws {RequiredError}
1003
983
  */
1004
- joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
984
+ joinOpenBooking(bookingId, joinOpenBookingRequest, options) {
1005
985
  return __awaiter(this, void 0, void 0, function* () {
1006
986
  var _a, _b, _c;
1007
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
987
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
1008
988
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1009
989
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1010
990
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1122,7 +1102,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1122
1102
  * @throws {RequiredError}
1123
1103
  */
1124
1104
  joinOpenBooking(requestParameters, options) {
1125
- return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
1105
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
1126
1106
  },
1127
1107
  /**
1128
1108
  *
@@ -1240,7 +1220,7 @@ export class BookingsApi extends BaseAPI {
1240
1220
  * @memberof BookingsApi
1241
1221
  */
1242
1222
  joinOpenBooking(requestParameters, options) {
1243
- return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
1223
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
1244
1224
  }
1245
1225
  /**
1246
1226
  *
@@ -1430,7 +1410,7 @@ export class BookingsManagerApi extends BaseAPI {
1430
1410
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1431
1411
  return {
1432
1412
  /**
1433
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1413
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1434
1414
  * @param {string} bookingId
1435
1415
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1436
1416
  * @param {*} [options] Override http request option.
@@ -1465,42 +1445,6 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1465
1445
  options: localVarRequestOptions,
1466
1446
  };
1467
1447
  }),
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
- }),
1504
1448
  /**
1505
1449
  * Créer une réservation pour un joueur depuis l\'espace staff
1506
1450
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1745,7 +1689,7 @@ export const BookingsStaffApiFp = function (configuration) {
1745
1689
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1746
1690
  return {
1747
1691
  /**
1748
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1692
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1749
1693
  * @param {string} bookingId
1750
1694
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1751
1695
  * @param {*} [options] Override http request option.
@@ -1760,22 +1704,6 @@ export const BookingsStaffApiFp = function (configuration) {
1760
1704
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1761
1705
  });
1762
1706
  },
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
- },
1779
1707
  /**
1780
1708
  * Créer une réservation pour un joueur depuis l\'espace staff
1781
1709
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1895,7 +1823,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1895
1823
  const localVarFp = BookingsStaffApiFp(configuration);
1896
1824
  return {
1897
1825
  /**
1898
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1826
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1899
1827
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1900
1828
  * @param {*} [options] Override http request option.
1901
1829
  * @throws {RequiredError}
@@ -1903,15 +1831,6 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1903
1831
  checkInPlayer(requestParameters, options) {
1904
1832
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1905
1833
  },
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
- },
1915
1834
  /**
1916
1835
  * Créer une réservation pour un joueur depuis l\'espace staff
1917
1836
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -1985,7 +1904,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1985
1904
  */
1986
1905
  export class BookingsStaffApi extends BaseAPI {
1987
1906
  /**
1988
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1907
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
1989
1908
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1990
1909
  * @param {*} [options] Override http request option.
1991
1910
  * @throws {RequiredError}
@@ -1994,16 +1913,6 @@ export class BookingsStaffApi extends BaseAPI {
1994
1913
  checkInPlayer(requestParameters, options) {
1995
1914
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
1996
1915
  }
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
- }
2007
1916
  /**
2008
1917
  * Créer une réservation pour un joueur depuis l\'espace staff
2009
1918
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -10885,16 +10794,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10885
10794
  };
10886
10795
  }),
10887
10796
  /**
10888
- * Get a specific event by ID (staff)
10889
- * @param {string} eventId
10797
+ *
10890
10798
  * @param {*} [options] Override http request option.
10891
10799
  * @throws {RequiredError}
10892
10800
  */
10893
- getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10894
- // verify required parameter 'eventId' is not null or undefined
10895
- assertParamExists('getEventByIdForStaff', 'eventId', eventId);
10896
- const localVarPath = `/api/events/staff/{eventId}`
10897
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10801
+ getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10802
+ const localVarPath = `/api/events/staff/getEvents/drafts`;
10898
10803
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10899
10804
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10900
10805
  let baseOptions;
@@ -10916,12 +10821,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10916
10821
  };
10917
10822
  }),
10918
10823
  /**
10919
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10824
+ * Get a specific event by ID (staff)
10825
+ * @param {string} eventId
10920
10826
  * @param {*} [options] Override http request option.
10921
10827
  * @throws {RequiredError}
10922
10828
  */
10923
- getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10924
- const localVarPath = `/api/events/staff/getEvents`;
10829
+ getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10830
+ // verify required parameter 'eventId' is not null or undefined
10831
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId);
10832
+ const localVarPath = `/api/events/staff/{eventId}`
10833
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10925
10834
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10926
10835
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10927
10836
  let baseOptions;
@@ -10989,6 +10898,60 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10989
10898
  options: localVarRequestOptions,
10990
10899
  };
10991
10900
  }),
10901
+ /**
10902
+ *
10903
+ * @param {*} [options] Override http request option.
10904
+ * @throws {RequiredError}
10905
+ */
10906
+ getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10907
+ const localVarPath = `/api/events/staff/getEvents/past`;
10908
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10909
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10910
+ let baseOptions;
10911
+ if (configuration) {
10912
+ baseOptions = configuration.baseOptions;
10913
+ }
10914
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10915
+ const localVarHeaderParameter = {};
10916
+ const localVarQueryParameter = {};
10917
+ // authentication bearerAuth required
10918
+ // http bearer authentication required
10919
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
10920
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10921
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10922
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10923
+ return {
10924
+ url: toPathString(localVarUrlObj),
10925
+ options: localVarRequestOptions,
10926
+ };
10927
+ }),
10928
+ /**
10929
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10930
+ * @param {*} [options] Override http request option.
10931
+ * @throws {RequiredError}
10932
+ */
10933
+ getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10934
+ const localVarPath = `/api/events/staff/getEvents/upcoming`;
10935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10936
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10937
+ let baseOptions;
10938
+ if (configuration) {
10939
+ baseOptions = configuration.baseOptions;
10940
+ }
10941
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10942
+ const localVarHeaderParameter = {};
10943
+ const localVarQueryParameter = {};
10944
+ // authentication bearerAuth required
10945
+ // http bearer authentication required
10946
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
10947
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10948
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10949
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10950
+ return {
10951
+ url: toPathString(localVarUrlObj),
10952
+ options: localVarRequestOptions,
10953
+ };
10954
+ }),
10992
10955
  /**
10993
10956
  * Get events for the week view (30 day sliding window)
10994
10957
  * @param {string} [clubId]
@@ -11081,31 +11044,31 @@ export const EventsStaffApiFp = function (configuration) {
11081
11044
  });
11082
11045
  },
11083
11046
  /**
11084
- * Get a specific event by ID (staff)
11085
- * @param {string} eventId
11047
+ *
11086
11048
  * @param {*} [options] Override http request option.
11087
11049
  * @throws {RequiredError}
11088
11050
  */
11089
- getEventByIdForStaff(eventId, options) {
11051
+ getDraftEventsByClub(options) {
11090
11052
  return __awaiter(this, void 0, void 0, function* () {
11091
11053
  var _a, _b, _c;
11092
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
11093
11055
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11094
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11056
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11095
11057
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11096
11058
  });
11097
11059
  },
11098
11060
  /**
11099
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11061
+ * Get a specific event by ID (staff)
11062
+ * @param {string} eventId
11100
11063
  * @param {*} [options] Override http request option.
11101
11064
  * @throws {RequiredError}
11102
11065
  */
11103
- getEventsByClub(options) {
11066
+ getEventByIdForStaff(eventId, options) {
11104
11067
  return __awaiter(this, void 0, void 0, function* () {
11105
11068
  var _a, _b, _c;
11106
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
11069
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11107
11070
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11108
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11071
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11109
11072
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11110
11073
  });
11111
11074
  },
@@ -11128,6 +11091,34 @@ export const EventsStaffApiFp = function (configuration) {
11128
11091
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11129
11092
  });
11130
11093
  },
11094
+ /**
11095
+ *
11096
+ * @param {*} [options] Override http request option.
11097
+ * @throws {RequiredError}
11098
+ */
11099
+ getPastEventsByClub(options) {
11100
+ return __awaiter(this, void 0, void 0, function* () {
11101
+ var _a, _b, _c;
11102
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
11103
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11104
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11105
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11106
+ });
11107
+ },
11108
+ /**
11109
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11110
+ * @param {*} [options] Override http request option.
11111
+ * @throws {RequiredError}
11112
+ */
11113
+ getUpcomingEventsByClub(options) {
11114
+ return __awaiter(this, void 0, void 0, function* () {
11115
+ var _a, _b, _c;
11116
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
11117
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11118
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11119
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11120
+ });
11121
+ },
11131
11122
  /**
11132
11123
  * Get events for the week view (30 day sliding window)
11133
11124
  * @param {string} [clubId]
@@ -11175,21 +11166,21 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11175
11166
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11176
11167
  },
11177
11168
  /**
11178
- * Get a specific event by ID (staff)
11179
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11169
+ *
11180
11170
  * @param {*} [options] Override http request option.
11181
11171
  * @throws {RequiredError}
11182
11172
  */
11183
- getEventByIdForStaff(requestParameters, options) {
11184
- return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11173
+ getDraftEventsByClub(options) {
11174
+ return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
11185
11175
  },
11186
11176
  /**
11187
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11177
+ * Get a specific event by ID (staff)
11178
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11188
11179
  * @param {*} [options] Override http request option.
11189
11180
  * @throws {RequiredError}
11190
11181
  */
11191
- getEventsByClub(options) {
11192
- return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
11182
+ getEventByIdForStaff(requestParameters, options) {
11183
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11193
11184
  },
11194
11185
  /**
11195
11186
  * Get events for the entire month view (including recurring occurrences)
@@ -11200,6 +11191,22 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11200
11191
  getMonthlyEvents(requestParameters = {}, options) {
11201
11192
  return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11202
11193
  },
11194
+ /**
11195
+ *
11196
+ * @param {*} [options] Override http request option.
11197
+ * @throws {RequiredError}
11198
+ */
11199
+ getPastEventsByClub(options) {
11200
+ return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
11201
+ },
11202
+ /**
11203
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11204
+ * @param {*} [options] Override http request option.
11205
+ * @throws {RequiredError}
11206
+ */
11207
+ getUpcomingEventsByClub(options) {
11208
+ return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
11209
+ },
11203
11210
  /**
11204
11211
  * Get events for the week view (30 day sliding window)
11205
11212
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11239,23 +11246,23 @@ export class EventsStaffApi extends BaseAPI {
11239
11246
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11240
11247
  }
11241
11248
  /**
11242
- * Get a specific event by ID (staff)
11243
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11249
+ *
11244
11250
  * @param {*} [options] Override http request option.
11245
11251
  * @throws {RequiredError}
11246
11252
  * @memberof EventsStaffApi
11247
11253
  */
11248
- getEventByIdForStaff(requestParameters, options) {
11249
- return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11254
+ getDraftEventsByClub(options) {
11255
+ return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
11250
11256
  }
11251
11257
  /**
11252
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11258
+ * Get a specific event by ID (staff)
11259
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11253
11260
  * @param {*} [options] Override http request option.
11254
11261
  * @throws {RequiredError}
11255
11262
  * @memberof EventsStaffApi
11256
11263
  */
11257
- getEventsByClub(options) {
11258
- return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
11264
+ getEventByIdForStaff(requestParameters, options) {
11265
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11259
11266
  }
11260
11267
  /**
11261
11268
  * Get events for the entire month view (including recurring occurrences)
@@ -11267,6 +11274,24 @@ export class EventsStaffApi extends BaseAPI {
11267
11274
  getMonthlyEvents(requestParameters = {}, options) {
11268
11275
  return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11269
11276
  }
11277
+ /**
11278
+ *
11279
+ * @param {*} [options] Override http request option.
11280
+ * @throws {RequiredError}
11281
+ * @memberof EventsStaffApi
11282
+ */
11283
+ getPastEventsByClub(options) {
11284
+ return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
11285
+ }
11286
+ /**
11287
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11288
+ * @param {*} [options] Override http request option.
11289
+ * @throws {RequiredError}
11290
+ * @memberof EventsStaffApi
11291
+ */
11292
+ getUpcomingEventsByClub(options) {
11293
+ return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
11294
+ }
11270
11295
  /**
11271
11296
  * Get events for the week view (30 day sliding window)
11272
11297
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11424,27 +11449,21 @@ export class ImagesApi extends BaseAPI {
11424
11449
  }
11425
11450
  }
11426
11451
  /**
11427
- * PaymentsStaffApi - axios parameter creator
11452
+ * PublicEmailApi - axios parameter creator
11428
11453
  * @export
11429
11454
  */
11430
- export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
11455
+ export const PublicEmailApiAxiosParamCreator = function (configuration) {
11431
11456
  return {
11432
11457
  /**
11433
- * Cancel a SumUp reader checkout.
11434
- * @param {string} clubId
11435
- * @param {string} paymentId
11436
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11458
+ *
11459
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
11437
11460
  * @param {*} [options] Override http request option.
11438
11461
  * @throws {RequiredError}
11439
11462
  */
11440
- cancelSumupPayment: (clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1], void 0, function* (clubId, paymentId, sumupCancelPaymentRequest, options = {}) {
11441
- // verify required parameter 'clubId' is not null or undefined
11442
- assertParamExists('cancelSumupPayment', 'clubId', clubId);
11443
- // verify required parameter 'paymentId' is not null or undefined
11444
- assertParamExists('cancelSumupPayment', 'paymentId', paymentId);
11445
- const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
11446
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
11447
- .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
11463
+ authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
11464
+ // verify required parameter 'emailExistsRequestBody' is not null or undefined
11465
+ assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
11466
+ const localVarPath = `/api/public-email/auth-email-exists`;
11448
11467
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11449
11468
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11450
11469
  let baseOptions;
@@ -11454,33 +11473,26 @@ export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
11454
11473
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11455
11474
  const localVarHeaderParameter = {};
11456
11475
  const localVarQueryParameter = {};
11457
- // authentication bearerAuth required
11458
- // http bearer authentication required
11459
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11460
11476
  localVarHeaderParameter['Content-Type'] = 'application/json';
11461
11477
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11462
11478
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11463
11479
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11464
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
11480
+ localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
11465
11481
  return {
11466
11482
  url: toPathString(localVarUrlObj),
11467
11483
  options: localVarRequestOptions,
11468
11484
  };
11469
11485
  }),
11470
11486
  /**
11471
- * Start a SumUp reader checkout (manual payment trigger).
11472
- * @param {string} clubId
11473
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11487
+ *
11488
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
11474
11489
  * @param {*} [options] Override http request option.
11475
11490
  * @throws {RequiredError}
11476
11491
  */
11477
- createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
11478
- // verify required parameter 'clubId' is not null or undefined
11479
- assertParamExists('createSumupPayment', 'clubId', clubId);
11480
- // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
11481
- assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
11482
- const localVarPath = `/api/clubs/{clubId}/payments/sumup`
11483
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
11492
+ requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11493
+ // verify required parameter 'requestEmailCodeBody' is not null or undefined
11494
+ assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11495
+ const localVarPath = `/api/public-email/request-verification-code`;
11484
11496
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11485
11497
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11486
11498
  let baseOptions;
@@ -11490,185 +11502,19 @@ export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
11490
11502
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11491
11503
  const localVarHeaderParameter = {};
11492
11504
  const localVarQueryParameter = {};
11493
- // authentication bearerAuth required
11494
- // http bearer authentication required
11495
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11496
11505
  localVarHeaderParameter['Content-Type'] = 'application/json';
11497
11506
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11498
11507
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11499
11508
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11500
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
11509
+ localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
11501
11510
  return {
11502
11511
  url: toPathString(localVarUrlObj),
11503
11512
  options: localVarRequestOptions,
11504
11513
  };
11505
11514
  }),
11506
- };
11507
- };
11508
- /**
11509
- * PaymentsStaffApi - functional programming interface
11510
- * @export
11511
- */
11512
- export const PaymentsStaffApiFp = function (configuration) {
11513
- const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration);
11514
- return {
11515
11515
  /**
11516
- * Cancel a SumUp reader checkout.
11517
- * @param {string} clubId
11518
- * @param {string} paymentId
11519
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11520
- * @param {*} [options] Override http request option.
11521
- * @throws {RequiredError}
11522
- */
11523
- cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
11524
- return __awaiter(this, void 0, void 0, function* () {
11525
- var _a, _b, _c;
11526
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
11527
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11528
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11529
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11530
- });
11531
- },
11532
- /**
11533
- * Start a SumUp reader checkout (manual payment trigger).
11534
- * @param {string} clubId
11535
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11536
- * @param {*} [options] Override http request option.
11537
- * @throws {RequiredError}
11538
- */
11539
- createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
11540
- return __awaiter(this, void 0, void 0, function* () {
11541
- var _a, _b, _c;
11542
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
11543
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11544
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11545
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11546
- });
11547
- },
11548
- };
11549
- };
11550
- /**
11551
- * PaymentsStaffApi - factory interface
11552
- * @export
11553
- */
11554
- export const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
11555
- const localVarFp = PaymentsStaffApiFp(configuration);
11556
- return {
11557
- /**
11558
- * Cancel a SumUp reader checkout.
11559
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11560
- * @param {*} [options] Override http request option.
11561
- * @throws {RequiredError}
11562
- */
11563
- cancelSumupPayment(requestParameters, options) {
11564
- return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
11565
- },
11566
- /**
11567
- * Start a SumUp reader checkout (manual payment trigger).
11568
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11569
- * @param {*} [options] Override http request option.
11570
- * @throws {RequiredError}
11571
- */
11572
- createSumupPayment(requestParameters, options) {
11573
- return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
11574
- },
11575
- };
11576
- };
11577
- /**
11578
- * PaymentsStaffApi - object-oriented interface
11579
- * @export
11580
- * @class PaymentsStaffApi
11581
- * @extends {BaseAPI}
11582
- */
11583
- export class PaymentsStaffApi extends BaseAPI {
11584
- /**
11585
- * Cancel a SumUp reader checkout.
11586
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11587
- * @param {*} [options] Override http request option.
11588
- * @throws {RequiredError}
11589
- * @memberof PaymentsStaffApi
11590
- */
11591
- cancelSumupPayment(requestParameters, options) {
11592
- return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
11593
- }
11594
- /**
11595
- * Start a SumUp reader checkout (manual payment trigger).
11596
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11597
- * @param {*} [options] Override http request option.
11598
- * @throws {RequiredError}
11599
- * @memberof PaymentsStaffApi
11600
- */
11601
- createSumupPayment(requestParameters, options) {
11602
- return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
11603
- }
11604
- }
11605
- /**
11606
- * PublicEmailApi - axios parameter creator
11607
- * @export
11608
- */
11609
- export const PublicEmailApiAxiosParamCreator = function (configuration) {
11610
- return {
11611
- /**
11612
- *
11613
- * @param {EmailExistsRequestBody} emailExistsRequestBody
11614
- * @param {*} [options] Override http request option.
11615
- * @throws {RequiredError}
11616
- */
11617
- authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
11618
- // verify required parameter 'emailExistsRequestBody' is not null or undefined
11619
- assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
11620
- const localVarPath = `/api/public-email/auth-email-exists`;
11621
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11622
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11623
- let baseOptions;
11624
- if (configuration) {
11625
- baseOptions = configuration.baseOptions;
11626
- }
11627
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11628
- const localVarHeaderParameter = {};
11629
- const localVarQueryParameter = {};
11630
- localVarHeaderParameter['Content-Type'] = 'application/json';
11631
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11632
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11633
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11634
- localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
11635
- return {
11636
- url: toPathString(localVarUrlObj),
11637
- options: localVarRequestOptions,
11638
- };
11639
- }),
11640
- /**
11641
- *
11642
- * @param {RequestEmailCodeBody} requestEmailCodeBody
11643
- * @param {*} [options] Override http request option.
11644
- * @throws {RequiredError}
11645
- */
11646
- requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11647
- // verify required parameter 'requestEmailCodeBody' is not null or undefined
11648
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11649
- const localVarPath = `/api/public-email/request-verification-code`;
11650
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11651
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11652
- let baseOptions;
11653
- if (configuration) {
11654
- baseOptions = configuration.baseOptions;
11655
- }
11656
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11657
- const localVarHeaderParameter = {};
11658
- const localVarQueryParameter = {};
11659
- localVarHeaderParameter['Content-Type'] = 'application/json';
11660
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11661
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11662
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11663
- localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
11664
- return {
11665
- url: toPathString(localVarUrlObj),
11666
- options: localVarRequestOptions,
11667
- };
11668
- }),
11669
- /**
11670
- *
11671
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
11516
+ *
11517
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
11672
11518
  * @param {*} [options] Override http request option.
11673
11519
  * @throws {RequiredError}
11674
11520
  */
@@ -12998,546 +12844,6 @@ export class SubscriptionsUserApi extends BaseAPI {
12998
12844
  return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
12999
12845
  }
13000
12846
  }
13001
- /**
13002
- * SumUpApi - axios parameter creator
13003
- * @export
13004
- */
13005
- export const SumUpApiAxiosParamCreator = function (configuration) {
13006
- return {
13007
- /**
13008
- * OAuth callback for SumUp.
13009
- * @param {string} code
13010
- * @param {string} state
13011
- * @param {*} [options] Override http request option.
13012
- * @throws {RequiredError}
13013
- */
13014
- sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
13015
- // verify required parameter 'code' is not null or undefined
13016
- assertParamExists('sumupOauthCallback', 'code', code);
13017
- // verify required parameter 'state' is not null or undefined
13018
- assertParamExists('sumupOauthCallback', 'state', state);
13019
- const localVarPath = `/api/sumup/oauth/callback`;
13020
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13021
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13022
- let baseOptions;
13023
- if (configuration) {
13024
- baseOptions = configuration.baseOptions;
13025
- }
13026
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13027
- const localVarHeaderParameter = {};
13028
- const localVarQueryParameter = {};
13029
- if (code !== undefined) {
13030
- localVarQueryParameter['code'] = code;
13031
- }
13032
- if (state !== undefined) {
13033
- localVarQueryParameter['state'] = state;
13034
- }
13035
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13036
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13037
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13038
- return {
13039
- url: toPathString(localVarUrlObj),
13040
- options: localVarRequestOptions,
13041
- };
13042
- }),
13043
- };
13044
- };
13045
- /**
13046
- * SumUpApi - functional programming interface
13047
- * @export
13048
- */
13049
- export const SumUpApiFp = function (configuration) {
13050
- const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration);
13051
- return {
13052
- /**
13053
- * OAuth callback for SumUp.
13054
- * @param {string} code
13055
- * @param {string} state
13056
- * @param {*} [options] Override http request option.
13057
- * @throws {RequiredError}
13058
- */
13059
- sumupOauthCallback(code, state, options) {
13060
- return __awaiter(this, void 0, void 0, function* () {
13061
- var _a, _b, _c;
13062
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
13063
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13064
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13065
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13066
- });
13067
- },
13068
- };
13069
- };
13070
- /**
13071
- * SumUpApi - factory interface
13072
- * @export
13073
- */
13074
- export const SumUpApiFactory = function (configuration, basePath, axios) {
13075
- const localVarFp = SumUpApiFp(configuration);
13076
- return {
13077
- /**
13078
- * OAuth callback for SumUp.
13079
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13080
- * @param {*} [options] Override http request option.
13081
- * @throws {RequiredError}
13082
- */
13083
- sumupOauthCallback(requestParameters, options) {
13084
- return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
13085
- },
13086
- };
13087
- };
13088
- /**
13089
- * SumUpApi - object-oriented interface
13090
- * @export
13091
- * @class SumUpApi
13092
- * @extends {BaseAPI}
13093
- */
13094
- export class SumUpApi extends BaseAPI {
13095
- /**
13096
- * OAuth callback for SumUp.
13097
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13098
- * @param {*} [options] Override http request option.
13099
- * @throws {RequiredError}
13100
- * @memberof SumUpApi
13101
- */
13102
- sumupOauthCallback(requestParameters, options) {
13103
- return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
13104
- }
13105
- }
13106
- /**
13107
- * SumUpManagerApi - axios parameter creator
13108
- * @export
13109
- */
13110
- export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13111
- return {
13112
- /**
13113
- * Disconnect SumUp account for a club.
13114
- * @param {string} clubId
13115
- * @param {*} [options] Override http request option.
13116
- * @throws {RequiredError}
13117
- */
13118
- disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13119
- // verify required parameter 'clubId' is not null or undefined
13120
- assertParamExists('disconnectSumup', 'clubId', clubId);
13121
- const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
13122
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13123
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13124
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13125
- let baseOptions;
13126
- if (configuration) {
13127
- baseOptions = configuration.baseOptions;
13128
- }
13129
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13130
- const localVarHeaderParameter = {};
13131
- const localVarQueryParameter = {};
13132
- // authentication bearerAuth required
13133
- // http bearer authentication required
13134
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13135
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13136
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13137
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13138
- return {
13139
- url: toPathString(localVarUrlObj),
13140
- options: localVarRequestOptions,
13141
- };
13142
- }),
13143
- /**
13144
- * Start SumUp OAuth connection for a club.
13145
- * @param {string} clubId
13146
- * @param {*} [options] Override http request option.
13147
- * @throws {RequiredError}
13148
- */
13149
- getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13150
- // verify required parameter 'clubId' is not null or undefined
13151
- assertParamExists('getSumupConnectUrl', 'clubId', clubId);
13152
- const localVarPath = `/api/clubs/{clubId}/sumup/connect`
13153
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13154
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13155
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13156
- let baseOptions;
13157
- if (configuration) {
13158
- baseOptions = configuration.baseOptions;
13159
- }
13160
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13161
- const localVarHeaderParameter = {};
13162
- const localVarQueryParameter = {};
13163
- // authentication bearerAuth required
13164
- // http bearer authentication required
13165
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13166
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13167
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13168
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13169
- return {
13170
- url: toPathString(localVarUrlObj),
13171
- options: localVarRequestOptions,
13172
- };
13173
- }),
13174
- /**
13175
- * Get SumUp connection status for a club.
13176
- * @param {string} clubId
13177
- * @param {*} [options] Override http request option.
13178
- * @throws {RequiredError}
13179
- */
13180
- getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13181
- // verify required parameter 'clubId' is not null or undefined
13182
- assertParamExists('getSumupStatus', 'clubId', clubId);
13183
- const localVarPath = `/api/clubs/{clubId}/sumup/status`
13184
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13185
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13186
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13187
- let baseOptions;
13188
- if (configuration) {
13189
- baseOptions = configuration.baseOptions;
13190
- }
13191
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13192
- const localVarHeaderParameter = {};
13193
- const localVarQueryParameter = {};
13194
- // authentication bearerAuth required
13195
- // http bearer authentication required
13196
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13197
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13198
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13199
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13200
- return {
13201
- url: toPathString(localVarUrlObj),
13202
- options: localVarRequestOptions,
13203
- };
13204
- }),
13205
- /**
13206
- * List SumUp readers for a club.
13207
- * @param {string} clubId
13208
- * @param {*} [options] Override http request option.
13209
- * @throws {RequiredError}
13210
- */
13211
- listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13212
- // verify required parameter 'clubId' is not null or undefined
13213
- assertParamExists('listSumupReaders', 'clubId', clubId);
13214
- const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13215
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13216
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13217
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13218
- let baseOptions;
13219
- if (configuration) {
13220
- baseOptions = configuration.baseOptions;
13221
- }
13222
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13223
- const localVarHeaderParameter = {};
13224
- const localVarQueryParameter = {};
13225
- // authentication bearerAuth required
13226
- // http bearer authentication required
13227
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13228
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13229
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13230
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13231
- return {
13232
- url: toPathString(localVarUrlObj),
13233
- options: localVarRequestOptions,
13234
- };
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
- }),
13272
- /**
13273
- * Select a SumUp reader for a club.
13274
- * @param {string} clubId
13275
- * @param {string} readerId
13276
- * @param {*} [options] Override http request option.
13277
- * @throws {RequiredError}
13278
- */
13279
- selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13280
- // verify required parameter 'clubId' is not null or undefined
13281
- assertParamExists('selectSumupReader', 'clubId', clubId);
13282
- // verify required parameter 'readerId' is not null or undefined
13283
- assertParamExists('selectSumupReader', 'readerId', readerId);
13284
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
13285
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13286
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13287
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13288
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13289
- let baseOptions;
13290
- if (configuration) {
13291
- baseOptions = configuration.baseOptions;
13292
- }
13293
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13294
- const localVarHeaderParameter = {};
13295
- const localVarQueryParameter = {};
13296
- // authentication bearerAuth required
13297
- // http bearer authentication required
13298
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13299
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13300
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13301
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13302
- return {
13303
- url: toPathString(localVarUrlObj),
13304
- options: localVarRequestOptions,
13305
- };
13306
- }),
13307
- };
13308
- };
13309
- /**
13310
- * SumUpManagerApi - functional programming interface
13311
- * @export
13312
- */
13313
- export const SumUpManagerApiFp = function (configuration) {
13314
- const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration);
13315
- return {
13316
- /**
13317
- * Disconnect SumUp account for a club.
13318
- * @param {string} clubId
13319
- * @param {*} [options] Override http request option.
13320
- * @throws {RequiredError}
13321
- */
13322
- disconnectSumup(clubId, options) {
13323
- return __awaiter(this, void 0, void 0, function* () {
13324
- var _a, _b, _c;
13325
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
13326
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13327
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13328
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13329
- });
13330
- },
13331
- /**
13332
- * Start SumUp OAuth connection for a club.
13333
- * @param {string} clubId
13334
- * @param {*} [options] Override http request option.
13335
- * @throws {RequiredError}
13336
- */
13337
- getSumupConnectUrl(clubId, options) {
13338
- return __awaiter(this, void 0, void 0, function* () {
13339
- var _a, _b, _c;
13340
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
13341
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13342
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13343
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13344
- });
13345
- },
13346
- /**
13347
- * Get SumUp connection status for a club.
13348
- * @param {string} clubId
13349
- * @param {*} [options] Override http request option.
13350
- * @throws {RequiredError}
13351
- */
13352
- getSumupStatus(clubId, options) {
13353
- return __awaiter(this, void 0, void 0, function* () {
13354
- var _a, _b, _c;
13355
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
13356
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13357
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13358
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13359
- });
13360
- },
13361
- /**
13362
- * List SumUp readers for a club.
13363
- * @param {string} clubId
13364
- * @param {*} [options] Override http request option.
13365
- * @throws {RequiredError}
13366
- */
13367
- listSumupReaders(clubId, options) {
13368
- return __awaiter(this, void 0, void 0, function* () {
13369
- var _a, _b, _c;
13370
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
13371
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13372
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13373
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13374
- });
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
- },
13392
- /**
13393
- * Select a SumUp reader for a club.
13394
- * @param {string} clubId
13395
- * @param {string} readerId
13396
- * @param {*} [options] Override http request option.
13397
- * @throws {RequiredError}
13398
- */
13399
- selectSumupReader(clubId, readerId, options) {
13400
- return __awaiter(this, void 0, void 0, function* () {
13401
- var _a, _b, _c;
13402
- const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
13403
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13404
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13405
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13406
- });
13407
- },
13408
- };
13409
- };
13410
- /**
13411
- * SumUpManagerApi - factory interface
13412
- * @export
13413
- */
13414
- export const SumUpManagerApiFactory = function (configuration, basePath, axios) {
13415
- const localVarFp = SumUpManagerApiFp(configuration);
13416
- return {
13417
- /**
13418
- * Disconnect SumUp account for a club.
13419
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13420
- * @param {*} [options] Override http request option.
13421
- * @throws {RequiredError}
13422
- */
13423
- disconnectSumup(requestParameters, options) {
13424
- return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
13425
- },
13426
- /**
13427
- * Start SumUp OAuth connection for a club.
13428
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13429
- * @param {*} [options] Override http request option.
13430
- * @throws {RequiredError}
13431
- */
13432
- getSumupConnectUrl(requestParameters, options) {
13433
- return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
13434
- },
13435
- /**
13436
- * Get SumUp connection status for a club.
13437
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13438
- * @param {*} [options] Override http request option.
13439
- * @throws {RequiredError}
13440
- */
13441
- getSumupStatus(requestParameters, options) {
13442
- return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
13443
- },
13444
- /**
13445
- * List SumUp readers for a club.
13446
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13447
- * @param {*} [options] Override http request option.
13448
- * @throws {RequiredError}
13449
- */
13450
- listSumupReaders(requestParameters, options) {
13451
- return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
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
- },
13462
- /**
13463
- * Select a SumUp reader for a club.
13464
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13465
- * @param {*} [options] Override http request option.
13466
- * @throws {RequiredError}
13467
- */
13468
- selectSumupReader(requestParameters, options) {
13469
- return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13470
- },
13471
- };
13472
- };
13473
- /**
13474
- * SumUpManagerApi - object-oriented interface
13475
- * @export
13476
- * @class SumUpManagerApi
13477
- * @extends {BaseAPI}
13478
- */
13479
- export class SumUpManagerApi extends BaseAPI {
13480
- /**
13481
- * Disconnect SumUp account for a club.
13482
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13483
- * @param {*} [options] Override http request option.
13484
- * @throws {RequiredError}
13485
- * @memberof SumUpManagerApi
13486
- */
13487
- disconnectSumup(requestParameters, options) {
13488
- return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13489
- }
13490
- /**
13491
- * Start SumUp OAuth connection for a club.
13492
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13493
- * @param {*} [options] Override http request option.
13494
- * @throws {RequiredError}
13495
- * @memberof SumUpManagerApi
13496
- */
13497
- getSumupConnectUrl(requestParameters, options) {
13498
- return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13499
- }
13500
- /**
13501
- * Get SumUp connection status for a club.
13502
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13503
- * @param {*} [options] Override http request option.
13504
- * @throws {RequiredError}
13505
- * @memberof SumUpManagerApi
13506
- */
13507
- getSumupStatus(requestParameters, options) {
13508
- return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13509
- }
13510
- /**
13511
- * List SumUp readers for a club.
13512
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13513
- * @param {*} [options] Override http request option.
13514
- * @throws {RequiredError}
13515
- * @memberof SumUpManagerApi
13516
- */
13517
- listSumupReaders(requestParameters, options) {
13518
- return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
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
- }
13530
- /**
13531
- * Select a SumUp reader for a club.
13532
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13533
- * @param {*} [options] Override http request option.
13534
- * @throws {RequiredError}
13535
- * @memberof SumUpManagerApi
13536
- */
13537
- selectSumupReader(requestParameters, options) {
13538
- return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13539
- }
13540
- }
13541
12847
  /**
13542
12848
  * UserApi - axios parameter creator
13543
12849
  * @export