@tennac-booking/sdk 1.0.231 → 1.0.233

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 (56) hide show
  1. package/.openapi-generator/FILES +25 -0
  2. package/README.md +40 -2
  3. package/api.ts +2222 -5
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +7514 -6070
  8. package/dist/api.js +1212 -10
  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 +7514 -6070
  16. package/dist/esm/api.js +1195 -5
  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/BookingsStaffApi.md +57 -1
  28. package/docs/CheckInPlayerSumupRequest.md +22 -0
  29. package/docs/CheckInPlayerSumupResponse.md +24 -0
  30. package/docs/CheckInSumupPaymentInfo.md +26 -0
  31. package/docs/EventsApi.md +59 -0
  32. package/docs/PaymentIntentResult.md +28 -0
  33. package/docs/PaymentProviderType.md +10 -0
  34. package/docs/PaymentStatus.md +14 -0
  35. package/docs/PaymentsStaffApi.md +124 -0
  36. package/docs/PublishEventResponse.md +2 -0
  37. package/docs/RespondToEventBookingInvitation200Response.md +24 -0
  38. package/docs/RespondToEventBookingInvitationRequest.md +20 -0
  39. package/docs/SumUpApi.md +63 -0
  40. package/docs/SumUpManagerApi.md +617 -0
  41. package/docs/SumupAccountStatusResponse.md +32 -0
  42. package/docs/SumupCancelPaymentRequest.md +20 -0
  43. package/docs/SumupConnectUrlResponse.md +20 -0
  44. package/docs/SumupCreatePaymentRequest.md +32 -0
  45. package/docs/SumupOAuthCallbackResponse.md +24 -0
  46. package/docs/SumupPairReaderRequest.md +24 -0
  47. package/docs/SumupPairReaderResponse.md +20 -0
  48. package/docs/SumupReaderInfo.md +42 -0
  49. package/docs/SumupReaderInfoDevice.md +22 -0
  50. package/docs/SumupReaderResponse.md +20 -0
  51. package/docs/SumupReaderStatusInfo.md +32 -0
  52. package/docs/SumupReaderStatusResponse.md +20 -0
  53. package/docs/SumupReadersResponse.md +20 -0
  54. package/docs/SumupUpdateReaderRequest.md +22 -0
  55. package/index.ts +1 -1
  56. package/package.json +1 -1
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.231
7
+ * The version of the OpenAPI document: 1.0.233
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -295,6 +295,26 @@ export const PaymentMethod = {
295
295
  OnsiteCash: 'onsite_cash',
296
296
  Free: 'free'
297
297
  };
298
+ /**
299
+ *
300
+ * @export
301
+ * @enum {string}
302
+ */
303
+ export const PaymentProviderType = {
304
+ Stripe: 'stripe',
305
+ Sumup: 'sumup'
306
+ };
307
+ /**
308
+ *
309
+ * @export
310
+ * @enum {string}
311
+ */
312
+ export const PaymentStatus = {
313
+ Pending: 'pending',
314
+ Succeeded: 'succeeded',
315
+ Failed: 'failed',
316
+ Cancelled: 'cancelled'
317
+ };
298
318
  /**
299
319
  *
300
320
  * @export
@@ -1530,7 +1550,7 @@ export class BookingsManagerApi extends BaseAPI {
1530
1550
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1531
1551
  return {
1532
1552
  /**
1533
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1553
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1534
1554
  * @param {string} bookingId
1535
1555
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1536
1556
  * @param {*} [options] Override http request option.
@@ -1565,6 +1585,42 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
1565
1585
  options: localVarRequestOptions,
1566
1586
  };
1567
1587
  },
1588
+ /**
1589
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1590
+ * @param {string} bookingId
1591
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1592
+ * @param {*} [options] Override http request option.
1593
+ * @throws {RequiredError}
1594
+ */
1595
+ checkInPlayerWithSumup: async (bookingId, checkInPlayerSumupRequest, options = {}) => {
1596
+ // verify required parameter 'bookingId' is not null or undefined
1597
+ assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId);
1598
+ // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
1599
+ assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
1600
+ const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
1601
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
1602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1604
+ let baseOptions;
1605
+ if (configuration) {
1606
+ baseOptions = configuration.baseOptions;
1607
+ }
1608
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1609
+ const localVarHeaderParameter = {};
1610
+ const localVarQueryParameter = {};
1611
+ // authentication bearerAuth required
1612
+ // http bearer authentication required
1613
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1614
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1615
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1616
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1617
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1618
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
1619
+ return {
1620
+ url: toPathString(localVarUrlObj),
1621
+ options: localVarRequestOptions,
1622
+ };
1623
+ },
1568
1624
  /**
1569
1625
  * Créer une réservation pour un joueur depuis l\'espace staff
1570
1626
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1809,7 +1865,7 @@ export const BookingsStaffApiFp = function (configuration) {
1809
1865
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
1810
1866
  return {
1811
1867
  /**
1812
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1868
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1813
1869
  * @param {string} bookingId
1814
1870
  * @param {CheckInPlayerRequest} checkInPlayerRequest
1815
1871
  * @param {*} [options] Override http request option.
@@ -1821,6 +1877,19 @@ export const BookingsStaffApiFp = function (configuration) {
1821
1877
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
1822
1878
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1823
1879
  },
1880
+ /**
1881
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
1882
+ * @param {string} bookingId
1883
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
1884
+ * @param {*} [options] Override http request option.
1885
+ * @throws {RequiredError}
1886
+ */
1887
+ async checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
1888
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
1889
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1890
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']?.[localVarOperationServerIndex]?.url;
1891
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1892
+ },
1824
1893
  /**
1825
1894
  * Créer une réservation pour un joueur depuis l\'espace staff
1826
1895
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -1919,7 +1988,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1919
1988
  const localVarFp = BookingsStaffApiFp(configuration);
1920
1989
  return {
1921
1990
  /**
1922
- * Check-in d\'un joueur (paiement en ligne ou sur place)
1991
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
1923
1992
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
1924
1993
  * @param {*} [options] Override http request option.
1925
1994
  * @throws {RequiredError}
@@ -1927,6 +1996,15 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
1927
1996
  checkInPlayer(requestParameters, options) {
1928
1997
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
1929
1998
  },
1999
+ /**
2000
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
2001
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
2002
+ * @param {*} [options] Override http request option.
2003
+ * @throws {RequiredError}
2004
+ */
2005
+ checkInPlayerWithSumup(requestParameters, options) {
2006
+ return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
2007
+ },
1930
2008
  /**
1931
2009
  * Créer une réservation pour un joueur depuis l\'espace staff
1932
2010
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -2000,7 +2078,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
2000
2078
  */
2001
2079
  export class BookingsStaffApi extends BaseAPI {
2002
2080
  /**
2003
- * Check-in d\'un joueur (paiement en ligne ou sur place)
2081
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
2004
2082
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
2005
2083
  * @param {*} [options] Override http request option.
2006
2084
  * @throws {RequiredError}
@@ -2009,6 +2087,16 @@ export class BookingsStaffApi extends BaseAPI {
2009
2087
  checkInPlayer(requestParameters, options) {
2010
2088
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
2011
2089
  }
2090
+ /**
2091
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
2092
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
2093
+ * @param {*} [options] Override http request option.
2094
+ * @throws {RequiredError}
2095
+ * @memberof BookingsStaffApi
2096
+ */
2097
+ checkInPlayerWithSumup(requestParameters, options) {
2098
+ return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
2099
+ }
2012
2100
  /**
2013
2101
  * Créer une réservation pour un joueur depuis l\'espace staff
2014
2102
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -9616,6 +9704,42 @@ export const EventsApiAxiosParamCreator = function (configuration) {
9616
9704
  options: localVarRequestOptions,
9617
9705
  };
9618
9706
  },
9707
+ /**
9708
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
9709
+ * @param {string} eventBookingId
9710
+ * @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
9711
+ * @param {*} [options] Override http request option.
9712
+ * @throws {RequiredError}
9713
+ */
9714
+ respondToEventBookingInvitation: async (eventBookingId, respondToEventBookingInvitationRequest, options = {}) => {
9715
+ // verify required parameter 'eventBookingId' is not null or undefined
9716
+ assertParamExists('respondToEventBookingInvitation', 'eventBookingId', eventBookingId);
9717
+ // verify required parameter 'respondToEventBookingInvitationRequest' is not null or undefined
9718
+ assertParamExists('respondToEventBookingInvitation', 'respondToEventBookingInvitationRequest', respondToEventBookingInvitationRequest);
9719
+ const localVarPath = `/api/events/{eventBookingId}/respond-invitation`
9720
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
9721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9723
+ let baseOptions;
9724
+ if (configuration) {
9725
+ baseOptions = configuration.baseOptions;
9726
+ }
9727
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
9728
+ const localVarHeaderParameter = {};
9729
+ const localVarQueryParameter = {};
9730
+ // authentication bearerAuth required
9731
+ // http bearer authentication required
9732
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
9733
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9736
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9737
+ localVarRequestOptions.data = serializeDataIfNeeded(respondToEventBookingInvitationRequest, localVarRequestOptions, configuration);
9738
+ return {
9739
+ url: toPathString(localVarUrlObj),
9740
+ options: localVarRequestOptions,
9741
+ };
9742
+ },
9619
9743
  };
9620
9744
  };
9621
9745
  /**
@@ -9793,6 +9917,19 @@ export const EventsApiFp = function (configuration) {
9793
9917
  const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveOpenEventBooking']?.[localVarOperationServerIndex]?.url;
9794
9918
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9795
9919
  },
9920
+ /**
9921
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
9922
+ * @param {string} eventBookingId
9923
+ * @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
9924
+ * @param {*} [options] Override http request option.
9925
+ * @throws {RequiredError}
9926
+ */
9927
+ async respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options) {
9928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options);
9929
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9930
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.respondToEventBookingInvitation']?.[localVarOperationServerIndex]?.url;
9931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9932
+ },
9796
9933
  };
9797
9934
  };
9798
9935
  /**
@@ -9919,6 +10056,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
9919
10056
  leaveOpenEventBooking(requestParameters, options) {
9920
10057
  return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
9921
10058
  },
10059
+ /**
10060
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
10061
+ * @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
10062
+ * @param {*} [options] Override http request option.
10063
+ * @throws {RequiredError}
10064
+ */
10065
+ respondToEventBookingInvitation(requestParameters, options) {
10066
+ return localVarFp.respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(axios, basePath));
10067
+ },
9922
10068
  };
9923
10069
  };
9924
10070
  /**
@@ -10058,6 +10204,16 @@ export class EventsApi extends BaseAPI {
10058
10204
  leaveOpenEventBooking(requestParameters, options) {
10059
10205
  return EventsApiFp(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
10060
10206
  }
10207
+ /**
10208
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
10209
+ * @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
10210
+ * @param {*} [options] Override http request option.
10211
+ * @throws {RequiredError}
10212
+ * @memberof EventsApi
10213
+ */
10214
+ respondToEventBookingInvitation(requestParameters, options) {
10215
+ return EventsApiFp(this.configuration).respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
10216
+ }
10061
10217
  }
10062
10218
  /**
10063
10219
  * @export
@@ -11885,6 +12041,179 @@ export class JobsApi extends BaseAPI {
11885
12041
  return JobsApiFp(this.configuration).sendBookingReminders(options).then((request) => request(this.axios, this.basePath));
11886
12042
  }
11887
12043
  }
12044
+ /**
12045
+ * PaymentsStaffApi - axios parameter creator
12046
+ * @export
12047
+ */
12048
+ export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
12049
+ return {
12050
+ /**
12051
+ * Cancel a SumUp reader checkout.
12052
+ * @param {string} clubId
12053
+ * @param {string} paymentId
12054
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
12055
+ * @param {*} [options] Override http request option.
12056
+ * @throws {RequiredError}
12057
+ */
12058
+ cancelSumupPayment: async (clubId, paymentId, sumupCancelPaymentRequest, options = {}) => {
12059
+ // verify required parameter 'clubId' is not null or undefined
12060
+ assertParamExists('cancelSumupPayment', 'clubId', clubId);
12061
+ // verify required parameter 'paymentId' is not null or undefined
12062
+ assertParamExists('cancelSumupPayment', 'paymentId', paymentId);
12063
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
12064
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
12065
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
12066
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12067
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12068
+ let baseOptions;
12069
+ if (configuration) {
12070
+ baseOptions = configuration.baseOptions;
12071
+ }
12072
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
12073
+ const localVarHeaderParameter = {};
12074
+ const localVarQueryParameter = {};
12075
+ // authentication bearerAuth required
12076
+ // http bearer authentication required
12077
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
12078
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12079
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12080
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12081
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
12082
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
12083
+ return {
12084
+ url: toPathString(localVarUrlObj),
12085
+ options: localVarRequestOptions,
12086
+ };
12087
+ },
12088
+ /**
12089
+ * Start a SumUp reader checkout (manual payment trigger).
12090
+ * @param {string} clubId
12091
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
12092
+ * @param {*} [options] Override http request option.
12093
+ * @throws {RequiredError}
12094
+ */
12095
+ createSumupPayment: async (clubId, sumupCreatePaymentRequest, options = {}) => {
12096
+ // verify required parameter 'clubId' is not null or undefined
12097
+ assertParamExists('createSumupPayment', 'clubId', clubId);
12098
+ // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
12099
+ assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
12100
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup`
12101
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
12102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12103
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12104
+ let baseOptions;
12105
+ if (configuration) {
12106
+ baseOptions = configuration.baseOptions;
12107
+ }
12108
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
12109
+ const localVarHeaderParameter = {};
12110
+ const localVarQueryParameter = {};
12111
+ // authentication bearerAuth required
12112
+ // http bearer authentication required
12113
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
12114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12115
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12117
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
12118
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
12119
+ return {
12120
+ url: toPathString(localVarUrlObj),
12121
+ options: localVarRequestOptions,
12122
+ };
12123
+ },
12124
+ };
12125
+ };
12126
+ /**
12127
+ * PaymentsStaffApi - functional programming interface
12128
+ * @export
12129
+ */
12130
+ export const PaymentsStaffApiFp = function (configuration) {
12131
+ const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration);
12132
+ return {
12133
+ /**
12134
+ * Cancel a SumUp reader checkout.
12135
+ * @param {string} clubId
12136
+ * @param {string} paymentId
12137
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
12138
+ * @param {*} [options] Override http request option.
12139
+ * @throws {RequiredError}
12140
+ */
12141
+ async cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
12142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
12143
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12144
+ const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.cancelSumupPayment']?.[localVarOperationServerIndex]?.url;
12145
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12146
+ },
12147
+ /**
12148
+ * Start a SumUp reader checkout (manual payment trigger).
12149
+ * @param {string} clubId
12150
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
12151
+ * @param {*} [options] Override http request option.
12152
+ * @throws {RequiredError}
12153
+ */
12154
+ async createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
12155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
12156
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12157
+ const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.createSumupPayment']?.[localVarOperationServerIndex]?.url;
12158
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12159
+ },
12160
+ };
12161
+ };
12162
+ /**
12163
+ * PaymentsStaffApi - factory interface
12164
+ * @export
12165
+ */
12166
+ export const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
12167
+ const localVarFp = PaymentsStaffApiFp(configuration);
12168
+ return {
12169
+ /**
12170
+ * Cancel a SumUp reader checkout.
12171
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
12172
+ * @param {*} [options] Override http request option.
12173
+ * @throws {RequiredError}
12174
+ */
12175
+ cancelSumupPayment(requestParameters, options) {
12176
+ return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
12177
+ },
12178
+ /**
12179
+ * Start a SumUp reader checkout (manual payment trigger).
12180
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
12181
+ * @param {*} [options] Override http request option.
12182
+ * @throws {RequiredError}
12183
+ */
12184
+ createSumupPayment(requestParameters, options) {
12185
+ return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
12186
+ },
12187
+ };
12188
+ };
12189
+ /**
12190
+ * PaymentsStaffApi - object-oriented interface
12191
+ * @export
12192
+ * @class PaymentsStaffApi
12193
+ * @extends {BaseAPI}
12194
+ */
12195
+ export class PaymentsStaffApi extends BaseAPI {
12196
+ /**
12197
+ * Cancel a SumUp reader checkout.
12198
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
12199
+ * @param {*} [options] Override http request option.
12200
+ * @throws {RequiredError}
12201
+ * @memberof PaymentsStaffApi
12202
+ */
12203
+ cancelSumupPayment(requestParameters, options) {
12204
+ return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
12205
+ }
12206
+ /**
12207
+ * Start a SumUp reader checkout (manual payment trigger).
12208
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
12209
+ * @param {*} [options] Override http request option.
12210
+ * @throws {RequiredError}
12211
+ * @memberof PaymentsStaffApi
12212
+ */
12213
+ createSumupPayment(requestParameters, options) {
12214
+ return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
12215
+ }
12216
+ }
11888
12217
  /**
11889
12218
  * PublicEmailApi - axios parameter creator
11890
12219
  * @export
@@ -13227,6 +13556,867 @@ export class SubscriptionsUserApi extends BaseAPI {
13227
13556
  return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
13228
13557
  }
13229
13558
  }
13559
+ /**
13560
+ * SumUpApi - axios parameter creator
13561
+ * @export
13562
+ */
13563
+ export const SumUpApiAxiosParamCreator = function (configuration) {
13564
+ return {
13565
+ /**
13566
+ * OAuth callback for SumUp.
13567
+ * @param {string} code
13568
+ * @param {string} state
13569
+ * @param {*} [options] Override http request option.
13570
+ * @throws {RequiredError}
13571
+ */
13572
+ sumupOauthCallback: async (code, state, options = {}) => {
13573
+ // verify required parameter 'code' is not null or undefined
13574
+ assertParamExists('sumupOauthCallback', 'code', code);
13575
+ // verify required parameter 'state' is not null or undefined
13576
+ assertParamExists('sumupOauthCallback', 'state', state);
13577
+ const localVarPath = `/api/sumup/oauth/callback`;
13578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13579
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13580
+ let baseOptions;
13581
+ if (configuration) {
13582
+ baseOptions = configuration.baseOptions;
13583
+ }
13584
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13585
+ const localVarHeaderParameter = {};
13586
+ const localVarQueryParameter = {};
13587
+ if (code !== undefined) {
13588
+ localVarQueryParameter['code'] = code;
13589
+ }
13590
+ if (state !== undefined) {
13591
+ localVarQueryParameter['state'] = state;
13592
+ }
13593
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13595
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13596
+ return {
13597
+ url: toPathString(localVarUrlObj),
13598
+ options: localVarRequestOptions,
13599
+ };
13600
+ },
13601
+ };
13602
+ };
13603
+ /**
13604
+ * SumUpApi - functional programming interface
13605
+ * @export
13606
+ */
13607
+ export const SumUpApiFp = function (configuration) {
13608
+ const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration);
13609
+ return {
13610
+ /**
13611
+ * OAuth callback for SumUp.
13612
+ * @param {string} code
13613
+ * @param {string} state
13614
+ * @param {*} [options] Override http request option.
13615
+ * @throws {RequiredError}
13616
+ */
13617
+ async sumupOauthCallback(code, state, options) {
13618
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
13619
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13620
+ const localVarOperationServerBasePath = operationServerMap['SumUpApi.sumupOauthCallback']?.[localVarOperationServerIndex]?.url;
13621
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13622
+ },
13623
+ };
13624
+ };
13625
+ /**
13626
+ * SumUpApi - factory interface
13627
+ * @export
13628
+ */
13629
+ export const SumUpApiFactory = function (configuration, basePath, axios) {
13630
+ const localVarFp = SumUpApiFp(configuration);
13631
+ return {
13632
+ /**
13633
+ * OAuth callback for SumUp.
13634
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13635
+ * @param {*} [options] Override http request option.
13636
+ * @throws {RequiredError}
13637
+ */
13638
+ sumupOauthCallback(requestParameters, options) {
13639
+ return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
13640
+ },
13641
+ };
13642
+ };
13643
+ /**
13644
+ * SumUpApi - object-oriented interface
13645
+ * @export
13646
+ * @class SumUpApi
13647
+ * @extends {BaseAPI}
13648
+ */
13649
+ export class SumUpApi extends BaseAPI {
13650
+ /**
13651
+ * OAuth callback for SumUp.
13652
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13653
+ * @param {*} [options] Override http request option.
13654
+ * @throws {RequiredError}
13655
+ * @memberof SumUpApi
13656
+ */
13657
+ sumupOauthCallback(requestParameters, options) {
13658
+ return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
13659
+ }
13660
+ }
13661
+ /**
13662
+ * SumUpManagerApi - axios parameter creator
13663
+ * @export
13664
+ */
13665
+ export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13666
+ return {
13667
+ /**
13668
+ * Pair a SumUp reader with a club.
13669
+ * @param {string} clubId
13670
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13671
+ * @param {*} [options] Override http request option.
13672
+ * @throws {RequiredError}
13673
+ */
13674
+ createSumupReader: async (clubId, sumupPairReaderRequest, options = {}) => {
13675
+ // verify required parameter 'clubId' is not null or undefined
13676
+ assertParamExists('createSumupReader', 'clubId', clubId);
13677
+ // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13678
+ assertParamExists('createSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13679
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13680
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13681
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13682
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13683
+ let baseOptions;
13684
+ if (configuration) {
13685
+ baseOptions = configuration.baseOptions;
13686
+ }
13687
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
13688
+ const localVarHeaderParameter = {};
13689
+ const localVarQueryParameter = {};
13690
+ // authentication bearerAuth required
13691
+ // http bearer authentication required
13692
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13693
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13694
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13696
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13697
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13698
+ return {
13699
+ url: toPathString(localVarUrlObj),
13700
+ options: localVarRequestOptions,
13701
+ };
13702
+ },
13703
+ /**
13704
+ * Delete a SumUp reader.
13705
+ * @param {string} clubId
13706
+ * @param {string} readerId
13707
+ * @param {*} [options] Override http request option.
13708
+ * @throws {RequiredError}
13709
+ */
13710
+ deleteSumupReader: async (clubId, readerId, options = {}) => {
13711
+ // verify required parameter 'clubId' is not null or undefined
13712
+ assertParamExists('deleteSumupReader', 'clubId', clubId);
13713
+ // verify required parameter 'readerId' is not null or undefined
13714
+ assertParamExists('deleteSumupReader', 'readerId', readerId);
13715
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
13716
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13717
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13718
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13719
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13720
+ let baseOptions;
13721
+ if (configuration) {
13722
+ baseOptions = configuration.baseOptions;
13723
+ }
13724
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
13725
+ const localVarHeaderParameter = {};
13726
+ const localVarQueryParameter = {};
13727
+ // authentication bearerAuth required
13728
+ // http bearer authentication required
13729
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13730
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13731
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13732
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13733
+ return {
13734
+ url: toPathString(localVarUrlObj),
13735
+ options: localVarRequestOptions,
13736
+ };
13737
+ },
13738
+ /**
13739
+ * Disconnect SumUp account for a club.
13740
+ * @param {string} clubId
13741
+ * @param {*} [options] Override http request option.
13742
+ * @throws {RequiredError}
13743
+ */
13744
+ disconnectSumup: async (clubId, options = {}) => {
13745
+ // verify required parameter 'clubId' is not null or undefined
13746
+ assertParamExists('disconnectSumup', 'clubId', clubId);
13747
+ const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
13748
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13749
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13750
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13751
+ let baseOptions;
13752
+ if (configuration) {
13753
+ baseOptions = configuration.baseOptions;
13754
+ }
13755
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
13756
+ const localVarHeaderParameter = {};
13757
+ const localVarQueryParameter = {};
13758
+ // authentication bearerAuth required
13759
+ // http bearer authentication required
13760
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13761
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13762
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13763
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13764
+ return {
13765
+ url: toPathString(localVarUrlObj),
13766
+ options: localVarRequestOptions,
13767
+ };
13768
+ },
13769
+ /**
13770
+ * Start SumUp OAuth connection for a club.
13771
+ * @param {string} clubId
13772
+ * @param {*} [options] Override http request option.
13773
+ * @throws {RequiredError}
13774
+ */
13775
+ getSumupConnectUrl: async (clubId, options = {}) => {
13776
+ // verify required parameter 'clubId' is not null or undefined
13777
+ assertParamExists('getSumupConnectUrl', 'clubId', clubId);
13778
+ const localVarPath = `/api/clubs/{clubId}/sumup/connect`
13779
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13781
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13782
+ let baseOptions;
13783
+ if (configuration) {
13784
+ baseOptions = configuration.baseOptions;
13785
+ }
13786
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13787
+ const localVarHeaderParameter = {};
13788
+ const localVarQueryParameter = {};
13789
+ // authentication bearerAuth required
13790
+ // http bearer authentication required
13791
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13792
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13794
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13795
+ return {
13796
+ url: toPathString(localVarUrlObj),
13797
+ options: localVarRequestOptions,
13798
+ };
13799
+ },
13800
+ /**
13801
+ * Retrieve a SumUp reader.
13802
+ * @param {string} clubId
13803
+ * @param {string} readerId
13804
+ * @param {*} [options] Override http request option.
13805
+ * @throws {RequiredError}
13806
+ */
13807
+ getSumupReader: async (clubId, readerId, options = {}) => {
13808
+ // verify required parameter 'clubId' is not null or undefined
13809
+ assertParamExists('getSumupReader', 'clubId', clubId);
13810
+ // verify required parameter 'readerId' is not null or undefined
13811
+ assertParamExists('getSumupReader', 'readerId', readerId);
13812
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
13813
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13814
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13817
+ let baseOptions;
13818
+ if (configuration) {
13819
+ baseOptions = configuration.baseOptions;
13820
+ }
13821
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13822
+ const localVarHeaderParameter = {};
13823
+ const localVarQueryParameter = {};
13824
+ // authentication bearerAuth required
13825
+ // http bearer authentication required
13826
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13827
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13828
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13829
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13830
+ return {
13831
+ url: toPathString(localVarUrlObj),
13832
+ options: localVarRequestOptions,
13833
+ };
13834
+ },
13835
+ /**
13836
+ * Get SumUp reader status.
13837
+ * @param {string} clubId
13838
+ * @param {string} readerId
13839
+ * @param {*} [options] Override http request option.
13840
+ * @throws {RequiredError}
13841
+ */
13842
+ getSumupReaderStatus: async (clubId, readerId, options = {}) => {
13843
+ // verify required parameter 'clubId' is not null or undefined
13844
+ assertParamExists('getSumupReaderStatus', 'clubId', clubId);
13845
+ // verify required parameter 'readerId' is not null or undefined
13846
+ assertParamExists('getSumupReaderStatus', 'readerId', readerId);
13847
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/status`
13848
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13849
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13850
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13851
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13852
+ let baseOptions;
13853
+ if (configuration) {
13854
+ baseOptions = configuration.baseOptions;
13855
+ }
13856
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13857
+ const localVarHeaderParameter = {};
13858
+ const localVarQueryParameter = {};
13859
+ // authentication bearerAuth required
13860
+ // http bearer authentication required
13861
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13862
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13863
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13864
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13865
+ return {
13866
+ url: toPathString(localVarUrlObj),
13867
+ options: localVarRequestOptions,
13868
+ };
13869
+ },
13870
+ /**
13871
+ * Get SumUp connection status for a club.
13872
+ * @param {string} clubId
13873
+ * @param {*} [options] Override http request option.
13874
+ * @throws {RequiredError}
13875
+ */
13876
+ getSumupStatus: async (clubId, options = {}) => {
13877
+ // verify required parameter 'clubId' is not null or undefined
13878
+ assertParamExists('getSumupStatus', 'clubId', clubId);
13879
+ const localVarPath = `/api/clubs/{clubId}/sumup/status`
13880
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13881
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13882
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13883
+ let baseOptions;
13884
+ if (configuration) {
13885
+ baseOptions = configuration.baseOptions;
13886
+ }
13887
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13888
+ const localVarHeaderParameter = {};
13889
+ const localVarQueryParameter = {};
13890
+ // authentication bearerAuth required
13891
+ // http bearer authentication required
13892
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13893
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13894
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13895
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13896
+ return {
13897
+ url: toPathString(localVarUrlObj),
13898
+ options: localVarRequestOptions,
13899
+ };
13900
+ },
13901
+ /**
13902
+ * List SumUp readers for a club.
13903
+ * @param {string} clubId
13904
+ * @param {*} [options] Override http request option.
13905
+ * @throws {RequiredError}
13906
+ */
13907
+ listSumupReaders: async (clubId, options = {}) => {
13908
+ // verify required parameter 'clubId' is not null or undefined
13909
+ assertParamExists('listSumupReaders', 'clubId', clubId);
13910
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13911
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13912
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13913
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13914
+ let baseOptions;
13915
+ if (configuration) {
13916
+ baseOptions = configuration.baseOptions;
13917
+ }
13918
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13919
+ const localVarHeaderParameter = {};
13920
+ const localVarQueryParameter = {};
13921
+ // authentication bearerAuth required
13922
+ // http bearer authentication required
13923
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13924
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13925
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13926
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13927
+ return {
13928
+ url: toPathString(localVarUrlObj),
13929
+ options: localVarRequestOptions,
13930
+ };
13931
+ },
13932
+ /**
13933
+ * Pair a SumUp reader with a club.
13934
+ * @param {string} clubId
13935
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
13936
+ * @param {*} [options] Override http request option.
13937
+ * @throws {RequiredError}
13938
+ */
13939
+ pairSumupReader: async (clubId, sumupPairReaderRequest, options = {}) => {
13940
+ // verify required parameter 'clubId' is not null or undefined
13941
+ assertParamExists('pairSumupReader', 'clubId', clubId);
13942
+ // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13943
+ assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13944
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
13945
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13946
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13947
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13948
+ let baseOptions;
13949
+ if (configuration) {
13950
+ baseOptions = configuration.baseOptions;
13951
+ }
13952
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
13953
+ const localVarHeaderParameter = {};
13954
+ const localVarQueryParameter = {};
13955
+ // authentication bearerAuth required
13956
+ // http bearer authentication required
13957
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13958
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13959
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13960
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13961
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13962
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13963
+ return {
13964
+ url: toPathString(localVarUrlObj),
13965
+ options: localVarRequestOptions,
13966
+ };
13967
+ },
13968
+ /**
13969
+ * Select a SumUp reader for a club.
13970
+ * @param {string} clubId
13971
+ * @param {string} readerId
13972
+ * @param {*} [options] Override http request option.
13973
+ * @throws {RequiredError}
13974
+ */
13975
+ selectSumupReader: async (clubId, readerId, options = {}) => {
13976
+ // verify required parameter 'clubId' is not null or undefined
13977
+ assertParamExists('selectSumupReader', 'clubId', clubId);
13978
+ // verify required parameter 'readerId' is not null or undefined
13979
+ assertParamExists('selectSumupReader', 'readerId', readerId);
13980
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
13981
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13982
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
13983
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13984
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13985
+ let baseOptions;
13986
+ if (configuration) {
13987
+ baseOptions = configuration.baseOptions;
13988
+ }
13989
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
13990
+ const localVarHeaderParameter = {};
13991
+ const localVarQueryParameter = {};
13992
+ // authentication bearerAuth required
13993
+ // http bearer authentication required
13994
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
13995
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13996
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13997
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13998
+ return {
13999
+ url: toPathString(localVarUrlObj),
14000
+ options: localVarRequestOptions,
14001
+ };
14002
+ },
14003
+ /**
14004
+ * Update a SumUp reader.
14005
+ * @param {string} clubId
14006
+ * @param {string} readerId
14007
+ * @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
14008
+ * @param {*} [options] Override http request option.
14009
+ * @throws {RequiredError}
14010
+ */
14011
+ updateSumupReader: async (clubId, readerId, sumupUpdateReaderRequest, options = {}) => {
14012
+ // verify required parameter 'clubId' is not null or undefined
14013
+ assertParamExists('updateSumupReader', 'clubId', clubId);
14014
+ // verify required parameter 'readerId' is not null or undefined
14015
+ assertParamExists('updateSumupReader', 'readerId', readerId);
14016
+ // verify required parameter 'sumupUpdateReaderRequest' is not null or undefined
14017
+ assertParamExists('updateSumupReader', 'sumupUpdateReaderRequest', sumupUpdateReaderRequest);
14018
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
14019
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
14020
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
14021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14022
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14023
+ let baseOptions;
14024
+ if (configuration) {
14025
+ baseOptions = configuration.baseOptions;
14026
+ }
14027
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
14028
+ const localVarHeaderParameter = {};
14029
+ const localVarQueryParameter = {};
14030
+ // authentication bearerAuth required
14031
+ // http bearer authentication required
14032
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
14033
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14034
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14035
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14036
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
14037
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupUpdateReaderRequest, localVarRequestOptions, configuration);
14038
+ return {
14039
+ url: toPathString(localVarUrlObj),
14040
+ options: localVarRequestOptions,
14041
+ };
14042
+ },
14043
+ };
14044
+ };
14045
+ /**
14046
+ * SumUpManagerApi - functional programming interface
14047
+ * @export
14048
+ */
14049
+ export const SumUpManagerApiFp = function (configuration) {
14050
+ const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration);
14051
+ return {
14052
+ /**
14053
+ * Pair a SumUp reader with a club.
14054
+ * @param {string} clubId
14055
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
14056
+ * @param {*} [options] Override http request option.
14057
+ * @throws {RequiredError}
14058
+ */
14059
+ async createSumupReader(clubId, sumupPairReaderRequest, options) {
14060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupReader(clubId, sumupPairReaderRequest, options);
14061
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14062
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.createSumupReader']?.[localVarOperationServerIndex]?.url;
14063
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14064
+ },
14065
+ /**
14066
+ * Delete a SumUp reader.
14067
+ * @param {string} clubId
14068
+ * @param {string} readerId
14069
+ * @param {*} [options] Override http request option.
14070
+ * @throws {RequiredError}
14071
+ */
14072
+ async deleteSumupReader(clubId, readerId, options) {
14073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSumupReader(clubId, readerId, options);
14074
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14075
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.deleteSumupReader']?.[localVarOperationServerIndex]?.url;
14076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14077
+ },
14078
+ /**
14079
+ * Disconnect SumUp account for a club.
14080
+ * @param {string} clubId
14081
+ * @param {*} [options] Override http request option.
14082
+ * @throws {RequiredError}
14083
+ */
14084
+ async disconnectSumup(clubId, options) {
14085
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectSumup(clubId, options);
14086
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14087
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.disconnectSumup']?.[localVarOperationServerIndex]?.url;
14088
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14089
+ },
14090
+ /**
14091
+ * Start SumUp OAuth connection for a club.
14092
+ * @param {string} clubId
14093
+ * @param {*} [options] Override http request option.
14094
+ * @throws {RequiredError}
14095
+ */
14096
+ async getSumupConnectUrl(clubId, options) {
14097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
14098
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14099
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupConnectUrl']?.[localVarOperationServerIndex]?.url;
14100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14101
+ },
14102
+ /**
14103
+ * Retrieve a SumUp reader.
14104
+ * @param {string} clubId
14105
+ * @param {string} readerId
14106
+ * @param {*} [options] Override http request option.
14107
+ * @throws {RequiredError}
14108
+ */
14109
+ async getSumupReader(clubId, readerId, options) {
14110
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupReader(clubId, readerId, options);
14111
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14112
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupReader']?.[localVarOperationServerIndex]?.url;
14113
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14114
+ },
14115
+ /**
14116
+ * Get SumUp reader status.
14117
+ * @param {string} clubId
14118
+ * @param {string} readerId
14119
+ * @param {*} [options] Override http request option.
14120
+ * @throws {RequiredError}
14121
+ */
14122
+ async getSumupReaderStatus(clubId, readerId, options) {
14123
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupReaderStatus(clubId, readerId, options);
14124
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14125
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupReaderStatus']?.[localVarOperationServerIndex]?.url;
14126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14127
+ },
14128
+ /**
14129
+ * Get SumUp connection status for a club.
14130
+ * @param {string} clubId
14131
+ * @param {*} [options] Override http request option.
14132
+ * @throws {RequiredError}
14133
+ */
14134
+ async getSumupStatus(clubId, options) {
14135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupStatus(clubId, options);
14136
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14137
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupStatus']?.[localVarOperationServerIndex]?.url;
14138
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14139
+ },
14140
+ /**
14141
+ * List SumUp readers for a club.
14142
+ * @param {string} clubId
14143
+ * @param {*} [options] Override http request option.
14144
+ * @throws {RequiredError}
14145
+ */
14146
+ async listSumupReaders(clubId, options) {
14147
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSumupReaders(clubId, options);
14148
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14149
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.listSumupReaders']?.[localVarOperationServerIndex]?.url;
14150
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14151
+ },
14152
+ /**
14153
+ * Pair a SumUp reader with a club.
14154
+ * @param {string} clubId
14155
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
14156
+ * @param {*} [options] Override http request option.
14157
+ * @throws {RequiredError}
14158
+ */
14159
+ async pairSumupReader(clubId, sumupPairReaderRequest, options) {
14160
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
14161
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14162
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.pairSumupReader']?.[localVarOperationServerIndex]?.url;
14163
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14164
+ },
14165
+ /**
14166
+ * Select a SumUp reader for a club.
14167
+ * @param {string} clubId
14168
+ * @param {string} readerId
14169
+ * @param {*} [options] Override http request option.
14170
+ * @throws {RequiredError}
14171
+ */
14172
+ async selectSumupReader(clubId, readerId, options) {
14173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
14174
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14175
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.selectSumupReader']?.[localVarOperationServerIndex]?.url;
14176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14177
+ },
14178
+ /**
14179
+ * Update a SumUp reader.
14180
+ * @param {string} clubId
14181
+ * @param {string} readerId
14182
+ * @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
14183
+ * @param {*} [options] Override http request option.
14184
+ * @throws {RequiredError}
14185
+ */
14186
+ async updateSumupReader(clubId, readerId, sumupUpdateReaderRequest, options) {
14187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSumupReader(clubId, readerId, sumupUpdateReaderRequest, options);
14188
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14189
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.updateSumupReader']?.[localVarOperationServerIndex]?.url;
14190
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14191
+ },
14192
+ };
14193
+ };
14194
+ /**
14195
+ * SumUpManagerApi - factory interface
14196
+ * @export
14197
+ */
14198
+ export const SumUpManagerApiFactory = function (configuration, basePath, axios) {
14199
+ const localVarFp = SumUpManagerApiFp(configuration);
14200
+ return {
14201
+ /**
14202
+ * Pair a SumUp reader with a club.
14203
+ * @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
14204
+ * @param {*} [options] Override http request option.
14205
+ * @throws {RequiredError}
14206
+ */
14207
+ createSumupReader(requestParameters, options) {
14208
+ return localVarFp.createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
14209
+ },
14210
+ /**
14211
+ * Delete a SumUp reader.
14212
+ * @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
14213
+ * @param {*} [options] Override http request option.
14214
+ * @throws {RequiredError}
14215
+ */
14216
+ deleteSumupReader(requestParameters, options) {
14217
+ return localVarFp.deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
14218
+ },
14219
+ /**
14220
+ * Disconnect SumUp account for a club.
14221
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
14222
+ * @param {*} [options] Override http request option.
14223
+ * @throws {RequiredError}
14224
+ */
14225
+ disconnectSumup(requestParameters, options) {
14226
+ return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
14227
+ },
14228
+ /**
14229
+ * Start SumUp OAuth connection for a club.
14230
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
14231
+ * @param {*} [options] Override http request option.
14232
+ * @throws {RequiredError}
14233
+ */
14234
+ getSumupConnectUrl(requestParameters, options) {
14235
+ return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
14236
+ },
14237
+ /**
14238
+ * Retrieve a SumUp reader.
14239
+ * @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
14240
+ * @param {*} [options] Override http request option.
14241
+ * @throws {RequiredError}
14242
+ */
14243
+ getSumupReader(requestParameters, options) {
14244
+ return localVarFp.getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
14245
+ },
14246
+ /**
14247
+ * Get SumUp reader status.
14248
+ * @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
14249
+ * @param {*} [options] Override http request option.
14250
+ * @throws {RequiredError}
14251
+ */
14252
+ getSumupReaderStatus(requestParameters, options) {
14253
+ return localVarFp.getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
14254
+ },
14255
+ /**
14256
+ * Get SumUp connection status for a club.
14257
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
14258
+ * @param {*} [options] Override http request option.
14259
+ * @throws {RequiredError}
14260
+ */
14261
+ getSumupStatus(requestParameters, options) {
14262
+ return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
14263
+ },
14264
+ /**
14265
+ * List SumUp readers for a club.
14266
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
14267
+ * @param {*} [options] Override http request option.
14268
+ * @throws {RequiredError}
14269
+ */
14270
+ listSumupReaders(requestParameters, options) {
14271
+ return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
14272
+ },
14273
+ /**
14274
+ * Pair a SumUp reader with a club.
14275
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
14276
+ * @param {*} [options] Override http request option.
14277
+ * @throws {RequiredError}
14278
+ */
14279
+ pairSumupReader(requestParameters, options) {
14280
+ return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
14281
+ },
14282
+ /**
14283
+ * Select a SumUp reader for a club.
14284
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
14285
+ * @param {*} [options] Override http request option.
14286
+ * @throws {RequiredError}
14287
+ */
14288
+ selectSumupReader(requestParameters, options) {
14289
+ return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
14290
+ },
14291
+ /**
14292
+ * Update a SumUp reader.
14293
+ * @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
14294
+ * @param {*} [options] Override http request option.
14295
+ * @throws {RequiredError}
14296
+ */
14297
+ updateSumupReader(requestParameters, options) {
14298
+ return localVarFp.updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(axios, basePath));
14299
+ },
14300
+ };
14301
+ };
14302
+ /**
14303
+ * SumUpManagerApi - object-oriented interface
14304
+ * @export
14305
+ * @class SumUpManagerApi
14306
+ * @extends {BaseAPI}
14307
+ */
14308
+ export class SumUpManagerApi extends BaseAPI {
14309
+ /**
14310
+ * Pair a SumUp reader with a club.
14311
+ * @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
14312
+ * @param {*} [options] Override http request option.
14313
+ * @throws {RequiredError}
14314
+ * @memberof SumUpManagerApi
14315
+ */
14316
+ createSumupReader(requestParameters, options) {
14317
+ return SumUpManagerApiFp(this.configuration).createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
14318
+ }
14319
+ /**
14320
+ * Delete a SumUp reader.
14321
+ * @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
14322
+ * @param {*} [options] Override http request option.
14323
+ * @throws {RequiredError}
14324
+ * @memberof SumUpManagerApi
14325
+ */
14326
+ deleteSumupReader(requestParameters, options) {
14327
+ return SumUpManagerApiFp(this.configuration).deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
14328
+ }
14329
+ /**
14330
+ * Disconnect SumUp account for a club.
14331
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
14332
+ * @param {*} [options] Override http request option.
14333
+ * @throws {RequiredError}
14334
+ * @memberof SumUpManagerApi
14335
+ */
14336
+ disconnectSumup(requestParameters, options) {
14337
+ return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
14338
+ }
14339
+ /**
14340
+ * Start SumUp OAuth connection for a club.
14341
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
14342
+ * @param {*} [options] Override http request option.
14343
+ * @throws {RequiredError}
14344
+ * @memberof SumUpManagerApi
14345
+ */
14346
+ getSumupConnectUrl(requestParameters, options) {
14347
+ return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
14348
+ }
14349
+ /**
14350
+ * Retrieve a SumUp reader.
14351
+ * @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
14352
+ * @param {*} [options] Override http request option.
14353
+ * @throws {RequiredError}
14354
+ * @memberof SumUpManagerApi
14355
+ */
14356
+ getSumupReader(requestParameters, options) {
14357
+ return SumUpManagerApiFp(this.configuration).getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
14358
+ }
14359
+ /**
14360
+ * Get SumUp reader status.
14361
+ * @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
14362
+ * @param {*} [options] Override http request option.
14363
+ * @throws {RequiredError}
14364
+ * @memberof SumUpManagerApi
14365
+ */
14366
+ getSumupReaderStatus(requestParameters, options) {
14367
+ return SumUpManagerApiFp(this.configuration).getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
14368
+ }
14369
+ /**
14370
+ * Get SumUp connection status for a club.
14371
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
14372
+ * @param {*} [options] Override http request option.
14373
+ * @throws {RequiredError}
14374
+ * @memberof SumUpManagerApi
14375
+ */
14376
+ getSumupStatus(requestParameters, options) {
14377
+ return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
14378
+ }
14379
+ /**
14380
+ * List SumUp readers for a club.
14381
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
14382
+ * @param {*} [options] Override http request option.
14383
+ * @throws {RequiredError}
14384
+ * @memberof SumUpManagerApi
14385
+ */
14386
+ listSumupReaders(requestParameters, options) {
14387
+ return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
14388
+ }
14389
+ /**
14390
+ * Pair a SumUp reader with a club.
14391
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
14392
+ * @param {*} [options] Override http request option.
14393
+ * @throws {RequiredError}
14394
+ * @memberof SumUpManagerApi
14395
+ */
14396
+ pairSumupReader(requestParameters, options) {
14397
+ return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
14398
+ }
14399
+ /**
14400
+ * Select a SumUp reader for a club.
14401
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
14402
+ * @param {*} [options] Override http request option.
14403
+ * @throws {RequiredError}
14404
+ * @memberof SumUpManagerApi
14405
+ */
14406
+ selectSumupReader(requestParameters, options) {
14407
+ return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
14408
+ }
14409
+ /**
14410
+ * Update a SumUp reader.
14411
+ * @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
14412
+ * @param {*} [options] Override http request option.
14413
+ * @throws {RequiredError}
14414
+ * @memberof SumUpManagerApi
14415
+ */
14416
+ updateSumupReader(requestParameters, options) {
14417
+ return SumUpManagerApiFp(this.configuration).updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(this.axios, this.basePath));
14418
+ }
14419
+ }
13230
14420
  /**
13231
14421
  * UserApi - axios parameter creator
13232
14422
  * @export