@tennac-booking/sdk 1.0.183 → 1.0.185

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 (47) hide show
  1. package/.openapi-generator/FILES +412 -426
  2. package/README.md +3 -23
  3. package/api.ts +58 -1269
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +55 -821
  8. package/dist/api.js +15 -767
  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 +55 -821
  16. package/dist/esm/api.js +11 -750
  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/JoinOpenBookingRequest.md +26 -0
  29. package/docs/UserClubMembership.md +2 -0
  30. package/docs/UserProfileResponse.md +2 -0
  31. package/index.ts +1 -1
  32. package/package.json +1 -1
  33. package/docs/PaymentIntentResult.md +0 -28
  34. package/docs/PaymentProviderType.md +0 -10
  35. package/docs/PaymentStatus.md +0 -14
  36. package/docs/PaymentsStaffApi.md +0 -124
  37. package/docs/SumUpApi.md +0 -63
  38. package/docs/SumUpManagerApi.md +0 -332
  39. package/docs/SumupAccountStatusResponse.md +0 -32
  40. package/docs/SumupCancelPaymentRequest.md +0 -20
  41. package/docs/SumupConnectUrlResponse.md +0 -20
  42. package/docs/SumupCreatePaymentRequest.md +0 -32
  43. package/docs/SumupOAuthCallbackResponse.md +0 -24
  44. package/docs/SumupPairReaderRequest.md +0 -20
  45. package/docs/SumupPairReaderResponse.md +0 -20
  46. package/docs/SumupReaderInfo.md +0 -34
  47. 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
  *
@@ -11352,185 +11332,6 @@ export class ImagesApi extends BaseAPI {
11352
11332
  return ImagesApiFp(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
11353
11333
  }
11354
11334
  }
11355
- /**
11356
- * PaymentsStaffApi - axios parameter creator
11357
- * @export
11358
- */
11359
- export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
11360
- return {
11361
- /**
11362
- * Cancel a SumUp reader checkout.
11363
- * @param {string} clubId
11364
- * @param {string} paymentId
11365
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11366
- * @param {*} [options] Override http request option.
11367
- * @throws {RequiredError}
11368
- */
11369
- 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 = {}) {
11370
- // verify required parameter 'clubId' is not null or undefined
11371
- assertParamExists('cancelSumupPayment', 'clubId', clubId);
11372
- // verify required parameter 'paymentId' is not null or undefined
11373
- assertParamExists('cancelSumupPayment', 'paymentId', paymentId);
11374
- const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
11375
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
11376
- .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
11377
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11378
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11379
- let baseOptions;
11380
- if (configuration) {
11381
- baseOptions = configuration.baseOptions;
11382
- }
11383
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11384
- const localVarHeaderParameter = {};
11385
- const localVarQueryParameter = {};
11386
- // authentication bearerAuth required
11387
- // http bearer authentication required
11388
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11389
- localVarHeaderParameter['Content-Type'] = 'application/json';
11390
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11391
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11392
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11393
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
11394
- return {
11395
- url: toPathString(localVarUrlObj),
11396
- options: localVarRequestOptions,
11397
- };
11398
- }),
11399
- /**
11400
- * Start a SumUp reader checkout (manual payment trigger).
11401
- * @param {string} clubId
11402
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11403
- * @param {*} [options] Override http request option.
11404
- * @throws {RequiredError}
11405
- */
11406
- createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
11407
- // verify required parameter 'clubId' is not null or undefined
11408
- assertParamExists('createSumupPayment', 'clubId', clubId);
11409
- // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
11410
- assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
11411
- const localVarPath = `/api/clubs/{clubId}/payments/sumup`
11412
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
11413
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11414
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11415
- let baseOptions;
11416
- if (configuration) {
11417
- baseOptions = configuration.baseOptions;
11418
- }
11419
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11420
- const localVarHeaderParameter = {};
11421
- const localVarQueryParameter = {};
11422
- // authentication bearerAuth required
11423
- // http bearer authentication required
11424
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11425
- localVarHeaderParameter['Content-Type'] = 'application/json';
11426
- setSearchParams(localVarUrlObj, localVarQueryParameter);
11427
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11428
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11429
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
11430
- return {
11431
- url: toPathString(localVarUrlObj),
11432
- options: localVarRequestOptions,
11433
- };
11434
- }),
11435
- };
11436
- };
11437
- /**
11438
- * PaymentsStaffApi - functional programming interface
11439
- * @export
11440
- */
11441
- export const PaymentsStaffApiFp = function (configuration) {
11442
- const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration);
11443
- return {
11444
- /**
11445
- * Cancel a SumUp reader checkout.
11446
- * @param {string} clubId
11447
- * @param {string} paymentId
11448
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
11449
- * @param {*} [options] Override http request option.
11450
- * @throws {RequiredError}
11451
- */
11452
- cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
11453
- return __awaiter(this, void 0, void 0, function* () {
11454
- var _a, _b, _c;
11455
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
11456
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11457
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11458
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11459
- });
11460
- },
11461
- /**
11462
- * Start a SumUp reader checkout (manual payment trigger).
11463
- * @param {string} clubId
11464
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
11465
- * @param {*} [options] Override http request option.
11466
- * @throws {RequiredError}
11467
- */
11468
- createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
11469
- return __awaiter(this, void 0, void 0, function* () {
11470
- var _a, _b, _c;
11471
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
11472
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11473
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11474
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11475
- });
11476
- },
11477
- };
11478
- };
11479
- /**
11480
- * PaymentsStaffApi - factory interface
11481
- * @export
11482
- */
11483
- export const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
11484
- const localVarFp = PaymentsStaffApiFp(configuration);
11485
- return {
11486
- /**
11487
- * Cancel a SumUp reader checkout.
11488
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11489
- * @param {*} [options] Override http request option.
11490
- * @throws {RequiredError}
11491
- */
11492
- cancelSumupPayment(requestParameters, options) {
11493
- return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
11494
- },
11495
- /**
11496
- * Start a SumUp reader checkout (manual payment trigger).
11497
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11498
- * @param {*} [options] Override http request option.
11499
- * @throws {RequiredError}
11500
- */
11501
- createSumupPayment(requestParameters, options) {
11502
- return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
11503
- },
11504
- };
11505
- };
11506
- /**
11507
- * PaymentsStaffApi - object-oriented interface
11508
- * @export
11509
- * @class PaymentsStaffApi
11510
- * @extends {BaseAPI}
11511
- */
11512
- export class PaymentsStaffApi extends BaseAPI {
11513
- /**
11514
- * Cancel a SumUp reader checkout.
11515
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
11516
- * @param {*} [options] Override http request option.
11517
- * @throws {RequiredError}
11518
- * @memberof PaymentsStaffApi
11519
- */
11520
- cancelSumupPayment(requestParameters, options) {
11521
- return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
11522
- }
11523
- /**
11524
- * Start a SumUp reader checkout (manual payment trigger).
11525
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
11526
- * @param {*} [options] Override http request option.
11527
- * @throws {RequiredError}
11528
- * @memberof PaymentsStaffApi
11529
- */
11530
- createSumupPayment(requestParameters, options) {
11531
- return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
11532
- }
11533
- }
11534
11335
  /**
11535
11336
  * PublicEmailApi - axios parameter creator
11536
11337
  * @export
@@ -12927,546 +12728,6 @@ export class SubscriptionsUserApi extends BaseAPI {
12927
12728
  return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
12928
12729
  }
12929
12730
  }
12930
- /**
12931
- * SumUpApi - axios parameter creator
12932
- * @export
12933
- */
12934
- export const SumUpApiAxiosParamCreator = function (configuration) {
12935
- return {
12936
- /**
12937
- * OAuth callback for SumUp.
12938
- * @param {string} code
12939
- * @param {string} state
12940
- * @param {*} [options] Override http request option.
12941
- * @throws {RequiredError}
12942
- */
12943
- sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
12944
- // verify required parameter 'code' is not null or undefined
12945
- assertParamExists('sumupOauthCallback', 'code', code);
12946
- // verify required parameter 'state' is not null or undefined
12947
- assertParamExists('sumupOauthCallback', 'state', state);
12948
- const localVarPath = `/api/sumup/oauth/callback`;
12949
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12950
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12951
- let baseOptions;
12952
- if (configuration) {
12953
- baseOptions = configuration.baseOptions;
12954
- }
12955
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12956
- const localVarHeaderParameter = {};
12957
- const localVarQueryParameter = {};
12958
- if (code !== undefined) {
12959
- localVarQueryParameter['code'] = code;
12960
- }
12961
- if (state !== undefined) {
12962
- localVarQueryParameter['state'] = state;
12963
- }
12964
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12965
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12966
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12967
- return {
12968
- url: toPathString(localVarUrlObj),
12969
- options: localVarRequestOptions,
12970
- };
12971
- }),
12972
- };
12973
- };
12974
- /**
12975
- * SumUpApi - functional programming interface
12976
- * @export
12977
- */
12978
- export const SumUpApiFp = function (configuration) {
12979
- const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration);
12980
- return {
12981
- /**
12982
- * OAuth callback for SumUp.
12983
- * @param {string} code
12984
- * @param {string} state
12985
- * @param {*} [options] Override http request option.
12986
- * @throws {RequiredError}
12987
- */
12988
- sumupOauthCallback(code, state, options) {
12989
- return __awaiter(this, void 0, void 0, function* () {
12990
- var _a, _b, _c;
12991
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
12992
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12993
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12994
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12995
- });
12996
- },
12997
- };
12998
- };
12999
- /**
13000
- * SumUpApi - factory interface
13001
- * @export
13002
- */
13003
- export const SumUpApiFactory = function (configuration, basePath, axios) {
13004
- const localVarFp = SumUpApiFp(configuration);
13005
- return {
13006
- /**
13007
- * OAuth callback for SumUp.
13008
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13009
- * @param {*} [options] Override http request option.
13010
- * @throws {RequiredError}
13011
- */
13012
- sumupOauthCallback(requestParameters, options) {
13013
- return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
13014
- },
13015
- };
13016
- };
13017
- /**
13018
- * SumUpApi - object-oriented interface
13019
- * @export
13020
- * @class SumUpApi
13021
- * @extends {BaseAPI}
13022
- */
13023
- export class SumUpApi extends BaseAPI {
13024
- /**
13025
- * OAuth callback for SumUp.
13026
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
13027
- * @param {*} [options] Override http request option.
13028
- * @throws {RequiredError}
13029
- * @memberof SumUpApi
13030
- */
13031
- sumupOauthCallback(requestParameters, options) {
13032
- return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
13033
- }
13034
- }
13035
- /**
13036
- * SumUpManagerApi - axios parameter creator
13037
- * @export
13038
- */
13039
- export const SumUpManagerApiAxiosParamCreator = function (configuration) {
13040
- return {
13041
- /**
13042
- * Disconnect SumUp account for a club.
13043
- * @param {string} clubId
13044
- * @param {*} [options] Override http request option.
13045
- * @throws {RequiredError}
13046
- */
13047
- disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13048
- // verify required parameter 'clubId' is not null or undefined
13049
- assertParamExists('disconnectSumup', 'clubId', clubId);
13050
- const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
13051
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13052
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13053
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13054
- let baseOptions;
13055
- if (configuration) {
13056
- baseOptions = configuration.baseOptions;
13057
- }
13058
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13059
- const localVarHeaderParameter = {};
13060
- const localVarQueryParameter = {};
13061
- // authentication bearerAuth required
13062
- // http bearer authentication required
13063
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13064
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13065
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13066
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13067
- return {
13068
- url: toPathString(localVarUrlObj),
13069
- options: localVarRequestOptions,
13070
- };
13071
- }),
13072
- /**
13073
- * Start SumUp OAuth connection for a club.
13074
- * @param {string} clubId
13075
- * @param {*} [options] Override http request option.
13076
- * @throws {RequiredError}
13077
- */
13078
- getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13079
- // verify required parameter 'clubId' is not null or undefined
13080
- assertParamExists('getSumupConnectUrl', 'clubId', clubId);
13081
- const localVarPath = `/api/clubs/{clubId}/sumup/connect`
13082
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13083
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13084
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13085
- let baseOptions;
13086
- if (configuration) {
13087
- baseOptions = configuration.baseOptions;
13088
- }
13089
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13090
- const localVarHeaderParameter = {};
13091
- const localVarQueryParameter = {};
13092
- // authentication bearerAuth required
13093
- // http bearer authentication required
13094
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13095
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13096
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13097
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13098
- return {
13099
- url: toPathString(localVarUrlObj),
13100
- options: localVarRequestOptions,
13101
- };
13102
- }),
13103
- /**
13104
- * Get SumUp connection status for a club.
13105
- * @param {string} clubId
13106
- * @param {*} [options] Override http request option.
13107
- * @throws {RequiredError}
13108
- */
13109
- getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13110
- // verify required parameter 'clubId' is not null or undefined
13111
- assertParamExists('getSumupStatus', 'clubId', clubId);
13112
- const localVarPath = `/api/clubs/{clubId}/sumup/status`
13113
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13114
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13115
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13116
- let baseOptions;
13117
- if (configuration) {
13118
- baseOptions = configuration.baseOptions;
13119
- }
13120
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13121
- const localVarHeaderParameter = {};
13122
- const localVarQueryParameter = {};
13123
- // authentication bearerAuth required
13124
- // http bearer authentication required
13125
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13126
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13127
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13128
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13129
- return {
13130
- url: toPathString(localVarUrlObj),
13131
- options: localVarRequestOptions,
13132
- };
13133
- }),
13134
- /**
13135
- * List SumUp readers for a club.
13136
- * @param {string} clubId
13137
- * @param {*} [options] Override http request option.
13138
- * @throws {RequiredError}
13139
- */
13140
- listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
13141
- // verify required parameter 'clubId' is not null or undefined
13142
- assertParamExists('listSumupReaders', 'clubId', clubId);
13143
- const localVarPath = `/api/clubs/{clubId}/sumup/readers`
13144
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13145
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13146
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13147
- let baseOptions;
13148
- if (configuration) {
13149
- baseOptions = configuration.baseOptions;
13150
- }
13151
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13152
- const localVarHeaderParameter = {};
13153
- const localVarQueryParameter = {};
13154
- // authentication bearerAuth required
13155
- // http bearer authentication required
13156
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13157
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13158
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13159
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13160
- return {
13161
- url: toPathString(localVarUrlObj),
13162
- options: localVarRequestOptions,
13163
- };
13164
- }),
13165
- /**
13166
- * Pair a SumUp reader with a club.
13167
- * @param {string} clubId
13168
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13169
- * @param {*} [options] Override http request option.
13170
- * @throws {RequiredError}
13171
- */
13172
- pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
13173
- // verify required parameter 'clubId' is not null or undefined
13174
- assertParamExists('pairSumupReader', 'clubId', clubId);
13175
- // verify required parameter 'sumupPairReaderRequest' is not null or undefined
13176
- assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
13177
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
13178
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
13179
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13180
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13181
- let baseOptions;
13182
- if (configuration) {
13183
- baseOptions = configuration.baseOptions;
13184
- }
13185
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13186
- const localVarHeaderParameter = {};
13187
- const localVarQueryParameter = {};
13188
- // authentication bearerAuth required
13189
- // http bearer authentication required
13190
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13191
- localVarHeaderParameter['Content-Type'] = 'application/json';
13192
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13193
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13194
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13195
- localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
13196
- return {
13197
- url: toPathString(localVarUrlObj),
13198
- options: localVarRequestOptions,
13199
- };
13200
- }),
13201
- /**
13202
- * Select a SumUp reader for a club.
13203
- * @param {string} clubId
13204
- * @param {string} readerId
13205
- * @param {*} [options] Override http request option.
13206
- * @throws {RequiredError}
13207
- */
13208
- selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
13209
- // verify required parameter 'clubId' is not null or undefined
13210
- assertParamExists('selectSumupReader', 'clubId', clubId);
13211
- // verify required parameter 'readerId' is not null or undefined
13212
- assertParamExists('selectSumupReader', 'readerId', readerId);
13213
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
13214
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
13215
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
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: 'POST' }, 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
- };
13238
- /**
13239
- * SumUpManagerApi - functional programming interface
13240
- * @export
13241
- */
13242
- export const SumUpManagerApiFp = function (configuration) {
13243
- const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration);
13244
- return {
13245
- /**
13246
- * Disconnect SumUp account for a club.
13247
- * @param {string} clubId
13248
- * @param {*} [options] Override http request option.
13249
- * @throws {RequiredError}
13250
- */
13251
- disconnectSumup(clubId, options) {
13252
- return __awaiter(this, void 0, void 0, function* () {
13253
- var _a, _b, _c;
13254
- const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
13255
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13256
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13257
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13258
- });
13259
- },
13260
- /**
13261
- * Start SumUp OAuth connection for a club.
13262
- * @param {string} clubId
13263
- * @param {*} [options] Override http request option.
13264
- * @throws {RequiredError}
13265
- */
13266
- getSumupConnectUrl(clubId, options) {
13267
- return __awaiter(this, void 0, void 0, function* () {
13268
- var _a, _b, _c;
13269
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
13270
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13271
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13272
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13273
- });
13274
- },
13275
- /**
13276
- * Get SumUp connection status for a club.
13277
- * @param {string} clubId
13278
- * @param {*} [options] Override http request option.
13279
- * @throws {RequiredError}
13280
- */
13281
- getSumupStatus(clubId, options) {
13282
- return __awaiter(this, void 0, void 0, function* () {
13283
- var _a, _b, _c;
13284
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
13285
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13286
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13287
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13288
- });
13289
- },
13290
- /**
13291
- * List SumUp readers for a club.
13292
- * @param {string} clubId
13293
- * @param {*} [options] Override http request option.
13294
- * @throws {RequiredError}
13295
- */
13296
- listSumupReaders(clubId, options) {
13297
- return __awaiter(this, void 0, void 0, function* () {
13298
- var _a, _b, _c;
13299
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
13300
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13301
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13302
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13303
- });
13304
- },
13305
- /**
13306
- * Pair a SumUp reader with a club.
13307
- * @param {string} clubId
13308
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
13309
- * @param {*} [options] Override http request option.
13310
- * @throws {RequiredError}
13311
- */
13312
- pairSumupReader(clubId, sumupPairReaderRequest, options) {
13313
- return __awaiter(this, void 0, void 0, function* () {
13314
- var _a, _b, _c;
13315
- const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
13316
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13317
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13318
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13319
- });
13320
- },
13321
- /**
13322
- * Select a SumUp reader for a club.
13323
- * @param {string} clubId
13324
- * @param {string} readerId
13325
- * @param {*} [options] Override http request option.
13326
- * @throws {RequiredError}
13327
- */
13328
- selectSumupReader(clubId, readerId, options) {
13329
- return __awaiter(this, void 0, void 0, function* () {
13330
- var _a, _b, _c;
13331
- const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
13332
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13333
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13334
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13335
- });
13336
- },
13337
- };
13338
- };
13339
- /**
13340
- * SumUpManagerApi - factory interface
13341
- * @export
13342
- */
13343
- export const SumUpManagerApiFactory = function (configuration, basePath, axios) {
13344
- const localVarFp = SumUpManagerApiFp(configuration);
13345
- return {
13346
- /**
13347
- * Disconnect SumUp account for a club.
13348
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13349
- * @param {*} [options] Override http request option.
13350
- * @throws {RequiredError}
13351
- */
13352
- disconnectSumup(requestParameters, options) {
13353
- return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
13354
- },
13355
- /**
13356
- * Start SumUp OAuth connection for a club.
13357
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13358
- * @param {*} [options] Override http request option.
13359
- * @throws {RequiredError}
13360
- */
13361
- getSumupConnectUrl(requestParameters, options) {
13362
- return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
13363
- },
13364
- /**
13365
- * Get SumUp connection status for a club.
13366
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13367
- * @param {*} [options] Override http request option.
13368
- * @throws {RequiredError}
13369
- */
13370
- getSumupStatus(requestParameters, options) {
13371
- return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
13372
- },
13373
- /**
13374
- * List SumUp readers for a club.
13375
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13376
- * @param {*} [options] Override http request option.
13377
- * @throws {RequiredError}
13378
- */
13379
- listSumupReaders(requestParameters, options) {
13380
- return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
13381
- },
13382
- /**
13383
- * Pair a SumUp reader with a club.
13384
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13385
- * @param {*} [options] Override http request option.
13386
- * @throws {RequiredError}
13387
- */
13388
- pairSumupReader(requestParameters, options) {
13389
- return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
13390
- },
13391
- /**
13392
- * Select a SumUp reader for a club.
13393
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13394
- * @param {*} [options] Override http request option.
13395
- * @throws {RequiredError}
13396
- */
13397
- selectSumupReader(requestParameters, options) {
13398
- return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
13399
- },
13400
- };
13401
- };
13402
- /**
13403
- * SumUpManagerApi - object-oriented interface
13404
- * @export
13405
- * @class SumUpManagerApi
13406
- * @extends {BaseAPI}
13407
- */
13408
- export class SumUpManagerApi extends BaseAPI {
13409
- /**
13410
- * Disconnect SumUp account for a club.
13411
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
13412
- * @param {*} [options] Override http request option.
13413
- * @throws {RequiredError}
13414
- * @memberof SumUpManagerApi
13415
- */
13416
- disconnectSumup(requestParameters, options) {
13417
- return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13418
- }
13419
- /**
13420
- * Start SumUp OAuth connection for a club.
13421
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
13422
- * @param {*} [options] Override http request option.
13423
- * @throws {RequiredError}
13424
- * @memberof SumUpManagerApi
13425
- */
13426
- getSumupConnectUrl(requestParameters, options) {
13427
- return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13428
- }
13429
- /**
13430
- * Get SumUp connection status for a club.
13431
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
13432
- * @param {*} [options] Override http request option.
13433
- * @throws {RequiredError}
13434
- * @memberof SumUpManagerApi
13435
- */
13436
- getSumupStatus(requestParameters, options) {
13437
- return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13438
- }
13439
- /**
13440
- * List SumUp readers for a club.
13441
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
13442
- * @param {*} [options] Override http request option.
13443
- * @throws {RequiredError}
13444
- * @memberof SumUpManagerApi
13445
- */
13446
- listSumupReaders(requestParameters, options) {
13447
- return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
13448
- }
13449
- /**
13450
- * Pair a SumUp reader with a club.
13451
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
13452
- * @param {*} [options] Override http request option.
13453
- * @throws {RequiredError}
13454
- * @memberof SumUpManagerApi
13455
- */
13456
- pairSumupReader(requestParameters, options) {
13457
- return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
13458
- }
13459
- /**
13460
- * Select a SumUp reader for a club.
13461
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
13462
- * @param {*} [options] Override http request option.
13463
- * @throws {RequiredError}
13464
- * @memberof SumUpManagerApi
13465
- */
13466
- selectSumupReader(requestParameters, options) {
13467
- return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
13468
- }
13469
- }
13470
12731
  /**
13471
12732
  * UserApi - axios parameter creator
13472
12733
  * @export