@tennac-booking/sdk 1.0.231 → 1.0.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +25 -0
- package/README.md +40 -2
- package/api.ts +2222 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +7514 -6070
- package/dist/api.js +1212 -10
- 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 +7514 -6070
- package/dist/esm/api.js +1195 -5
- 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/BookingsStaffApi.md +57 -1
- package/docs/CheckInPlayerSumupRequest.md +22 -0
- package/docs/CheckInPlayerSumupResponse.md +24 -0
- package/docs/CheckInSumupPaymentInfo.md +26 -0
- package/docs/EventsApi.md +59 -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/PublishEventResponse.md +2 -0
- package/docs/RespondToEventBookingInvitation200Response.md +24 -0
- package/docs/RespondToEventBookingInvitationRequest.md +20 -0
- package/docs/SumUpApi.md +63 -0
- package/docs/SumUpManagerApi.md +617 -0
- package/docs/SumupAccountStatusResponse.md +32 -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/SumupPairReaderRequest.md +24 -0
- package/docs/SumupPairReaderResponse.md +20 -0
- package/docs/SumupReaderInfo.md +42 -0
- package/docs/SumupReaderInfoDevice.md +22 -0
- package/docs/SumupReaderResponse.md +20 -0
- package/docs/SumupReaderStatusInfo.md +32 -0
- package/docs/SumupReaderStatusResponse.md +20 -0
- package/docs/SumupReadersResponse.md +20 -0
- package/docs/SumupUpdateReaderRequest.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.233
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
16
|
+
exports.TrendDirection = exports.SurfaceType = exports.SupportedLanguage = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.QuickReservationCourtType = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentStatus = exports.PaymentProviderType = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.NotificationType = exports.NotificationTargetPreviewTypeEnum = exports.NotificationActorType = 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.EventBookingDetailSummaryUserParticipationStatusEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.CourtEnvironment = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingSummaryUserParticipationStatusEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
17
|
+
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.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.WaitListEntryWithPlayerTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = void 0;
|
|
18
|
+
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 = 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 = void 0;
|
|
19
|
+
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.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.ImagesApi = 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 = void 0;
|
|
20
|
+
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.SumUpManagerApi = exports.SumUpManagerApiFactory = exports.SumUpManagerApiFp = exports.SumUpManagerApiAxiosParamCreator = exports.SumUpApi = exports.SumUpApiFactory = exports.SumUpApiFp = exports.SumUpApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
21
21
|
const axios_1 = require("axios");
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
23
23
|
// @ts-ignore
|
|
@@ -302,6 +302,26 @@ exports.PaymentMethod = {
|
|
|
302
302
|
OnsiteCash: 'onsite_cash',
|
|
303
303
|
Free: 'free'
|
|
304
304
|
};
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @export
|
|
308
|
+
* @enum {string}
|
|
309
|
+
*/
|
|
310
|
+
exports.PaymentProviderType = {
|
|
311
|
+
Stripe: 'stripe',
|
|
312
|
+
Sumup: 'sumup'
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @export
|
|
317
|
+
* @enum {string}
|
|
318
|
+
*/
|
|
319
|
+
exports.PaymentStatus = {
|
|
320
|
+
Pending: 'pending',
|
|
321
|
+
Succeeded: 'succeeded',
|
|
322
|
+
Failed: 'failed',
|
|
323
|
+
Cancelled: 'cancelled'
|
|
324
|
+
};
|
|
305
325
|
/**
|
|
306
326
|
*
|
|
307
327
|
* @export
|
|
@@ -1549,7 +1569,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
1549
1569
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
1550
1570
|
return {
|
|
1551
1571
|
/**
|
|
1552
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1572
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1553
1573
|
* @param {string} bookingId
|
|
1554
1574
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1555
1575
|
* @param {*} [options] Override http request option.
|
|
@@ -1584,6 +1604,42 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1584
1604
|
options: localVarRequestOptions,
|
|
1585
1605
|
};
|
|
1586
1606
|
},
|
|
1607
|
+
/**
|
|
1608
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1609
|
+
* @param {string} bookingId
|
|
1610
|
+
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
checkInPlayerWithSumup: async (bookingId, checkInPlayerSumupRequest, options = {}) => {
|
|
1615
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1616
|
+
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'bookingId', bookingId);
|
|
1617
|
+
// verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
|
|
1618
|
+
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
|
|
1619
|
+
const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
|
|
1620
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1622
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1623
|
+
let baseOptions;
|
|
1624
|
+
if (configuration) {
|
|
1625
|
+
baseOptions = configuration.baseOptions;
|
|
1626
|
+
}
|
|
1627
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1628
|
+
const localVarHeaderParameter = {};
|
|
1629
|
+
const localVarQueryParameter = {};
|
|
1630
|
+
// authentication bearerAuth required
|
|
1631
|
+
// http bearer authentication required
|
|
1632
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1633
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1634
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1635
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1636
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1637
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
|
|
1638
|
+
return {
|
|
1639
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1640
|
+
options: localVarRequestOptions,
|
|
1641
|
+
};
|
|
1642
|
+
},
|
|
1587
1643
|
/**
|
|
1588
1644
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1589
1645
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1829,7 +1885,7 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1829
1885
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1830
1886
|
return {
|
|
1831
1887
|
/**
|
|
1832
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1888
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1833
1889
|
* @param {string} bookingId
|
|
1834
1890
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1835
1891
|
* @param {*} [options] Override http request option.
|
|
@@ -1841,6 +1897,19 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1841
1897
|
const localVarOperationServerBasePath = base_1.operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
|
|
1842
1898
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1843
1899
|
},
|
|
1900
|
+
/**
|
|
1901
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1902
|
+
* @param {string} bookingId
|
|
1903
|
+
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1904
|
+
* @param {*} [options] Override http request option.
|
|
1905
|
+
* @throws {RequiredError}
|
|
1906
|
+
*/
|
|
1907
|
+
async checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
|
|
1908
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
|
|
1909
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1910
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']?.[localVarOperationServerIndex]?.url;
|
|
1911
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1912
|
+
},
|
|
1844
1913
|
/**
|
|
1845
1914
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1846
1915
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1940,7 +2009,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1940
2009
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
1941
2010
|
return {
|
|
1942
2011
|
/**
|
|
1943
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
2012
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1944
2013
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1945
2014
|
* @param {*} [options] Override http request option.
|
|
1946
2015
|
* @throws {RequiredError}
|
|
@@ -1948,6 +2017,15 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1948
2017
|
checkInPlayer(requestParameters, options) {
|
|
1949
2018
|
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
1950
2019
|
},
|
|
2020
|
+
/**
|
|
2021
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
2022
|
+
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
2023
|
+
* @param {*} [options] Override http request option.
|
|
2024
|
+
* @throws {RequiredError}
|
|
2025
|
+
*/
|
|
2026
|
+
checkInPlayerWithSumup(requestParameters, options) {
|
|
2027
|
+
return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
|
|
2028
|
+
},
|
|
1951
2029
|
/**
|
|
1952
2030
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1953
2031
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2022,7 +2100,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
2022
2100
|
*/
|
|
2023
2101
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
2024
2102
|
/**
|
|
2025
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
2103
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
2026
2104
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
2027
2105
|
* @param {*} [options] Override http request option.
|
|
2028
2106
|
* @throws {RequiredError}
|
|
@@ -2031,6 +2109,16 @@ class BookingsStaffApi extends base_1.BaseAPI {
|
|
|
2031
2109
|
checkInPlayer(requestParameters, options) {
|
|
2032
2110
|
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2033
2111
|
}
|
|
2112
|
+
/**
|
|
2113
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
2114
|
+
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
2115
|
+
* @param {*} [options] Override http request option.
|
|
2116
|
+
* @throws {RequiredError}
|
|
2117
|
+
* @memberof BookingsStaffApi
|
|
2118
|
+
*/
|
|
2119
|
+
checkInPlayerWithSumup(requestParameters, options) {
|
|
2120
|
+
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2121
|
+
}
|
|
2034
2122
|
/**
|
|
2035
2123
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2036
2124
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -9699,6 +9787,42 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
9699
9787
|
options: localVarRequestOptions,
|
|
9700
9788
|
};
|
|
9701
9789
|
},
|
|
9790
|
+
/**
|
|
9791
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
9792
|
+
* @param {string} eventBookingId
|
|
9793
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
9794
|
+
* @param {*} [options] Override http request option.
|
|
9795
|
+
* @throws {RequiredError}
|
|
9796
|
+
*/
|
|
9797
|
+
respondToEventBookingInvitation: async (eventBookingId, respondToEventBookingInvitationRequest, options = {}) => {
|
|
9798
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
9799
|
+
(0, common_1.assertParamExists)('respondToEventBookingInvitation', 'eventBookingId', eventBookingId);
|
|
9800
|
+
// verify required parameter 'respondToEventBookingInvitationRequest' is not null or undefined
|
|
9801
|
+
(0, common_1.assertParamExists)('respondToEventBookingInvitation', 'respondToEventBookingInvitationRequest', respondToEventBookingInvitationRequest);
|
|
9802
|
+
const localVarPath = `/api/events/{eventBookingId}/respond-invitation`
|
|
9803
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
9804
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9805
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9806
|
+
let baseOptions;
|
|
9807
|
+
if (configuration) {
|
|
9808
|
+
baseOptions = configuration.baseOptions;
|
|
9809
|
+
}
|
|
9810
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
9811
|
+
const localVarHeaderParameter = {};
|
|
9812
|
+
const localVarQueryParameter = {};
|
|
9813
|
+
// authentication bearerAuth required
|
|
9814
|
+
// http bearer authentication required
|
|
9815
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9816
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9817
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9819
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
9820
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(respondToEventBookingInvitationRequest, localVarRequestOptions, configuration);
|
|
9821
|
+
return {
|
|
9822
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9823
|
+
options: localVarRequestOptions,
|
|
9824
|
+
};
|
|
9825
|
+
},
|
|
9702
9826
|
};
|
|
9703
9827
|
};
|
|
9704
9828
|
exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
@@ -9877,6 +10001,19 @@ const EventsApiFp = function (configuration) {
|
|
|
9877
10001
|
const localVarOperationServerBasePath = base_1.operationServerMap['EventsApi.leaveOpenEventBooking']?.[localVarOperationServerIndex]?.url;
|
|
9878
10002
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9879
10003
|
},
|
|
10004
|
+
/**
|
|
10005
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10006
|
+
* @param {string} eventBookingId
|
|
10007
|
+
* @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
|
|
10008
|
+
* @param {*} [options] Override http request option.
|
|
10009
|
+
* @throws {RequiredError}
|
|
10010
|
+
*/
|
|
10011
|
+
async respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options) {
|
|
10012
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options);
|
|
10013
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10014
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['EventsApi.respondToEventBookingInvitation']?.[localVarOperationServerIndex]?.url;
|
|
10015
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10016
|
+
},
|
|
9880
10017
|
};
|
|
9881
10018
|
};
|
|
9882
10019
|
exports.EventsApiFp = EventsApiFp;
|
|
@@ -10004,6 +10141,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10004
10141
|
leaveOpenEventBooking(requestParameters, options) {
|
|
10005
10142
|
return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
10006
10143
|
},
|
|
10144
|
+
/**
|
|
10145
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10146
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
10147
|
+
* @param {*} [options] Override http request option.
|
|
10148
|
+
* @throws {RequiredError}
|
|
10149
|
+
*/
|
|
10150
|
+
respondToEventBookingInvitation(requestParameters, options) {
|
|
10151
|
+
return localVarFp.respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(axios, basePath));
|
|
10152
|
+
},
|
|
10007
10153
|
};
|
|
10008
10154
|
};
|
|
10009
10155
|
exports.EventsApiFactory = EventsApiFactory;
|
|
@@ -10144,6 +10290,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
10144
10290
|
leaveOpenEventBooking(requestParameters, options) {
|
|
10145
10291
|
return (0, exports.EventsApiFp)(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
10146
10292
|
}
|
|
10293
|
+
/**
|
|
10294
|
+
* Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
10295
|
+
* @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
|
|
10296
|
+
* @param {*} [options] Override http request option.
|
|
10297
|
+
* @throws {RequiredError}
|
|
10298
|
+
* @memberof EventsApi
|
|
10299
|
+
*/
|
|
10300
|
+
respondToEventBookingInvitation(requestParameters, options) {
|
|
10301
|
+
return (0, exports.EventsApiFp)(this.configuration).respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10302
|
+
}
|
|
10147
10303
|
}
|
|
10148
10304
|
exports.EventsApi = EventsApi;
|
|
10149
10305
|
/**
|
|
@@ -11988,6 +12144,183 @@ class JobsApi extends base_1.BaseAPI {
|
|
|
11988
12144
|
}
|
|
11989
12145
|
}
|
|
11990
12146
|
exports.JobsApi = JobsApi;
|
|
12147
|
+
/**
|
|
12148
|
+
* PaymentsStaffApi - axios parameter creator
|
|
12149
|
+
* @export
|
|
12150
|
+
*/
|
|
12151
|
+
const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
12152
|
+
return {
|
|
12153
|
+
/**
|
|
12154
|
+
* Cancel a SumUp reader checkout.
|
|
12155
|
+
* @param {string} clubId
|
|
12156
|
+
* @param {string} paymentId
|
|
12157
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
12158
|
+
* @param {*} [options] Override http request option.
|
|
12159
|
+
* @throws {RequiredError}
|
|
12160
|
+
*/
|
|
12161
|
+
cancelSumupPayment: async (clubId, paymentId, sumupCancelPaymentRequest, options = {}) => {
|
|
12162
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
12163
|
+
(0, common_1.assertParamExists)('cancelSumupPayment', 'clubId', clubId);
|
|
12164
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
12165
|
+
(0, common_1.assertParamExists)('cancelSumupPayment', 'paymentId', paymentId);
|
|
12166
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
|
|
12167
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
12168
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
12169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12170
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12171
|
+
let baseOptions;
|
|
12172
|
+
if (configuration) {
|
|
12173
|
+
baseOptions = configuration.baseOptions;
|
|
12174
|
+
}
|
|
12175
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12176
|
+
const localVarHeaderParameter = {};
|
|
12177
|
+
const localVarQueryParameter = {};
|
|
12178
|
+
// authentication bearerAuth required
|
|
12179
|
+
// http bearer authentication required
|
|
12180
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12181
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12182
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12184
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12185
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
|
|
12186
|
+
return {
|
|
12187
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12188
|
+
options: localVarRequestOptions,
|
|
12189
|
+
};
|
|
12190
|
+
},
|
|
12191
|
+
/**
|
|
12192
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
12193
|
+
* @param {string} clubId
|
|
12194
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
12195
|
+
* @param {*} [options] Override http request option.
|
|
12196
|
+
* @throws {RequiredError}
|
|
12197
|
+
*/
|
|
12198
|
+
createSumupPayment: async (clubId, sumupCreatePaymentRequest, options = {}) => {
|
|
12199
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
12200
|
+
(0, common_1.assertParamExists)('createSumupPayment', 'clubId', clubId);
|
|
12201
|
+
// verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
|
|
12202
|
+
(0, common_1.assertParamExists)('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
|
|
12203
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup`
|
|
12204
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
12205
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12206
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12207
|
+
let baseOptions;
|
|
12208
|
+
if (configuration) {
|
|
12209
|
+
baseOptions = configuration.baseOptions;
|
|
12210
|
+
}
|
|
12211
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
12212
|
+
const localVarHeaderParameter = {};
|
|
12213
|
+
const localVarQueryParameter = {};
|
|
12214
|
+
// authentication bearerAuth required
|
|
12215
|
+
// http bearer authentication required
|
|
12216
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12217
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12218
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12219
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12220
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12221
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
|
|
12222
|
+
return {
|
|
12223
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12224
|
+
options: localVarRequestOptions,
|
|
12225
|
+
};
|
|
12226
|
+
},
|
|
12227
|
+
};
|
|
12228
|
+
};
|
|
12229
|
+
exports.PaymentsStaffApiAxiosParamCreator = PaymentsStaffApiAxiosParamCreator;
|
|
12230
|
+
/**
|
|
12231
|
+
* PaymentsStaffApi - functional programming interface
|
|
12232
|
+
* @export
|
|
12233
|
+
*/
|
|
12234
|
+
const PaymentsStaffApiFp = function (configuration) {
|
|
12235
|
+
const localVarAxiosParamCreator = (0, exports.PaymentsStaffApiAxiosParamCreator)(configuration);
|
|
12236
|
+
return {
|
|
12237
|
+
/**
|
|
12238
|
+
* Cancel a SumUp reader checkout.
|
|
12239
|
+
* @param {string} clubId
|
|
12240
|
+
* @param {string} paymentId
|
|
12241
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
12242
|
+
* @param {*} [options] Override http request option.
|
|
12243
|
+
* @throws {RequiredError}
|
|
12244
|
+
*/
|
|
12245
|
+
async cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
|
|
12246
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
|
|
12247
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12248
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['PaymentsStaffApi.cancelSumupPayment']?.[localVarOperationServerIndex]?.url;
|
|
12249
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12250
|
+
},
|
|
12251
|
+
/**
|
|
12252
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
12253
|
+
* @param {string} clubId
|
|
12254
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
12255
|
+
* @param {*} [options] Override http request option.
|
|
12256
|
+
* @throws {RequiredError}
|
|
12257
|
+
*/
|
|
12258
|
+
async createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
|
|
12259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
|
|
12260
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12261
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['PaymentsStaffApi.createSumupPayment']?.[localVarOperationServerIndex]?.url;
|
|
12262
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12263
|
+
},
|
|
12264
|
+
};
|
|
12265
|
+
};
|
|
12266
|
+
exports.PaymentsStaffApiFp = PaymentsStaffApiFp;
|
|
12267
|
+
/**
|
|
12268
|
+
* PaymentsStaffApi - factory interface
|
|
12269
|
+
* @export
|
|
12270
|
+
*/
|
|
12271
|
+
const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
|
|
12272
|
+
const localVarFp = (0, exports.PaymentsStaffApiFp)(configuration);
|
|
12273
|
+
return {
|
|
12274
|
+
/**
|
|
12275
|
+
* Cancel a SumUp reader checkout.
|
|
12276
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
12277
|
+
* @param {*} [options] Override http request option.
|
|
12278
|
+
* @throws {RequiredError}
|
|
12279
|
+
*/
|
|
12280
|
+
cancelSumupPayment(requestParameters, options) {
|
|
12281
|
+
return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
|
|
12282
|
+
},
|
|
12283
|
+
/**
|
|
12284
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
12285
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
12286
|
+
* @param {*} [options] Override http request option.
|
|
12287
|
+
* @throws {RequiredError}
|
|
12288
|
+
*/
|
|
12289
|
+
createSumupPayment(requestParameters, options) {
|
|
12290
|
+
return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
|
|
12291
|
+
},
|
|
12292
|
+
};
|
|
12293
|
+
};
|
|
12294
|
+
exports.PaymentsStaffApiFactory = PaymentsStaffApiFactory;
|
|
12295
|
+
/**
|
|
12296
|
+
* PaymentsStaffApi - object-oriented interface
|
|
12297
|
+
* @export
|
|
12298
|
+
* @class PaymentsStaffApi
|
|
12299
|
+
* @extends {BaseAPI}
|
|
12300
|
+
*/
|
|
12301
|
+
class PaymentsStaffApi extends base_1.BaseAPI {
|
|
12302
|
+
/**
|
|
12303
|
+
* Cancel a SumUp reader checkout.
|
|
12304
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
12305
|
+
* @param {*} [options] Override http request option.
|
|
12306
|
+
* @throws {RequiredError}
|
|
12307
|
+
* @memberof PaymentsStaffApi
|
|
12308
|
+
*/
|
|
12309
|
+
cancelSumupPayment(requestParameters, options) {
|
|
12310
|
+
return (0, exports.PaymentsStaffApiFp)(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12311
|
+
}
|
|
12312
|
+
/**
|
|
12313
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
12314
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
12315
|
+
* @param {*} [options] Override http request option.
|
|
12316
|
+
* @throws {RequiredError}
|
|
12317
|
+
* @memberof PaymentsStaffApi
|
|
12318
|
+
*/
|
|
12319
|
+
createSumupPayment(requestParameters, options) {
|
|
12320
|
+
return (0, exports.PaymentsStaffApiFp)(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12321
|
+
}
|
|
12322
|
+
}
|
|
12323
|
+
exports.PaymentsStaffApi = PaymentsStaffApi;
|
|
11991
12324
|
/**
|
|
11992
12325
|
* PublicEmailApi - axios parameter creator
|
|
11993
12326
|
* @export
|
|
@@ -13358,6 +13691,875 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
13358
13691
|
}
|
|
13359
13692
|
}
|
|
13360
13693
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
13694
|
+
/**
|
|
13695
|
+
* SumUpApi - axios parameter creator
|
|
13696
|
+
* @export
|
|
13697
|
+
*/
|
|
13698
|
+
const SumUpApiAxiosParamCreator = function (configuration) {
|
|
13699
|
+
return {
|
|
13700
|
+
/**
|
|
13701
|
+
* OAuth callback for SumUp.
|
|
13702
|
+
* @param {string} code
|
|
13703
|
+
* @param {string} state
|
|
13704
|
+
* @param {*} [options] Override http request option.
|
|
13705
|
+
* @throws {RequiredError}
|
|
13706
|
+
*/
|
|
13707
|
+
sumupOauthCallback: async (code, state, options = {}) => {
|
|
13708
|
+
// verify required parameter 'code' is not null or undefined
|
|
13709
|
+
(0, common_1.assertParamExists)('sumupOauthCallback', 'code', code);
|
|
13710
|
+
// verify required parameter 'state' is not null or undefined
|
|
13711
|
+
(0, common_1.assertParamExists)('sumupOauthCallback', 'state', state);
|
|
13712
|
+
const localVarPath = `/api/sumup/oauth/callback`;
|
|
13713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13714
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13715
|
+
let baseOptions;
|
|
13716
|
+
if (configuration) {
|
|
13717
|
+
baseOptions = configuration.baseOptions;
|
|
13718
|
+
}
|
|
13719
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13720
|
+
const localVarHeaderParameter = {};
|
|
13721
|
+
const localVarQueryParameter = {};
|
|
13722
|
+
if (code !== undefined) {
|
|
13723
|
+
localVarQueryParameter['code'] = code;
|
|
13724
|
+
}
|
|
13725
|
+
if (state !== undefined) {
|
|
13726
|
+
localVarQueryParameter['state'] = state;
|
|
13727
|
+
}
|
|
13728
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13730
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13731
|
+
return {
|
|
13732
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13733
|
+
options: localVarRequestOptions,
|
|
13734
|
+
};
|
|
13735
|
+
},
|
|
13736
|
+
};
|
|
13737
|
+
};
|
|
13738
|
+
exports.SumUpApiAxiosParamCreator = SumUpApiAxiosParamCreator;
|
|
13739
|
+
/**
|
|
13740
|
+
* SumUpApi - functional programming interface
|
|
13741
|
+
* @export
|
|
13742
|
+
*/
|
|
13743
|
+
const SumUpApiFp = function (configuration) {
|
|
13744
|
+
const localVarAxiosParamCreator = (0, exports.SumUpApiAxiosParamCreator)(configuration);
|
|
13745
|
+
return {
|
|
13746
|
+
/**
|
|
13747
|
+
* OAuth callback for SumUp.
|
|
13748
|
+
* @param {string} code
|
|
13749
|
+
* @param {string} state
|
|
13750
|
+
* @param {*} [options] Override http request option.
|
|
13751
|
+
* @throws {RequiredError}
|
|
13752
|
+
*/
|
|
13753
|
+
async sumupOauthCallback(code, state, options) {
|
|
13754
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
|
|
13755
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13756
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpApi.sumupOauthCallback']?.[localVarOperationServerIndex]?.url;
|
|
13757
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13758
|
+
},
|
|
13759
|
+
};
|
|
13760
|
+
};
|
|
13761
|
+
exports.SumUpApiFp = SumUpApiFp;
|
|
13762
|
+
/**
|
|
13763
|
+
* SumUpApi - factory interface
|
|
13764
|
+
* @export
|
|
13765
|
+
*/
|
|
13766
|
+
const SumUpApiFactory = function (configuration, basePath, axios) {
|
|
13767
|
+
const localVarFp = (0, exports.SumUpApiFp)(configuration);
|
|
13768
|
+
return {
|
|
13769
|
+
/**
|
|
13770
|
+
* OAuth callback for SumUp.
|
|
13771
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13772
|
+
* @param {*} [options] Override http request option.
|
|
13773
|
+
* @throws {RequiredError}
|
|
13774
|
+
*/
|
|
13775
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13776
|
+
return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
13777
|
+
},
|
|
13778
|
+
};
|
|
13779
|
+
};
|
|
13780
|
+
exports.SumUpApiFactory = SumUpApiFactory;
|
|
13781
|
+
/**
|
|
13782
|
+
* SumUpApi - object-oriented interface
|
|
13783
|
+
* @export
|
|
13784
|
+
* @class SumUpApi
|
|
13785
|
+
* @extends {BaseAPI}
|
|
13786
|
+
*/
|
|
13787
|
+
class SumUpApi extends base_1.BaseAPI {
|
|
13788
|
+
/**
|
|
13789
|
+
* OAuth callback for SumUp.
|
|
13790
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13791
|
+
* @param {*} [options] Override http request option.
|
|
13792
|
+
* @throws {RequiredError}
|
|
13793
|
+
* @memberof SumUpApi
|
|
13794
|
+
*/
|
|
13795
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13796
|
+
return (0, exports.SumUpApiFp)(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
13797
|
+
}
|
|
13798
|
+
}
|
|
13799
|
+
exports.SumUpApi = SumUpApi;
|
|
13800
|
+
/**
|
|
13801
|
+
* SumUpManagerApi - axios parameter creator
|
|
13802
|
+
* @export
|
|
13803
|
+
*/
|
|
13804
|
+
const SumUpManagerApiAxiosParamCreator = function (configuration) {
|
|
13805
|
+
return {
|
|
13806
|
+
/**
|
|
13807
|
+
* Pair a SumUp reader with a club.
|
|
13808
|
+
* @param {string} clubId
|
|
13809
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13810
|
+
* @param {*} [options] Override http request option.
|
|
13811
|
+
* @throws {RequiredError}
|
|
13812
|
+
*/
|
|
13813
|
+
createSumupReader: async (clubId, sumupPairReaderRequest, options = {}) => {
|
|
13814
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13815
|
+
(0, common_1.assertParamExists)('createSumupReader', 'clubId', clubId);
|
|
13816
|
+
// verify required parameter 'sumupPairReaderRequest' is not null or undefined
|
|
13817
|
+
(0, common_1.assertParamExists)('createSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
|
|
13818
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers`
|
|
13819
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13820
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13821
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13822
|
+
let baseOptions;
|
|
13823
|
+
if (configuration) {
|
|
13824
|
+
baseOptions = configuration.baseOptions;
|
|
13825
|
+
}
|
|
13826
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
13827
|
+
const localVarHeaderParameter = {};
|
|
13828
|
+
const localVarQueryParameter = {};
|
|
13829
|
+
// authentication bearerAuth required
|
|
13830
|
+
// http bearer authentication required
|
|
13831
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13832
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13833
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13834
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13835
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13836
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupPairReaderRequest, localVarRequestOptions, configuration);
|
|
13837
|
+
return {
|
|
13838
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13839
|
+
options: localVarRequestOptions,
|
|
13840
|
+
};
|
|
13841
|
+
},
|
|
13842
|
+
/**
|
|
13843
|
+
* Delete a SumUp reader.
|
|
13844
|
+
* @param {string} clubId
|
|
13845
|
+
* @param {string} readerId
|
|
13846
|
+
* @param {*} [options] Override http request option.
|
|
13847
|
+
* @throws {RequiredError}
|
|
13848
|
+
*/
|
|
13849
|
+
deleteSumupReader: async (clubId, readerId, options = {}) => {
|
|
13850
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13851
|
+
(0, common_1.assertParamExists)('deleteSumupReader', 'clubId', clubId);
|
|
13852
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
13853
|
+
(0, common_1.assertParamExists)('deleteSumupReader', 'readerId', readerId);
|
|
13854
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
|
|
13855
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13856
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13858
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13859
|
+
let baseOptions;
|
|
13860
|
+
if (configuration) {
|
|
13861
|
+
baseOptions = configuration.baseOptions;
|
|
13862
|
+
}
|
|
13863
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
13864
|
+
const localVarHeaderParameter = {};
|
|
13865
|
+
const localVarQueryParameter = {};
|
|
13866
|
+
// authentication bearerAuth required
|
|
13867
|
+
// http bearer authentication required
|
|
13868
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13869
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13871
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13872
|
+
return {
|
|
13873
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13874
|
+
options: localVarRequestOptions,
|
|
13875
|
+
};
|
|
13876
|
+
},
|
|
13877
|
+
/**
|
|
13878
|
+
* Disconnect SumUp account for a club.
|
|
13879
|
+
* @param {string} clubId
|
|
13880
|
+
* @param {*} [options] Override http request option.
|
|
13881
|
+
* @throws {RequiredError}
|
|
13882
|
+
*/
|
|
13883
|
+
disconnectSumup: async (clubId, options = {}) => {
|
|
13884
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13885
|
+
(0, common_1.assertParamExists)('disconnectSumup', 'clubId', clubId);
|
|
13886
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
|
|
13887
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13889
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13890
|
+
let baseOptions;
|
|
13891
|
+
if (configuration) {
|
|
13892
|
+
baseOptions = configuration.baseOptions;
|
|
13893
|
+
}
|
|
13894
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
13895
|
+
const localVarHeaderParameter = {};
|
|
13896
|
+
const localVarQueryParameter = {};
|
|
13897
|
+
// authentication bearerAuth required
|
|
13898
|
+
// http bearer authentication required
|
|
13899
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13902
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13903
|
+
return {
|
|
13904
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13905
|
+
options: localVarRequestOptions,
|
|
13906
|
+
};
|
|
13907
|
+
},
|
|
13908
|
+
/**
|
|
13909
|
+
* Start SumUp OAuth connection for a club.
|
|
13910
|
+
* @param {string} clubId
|
|
13911
|
+
* @param {*} [options] Override http request option.
|
|
13912
|
+
* @throws {RequiredError}
|
|
13913
|
+
*/
|
|
13914
|
+
getSumupConnectUrl: async (clubId, options = {}) => {
|
|
13915
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13916
|
+
(0, common_1.assertParamExists)('getSumupConnectUrl', 'clubId', clubId);
|
|
13917
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/connect`
|
|
13918
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13919
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13920
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13921
|
+
let baseOptions;
|
|
13922
|
+
if (configuration) {
|
|
13923
|
+
baseOptions = configuration.baseOptions;
|
|
13924
|
+
}
|
|
13925
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13926
|
+
const localVarHeaderParameter = {};
|
|
13927
|
+
const localVarQueryParameter = {};
|
|
13928
|
+
// authentication bearerAuth required
|
|
13929
|
+
// http bearer authentication required
|
|
13930
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13931
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13932
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13933
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13934
|
+
return {
|
|
13935
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13936
|
+
options: localVarRequestOptions,
|
|
13937
|
+
};
|
|
13938
|
+
},
|
|
13939
|
+
/**
|
|
13940
|
+
* Retrieve a SumUp reader.
|
|
13941
|
+
* @param {string} clubId
|
|
13942
|
+
* @param {string} readerId
|
|
13943
|
+
* @param {*} [options] Override http request option.
|
|
13944
|
+
* @throws {RequiredError}
|
|
13945
|
+
*/
|
|
13946
|
+
getSumupReader: async (clubId, readerId, options = {}) => {
|
|
13947
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13948
|
+
(0, common_1.assertParamExists)('getSumupReader', 'clubId', clubId);
|
|
13949
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
13950
|
+
(0, common_1.assertParamExists)('getSumupReader', 'readerId', readerId);
|
|
13951
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
|
|
13952
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13953
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13955
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13956
|
+
let baseOptions;
|
|
13957
|
+
if (configuration) {
|
|
13958
|
+
baseOptions = configuration.baseOptions;
|
|
13959
|
+
}
|
|
13960
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13961
|
+
const localVarHeaderParameter = {};
|
|
13962
|
+
const localVarQueryParameter = {};
|
|
13963
|
+
// authentication bearerAuth required
|
|
13964
|
+
// http bearer authentication required
|
|
13965
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13966
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13968
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13969
|
+
return {
|
|
13970
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13971
|
+
options: localVarRequestOptions,
|
|
13972
|
+
};
|
|
13973
|
+
},
|
|
13974
|
+
/**
|
|
13975
|
+
* Get SumUp reader status.
|
|
13976
|
+
* @param {string} clubId
|
|
13977
|
+
* @param {string} readerId
|
|
13978
|
+
* @param {*} [options] Override http request option.
|
|
13979
|
+
* @throws {RequiredError}
|
|
13980
|
+
*/
|
|
13981
|
+
getSumupReaderStatus: async (clubId, readerId, options = {}) => {
|
|
13982
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13983
|
+
(0, common_1.assertParamExists)('getSumupReaderStatus', 'clubId', clubId);
|
|
13984
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
13985
|
+
(0, common_1.assertParamExists)('getSumupReaderStatus', 'readerId', readerId);
|
|
13986
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/status`
|
|
13987
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13988
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13989
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13990
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13991
|
+
let baseOptions;
|
|
13992
|
+
if (configuration) {
|
|
13993
|
+
baseOptions = configuration.baseOptions;
|
|
13994
|
+
}
|
|
13995
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13996
|
+
const localVarHeaderParameter = {};
|
|
13997
|
+
const localVarQueryParameter = {};
|
|
13998
|
+
// authentication bearerAuth required
|
|
13999
|
+
// http bearer authentication required
|
|
14000
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14001
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14003
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
14004
|
+
return {
|
|
14005
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14006
|
+
options: localVarRequestOptions,
|
|
14007
|
+
};
|
|
14008
|
+
},
|
|
14009
|
+
/**
|
|
14010
|
+
* Get SumUp connection status for a club.
|
|
14011
|
+
* @param {string} clubId
|
|
14012
|
+
* @param {*} [options] Override http request option.
|
|
14013
|
+
* @throws {RequiredError}
|
|
14014
|
+
*/
|
|
14015
|
+
getSumupStatus: async (clubId, options = {}) => {
|
|
14016
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
14017
|
+
(0, common_1.assertParamExists)('getSumupStatus', 'clubId', clubId);
|
|
14018
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/status`
|
|
14019
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
14020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14021
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14022
|
+
let baseOptions;
|
|
14023
|
+
if (configuration) {
|
|
14024
|
+
baseOptions = configuration.baseOptions;
|
|
14025
|
+
}
|
|
14026
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
14027
|
+
const localVarHeaderParameter = {};
|
|
14028
|
+
const localVarQueryParameter = {};
|
|
14029
|
+
// authentication bearerAuth required
|
|
14030
|
+
// http bearer authentication required
|
|
14031
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14032
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14034
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
14035
|
+
return {
|
|
14036
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14037
|
+
options: localVarRequestOptions,
|
|
14038
|
+
};
|
|
14039
|
+
},
|
|
14040
|
+
/**
|
|
14041
|
+
* List SumUp readers for a club.
|
|
14042
|
+
* @param {string} clubId
|
|
14043
|
+
* @param {*} [options] Override http request option.
|
|
14044
|
+
* @throws {RequiredError}
|
|
14045
|
+
*/
|
|
14046
|
+
listSumupReaders: async (clubId, options = {}) => {
|
|
14047
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
14048
|
+
(0, common_1.assertParamExists)('listSumupReaders', 'clubId', clubId);
|
|
14049
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers`
|
|
14050
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
14051
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14052
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14053
|
+
let baseOptions;
|
|
14054
|
+
if (configuration) {
|
|
14055
|
+
baseOptions = configuration.baseOptions;
|
|
14056
|
+
}
|
|
14057
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
14058
|
+
const localVarHeaderParameter = {};
|
|
14059
|
+
const localVarQueryParameter = {};
|
|
14060
|
+
// authentication bearerAuth required
|
|
14061
|
+
// http bearer authentication required
|
|
14062
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14063
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14065
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
14066
|
+
return {
|
|
14067
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14068
|
+
options: localVarRequestOptions,
|
|
14069
|
+
};
|
|
14070
|
+
},
|
|
14071
|
+
/**
|
|
14072
|
+
* Pair a SumUp reader with a club.
|
|
14073
|
+
* @param {string} clubId
|
|
14074
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
14075
|
+
* @param {*} [options] Override http request option.
|
|
14076
|
+
* @throws {RequiredError}
|
|
14077
|
+
*/
|
|
14078
|
+
pairSumupReader: async (clubId, sumupPairReaderRequest, options = {}) => {
|
|
14079
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
14080
|
+
(0, common_1.assertParamExists)('pairSumupReader', 'clubId', clubId);
|
|
14081
|
+
// verify required parameter 'sumupPairReaderRequest' is not null or undefined
|
|
14082
|
+
(0, common_1.assertParamExists)('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
|
|
14083
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
|
|
14084
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
14085
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14086
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14087
|
+
let baseOptions;
|
|
14088
|
+
if (configuration) {
|
|
14089
|
+
baseOptions = configuration.baseOptions;
|
|
14090
|
+
}
|
|
14091
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
14092
|
+
const localVarHeaderParameter = {};
|
|
14093
|
+
const localVarQueryParameter = {};
|
|
14094
|
+
// authentication bearerAuth required
|
|
14095
|
+
// http bearer authentication required
|
|
14096
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14097
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14098
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14099
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14100
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
14101
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupPairReaderRequest, localVarRequestOptions, configuration);
|
|
14102
|
+
return {
|
|
14103
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14104
|
+
options: localVarRequestOptions,
|
|
14105
|
+
};
|
|
14106
|
+
},
|
|
14107
|
+
/**
|
|
14108
|
+
* Select a SumUp reader for a club.
|
|
14109
|
+
* @param {string} clubId
|
|
14110
|
+
* @param {string} readerId
|
|
14111
|
+
* @param {*} [options] Override http request option.
|
|
14112
|
+
* @throws {RequiredError}
|
|
14113
|
+
*/
|
|
14114
|
+
selectSumupReader: async (clubId, readerId, options = {}) => {
|
|
14115
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
14116
|
+
(0, common_1.assertParamExists)('selectSumupReader', 'clubId', clubId);
|
|
14117
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
14118
|
+
(0, common_1.assertParamExists)('selectSumupReader', 'readerId', readerId);
|
|
14119
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
|
|
14120
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
14121
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
14122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14123
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14124
|
+
let baseOptions;
|
|
14125
|
+
if (configuration) {
|
|
14126
|
+
baseOptions = configuration.baseOptions;
|
|
14127
|
+
}
|
|
14128
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
14129
|
+
const localVarHeaderParameter = {};
|
|
14130
|
+
const localVarQueryParameter = {};
|
|
14131
|
+
// authentication bearerAuth required
|
|
14132
|
+
// http bearer authentication required
|
|
14133
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14134
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14136
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
14137
|
+
return {
|
|
14138
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14139
|
+
options: localVarRequestOptions,
|
|
14140
|
+
};
|
|
14141
|
+
},
|
|
14142
|
+
/**
|
|
14143
|
+
* Update a SumUp reader.
|
|
14144
|
+
* @param {string} clubId
|
|
14145
|
+
* @param {string} readerId
|
|
14146
|
+
* @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
|
|
14147
|
+
* @param {*} [options] Override http request option.
|
|
14148
|
+
* @throws {RequiredError}
|
|
14149
|
+
*/
|
|
14150
|
+
updateSumupReader: async (clubId, readerId, sumupUpdateReaderRequest, options = {}) => {
|
|
14151
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
14152
|
+
(0, common_1.assertParamExists)('updateSumupReader', 'clubId', clubId);
|
|
14153
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
14154
|
+
(0, common_1.assertParamExists)('updateSumupReader', 'readerId', readerId);
|
|
14155
|
+
// verify required parameter 'sumupUpdateReaderRequest' is not null or undefined
|
|
14156
|
+
(0, common_1.assertParamExists)('updateSumupReader', 'sumupUpdateReaderRequest', sumupUpdateReaderRequest);
|
|
14157
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
|
|
14158
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
14159
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
14160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14161
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14162
|
+
let baseOptions;
|
|
14163
|
+
if (configuration) {
|
|
14164
|
+
baseOptions = configuration.baseOptions;
|
|
14165
|
+
}
|
|
14166
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
14167
|
+
const localVarHeaderParameter = {};
|
|
14168
|
+
const localVarQueryParameter = {};
|
|
14169
|
+
// authentication bearerAuth required
|
|
14170
|
+
// http bearer authentication required
|
|
14171
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14172
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14175
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
14176
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupUpdateReaderRequest, localVarRequestOptions, configuration);
|
|
14177
|
+
return {
|
|
14178
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14179
|
+
options: localVarRequestOptions,
|
|
14180
|
+
};
|
|
14181
|
+
},
|
|
14182
|
+
};
|
|
14183
|
+
};
|
|
14184
|
+
exports.SumUpManagerApiAxiosParamCreator = SumUpManagerApiAxiosParamCreator;
|
|
14185
|
+
/**
|
|
14186
|
+
* SumUpManagerApi - functional programming interface
|
|
14187
|
+
* @export
|
|
14188
|
+
*/
|
|
14189
|
+
const SumUpManagerApiFp = function (configuration) {
|
|
14190
|
+
const localVarAxiosParamCreator = (0, exports.SumUpManagerApiAxiosParamCreator)(configuration);
|
|
14191
|
+
return {
|
|
14192
|
+
/**
|
|
14193
|
+
* Pair a SumUp reader with a club.
|
|
14194
|
+
* @param {string} clubId
|
|
14195
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
14196
|
+
* @param {*} [options] Override http request option.
|
|
14197
|
+
* @throws {RequiredError}
|
|
14198
|
+
*/
|
|
14199
|
+
async createSumupReader(clubId, sumupPairReaderRequest, options) {
|
|
14200
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupReader(clubId, sumupPairReaderRequest, options);
|
|
14201
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14202
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.createSumupReader']?.[localVarOperationServerIndex]?.url;
|
|
14203
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14204
|
+
},
|
|
14205
|
+
/**
|
|
14206
|
+
* Delete a SumUp reader.
|
|
14207
|
+
* @param {string} clubId
|
|
14208
|
+
* @param {string} readerId
|
|
14209
|
+
* @param {*} [options] Override http request option.
|
|
14210
|
+
* @throws {RequiredError}
|
|
14211
|
+
*/
|
|
14212
|
+
async deleteSumupReader(clubId, readerId, options) {
|
|
14213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSumupReader(clubId, readerId, options);
|
|
14214
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14215
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.deleteSumupReader']?.[localVarOperationServerIndex]?.url;
|
|
14216
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14217
|
+
},
|
|
14218
|
+
/**
|
|
14219
|
+
* Disconnect SumUp account for a club.
|
|
14220
|
+
* @param {string} clubId
|
|
14221
|
+
* @param {*} [options] Override http request option.
|
|
14222
|
+
* @throws {RequiredError}
|
|
14223
|
+
*/
|
|
14224
|
+
async disconnectSumup(clubId, options) {
|
|
14225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectSumup(clubId, options);
|
|
14226
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14227
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.disconnectSumup']?.[localVarOperationServerIndex]?.url;
|
|
14228
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14229
|
+
},
|
|
14230
|
+
/**
|
|
14231
|
+
* Start SumUp OAuth connection for a club.
|
|
14232
|
+
* @param {string} clubId
|
|
14233
|
+
* @param {*} [options] Override http request option.
|
|
14234
|
+
* @throws {RequiredError}
|
|
14235
|
+
*/
|
|
14236
|
+
async getSumupConnectUrl(clubId, options) {
|
|
14237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
|
|
14238
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14239
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.getSumupConnectUrl']?.[localVarOperationServerIndex]?.url;
|
|
14240
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14241
|
+
},
|
|
14242
|
+
/**
|
|
14243
|
+
* Retrieve a SumUp reader.
|
|
14244
|
+
* @param {string} clubId
|
|
14245
|
+
* @param {string} readerId
|
|
14246
|
+
* @param {*} [options] Override http request option.
|
|
14247
|
+
* @throws {RequiredError}
|
|
14248
|
+
*/
|
|
14249
|
+
async getSumupReader(clubId, readerId, options) {
|
|
14250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupReader(clubId, readerId, options);
|
|
14251
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14252
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.getSumupReader']?.[localVarOperationServerIndex]?.url;
|
|
14253
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14254
|
+
},
|
|
14255
|
+
/**
|
|
14256
|
+
* Get SumUp reader status.
|
|
14257
|
+
* @param {string} clubId
|
|
14258
|
+
* @param {string} readerId
|
|
14259
|
+
* @param {*} [options] Override http request option.
|
|
14260
|
+
* @throws {RequiredError}
|
|
14261
|
+
*/
|
|
14262
|
+
async getSumupReaderStatus(clubId, readerId, options) {
|
|
14263
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupReaderStatus(clubId, readerId, options);
|
|
14264
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14265
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.getSumupReaderStatus']?.[localVarOperationServerIndex]?.url;
|
|
14266
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14267
|
+
},
|
|
14268
|
+
/**
|
|
14269
|
+
* Get SumUp connection status for a club.
|
|
14270
|
+
* @param {string} clubId
|
|
14271
|
+
* @param {*} [options] Override http request option.
|
|
14272
|
+
* @throws {RequiredError}
|
|
14273
|
+
*/
|
|
14274
|
+
async getSumupStatus(clubId, options) {
|
|
14275
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupStatus(clubId, options);
|
|
14276
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14277
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.getSumupStatus']?.[localVarOperationServerIndex]?.url;
|
|
14278
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14279
|
+
},
|
|
14280
|
+
/**
|
|
14281
|
+
* List SumUp readers for a club.
|
|
14282
|
+
* @param {string} clubId
|
|
14283
|
+
* @param {*} [options] Override http request option.
|
|
14284
|
+
* @throws {RequiredError}
|
|
14285
|
+
*/
|
|
14286
|
+
async listSumupReaders(clubId, options) {
|
|
14287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSumupReaders(clubId, options);
|
|
14288
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14289
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.listSumupReaders']?.[localVarOperationServerIndex]?.url;
|
|
14290
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14291
|
+
},
|
|
14292
|
+
/**
|
|
14293
|
+
* Pair a SumUp reader with a club.
|
|
14294
|
+
* @param {string} clubId
|
|
14295
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
14296
|
+
* @param {*} [options] Override http request option.
|
|
14297
|
+
* @throws {RequiredError}
|
|
14298
|
+
*/
|
|
14299
|
+
async pairSumupReader(clubId, sumupPairReaderRequest, options) {
|
|
14300
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
|
|
14301
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14302
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.pairSumupReader']?.[localVarOperationServerIndex]?.url;
|
|
14303
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14304
|
+
},
|
|
14305
|
+
/**
|
|
14306
|
+
* Select a SumUp reader for a club.
|
|
14307
|
+
* @param {string} clubId
|
|
14308
|
+
* @param {string} readerId
|
|
14309
|
+
* @param {*} [options] Override http request option.
|
|
14310
|
+
* @throws {RequiredError}
|
|
14311
|
+
*/
|
|
14312
|
+
async selectSumupReader(clubId, readerId, options) {
|
|
14313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
|
|
14314
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14315
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.selectSumupReader']?.[localVarOperationServerIndex]?.url;
|
|
14316
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14317
|
+
},
|
|
14318
|
+
/**
|
|
14319
|
+
* Update a SumUp reader.
|
|
14320
|
+
* @param {string} clubId
|
|
14321
|
+
* @param {string} readerId
|
|
14322
|
+
* @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
|
|
14323
|
+
* @param {*} [options] Override http request option.
|
|
14324
|
+
* @throws {RequiredError}
|
|
14325
|
+
*/
|
|
14326
|
+
async updateSumupReader(clubId, readerId, sumupUpdateReaderRequest, options) {
|
|
14327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSumupReader(clubId, readerId, sumupUpdateReaderRequest, options);
|
|
14328
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14329
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SumUpManagerApi.updateSumupReader']?.[localVarOperationServerIndex]?.url;
|
|
14330
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14331
|
+
},
|
|
14332
|
+
};
|
|
14333
|
+
};
|
|
14334
|
+
exports.SumUpManagerApiFp = SumUpManagerApiFp;
|
|
14335
|
+
/**
|
|
14336
|
+
* SumUpManagerApi - factory interface
|
|
14337
|
+
* @export
|
|
14338
|
+
*/
|
|
14339
|
+
const SumUpManagerApiFactory = function (configuration, basePath, axios) {
|
|
14340
|
+
const localVarFp = (0, exports.SumUpManagerApiFp)(configuration);
|
|
14341
|
+
return {
|
|
14342
|
+
/**
|
|
14343
|
+
* Pair a SumUp reader with a club.
|
|
14344
|
+
* @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
|
|
14345
|
+
* @param {*} [options] Override http request option.
|
|
14346
|
+
* @throws {RequiredError}
|
|
14347
|
+
*/
|
|
14348
|
+
createSumupReader(requestParameters, options) {
|
|
14349
|
+
return localVarFp.createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
|
|
14350
|
+
},
|
|
14351
|
+
/**
|
|
14352
|
+
* Delete a SumUp reader.
|
|
14353
|
+
* @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
|
|
14354
|
+
* @param {*} [options] Override http request option.
|
|
14355
|
+
* @throws {RequiredError}
|
|
14356
|
+
*/
|
|
14357
|
+
deleteSumupReader(requestParameters, options) {
|
|
14358
|
+
return localVarFp.deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
14359
|
+
},
|
|
14360
|
+
/**
|
|
14361
|
+
* Disconnect SumUp account for a club.
|
|
14362
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
14363
|
+
* @param {*} [options] Override http request option.
|
|
14364
|
+
* @throws {RequiredError}
|
|
14365
|
+
*/
|
|
14366
|
+
disconnectSumup(requestParameters, options) {
|
|
14367
|
+
return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
14368
|
+
},
|
|
14369
|
+
/**
|
|
14370
|
+
* Start SumUp OAuth connection for a club.
|
|
14371
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
14372
|
+
* @param {*} [options] Override http request option.
|
|
14373
|
+
* @throws {RequiredError}
|
|
14374
|
+
*/
|
|
14375
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
14376
|
+
return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
14377
|
+
},
|
|
14378
|
+
/**
|
|
14379
|
+
* Retrieve a SumUp reader.
|
|
14380
|
+
* @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
|
|
14381
|
+
* @param {*} [options] Override http request option.
|
|
14382
|
+
* @throws {RequiredError}
|
|
14383
|
+
*/
|
|
14384
|
+
getSumupReader(requestParameters, options) {
|
|
14385
|
+
return localVarFp.getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
14386
|
+
},
|
|
14387
|
+
/**
|
|
14388
|
+
* Get SumUp reader status.
|
|
14389
|
+
* @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
|
|
14390
|
+
* @param {*} [options] Override http request option.
|
|
14391
|
+
* @throws {RequiredError}
|
|
14392
|
+
*/
|
|
14393
|
+
getSumupReaderStatus(requestParameters, options) {
|
|
14394
|
+
return localVarFp.getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
14395
|
+
},
|
|
14396
|
+
/**
|
|
14397
|
+
* Get SumUp connection status for a club.
|
|
14398
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
14399
|
+
* @param {*} [options] Override http request option.
|
|
14400
|
+
* @throws {RequiredError}
|
|
14401
|
+
*/
|
|
14402
|
+
getSumupStatus(requestParameters, options) {
|
|
14403
|
+
return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
14404
|
+
},
|
|
14405
|
+
/**
|
|
14406
|
+
* List SumUp readers for a club.
|
|
14407
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
14408
|
+
* @param {*} [options] Override http request option.
|
|
14409
|
+
* @throws {RequiredError}
|
|
14410
|
+
*/
|
|
14411
|
+
listSumupReaders(requestParameters, options) {
|
|
14412
|
+
return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
14413
|
+
},
|
|
14414
|
+
/**
|
|
14415
|
+
* Pair a SumUp reader with a club.
|
|
14416
|
+
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
14417
|
+
* @param {*} [options] Override http request option.
|
|
14418
|
+
* @throws {RequiredError}
|
|
14419
|
+
*/
|
|
14420
|
+
pairSumupReader(requestParameters, options) {
|
|
14421
|
+
return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
|
|
14422
|
+
},
|
|
14423
|
+
/**
|
|
14424
|
+
* Select a SumUp reader for a club.
|
|
14425
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
14426
|
+
* @param {*} [options] Override http request option.
|
|
14427
|
+
* @throws {RequiredError}
|
|
14428
|
+
*/
|
|
14429
|
+
selectSumupReader(requestParameters, options) {
|
|
14430
|
+
return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
14431
|
+
},
|
|
14432
|
+
/**
|
|
14433
|
+
* Update a SumUp reader.
|
|
14434
|
+
* @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
|
|
14435
|
+
* @param {*} [options] Override http request option.
|
|
14436
|
+
* @throws {RequiredError}
|
|
14437
|
+
*/
|
|
14438
|
+
updateSumupReader(requestParameters, options) {
|
|
14439
|
+
return localVarFp.updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(axios, basePath));
|
|
14440
|
+
},
|
|
14441
|
+
};
|
|
14442
|
+
};
|
|
14443
|
+
exports.SumUpManagerApiFactory = SumUpManagerApiFactory;
|
|
14444
|
+
/**
|
|
14445
|
+
* SumUpManagerApi - object-oriented interface
|
|
14446
|
+
* @export
|
|
14447
|
+
* @class SumUpManagerApi
|
|
14448
|
+
* @extends {BaseAPI}
|
|
14449
|
+
*/
|
|
14450
|
+
class SumUpManagerApi extends base_1.BaseAPI {
|
|
14451
|
+
/**
|
|
14452
|
+
* Pair a SumUp reader with a club.
|
|
14453
|
+
* @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
|
|
14454
|
+
* @param {*} [options] Override http request option.
|
|
14455
|
+
* @throws {RequiredError}
|
|
14456
|
+
* @memberof SumUpManagerApi
|
|
14457
|
+
*/
|
|
14458
|
+
createSumupReader(requestParameters, options) {
|
|
14459
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14460
|
+
}
|
|
14461
|
+
/**
|
|
14462
|
+
* Delete a SumUp reader.
|
|
14463
|
+
* @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
|
|
14464
|
+
* @param {*} [options] Override http request option.
|
|
14465
|
+
* @throws {RequiredError}
|
|
14466
|
+
* @memberof SumUpManagerApi
|
|
14467
|
+
*/
|
|
14468
|
+
deleteSumupReader(requestParameters, options) {
|
|
14469
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
14470
|
+
}
|
|
14471
|
+
/**
|
|
14472
|
+
* Disconnect SumUp account for a club.
|
|
14473
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
14474
|
+
* @param {*} [options] Override http request option.
|
|
14475
|
+
* @throws {RequiredError}
|
|
14476
|
+
* @memberof SumUpManagerApi
|
|
14477
|
+
*/
|
|
14478
|
+
disconnectSumup(requestParameters, options) {
|
|
14479
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14480
|
+
}
|
|
14481
|
+
/**
|
|
14482
|
+
* Start SumUp OAuth connection for a club.
|
|
14483
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
14484
|
+
* @param {*} [options] Override http request option.
|
|
14485
|
+
* @throws {RequiredError}
|
|
14486
|
+
* @memberof SumUpManagerApi
|
|
14487
|
+
*/
|
|
14488
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
14489
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14490
|
+
}
|
|
14491
|
+
/**
|
|
14492
|
+
* Retrieve a SumUp reader.
|
|
14493
|
+
* @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
|
|
14494
|
+
* @param {*} [options] Override http request option.
|
|
14495
|
+
* @throws {RequiredError}
|
|
14496
|
+
* @memberof SumUpManagerApi
|
|
14497
|
+
*/
|
|
14498
|
+
getSumupReader(requestParameters, options) {
|
|
14499
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
14500
|
+
}
|
|
14501
|
+
/**
|
|
14502
|
+
* Get SumUp reader status.
|
|
14503
|
+
* @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
|
|
14504
|
+
* @param {*} [options] Override http request option.
|
|
14505
|
+
* @throws {RequiredError}
|
|
14506
|
+
* @memberof SumUpManagerApi
|
|
14507
|
+
*/
|
|
14508
|
+
getSumupReaderStatus(requestParameters, options) {
|
|
14509
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
14510
|
+
}
|
|
14511
|
+
/**
|
|
14512
|
+
* Get SumUp connection status for a club.
|
|
14513
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
14514
|
+
* @param {*} [options] Override http request option.
|
|
14515
|
+
* @throws {RequiredError}
|
|
14516
|
+
* @memberof SumUpManagerApi
|
|
14517
|
+
*/
|
|
14518
|
+
getSumupStatus(requestParameters, options) {
|
|
14519
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14520
|
+
}
|
|
14521
|
+
/**
|
|
14522
|
+
* List SumUp readers for a club.
|
|
14523
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
14524
|
+
* @param {*} [options] Override http request option.
|
|
14525
|
+
* @throws {RequiredError}
|
|
14526
|
+
* @memberof SumUpManagerApi
|
|
14527
|
+
*/
|
|
14528
|
+
listSumupReaders(requestParameters, options) {
|
|
14529
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14530
|
+
}
|
|
14531
|
+
/**
|
|
14532
|
+
* Pair a SumUp reader with a club.
|
|
14533
|
+
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
14534
|
+
* @param {*} [options] Override http request option.
|
|
14535
|
+
* @throws {RequiredError}
|
|
14536
|
+
* @memberof SumUpManagerApi
|
|
14537
|
+
*/
|
|
14538
|
+
pairSumupReader(requestParameters, options) {
|
|
14539
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14540
|
+
}
|
|
14541
|
+
/**
|
|
14542
|
+
* Select a SumUp reader for a club.
|
|
14543
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
14544
|
+
* @param {*} [options] Override http request option.
|
|
14545
|
+
* @throws {RequiredError}
|
|
14546
|
+
* @memberof SumUpManagerApi
|
|
14547
|
+
*/
|
|
14548
|
+
selectSumupReader(requestParameters, options) {
|
|
14549
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
14550
|
+
}
|
|
14551
|
+
/**
|
|
14552
|
+
* Update a SumUp reader.
|
|
14553
|
+
* @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
|
|
14554
|
+
* @param {*} [options] Override http request option.
|
|
14555
|
+
* @throws {RequiredError}
|
|
14556
|
+
* @memberof SumUpManagerApi
|
|
14557
|
+
*/
|
|
14558
|
+
updateSumupReader(requestParameters, options) {
|
|
14559
|
+
return (0, exports.SumUpManagerApiFp)(this.configuration).updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14560
|
+
}
|
|
14561
|
+
}
|
|
14562
|
+
exports.SumUpManagerApi = SumUpManagerApi;
|
|
13361
14563
|
/**
|
|
13362
14564
|
* UserApi - axios parameter creator
|
|
13363
14565
|
* @export
|