@tennac-booking/sdk 1.0.181 → 1.0.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +13 -0
- package/README.md +18 -0
- package/api.ts +1150 -41
- package/dist/api.d.ts +721 -12
- package/dist/api.js +685 -4
- package/dist/esm/api.d.ts +721 -12
- package/dist/esm/api.js +668 -0
- package/docs/PaymentIntentResult.md +28 -0
- package/docs/PaymentProviderType.md +10 -0
- package/docs/PaymentStatus.md +14 -0
- package/docs/PaymentsStaffApi.md +124 -0
- package/docs/SumUpApi.md +63 -0
- package/docs/SumUpManagerApi.md +275 -0
- package/docs/SumupAccountStatusResponse.md +28 -0
- package/docs/SumupCancelPaymentRequest.md +20 -0
- package/docs/SumupConnectUrlResponse.md +20 -0
- package/docs/SumupCreatePaymentRequest.md +32 -0
- package/docs/SumupOAuthCallbackResponse.md +24 -0
- package/docs/SumupReaderInfo.md +34 -0
- package/docs/SumupReadersResponse.md +20 -0
- package/docs/UserClubMembership.md +0 -2
- package/docs/UserProfileResponse.md +0 -2
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,10 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
25
|
+
exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentStatus = exports.PaymentProviderType = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = void 0;
|
|
27
|
+
exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = void 0;
|
|
28
|
+
exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SumUpManagerApi = exports.SumUpManagerApiFactory = exports.SumUpManagerApiFp = exports.SumUpManagerApiAxiosParamCreator = exports.SumUpApi = exports.SumUpApiFactory = exports.SumUpApiFp = exports.SumUpApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.PaymentsStaffApi = exports.PaymentsStaffApiFactory = exports.PaymentsStaffApiFp = exports.PaymentsStaffApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = void 0;
|
|
29
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = void 0;
|
|
29
30
|
const axios_1 = require("axios");
|
|
30
31
|
// Some imports not used depending on template conditions
|
|
31
32
|
// @ts-ignore
|
|
@@ -258,6 +259,26 @@ exports.PaymentMethod = {
|
|
|
258
259
|
OnsiteCash: 'onsite_cash',
|
|
259
260
|
Free: 'free'
|
|
260
261
|
};
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @export
|
|
265
|
+
* @enum {string}
|
|
266
|
+
*/
|
|
267
|
+
exports.PaymentProviderType = {
|
|
268
|
+
Stripe: 'stripe',
|
|
269
|
+
Sumup: 'sumup'
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @export
|
|
274
|
+
* @enum {string}
|
|
275
|
+
*/
|
|
276
|
+
exports.PaymentStatus = {
|
|
277
|
+
Pending: 'pending',
|
|
278
|
+
Succeeded: 'succeeded',
|
|
279
|
+
Failed: 'failed',
|
|
280
|
+
Cancelled: 'cancelled'
|
|
281
|
+
};
|
|
261
282
|
/**
|
|
262
283
|
*
|
|
263
284
|
* @export
|
|
@@ -11426,6 +11447,189 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
11426
11447
|
}
|
|
11427
11448
|
}
|
|
11428
11449
|
exports.ImagesApi = ImagesApi;
|
|
11450
|
+
/**
|
|
11451
|
+
* PaymentsStaffApi - axios parameter creator
|
|
11452
|
+
* @export
|
|
11453
|
+
*/
|
|
11454
|
+
const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
11455
|
+
return {
|
|
11456
|
+
/**
|
|
11457
|
+
* Cancel a SumUp reader checkout.
|
|
11458
|
+
* @param {string} clubId
|
|
11459
|
+
* @param {string} paymentId
|
|
11460
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11461
|
+
* @param {*} [options] Override http request option.
|
|
11462
|
+
* @throws {RequiredError}
|
|
11463
|
+
*/
|
|
11464
|
+
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 = {}) {
|
|
11465
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
11466
|
+
(0, common_1.assertParamExists)('cancelSumupPayment', 'clubId', clubId);
|
|
11467
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
11468
|
+
(0, common_1.assertParamExists)('cancelSumupPayment', 'paymentId', paymentId);
|
|
11469
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
|
|
11470
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
11471
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
11472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11473
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11474
|
+
let baseOptions;
|
|
11475
|
+
if (configuration) {
|
|
11476
|
+
baseOptions = configuration.baseOptions;
|
|
11477
|
+
}
|
|
11478
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11479
|
+
const localVarHeaderParameter = {};
|
|
11480
|
+
const localVarQueryParameter = {};
|
|
11481
|
+
// authentication bearerAuth required
|
|
11482
|
+
// http bearer authentication required
|
|
11483
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11484
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11485
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11486
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11487
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11488
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
|
|
11489
|
+
return {
|
|
11490
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11491
|
+
options: localVarRequestOptions,
|
|
11492
|
+
};
|
|
11493
|
+
}),
|
|
11494
|
+
/**
|
|
11495
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11496
|
+
* @param {string} clubId
|
|
11497
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11498
|
+
* @param {*} [options] Override http request option.
|
|
11499
|
+
* @throws {RequiredError}
|
|
11500
|
+
*/
|
|
11501
|
+
createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
|
|
11502
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
11503
|
+
(0, common_1.assertParamExists)('createSumupPayment', 'clubId', clubId);
|
|
11504
|
+
// verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
|
|
11505
|
+
(0, common_1.assertParamExists)('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
|
|
11506
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup`
|
|
11507
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
11508
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11509
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11510
|
+
let baseOptions;
|
|
11511
|
+
if (configuration) {
|
|
11512
|
+
baseOptions = configuration.baseOptions;
|
|
11513
|
+
}
|
|
11514
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11515
|
+
const localVarHeaderParameter = {};
|
|
11516
|
+
const localVarQueryParameter = {};
|
|
11517
|
+
// authentication bearerAuth required
|
|
11518
|
+
// http bearer authentication required
|
|
11519
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11520
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11521
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11522
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11523
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11524
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
|
|
11525
|
+
return {
|
|
11526
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11527
|
+
options: localVarRequestOptions,
|
|
11528
|
+
};
|
|
11529
|
+
}),
|
|
11530
|
+
};
|
|
11531
|
+
};
|
|
11532
|
+
exports.PaymentsStaffApiAxiosParamCreator = PaymentsStaffApiAxiosParamCreator;
|
|
11533
|
+
/**
|
|
11534
|
+
* PaymentsStaffApi - functional programming interface
|
|
11535
|
+
* @export
|
|
11536
|
+
*/
|
|
11537
|
+
const PaymentsStaffApiFp = function (configuration) {
|
|
11538
|
+
const localVarAxiosParamCreator = (0, exports.PaymentsStaffApiAxiosParamCreator)(configuration);
|
|
11539
|
+
return {
|
|
11540
|
+
/**
|
|
11541
|
+
* Cancel a SumUp reader checkout.
|
|
11542
|
+
* @param {string} clubId
|
|
11543
|
+
* @param {string} paymentId
|
|
11544
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11545
|
+
* @param {*} [options] Override http request option.
|
|
11546
|
+
* @throws {RequiredError}
|
|
11547
|
+
*/
|
|
11548
|
+
cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
|
|
11549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11550
|
+
var _a, _b, _c;
|
|
11551
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
|
|
11552
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11553
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11554
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11555
|
+
});
|
|
11556
|
+
},
|
|
11557
|
+
/**
|
|
11558
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11559
|
+
* @param {string} clubId
|
|
11560
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11561
|
+
* @param {*} [options] Override http request option.
|
|
11562
|
+
* @throws {RequiredError}
|
|
11563
|
+
*/
|
|
11564
|
+
createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
|
|
11565
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11566
|
+
var _a, _b, _c;
|
|
11567
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
|
|
11568
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11569
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11570
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11571
|
+
});
|
|
11572
|
+
},
|
|
11573
|
+
};
|
|
11574
|
+
};
|
|
11575
|
+
exports.PaymentsStaffApiFp = PaymentsStaffApiFp;
|
|
11576
|
+
/**
|
|
11577
|
+
* PaymentsStaffApi - factory interface
|
|
11578
|
+
* @export
|
|
11579
|
+
*/
|
|
11580
|
+
const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
|
|
11581
|
+
const localVarFp = (0, exports.PaymentsStaffApiFp)(configuration);
|
|
11582
|
+
return {
|
|
11583
|
+
/**
|
|
11584
|
+
* Cancel a SumUp reader checkout.
|
|
11585
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11586
|
+
* @param {*} [options] Override http request option.
|
|
11587
|
+
* @throws {RequiredError}
|
|
11588
|
+
*/
|
|
11589
|
+
cancelSumupPayment(requestParameters, options) {
|
|
11590
|
+
return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
|
|
11591
|
+
},
|
|
11592
|
+
/**
|
|
11593
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11594
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11595
|
+
* @param {*} [options] Override http request option.
|
|
11596
|
+
* @throws {RequiredError}
|
|
11597
|
+
*/
|
|
11598
|
+
createSumupPayment(requestParameters, options) {
|
|
11599
|
+
return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
|
|
11600
|
+
},
|
|
11601
|
+
};
|
|
11602
|
+
};
|
|
11603
|
+
exports.PaymentsStaffApiFactory = PaymentsStaffApiFactory;
|
|
11604
|
+
/**
|
|
11605
|
+
* PaymentsStaffApi - object-oriented interface
|
|
11606
|
+
* @export
|
|
11607
|
+
* @class PaymentsStaffApi
|
|
11608
|
+
* @extends {BaseAPI}
|
|
11609
|
+
*/
|
|
11610
|
+
class PaymentsStaffApi extends base_1.BaseAPI {
|
|
11611
|
+
/**
|
|
11612
|
+
* Cancel a SumUp reader checkout.
|
|
11613
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11614
|
+
* @param {*} [options] Override http request option.
|
|
11615
|
+
* @throws {RequiredError}
|
|
11616
|
+
* @memberof PaymentsStaffApi
|
|
11617
|
+
*/
|
|
11618
|
+
cancelSumupPayment(requestParameters, options) {
|
|
11619
|
+
return (0, exports.PaymentsStaffApiFp)(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11620
|
+
}
|
|
11621
|
+
/**
|
|
11622
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11623
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11624
|
+
* @param {*} [options] Override http request option.
|
|
11625
|
+
* @throws {RequiredError}
|
|
11626
|
+
* @memberof PaymentsStaffApi
|
|
11627
|
+
*/
|
|
11628
|
+
createSumupPayment(requestParameters, options) {
|
|
11629
|
+
return (0, exports.PaymentsStaffApiFp)(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11630
|
+
}
|
|
11631
|
+
}
|
|
11632
|
+
exports.PaymentsStaffApi = PaymentsStaffApi;
|
|
11429
11633
|
/**
|
|
11430
11634
|
* PublicEmailApi - axios parameter creator
|
|
11431
11635
|
* @export
|
|
@@ -12850,6 +13054,483 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
12850
13054
|
}
|
|
12851
13055
|
}
|
|
12852
13056
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
13057
|
+
/**
|
|
13058
|
+
* SumUpApi - axios parameter creator
|
|
13059
|
+
* @export
|
|
13060
|
+
*/
|
|
13061
|
+
const SumUpApiAxiosParamCreator = function (configuration) {
|
|
13062
|
+
return {
|
|
13063
|
+
/**
|
|
13064
|
+
* OAuth callback for SumUp.
|
|
13065
|
+
* @param {string} code
|
|
13066
|
+
* @param {string} state
|
|
13067
|
+
* @param {*} [options] Override http request option.
|
|
13068
|
+
* @throws {RequiredError}
|
|
13069
|
+
*/
|
|
13070
|
+
sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
|
|
13071
|
+
// verify required parameter 'code' is not null or undefined
|
|
13072
|
+
(0, common_1.assertParamExists)('sumupOauthCallback', 'code', code);
|
|
13073
|
+
// verify required parameter 'state' is not null or undefined
|
|
13074
|
+
(0, common_1.assertParamExists)('sumupOauthCallback', 'state', state);
|
|
13075
|
+
const localVarPath = `/api/sumup/oauth/callback`;
|
|
13076
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13077
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13078
|
+
let baseOptions;
|
|
13079
|
+
if (configuration) {
|
|
13080
|
+
baseOptions = configuration.baseOptions;
|
|
13081
|
+
}
|
|
13082
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13083
|
+
const localVarHeaderParameter = {};
|
|
13084
|
+
const localVarQueryParameter = {};
|
|
13085
|
+
if (code !== undefined) {
|
|
13086
|
+
localVarQueryParameter['code'] = code;
|
|
13087
|
+
}
|
|
13088
|
+
if (state !== undefined) {
|
|
13089
|
+
localVarQueryParameter['state'] = state;
|
|
13090
|
+
}
|
|
13091
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13092
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13093
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13094
|
+
return {
|
|
13095
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13096
|
+
options: localVarRequestOptions,
|
|
13097
|
+
};
|
|
13098
|
+
}),
|
|
13099
|
+
};
|
|
13100
|
+
};
|
|
13101
|
+
exports.SumUpApiAxiosParamCreator = SumUpApiAxiosParamCreator;
|
|
13102
|
+
/**
|
|
13103
|
+
* SumUpApi - functional programming interface
|
|
13104
|
+
* @export
|
|
13105
|
+
*/
|
|
13106
|
+
const SumUpApiFp = function (configuration) {
|
|
13107
|
+
const localVarAxiosParamCreator = (0, exports.SumUpApiAxiosParamCreator)(configuration);
|
|
13108
|
+
return {
|
|
13109
|
+
/**
|
|
13110
|
+
* OAuth callback for SumUp.
|
|
13111
|
+
* @param {string} code
|
|
13112
|
+
* @param {string} state
|
|
13113
|
+
* @param {*} [options] Override http request option.
|
|
13114
|
+
* @throws {RequiredError}
|
|
13115
|
+
*/
|
|
13116
|
+
sumupOauthCallback(code, state, options) {
|
|
13117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13118
|
+
var _a, _b, _c;
|
|
13119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
|
|
13120
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13121
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13122
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13123
|
+
});
|
|
13124
|
+
},
|
|
13125
|
+
};
|
|
13126
|
+
};
|
|
13127
|
+
exports.SumUpApiFp = SumUpApiFp;
|
|
13128
|
+
/**
|
|
13129
|
+
* SumUpApi - factory interface
|
|
13130
|
+
* @export
|
|
13131
|
+
*/
|
|
13132
|
+
const SumUpApiFactory = function (configuration, basePath, axios) {
|
|
13133
|
+
const localVarFp = (0, exports.SumUpApiFp)(configuration);
|
|
13134
|
+
return {
|
|
13135
|
+
/**
|
|
13136
|
+
* OAuth callback for SumUp.
|
|
13137
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13138
|
+
* @param {*} [options] Override http request option.
|
|
13139
|
+
* @throws {RequiredError}
|
|
13140
|
+
*/
|
|
13141
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13142
|
+
return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
13143
|
+
},
|
|
13144
|
+
};
|
|
13145
|
+
};
|
|
13146
|
+
exports.SumUpApiFactory = SumUpApiFactory;
|
|
13147
|
+
/**
|
|
13148
|
+
* SumUpApi - object-oriented interface
|
|
13149
|
+
* @export
|
|
13150
|
+
* @class SumUpApi
|
|
13151
|
+
* @extends {BaseAPI}
|
|
13152
|
+
*/
|
|
13153
|
+
class SumUpApi extends base_1.BaseAPI {
|
|
13154
|
+
/**
|
|
13155
|
+
* OAuth callback for SumUp.
|
|
13156
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13157
|
+
* @param {*} [options] Override http request option.
|
|
13158
|
+
* @throws {RequiredError}
|
|
13159
|
+
* @memberof SumUpApi
|
|
13160
|
+
*/
|
|
13161
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13162
|
+
return (0, exports.SumUpApiFp)(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
13163
|
+
}
|
|
13164
|
+
}
|
|
13165
|
+
exports.SumUpApi = SumUpApi;
|
|
13166
|
+
/**
|
|
13167
|
+
* SumUpManagerApi - axios parameter creator
|
|
13168
|
+
* @export
|
|
13169
|
+
*/
|
|
13170
|
+
const SumUpManagerApiAxiosParamCreator = function (configuration) {
|
|
13171
|
+
return {
|
|
13172
|
+
/**
|
|
13173
|
+
* Disconnect SumUp account for a club.
|
|
13174
|
+
* @param {string} clubId
|
|
13175
|
+
* @param {*} [options] Override http request option.
|
|
13176
|
+
* @throws {RequiredError}
|
|
13177
|
+
*/
|
|
13178
|
+
disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13179
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13180
|
+
(0, common_1.assertParamExists)('disconnectSumup', 'clubId', clubId);
|
|
13181
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
|
|
13182
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13183
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13184
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13185
|
+
let baseOptions;
|
|
13186
|
+
if (configuration) {
|
|
13187
|
+
baseOptions = configuration.baseOptions;
|
|
13188
|
+
}
|
|
13189
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13190
|
+
const localVarHeaderParameter = {};
|
|
13191
|
+
const localVarQueryParameter = {};
|
|
13192
|
+
// authentication bearerAuth required
|
|
13193
|
+
// http bearer authentication required
|
|
13194
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13197
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13198
|
+
return {
|
|
13199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13200
|
+
options: localVarRequestOptions,
|
|
13201
|
+
};
|
|
13202
|
+
}),
|
|
13203
|
+
/**
|
|
13204
|
+
* Start SumUp OAuth connection for a club.
|
|
13205
|
+
* @param {string} clubId
|
|
13206
|
+
* @param {*} [options] Override http request option.
|
|
13207
|
+
* @throws {RequiredError}
|
|
13208
|
+
*/
|
|
13209
|
+
getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13210
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13211
|
+
(0, common_1.assertParamExists)('getSumupConnectUrl', 'clubId', clubId);
|
|
13212
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/connect`
|
|
13213
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13214
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13215
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13216
|
+
let baseOptions;
|
|
13217
|
+
if (configuration) {
|
|
13218
|
+
baseOptions = configuration.baseOptions;
|
|
13219
|
+
}
|
|
13220
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13221
|
+
const localVarHeaderParameter = {};
|
|
13222
|
+
const localVarQueryParameter = {};
|
|
13223
|
+
// authentication bearerAuth required
|
|
13224
|
+
// http bearer authentication required
|
|
13225
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13226
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13227
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13228
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13229
|
+
return {
|
|
13230
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13231
|
+
options: localVarRequestOptions,
|
|
13232
|
+
};
|
|
13233
|
+
}),
|
|
13234
|
+
/**
|
|
13235
|
+
* Get SumUp connection status for a club.
|
|
13236
|
+
* @param {string} clubId
|
|
13237
|
+
* @param {*} [options] Override http request option.
|
|
13238
|
+
* @throws {RequiredError}
|
|
13239
|
+
*/
|
|
13240
|
+
getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13241
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13242
|
+
(0, common_1.assertParamExists)('getSumupStatus', 'clubId', clubId);
|
|
13243
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/status`
|
|
13244
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13246
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13247
|
+
let baseOptions;
|
|
13248
|
+
if (configuration) {
|
|
13249
|
+
baseOptions = configuration.baseOptions;
|
|
13250
|
+
}
|
|
13251
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13252
|
+
const localVarHeaderParameter = {};
|
|
13253
|
+
const localVarQueryParameter = {};
|
|
13254
|
+
// authentication bearerAuth required
|
|
13255
|
+
// http bearer authentication required
|
|
13256
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13257
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13259
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13260
|
+
return {
|
|
13261
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13262
|
+
options: localVarRequestOptions,
|
|
13263
|
+
};
|
|
13264
|
+
}),
|
|
13265
|
+
/**
|
|
13266
|
+
* List SumUp readers for a club.
|
|
13267
|
+
* @param {string} clubId
|
|
13268
|
+
* @param {*} [options] Override http request option.
|
|
13269
|
+
* @throws {RequiredError}
|
|
13270
|
+
*/
|
|
13271
|
+
listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13272
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13273
|
+
(0, common_1.assertParamExists)('listSumupReaders', 'clubId', clubId);
|
|
13274
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers`
|
|
13275
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13276
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13277
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13278
|
+
let baseOptions;
|
|
13279
|
+
if (configuration) {
|
|
13280
|
+
baseOptions = configuration.baseOptions;
|
|
13281
|
+
}
|
|
13282
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13283
|
+
const localVarHeaderParameter = {};
|
|
13284
|
+
const localVarQueryParameter = {};
|
|
13285
|
+
// authentication bearerAuth required
|
|
13286
|
+
// http bearer authentication required
|
|
13287
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13288
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13290
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13291
|
+
return {
|
|
13292
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13293
|
+
options: localVarRequestOptions,
|
|
13294
|
+
};
|
|
13295
|
+
}),
|
|
13296
|
+
/**
|
|
13297
|
+
* Select a SumUp reader for a club.
|
|
13298
|
+
* @param {string} clubId
|
|
13299
|
+
* @param {string} readerId
|
|
13300
|
+
* @param {*} [options] Override http request option.
|
|
13301
|
+
* @throws {RequiredError}
|
|
13302
|
+
*/
|
|
13303
|
+
selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
|
|
13304
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13305
|
+
(0, common_1.assertParamExists)('selectSumupReader', 'clubId', clubId);
|
|
13306
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
13307
|
+
(0, common_1.assertParamExists)('selectSumupReader', 'readerId', readerId);
|
|
13308
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
|
|
13309
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13310
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13311
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13312
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13313
|
+
let baseOptions;
|
|
13314
|
+
if (configuration) {
|
|
13315
|
+
baseOptions = configuration.baseOptions;
|
|
13316
|
+
}
|
|
13317
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13318
|
+
const localVarHeaderParameter = {};
|
|
13319
|
+
const localVarQueryParameter = {};
|
|
13320
|
+
// authentication bearerAuth required
|
|
13321
|
+
// http bearer authentication required
|
|
13322
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13323
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13324
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13325
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13326
|
+
return {
|
|
13327
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13328
|
+
options: localVarRequestOptions,
|
|
13329
|
+
};
|
|
13330
|
+
}),
|
|
13331
|
+
};
|
|
13332
|
+
};
|
|
13333
|
+
exports.SumUpManagerApiAxiosParamCreator = SumUpManagerApiAxiosParamCreator;
|
|
13334
|
+
/**
|
|
13335
|
+
* SumUpManagerApi - functional programming interface
|
|
13336
|
+
* @export
|
|
13337
|
+
*/
|
|
13338
|
+
const SumUpManagerApiFp = function (configuration) {
|
|
13339
|
+
const localVarAxiosParamCreator = (0, exports.SumUpManagerApiAxiosParamCreator)(configuration);
|
|
13340
|
+
return {
|
|
13341
|
+
/**
|
|
13342
|
+
* Disconnect SumUp account for a club.
|
|
13343
|
+
* @param {string} clubId
|
|
13344
|
+
* @param {*} [options] Override http request option.
|
|
13345
|
+
* @throws {RequiredError}
|
|
13346
|
+
*/
|
|
13347
|
+
disconnectSumup(clubId, options) {
|
|
13348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13349
|
+
var _a, _b, _c;
|
|
13350
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
|
|
13351
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13352
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13353
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13354
|
+
});
|
|
13355
|
+
},
|
|
13356
|
+
/**
|
|
13357
|
+
* Start SumUp OAuth connection for a club.
|
|
13358
|
+
* @param {string} clubId
|
|
13359
|
+
* @param {*} [options] Override http request option.
|
|
13360
|
+
* @throws {RequiredError}
|
|
13361
|
+
*/
|
|
13362
|
+
getSumupConnectUrl(clubId, options) {
|
|
13363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13364
|
+
var _a, _b, _c;
|
|
13365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
|
|
13366
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13367
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13368
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13369
|
+
});
|
|
13370
|
+
},
|
|
13371
|
+
/**
|
|
13372
|
+
* Get SumUp connection status for a club.
|
|
13373
|
+
* @param {string} clubId
|
|
13374
|
+
* @param {*} [options] Override http request option.
|
|
13375
|
+
* @throws {RequiredError}
|
|
13376
|
+
*/
|
|
13377
|
+
getSumupStatus(clubId, options) {
|
|
13378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13379
|
+
var _a, _b, _c;
|
|
13380
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
|
|
13381
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13382
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13383
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13384
|
+
});
|
|
13385
|
+
},
|
|
13386
|
+
/**
|
|
13387
|
+
* List SumUp readers for a club.
|
|
13388
|
+
* @param {string} clubId
|
|
13389
|
+
* @param {*} [options] Override http request option.
|
|
13390
|
+
* @throws {RequiredError}
|
|
13391
|
+
*/
|
|
13392
|
+
listSumupReaders(clubId, options) {
|
|
13393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13394
|
+
var _a, _b, _c;
|
|
13395
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
|
|
13396
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13397
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13398
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13399
|
+
});
|
|
13400
|
+
},
|
|
13401
|
+
/**
|
|
13402
|
+
* Select a SumUp reader for a club.
|
|
13403
|
+
* @param {string} clubId
|
|
13404
|
+
* @param {string} readerId
|
|
13405
|
+
* @param {*} [options] Override http request option.
|
|
13406
|
+
* @throws {RequiredError}
|
|
13407
|
+
*/
|
|
13408
|
+
selectSumupReader(clubId, readerId, options) {
|
|
13409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13410
|
+
var _a, _b, _c;
|
|
13411
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
|
|
13412
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13413
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13414
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13415
|
+
});
|
|
13416
|
+
},
|
|
13417
|
+
};
|
|
13418
|
+
};
|
|
13419
|
+
exports.SumUpManagerApiFp = SumUpManagerApiFp;
|
|
13420
|
+
/**
|
|
13421
|
+
* SumUpManagerApi - factory interface
|
|
13422
|
+
* @export
|
|
13423
|
+
*/
|
|
13424
|
+
const SumUpManagerApiFactory = function (configuration, basePath, axios) {
|
|
13425
|
+
const localVarFp = (0, exports.SumUpManagerApiFp)(configuration);
|
|
13426
|
+
return {
|
|
13427
|
+
/**
|
|
13428
|
+
* Disconnect SumUp account for a club.
|
|
13429
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13430
|
+
* @param {*} [options] Override http request option.
|
|
13431
|
+
* @throws {RequiredError}
|
|
13432
|
+
*/
|
|
13433
|
+
disconnectSumup(requestParameters, options) {
|
|
13434
|
+
return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13435
|
+
},
|
|
13436
|
+
/**
|
|
13437
|
+
* Start SumUp OAuth connection for a club.
|
|
13438
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13439
|
+
* @param {*} [options] Override http request option.
|
|
13440
|
+
* @throws {RequiredError}
|
|
13441
|
+
*/
|
|
13442
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13443
|
+
return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13444
|
+
},
|
|
13445
|
+
/**
|
|
13446
|
+
* Get SumUp connection status for a club.
|
|
13447
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13448
|
+
* @param {*} [options] Override http request option.
|
|
13449
|
+
* @throws {RequiredError}
|
|
13450
|
+
*/
|
|
13451
|
+
getSumupStatus(requestParameters, options) {
|
|
13452
|
+
return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13453
|
+
},
|
|
13454
|
+
/**
|
|
13455
|
+
* List SumUp readers for a club.
|
|
13456
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13457
|
+
* @param {*} [options] Override http request option.
|
|
13458
|
+
* @throws {RequiredError}
|
|
13459
|
+
*/
|
|
13460
|
+
listSumupReaders(requestParameters, options) {
|
|
13461
|
+
return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13462
|
+
},
|
|
13463
|
+
/**
|
|
13464
|
+
* Select a SumUp reader for a club.
|
|
13465
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13466
|
+
* @param {*} [options] Override http request option.
|
|
13467
|
+
* @throws {RequiredError}
|
|
13468
|
+
*/
|
|
13469
|
+
selectSumupReader(requestParameters, options) {
|
|
13470
|
+
return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
13471
|
+
},
|
|
13472
|
+
};
|
|
13473
|
+
};
|
|
13474
|
+
exports.SumUpManagerApiFactory = SumUpManagerApiFactory;
|
|
13475
|
+
/**
|
|
13476
|
+
* SumUpManagerApi - object-oriented interface
|
|
13477
|
+
* @export
|
|
13478
|
+
* @class SumUpManagerApi
|
|
13479
|
+
* @extends {BaseAPI}
|
|
13480
|
+
*/
|
|
13481
|
+
class SumUpManagerApi extends base_1.BaseAPI {
|
|
13482
|
+
/**
|
|
13483
|
+
* Disconnect SumUp account for a club.
|
|
13484
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13485
|
+
* @param {*} [options] Override http request option.
|
|
13486
|
+
* @throws {RequiredError}
|
|
13487
|
+
* @memberof SumUpManagerApi
|
|
13488
|
+
*/
|
|
13489
|
+
disconnectSumup(requestParameters, options) {
|
|
13490
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13491
|
+
}
|
|
13492
|
+
/**
|
|
13493
|
+
* Start SumUp OAuth connection for a club.
|
|
13494
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13495
|
+
* @param {*} [options] Override http request option.
|
|
13496
|
+
* @throws {RequiredError}
|
|
13497
|
+
* @memberof SumUpManagerApi
|
|
13498
|
+
*/
|
|
13499
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13500
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13501
|
+
}
|
|
13502
|
+
/**
|
|
13503
|
+
* Get SumUp connection status for a club.
|
|
13504
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13505
|
+
* @param {*} [options] Override http request option.
|
|
13506
|
+
* @throws {RequiredError}
|
|
13507
|
+
* @memberof SumUpManagerApi
|
|
13508
|
+
*/
|
|
13509
|
+
getSumupStatus(requestParameters, options) {
|
|
13510
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13511
|
+
}
|
|
13512
|
+
/**
|
|
13513
|
+
* List SumUp readers for a club.
|
|
13514
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13515
|
+
* @param {*} [options] Override http request option.
|
|
13516
|
+
* @throws {RequiredError}
|
|
13517
|
+
* @memberof SumUpManagerApi
|
|
13518
|
+
*/
|
|
13519
|
+
listSumupReaders(requestParameters, options) {
|
|
13520
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13521
|
+
}
|
|
13522
|
+
/**
|
|
13523
|
+
* Select a SumUp reader for a club.
|
|
13524
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13525
|
+
* @param {*} [options] Override http request option.
|
|
13526
|
+
* @throws {RequiredError}
|
|
13527
|
+
* @memberof SumUpManagerApi
|
|
13528
|
+
*/
|
|
13529
|
+
selectSumupReader(requestParameters, options) {
|
|
13530
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
13531
|
+
}
|
|
13532
|
+
}
|
|
13533
|
+
exports.SumUpManagerApi = SumUpManagerApi;
|
|
12853
13534
|
/**
|
|
12854
13535
|
* UserApi - axios parameter creator
|
|
12855
13536
|
* @export
|