@gewis/sudosos-client 0.0.0-develop.b8bab32 → 0.0.0-develop.bb0eaaa
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/README.md +24 -18
- package/dist/api.d.ts +762 -243
- package/dist/api.js +862 -362
- 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 +19918 -0
- package/dist/esm/api.js +16762 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +59 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +133 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/package.json +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +10 -9
package/dist/api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* sudosos-
|
|
5
|
+
* sudosos-backend
|
|
6
6
|
* SudoSOS
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 0.1.0
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.WriteoffsApi = exports.WriteoffsApiFactory = exports.WriteoffsApiFp = exports.WriteoffsApiAxiosParamCreator = exports.VouchergroupsApi = exports.VouchergroupsApiFactory = exports.VouchergroupsApiFp = exports.VouchergroupsApiAxiosParamCreator = exports.VatGroupsApi = exports.VatGroupsApiFactory = exports.VatGroupsApiFp = exports.VatGroupsApiAxiosParamCreator = exports.GetUsersSalesReportPdfFileTypeEnum = exports.GetUsersPurchaseReportPdfFileTypeEnum = exports.GetUsersPaymentRequestsStatusEnum = exports.GetAllUsersTypeEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserNotificationPreferencesApi = exports.UserNotificationPreferencesApiFactory = exports.UserNotificationPreferencesApiFp = exports.UserNotificationPreferencesApiAxiosParamCreator = exports.TransfersApi = exports.TransfersApiFactory = exports.TransfersApiFp = exports.TransfersApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TransactionSummariesApi = exports.TransactionSummariesApiFactory = exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = void 0;
|
|
16
|
+
exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.InactiveAdministrativeCostsApi = exports.InactiveAdministrativeCostsApiFactory = exports.InactiveAdministrativeCostsApiFp = exports.InactiveAdministrativeCostsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.GetFineReportPdfFileTypeEnum = exports.DebtorsApi = exports.DebtorsApiFactory = exports.DebtorsApiFp = exports.DebtorsApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.BannersApi = exports.BannersApiFactory = exports.BannersApiFp = exports.BannersApiAxiosParamCreator = exports.GetAllBalanceOrderDirectionEnum = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuthenticateApi = exports.AuthenticateApiFactory = exports.AuthenticateApiFp = exports.AuthenticateApiAxiosParamCreator = exports.UserType = exports.UserSettingsResponseLanguageEnum = exports.UpdateInvoiceRequestStateEnum = exports.TermsOfServiceStatus = exports.QRStatusResponseStatusEnum = exports.PublicPaymentRequestResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = exports.BasePaymentRequestResponseStatusEnum = void 0;
|
|
17
|
+
exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.StripeApi = exports.StripeApiFactory = exports.StripeApiFp = exports.StripeApiAxiosParamCreator = exports.ServerSettingsApi = exports.ServerSettingsApiFactory = exports.ServerSettingsApiFp = exports.ServerSettingsApiAxiosParamCreator = exports.SellerPayoutsApi = exports.SellerPayoutsApiFactory = exports.SellerPayoutsApiFp = exports.SellerPayoutsApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.RbacApi = exports.RbacApiFactory = exports.RbacApiFp = exports.RbacApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductCategoriesApi = exports.ProductCategoriesApiFactory = exports.ProductCategoriesApiFp = exports.ProductCategoriesApiAxiosParamCreator = exports.PointofsaleApi = exports.PointofsaleApiFactory = exports.PointofsaleApiFp = exports.PointofsaleApiAxiosParamCreator = exports.PayoutRequestsApi = exports.PayoutRequestsApiFactory = exports.PayoutRequestsApiFp = exports.PayoutRequestsApiAxiosParamCreator = exports.PaymentRequestsPublicApi = exports.PaymentRequestsPublicApiFactory = exports.PaymentRequestsPublicApiFp = exports.PaymentRequestsPublicApiAxiosParamCreator = exports.GetAllPaymentRequestsStatusEnum = exports.PaymentRequestsApi = exports.PaymentRequestsApiFactory = exports.PaymentRequestsApiFp = exports.PaymentRequestsApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = void 0;
|
|
18
|
+
exports.WriteoffsApi = exports.WriteoffsApiFactory = exports.WriteoffsApiFp = exports.WriteoffsApiAxiosParamCreator = exports.VouchergroupsApi = exports.VouchergroupsApiFactory = exports.VouchergroupsApiFp = exports.VouchergroupsApiAxiosParamCreator = exports.VatGroupsApi = exports.VatGroupsApiFactory = exports.VatGroupsApiFp = exports.VatGroupsApiAxiosParamCreator = exports.GetUsersSalesReportPdfFileTypeEnum = exports.GetUsersPurchaseReportPdfFileTypeEnum = exports.GetUsersPaymentRequestsStatusEnum = exports.GetAllUsersTypeEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserNotificationPreferencesApi = exports.UserNotificationPreferencesApiFactory = exports.UserNotificationPreferencesApiFp = exports.UserNotificationPreferencesApiAxiosParamCreator = exports.TransfersApi = exports.TransfersApiFactory = exports.TransfersApiFp = exports.TransfersApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TransactionSummariesApi = exports.TransactionSummariesApiFactory = exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.TerminalPaymentsApi = exports.TerminalPaymentsApiFactory = exports.TerminalPaymentsApiFp = exports.TerminalPaymentsApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = exports.SyncApi = void 0;
|
|
19
19
|
const axios_1 = require("axios");
|
|
20
20
|
// Some imports not used depending on template conditions
|
|
21
21
|
// @ts-ignore
|
|
@@ -84,6 +84,16 @@ exports.QRStatusResponseStatusEnum = {
|
|
|
84
84
|
Expired: 'EXPIRED',
|
|
85
85
|
Cancelled: 'CANCELLED'
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* The terms of service status of a user
|
|
89
|
+
* @export
|
|
90
|
+
* @enum {string}
|
|
91
|
+
*/
|
|
92
|
+
exports.TermsOfServiceStatus = {
|
|
93
|
+
Accepted: 'ACCEPTED',
|
|
94
|
+
NotAccepted: 'NOT_ACCEPTED',
|
|
95
|
+
NotRequired: 'NOT_REQUIRED'
|
|
96
|
+
};
|
|
87
97
|
exports.UpdateInvoiceRequestStateEnum = {
|
|
88
98
|
Created: 'CREATED',
|
|
89
99
|
Sent: 'SENT',
|
|
@@ -212,6 +222,39 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
212
222
|
options: localVarRequestOptions,
|
|
213
223
|
};
|
|
214
224
|
},
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary EAN authentication that requires POS user authentication
|
|
228
|
+
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
eanAuthentication: async (authenticationEanRequest, options = {}) => {
|
|
233
|
+
// verify required parameter 'authenticationEanRequest' is not null or undefined
|
|
234
|
+
(0, common_1.assertParamExists)('eanAuthentication', 'authenticationEanRequest', authenticationEanRequest);
|
|
235
|
+
const localVarPath = `/authentication/ean`;
|
|
236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
238
|
+
let baseOptions;
|
|
239
|
+
if (configuration) {
|
|
240
|
+
baseOptions = configuration.baseOptions;
|
|
241
|
+
}
|
|
242
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
243
|
+
const localVarHeaderParameter = {};
|
|
244
|
+
const localVarQueryParameter = {};
|
|
245
|
+
// authentication JWT required
|
|
246
|
+
// http bearer authentication required
|
|
247
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
248
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
249
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
252
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationEanRequest, localVarRequestOptions, configuration);
|
|
253
|
+
return {
|
|
254
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
215
258
|
/**
|
|
216
259
|
*
|
|
217
260
|
* @summary Generate a QR code for authentication
|
|
@@ -468,15 +511,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
468
511
|
},
|
|
469
512
|
/**
|
|
470
513
|
*
|
|
471
|
-
* @summary
|
|
472
|
-
* @param {
|
|
514
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
515
|
+
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
|
|
473
516
|
* @param {*} [options] Override http request option.
|
|
474
517
|
* @throws {RequiredError}
|
|
475
518
|
*/
|
|
476
|
-
|
|
477
|
-
// verify required parameter '
|
|
478
|
-
(0, common_1.assertParamExists)('
|
|
479
|
-
const localVarPath = `/authentication/
|
|
519
|
+
memberPINAuthentication: async (memberAuthenticationPinRequest, options = {}) => {
|
|
520
|
+
// verify required parameter 'memberAuthenticationPinRequest' is not null or undefined
|
|
521
|
+
(0, common_1.assertParamExists)('memberPINAuthentication', 'memberAuthenticationPinRequest', memberAuthenticationPinRequest);
|
|
522
|
+
const localVarPath = `/authentication/member/pin`;
|
|
480
523
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
524
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
482
525
|
let baseOptions;
|
|
@@ -486,39 +529,14 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
486
529
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
487
530
|
const localVarHeaderParameter = {};
|
|
488
531
|
const localVarQueryParameter = {};
|
|
489
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
490
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
491
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
492
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
493
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationMockRequest, localVarRequestOptions, configuration);
|
|
494
|
-
return {
|
|
495
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
496
|
-
options: localVarRequestOptions,
|
|
497
|
-
};
|
|
498
|
-
},
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
502
|
-
* @param {*} [options] Override http request option.
|
|
503
|
-
* @throws {RequiredError}
|
|
504
|
-
*/
|
|
505
|
-
refreshToken: async (options = {}) => {
|
|
506
|
-
const localVarPath = `/authentication/refreshToken`;
|
|
507
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
508
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
509
|
-
let baseOptions;
|
|
510
|
-
if (configuration) {
|
|
511
|
-
baseOptions = configuration.baseOptions;
|
|
512
|
-
}
|
|
513
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
514
|
-
const localVarHeaderParameter = {};
|
|
515
|
-
const localVarQueryParameter = {};
|
|
516
532
|
// authentication JWT required
|
|
517
533
|
// http bearer authentication required
|
|
518
534
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
535
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
519
536
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
520
537
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
521
538
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
539
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationPinRequest, localVarRequestOptions, configuration);
|
|
522
540
|
return {
|
|
523
541
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
524
542
|
options: localVarRequestOptions,
|
|
@@ -526,15 +544,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
526
544
|
},
|
|
527
545
|
/**
|
|
528
546
|
*
|
|
529
|
-
* @summary
|
|
530
|
-
* @param {
|
|
547
|
+
* @summary Mock login and hand out token.
|
|
548
|
+
* @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
|
|
531
549
|
* @param {*} [options] Override http request option.
|
|
532
550
|
* @throws {RequiredError}
|
|
533
551
|
*/
|
|
534
|
-
|
|
535
|
-
// verify required parameter '
|
|
536
|
-
(0, common_1.assertParamExists)('
|
|
537
|
-
const localVarPath = `/authentication/
|
|
552
|
+
mockAuthentication: async (authenticationMockRequest, options = {}) => {
|
|
553
|
+
// verify required parameter 'authenticationMockRequest' is not null or undefined
|
|
554
|
+
(0, common_1.assertParamExists)('mockAuthentication', 'authenticationMockRequest', authenticationMockRequest);
|
|
555
|
+
const localVarPath = `/authentication/mock`;
|
|
538
556
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
539
557
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
540
558
|
let baseOptions;
|
|
@@ -548,7 +566,7 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
548
566
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
549
567
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
550
568
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
551
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
569
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationMockRequest, localVarRequestOptions, configuration);
|
|
552
570
|
return {
|
|
553
571
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
554
572
|
options: localVarRequestOptions,
|
|
@@ -556,29 +574,32 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
556
574
|
},
|
|
557
575
|
/**
|
|
558
576
|
*
|
|
559
|
-
* @summary
|
|
560
|
-
* @param {
|
|
577
|
+
* @summary NFC authentication that requires POS user authentication
|
|
578
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
561
579
|
* @param {*} [options] Override http request option.
|
|
562
580
|
* @throws {RequiredError}
|
|
563
581
|
*/
|
|
564
|
-
|
|
565
|
-
// verify required parameter '
|
|
566
|
-
(0, common_1.assertParamExists)('
|
|
567
|
-
const localVarPath = `/authentication/
|
|
582
|
+
nfcAuthentication: async (authenticationNfcRequest, options = {}) => {
|
|
583
|
+
// verify required parameter 'authenticationNfcRequest' is not null or undefined
|
|
584
|
+
(0, common_1.assertParamExists)('nfcAuthentication', 'authenticationNfcRequest', authenticationNfcRequest);
|
|
585
|
+
const localVarPath = `/authentication/nfc`;
|
|
568
586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
569
587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
570
588
|
let baseOptions;
|
|
571
589
|
if (configuration) {
|
|
572
590
|
baseOptions = configuration.baseOptions;
|
|
573
591
|
}
|
|
574
|
-
const localVarRequestOptions = { method: '
|
|
592
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
575
593
|
const localVarHeaderParameter = {};
|
|
576
594
|
const localVarQueryParameter = {};
|
|
595
|
+
// authentication JWT required
|
|
596
|
+
// http bearer authentication required
|
|
597
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
577
598
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
578
599
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
579
600
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
580
601
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
581
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
602
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationNfcRequest, localVarRequestOptions, configuration);
|
|
582
603
|
return {
|
|
583
604
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
584
605
|
options: localVarRequestOptions,
|
|
@@ -586,15 +607,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
586
607
|
},
|
|
587
608
|
/**
|
|
588
609
|
*
|
|
589
|
-
* @summary
|
|
590
|
-
* @param {
|
|
610
|
+
* @summary PIN authentication that requires POS user authentication
|
|
611
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
591
612
|
* @param {*} [options] Override http request option.
|
|
592
613
|
* @throws {RequiredError}
|
|
593
614
|
*/
|
|
594
|
-
|
|
595
|
-
// verify required parameter '
|
|
596
|
-
(0, common_1.assertParamExists)('
|
|
597
|
-
const localVarPath = `/authentication/
|
|
615
|
+
pinAuthentication: async (authenticationPinRequest, options = {}) => {
|
|
616
|
+
// verify required parameter 'authenticationPinRequest' is not null or undefined
|
|
617
|
+
(0, common_1.assertParamExists)('pinAuthentication', 'authenticationPinRequest', authenticationPinRequest);
|
|
618
|
+
const localVarPath = `/authentication/pin`;
|
|
598
619
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
599
620
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
600
621
|
let baseOptions;
|
|
@@ -611,7 +632,7 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
611
632
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
612
633
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
613
634
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
614
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
635
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationPinRequest, localVarRequestOptions, configuration);
|
|
615
636
|
return {
|
|
616
637
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
617
638
|
options: localVarRequestOptions,
|
|
@@ -619,32 +640,27 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
619
640
|
},
|
|
620
641
|
/**
|
|
621
642
|
*
|
|
622
|
-
* @summary
|
|
623
|
-
* @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
|
|
643
|
+
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
624
644
|
* @param {*} [options] Override http request option.
|
|
625
645
|
* @throws {RequiredError}
|
|
626
646
|
*/
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
(0, common_1.assertParamExists)('secureMemberPINAuthentication', 'memberAuthenticationSecurePinRequest', memberAuthenticationSecurePinRequest);
|
|
630
|
-
const localVarPath = `/authentication/member/pin-secure`;
|
|
647
|
+
refreshToken: async (options = {}) => {
|
|
648
|
+
const localVarPath = `/authentication/refreshToken`;
|
|
631
649
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
632
650
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
633
651
|
let baseOptions;
|
|
634
652
|
if (configuration) {
|
|
635
653
|
baseOptions = configuration.baseOptions;
|
|
636
654
|
}
|
|
637
|
-
const localVarRequestOptions = { method: '
|
|
655
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
638
656
|
const localVarHeaderParameter = {};
|
|
639
657
|
const localVarQueryParameter = {};
|
|
640
658
|
// authentication JWT required
|
|
641
659
|
// http bearer authentication required
|
|
642
660
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
643
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
644
661
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
645
662
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
646
663
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
647
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationSecurePinRequest, localVarRequestOptions, configuration);
|
|
648
664
|
return {
|
|
649
665
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
650
666
|
options: localVarRequestOptions,
|
|
@@ -652,15 +668,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
652
668
|
},
|
|
653
669
|
/**
|
|
654
670
|
*
|
|
655
|
-
* @summary
|
|
656
|
-
* @param {
|
|
671
|
+
* @summary Creates a reset token for the local authentication
|
|
672
|
+
* @param {ResetLocalRequest} resetLocalRequest The reset info.
|
|
657
673
|
* @param {*} [options] Override http request option.
|
|
658
674
|
* @throws {RequiredError}
|
|
659
675
|
*/
|
|
660
|
-
|
|
661
|
-
// verify required parameter '
|
|
662
|
-
(0, common_1.assertParamExists)('
|
|
663
|
-
const localVarPath = `/authentication/
|
|
676
|
+
resetLocal: async (resetLocalRequest, options = {}) => {
|
|
677
|
+
// verify required parameter 'resetLocalRequest' is not null or undefined
|
|
678
|
+
(0, common_1.assertParamExists)('resetLocal', 'resetLocalRequest', resetLocalRequest);
|
|
679
|
+
const localVarPath = `/authentication/local/reset`;
|
|
664
680
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
665
681
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
666
682
|
let baseOptions;
|
|
@@ -670,14 +686,11 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
670
686
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
671
687
|
const localVarHeaderParameter = {};
|
|
672
688
|
const localVarQueryParameter = {};
|
|
673
|
-
// authentication JWT required
|
|
674
|
-
// http bearer authentication required
|
|
675
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
676
689
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
677
690
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
678
691
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
679
692
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
680
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
693
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetLocalRequest, localVarRequestOptions, configuration);
|
|
681
694
|
return {
|
|
682
695
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
683
696
|
options: localVarRequestOptions,
|
|
@@ -685,32 +698,29 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
685
698
|
},
|
|
686
699
|
/**
|
|
687
700
|
*
|
|
688
|
-
* @summary
|
|
689
|
-
* @param {
|
|
701
|
+
* @summary Reset local authentication using the provided token
|
|
702
|
+
* @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
|
|
690
703
|
* @param {*} [options] Override http request option.
|
|
691
704
|
* @throws {RequiredError}
|
|
692
705
|
*/
|
|
693
|
-
|
|
694
|
-
// verify required parameter '
|
|
695
|
-
(0, common_1.assertParamExists)('
|
|
696
|
-
const localVarPath = `/authentication/
|
|
706
|
+
resetLocalWithToken: async (authenticationResetTokenRequest, options = {}) => {
|
|
707
|
+
// verify required parameter 'authenticationResetTokenRequest' is not null or undefined
|
|
708
|
+
(0, common_1.assertParamExists)('resetLocalWithToken', 'authenticationResetTokenRequest', authenticationResetTokenRequest);
|
|
709
|
+
const localVarPath = `/authentication/local`;
|
|
697
710
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
698
711
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
699
712
|
let baseOptions;
|
|
700
713
|
if (configuration) {
|
|
701
714
|
baseOptions = configuration.baseOptions;
|
|
702
715
|
}
|
|
703
|
-
const localVarRequestOptions = { method: '
|
|
716
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
704
717
|
const localVarHeaderParameter = {};
|
|
705
718
|
const localVarQueryParameter = {};
|
|
706
|
-
// authentication JWT required
|
|
707
|
-
// http bearer authentication required
|
|
708
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
709
719
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
710
720
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
711
721
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
712
722
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
713
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
723
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationResetTokenRequest, localVarRequestOptions, configuration);
|
|
714
724
|
return {
|
|
715
725
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
716
726
|
options: localVarRequestOptions,
|
|
@@ -765,6 +775,19 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
765
775
|
const operationBasePath = base_1.operationServerMap['AuthenticateApi.confirmQRCode']?.[index]?.url;
|
|
766
776
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
767
777
|
},
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* @summary EAN authentication that requires POS user authentication
|
|
781
|
+
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
async eanAuthentication(authenticationEanRequest, options) {
|
|
786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eanAuthentication(authenticationEanRequest, options);
|
|
787
|
+
const index = configuration?.serverIndex ?? 0;
|
|
788
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.eanAuthentication']?.[index]?.url;
|
|
789
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
790
|
+
},
|
|
768
791
|
/**
|
|
769
792
|
*
|
|
770
793
|
* @summary Generate a QR code for authentication
|
|
@@ -881,105 +904,92 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
881
904
|
},
|
|
882
905
|
/**
|
|
883
906
|
*
|
|
884
|
-
* @summary
|
|
885
|
-
* @param {
|
|
886
|
-
* @param {*} [options] Override http request option.
|
|
887
|
-
* @throws {RequiredError}
|
|
888
|
-
*/
|
|
889
|
-
async mockAuthentication(authenticationMockRequest, options) {
|
|
890
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.mockAuthentication(authenticationMockRequest, options);
|
|
891
|
-
const index = configuration?.serverIndex ?? 0;
|
|
892
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.mockAuthentication']?.[index]?.url;
|
|
893
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
894
|
-
},
|
|
895
|
-
/**
|
|
896
|
-
*
|
|
897
|
-
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
907
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
908
|
+
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
|
|
898
909
|
* @param {*} [options] Override http request option.
|
|
899
910
|
* @throws {RequiredError}
|
|
900
911
|
*/
|
|
901
|
-
async
|
|
902
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
912
|
+
async memberPINAuthentication(memberAuthenticationPinRequest, options) {
|
|
913
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.memberPINAuthentication(memberAuthenticationPinRequest, options);
|
|
903
914
|
const index = configuration?.serverIndex ?? 0;
|
|
904
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
915
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPINAuthentication']?.[index]?.url;
|
|
905
916
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
906
917
|
},
|
|
907
918
|
/**
|
|
908
919
|
*
|
|
909
|
-
* @summary
|
|
910
|
-
* @param {
|
|
920
|
+
* @summary Mock login and hand out token.
|
|
921
|
+
* @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
|
|
911
922
|
* @param {*} [options] Override http request option.
|
|
912
923
|
* @throws {RequiredError}
|
|
913
924
|
*/
|
|
914
|
-
async
|
|
915
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
925
|
+
async mockAuthentication(authenticationMockRequest, options) {
|
|
926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mockAuthentication(authenticationMockRequest, options);
|
|
916
927
|
const index = configuration?.serverIndex ?? 0;
|
|
917
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
928
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.mockAuthentication']?.[index]?.url;
|
|
918
929
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
919
930
|
},
|
|
920
931
|
/**
|
|
921
932
|
*
|
|
922
|
-
* @summary
|
|
923
|
-
* @param {
|
|
933
|
+
* @summary NFC authentication that requires POS user authentication
|
|
934
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
924
935
|
* @param {*} [options] Override http request option.
|
|
925
936
|
* @throws {RequiredError}
|
|
926
937
|
*/
|
|
927
|
-
async
|
|
928
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
938
|
+
async nfcAuthentication(authenticationNfcRequest, options) {
|
|
939
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.nfcAuthentication(authenticationNfcRequest, options);
|
|
929
940
|
const index = configuration?.serverIndex ?? 0;
|
|
930
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
941
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.nfcAuthentication']?.[index]?.url;
|
|
931
942
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
932
943
|
},
|
|
933
944
|
/**
|
|
934
945
|
*
|
|
935
|
-
* @summary
|
|
936
|
-
* @param {
|
|
946
|
+
* @summary PIN authentication that requires POS user authentication
|
|
947
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
937
948
|
* @param {*} [options] Override http request option.
|
|
938
949
|
* @throws {RequiredError}
|
|
939
950
|
*/
|
|
940
|
-
async
|
|
941
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
951
|
+
async pinAuthentication(authenticationPinRequest, options) {
|
|
952
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pinAuthentication(authenticationPinRequest, options);
|
|
942
953
|
const index = configuration?.serverIndex ?? 0;
|
|
943
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
954
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.pinAuthentication']?.[index]?.url;
|
|
944
955
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
945
956
|
},
|
|
946
957
|
/**
|
|
947
958
|
*
|
|
948
|
-
* @summary
|
|
949
|
-
* @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
|
|
959
|
+
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
950
960
|
* @param {*} [options] Override http request option.
|
|
951
961
|
* @throws {RequiredError}
|
|
952
962
|
*/
|
|
953
|
-
async
|
|
954
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
963
|
+
async refreshToken(options) {
|
|
964
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(options);
|
|
955
965
|
const index = configuration?.serverIndex ?? 0;
|
|
956
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
966
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.refreshToken']?.[index]?.url;
|
|
957
967
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
958
968
|
},
|
|
959
969
|
/**
|
|
960
970
|
*
|
|
961
|
-
* @summary
|
|
962
|
-
* @param {
|
|
971
|
+
* @summary Creates a reset token for the local authentication
|
|
972
|
+
* @param {ResetLocalRequest} resetLocalRequest The reset info.
|
|
963
973
|
* @param {*} [options] Override http request option.
|
|
964
974
|
* @throws {RequiredError}
|
|
965
975
|
*/
|
|
966
|
-
async
|
|
967
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
976
|
+
async resetLocal(resetLocalRequest, options) {
|
|
977
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocal(resetLocalRequest, options);
|
|
968
978
|
const index = configuration?.serverIndex ?? 0;
|
|
969
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
979
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocal']?.[index]?.url;
|
|
970
980
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
971
981
|
},
|
|
972
982
|
/**
|
|
973
983
|
*
|
|
974
|
-
* @summary
|
|
975
|
-
* @param {
|
|
984
|
+
* @summary Reset local authentication using the provided token
|
|
985
|
+
* @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
|
|
976
986
|
* @param {*} [options] Override http request option.
|
|
977
987
|
* @throws {RequiredError}
|
|
978
988
|
*/
|
|
979
|
-
async
|
|
980
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
989
|
+
async resetLocalWithToken(authenticationResetTokenRequest, options) {
|
|
990
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocalWithToken(authenticationResetTokenRequest, options);
|
|
981
991
|
const index = configuration?.serverIndex ?? 0;
|
|
982
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
992
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocalWithToken']?.[index]?.url;
|
|
983
993
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
984
994
|
},
|
|
985
995
|
};
|
|
@@ -1022,6 +1032,16 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1022
1032
|
confirmQRCode(requestParameters, options) {
|
|
1023
1033
|
return localVarFp.confirmQRCode(requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1024
1034
|
},
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @summary EAN authentication that requires POS user authentication
|
|
1038
|
+
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
eanAuthentication(requestParameters, options) {
|
|
1043
|
+
return localVarFp.eanAuthentication(requestParameters.authenticationEanRequest, options).then((request) => request(axios, basePath));
|
|
1044
|
+
},
|
|
1025
1045
|
/**
|
|
1026
1046
|
*
|
|
1027
1047
|
* @summary Generate a QR code for authentication
|
|
@@ -1111,82 +1131,72 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1111
1131
|
},
|
|
1112
1132
|
/**
|
|
1113
1133
|
*
|
|
1114
|
-
* @summary
|
|
1115
|
-
* @param {
|
|
1116
|
-
* @param {*} [options] Override http request option.
|
|
1117
|
-
* @throws {RequiredError}
|
|
1118
|
-
*/
|
|
1119
|
-
mockAuthentication(requestParameters, options) {
|
|
1120
|
-
return localVarFp.mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(axios, basePath));
|
|
1121
|
-
},
|
|
1122
|
-
/**
|
|
1123
|
-
*
|
|
1124
|
-
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
1134
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
1135
|
+
* @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1125
1136
|
* @param {*} [options] Override http request option.
|
|
1126
1137
|
* @throws {RequiredError}
|
|
1127
1138
|
*/
|
|
1128
|
-
|
|
1129
|
-
return localVarFp.
|
|
1139
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1140
|
+
return localVarFp.memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1130
1141
|
},
|
|
1131
1142
|
/**
|
|
1132
1143
|
*
|
|
1133
|
-
* @summary
|
|
1134
|
-
* @param {
|
|
1144
|
+
* @summary Mock login and hand out token.
|
|
1145
|
+
* @param {AuthenticateApiMockAuthenticationRequest} requestParameters Request parameters.
|
|
1135
1146
|
* @param {*} [options] Override http request option.
|
|
1136
1147
|
* @throws {RequiredError}
|
|
1137
1148
|
*/
|
|
1138
|
-
|
|
1139
|
-
return localVarFp.
|
|
1149
|
+
mockAuthentication(requestParameters, options) {
|
|
1150
|
+
return localVarFp.mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(axios, basePath));
|
|
1140
1151
|
},
|
|
1141
1152
|
/**
|
|
1142
1153
|
*
|
|
1143
|
-
* @summary
|
|
1144
|
-
* @param {
|
|
1154
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1155
|
+
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1145
1156
|
* @param {*} [options] Override http request option.
|
|
1146
1157
|
* @throws {RequiredError}
|
|
1147
1158
|
*/
|
|
1148
|
-
|
|
1149
|
-
return localVarFp.
|
|
1159
|
+
nfcAuthentication(requestParameters, options) {
|
|
1160
|
+
return localVarFp.nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(axios, basePath));
|
|
1150
1161
|
},
|
|
1151
1162
|
/**
|
|
1152
1163
|
*
|
|
1153
|
-
* @summary
|
|
1154
|
-
* @param {
|
|
1164
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1165
|
+
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1155
1166
|
* @param {*} [options] Override http request option.
|
|
1156
1167
|
* @throws {RequiredError}
|
|
1157
1168
|
*/
|
|
1158
|
-
|
|
1159
|
-
return localVarFp.
|
|
1169
|
+
pinAuthentication(requestParameters, options) {
|
|
1170
|
+
return localVarFp.pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1160
1171
|
},
|
|
1161
1172
|
/**
|
|
1162
1173
|
*
|
|
1163
|
-
* @summary
|
|
1164
|
-
* @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1174
|
+
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
1165
1175
|
* @param {*} [options] Override http request option.
|
|
1166
1176
|
* @throws {RequiredError}
|
|
1167
1177
|
*/
|
|
1168
|
-
|
|
1169
|
-
return localVarFp.
|
|
1178
|
+
refreshToken(options) {
|
|
1179
|
+
return localVarFp.refreshToken(options).then((request) => request(axios, basePath));
|
|
1170
1180
|
},
|
|
1171
1181
|
/**
|
|
1172
1182
|
*
|
|
1173
|
-
* @summary
|
|
1174
|
-
* @param {
|
|
1183
|
+
* @summary Creates a reset token for the local authentication
|
|
1184
|
+
* @param {AuthenticateApiResetLocalRequest} requestParameters Request parameters.
|
|
1175
1185
|
* @param {*} [options] Override http request option.
|
|
1176
1186
|
* @throws {RequiredError}
|
|
1177
1187
|
*/
|
|
1178
|
-
|
|
1179
|
-
return localVarFp.
|
|
1188
|
+
resetLocal(requestParameters, options) {
|
|
1189
|
+
return localVarFp.resetLocal(requestParameters.resetLocalRequest, options).then((request) => request(axios, basePath));
|
|
1180
1190
|
},
|
|
1181
1191
|
/**
|
|
1182
1192
|
*
|
|
1183
|
-
* @summary
|
|
1184
|
-
* @param {
|
|
1193
|
+
* @summary Reset local authentication using the provided token
|
|
1194
|
+
* @param {AuthenticateApiResetLocalWithTokenRequest} requestParameters Request parameters.
|
|
1185
1195
|
* @param {*} [options] Override http request option.
|
|
1186
1196
|
* @throws {RequiredError}
|
|
1187
1197
|
*/
|
|
1188
|
-
|
|
1189
|
-
return localVarFp.
|
|
1198
|
+
resetLocalWithToken(requestParameters, options) {
|
|
1199
|
+
return localVarFp.resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(axios, basePath));
|
|
1190
1200
|
},
|
|
1191
1201
|
};
|
|
1192
1202
|
};
|
|
@@ -1231,6 +1241,17 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1231
1241
|
confirmQRCode(requestParameters, options) {
|
|
1232
1242
|
return (0, exports.AuthenticateApiFp)(this.configuration).confirmQRCode(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1233
1243
|
}
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @summary EAN authentication that requires POS user authentication
|
|
1247
|
+
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
* @memberof AuthenticateApi
|
|
1251
|
+
*/
|
|
1252
|
+
eanAuthentication(requestParameters, options) {
|
|
1253
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).eanAuthentication(requestParameters.authenticationEanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1254
|
+
}
|
|
1234
1255
|
/**
|
|
1235
1256
|
*
|
|
1236
1257
|
* @summary Generate a QR code for authentication
|
|
@@ -1329,90 +1350,79 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1329
1350
|
}
|
|
1330
1351
|
/**
|
|
1331
1352
|
*
|
|
1332
|
-
* @summary
|
|
1333
|
-
* @param {
|
|
1353
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
1354
|
+
* @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1334
1355
|
* @param {*} [options] Override http request option.
|
|
1335
1356
|
* @throws {RequiredError}
|
|
1336
1357
|
* @memberof AuthenticateApi
|
|
1337
1358
|
*/
|
|
1338
|
-
|
|
1339
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1359
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1360
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1340
1361
|
}
|
|
1341
1362
|
/**
|
|
1342
1363
|
*
|
|
1343
|
-
* @summary
|
|
1364
|
+
* @summary Mock login and hand out token.
|
|
1365
|
+
* @param {AuthenticateApiMockAuthenticationRequest} requestParameters Request parameters.
|
|
1344
1366
|
* @param {*} [options] Override http request option.
|
|
1345
1367
|
* @throws {RequiredError}
|
|
1346
1368
|
* @memberof AuthenticateApi
|
|
1347
1369
|
*/
|
|
1348
|
-
|
|
1349
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1370
|
+
mockAuthentication(requestParameters, options) {
|
|
1371
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1350
1372
|
}
|
|
1351
1373
|
/**
|
|
1352
1374
|
*
|
|
1353
|
-
* @summary
|
|
1354
|
-
* @param {
|
|
1375
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1376
|
+
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1355
1377
|
* @param {*} [options] Override http request option.
|
|
1356
1378
|
* @throws {RequiredError}
|
|
1357
1379
|
* @memberof AuthenticateApi
|
|
1358
1380
|
*/
|
|
1359
|
-
|
|
1360
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1381
|
+
nfcAuthentication(requestParameters, options) {
|
|
1382
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1361
1383
|
}
|
|
1362
1384
|
/**
|
|
1363
1385
|
*
|
|
1364
|
-
* @summary
|
|
1365
|
-
* @param {
|
|
1386
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1387
|
+
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1366
1388
|
* @param {*} [options] Override http request option.
|
|
1367
1389
|
* @throws {RequiredError}
|
|
1368
1390
|
* @memberof AuthenticateApi
|
|
1369
1391
|
*/
|
|
1370
|
-
|
|
1371
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1392
|
+
pinAuthentication(requestParameters, options) {
|
|
1393
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1372
1394
|
}
|
|
1373
1395
|
/**
|
|
1374
1396
|
*
|
|
1375
|
-
* @summary
|
|
1376
|
-
* @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
|
|
1397
|
+
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
1377
1398
|
* @param {*} [options] Override http request option.
|
|
1378
1399
|
* @throws {RequiredError}
|
|
1379
1400
|
* @memberof AuthenticateApi
|
|
1380
1401
|
*/
|
|
1381
|
-
|
|
1382
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1402
|
+
refreshToken(options) {
|
|
1403
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).refreshToken(options).then((request) => request(this.axios, this.basePath));
|
|
1383
1404
|
}
|
|
1384
1405
|
/**
|
|
1385
1406
|
*
|
|
1386
|
-
* @summary
|
|
1387
|
-
* @param {
|
|
1407
|
+
* @summary Creates a reset token for the local authentication
|
|
1408
|
+
* @param {AuthenticateApiResetLocalRequest} requestParameters Request parameters.
|
|
1388
1409
|
* @param {*} [options] Override http request option.
|
|
1389
1410
|
* @throws {RequiredError}
|
|
1390
1411
|
* @memberof AuthenticateApi
|
|
1391
1412
|
*/
|
|
1392
|
-
|
|
1393
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1413
|
+
resetLocal(requestParameters, options) {
|
|
1414
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).resetLocal(requestParameters.resetLocalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1394
1415
|
}
|
|
1395
1416
|
/**
|
|
1396
1417
|
*
|
|
1397
|
-
* @summary
|
|
1398
|
-
* @param {
|
|
1418
|
+
* @summary Reset local authentication using the provided token
|
|
1419
|
+
* @param {AuthenticateApiResetLocalWithTokenRequest} requestParameters Request parameters.
|
|
1399
1420
|
* @param {*} [options] Override http request option.
|
|
1400
1421
|
* @throws {RequiredError}
|
|
1401
1422
|
* @memberof AuthenticateApi
|
|
1402
1423
|
*/
|
|
1403
|
-
|
|
1404
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1405
|
-
}
|
|
1406
|
-
/**
|
|
1407
|
-
*
|
|
1408
|
-
* @summary Secure PIN authentication that requires POS user authentication
|
|
1409
|
-
* @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
|
|
1410
|
-
* @param {*} [options] Override http request option.
|
|
1411
|
-
* @throws {RequiredError}
|
|
1412
|
-
* @memberof AuthenticateApi
|
|
1413
|
-
*/
|
|
1414
|
-
securePINAuthentication(requestParameters, options) {
|
|
1415
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1424
|
+
resetLocalWithToken(requestParameters, options) {
|
|
1425
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1416
1426
|
}
|
|
1417
1427
|
}
|
|
1418
1428
|
exports.AuthenticateApi = AuthenticateApi;
|
|
@@ -10336,11 +10346,431 @@ const StripeApiAxiosParamCreator = function (configuration) {
|
|
|
10336
10346
|
// authentication JWT required
|
|
10337
10347
|
// http bearer authentication required
|
|
10338
10348
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10339
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10349
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10350
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10351
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10352
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10353
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stripeRequest, localVarRequestOptions, configuration);
|
|
10354
|
+
return {
|
|
10355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10356
|
+
options: localVarRequestOptions,
|
|
10357
|
+
};
|
|
10358
|
+
},
|
|
10359
|
+
/**
|
|
10360
|
+
*
|
|
10361
|
+
* @summary Get the Stripe public key
|
|
10362
|
+
* @param {*} [options] Override http request option.
|
|
10363
|
+
* @throws {RequiredError}
|
|
10364
|
+
*/
|
|
10365
|
+
getStripePublicKey: async (options = {}) => {
|
|
10366
|
+
const localVarPath = `/stripe/public`;
|
|
10367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10368
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10369
|
+
let baseOptions;
|
|
10370
|
+
if (configuration) {
|
|
10371
|
+
baseOptions = configuration.baseOptions;
|
|
10372
|
+
}
|
|
10373
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10374
|
+
const localVarHeaderParameter = {};
|
|
10375
|
+
const localVarQueryParameter = {};
|
|
10376
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10378
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10379
|
+
return {
|
|
10380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10381
|
+
options: localVarRequestOptions,
|
|
10382
|
+
};
|
|
10383
|
+
},
|
|
10384
|
+
/**
|
|
10385
|
+
*
|
|
10386
|
+
* @summary Webhook for Stripe event updates
|
|
10387
|
+
* @param {*} [options] Override http request option.
|
|
10388
|
+
* @throws {RequiredError}
|
|
10389
|
+
*/
|
|
10390
|
+
webhook: async (options = {}) => {
|
|
10391
|
+
const localVarPath = `/stripe/webhook`;
|
|
10392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10393
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10394
|
+
let baseOptions;
|
|
10395
|
+
if (configuration) {
|
|
10396
|
+
baseOptions = configuration.baseOptions;
|
|
10397
|
+
}
|
|
10398
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10399
|
+
const localVarHeaderParameter = {};
|
|
10400
|
+
const localVarQueryParameter = {};
|
|
10401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10404
|
+
return {
|
|
10405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10406
|
+
options: localVarRequestOptions,
|
|
10407
|
+
};
|
|
10408
|
+
},
|
|
10409
|
+
};
|
|
10410
|
+
};
|
|
10411
|
+
exports.StripeApiAxiosParamCreator = StripeApiAxiosParamCreator;
|
|
10412
|
+
/**
|
|
10413
|
+
* StripeApi - functional programming interface
|
|
10414
|
+
* @export
|
|
10415
|
+
*/
|
|
10416
|
+
const StripeApiFp = function (configuration) {
|
|
10417
|
+
const localVarAxiosParamCreator = (0, exports.StripeApiAxiosParamCreator)(configuration);
|
|
10418
|
+
return {
|
|
10419
|
+
/**
|
|
10420
|
+
*
|
|
10421
|
+
* @summary Start the stripe deposit flow
|
|
10422
|
+
* @param {StripeRequest} stripeRequest The deposit that should be created
|
|
10423
|
+
* @param {*} [options] Override http request option.
|
|
10424
|
+
* @throws {RequiredError}
|
|
10425
|
+
*/
|
|
10426
|
+
async deposit(stripeRequest, options) {
|
|
10427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deposit(stripeRequest, options);
|
|
10428
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10429
|
+
const operationBasePath = base_1.operationServerMap['StripeApi.deposit']?.[index]?.url;
|
|
10430
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10431
|
+
},
|
|
10432
|
+
/**
|
|
10433
|
+
*
|
|
10434
|
+
* @summary Get the Stripe public key
|
|
10435
|
+
* @param {*} [options] Override http request option.
|
|
10436
|
+
* @throws {RequiredError}
|
|
10437
|
+
*/
|
|
10438
|
+
async getStripePublicKey(options) {
|
|
10439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStripePublicKey(options);
|
|
10440
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10441
|
+
const operationBasePath = base_1.operationServerMap['StripeApi.getStripePublicKey']?.[index]?.url;
|
|
10442
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10443
|
+
},
|
|
10444
|
+
/**
|
|
10445
|
+
*
|
|
10446
|
+
* @summary Webhook for Stripe event updates
|
|
10447
|
+
* @param {*} [options] Override http request option.
|
|
10448
|
+
* @throws {RequiredError}
|
|
10449
|
+
*/
|
|
10450
|
+
async webhook(options) {
|
|
10451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(options);
|
|
10452
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10453
|
+
const operationBasePath = base_1.operationServerMap['StripeApi.webhook']?.[index]?.url;
|
|
10454
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10455
|
+
},
|
|
10456
|
+
};
|
|
10457
|
+
};
|
|
10458
|
+
exports.StripeApiFp = StripeApiFp;
|
|
10459
|
+
/**
|
|
10460
|
+
* StripeApi - factory interface
|
|
10461
|
+
* @export
|
|
10462
|
+
*/
|
|
10463
|
+
const StripeApiFactory = function (configuration, basePath, axios) {
|
|
10464
|
+
const localVarFp = (0, exports.StripeApiFp)(configuration);
|
|
10465
|
+
return {
|
|
10466
|
+
/**
|
|
10467
|
+
*
|
|
10468
|
+
* @summary Start the stripe deposit flow
|
|
10469
|
+
* @param {StripeApiDepositRequest} requestParameters Request parameters.
|
|
10470
|
+
* @param {*} [options] Override http request option.
|
|
10471
|
+
* @throws {RequiredError}
|
|
10472
|
+
*/
|
|
10473
|
+
deposit(requestParameters, options) {
|
|
10474
|
+
return localVarFp.deposit(requestParameters.stripeRequest, options).then((request) => request(axios, basePath));
|
|
10475
|
+
},
|
|
10476
|
+
/**
|
|
10477
|
+
*
|
|
10478
|
+
* @summary Get the Stripe public key
|
|
10479
|
+
* @param {*} [options] Override http request option.
|
|
10480
|
+
* @throws {RequiredError}
|
|
10481
|
+
*/
|
|
10482
|
+
getStripePublicKey(options) {
|
|
10483
|
+
return localVarFp.getStripePublicKey(options).then((request) => request(axios, basePath));
|
|
10484
|
+
},
|
|
10485
|
+
/**
|
|
10486
|
+
*
|
|
10487
|
+
* @summary Webhook for Stripe event updates
|
|
10488
|
+
* @param {*} [options] Override http request option.
|
|
10489
|
+
* @throws {RequiredError}
|
|
10490
|
+
*/
|
|
10491
|
+
webhook(options) {
|
|
10492
|
+
return localVarFp.webhook(options).then((request) => request(axios, basePath));
|
|
10493
|
+
},
|
|
10494
|
+
};
|
|
10495
|
+
};
|
|
10496
|
+
exports.StripeApiFactory = StripeApiFactory;
|
|
10497
|
+
/**
|
|
10498
|
+
* StripeApi - object-oriented interface
|
|
10499
|
+
* @export
|
|
10500
|
+
* @class StripeApi
|
|
10501
|
+
* @extends {BaseAPI}
|
|
10502
|
+
*/
|
|
10503
|
+
class StripeApi extends base_1.BaseAPI {
|
|
10504
|
+
/**
|
|
10505
|
+
*
|
|
10506
|
+
* @summary Start the stripe deposit flow
|
|
10507
|
+
* @param {StripeApiDepositRequest} requestParameters Request parameters.
|
|
10508
|
+
* @param {*} [options] Override http request option.
|
|
10509
|
+
* @throws {RequiredError}
|
|
10510
|
+
* @memberof StripeApi
|
|
10511
|
+
*/
|
|
10512
|
+
deposit(requestParameters, options) {
|
|
10513
|
+
return (0, exports.StripeApiFp)(this.configuration).deposit(requestParameters.stripeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10514
|
+
}
|
|
10515
|
+
/**
|
|
10516
|
+
*
|
|
10517
|
+
* @summary Get the Stripe public key
|
|
10518
|
+
* @param {*} [options] Override http request option.
|
|
10519
|
+
* @throws {RequiredError}
|
|
10520
|
+
* @memberof StripeApi
|
|
10521
|
+
*/
|
|
10522
|
+
getStripePublicKey(options) {
|
|
10523
|
+
return (0, exports.StripeApiFp)(this.configuration).getStripePublicKey(options).then((request) => request(this.axios, this.basePath));
|
|
10524
|
+
}
|
|
10525
|
+
/**
|
|
10526
|
+
*
|
|
10527
|
+
* @summary Webhook for Stripe event updates
|
|
10528
|
+
* @param {*} [options] Override http request option.
|
|
10529
|
+
* @throws {RequiredError}
|
|
10530
|
+
* @memberof StripeApi
|
|
10531
|
+
*/
|
|
10532
|
+
webhook(options) {
|
|
10533
|
+
return (0, exports.StripeApiFp)(this.configuration).webhook(options).then((request) => request(this.axios, this.basePath));
|
|
10534
|
+
}
|
|
10535
|
+
}
|
|
10536
|
+
exports.StripeApi = StripeApi;
|
|
10537
|
+
/**
|
|
10538
|
+
* SyncApi - axios parameter creator
|
|
10539
|
+
* @export
|
|
10540
|
+
*/
|
|
10541
|
+
const SyncApiAxiosParamCreator = function (configuration) {
|
|
10542
|
+
return {
|
|
10543
|
+
/**
|
|
10544
|
+
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10545
|
+
* @summary Get dry-run sync results for users
|
|
10546
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10547
|
+
* @param {*} [options] Override http request option.
|
|
10548
|
+
* @throws {RequiredError}
|
|
10549
|
+
*/
|
|
10550
|
+
getUserSyncResults: async (service, options = {}) => {
|
|
10551
|
+
const localVarPath = `/sync/user`;
|
|
10552
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10553
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10554
|
+
let baseOptions;
|
|
10555
|
+
if (configuration) {
|
|
10556
|
+
baseOptions = configuration.baseOptions;
|
|
10557
|
+
}
|
|
10558
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10559
|
+
const localVarHeaderParameter = {};
|
|
10560
|
+
const localVarQueryParameter = {};
|
|
10561
|
+
// authentication JWT required
|
|
10562
|
+
// http bearer authentication required
|
|
10563
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10564
|
+
if (service) {
|
|
10565
|
+
localVarQueryParameter['service'] = service;
|
|
10566
|
+
}
|
|
10567
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10568
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10569
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10570
|
+
return {
|
|
10571
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10572
|
+
options: localVarRequestOptions,
|
|
10573
|
+
};
|
|
10574
|
+
},
|
|
10575
|
+
};
|
|
10576
|
+
};
|
|
10577
|
+
exports.SyncApiAxiosParamCreator = SyncApiAxiosParamCreator;
|
|
10578
|
+
/**
|
|
10579
|
+
* SyncApi - functional programming interface
|
|
10580
|
+
* @export
|
|
10581
|
+
*/
|
|
10582
|
+
const SyncApiFp = function (configuration) {
|
|
10583
|
+
const localVarAxiosParamCreator = (0, exports.SyncApiAxiosParamCreator)(configuration);
|
|
10584
|
+
return {
|
|
10585
|
+
/**
|
|
10586
|
+
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10587
|
+
* @summary Get dry-run sync results for users
|
|
10588
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10589
|
+
* @param {*} [options] Override http request option.
|
|
10590
|
+
* @throws {RequiredError}
|
|
10591
|
+
*/
|
|
10592
|
+
async getUserSyncResults(service, options) {
|
|
10593
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSyncResults(service, options);
|
|
10594
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10595
|
+
const operationBasePath = base_1.operationServerMap['SyncApi.getUserSyncResults']?.[index]?.url;
|
|
10596
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10597
|
+
},
|
|
10598
|
+
};
|
|
10599
|
+
};
|
|
10600
|
+
exports.SyncApiFp = SyncApiFp;
|
|
10601
|
+
/**
|
|
10602
|
+
* SyncApi - factory interface
|
|
10603
|
+
* @export
|
|
10604
|
+
*/
|
|
10605
|
+
const SyncApiFactory = function (configuration, basePath, axios) {
|
|
10606
|
+
const localVarFp = (0, exports.SyncApiFp)(configuration);
|
|
10607
|
+
return {
|
|
10608
|
+
/**
|
|
10609
|
+
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10610
|
+
* @summary Get dry-run sync results for users
|
|
10611
|
+
* @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
|
|
10612
|
+
* @param {*} [options] Override http request option.
|
|
10613
|
+
* @throws {RequiredError}
|
|
10614
|
+
*/
|
|
10615
|
+
getUserSyncResults(requestParameters = {}, options) {
|
|
10616
|
+
return localVarFp.getUserSyncResults(requestParameters.service, options).then((request) => request(axios, basePath));
|
|
10617
|
+
},
|
|
10618
|
+
};
|
|
10619
|
+
};
|
|
10620
|
+
exports.SyncApiFactory = SyncApiFactory;
|
|
10621
|
+
/**
|
|
10622
|
+
* SyncApi - object-oriented interface
|
|
10623
|
+
* @export
|
|
10624
|
+
* @class SyncApi
|
|
10625
|
+
* @extends {BaseAPI}
|
|
10626
|
+
*/
|
|
10627
|
+
class SyncApi extends base_1.BaseAPI {
|
|
10628
|
+
/**
|
|
10629
|
+
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10630
|
+
* @summary Get dry-run sync results for users
|
|
10631
|
+
* @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
|
|
10632
|
+
* @param {*} [options] Override http request option.
|
|
10633
|
+
* @throws {RequiredError}
|
|
10634
|
+
* @memberof SyncApi
|
|
10635
|
+
*/
|
|
10636
|
+
getUserSyncResults(requestParameters = {}, options) {
|
|
10637
|
+
return (0, exports.SyncApiFp)(this.configuration).getUserSyncResults(requestParameters.service, options).then((request) => request(this.axios, this.basePath));
|
|
10638
|
+
}
|
|
10639
|
+
}
|
|
10640
|
+
exports.SyncApi = SyncApi;
|
|
10641
|
+
/**
|
|
10642
|
+
* @export
|
|
10643
|
+
*/
|
|
10644
|
+
exports.GetUserSyncResultsServiceEnum = {
|
|
10645
|
+
Ldap: 'LDAP',
|
|
10646
|
+
Gewisdb: 'GEWISDB'
|
|
10647
|
+
};
|
|
10648
|
+
/**
|
|
10649
|
+
* TerminalPaymentsApi - axios parameter creator
|
|
10650
|
+
* @export
|
|
10651
|
+
*/
|
|
10652
|
+
const TerminalPaymentsApiAxiosParamCreator = function (configuration) {
|
|
10653
|
+
return {
|
|
10654
|
+
/**
|
|
10655
|
+
*
|
|
10656
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10657
|
+
* @param {number} id The ID of the terminal payment
|
|
10658
|
+
* @param {*} [options] Override http request option.
|
|
10659
|
+
* @throws {RequiredError}
|
|
10660
|
+
*/
|
|
10661
|
+
cancelTerminalPayment: async (id, options = {}) => {
|
|
10662
|
+
// verify required parameter 'id' is not null or undefined
|
|
10663
|
+
(0, common_1.assertParamExists)('cancelTerminalPayment', 'id', id);
|
|
10664
|
+
const localVarPath = `/terminal-payments/{id}`
|
|
10665
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10667
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10668
|
+
let baseOptions;
|
|
10669
|
+
if (configuration) {
|
|
10670
|
+
baseOptions = configuration.baseOptions;
|
|
10671
|
+
}
|
|
10672
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
10673
|
+
const localVarHeaderParameter = {};
|
|
10674
|
+
const localVarQueryParameter = {};
|
|
10675
|
+
// authentication JWT required
|
|
10676
|
+
// http bearer authentication required
|
|
10677
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10678
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10680
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10681
|
+
return {
|
|
10682
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10683
|
+
options: localVarRequestOptions,
|
|
10684
|
+
};
|
|
10685
|
+
},
|
|
10686
|
+
/**
|
|
10687
|
+
*
|
|
10688
|
+
* @summary Create a terminal payment before executing.
|
|
10689
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
10690
|
+
* @param {*} [options] Override http request option.
|
|
10691
|
+
* @throws {RequiredError}
|
|
10692
|
+
*/
|
|
10693
|
+
createTerminalPayment: async (createTerminalPaymentRequest, options = {}) => {
|
|
10694
|
+
// verify required parameter 'createTerminalPaymentRequest' is not null or undefined
|
|
10695
|
+
(0, common_1.assertParamExists)('createTerminalPayment', 'createTerminalPaymentRequest', createTerminalPaymentRequest);
|
|
10696
|
+
const localVarPath = `/terminal-payments`;
|
|
10697
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10698
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10699
|
+
let baseOptions;
|
|
10700
|
+
if (configuration) {
|
|
10701
|
+
baseOptions = configuration.baseOptions;
|
|
10702
|
+
}
|
|
10703
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10704
|
+
const localVarHeaderParameter = {};
|
|
10705
|
+
const localVarQueryParameter = {};
|
|
10706
|
+
// authentication JWT required
|
|
10707
|
+
// http bearer authentication required
|
|
10708
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10709
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10710
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10712
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10713
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTerminalPaymentRequest, localVarRequestOptions, configuration);
|
|
10714
|
+
return {
|
|
10715
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10716
|
+
options: localVarRequestOptions,
|
|
10717
|
+
};
|
|
10718
|
+
},
|
|
10719
|
+
/**
|
|
10720
|
+
*
|
|
10721
|
+
* @summary Get single terminal payment by ID
|
|
10722
|
+
* @param {number} id The ID of the terminal payment
|
|
10723
|
+
* @param {*} [options] Override http request option.
|
|
10724
|
+
* @throws {RequiredError}
|
|
10725
|
+
*/
|
|
10726
|
+
getSingleTerminalPayment: async (id, options = {}) => {
|
|
10727
|
+
// verify required parameter 'id' is not null or undefined
|
|
10728
|
+
(0, common_1.assertParamExists)('getSingleTerminalPayment', 'id', id);
|
|
10729
|
+
const localVarPath = `/terminal-payments/{id}`
|
|
10730
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10732
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10733
|
+
let baseOptions;
|
|
10734
|
+
if (configuration) {
|
|
10735
|
+
baseOptions = configuration.baseOptions;
|
|
10736
|
+
}
|
|
10737
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10738
|
+
const localVarHeaderParameter = {};
|
|
10739
|
+
const localVarQueryParameter = {};
|
|
10740
|
+
// authentication JWT required
|
|
10741
|
+
// http bearer authentication required
|
|
10742
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10743
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10744
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10745
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10746
|
+
return {
|
|
10747
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10748
|
+
options: localVarRequestOptions,
|
|
10749
|
+
};
|
|
10750
|
+
},
|
|
10751
|
+
/**
|
|
10752
|
+
*
|
|
10753
|
+
* @summary Get all Stripe terminals
|
|
10754
|
+
* @param {*} [options] Override http request option.
|
|
10755
|
+
* @throws {RequiredError}
|
|
10756
|
+
*/
|
|
10757
|
+
getStripeTerminals: async (options = {}) => {
|
|
10758
|
+
const localVarPath = `/terminal-payments/terminals`;
|
|
10759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10760
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10761
|
+
let baseOptions;
|
|
10762
|
+
if (configuration) {
|
|
10763
|
+
baseOptions = configuration.baseOptions;
|
|
10764
|
+
}
|
|
10765
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10766
|
+
const localVarHeaderParameter = {};
|
|
10767
|
+
const localVarQueryParameter = {};
|
|
10768
|
+
// authentication JWT required
|
|
10769
|
+
// http bearer authentication required
|
|
10770
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10340
10771
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10341
10772
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10342
10773
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10343
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stripeRequest, localVarRequestOptions, configuration);
|
|
10344
10774
|
return {
|
|
10345
10775
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10346
10776
|
options: localVarRequestOptions,
|
|
@@ -10348,24 +10778,36 @@ const StripeApiAxiosParamCreator = function (configuration) {
|
|
|
10348
10778
|
},
|
|
10349
10779
|
/**
|
|
10350
10780
|
*
|
|
10351
|
-
* @summary
|
|
10781
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10782
|
+
* @param {number} id The ID of the terminal payment
|
|
10783
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
10352
10784
|
* @param {*} [options] Override http request option.
|
|
10353
10785
|
* @throws {RequiredError}
|
|
10354
10786
|
*/
|
|
10355
|
-
|
|
10356
|
-
|
|
10787
|
+
startTerminalPayment: async (id, processTerminalPaymentRequest, options = {}) => {
|
|
10788
|
+
// verify required parameter 'id' is not null or undefined
|
|
10789
|
+
(0, common_1.assertParamExists)('startTerminalPayment', 'id', id);
|
|
10790
|
+
// verify required parameter 'processTerminalPaymentRequest' is not null or undefined
|
|
10791
|
+
(0, common_1.assertParamExists)('startTerminalPayment', 'processTerminalPaymentRequest', processTerminalPaymentRequest);
|
|
10792
|
+
const localVarPath = `/terminal-payments/{id}/process`
|
|
10793
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10357
10794
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10358
10795
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10359
10796
|
let baseOptions;
|
|
10360
10797
|
if (configuration) {
|
|
10361
10798
|
baseOptions = configuration.baseOptions;
|
|
10362
10799
|
}
|
|
10363
|
-
const localVarRequestOptions = { method: '
|
|
10800
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10364
10801
|
const localVarHeaderParameter = {};
|
|
10365
10802
|
const localVarQueryParameter = {};
|
|
10803
|
+
// authentication JWT required
|
|
10804
|
+
// http bearer authentication required
|
|
10805
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10806
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10366
10807
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10367
10808
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10368
10809
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10810
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(processTerminalPaymentRequest, localVarRequestOptions, configuration);
|
|
10369
10811
|
return {
|
|
10370
10812
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10371
10813
|
options: localVarRequestOptions,
|
|
@@ -10373,212 +10815,204 @@ const StripeApiAxiosParamCreator = function (configuration) {
|
|
|
10373
10815
|
},
|
|
10374
10816
|
};
|
|
10375
10817
|
};
|
|
10376
|
-
exports.
|
|
10818
|
+
exports.TerminalPaymentsApiAxiosParamCreator = TerminalPaymentsApiAxiosParamCreator;
|
|
10377
10819
|
/**
|
|
10378
|
-
*
|
|
10820
|
+
* TerminalPaymentsApi - functional programming interface
|
|
10379
10821
|
* @export
|
|
10380
10822
|
*/
|
|
10381
|
-
const
|
|
10382
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
10823
|
+
const TerminalPaymentsApiFp = function (configuration) {
|
|
10824
|
+
const localVarAxiosParamCreator = (0, exports.TerminalPaymentsApiAxiosParamCreator)(configuration);
|
|
10383
10825
|
return {
|
|
10384
10826
|
/**
|
|
10385
10827
|
*
|
|
10386
|
-
* @summary
|
|
10387
|
-
* @param {
|
|
10828
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10829
|
+
* @param {number} id The ID of the terminal payment
|
|
10388
10830
|
* @param {*} [options] Override http request option.
|
|
10389
10831
|
* @throws {RequiredError}
|
|
10390
10832
|
*/
|
|
10391
|
-
async
|
|
10392
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
10833
|
+
async cancelTerminalPayment(id, options) {
|
|
10834
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelTerminalPayment(id, options);
|
|
10393
10835
|
const index = configuration?.serverIndex ?? 0;
|
|
10394
|
-
const operationBasePath = base_1.operationServerMap['
|
|
10836
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.cancelTerminalPayment']?.[index]?.url;
|
|
10395
10837
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10396
10838
|
},
|
|
10397
10839
|
/**
|
|
10398
10840
|
*
|
|
10399
|
-
* @summary
|
|
10841
|
+
* @summary Create a terminal payment before executing.
|
|
10842
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
10400
10843
|
* @param {*} [options] Override http request option.
|
|
10401
10844
|
* @throws {RequiredError}
|
|
10402
10845
|
*/
|
|
10403
|
-
async
|
|
10404
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
10846
|
+
async createTerminalPayment(createTerminalPaymentRequest, options) {
|
|
10847
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTerminalPayment(createTerminalPaymentRequest, options);
|
|
10405
10848
|
const index = configuration?.serverIndex ?? 0;
|
|
10406
|
-
const operationBasePath = base_1.operationServerMap['
|
|
10849
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.createTerminalPayment']?.[index]?.url;
|
|
10407
10850
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10408
10851
|
},
|
|
10409
|
-
};
|
|
10410
|
-
};
|
|
10411
|
-
exports.StripeApiFp = StripeApiFp;
|
|
10412
|
-
/**
|
|
10413
|
-
* StripeApi - factory interface
|
|
10414
|
-
* @export
|
|
10415
|
-
*/
|
|
10416
|
-
const StripeApiFactory = function (configuration, basePath, axios) {
|
|
10417
|
-
const localVarFp = (0, exports.StripeApiFp)(configuration);
|
|
10418
|
-
return {
|
|
10419
10852
|
/**
|
|
10420
10853
|
*
|
|
10421
|
-
* @summary
|
|
10422
|
-
* @param {
|
|
10854
|
+
* @summary Get single terminal payment by ID
|
|
10855
|
+
* @param {number} id The ID of the terminal payment
|
|
10423
10856
|
* @param {*} [options] Override http request option.
|
|
10424
10857
|
* @throws {RequiredError}
|
|
10425
10858
|
*/
|
|
10426
|
-
|
|
10427
|
-
|
|
10859
|
+
async getSingleTerminalPayment(id, options) {
|
|
10860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSingleTerminalPayment(id, options);
|
|
10861
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10862
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.getSingleTerminalPayment']?.[index]?.url;
|
|
10863
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10428
10864
|
},
|
|
10429
10865
|
/**
|
|
10430
10866
|
*
|
|
10431
|
-
* @summary Get
|
|
10867
|
+
* @summary Get all Stripe terminals
|
|
10432
10868
|
* @param {*} [options] Override http request option.
|
|
10433
10869
|
* @throws {RequiredError}
|
|
10434
10870
|
*/
|
|
10435
|
-
|
|
10436
|
-
|
|
10871
|
+
async getStripeTerminals(options) {
|
|
10872
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStripeTerminals(options);
|
|
10873
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10874
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.getStripeTerminals']?.[index]?.url;
|
|
10875
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10437
10876
|
},
|
|
10438
|
-
};
|
|
10439
|
-
};
|
|
10440
|
-
exports.StripeApiFactory = StripeApiFactory;
|
|
10441
|
-
/**
|
|
10442
|
-
* StripeApi - object-oriented interface
|
|
10443
|
-
* @export
|
|
10444
|
-
* @class StripeApi
|
|
10445
|
-
* @extends {BaseAPI}
|
|
10446
|
-
*/
|
|
10447
|
-
class StripeApi extends base_1.BaseAPI {
|
|
10448
|
-
/**
|
|
10449
|
-
*
|
|
10450
|
-
* @summary Start the stripe deposit flow
|
|
10451
|
-
* @param {StripeApiDepositRequest} requestParameters Request parameters.
|
|
10452
|
-
* @param {*} [options] Override http request option.
|
|
10453
|
-
* @throws {RequiredError}
|
|
10454
|
-
* @memberof StripeApi
|
|
10455
|
-
*/
|
|
10456
|
-
deposit(requestParameters, options) {
|
|
10457
|
-
return (0, exports.StripeApiFp)(this.configuration).deposit(requestParameters.stripeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10458
|
-
}
|
|
10459
|
-
/**
|
|
10460
|
-
*
|
|
10461
|
-
* @summary Get the Stripe public key
|
|
10462
|
-
* @param {*} [options] Override http request option.
|
|
10463
|
-
* @throws {RequiredError}
|
|
10464
|
-
* @memberof StripeApi
|
|
10465
|
-
*/
|
|
10466
|
-
getStripePublicKey(options) {
|
|
10467
|
-
return (0, exports.StripeApiFp)(this.configuration).getStripePublicKey(options).then((request) => request(this.axios, this.basePath));
|
|
10468
|
-
}
|
|
10469
|
-
}
|
|
10470
|
-
exports.StripeApi = StripeApi;
|
|
10471
|
-
/**
|
|
10472
|
-
* SyncApi - axios parameter creator
|
|
10473
|
-
* @export
|
|
10474
|
-
*/
|
|
10475
|
-
const SyncApiAxiosParamCreator = function (configuration) {
|
|
10476
|
-
return {
|
|
10477
10877
|
/**
|
|
10478
|
-
*
|
|
10479
|
-
* @summary
|
|
10480
|
-
* @param {
|
|
10878
|
+
*
|
|
10879
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10880
|
+
* @param {number} id The ID of the terminal payment
|
|
10881
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
10481
10882
|
* @param {*} [options] Override http request option.
|
|
10482
10883
|
* @throws {RequiredError}
|
|
10483
10884
|
*/
|
|
10484
|
-
|
|
10485
|
-
const
|
|
10486
|
-
|
|
10487
|
-
const
|
|
10488
|
-
|
|
10489
|
-
if (configuration) {
|
|
10490
|
-
baseOptions = configuration.baseOptions;
|
|
10491
|
-
}
|
|
10492
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10493
|
-
const localVarHeaderParameter = {};
|
|
10494
|
-
const localVarQueryParameter = {};
|
|
10495
|
-
// authentication JWT required
|
|
10496
|
-
// http bearer authentication required
|
|
10497
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10498
|
-
if (service) {
|
|
10499
|
-
localVarQueryParameter['service'] = service;
|
|
10500
|
-
}
|
|
10501
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10502
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10503
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10504
|
-
return {
|
|
10505
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10506
|
-
options: localVarRequestOptions,
|
|
10507
|
-
};
|
|
10885
|
+
async startTerminalPayment(id, processTerminalPaymentRequest, options) {
|
|
10886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startTerminalPayment(id, processTerminalPaymentRequest, options);
|
|
10887
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10888
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.startTerminalPayment']?.[index]?.url;
|
|
10889
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10508
10890
|
},
|
|
10509
10891
|
};
|
|
10510
10892
|
};
|
|
10511
|
-
exports.
|
|
10893
|
+
exports.TerminalPaymentsApiFp = TerminalPaymentsApiFp;
|
|
10512
10894
|
/**
|
|
10513
|
-
*
|
|
10895
|
+
* TerminalPaymentsApi - factory interface
|
|
10514
10896
|
* @export
|
|
10515
10897
|
*/
|
|
10516
|
-
const
|
|
10517
|
-
const
|
|
10898
|
+
const TerminalPaymentsApiFactory = function (configuration, basePath, axios) {
|
|
10899
|
+
const localVarFp = (0, exports.TerminalPaymentsApiFp)(configuration);
|
|
10518
10900
|
return {
|
|
10519
10901
|
/**
|
|
10520
|
-
*
|
|
10521
|
-
* @summary
|
|
10522
|
-
* @param {
|
|
10902
|
+
*
|
|
10903
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10904
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
10523
10905
|
* @param {*} [options] Override http request option.
|
|
10524
10906
|
* @throws {RequiredError}
|
|
10525
10907
|
*/
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
const index = configuration?.serverIndex ?? 0;
|
|
10529
|
-
const operationBasePath = base_1.operationServerMap['SyncApi.getUserSyncResults']?.[index]?.url;
|
|
10530
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10908
|
+
cancelTerminalPayment(requestParameters, options) {
|
|
10909
|
+
return localVarFp.cancelTerminalPayment(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10531
10910
|
},
|
|
10532
|
-
};
|
|
10533
|
-
};
|
|
10534
|
-
exports.SyncApiFp = SyncApiFp;
|
|
10535
|
-
/**
|
|
10536
|
-
* SyncApi - factory interface
|
|
10537
|
-
* @export
|
|
10538
|
-
*/
|
|
10539
|
-
const SyncApiFactory = function (configuration, basePath, axios) {
|
|
10540
|
-
const localVarFp = (0, exports.SyncApiFp)(configuration);
|
|
10541
|
-
return {
|
|
10542
10911
|
/**
|
|
10543
|
-
*
|
|
10544
|
-
* @summary
|
|
10545
|
-
* @param {
|
|
10912
|
+
*
|
|
10913
|
+
* @summary Create a terminal payment before executing.
|
|
10914
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
10546
10915
|
* @param {*} [options] Override http request option.
|
|
10547
10916
|
* @throws {RequiredError}
|
|
10548
10917
|
*/
|
|
10549
|
-
|
|
10550
|
-
return localVarFp.
|
|
10918
|
+
createTerminalPayment(requestParameters, options) {
|
|
10919
|
+
return localVarFp.createTerminalPayment(requestParameters.createTerminalPaymentRequest, options).then((request) => request(axios, basePath));
|
|
10920
|
+
},
|
|
10921
|
+
/**
|
|
10922
|
+
*
|
|
10923
|
+
* @summary Get single terminal payment by ID
|
|
10924
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
10925
|
+
* @param {*} [options] Override http request option.
|
|
10926
|
+
* @throws {RequiredError}
|
|
10927
|
+
*/
|
|
10928
|
+
getSingleTerminalPayment(requestParameters, options) {
|
|
10929
|
+
return localVarFp.getSingleTerminalPayment(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10930
|
+
},
|
|
10931
|
+
/**
|
|
10932
|
+
*
|
|
10933
|
+
* @summary Get all Stripe terminals
|
|
10934
|
+
* @param {*} [options] Override http request option.
|
|
10935
|
+
* @throws {RequiredError}
|
|
10936
|
+
*/
|
|
10937
|
+
getStripeTerminals(options) {
|
|
10938
|
+
return localVarFp.getStripeTerminals(options).then((request) => request(axios, basePath));
|
|
10939
|
+
},
|
|
10940
|
+
/**
|
|
10941
|
+
*
|
|
10942
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10943
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
10944
|
+
* @param {*} [options] Override http request option.
|
|
10945
|
+
* @throws {RequiredError}
|
|
10946
|
+
*/
|
|
10947
|
+
startTerminalPayment(requestParameters, options) {
|
|
10948
|
+
return localVarFp.startTerminalPayment(requestParameters.id, requestParameters.processTerminalPaymentRequest, options).then((request) => request(axios, basePath));
|
|
10551
10949
|
},
|
|
10552
10950
|
};
|
|
10553
10951
|
};
|
|
10554
|
-
exports.
|
|
10952
|
+
exports.TerminalPaymentsApiFactory = TerminalPaymentsApiFactory;
|
|
10555
10953
|
/**
|
|
10556
|
-
*
|
|
10954
|
+
* TerminalPaymentsApi - object-oriented interface
|
|
10557
10955
|
* @export
|
|
10558
|
-
* @class
|
|
10956
|
+
* @class TerminalPaymentsApi
|
|
10559
10957
|
* @extends {BaseAPI}
|
|
10560
10958
|
*/
|
|
10561
|
-
class
|
|
10959
|
+
class TerminalPaymentsApi extends base_1.BaseAPI {
|
|
10562
10960
|
/**
|
|
10563
|
-
*
|
|
10564
|
-
* @summary
|
|
10565
|
-
* @param {
|
|
10961
|
+
*
|
|
10962
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10963
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
10566
10964
|
* @param {*} [options] Override http request option.
|
|
10567
10965
|
* @throws {RequiredError}
|
|
10568
|
-
* @memberof
|
|
10966
|
+
* @memberof TerminalPaymentsApi
|
|
10569
10967
|
*/
|
|
10570
|
-
|
|
10571
|
-
return (0, exports.
|
|
10968
|
+
cancelTerminalPayment(requestParameters, options) {
|
|
10969
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).cancelTerminalPayment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10970
|
+
}
|
|
10971
|
+
/**
|
|
10972
|
+
*
|
|
10973
|
+
* @summary Create a terminal payment before executing.
|
|
10974
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
10975
|
+
* @param {*} [options] Override http request option.
|
|
10976
|
+
* @throws {RequiredError}
|
|
10977
|
+
* @memberof TerminalPaymentsApi
|
|
10978
|
+
*/
|
|
10979
|
+
createTerminalPayment(requestParameters, options) {
|
|
10980
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).createTerminalPayment(requestParameters.createTerminalPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10981
|
+
}
|
|
10982
|
+
/**
|
|
10983
|
+
*
|
|
10984
|
+
* @summary Get single terminal payment by ID
|
|
10985
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
10986
|
+
* @param {*} [options] Override http request option.
|
|
10987
|
+
* @throws {RequiredError}
|
|
10988
|
+
* @memberof TerminalPaymentsApi
|
|
10989
|
+
*/
|
|
10990
|
+
getSingleTerminalPayment(requestParameters, options) {
|
|
10991
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).getSingleTerminalPayment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10992
|
+
}
|
|
10993
|
+
/**
|
|
10994
|
+
*
|
|
10995
|
+
* @summary Get all Stripe terminals
|
|
10996
|
+
* @param {*} [options] Override http request option.
|
|
10997
|
+
* @throws {RequiredError}
|
|
10998
|
+
* @memberof TerminalPaymentsApi
|
|
10999
|
+
*/
|
|
11000
|
+
getStripeTerminals(options) {
|
|
11001
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).getStripeTerminals(options).then((request) => request(this.axios, this.basePath));
|
|
11002
|
+
}
|
|
11003
|
+
/**
|
|
11004
|
+
*
|
|
11005
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
11006
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
11007
|
+
* @param {*} [options] Override http request option.
|
|
11008
|
+
* @throws {RequiredError}
|
|
11009
|
+
* @memberof TerminalPaymentsApi
|
|
11010
|
+
*/
|
|
11011
|
+
startTerminalPayment(requestParameters, options) {
|
|
11012
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).startTerminalPayment(requestParameters.id, requestParameters.processTerminalPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10572
11013
|
}
|
|
10573
11014
|
}
|
|
10574
|
-
exports.
|
|
10575
|
-
/**
|
|
10576
|
-
* @export
|
|
10577
|
-
*/
|
|
10578
|
-
exports.GetUserSyncResultsServiceEnum = {
|
|
10579
|
-
Ldap: 'LDAP',
|
|
10580
|
-
Gewisdb: 'GEWISDB'
|
|
10581
|
-
};
|
|
11015
|
+
exports.TerminalPaymentsApi = TerminalPaymentsApi;
|
|
10582
11016
|
/**
|
|
10583
11017
|
* TermsOfServiceApi - axios parameter creator
|
|
10584
11018
|
* @export
|
|
@@ -12411,7 +12845,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12411
12845
|
return {
|
|
12412
12846
|
/**
|
|
12413
12847
|
*
|
|
12414
|
-
* @summary Accept the Terms of Service
|
|
12848
|
+
* @summary Accept the current Terms of Service version
|
|
12415
12849
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
12416
12850
|
* @param {*} [options] Override http request option.
|
|
12417
12851
|
* @throws {RequiredError}
|
|
@@ -12940,6 +13374,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12940
13374
|
options: localVarRequestOptions,
|
|
12941
13375
|
};
|
|
12942
13376
|
},
|
|
13377
|
+
/**
|
|
13378
|
+
*
|
|
13379
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
13380
|
+
* @param {number} id The id of the user
|
|
13381
|
+
* @param {*} [options] Override http request option.
|
|
13382
|
+
* @throws {RequiredError}
|
|
13383
|
+
*/
|
|
13384
|
+
getUserTos: async (id, options = {}) => {
|
|
13385
|
+
// verify required parameter 'id' is not null or undefined
|
|
13386
|
+
(0, common_1.assertParamExists)('getUserTos', 'id', id);
|
|
13387
|
+
const localVarPath = `/users/{id}/tos`
|
|
13388
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13389
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13390
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13391
|
+
let baseOptions;
|
|
13392
|
+
if (configuration) {
|
|
13393
|
+
baseOptions = configuration.baseOptions;
|
|
13394
|
+
}
|
|
13395
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13396
|
+
const localVarHeaderParameter = {};
|
|
13397
|
+
const localVarQueryParameter = {};
|
|
13398
|
+
// authentication JWT required
|
|
13399
|
+
// http bearer authentication required
|
|
13400
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13404
|
+
return {
|
|
13405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13406
|
+
options: localVarRequestOptions,
|
|
13407
|
+
};
|
|
13408
|
+
},
|
|
12943
13409
|
/**
|
|
12944
13410
|
*
|
|
12945
13411
|
* @summary Returns the user\'s containers
|
|
@@ -13922,7 +14388,7 @@ const UsersApiFp = function (configuration) {
|
|
|
13922
14388
|
return {
|
|
13923
14389
|
/**
|
|
13924
14390
|
*
|
|
13925
|
-
* @summary Accept the Terms of Service
|
|
14391
|
+
* @summary Accept the current Terms of Service version
|
|
13926
14392
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
13927
14393
|
* @param {*} [options] Override http request option.
|
|
13928
14394
|
* @throws {RequiredError}
|
|
@@ -14127,6 +14593,19 @@ const UsersApiFp = function (configuration) {
|
|
|
14127
14593
|
const operationBasePath = base_1.operationServerMap['UsersApi.getUserSettings']?.[index]?.url;
|
|
14128
14594
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14129
14595
|
},
|
|
14596
|
+
/**
|
|
14597
|
+
*
|
|
14598
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
14599
|
+
* @param {number} id The id of the user
|
|
14600
|
+
* @param {*} [options] Override http request option.
|
|
14601
|
+
* @throws {RequiredError}
|
|
14602
|
+
*/
|
|
14603
|
+
async getUserTos(id, options) {
|
|
14604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserTos(id, options);
|
|
14605
|
+
const index = configuration?.serverIndex ?? 0;
|
|
14606
|
+
const operationBasePath = base_1.operationServerMap['UsersApi.getUserTos']?.[index]?.url;
|
|
14607
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14608
|
+
},
|
|
14130
14609
|
/**
|
|
14131
14610
|
*
|
|
14132
14611
|
* @summary Returns the user\'s containers
|
|
@@ -14492,7 +14971,7 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14492
14971
|
return {
|
|
14493
14972
|
/**
|
|
14494
14973
|
*
|
|
14495
|
-
* @summary Accept the Terms of Service
|
|
14974
|
+
* @summary Accept the current Terms of Service version
|
|
14496
14975
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
14497
14976
|
* @param {*} [options] Override http request option.
|
|
14498
14977
|
* @throws {RequiredError}
|
|
@@ -14640,6 +15119,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14640
15119
|
getUserSettings(requestParameters, options) {
|
|
14641
15120
|
return localVarFp.getUserSettings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14642
15121
|
},
|
|
15122
|
+
/**
|
|
15123
|
+
*
|
|
15124
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
15125
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
15126
|
+
* @param {*} [options] Override http request option.
|
|
15127
|
+
* @throws {RequiredError}
|
|
15128
|
+
*/
|
|
15129
|
+
getUserTos(requestParameters, options) {
|
|
15130
|
+
return localVarFp.getUserTos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
15131
|
+
},
|
|
14643
15132
|
/**
|
|
14644
15133
|
*
|
|
14645
15134
|
* @summary Returns the user\'s containers
|
|
@@ -14883,7 +15372,7 @@ exports.UsersApiFactory = UsersApiFactory;
|
|
|
14883
15372
|
class UsersApi extends base_1.BaseAPI {
|
|
14884
15373
|
/**
|
|
14885
15374
|
*
|
|
14886
|
-
* @summary Accept the Terms of Service
|
|
15375
|
+
* @summary Accept the current Terms of Service version
|
|
14887
15376
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
14888
15377
|
* @param {*} [options] Override http request option.
|
|
14889
15378
|
* @throws {RequiredError}
|
|
@@ -15046,6 +15535,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
15046
15535
|
getUserSettings(requestParameters, options) {
|
|
15047
15536
|
return (0, exports.UsersApiFp)(this.configuration).getUserSettings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
15048
15537
|
}
|
|
15538
|
+
/**
|
|
15539
|
+
*
|
|
15540
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
15541
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
15542
|
+
* @param {*} [options] Override http request option.
|
|
15543
|
+
* @throws {RequiredError}
|
|
15544
|
+
* @memberof UsersApi
|
|
15545
|
+
*/
|
|
15546
|
+
getUserTos(requestParameters, options) {
|
|
15547
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserTos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
15548
|
+
}
|
|
15049
15549
|
/**
|
|
15050
15550
|
*
|
|
15051
15551
|
* @summary Returns the user\'s containers
|