@tennac-booking/sdk 1.0.184 → 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.
- package/.openapi-generator/FILES +412 -429
- package/README.md +3 -27
- package/api.ts +160 -1551
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +188 -1085
- package/dist/api.js +19 -842
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +188 -1085
- package/dist/esm/api.js +15 -825
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsApi.md +5 -5
- package/docs/BookingsStaffApi.md +1 -57
- package/docs/JoinOpenBookingRequest.md +26 -0
- package/docs/UserClubMembership.md +2 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/CheckInPlayerSumupRequest.md +0 -22
- package/docs/CheckInPlayerSumupResponse.md +0 -24
- package/docs/CheckInSumupPaymentInfo.md +0 -26
- package/docs/PaymentIntentResult.md +0 -28
- package/docs/PaymentProviderType.md +0 -10
- package/docs/PaymentStatus.md +0 -14
- package/docs/PaymentsStaffApi.md +0 -124
- package/docs/SumUpApi.md +0 -63
- package/docs/SumUpManagerApi.md +0 -332
- package/docs/SumupAccountStatusResponse.md +0 -32
- package/docs/SumupCancelPaymentRequest.md +0 -20
- package/docs/SumupConnectUrlResponse.md +0 -20
- package/docs/SumupCreatePaymentRequest.md +0 -32
- package/docs/SumupOAuthCallbackResponse.md +0 -24
- package/docs/SumupPairReaderRequest.md +0 -22
- package/docs/SumupPairReaderResponse.md +0 -20
- package/docs/SumupReaderInfo.md +0 -34
- package/docs/SumupReadersResponse.md +0 -20
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.185
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,11 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
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 =
|
|
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 =
|
|
28
|
-
exports.
|
|
29
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = void 0;
|
|
25
|
+
exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = 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.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.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = 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 = void 0;
|
|
27
|
+
exports.ImagesApiFactory = exports.ImagesApiFp = 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 = void 0;
|
|
28
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = 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.ImagesApi = void 0;
|
|
30
29
|
const axios_1 = require("axios");
|
|
31
30
|
// Some imports not used depending on template conditions
|
|
32
31
|
// @ts-ignore
|
|
@@ -259,26 +258,6 @@ exports.PaymentMethod = {
|
|
|
259
258
|
OnsiteCash: 'onsite_cash',
|
|
260
259
|
Free: 'free'
|
|
261
260
|
};
|
|
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
|
-
};
|
|
282
261
|
/**
|
|
283
262
|
*
|
|
284
263
|
* @export
|
|
@@ -781,15 +760,15 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
781
760
|
/**
|
|
782
761
|
*
|
|
783
762
|
* @param {string} bookingId
|
|
784
|
-
* @param {
|
|
763
|
+
* @param {JoinOpenBookingRequest} joinOpenBookingRequest
|
|
785
764
|
* @param {*} [options] Override http request option.
|
|
786
765
|
* @throws {RequiredError}
|
|
787
766
|
*/
|
|
788
|
-
joinOpenBooking: (bookingId_1,
|
|
767
|
+
joinOpenBooking: (bookingId_1, joinOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenBookingRequest, options = {}) {
|
|
789
768
|
// verify required parameter 'bookingId' is not null or undefined
|
|
790
769
|
(0, common_1.assertParamExists)('joinOpenBooking', 'bookingId', bookingId);
|
|
791
|
-
// verify required parameter '
|
|
792
|
-
(0, common_1.assertParamExists)('joinOpenBooking', '
|
|
770
|
+
// verify required parameter 'joinOpenBookingRequest' is not null or undefined
|
|
771
|
+
(0, common_1.assertParamExists)('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest);
|
|
793
772
|
const localVarPath = `/api/bookings/{bookingId}/open/join`
|
|
794
773
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
795
774
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -808,7 +787,7 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
808
787
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
809
788
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
810
789
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
811
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
790
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinOpenBookingRequest, localVarRequestOptions, configuration);
|
|
812
791
|
return {
|
|
813
792
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
814
793
|
options: localVarRequestOptions,
|
|
@@ -1005,14 +984,14 @@ const BookingsApiFp = function (configuration) {
|
|
|
1005
984
|
/**
|
|
1006
985
|
*
|
|
1007
986
|
* @param {string} bookingId
|
|
1008
|
-
* @param {
|
|
987
|
+
* @param {JoinOpenBookingRequest} joinOpenBookingRequest
|
|
1009
988
|
* @param {*} [options] Override http request option.
|
|
1010
989
|
* @throws {RequiredError}
|
|
1011
990
|
*/
|
|
1012
|
-
joinOpenBooking(bookingId,
|
|
991
|
+
joinOpenBooking(bookingId, joinOpenBookingRequest, options) {
|
|
1013
992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1014
993
|
var _a, _b, _c;
|
|
1015
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId,
|
|
994
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
|
|
1016
995
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1017
996
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1018
997
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1131,7 +1110,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1131
1110
|
* @throws {RequiredError}
|
|
1132
1111
|
*/
|
|
1133
1112
|
joinOpenBooking(requestParameters, options) {
|
|
1134
|
-
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1113
|
+
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
1135
1114
|
},
|
|
1136
1115
|
/**
|
|
1137
1116
|
*
|
|
@@ -1250,7 +1229,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1250
1229
|
* @memberof BookingsApi
|
|
1251
1230
|
*/
|
|
1252
1231
|
joinOpenBooking(requestParameters, options) {
|
|
1253
|
-
return (0, exports.BookingsApiFp)(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1232
|
+
return (0, exports.BookingsApiFp)(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1254
1233
|
}
|
|
1255
1234
|
/**
|
|
1256
1235
|
*
|
|
@@ -1445,7 +1424,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
1445
1424
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
1446
1425
|
return {
|
|
1447
1426
|
/**
|
|
1448
|
-
* Check-in d\'un joueur
|
|
1427
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1449
1428
|
* @param {string} bookingId
|
|
1450
1429
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1451
1430
|
* @param {*} [options] Override http request option.
|
|
@@ -1480,42 +1459,6 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1480
1459
|
options: localVarRequestOptions,
|
|
1481
1460
|
};
|
|
1482
1461
|
}),
|
|
1483
|
-
/**
|
|
1484
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1485
|
-
* @param {string} bookingId
|
|
1486
|
-
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1487
|
-
* @param {*} [options] Override http request option.
|
|
1488
|
-
* @throws {RequiredError}
|
|
1489
|
-
*/
|
|
1490
|
-
checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
|
|
1491
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
1492
|
-
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'bookingId', bookingId);
|
|
1493
|
-
// verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
|
|
1494
|
-
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
|
|
1495
|
-
const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
|
|
1496
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1497
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1498
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1499
|
-
let baseOptions;
|
|
1500
|
-
if (configuration) {
|
|
1501
|
-
baseOptions = configuration.baseOptions;
|
|
1502
|
-
}
|
|
1503
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1504
|
-
const localVarHeaderParameter = {};
|
|
1505
|
-
const localVarQueryParameter = {};
|
|
1506
|
-
// authentication bearerAuth required
|
|
1507
|
-
// http bearer authentication required
|
|
1508
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1509
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1510
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1511
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1512
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1513
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
|
|
1514
|
-
return {
|
|
1515
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1516
|
-
options: localVarRequestOptions,
|
|
1517
|
-
};
|
|
1518
|
-
}),
|
|
1519
1462
|
/**
|
|
1520
1463
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1521
1464
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1761,7 +1704,7 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1761
1704
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1762
1705
|
return {
|
|
1763
1706
|
/**
|
|
1764
|
-
* Check-in d\'un joueur
|
|
1707
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1765
1708
|
* @param {string} bookingId
|
|
1766
1709
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1767
1710
|
* @param {*} [options] Override http request option.
|
|
@@ -1776,22 +1719,6 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1776
1719
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1777
1720
|
});
|
|
1778
1721
|
},
|
|
1779
|
-
/**
|
|
1780
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1781
|
-
* @param {string} bookingId
|
|
1782
|
-
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1783
|
-
* @param {*} [options] Override http request option.
|
|
1784
|
-
* @throws {RequiredError}
|
|
1785
|
-
*/
|
|
1786
|
-
checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
|
|
1787
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1788
|
-
var _a, _b, _c;
|
|
1789
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
|
|
1790
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1791
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1792
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1793
|
-
});
|
|
1794
|
-
},
|
|
1795
1722
|
/**
|
|
1796
1723
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1797
1724
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1912,7 +1839,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1912
1839
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
1913
1840
|
return {
|
|
1914
1841
|
/**
|
|
1915
|
-
* Check-in d\'un joueur
|
|
1842
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1916
1843
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1917
1844
|
* @param {*} [options] Override http request option.
|
|
1918
1845
|
* @throws {RequiredError}
|
|
@@ -1920,15 +1847,6 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1920
1847
|
checkInPlayer(requestParameters, options) {
|
|
1921
1848
|
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
1922
1849
|
},
|
|
1923
|
-
/**
|
|
1924
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1925
|
-
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
1926
|
-
* @param {*} [options] Override http request option.
|
|
1927
|
-
* @throws {RequiredError}
|
|
1928
|
-
*/
|
|
1929
|
-
checkInPlayerWithSumup(requestParameters, options) {
|
|
1930
|
-
return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
|
|
1931
|
-
},
|
|
1932
1850
|
/**
|
|
1933
1851
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1934
1852
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2003,7 +1921,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
2003
1921
|
*/
|
|
2004
1922
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
2005
1923
|
/**
|
|
2006
|
-
* Check-in d\'un joueur
|
|
1924
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
2007
1925
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
2008
1926
|
* @param {*} [options] Override http request option.
|
|
2009
1927
|
* @throws {RequiredError}
|
|
@@ -2012,16 +1930,6 @@ class BookingsStaffApi extends base_1.BaseAPI {
|
|
|
2012
1930
|
checkInPlayer(requestParameters, options) {
|
|
2013
1931
|
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2014
1932
|
}
|
|
2015
|
-
/**
|
|
2016
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
2017
|
-
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
2018
|
-
* @param {*} [options] Override http request option.
|
|
2019
|
-
* @throws {RequiredError}
|
|
2020
|
-
* @memberof BookingsStaffApi
|
|
2021
|
-
*/
|
|
2022
|
-
checkInPlayerWithSumup(requestParameters, options) {
|
|
2023
|
-
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2024
|
-
}
|
|
2025
1933
|
/**
|
|
2026
1934
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2027
1935
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -11518,189 +11426,6 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
11518
11426
|
}
|
|
11519
11427
|
}
|
|
11520
11428
|
exports.ImagesApi = ImagesApi;
|
|
11521
|
-
/**
|
|
11522
|
-
* PaymentsStaffApi - axios parameter creator
|
|
11523
|
-
* @export
|
|
11524
|
-
*/
|
|
11525
|
-
const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
11526
|
-
return {
|
|
11527
|
-
/**
|
|
11528
|
-
* Cancel a SumUp reader checkout.
|
|
11529
|
-
* @param {string} clubId
|
|
11530
|
-
* @param {string} paymentId
|
|
11531
|
-
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11532
|
-
* @param {*} [options] Override http request option.
|
|
11533
|
-
* @throws {RequiredError}
|
|
11534
|
-
*/
|
|
11535
|
-
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 = {}) {
|
|
11536
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
11537
|
-
(0, common_1.assertParamExists)('cancelSumupPayment', 'clubId', clubId);
|
|
11538
|
-
// verify required parameter 'paymentId' is not null or undefined
|
|
11539
|
-
(0, common_1.assertParamExists)('cancelSumupPayment', 'paymentId', paymentId);
|
|
11540
|
-
const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
|
|
11541
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
11542
|
-
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
11543
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11544
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11545
|
-
let baseOptions;
|
|
11546
|
-
if (configuration) {
|
|
11547
|
-
baseOptions = configuration.baseOptions;
|
|
11548
|
-
}
|
|
11549
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11550
|
-
const localVarHeaderParameter = {};
|
|
11551
|
-
const localVarQueryParameter = {};
|
|
11552
|
-
// authentication bearerAuth required
|
|
11553
|
-
// http bearer authentication required
|
|
11554
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11555
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11556
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11557
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11558
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11559
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
|
|
11560
|
-
return {
|
|
11561
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11562
|
-
options: localVarRequestOptions,
|
|
11563
|
-
};
|
|
11564
|
-
}),
|
|
11565
|
-
/**
|
|
11566
|
-
* Start a SumUp reader checkout (manual payment trigger).
|
|
11567
|
-
* @param {string} clubId
|
|
11568
|
-
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11569
|
-
* @param {*} [options] Override http request option.
|
|
11570
|
-
* @throws {RequiredError}
|
|
11571
|
-
*/
|
|
11572
|
-
createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
|
|
11573
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
11574
|
-
(0, common_1.assertParamExists)('createSumupPayment', 'clubId', clubId);
|
|
11575
|
-
// verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
|
|
11576
|
-
(0, common_1.assertParamExists)('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
|
|
11577
|
-
const localVarPath = `/api/clubs/{clubId}/payments/sumup`
|
|
11578
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
11579
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11580
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11581
|
-
let baseOptions;
|
|
11582
|
-
if (configuration) {
|
|
11583
|
-
baseOptions = configuration.baseOptions;
|
|
11584
|
-
}
|
|
11585
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11586
|
-
const localVarHeaderParameter = {};
|
|
11587
|
-
const localVarQueryParameter = {};
|
|
11588
|
-
// authentication bearerAuth required
|
|
11589
|
-
// http bearer authentication required
|
|
11590
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11591
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11592
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11593
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11594
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11595
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
|
|
11596
|
-
return {
|
|
11597
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11598
|
-
options: localVarRequestOptions,
|
|
11599
|
-
};
|
|
11600
|
-
}),
|
|
11601
|
-
};
|
|
11602
|
-
};
|
|
11603
|
-
exports.PaymentsStaffApiAxiosParamCreator = PaymentsStaffApiAxiosParamCreator;
|
|
11604
|
-
/**
|
|
11605
|
-
* PaymentsStaffApi - functional programming interface
|
|
11606
|
-
* @export
|
|
11607
|
-
*/
|
|
11608
|
-
const PaymentsStaffApiFp = function (configuration) {
|
|
11609
|
-
const localVarAxiosParamCreator = (0, exports.PaymentsStaffApiAxiosParamCreator)(configuration);
|
|
11610
|
-
return {
|
|
11611
|
-
/**
|
|
11612
|
-
* Cancel a SumUp reader checkout.
|
|
11613
|
-
* @param {string} clubId
|
|
11614
|
-
* @param {string} paymentId
|
|
11615
|
-
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11616
|
-
* @param {*} [options] Override http request option.
|
|
11617
|
-
* @throws {RequiredError}
|
|
11618
|
-
*/
|
|
11619
|
-
cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
|
|
11620
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11621
|
-
var _a, _b, _c;
|
|
11622
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
|
|
11623
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11624
|
-
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;
|
|
11625
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11626
|
-
});
|
|
11627
|
-
},
|
|
11628
|
-
/**
|
|
11629
|
-
* Start a SumUp reader checkout (manual payment trigger).
|
|
11630
|
-
* @param {string} clubId
|
|
11631
|
-
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11632
|
-
* @param {*} [options] Override http request option.
|
|
11633
|
-
* @throws {RequiredError}
|
|
11634
|
-
*/
|
|
11635
|
-
createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
|
|
11636
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11637
|
-
var _a, _b, _c;
|
|
11638
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
|
|
11639
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11640
|
-
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;
|
|
11641
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11642
|
-
});
|
|
11643
|
-
},
|
|
11644
|
-
};
|
|
11645
|
-
};
|
|
11646
|
-
exports.PaymentsStaffApiFp = PaymentsStaffApiFp;
|
|
11647
|
-
/**
|
|
11648
|
-
* PaymentsStaffApi - factory interface
|
|
11649
|
-
* @export
|
|
11650
|
-
*/
|
|
11651
|
-
const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
|
|
11652
|
-
const localVarFp = (0, exports.PaymentsStaffApiFp)(configuration);
|
|
11653
|
-
return {
|
|
11654
|
-
/**
|
|
11655
|
-
* Cancel a SumUp reader checkout.
|
|
11656
|
-
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11657
|
-
* @param {*} [options] Override http request option.
|
|
11658
|
-
* @throws {RequiredError}
|
|
11659
|
-
*/
|
|
11660
|
-
cancelSumupPayment(requestParameters, options) {
|
|
11661
|
-
return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
|
|
11662
|
-
},
|
|
11663
|
-
/**
|
|
11664
|
-
* Start a SumUp reader checkout (manual payment trigger).
|
|
11665
|
-
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11666
|
-
* @param {*} [options] Override http request option.
|
|
11667
|
-
* @throws {RequiredError}
|
|
11668
|
-
*/
|
|
11669
|
-
createSumupPayment(requestParameters, options) {
|
|
11670
|
-
return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
|
|
11671
|
-
},
|
|
11672
|
-
};
|
|
11673
|
-
};
|
|
11674
|
-
exports.PaymentsStaffApiFactory = PaymentsStaffApiFactory;
|
|
11675
|
-
/**
|
|
11676
|
-
* PaymentsStaffApi - object-oriented interface
|
|
11677
|
-
* @export
|
|
11678
|
-
* @class PaymentsStaffApi
|
|
11679
|
-
* @extends {BaseAPI}
|
|
11680
|
-
*/
|
|
11681
|
-
class PaymentsStaffApi extends base_1.BaseAPI {
|
|
11682
|
-
/**
|
|
11683
|
-
* Cancel a SumUp reader checkout.
|
|
11684
|
-
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11685
|
-
* @param {*} [options] Override http request option.
|
|
11686
|
-
* @throws {RequiredError}
|
|
11687
|
-
* @memberof PaymentsStaffApi
|
|
11688
|
-
*/
|
|
11689
|
-
cancelSumupPayment(requestParameters, options) {
|
|
11690
|
-
return (0, exports.PaymentsStaffApiFp)(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11691
|
-
}
|
|
11692
|
-
/**
|
|
11693
|
-
* Start a SumUp reader checkout (manual payment trigger).
|
|
11694
|
-
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11695
|
-
* @param {*} [options] Override http request option.
|
|
11696
|
-
* @throws {RequiredError}
|
|
11697
|
-
* @memberof PaymentsStaffApi
|
|
11698
|
-
*/
|
|
11699
|
-
createSumupPayment(requestParameters, options) {
|
|
11700
|
-
return (0, exports.PaymentsStaffApiFp)(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11701
|
-
}
|
|
11702
|
-
}
|
|
11703
|
-
exports.PaymentsStaffApi = PaymentsStaffApi;
|
|
11704
11429
|
/**
|
|
11705
11430
|
* PublicEmailApi - axios parameter creator
|
|
11706
11431
|
* @export
|
|
@@ -13125,554 +12850,6 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
13125
12850
|
}
|
|
13126
12851
|
}
|
|
13127
12852
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
13128
|
-
/**
|
|
13129
|
-
* SumUpApi - axios parameter creator
|
|
13130
|
-
* @export
|
|
13131
|
-
*/
|
|
13132
|
-
const SumUpApiAxiosParamCreator = function (configuration) {
|
|
13133
|
-
return {
|
|
13134
|
-
/**
|
|
13135
|
-
* OAuth callback for SumUp.
|
|
13136
|
-
* @param {string} code
|
|
13137
|
-
* @param {string} state
|
|
13138
|
-
* @param {*} [options] Override http request option.
|
|
13139
|
-
* @throws {RequiredError}
|
|
13140
|
-
*/
|
|
13141
|
-
sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
|
|
13142
|
-
// verify required parameter 'code' is not null or undefined
|
|
13143
|
-
(0, common_1.assertParamExists)('sumupOauthCallback', 'code', code);
|
|
13144
|
-
// verify required parameter 'state' is not null or undefined
|
|
13145
|
-
(0, common_1.assertParamExists)('sumupOauthCallback', 'state', state);
|
|
13146
|
-
const localVarPath = `/api/sumup/oauth/callback`;
|
|
13147
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13148
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13149
|
-
let baseOptions;
|
|
13150
|
-
if (configuration) {
|
|
13151
|
-
baseOptions = configuration.baseOptions;
|
|
13152
|
-
}
|
|
13153
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13154
|
-
const localVarHeaderParameter = {};
|
|
13155
|
-
const localVarQueryParameter = {};
|
|
13156
|
-
if (code !== undefined) {
|
|
13157
|
-
localVarQueryParameter['code'] = code;
|
|
13158
|
-
}
|
|
13159
|
-
if (state !== undefined) {
|
|
13160
|
-
localVarQueryParameter['state'] = state;
|
|
13161
|
-
}
|
|
13162
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13163
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13164
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13165
|
-
return {
|
|
13166
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13167
|
-
options: localVarRequestOptions,
|
|
13168
|
-
};
|
|
13169
|
-
}),
|
|
13170
|
-
};
|
|
13171
|
-
};
|
|
13172
|
-
exports.SumUpApiAxiosParamCreator = SumUpApiAxiosParamCreator;
|
|
13173
|
-
/**
|
|
13174
|
-
* SumUpApi - functional programming interface
|
|
13175
|
-
* @export
|
|
13176
|
-
*/
|
|
13177
|
-
const SumUpApiFp = function (configuration) {
|
|
13178
|
-
const localVarAxiosParamCreator = (0, exports.SumUpApiAxiosParamCreator)(configuration);
|
|
13179
|
-
return {
|
|
13180
|
-
/**
|
|
13181
|
-
* OAuth callback for SumUp.
|
|
13182
|
-
* @param {string} code
|
|
13183
|
-
* @param {string} state
|
|
13184
|
-
* @param {*} [options] Override http request option.
|
|
13185
|
-
* @throws {RequiredError}
|
|
13186
|
-
*/
|
|
13187
|
-
sumupOauthCallback(code, state, options) {
|
|
13188
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13189
|
-
var _a, _b, _c;
|
|
13190
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
|
|
13191
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13192
|
-
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;
|
|
13193
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13194
|
-
});
|
|
13195
|
-
},
|
|
13196
|
-
};
|
|
13197
|
-
};
|
|
13198
|
-
exports.SumUpApiFp = SumUpApiFp;
|
|
13199
|
-
/**
|
|
13200
|
-
* SumUpApi - factory interface
|
|
13201
|
-
* @export
|
|
13202
|
-
*/
|
|
13203
|
-
const SumUpApiFactory = function (configuration, basePath, axios) {
|
|
13204
|
-
const localVarFp = (0, exports.SumUpApiFp)(configuration);
|
|
13205
|
-
return {
|
|
13206
|
-
/**
|
|
13207
|
-
* OAuth callback for SumUp.
|
|
13208
|
-
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13209
|
-
* @param {*} [options] Override http request option.
|
|
13210
|
-
* @throws {RequiredError}
|
|
13211
|
-
*/
|
|
13212
|
-
sumupOauthCallback(requestParameters, options) {
|
|
13213
|
-
return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
13214
|
-
},
|
|
13215
|
-
};
|
|
13216
|
-
};
|
|
13217
|
-
exports.SumUpApiFactory = SumUpApiFactory;
|
|
13218
|
-
/**
|
|
13219
|
-
* SumUpApi - object-oriented interface
|
|
13220
|
-
* @export
|
|
13221
|
-
* @class SumUpApi
|
|
13222
|
-
* @extends {BaseAPI}
|
|
13223
|
-
*/
|
|
13224
|
-
class SumUpApi extends base_1.BaseAPI {
|
|
13225
|
-
/**
|
|
13226
|
-
* OAuth callback for SumUp.
|
|
13227
|
-
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13228
|
-
* @param {*} [options] Override http request option.
|
|
13229
|
-
* @throws {RequiredError}
|
|
13230
|
-
* @memberof SumUpApi
|
|
13231
|
-
*/
|
|
13232
|
-
sumupOauthCallback(requestParameters, options) {
|
|
13233
|
-
return (0, exports.SumUpApiFp)(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
13234
|
-
}
|
|
13235
|
-
}
|
|
13236
|
-
exports.SumUpApi = SumUpApi;
|
|
13237
|
-
/**
|
|
13238
|
-
* SumUpManagerApi - axios parameter creator
|
|
13239
|
-
* @export
|
|
13240
|
-
*/
|
|
13241
|
-
const SumUpManagerApiAxiosParamCreator = function (configuration) {
|
|
13242
|
-
return {
|
|
13243
|
-
/**
|
|
13244
|
-
* Disconnect SumUp account for a club.
|
|
13245
|
-
* @param {string} clubId
|
|
13246
|
-
* @param {*} [options] Override http request option.
|
|
13247
|
-
* @throws {RequiredError}
|
|
13248
|
-
*/
|
|
13249
|
-
disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13250
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13251
|
-
(0, common_1.assertParamExists)('disconnectSumup', 'clubId', clubId);
|
|
13252
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
|
|
13253
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13254
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13255
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13256
|
-
let baseOptions;
|
|
13257
|
-
if (configuration) {
|
|
13258
|
-
baseOptions = configuration.baseOptions;
|
|
13259
|
-
}
|
|
13260
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13261
|
-
const localVarHeaderParameter = {};
|
|
13262
|
-
const localVarQueryParameter = {};
|
|
13263
|
-
// authentication bearerAuth required
|
|
13264
|
-
// http bearer authentication required
|
|
13265
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13266
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13267
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13268
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13269
|
-
return {
|
|
13270
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13271
|
-
options: localVarRequestOptions,
|
|
13272
|
-
};
|
|
13273
|
-
}),
|
|
13274
|
-
/**
|
|
13275
|
-
* Start SumUp OAuth connection for a club.
|
|
13276
|
-
* @param {string} clubId
|
|
13277
|
-
* @param {*} [options] Override http request option.
|
|
13278
|
-
* @throws {RequiredError}
|
|
13279
|
-
*/
|
|
13280
|
-
getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13281
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13282
|
-
(0, common_1.assertParamExists)('getSumupConnectUrl', 'clubId', clubId);
|
|
13283
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/connect`
|
|
13284
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13285
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13286
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13287
|
-
let baseOptions;
|
|
13288
|
-
if (configuration) {
|
|
13289
|
-
baseOptions = configuration.baseOptions;
|
|
13290
|
-
}
|
|
13291
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13292
|
-
const localVarHeaderParameter = {};
|
|
13293
|
-
const localVarQueryParameter = {};
|
|
13294
|
-
// authentication bearerAuth required
|
|
13295
|
-
// http bearer authentication required
|
|
13296
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13297
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13298
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13299
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13300
|
-
return {
|
|
13301
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13302
|
-
options: localVarRequestOptions,
|
|
13303
|
-
};
|
|
13304
|
-
}),
|
|
13305
|
-
/**
|
|
13306
|
-
* Get SumUp connection status for a club.
|
|
13307
|
-
* @param {string} clubId
|
|
13308
|
-
* @param {*} [options] Override http request option.
|
|
13309
|
-
* @throws {RequiredError}
|
|
13310
|
-
*/
|
|
13311
|
-
getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13312
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13313
|
-
(0, common_1.assertParamExists)('getSumupStatus', 'clubId', clubId);
|
|
13314
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/status`
|
|
13315
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13316
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13317
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13318
|
-
let baseOptions;
|
|
13319
|
-
if (configuration) {
|
|
13320
|
-
baseOptions = configuration.baseOptions;
|
|
13321
|
-
}
|
|
13322
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13323
|
-
const localVarHeaderParameter = {};
|
|
13324
|
-
const localVarQueryParameter = {};
|
|
13325
|
-
// authentication bearerAuth required
|
|
13326
|
-
// http bearer authentication required
|
|
13327
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13328
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13329
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13330
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13331
|
-
return {
|
|
13332
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13333
|
-
options: localVarRequestOptions,
|
|
13334
|
-
};
|
|
13335
|
-
}),
|
|
13336
|
-
/**
|
|
13337
|
-
* List SumUp readers for a club.
|
|
13338
|
-
* @param {string} clubId
|
|
13339
|
-
* @param {*} [options] Override http request option.
|
|
13340
|
-
* @throws {RequiredError}
|
|
13341
|
-
*/
|
|
13342
|
-
listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13343
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13344
|
-
(0, common_1.assertParamExists)('listSumupReaders', 'clubId', clubId);
|
|
13345
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/readers`
|
|
13346
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13347
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13348
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13349
|
-
let baseOptions;
|
|
13350
|
-
if (configuration) {
|
|
13351
|
-
baseOptions = configuration.baseOptions;
|
|
13352
|
-
}
|
|
13353
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13354
|
-
const localVarHeaderParameter = {};
|
|
13355
|
-
const localVarQueryParameter = {};
|
|
13356
|
-
// authentication bearerAuth required
|
|
13357
|
-
// http bearer authentication required
|
|
13358
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13359
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13360
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13361
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13362
|
-
return {
|
|
13363
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13364
|
-
options: localVarRequestOptions,
|
|
13365
|
-
};
|
|
13366
|
-
}),
|
|
13367
|
-
/**
|
|
13368
|
-
* Pair a SumUp reader with a club.
|
|
13369
|
-
* @param {string} clubId
|
|
13370
|
-
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13371
|
-
* @param {*} [options] Override http request option.
|
|
13372
|
-
* @throws {RequiredError}
|
|
13373
|
-
*/
|
|
13374
|
-
pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
|
|
13375
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13376
|
-
(0, common_1.assertParamExists)('pairSumupReader', 'clubId', clubId);
|
|
13377
|
-
// verify required parameter 'sumupPairReaderRequest' is not null or undefined
|
|
13378
|
-
(0, common_1.assertParamExists)('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
|
|
13379
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
|
|
13380
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13381
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13382
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13383
|
-
let baseOptions;
|
|
13384
|
-
if (configuration) {
|
|
13385
|
-
baseOptions = configuration.baseOptions;
|
|
13386
|
-
}
|
|
13387
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13388
|
-
const localVarHeaderParameter = {};
|
|
13389
|
-
const localVarQueryParameter = {};
|
|
13390
|
-
// authentication bearerAuth required
|
|
13391
|
-
// http bearer authentication required
|
|
13392
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13393
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13394
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13395
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13396
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13397
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupPairReaderRequest, localVarRequestOptions, configuration);
|
|
13398
|
-
return {
|
|
13399
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13400
|
-
options: localVarRequestOptions,
|
|
13401
|
-
};
|
|
13402
|
-
}),
|
|
13403
|
-
/**
|
|
13404
|
-
* Select a SumUp reader for a club.
|
|
13405
|
-
* @param {string} clubId
|
|
13406
|
-
* @param {string} readerId
|
|
13407
|
-
* @param {*} [options] Override http request option.
|
|
13408
|
-
* @throws {RequiredError}
|
|
13409
|
-
*/
|
|
13410
|
-
selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
|
|
13411
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13412
|
-
(0, common_1.assertParamExists)('selectSumupReader', 'clubId', clubId);
|
|
13413
|
-
// verify required parameter 'readerId' is not null or undefined
|
|
13414
|
-
(0, common_1.assertParamExists)('selectSumupReader', 'readerId', readerId);
|
|
13415
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
|
|
13416
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13417
|
-
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13418
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13419
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13420
|
-
let baseOptions;
|
|
13421
|
-
if (configuration) {
|
|
13422
|
-
baseOptions = configuration.baseOptions;
|
|
13423
|
-
}
|
|
13424
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13425
|
-
const localVarHeaderParameter = {};
|
|
13426
|
-
const localVarQueryParameter = {};
|
|
13427
|
-
// authentication bearerAuth required
|
|
13428
|
-
// http bearer authentication required
|
|
13429
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13430
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13431
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13432
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13433
|
-
return {
|
|
13434
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13435
|
-
options: localVarRequestOptions,
|
|
13436
|
-
};
|
|
13437
|
-
}),
|
|
13438
|
-
};
|
|
13439
|
-
};
|
|
13440
|
-
exports.SumUpManagerApiAxiosParamCreator = SumUpManagerApiAxiosParamCreator;
|
|
13441
|
-
/**
|
|
13442
|
-
* SumUpManagerApi - functional programming interface
|
|
13443
|
-
* @export
|
|
13444
|
-
*/
|
|
13445
|
-
const SumUpManagerApiFp = function (configuration) {
|
|
13446
|
-
const localVarAxiosParamCreator = (0, exports.SumUpManagerApiAxiosParamCreator)(configuration);
|
|
13447
|
-
return {
|
|
13448
|
-
/**
|
|
13449
|
-
* Disconnect SumUp account for a club.
|
|
13450
|
-
* @param {string} clubId
|
|
13451
|
-
* @param {*} [options] Override http request option.
|
|
13452
|
-
* @throws {RequiredError}
|
|
13453
|
-
*/
|
|
13454
|
-
disconnectSumup(clubId, options) {
|
|
13455
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13456
|
-
var _a, _b, _c;
|
|
13457
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
|
|
13458
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13459
|
-
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;
|
|
13460
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13461
|
-
});
|
|
13462
|
-
},
|
|
13463
|
-
/**
|
|
13464
|
-
* Start SumUp OAuth connection for a club.
|
|
13465
|
-
* @param {string} clubId
|
|
13466
|
-
* @param {*} [options] Override http request option.
|
|
13467
|
-
* @throws {RequiredError}
|
|
13468
|
-
*/
|
|
13469
|
-
getSumupConnectUrl(clubId, options) {
|
|
13470
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13471
|
-
var _a, _b, _c;
|
|
13472
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
|
|
13473
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13474
|
-
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;
|
|
13475
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13476
|
-
});
|
|
13477
|
-
},
|
|
13478
|
-
/**
|
|
13479
|
-
* Get SumUp connection status for a club.
|
|
13480
|
-
* @param {string} clubId
|
|
13481
|
-
* @param {*} [options] Override http request option.
|
|
13482
|
-
* @throws {RequiredError}
|
|
13483
|
-
*/
|
|
13484
|
-
getSumupStatus(clubId, options) {
|
|
13485
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13486
|
-
var _a, _b, _c;
|
|
13487
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
|
|
13488
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13489
|
-
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;
|
|
13490
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13491
|
-
});
|
|
13492
|
-
},
|
|
13493
|
-
/**
|
|
13494
|
-
* List SumUp readers for a club.
|
|
13495
|
-
* @param {string} clubId
|
|
13496
|
-
* @param {*} [options] Override http request option.
|
|
13497
|
-
* @throws {RequiredError}
|
|
13498
|
-
*/
|
|
13499
|
-
listSumupReaders(clubId, options) {
|
|
13500
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13501
|
-
var _a, _b, _c;
|
|
13502
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
|
|
13503
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13504
|
-
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;
|
|
13505
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13506
|
-
});
|
|
13507
|
-
},
|
|
13508
|
-
/**
|
|
13509
|
-
* Pair a SumUp reader with a club.
|
|
13510
|
-
* @param {string} clubId
|
|
13511
|
-
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13512
|
-
* @param {*} [options] Override http request option.
|
|
13513
|
-
* @throws {RequiredError}
|
|
13514
|
-
*/
|
|
13515
|
-
pairSumupReader(clubId, sumupPairReaderRequest, options) {
|
|
13516
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13517
|
-
var _a, _b, _c;
|
|
13518
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
|
|
13519
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13520
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13521
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13522
|
-
});
|
|
13523
|
-
},
|
|
13524
|
-
/**
|
|
13525
|
-
* Select a SumUp reader for a club.
|
|
13526
|
-
* @param {string} clubId
|
|
13527
|
-
* @param {string} readerId
|
|
13528
|
-
* @param {*} [options] Override http request option.
|
|
13529
|
-
* @throws {RequiredError}
|
|
13530
|
-
*/
|
|
13531
|
-
selectSumupReader(clubId, readerId, options) {
|
|
13532
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13533
|
-
var _a, _b, _c;
|
|
13534
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
|
|
13535
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13536
|
-
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;
|
|
13537
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13538
|
-
});
|
|
13539
|
-
},
|
|
13540
|
-
};
|
|
13541
|
-
};
|
|
13542
|
-
exports.SumUpManagerApiFp = SumUpManagerApiFp;
|
|
13543
|
-
/**
|
|
13544
|
-
* SumUpManagerApi - factory interface
|
|
13545
|
-
* @export
|
|
13546
|
-
*/
|
|
13547
|
-
const SumUpManagerApiFactory = function (configuration, basePath, axios) {
|
|
13548
|
-
const localVarFp = (0, exports.SumUpManagerApiFp)(configuration);
|
|
13549
|
-
return {
|
|
13550
|
-
/**
|
|
13551
|
-
* Disconnect SumUp account for a club.
|
|
13552
|
-
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13553
|
-
* @param {*} [options] Override http request option.
|
|
13554
|
-
* @throws {RequiredError}
|
|
13555
|
-
*/
|
|
13556
|
-
disconnectSumup(requestParameters, options) {
|
|
13557
|
-
return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13558
|
-
},
|
|
13559
|
-
/**
|
|
13560
|
-
* Start SumUp OAuth connection for a club.
|
|
13561
|
-
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13562
|
-
* @param {*} [options] Override http request option.
|
|
13563
|
-
* @throws {RequiredError}
|
|
13564
|
-
*/
|
|
13565
|
-
getSumupConnectUrl(requestParameters, options) {
|
|
13566
|
-
return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13567
|
-
},
|
|
13568
|
-
/**
|
|
13569
|
-
* Get SumUp connection status for a club.
|
|
13570
|
-
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13571
|
-
* @param {*} [options] Override http request option.
|
|
13572
|
-
* @throws {RequiredError}
|
|
13573
|
-
*/
|
|
13574
|
-
getSumupStatus(requestParameters, options) {
|
|
13575
|
-
return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13576
|
-
},
|
|
13577
|
-
/**
|
|
13578
|
-
* List SumUp readers for a club.
|
|
13579
|
-
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13580
|
-
* @param {*} [options] Override http request option.
|
|
13581
|
-
* @throws {RequiredError}
|
|
13582
|
-
*/
|
|
13583
|
-
listSumupReaders(requestParameters, options) {
|
|
13584
|
-
return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13585
|
-
},
|
|
13586
|
-
/**
|
|
13587
|
-
* Pair a SumUp reader with a club.
|
|
13588
|
-
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13589
|
-
* @param {*} [options] Override http request option.
|
|
13590
|
-
* @throws {RequiredError}
|
|
13591
|
-
*/
|
|
13592
|
-
pairSumupReader(requestParameters, options) {
|
|
13593
|
-
return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
|
|
13594
|
-
},
|
|
13595
|
-
/**
|
|
13596
|
-
* Select a SumUp reader for a club.
|
|
13597
|
-
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13598
|
-
* @param {*} [options] Override http request option.
|
|
13599
|
-
* @throws {RequiredError}
|
|
13600
|
-
*/
|
|
13601
|
-
selectSumupReader(requestParameters, options) {
|
|
13602
|
-
return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
13603
|
-
},
|
|
13604
|
-
};
|
|
13605
|
-
};
|
|
13606
|
-
exports.SumUpManagerApiFactory = SumUpManagerApiFactory;
|
|
13607
|
-
/**
|
|
13608
|
-
* SumUpManagerApi - object-oriented interface
|
|
13609
|
-
* @export
|
|
13610
|
-
* @class SumUpManagerApi
|
|
13611
|
-
* @extends {BaseAPI}
|
|
13612
|
-
*/
|
|
13613
|
-
class SumUpManagerApi extends base_1.BaseAPI {
|
|
13614
|
-
/**
|
|
13615
|
-
* Disconnect SumUp account for a club.
|
|
13616
|
-
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13617
|
-
* @param {*} [options] Override http request option.
|
|
13618
|
-
* @throws {RequiredError}
|
|
13619
|
-
* @memberof SumUpManagerApi
|
|
13620
|
-
*/
|
|
13621
|
-
disconnectSumup(requestParameters, options) {
|
|
13622
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13623
|
-
}
|
|
13624
|
-
/**
|
|
13625
|
-
* Start SumUp OAuth connection for a club.
|
|
13626
|
-
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13627
|
-
* @param {*} [options] Override http request option.
|
|
13628
|
-
* @throws {RequiredError}
|
|
13629
|
-
* @memberof SumUpManagerApi
|
|
13630
|
-
*/
|
|
13631
|
-
getSumupConnectUrl(requestParameters, options) {
|
|
13632
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13633
|
-
}
|
|
13634
|
-
/**
|
|
13635
|
-
* Get SumUp connection status for a club.
|
|
13636
|
-
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13637
|
-
* @param {*} [options] Override http request option.
|
|
13638
|
-
* @throws {RequiredError}
|
|
13639
|
-
* @memberof SumUpManagerApi
|
|
13640
|
-
*/
|
|
13641
|
-
getSumupStatus(requestParameters, options) {
|
|
13642
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13643
|
-
}
|
|
13644
|
-
/**
|
|
13645
|
-
* List SumUp readers for a club.
|
|
13646
|
-
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13647
|
-
* @param {*} [options] Override http request option.
|
|
13648
|
-
* @throws {RequiredError}
|
|
13649
|
-
* @memberof SumUpManagerApi
|
|
13650
|
-
*/
|
|
13651
|
-
listSumupReaders(requestParameters, options) {
|
|
13652
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13653
|
-
}
|
|
13654
|
-
/**
|
|
13655
|
-
* Pair a SumUp reader with a club.
|
|
13656
|
-
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13657
|
-
* @param {*} [options] Override http request option.
|
|
13658
|
-
* @throws {RequiredError}
|
|
13659
|
-
* @memberof SumUpManagerApi
|
|
13660
|
-
*/
|
|
13661
|
-
pairSumupReader(requestParameters, options) {
|
|
13662
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13663
|
-
}
|
|
13664
|
-
/**
|
|
13665
|
-
* Select a SumUp reader for a club.
|
|
13666
|
-
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13667
|
-
* @param {*} [options] Override http request option.
|
|
13668
|
-
* @throws {RequiredError}
|
|
13669
|
-
* @memberof SumUpManagerApi
|
|
13670
|
-
*/
|
|
13671
|
-
selectSumupReader(requestParameters, options) {
|
|
13672
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
13673
|
-
}
|
|
13674
|
-
}
|
|
13675
|
-
exports.SumUpManagerApi = SumUpManagerApi;
|
|
13676
12853
|
/**
|
|
13677
12854
|
* UserApi - axios parameter creator
|
|
13678
12855
|
* @export
|