@gewis/sudosos-client 0.0.0-develop.c12caf4 → 0.0.0-develop.c93ca19
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/dist/api.d.ts +1321 -345
- package/dist/api.js +1180 -343
- package/package.json +3 -3
package/dist/api.js
CHANGED
|
@@ -13,15 +13,21 @@
|
|
|
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.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 = 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.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
|
|
22
22
|
const common_1 = require("./common");
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
const base_1 = require("./base");
|
|
25
|
+
exports.BasePaymentRequestResponseStatusEnum = {
|
|
26
|
+
Pending: 'PENDING',
|
|
27
|
+
Paid: 'PAID',
|
|
28
|
+
Expired: 'EXPIRED',
|
|
29
|
+
Cancelled: 'CANCELLED'
|
|
30
|
+
};
|
|
25
31
|
exports.BasePayoutRequestResponseStatusEnum = {
|
|
26
32
|
Created: 'CREATED',
|
|
27
33
|
Approved: 'APPROVED',
|
|
@@ -66,12 +72,28 @@ exports.PayoutRequestStatusRequestStateEnum = {
|
|
|
66
72
|
Denied: 'DENIED',
|
|
67
73
|
Cancelled: 'CANCELLED'
|
|
68
74
|
};
|
|
75
|
+
exports.PublicPaymentRequestResponseStatusEnum = {
|
|
76
|
+
Pending: 'PENDING',
|
|
77
|
+
Paid: 'PAID',
|
|
78
|
+
Expired: 'EXPIRED',
|
|
79
|
+
Cancelled: 'CANCELLED'
|
|
80
|
+
};
|
|
69
81
|
exports.QRStatusResponseStatusEnum = {
|
|
70
82
|
Pending: 'PENDING',
|
|
71
83
|
Confirmed: 'CONFIRMED',
|
|
72
84
|
Expired: 'EXPIRED',
|
|
73
85
|
Cancelled: 'CANCELLED'
|
|
74
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
|
+
};
|
|
75
97
|
exports.UpdateInvoiceRequestStateEnum = {
|
|
76
98
|
Created: 'CREATED',
|
|
77
99
|
Sent: 'SENT',
|
|
@@ -200,6 +222,39 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
200
222
|
options: localVarRequestOptions,
|
|
201
223
|
};
|
|
202
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
|
+
},
|
|
203
258
|
/**
|
|
204
259
|
*
|
|
205
260
|
* @summary Generate a QR code for authentication
|
|
@@ -456,15 +511,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
456
511
|
},
|
|
457
512
|
/**
|
|
458
513
|
*
|
|
459
|
-
* @summary
|
|
460
|
-
* @param {
|
|
514
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
515
|
+
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
|
|
461
516
|
* @param {*} [options] Override http request option.
|
|
462
517
|
* @throws {RequiredError}
|
|
463
518
|
*/
|
|
464
|
-
|
|
465
|
-
// verify required parameter '
|
|
466
|
-
(0, common_1.assertParamExists)('
|
|
467
|
-
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`;
|
|
468
523
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
469
524
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
470
525
|
let baseOptions;
|
|
@@ -474,39 +529,14 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
474
529
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
475
530
|
const localVarHeaderParameter = {};
|
|
476
531
|
const localVarQueryParameter = {};
|
|
477
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
478
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
479
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
481
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationMockRequest, localVarRequestOptions, configuration);
|
|
482
|
-
return {
|
|
483
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
484
|
-
options: localVarRequestOptions,
|
|
485
|
-
};
|
|
486
|
-
},
|
|
487
|
-
/**
|
|
488
|
-
*
|
|
489
|
-
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
490
|
-
* @param {*} [options] Override http request option.
|
|
491
|
-
* @throws {RequiredError}
|
|
492
|
-
*/
|
|
493
|
-
refreshToken: async (options = {}) => {
|
|
494
|
-
const localVarPath = `/authentication/refreshToken`;
|
|
495
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
496
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
497
|
-
let baseOptions;
|
|
498
|
-
if (configuration) {
|
|
499
|
-
baseOptions = configuration.baseOptions;
|
|
500
|
-
}
|
|
501
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
502
|
-
const localVarHeaderParameter = {};
|
|
503
|
-
const localVarQueryParameter = {};
|
|
504
532
|
// authentication JWT required
|
|
505
533
|
// http bearer authentication required
|
|
506
534
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
535
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
507
536
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
508
537
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
509
538
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
539
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationPinRequest, localVarRequestOptions, configuration);
|
|
510
540
|
return {
|
|
511
541
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
512
542
|
options: localVarRequestOptions,
|
|
@@ -514,15 +544,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
514
544
|
},
|
|
515
545
|
/**
|
|
516
546
|
*
|
|
517
|
-
* @summary
|
|
518
|
-
* @param {
|
|
547
|
+
* @summary Mock login and hand out token.
|
|
548
|
+
* @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
|
|
519
549
|
* @param {*} [options] Override http request option.
|
|
520
550
|
* @throws {RequiredError}
|
|
521
551
|
*/
|
|
522
|
-
|
|
523
|
-
// verify required parameter '
|
|
524
|
-
(0, common_1.assertParamExists)('
|
|
525
|
-
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`;
|
|
526
556
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
527
557
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
528
558
|
let baseOptions;
|
|
@@ -536,7 +566,7 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
536
566
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
537
567
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
538
568
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
539
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
569
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationMockRequest, localVarRequestOptions, configuration);
|
|
540
570
|
return {
|
|
541
571
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
542
572
|
options: localVarRequestOptions,
|
|
@@ -544,29 +574,32 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
544
574
|
},
|
|
545
575
|
/**
|
|
546
576
|
*
|
|
547
|
-
* @summary
|
|
548
|
-
* @param {
|
|
577
|
+
* @summary NFC authentication that requires POS user authentication
|
|
578
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
549
579
|
* @param {*} [options] Override http request option.
|
|
550
580
|
* @throws {RequiredError}
|
|
551
581
|
*/
|
|
552
|
-
|
|
553
|
-
// verify required parameter '
|
|
554
|
-
(0, common_1.assertParamExists)('
|
|
555
|
-
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`;
|
|
556
586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
557
587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
558
588
|
let baseOptions;
|
|
559
589
|
if (configuration) {
|
|
560
590
|
baseOptions = configuration.baseOptions;
|
|
561
591
|
}
|
|
562
|
-
const localVarRequestOptions = { method: '
|
|
592
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
563
593
|
const localVarHeaderParameter = {};
|
|
564
594
|
const localVarQueryParameter = {};
|
|
595
|
+
// authentication JWT required
|
|
596
|
+
// http bearer authentication required
|
|
597
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
565
598
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
566
599
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
567
600
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
568
601
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
569
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
602
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationNfcRequest, localVarRequestOptions, configuration);
|
|
570
603
|
return {
|
|
571
604
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
572
605
|
options: localVarRequestOptions,
|
|
@@ -574,15 +607,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
574
607
|
},
|
|
575
608
|
/**
|
|
576
609
|
*
|
|
577
|
-
* @summary
|
|
578
|
-
* @param {
|
|
610
|
+
* @summary PIN authentication that requires POS user authentication
|
|
611
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
579
612
|
* @param {*} [options] Override http request option.
|
|
580
613
|
* @throws {RequiredError}
|
|
581
614
|
*/
|
|
582
|
-
|
|
583
|
-
// verify required parameter '
|
|
584
|
-
(0, common_1.assertParamExists)('
|
|
585
|
-
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`;
|
|
586
619
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
587
620
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
588
621
|
let baseOptions;
|
|
@@ -599,7 +632,7 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
599
632
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
600
633
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
601
634
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
602
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
635
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationPinRequest, localVarRequestOptions, configuration);
|
|
603
636
|
return {
|
|
604
637
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
605
638
|
options: localVarRequestOptions,
|
|
@@ -607,32 +640,27 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
607
640
|
},
|
|
608
641
|
/**
|
|
609
642
|
*
|
|
610
|
-
* @summary
|
|
611
|
-
* @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
|
|
612
644
|
* @param {*} [options] Override http request option.
|
|
613
645
|
* @throws {RequiredError}
|
|
614
646
|
*/
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
(0, common_1.assertParamExists)('secureMemberPINAuthentication', 'memberAuthenticationSecurePinRequest', memberAuthenticationSecurePinRequest);
|
|
618
|
-
const localVarPath = `/authentication/member/pin-secure`;
|
|
647
|
+
refreshToken: async (options = {}) => {
|
|
648
|
+
const localVarPath = `/authentication/refreshToken`;
|
|
619
649
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
620
650
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
621
651
|
let baseOptions;
|
|
622
652
|
if (configuration) {
|
|
623
653
|
baseOptions = configuration.baseOptions;
|
|
624
654
|
}
|
|
625
|
-
const localVarRequestOptions = { method: '
|
|
655
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
626
656
|
const localVarHeaderParameter = {};
|
|
627
657
|
const localVarQueryParameter = {};
|
|
628
658
|
// authentication JWT required
|
|
629
659
|
// http bearer authentication required
|
|
630
660
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
631
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
632
661
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
633
662
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
634
663
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
635
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationSecurePinRequest, localVarRequestOptions, configuration);
|
|
636
664
|
return {
|
|
637
665
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
638
666
|
options: localVarRequestOptions,
|
|
@@ -640,15 +668,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
640
668
|
},
|
|
641
669
|
/**
|
|
642
670
|
*
|
|
643
|
-
* @summary
|
|
644
|
-
* @param {
|
|
671
|
+
* @summary Creates a reset token for the local authentication
|
|
672
|
+
* @param {ResetLocalRequest} resetLocalRequest The reset info.
|
|
645
673
|
* @param {*} [options] Override http request option.
|
|
646
674
|
* @throws {RequiredError}
|
|
647
675
|
*/
|
|
648
|
-
|
|
649
|
-
// verify required parameter '
|
|
650
|
-
(0, common_1.assertParamExists)('
|
|
651
|
-
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`;
|
|
652
680
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
653
681
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
654
682
|
let baseOptions;
|
|
@@ -658,14 +686,11 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
658
686
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
659
687
|
const localVarHeaderParameter = {};
|
|
660
688
|
const localVarQueryParameter = {};
|
|
661
|
-
// authentication JWT required
|
|
662
|
-
// http bearer authentication required
|
|
663
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
664
689
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
665
690
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
666
691
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
667
692
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
668
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
693
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetLocalRequest, localVarRequestOptions, configuration);
|
|
669
694
|
return {
|
|
670
695
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
671
696
|
options: localVarRequestOptions,
|
|
@@ -673,32 +698,29 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
673
698
|
},
|
|
674
699
|
/**
|
|
675
700
|
*
|
|
676
|
-
* @summary
|
|
677
|
-
* @param {
|
|
701
|
+
* @summary Reset local authentication using the provided token
|
|
702
|
+
* @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
|
|
678
703
|
* @param {*} [options] Override http request option.
|
|
679
704
|
* @throws {RequiredError}
|
|
680
705
|
*/
|
|
681
|
-
|
|
682
|
-
// verify required parameter '
|
|
683
|
-
(0, common_1.assertParamExists)('
|
|
684
|
-
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`;
|
|
685
710
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
686
711
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
687
712
|
let baseOptions;
|
|
688
713
|
if (configuration) {
|
|
689
714
|
baseOptions = configuration.baseOptions;
|
|
690
715
|
}
|
|
691
|
-
const localVarRequestOptions = { method: '
|
|
716
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
692
717
|
const localVarHeaderParameter = {};
|
|
693
718
|
const localVarQueryParameter = {};
|
|
694
|
-
// authentication JWT required
|
|
695
|
-
// http bearer authentication required
|
|
696
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
697
719
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
698
720
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
699
721
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
700
722
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
701
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
723
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationResetTokenRequest, localVarRequestOptions, configuration);
|
|
702
724
|
return {
|
|
703
725
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
704
726
|
options: localVarRequestOptions,
|
|
@@ -753,6 +775,19 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
753
775
|
const operationBasePath = base_1.operationServerMap['AuthenticateApi.confirmQRCode']?.[index]?.url;
|
|
754
776
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
755
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
|
+
},
|
|
756
791
|
/**
|
|
757
792
|
*
|
|
758
793
|
* @summary Generate a QR code for authentication
|
|
@@ -869,105 +904,92 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
869
904
|
},
|
|
870
905
|
/**
|
|
871
906
|
*
|
|
872
|
-
* @summary
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {*} [options] Override http request option.
|
|
875
|
-
* @throws {RequiredError}
|
|
876
|
-
*/
|
|
877
|
-
async mockAuthentication(authenticationMockRequest, options) {
|
|
878
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.mockAuthentication(authenticationMockRequest, options);
|
|
879
|
-
const index = configuration?.serverIndex ?? 0;
|
|
880
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.mockAuthentication']?.[index]?.url;
|
|
881
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
882
|
-
},
|
|
883
|
-
/**
|
|
884
|
-
*
|
|
885
|
-
* @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
|
|
886
909
|
* @param {*} [options] Override http request option.
|
|
887
910
|
* @throws {RequiredError}
|
|
888
911
|
*/
|
|
889
|
-
async
|
|
890
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
912
|
+
async memberPINAuthentication(memberAuthenticationPinRequest, options) {
|
|
913
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.memberPINAuthentication(memberAuthenticationPinRequest, options);
|
|
891
914
|
const index = configuration?.serverIndex ?? 0;
|
|
892
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
915
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPINAuthentication']?.[index]?.url;
|
|
893
916
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
894
917
|
},
|
|
895
918
|
/**
|
|
896
919
|
*
|
|
897
|
-
* @summary
|
|
898
|
-
* @param {
|
|
920
|
+
* @summary Mock login and hand out token.
|
|
921
|
+
* @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
|
|
899
922
|
* @param {*} [options] Override http request option.
|
|
900
923
|
* @throws {RequiredError}
|
|
901
924
|
*/
|
|
902
|
-
async
|
|
903
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
925
|
+
async mockAuthentication(authenticationMockRequest, options) {
|
|
926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mockAuthentication(authenticationMockRequest, options);
|
|
904
927
|
const index = configuration?.serverIndex ?? 0;
|
|
905
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
928
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.mockAuthentication']?.[index]?.url;
|
|
906
929
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
907
930
|
},
|
|
908
931
|
/**
|
|
909
932
|
*
|
|
910
|
-
* @summary
|
|
911
|
-
* @param {
|
|
933
|
+
* @summary NFC authentication that requires POS user authentication
|
|
934
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
912
935
|
* @param {*} [options] Override http request option.
|
|
913
936
|
* @throws {RequiredError}
|
|
914
937
|
*/
|
|
915
|
-
async
|
|
916
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
938
|
+
async nfcAuthentication(authenticationNfcRequest, options) {
|
|
939
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.nfcAuthentication(authenticationNfcRequest, options);
|
|
917
940
|
const index = configuration?.serverIndex ?? 0;
|
|
918
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
941
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.nfcAuthentication']?.[index]?.url;
|
|
919
942
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
920
943
|
},
|
|
921
944
|
/**
|
|
922
945
|
*
|
|
923
|
-
* @summary
|
|
924
|
-
* @param {
|
|
946
|
+
* @summary PIN authentication that requires POS user authentication
|
|
947
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
925
948
|
* @param {*} [options] Override http request option.
|
|
926
949
|
* @throws {RequiredError}
|
|
927
950
|
*/
|
|
928
|
-
async
|
|
929
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
951
|
+
async pinAuthentication(authenticationPinRequest, options) {
|
|
952
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pinAuthentication(authenticationPinRequest, options);
|
|
930
953
|
const index = configuration?.serverIndex ?? 0;
|
|
931
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
954
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.pinAuthentication']?.[index]?.url;
|
|
932
955
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
933
956
|
},
|
|
934
957
|
/**
|
|
935
958
|
*
|
|
936
|
-
* @summary
|
|
937
|
-
* @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
|
|
938
960
|
* @param {*} [options] Override http request option.
|
|
939
961
|
* @throws {RequiredError}
|
|
940
962
|
*/
|
|
941
|
-
async
|
|
942
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
963
|
+
async refreshToken(options) {
|
|
964
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(options);
|
|
943
965
|
const index = configuration?.serverIndex ?? 0;
|
|
944
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
966
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.refreshToken']?.[index]?.url;
|
|
945
967
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
946
968
|
},
|
|
947
969
|
/**
|
|
948
970
|
*
|
|
949
|
-
* @summary
|
|
950
|
-
* @param {
|
|
971
|
+
* @summary Creates a reset token for the local authentication
|
|
972
|
+
* @param {ResetLocalRequest} resetLocalRequest The reset info.
|
|
951
973
|
* @param {*} [options] Override http request option.
|
|
952
974
|
* @throws {RequiredError}
|
|
953
975
|
*/
|
|
954
|
-
async
|
|
955
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
976
|
+
async resetLocal(resetLocalRequest, options) {
|
|
977
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocal(resetLocalRequest, options);
|
|
956
978
|
const index = configuration?.serverIndex ?? 0;
|
|
957
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
979
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocal']?.[index]?.url;
|
|
958
980
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
959
981
|
},
|
|
960
982
|
/**
|
|
961
983
|
*
|
|
962
|
-
* @summary
|
|
963
|
-
* @param {
|
|
984
|
+
* @summary Reset local authentication using the provided token
|
|
985
|
+
* @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
|
|
964
986
|
* @param {*} [options] Override http request option.
|
|
965
987
|
* @throws {RequiredError}
|
|
966
988
|
*/
|
|
967
|
-
async
|
|
968
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
989
|
+
async resetLocalWithToken(authenticationResetTokenRequest, options) {
|
|
990
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocalWithToken(authenticationResetTokenRequest, options);
|
|
969
991
|
const index = configuration?.serverIndex ?? 0;
|
|
970
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
992
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocalWithToken']?.[index]?.url;
|
|
971
993
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
972
994
|
},
|
|
973
995
|
};
|
|
@@ -1010,6 +1032,16 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1010
1032
|
confirmQRCode(requestParameters, options) {
|
|
1011
1033
|
return localVarFp.confirmQRCode(requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
1012
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
|
+
},
|
|
1013
1045
|
/**
|
|
1014
1046
|
*
|
|
1015
1047
|
* @summary Generate a QR code for authentication
|
|
@@ -1099,82 +1131,72 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1099
1131
|
},
|
|
1100
1132
|
/**
|
|
1101
1133
|
*
|
|
1102
|
-
* @summary
|
|
1103
|
-
* @param {
|
|
1104
|
-
* @param {*} [options] Override http request option.
|
|
1105
|
-
* @throws {RequiredError}
|
|
1106
|
-
*/
|
|
1107
|
-
mockAuthentication(requestParameters, options) {
|
|
1108
|
-
return localVarFp.mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(axios, basePath));
|
|
1109
|
-
},
|
|
1110
|
-
/**
|
|
1111
|
-
*
|
|
1112
|
-
* @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.
|
|
1113
1136
|
* @param {*} [options] Override http request option.
|
|
1114
1137
|
* @throws {RequiredError}
|
|
1115
1138
|
*/
|
|
1116
|
-
|
|
1117
|
-
return localVarFp.
|
|
1139
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1140
|
+
return localVarFp.memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1118
1141
|
},
|
|
1119
1142
|
/**
|
|
1120
1143
|
*
|
|
1121
|
-
* @summary
|
|
1122
|
-
* @param {
|
|
1144
|
+
* @summary Mock login and hand out token.
|
|
1145
|
+
* @param {AuthenticateApiMockAuthenticationRequest} requestParameters Request parameters.
|
|
1123
1146
|
* @param {*} [options] Override http request option.
|
|
1124
1147
|
* @throws {RequiredError}
|
|
1125
1148
|
*/
|
|
1126
|
-
|
|
1127
|
-
return localVarFp.
|
|
1149
|
+
mockAuthentication(requestParameters, options) {
|
|
1150
|
+
return localVarFp.mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(axios, basePath));
|
|
1128
1151
|
},
|
|
1129
1152
|
/**
|
|
1130
1153
|
*
|
|
1131
|
-
* @summary
|
|
1132
|
-
* @param {
|
|
1154
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1155
|
+
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1133
1156
|
* @param {*} [options] Override http request option.
|
|
1134
1157
|
* @throws {RequiredError}
|
|
1135
1158
|
*/
|
|
1136
|
-
|
|
1137
|
-
return localVarFp.
|
|
1159
|
+
nfcAuthentication(requestParameters, options) {
|
|
1160
|
+
return localVarFp.nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(axios, basePath));
|
|
1138
1161
|
},
|
|
1139
1162
|
/**
|
|
1140
1163
|
*
|
|
1141
|
-
* @summary
|
|
1142
|
-
* @param {
|
|
1164
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1165
|
+
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1143
1166
|
* @param {*} [options] Override http request option.
|
|
1144
1167
|
* @throws {RequiredError}
|
|
1145
1168
|
*/
|
|
1146
|
-
|
|
1147
|
-
return localVarFp.
|
|
1169
|
+
pinAuthentication(requestParameters, options) {
|
|
1170
|
+
return localVarFp.pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1148
1171
|
},
|
|
1149
1172
|
/**
|
|
1150
1173
|
*
|
|
1151
|
-
* @summary
|
|
1152
|
-
* @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1174
|
+
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
1153
1175
|
* @param {*} [options] Override http request option.
|
|
1154
1176
|
* @throws {RequiredError}
|
|
1155
1177
|
*/
|
|
1156
|
-
|
|
1157
|
-
return localVarFp.
|
|
1178
|
+
refreshToken(options) {
|
|
1179
|
+
return localVarFp.refreshToken(options).then((request) => request(axios, basePath));
|
|
1158
1180
|
},
|
|
1159
1181
|
/**
|
|
1160
1182
|
*
|
|
1161
|
-
* @summary
|
|
1162
|
-
* @param {
|
|
1183
|
+
* @summary Creates a reset token for the local authentication
|
|
1184
|
+
* @param {AuthenticateApiResetLocalRequest} requestParameters Request parameters.
|
|
1163
1185
|
* @param {*} [options] Override http request option.
|
|
1164
1186
|
* @throws {RequiredError}
|
|
1165
1187
|
*/
|
|
1166
|
-
|
|
1167
|
-
return localVarFp.
|
|
1188
|
+
resetLocal(requestParameters, options) {
|
|
1189
|
+
return localVarFp.resetLocal(requestParameters.resetLocalRequest, options).then((request) => request(axios, basePath));
|
|
1168
1190
|
},
|
|
1169
1191
|
/**
|
|
1170
1192
|
*
|
|
1171
|
-
* @summary
|
|
1172
|
-
* @param {
|
|
1193
|
+
* @summary Reset local authentication using the provided token
|
|
1194
|
+
* @param {AuthenticateApiResetLocalWithTokenRequest} requestParameters Request parameters.
|
|
1173
1195
|
* @param {*} [options] Override http request option.
|
|
1174
1196
|
* @throws {RequiredError}
|
|
1175
1197
|
*/
|
|
1176
|
-
|
|
1177
|
-
return localVarFp.
|
|
1198
|
+
resetLocalWithToken(requestParameters, options) {
|
|
1199
|
+
return localVarFp.resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(axios, basePath));
|
|
1178
1200
|
},
|
|
1179
1201
|
};
|
|
1180
1202
|
};
|
|
@@ -1219,6 +1241,17 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1219
1241
|
confirmQRCode(requestParameters, options) {
|
|
1220
1242
|
return (0, exports.AuthenticateApiFp)(this.configuration).confirmQRCode(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1221
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
|
+
}
|
|
1222
1255
|
/**
|
|
1223
1256
|
*
|
|
1224
1257
|
* @summary Generate a QR code for authentication
|
|
@@ -1315,6 +1348,17 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1315
1348
|
localAuthentication(requestParameters, options) {
|
|
1316
1349
|
return (0, exports.AuthenticateApiFp)(this.configuration).localAuthentication(requestParameters.authenticationLocalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1317
1350
|
}
|
|
1351
|
+
/**
|
|
1352
|
+
*
|
|
1353
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
1354
|
+
* @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1355
|
+
* @param {*} [options] Override http request option.
|
|
1356
|
+
* @throws {RequiredError}
|
|
1357
|
+
* @memberof AuthenticateApi
|
|
1358
|
+
*/
|
|
1359
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1360
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1361
|
+
}
|
|
1318
1362
|
/**
|
|
1319
1363
|
*
|
|
1320
1364
|
* @summary Mock login and hand out token.
|
|
@@ -1326,6 +1370,28 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1326
1370
|
mockAuthentication(requestParameters, options) {
|
|
1327
1371
|
return (0, exports.AuthenticateApiFp)(this.configuration).mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1328
1372
|
}
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1376
|
+
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
* @memberof AuthenticateApi
|
|
1380
|
+
*/
|
|
1381
|
+
nfcAuthentication(requestParameters, options) {
|
|
1382
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
*
|
|
1386
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1387
|
+
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1388
|
+
* @param {*} [options] Override http request option.
|
|
1389
|
+
* @throws {RequiredError}
|
|
1390
|
+
* @memberof AuthenticateApi
|
|
1391
|
+
*/
|
|
1392
|
+
pinAuthentication(requestParameters, options) {
|
|
1393
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1394
|
+
}
|
|
1329
1395
|
/**
|
|
1330
1396
|
*
|
|
1331
1397
|
* @summary Get a new JWT token, maintaining the same access level (posId) as the original token
|
|
@@ -1358,50 +1424,6 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1358
1424
|
resetLocalWithToken(requestParameters, options) {
|
|
1359
1425
|
return (0, exports.AuthenticateApiFp)(this.configuration).resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1360
1426
|
}
|
|
1361
|
-
/**
|
|
1362
|
-
*
|
|
1363
|
-
* @summary Secure EAN authentication that requires POS user authentication
|
|
1364
|
-
* @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
|
|
1365
|
-
* @param {*} [options] Override http request option.
|
|
1366
|
-
* @throws {RequiredError}
|
|
1367
|
-
* @memberof AuthenticateApi
|
|
1368
|
-
*/
|
|
1369
|
-
secureEanAuthentication(requestParameters, options) {
|
|
1370
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).secureEanAuthentication(requestParameters.authenticationSecureEanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1371
|
-
}
|
|
1372
|
-
/**
|
|
1373
|
-
*
|
|
1374
|
-
* @summary Secure member PIN authentication that requires POS user authentication
|
|
1375
|
-
* @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1376
|
-
* @param {*} [options] Override http request option.
|
|
1377
|
-
* @throws {RequiredError}
|
|
1378
|
-
* @memberof AuthenticateApi
|
|
1379
|
-
*/
|
|
1380
|
-
secureMemberPINAuthentication(requestParameters, options) {
|
|
1381
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).secureMemberPINAuthentication(requestParameters.memberAuthenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1382
|
-
}
|
|
1383
|
-
/**
|
|
1384
|
-
*
|
|
1385
|
-
* @summary Secure NFC authentication that requires POS user authentication
|
|
1386
|
-
* @param {AuthenticateApiSecureNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1387
|
-
* @param {*} [options] Override http request option.
|
|
1388
|
-
* @throws {RequiredError}
|
|
1389
|
-
* @memberof AuthenticateApi
|
|
1390
|
-
*/
|
|
1391
|
-
secureNfcAuthentication(requestParameters, options) {
|
|
1392
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).secureNfcAuthentication(requestParameters.authenticationSecureNfcRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1393
|
-
}
|
|
1394
|
-
/**
|
|
1395
|
-
*
|
|
1396
|
-
* @summary Secure PIN authentication that requires POS user authentication
|
|
1397
|
-
* @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
|
|
1398
|
-
* @param {*} [options] Override http request option.
|
|
1399
|
-
* @throws {RequiredError}
|
|
1400
|
-
* @memberof AuthenticateApi
|
|
1401
|
-
*/
|
|
1402
|
-
securePINAuthentication(requestParameters, options) {
|
|
1403
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1404
|
-
}
|
|
1405
1427
|
}
|
|
1406
1428
|
exports.AuthenticateApi = AuthenticateApi;
|
|
1407
1429
|
/**
|
|
@@ -6125,161 +6147,805 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6125
6147
|
* @param {*} [options] Override http request option.
|
|
6126
6148
|
* @throws {RequiredError}
|
|
6127
6149
|
*/
|
|
6128
|
-
getSingleInvoiceUser(requestParameters, options) {
|
|
6129
|
-
return localVarFp.getSingleInvoiceUser(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6150
|
+
getSingleInvoiceUser(requestParameters, options) {
|
|
6151
|
+
return localVarFp.getSingleInvoiceUser(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6152
|
+
},
|
|
6153
|
+
/**
|
|
6154
|
+
*
|
|
6155
|
+
* @summary Update or create invoice user defaults.
|
|
6156
|
+
* @param {InvoicesApiPutInvoiceUserRequest} requestParameters Request parameters.
|
|
6157
|
+
* @param {*} [options] Override http request option.
|
|
6158
|
+
* @throws {RequiredError}
|
|
6159
|
+
*/
|
|
6160
|
+
putInvoiceUser(requestParameters, options) {
|
|
6161
|
+
return localVarFp.putInvoiceUser(requestParameters.id, requestParameters.updateInvoiceUserRequest, options).then((request) => request(axios, basePath));
|
|
6162
|
+
},
|
|
6163
|
+
/**
|
|
6164
|
+
*
|
|
6165
|
+
* @summary Adds an invoice to the system.
|
|
6166
|
+
* @param {InvoicesApiUpdateInvoiceRequest} requestParameters Request parameters.
|
|
6167
|
+
* @param {*} [options] Override http request option.
|
|
6168
|
+
* @throws {RequiredError}
|
|
6169
|
+
*/
|
|
6170
|
+
updateInvoice(requestParameters, options) {
|
|
6171
|
+
return localVarFp.updateInvoice(requestParameters.id, requestParameters.updateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
6172
|
+
},
|
|
6173
|
+
};
|
|
6174
|
+
};
|
|
6175
|
+
exports.InvoicesApiFactory = InvoicesApiFactory;
|
|
6176
|
+
/**
|
|
6177
|
+
* InvoicesApi - object-oriented interface
|
|
6178
|
+
* @export
|
|
6179
|
+
* @class InvoicesApi
|
|
6180
|
+
* @extends {BaseAPI}
|
|
6181
|
+
*/
|
|
6182
|
+
class InvoicesApi extends base_1.BaseAPI {
|
|
6183
|
+
/**
|
|
6184
|
+
*
|
|
6185
|
+
* @summary Adds an invoice to the system.
|
|
6186
|
+
* @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
|
|
6187
|
+
* @param {*} [options] Override http request option.
|
|
6188
|
+
* @throws {RequiredError}
|
|
6189
|
+
* @memberof InvoicesApi
|
|
6190
|
+
*/
|
|
6191
|
+
createInvoice(requestParameters, options) {
|
|
6192
|
+
return (0, exports.InvoicesApiFp)(this.configuration).createInvoice(requestParameters.createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6193
|
+
}
|
|
6194
|
+
/**
|
|
6195
|
+
*
|
|
6196
|
+
* @summary Deletes an invoice.
|
|
6197
|
+
* @param {InvoicesApiDeleteInvoiceRequest} requestParameters Request parameters.
|
|
6198
|
+
* @param {*} [options] Override http request option.
|
|
6199
|
+
* @throws {RequiredError}
|
|
6200
|
+
* @memberof InvoicesApi
|
|
6201
|
+
*/
|
|
6202
|
+
deleteInvoice(requestParameters, options) {
|
|
6203
|
+
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6204
|
+
}
|
|
6205
|
+
/**
|
|
6206
|
+
*
|
|
6207
|
+
* @summary Delete invoice user defaults.
|
|
6208
|
+
* @param {InvoicesApiDeleteInvoiceUserRequest} requestParameters Request parameters.
|
|
6209
|
+
* @param {*} [options] Override http request option.
|
|
6210
|
+
* @throws {RequiredError}
|
|
6211
|
+
* @memberof InvoicesApi
|
|
6212
|
+
*/
|
|
6213
|
+
deleteInvoiceUser(requestParameters, options) {
|
|
6214
|
+
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6215
|
+
}
|
|
6216
|
+
/**
|
|
6217
|
+
*
|
|
6218
|
+
* @summary Returns all invoices in the system.
|
|
6219
|
+
* @param {InvoicesApiGetAllInvoicesRequest} requestParameters Request parameters.
|
|
6220
|
+
* @param {*} [options] Override http request option.
|
|
6221
|
+
* @throws {RequiredError}
|
|
6222
|
+
* @memberof InvoicesApi
|
|
6223
|
+
*/
|
|
6224
|
+
getAllInvoices(requestParameters = {}, options) {
|
|
6225
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6226
|
+
}
|
|
6227
|
+
/**
|
|
6228
|
+
*
|
|
6229
|
+
* @summary Get eligible transactions for invoice creation.
|
|
6230
|
+
* @param {InvoicesApiGetEligibleTransactionsRequest} requestParameters Request parameters.
|
|
6231
|
+
* @param {*} [options] Override http request option.
|
|
6232
|
+
* @throws {RequiredError}
|
|
6233
|
+
* @memberof InvoicesApi
|
|
6234
|
+
*/
|
|
6235
|
+
getEligibleTransactions(requestParameters, options) {
|
|
6236
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
|
|
6237
|
+
}
|
|
6238
|
+
/**
|
|
6239
|
+
*
|
|
6240
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6241
|
+
* @param {*} [options] Override http request option.
|
|
6242
|
+
* @throws {RequiredError}
|
|
6243
|
+
* @memberof InvoicesApi
|
|
6244
|
+
*/
|
|
6245
|
+
getInvoiceDrift(options) {
|
|
6246
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
|
|
6247
|
+
}
|
|
6248
|
+
/**
|
|
6249
|
+
*
|
|
6250
|
+
* @summary Get an invoice pdf.
|
|
6251
|
+
* @param {InvoicesApiGetInvoicePdfRequest} requestParameters Request parameters.
|
|
6252
|
+
* @param {*} [options] Override http request option.
|
|
6253
|
+
* @throws {RequiredError}
|
|
6254
|
+
* @memberof InvoicesApi
|
|
6255
|
+
*/
|
|
6256
|
+
getInvoicePdf(requestParameters, options) {
|
|
6257
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(requestParameters.id, requestParameters.force, options).then((request) => request(this.axios, this.basePath));
|
|
6258
|
+
}
|
|
6259
|
+
/**
|
|
6260
|
+
*
|
|
6261
|
+
* @summary Returns a single invoice in the system.
|
|
6262
|
+
* @param {InvoicesApiGetSingleInvoiceRequest} requestParameters Request parameters.
|
|
6263
|
+
* @param {*} [options] Override http request option.
|
|
6264
|
+
* @throws {RequiredError}
|
|
6265
|
+
* @memberof InvoicesApi
|
|
6266
|
+
*/
|
|
6267
|
+
getSingleInvoice(requestParameters, options) {
|
|
6268
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoice(requestParameters.id, requestParameters.returnEntries, options).then((request) => request(this.axios, this.basePath));
|
|
6269
|
+
}
|
|
6270
|
+
/**
|
|
6271
|
+
*
|
|
6272
|
+
* @summary Get invoice user defaults.
|
|
6273
|
+
* @param {InvoicesApiGetSingleInvoiceUserRequest} requestParameters Request parameters.
|
|
6274
|
+
* @param {*} [options] Override http request option.
|
|
6275
|
+
* @throws {RequiredError}
|
|
6276
|
+
* @memberof InvoicesApi
|
|
6277
|
+
*/
|
|
6278
|
+
getSingleInvoiceUser(requestParameters, options) {
|
|
6279
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6280
|
+
}
|
|
6281
|
+
/**
|
|
6282
|
+
*
|
|
6283
|
+
* @summary Update or create invoice user defaults.
|
|
6284
|
+
* @param {InvoicesApiPutInvoiceUserRequest} requestParameters Request parameters.
|
|
6285
|
+
* @param {*} [options] Override http request option.
|
|
6286
|
+
* @throws {RequiredError}
|
|
6287
|
+
* @memberof InvoicesApi
|
|
6288
|
+
*/
|
|
6289
|
+
putInvoiceUser(requestParameters, options) {
|
|
6290
|
+
return (0, exports.InvoicesApiFp)(this.configuration).putInvoiceUser(requestParameters.id, requestParameters.updateInvoiceUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6291
|
+
}
|
|
6292
|
+
/**
|
|
6293
|
+
*
|
|
6294
|
+
* @summary Adds an invoice to the system.
|
|
6295
|
+
* @param {InvoicesApiUpdateInvoiceRequest} requestParameters Request parameters.
|
|
6296
|
+
* @param {*} [options] Override http request option.
|
|
6297
|
+
* @throws {RequiredError}
|
|
6298
|
+
* @memberof InvoicesApi
|
|
6299
|
+
*/
|
|
6300
|
+
updateInvoice(requestParameters, options) {
|
|
6301
|
+
return (0, exports.InvoicesApiFp)(this.configuration).updateInvoice(requestParameters.id, requestParameters.updateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
exports.InvoicesApi = InvoicesApi;
|
|
6305
|
+
/**
|
|
6306
|
+
* PaymentRequestsApi - axios parameter creator
|
|
6307
|
+
* @export
|
|
6308
|
+
*/
|
|
6309
|
+
const PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
6310
|
+
return {
|
|
6311
|
+
/**
|
|
6312
|
+
*
|
|
6313
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6314
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6315
|
+
* @param {*} [options] Override http request option.
|
|
6316
|
+
* @throws {RequiredError}
|
|
6317
|
+
*/
|
|
6318
|
+
cancelPaymentRequest: async (id, options = {}) => {
|
|
6319
|
+
// verify required parameter 'id' is not null or undefined
|
|
6320
|
+
(0, common_1.assertParamExists)('cancelPaymentRequest', 'id', id);
|
|
6321
|
+
const localVarPath = `/payment-requests/{id}/cancel`
|
|
6322
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6324
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6325
|
+
let baseOptions;
|
|
6326
|
+
if (configuration) {
|
|
6327
|
+
baseOptions = configuration.baseOptions;
|
|
6328
|
+
}
|
|
6329
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6330
|
+
const localVarHeaderParameter = {};
|
|
6331
|
+
const localVarQueryParameter = {};
|
|
6332
|
+
// authentication JWT required
|
|
6333
|
+
// http bearer authentication required
|
|
6334
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6335
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6337
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6338
|
+
return {
|
|
6339
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6340
|
+
options: localVarRequestOptions,
|
|
6341
|
+
};
|
|
6342
|
+
},
|
|
6343
|
+
/**
|
|
6344
|
+
*
|
|
6345
|
+
* @summary Create a new PaymentRequest.
|
|
6346
|
+
* @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
|
|
6347
|
+
* @param {*} [options] Override http request option.
|
|
6348
|
+
* @throws {RequiredError}
|
|
6349
|
+
*/
|
|
6350
|
+
createPaymentRequest: async (createPaymentRequestRequest, options = {}) => {
|
|
6351
|
+
// verify required parameter 'createPaymentRequestRequest' is not null or undefined
|
|
6352
|
+
(0, common_1.assertParamExists)('createPaymentRequest', 'createPaymentRequestRequest', createPaymentRequestRequest);
|
|
6353
|
+
const localVarPath = `/payment-requests`;
|
|
6354
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6355
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6356
|
+
let baseOptions;
|
|
6357
|
+
if (configuration) {
|
|
6358
|
+
baseOptions = configuration.baseOptions;
|
|
6359
|
+
}
|
|
6360
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6361
|
+
const localVarHeaderParameter = {};
|
|
6362
|
+
const localVarQueryParameter = {};
|
|
6363
|
+
// authentication JWT required
|
|
6364
|
+
// http bearer authentication required
|
|
6365
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6366
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6367
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6369
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6370
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentRequestRequest, localVarRequestOptions, configuration);
|
|
6371
|
+
return {
|
|
6372
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6373
|
+
options: localVarRequestOptions,
|
|
6374
|
+
};
|
|
6375
|
+
},
|
|
6376
|
+
/**
|
|
6377
|
+
*
|
|
6378
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6379
|
+
* @param {number} [forId] Filter by beneficiary user id.
|
|
6380
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
6381
|
+
* @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
6382
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
6383
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
6384
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
6385
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
6386
|
+
* @param {*} [options] Override http request option.
|
|
6387
|
+
* @throws {RequiredError}
|
|
6388
|
+
*/
|
|
6389
|
+
getAllPaymentRequests: async (forId, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
|
|
6390
|
+
const localVarPath = `/payment-requests`;
|
|
6391
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6392
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6393
|
+
let baseOptions;
|
|
6394
|
+
if (configuration) {
|
|
6395
|
+
baseOptions = configuration.baseOptions;
|
|
6396
|
+
}
|
|
6397
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6398
|
+
const localVarHeaderParameter = {};
|
|
6399
|
+
const localVarQueryParameter = {};
|
|
6400
|
+
// authentication JWT required
|
|
6401
|
+
// http bearer authentication required
|
|
6402
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6403
|
+
if (forId !== undefined) {
|
|
6404
|
+
localVarQueryParameter['forId'] = forId;
|
|
6405
|
+
}
|
|
6406
|
+
if (createdById !== undefined) {
|
|
6407
|
+
localVarQueryParameter['createdById'] = createdById;
|
|
6408
|
+
}
|
|
6409
|
+
if (status !== undefined) {
|
|
6410
|
+
localVarQueryParameter['status'] = status;
|
|
6411
|
+
}
|
|
6412
|
+
if (fromDate !== undefined) {
|
|
6413
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
6414
|
+
}
|
|
6415
|
+
if (tillDate !== undefined) {
|
|
6416
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
6417
|
+
}
|
|
6418
|
+
if (take !== undefined) {
|
|
6419
|
+
localVarQueryParameter['take'] = take;
|
|
6420
|
+
}
|
|
6421
|
+
if (skip !== undefined) {
|
|
6422
|
+
localVarQueryParameter['skip'] = skip;
|
|
6423
|
+
}
|
|
6424
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6425
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6426
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6427
|
+
return {
|
|
6428
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6429
|
+
options: localVarRequestOptions,
|
|
6430
|
+
};
|
|
6431
|
+
},
|
|
6432
|
+
/**
|
|
6433
|
+
*
|
|
6434
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6435
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6436
|
+
* @param {*} [options] Override http request option.
|
|
6437
|
+
* @throws {RequiredError}
|
|
6438
|
+
*/
|
|
6439
|
+
getSinglePaymentRequest: async (id, options = {}) => {
|
|
6440
|
+
// verify required parameter 'id' is not null or undefined
|
|
6441
|
+
(0, common_1.assertParamExists)('getSinglePaymentRequest', 'id', id);
|
|
6442
|
+
const localVarPath = `/payment-requests/{id}`
|
|
6443
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6444
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6445
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6446
|
+
let baseOptions;
|
|
6447
|
+
if (configuration) {
|
|
6448
|
+
baseOptions = configuration.baseOptions;
|
|
6449
|
+
}
|
|
6450
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6451
|
+
const localVarHeaderParameter = {};
|
|
6452
|
+
const localVarQueryParameter = {};
|
|
6453
|
+
// authentication JWT required
|
|
6454
|
+
// http bearer authentication required
|
|
6455
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6456
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6457
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6458
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6459
|
+
return {
|
|
6460
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6461
|
+
options: localVarRequestOptions,
|
|
6462
|
+
};
|
|
6463
|
+
},
|
|
6464
|
+
/**
|
|
6465
|
+
*
|
|
6466
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6467
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6468
|
+
* @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
|
|
6469
|
+
* @param {*} [options] Override http request option.
|
|
6470
|
+
* @throws {RequiredError}
|
|
6471
|
+
*/
|
|
6472
|
+
markPaymentRequestFulfilledExternally: async (id, markFulfilledExternallyRequest, options = {}) => {
|
|
6473
|
+
// verify required parameter 'id' is not null or undefined
|
|
6474
|
+
(0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'id', id);
|
|
6475
|
+
// verify required parameter 'markFulfilledExternallyRequest' is not null or undefined
|
|
6476
|
+
(0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'markFulfilledExternallyRequest', markFulfilledExternallyRequest);
|
|
6477
|
+
const localVarPath = `/payment-requests/{id}/mark-fulfilled`
|
|
6478
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6479
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6480
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6481
|
+
let baseOptions;
|
|
6482
|
+
if (configuration) {
|
|
6483
|
+
baseOptions = configuration.baseOptions;
|
|
6484
|
+
}
|
|
6485
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6486
|
+
const localVarHeaderParameter = {};
|
|
6487
|
+
const localVarQueryParameter = {};
|
|
6488
|
+
// authentication JWT required
|
|
6489
|
+
// http bearer authentication required
|
|
6490
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6491
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6492
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6494
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6495
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markFulfilledExternallyRequest, localVarRequestOptions, configuration);
|
|
6496
|
+
return {
|
|
6497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6498
|
+
options: localVarRequestOptions,
|
|
6499
|
+
};
|
|
6500
|
+
},
|
|
6501
|
+
/**
|
|
6502
|
+
*
|
|
6503
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6504
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6505
|
+
* @param {*} [options] Override http request option.
|
|
6506
|
+
* @throws {RequiredError}
|
|
6507
|
+
*/
|
|
6508
|
+
startPaymentRequestAuthenticated: async (id, options = {}) => {
|
|
6509
|
+
// verify required parameter 'id' is not null or undefined
|
|
6510
|
+
(0, common_1.assertParamExists)('startPaymentRequestAuthenticated', 'id', id);
|
|
6511
|
+
const localVarPath = `/payment-requests/{id}/start`
|
|
6512
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6513
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6514
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6515
|
+
let baseOptions;
|
|
6516
|
+
if (configuration) {
|
|
6517
|
+
baseOptions = configuration.baseOptions;
|
|
6518
|
+
}
|
|
6519
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6520
|
+
const localVarHeaderParameter = {};
|
|
6521
|
+
const localVarQueryParameter = {};
|
|
6522
|
+
// authentication JWT required
|
|
6523
|
+
// http bearer authentication required
|
|
6524
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6525
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6526
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6527
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6528
|
+
return {
|
|
6529
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6530
|
+
options: localVarRequestOptions,
|
|
6531
|
+
};
|
|
6532
|
+
},
|
|
6533
|
+
};
|
|
6534
|
+
};
|
|
6535
|
+
exports.PaymentRequestsApiAxiosParamCreator = PaymentRequestsApiAxiosParamCreator;
|
|
6536
|
+
/**
|
|
6537
|
+
* PaymentRequestsApi - functional programming interface
|
|
6538
|
+
* @export
|
|
6539
|
+
*/
|
|
6540
|
+
const PaymentRequestsApiFp = function (configuration) {
|
|
6541
|
+
const localVarAxiosParamCreator = (0, exports.PaymentRequestsApiAxiosParamCreator)(configuration);
|
|
6542
|
+
return {
|
|
6543
|
+
/**
|
|
6544
|
+
*
|
|
6545
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6546
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6547
|
+
* @param {*} [options] Override http request option.
|
|
6548
|
+
* @throws {RequiredError}
|
|
6549
|
+
*/
|
|
6550
|
+
async cancelPaymentRequest(id, options) {
|
|
6551
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPaymentRequest(id, options);
|
|
6552
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6553
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.cancelPaymentRequest']?.[index]?.url;
|
|
6554
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6555
|
+
},
|
|
6556
|
+
/**
|
|
6557
|
+
*
|
|
6558
|
+
* @summary Create a new PaymentRequest.
|
|
6559
|
+
* @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
|
|
6560
|
+
* @param {*} [options] Override http request option.
|
|
6561
|
+
* @throws {RequiredError}
|
|
6562
|
+
*/
|
|
6563
|
+
async createPaymentRequest(createPaymentRequestRequest, options) {
|
|
6564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequest, options);
|
|
6565
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6566
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.createPaymentRequest']?.[index]?.url;
|
|
6567
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6568
|
+
},
|
|
6569
|
+
/**
|
|
6570
|
+
*
|
|
6571
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6572
|
+
* @param {number} [forId] Filter by beneficiary user id.
|
|
6573
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
6574
|
+
* @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
6575
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
6576
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
6577
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
6578
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
6579
|
+
* @param {*} [options] Override http request option.
|
|
6580
|
+
* @throws {RequiredError}
|
|
6581
|
+
*/
|
|
6582
|
+
async getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options) {
|
|
6583
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options);
|
|
6584
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6585
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getAllPaymentRequests']?.[index]?.url;
|
|
6586
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6587
|
+
},
|
|
6588
|
+
/**
|
|
6589
|
+
*
|
|
6590
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6591
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6592
|
+
* @param {*} [options] Override http request option.
|
|
6593
|
+
* @throws {RequiredError}
|
|
6594
|
+
*/
|
|
6595
|
+
async getSinglePaymentRequest(id, options) {
|
|
6596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSinglePaymentRequest(id, options);
|
|
6597
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6598
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getSinglePaymentRequest']?.[index]?.url;
|
|
6599
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6600
|
+
},
|
|
6601
|
+
/**
|
|
6602
|
+
*
|
|
6603
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6604
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6605
|
+
* @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
|
|
6606
|
+
* @param {*} [options] Override http request option.
|
|
6607
|
+
* @throws {RequiredError}
|
|
6608
|
+
*/
|
|
6609
|
+
async markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options) {
|
|
6610
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options);
|
|
6611
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6612
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.markPaymentRequestFulfilledExternally']?.[index]?.url;
|
|
6613
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6614
|
+
},
|
|
6615
|
+
/**
|
|
6616
|
+
*
|
|
6617
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6618
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6619
|
+
* @param {*} [options] Override http request option.
|
|
6620
|
+
* @throws {RequiredError}
|
|
6621
|
+
*/
|
|
6622
|
+
async startPaymentRequestAuthenticated(id, options) {
|
|
6623
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestAuthenticated(id, options);
|
|
6624
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6625
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.startPaymentRequestAuthenticated']?.[index]?.url;
|
|
6626
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6627
|
+
},
|
|
6628
|
+
};
|
|
6629
|
+
};
|
|
6630
|
+
exports.PaymentRequestsApiFp = PaymentRequestsApiFp;
|
|
6631
|
+
/**
|
|
6632
|
+
* PaymentRequestsApi - factory interface
|
|
6633
|
+
* @export
|
|
6634
|
+
*/
|
|
6635
|
+
const PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
6636
|
+
const localVarFp = (0, exports.PaymentRequestsApiFp)(configuration);
|
|
6637
|
+
return {
|
|
6638
|
+
/**
|
|
6639
|
+
*
|
|
6640
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6641
|
+
* @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
|
|
6642
|
+
* @param {*} [options] Override http request option.
|
|
6643
|
+
* @throws {RequiredError}
|
|
6644
|
+
*/
|
|
6645
|
+
cancelPaymentRequest(requestParameters, options) {
|
|
6646
|
+
return localVarFp.cancelPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6647
|
+
},
|
|
6648
|
+
/**
|
|
6649
|
+
*
|
|
6650
|
+
* @summary Create a new PaymentRequest.
|
|
6651
|
+
* @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
|
|
6652
|
+
* @param {*} [options] Override http request option.
|
|
6653
|
+
* @throws {RequiredError}
|
|
6654
|
+
*/
|
|
6655
|
+
createPaymentRequest(requestParameters, options) {
|
|
6656
|
+
return localVarFp.createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(axios, basePath));
|
|
6657
|
+
},
|
|
6658
|
+
/**
|
|
6659
|
+
*
|
|
6660
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6661
|
+
* @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
|
|
6662
|
+
* @param {*} [options] Override http request option.
|
|
6663
|
+
* @throws {RequiredError}
|
|
6664
|
+
*/
|
|
6665
|
+
getAllPaymentRequests(requestParameters = {}, options) {
|
|
6666
|
+
return localVarFp.getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
6667
|
+
},
|
|
6668
|
+
/**
|
|
6669
|
+
*
|
|
6670
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6671
|
+
* @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
|
|
6672
|
+
* @param {*} [options] Override http request option.
|
|
6673
|
+
* @throws {RequiredError}
|
|
6674
|
+
*/
|
|
6675
|
+
getSinglePaymentRequest(requestParameters, options) {
|
|
6676
|
+
return localVarFp.getSinglePaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6677
|
+
},
|
|
6678
|
+
/**
|
|
6679
|
+
*
|
|
6680
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6681
|
+
* @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
|
|
6682
|
+
* @param {*} [options] Override http request option.
|
|
6683
|
+
* @throws {RequiredError}
|
|
6684
|
+
*/
|
|
6685
|
+
markPaymentRequestFulfilledExternally(requestParameters, options) {
|
|
6686
|
+
return localVarFp.markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(axios, basePath));
|
|
6687
|
+
},
|
|
6688
|
+
/**
|
|
6689
|
+
*
|
|
6690
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6691
|
+
* @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
|
|
6692
|
+
* @param {*} [options] Override http request option.
|
|
6693
|
+
* @throws {RequiredError}
|
|
6694
|
+
*/
|
|
6695
|
+
startPaymentRequestAuthenticated(requestParameters, options) {
|
|
6696
|
+
return localVarFp.startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6697
|
+
},
|
|
6698
|
+
};
|
|
6699
|
+
};
|
|
6700
|
+
exports.PaymentRequestsApiFactory = PaymentRequestsApiFactory;
|
|
6701
|
+
/**
|
|
6702
|
+
* PaymentRequestsApi - object-oriented interface
|
|
6703
|
+
* @export
|
|
6704
|
+
* @class PaymentRequestsApi
|
|
6705
|
+
* @extends {BaseAPI}
|
|
6706
|
+
*/
|
|
6707
|
+
class PaymentRequestsApi extends base_1.BaseAPI {
|
|
6708
|
+
/**
|
|
6709
|
+
*
|
|
6710
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6711
|
+
* @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
|
|
6712
|
+
* @param {*} [options] Override http request option.
|
|
6713
|
+
* @throws {RequiredError}
|
|
6714
|
+
* @memberof PaymentRequestsApi
|
|
6715
|
+
*/
|
|
6716
|
+
cancelPaymentRequest(requestParameters, options) {
|
|
6717
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).cancelPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6718
|
+
}
|
|
6719
|
+
/**
|
|
6720
|
+
*
|
|
6721
|
+
* @summary Create a new PaymentRequest.
|
|
6722
|
+
* @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
|
|
6723
|
+
* @param {*} [options] Override http request option.
|
|
6724
|
+
* @throws {RequiredError}
|
|
6725
|
+
* @memberof PaymentRequestsApi
|
|
6726
|
+
*/
|
|
6727
|
+
createPaymentRequest(requestParameters, options) {
|
|
6728
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6729
|
+
}
|
|
6730
|
+
/**
|
|
6731
|
+
*
|
|
6732
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6733
|
+
* @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
|
|
6734
|
+
* @param {*} [options] Override http request option.
|
|
6735
|
+
* @throws {RequiredError}
|
|
6736
|
+
* @memberof PaymentRequestsApi
|
|
6737
|
+
*/
|
|
6738
|
+
getAllPaymentRequests(requestParameters = {}, options) {
|
|
6739
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6740
|
+
}
|
|
6741
|
+
/**
|
|
6742
|
+
*
|
|
6743
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6744
|
+
* @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
|
|
6745
|
+
* @param {*} [options] Override http request option.
|
|
6746
|
+
* @throws {RequiredError}
|
|
6747
|
+
* @memberof PaymentRequestsApi
|
|
6748
|
+
*/
|
|
6749
|
+
getSinglePaymentRequest(requestParameters, options) {
|
|
6750
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).getSinglePaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6751
|
+
}
|
|
6752
|
+
/**
|
|
6753
|
+
*
|
|
6754
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6755
|
+
* @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
|
|
6756
|
+
* @param {*} [options] Override http request option.
|
|
6757
|
+
* @throws {RequiredError}
|
|
6758
|
+
* @memberof PaymentRequestsApi
|
|
6759
|
+
*/
|
|
6760
|
+
markPaymentRequestFulfilledExternally(requestParameters, options) {
|
|
6761
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6762
|
+
}
|
|
6763
|
+
/**
|
|
6764
|
+
*
|
|
6765
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6766
|
+
* @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
|
|
6767
|
+
* @param {*} [options] Override http request option.
|
|
6768
|
+
* @throws {RequiredError}
|
|
6769
|
+
* @memberof PaymentRequestsApi
|
|
6770
|
+
*/
|
|
6771
|
+
startPaymentRequestAuthenticated(requestParameters, options) {
|
|
6772
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6773
|
+
}
|
|
6774
|
+
}
|
|
6775
|
+
exports.PaymentRequestsApi = PaymentRequestsApi;
|
|
6776
|
+
/**
|
|
6777
|
+
* @export
|
|
6778
|
+
*/
|
|
6779
|
+
exports.GetAllPaymentRequestsStatusEnum = {
|
|
6780
|
+
Pending: 'PENDING',
|
|
6781
|
+
Paid: 'PAID',
|
|
6782
|
+
Expired: 'EXPIRED',
|
|
6783
|
+
Cancelled: 'CANCELLED'
|
|
6784
|
+
};
|
|
6785
|
+
/**
|
|
6786
|
+
* PaymentRequestsPublicApi - axios parameter creator
|
|
6787
|
+
* @export
|
|
6788
|
+
*/
|
|
6789
|
+
const PaymentRequestsPublicApiAxiosParamCreator = function (configuration) {
|
|
6790
|
+
return {
|
|
6791
|
+
/**
|
|
6792
|
+
*
|
|
6793
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6794
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6795
|
+
* @param {*} [options] Override http request option.
|
|
6796
|
+
* @throws {RequiredError}
|
|
6797
|
+
*/
|
|
6798
|
+
getPublicPaymentRequest: async (id, options = {}) => {
|
|
6799
|
+
// verify required parameter 'id' is not null or undefined
|
|
6800
|
+
(0, common_1.assertParamExists)('getPublicPaymentRequest', 'id', id);
|
|
6801
|
+
const localVarPath = `/payment-requests-public/{id}`
|
|
6802
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6804
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6805
|
+
let baseOptions;
|
|
6806
|
+
if (configuration) {
|
|
6807
|
+
baseOptions = configuration.baseOptions;
|
|
6808
|
+
}
|
|
6809
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6810
|
+
const localVarHeaderParameter = {};
|
|
6811
|
+
const localVarQueryParameter = {};
|
|
6812
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6814
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6815
|
+
return {
|
|
6816
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6817
|
+
options: localVarRequestOptions,
|
|
6818
|
+
};
|
|
6819
|
+
},
|
|
6820
|
+
/**
|
|
6821
|
+
*
|
|
6822
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6823
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6824
|
+
* @param {*} [options] Override http request option.
|
|
6825
|
+
* @throws {RequiredError}
|
|
6826
|
+
*/
|
|
6827
|
+
startPaymentRequestPublic: async (id, options = {}) => {
|
|
6828
|
+
// verify required parameter 'id' is not null or undefined
|
|
6829
|
+
(0, common_1.assertParamExists)('startPaymentRequestPublic', 'id', id);
|
|
6830
|
+
const localVarPath = `/payment-requests-public/{id}/start`
|
|
6831
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6832
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6833
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6834
|
+
let baseOptions;
|
|
6835
|
+
if (configuration) {
|
|
6836
|
+
baseOptions = configuration.baseOptions;
|
|
6837
|
+
}
|
|
6838
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6839
|
+
const localVarHeaderParameter = {};
|
|
6840
|
+
const localVarQueryParameter = {};
|
|
6841
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6842
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6843
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6844
|
+
return {
|
|
6845
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6846
|
+
options: localVarRequestOptions,
|
|
6847
|
+
};
|
|
6848
|
+
},
|
|
6849
|
+
};
|
|
6850
|
+
};
|
|
6851
|
+
exports.PaymentRequestsPublicApiAxiosParamCreator = PaymentRequestsPublicApiAxiosParamCreator;
|
|
6852
|
+
/**
|
|
6853
|
+
* PaymentRequestsPublicApi - functional programming interface
|
|
6854
|
+
* @export
|
|
6855
|
+
*/
|
|
6856
|
+
const PaymentRequestsPublicApiFp = function (configuration) {
|
|
6857
|
+
const localVarAxiosParamCreator = (0, exports.PaymentRequestsPublicApiAxiosParamCreator)(configuration);
|
|
6858
|
+
return {
|
|
6859
|
+
/**
|
|
6860
|
+
*
|
|
6861
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6862
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6863
|
+
* @param {*} [options] Override http request option.
|
|
6864
|
+
* @throws {RequiredError}
|
|
6865
|
+
*/
|
|
6866
|
+
async getPublicPaymentRequest(id, options) {
|
|
6867
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPaymentRequest(id, options);
|
|
6868
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6869
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.getPublicPaymentRequest']?.[index]?.url;
|
|
6870
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6871
|
+
},
|
|
6872
|
+
/**
|
|
6873
|
+
*
|
|
6874
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6875
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6876
|
+
* @param {*} [options] Override http request option.
|
|
6877
|
+
* @throws {RequiredError}
|
|
6878
|
+
*/
|
|
6879
|
+
async startPaymentRequestPublic(id, options) {
|
|
6880
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestPublic(id, options);
|
|
6881
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6882
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.startPaymentRequestPublic']?.[index]?.url;
|
|
6883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6130
6884
|
},
|
|
6885
|
+
};
|
|
6886
|
+
};
|
|
6887
|
+
exports.PaymentRequestsPublicApiFp = PaymentRequestsPublicApiFp;
|
|
6888
|
+
/**
|
|
6889
|
+
* PaymentRequestsPublicApi - factory interface
|
|
6890
|
+
* @export
|
|
6891
|
+
*/
|
|
6892
|
+
const PaymentRequestsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6893
|
+
const localVarFp = (0, exports.PaymentRequestsPublicApiFp)(configuration);
|
|
6894
|
+
return {
|
|
6131
6895
|
/**
|
|
6132
6896
|
*
|
|
6133
|
-
* @summary
|
|
6134
|
-
* @param {
|
|
6897
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6898
|
+
* @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
|
|
6135
6899
|
* @param {*} [options] Override http request option.
|
|
6136
6900
|
* @throws {RequiredError}
|
|
6137
6901
|
*/
|
|
6138
|
-
|
|
6139
|
-
return localVarFp.
|
|
6902
|
+
getPublicPaymentRequest(requestParameters, options) {
|
|
6903
|
+
return localVarFp.getPublicPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6140
6904
|
},
|
|
6141
6905
|
/**
|
|
6142
6906
|
*
|
|
6143
|
-
* @summary
|
|
6144
|
-
* @param {
|
|
6907
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6908
|
+
* @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
|
|
6145
6909
|
* @param {*} [options] Override http request option.
|
|
6146
6910
|
* @throws {RequiredError}
|
|
6147
6911
|
*/
|
|
6148
|
-
|
|
6149
|
-
return localVarFp.
|
|
6912
|
+
startPaymentRequestPublic(requestParameters, options) {
|
|
6913
|
+
return localVarFp.startPaymentRequestPublic(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6150
6914
|
},
|
|
6151
6915
|
};
|
|
6152
6916
|
};
|
|
6153
|
-
exports.
|
|
6917
|
+
exports.PaymentRequestsPublicApiFactory = PaymentRequestsPublicApiFactory;
|
|
6154
6918
|
/**
|
|
6155
|
-
*
|
|
6919
|
+
* PaymentRequestsPublicApi - object-oriented interface
|
|
6156
6920
|
* @export
|
|
6157
|
-
* @class
|
|
6921
|
+
* @class PaymentRequestsPublicApi
|
|
6158
6922
|
* @extends {BaseAPI}
|
|
6159
6923
|
*/
|
|
6160
|
-
class
|
|
6161
|
-
/**
|
|
6162
|
-
*
|
|
6163
|
-
* @summary Adds an invoice to the system.
|
|
6164
|
-
* @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
|
|
6165
|
-
* @param {*} [options] Override http request option.
|
|
6166
|
-
* @throws {RequiredError}
|
|
6167
|
-
* @memberof InvoicesApi
|
|
6168
|
-
*/
|
|
6169
|
-
createInvoice(requestParameters, options) {
|
|
6170
|
-
return (0, exports.InvoicesApiFp)(this.configuration).createInvoice(requestParameters.createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6171
|
-
}
|
|
6172
|
-
/**
|
|
6173
|
-
*
|
|
6174
|
-
* @summary Deletes an invoice.
|
|
6175
|
-
* @param {InvoicesApiDeleteInvoiceRequest} requestParameters Request parameters.
|
|
6176
|
-
* @param {*} [options] Override http request option.
|
|
6177
|
-
* @throws {RequiredError}
|
|
6178
|
-
* @memberof InvoicesApi
|
|
6179
|
-
*/
|
|
6180
|
-
deleteInvoice(requestParameters, options) {
|
|
6181
|
-
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6182
|
-
}
|
|
6183
|
-
/**
|
|
6184
|
-
*
|
|
6185
|
-
* @summary Delete invoice user defaults.
|
|
6186
|
-
* @param {InvoicesApiDeleteInvoiceUserRequest} requestParameters Request parameters.
|
|
6187
|
-
* @param {*} [options] Override http request option.
|
|
6188
|
-
* @throws {RequiredError}
|
|
6189
|
-
* @memberof InvoicesApi
|
|
6190
|
-
*/
|
|
6191
|
-
deleteInvoiceUser(requestParameters, options) {
|
|
6192
|
-
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6193
|
-
}
|
|
6194
|
-
/**
|
|
6195
|
-
*
|
|
6196
|
-
* @summary Returns all invoices in the system.
|
|
6197
|
-
* @param {InvoicesApiGetAllInvoicesRequest} requestParameters Request parameters.
|
|
6198
|
-
* @param {*} [options] Override http request option.
|
|
6199
|
-
* @throws {RequiredError}
|
|
6200
|
-
* @memberof InvoicesApi
|
|
6201
|
-
*/
|
|
6202
|
-
getAllInvoices(requestParameters = {}, options) {
|
|
6203
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6204
|
-
}
|
|
6205
|
-
/**
|
|
6206
|
-
*
|
|
6207
|
-
* @summary Get eligible transactions for invoice creation.
|
|
6208
|
-
* @param {InvoicesApiGetEligibleTransactionsRequest} requestParameters Request parameters.
|
|
6209
|
-
* @param {*} [options] Override http request option.
|
|
6210
|
-
* @throws {RequiredError}
|
|
6211
|
-
* @memberof InvoicesApi
|
|
6212
|
-
*/
|
|
6213
|
-
getEligibleTransactions(requestParameters, options) {
|
|
6214
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
|
|
6215
|
-
}
|
|
6216
|
-
/**
|
|
6217
|
-
*
|
|
6218
|
-
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6219
|
-
* @param {*} [options] Override http request option.
|
|
6220
|
-
* @throws {RequiredError}
|
|
6221
|
-
* @memberof InvoicesApi
|
|
6222
|
-
*/
|
|
6223
|
-
getInvoiceDrift(options) {
|
|
6224
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
|
|
6225
|
-
}
|
|
6226
|
-
/**
|
|
6227
|
-
*
|
|
6228
|
-
* @summary Get an invoice pdf.
|
|
6229
|
-
* @param {InvoicesApiGetInvoicePdfRequest} requestParameters Request parameters.
|
|
6230
|
-
* @param {*} [options] Override http request option.
|
|
6231
|
-
* @throws {RequiredError}
|
|
6232
|
-
* @memberof InvoicesApi
|
|
6233
|
-
*/
|
|
6234
|
-
getInvoicePdf(requestParameters, options) {
|
|
6235
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(requestParameters.id, requestParameters.force, options).then((request) => request(this.axios, this.basePath));
|
|
6236
|
-
}
|
|
6237
|
-
/**
|
|
6238
|
-
*
|
|
6239
|
-
* @summary Returns a single invoice in the system.
|
|
6240
|
-
* @param {InvoicesApiGetSingleInvoiceRequest} requestParameters Request parameters.
|
|
6241
|
-
* @param {*} [options] Override http request option.
|
|
6242
|
-
* @throws {RequiredError}
|
|
6243
|
-
* @memberof InvoicesApi
|
|
6244
|
-
*/
|
|
6245
|
-
getSingleInvoice(requestParameters, options) {
|
|
6246
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoice(requestParameters.id, requestParameters.returnEntries, options).then((request) => request(this.axios, this.basePath));
|
|
6247
|
-
}
|
|
6248
|
-
/**
|
|
6249
|
-
*
|
|
6250
|
-
* @summary Get invoice user defaults.
|
|
6251
|
-
* @param {InvoicesApiGetSingleInvoiceUserRequest} requestParameters Request parameters.
|
|
6252
|
-
* @param {*} [options] Override http request option.
|
|
6253
|
-
* @throws {RequiredError}
|
|
6254
|
-
* @memberof InvoicesApi
|
|
6255
|
-
*/
|
|
6256
|
-
getSingleInvoiceUser(requestParameters, options) {
|
|
6257
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6258
|
-
}
|
|
6924
|
+
class PaymentRequestsPublicApi extends base_1.BaseAPI {
|
|
6259
6925
|
/**
|
|
6260
6926
|
*
|
|
6261
|
-
* @summary
|
|
6262
|
-
* @param {
|
|
6927
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6928
|
+
* @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
|
|
6263
6929
|
* @param {*} [options] Override http request option.
|
|
6264
6930
|
* @throws {RequiredError}
|
|
6265
|
-
* @memberof
|
|
6931
|
+
* @memberof PaymentRequestsPublicApi
|
|
6266
6932
|
*/
|
|
6267
|
-
|
|
6268
|
-
return (0, exports.
|
|
6933
|
+
getPublicPaymentRequest(requestParameters, options) {
|
|
6934
|
+
return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).getPublicPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6269
6935
|
}
|
|
6270
6936
|
/**
|
|
6271
6937
|
*
|
|
6272
|
-
* @summary
|
|
6273
|
-
* @param {
|
|
6938
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6939
|
+
* @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
|
|
6274
6940
|
* @param {*} [options] Override http request option.
|
|
6275
6941
|
* @throws {RequiredError}
|
|
6276
|
-
* @memberof
|
|
6942
|
+
* @memberof PaymentRequestsPublicApi
|
|
6277
6943
|
*/
|
|
6278
|
-
|
|
6279
|
-
return (0, exports.
|
|
6944
|
+
startPaymentRequestPublic(requestParameters, options) {
|
|
6945
|
+
return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).startPaymentRequestPublic(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6280
6946
|
}
|
|
6281
6947
|
}
|
|
6282
|
-
exports.
|
|
6948
|
+
exports.PaymentRequestsPublicApi = PaymentRequestsPublicApi;
|
|
6283
6949
|
/**
|
|
6284
6950
|
* PayoutRequestsApi - axios parameter creator
|
|
6285
6951
|
* @export
|
|
@@ -11755,7 +12421,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
11755
12421
|
return {
|
|
11756
12422
|
/**
|
|
11757
12423
|
*
|
|
11758
|
-
* @summary Accept the Terms of Service
|
|
12424
|
+
* @summary Accept the current Terms of Service version
|
|
11759
12425
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
11760
12426
|
* @param {*} [options] Override http request option.
|
|
11761
12427
|
* @throws {RequiredError}
|
|
@@ -12284,6 +12950,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12284
12950
|
options: localVarRequestOptions,
|
|
12285
12951
|
};
|
|
12286
12952
|
},
|
|
12953
|
+
/**
|
|
12954
|
+
*
|
|
12955
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
12956
|
+
* @param {number} id The id of the user
|
|
12957
|
+
* @param {*} [options] Override http request option.
|
|
12958
|
+
* @throws {RequiredError}
|
|
12959
|
+
*/
|
|
12960
|
+
getUserTos: async (id, options = {}) => {
|
|
12961
|
+
// verify required parameter 'id' is not null or undefined
|
|
12962
|
+
(0, common_1.assertParamExists)('getUserTos', 'id', id);
|
|
12963
|
+
const localVarPath = `/users/{id}/tos`
|
|
12964
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
12965
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12966
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12967
|
+
let baseOptions;
|
|
12968
|
+
if (configuration) {
|
|
12969
|
+
baseOptions = configuration.baseOptions;
|
|
12970
|
+
}
|
|
12971
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12972
|
+
const localVarHeaderParameter = {};
|
|
12973
|
+
const localVarQueryParameter = {};
|
|
12974
|
+
// authentication JWT required
|
|
12975
|
+
// http bearer authentication required
|
|
12976
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12977
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12978
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12979
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12980
|
+
return {
|
|
12981
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12982
|
+
options: localVarRequestOptions,
|
|
12983
|
+
};
|
|
12984
|
+
},
|
|
12287
12985
|
/**
|
|
12288
12986
|
*
|
|
12289
12987
|
* @summary Returns the user\'s containers
|
|
@@ -12372,6 +13070,62 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12372
13070
|
options: localVarRequestOptions,
|
|
12373
13071
|
};
|
|
12374
13072
|
},
|
|
13073
|
+
/**
|
|
13074
|
+
*
|
|
13075
|
+
* @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
|
|
13076
|
+
* @param {number} id The id of the beneficiary user.
|
|
13077
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
13078
|
+
* @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
13079
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
13080
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
13081
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
13082
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
13083
|
+
* @param {*} [options] Override http request option.
|
|
13084
|
+
* @throws {RequiredError}
|
|
13085
|
+
*/
|
|
13086
|
+
getUsersPaymentRequests: async (id, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
|
|
13087
|
+
// verify required parameter 'id' is not null or undefined
|
|
13088
|
+
(0, common_1.assertParamExists)('getUsersPaymentRequests', 'id', id);
|
|
13089
|
+
const localVarPath = `/users/{id}/payment-requests`
|
|
13090
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13091
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13092
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13093
|
+
let baseOptions;
|
|
13094
|
+
if (configuration) {
|
|
13095
|
+
baseOptions = configuration.baseOptions;
|
|
13096
|
+
}
|
|
13097
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13098
|
+
const localVarHeaderParameter = {};
|
|
13099
|
+
const localVarQueryParameter = {};
|
|
13100
|
+
// authentication JWT required
|
|
13101
|
+
// http bearer authentication required
|
|
13102
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13103
|
+
if (createdById !== undefined) {
|
|
13104
|
+
localVarQueryParameter['createdById'] = createdById;
|
|
13105
|
+
}
|
|
13106
|
+
if (status !== undefined) {
|
|
13107
|
+
localVarQueryParameter['status'] = status;
|
|
13108
|
+
}
|
|
13109
|
+
if (fromDate !== undefined) {
|
|
13110
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
13111
|
+
}
|
|
13112
|
+
if (tillDate !== undefined) {
|
|
13113
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
13114
|
+
}
|
|
13115
|
+
if (take !== undefined) {
|
|
13116
|
+
localVarQueryParameter['take'] = take;
|
|
13117
|
+
}
|
|
13118
|
+
if (skip !== undefined) {
|
|
13119
|
+
localVarQueryParameter['skip'] = skip;
|
|
13120
|
+
}
|
|
13121
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13123
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13124
|
+
return {
|
|
13125
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13126
|
+
options: localVarRequestOptions,
|
|
13127
|
+
};
|
|
13128
|
+
},
|
|
12375
13129
|
/**
|
|
12376
13130
|
*
|
|
12377
13131
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -13210,7 +13964,7 @@ const UsersApiFp = function (configuration) {
|
|
|
13210
13964
|
return {
|
|
13211
13965
|
/**
|
|
13212
13966
|
*
|
|
13213
|
-
* @summary Accept the Terms of Service
|
|
13967
|
+
* @summary Accept the current Terms of Service version
|
|
13214
13968
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
13215
13969
|
* @param {*} [options] Override http request option.
|
|
13216
13970
|
* @throws {RequiredError}
|
|
@@ -13415,6 +14169,19 @@ const UsersApiFp = function (configuration) {
|
|
|
13415
14169
|
const operationBasePath = base_1.operationServerMap['UsersApi.getUserSettings']?.[index]?.url;
|
|
13416
14170
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
13417
14171
|
},
|
|
14172
|
+
/**
|
|
14173
|
+
*
|
|
14174
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
14175
|
+
* @param {number} id The id of the user
|
|
14176
|
+
* @param {*} [options] Override http request option.
|
|
14177
|
+
* @throws {RequiredError}
|
|
14178
|
+
*/
|
|
14179
|
+
async getUserTos(id, options) {
|
|
14180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserTos(id, options);
|
|
14181
|
+
const index = configuration?.serverIndex ?? 0;
|
|
14182
|
+
const operationBasePath = base_1.operationServerMap['UsersApi.getUserTos']?.[index]?.url;
|
|
14183
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14184
|
+
},
|
|
13418
14185
|
/**
|
|
13419
14186
|
*
|
|
13420
14187
|
* @summary Returns the user\'s containers
|
|
@@ -13447,6 +14214,25 @@ const UsersApiFp = function (configuration) {
|
|
|
13447
14214
|
const operationBasePath = base_1.operationServerMap['UsersApi.getUsersFinancialMutations']?.[index]?.url;
|
|
13448
14215
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
13449
14216
|
},
|
|
14217
|
+
/**
|
|
14218
|
+
*
|
|
14219
|
+
* @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
|
|
14220
|
+
* @param {number} id The id of the beneficiary user.
|
|
14221
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
14222
|
+
* @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
14223
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
14224
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
14225
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
14226
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
14227
|
+
* @param {*} [options] Override http request option.
|
|
14228
|
+
* @throws {RequiredError}
|
|
14229
|
+
*/
|
|
14230
|
+
async getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options) {
|
|
14231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options);
|
|
14232
|
+
const index = configuration?.serverIndex ?? 0;
|
|
14233
|
+
const operationBasePath = base_1.operationServerMap['UsersApi.getUsersPaymentRequests']?.[index]?.url;
|
|
14234
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14235
|
+
},
|
|
13450
14236
|
/**
|
|
13451
14237
|
*
|
|
13452
14238
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -13761,7 +14547,7 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
13761
14547
|
return {
|
|
13762
14548
|
/**
|
|
13763
14549
|
*
|
|
13764
|
-
* @summary Accept the Terms of Service
|
|
14550
|
+
* @summary Accept the current Terms of Service version
|
|
13765
14551
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
13766
14552
|
* @param {*} [options] Override http request option.
|
|
13767
14553
|
* @throws {RequiredError}
|
|
@@ -13909,6 +14695,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
13909
14695
|
getUserSettings(requestParameters, options) {
|
|
13910
14696
|
return localVarFp.getUserSettings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
13911
14697
|
},
|
|
14698
|
+
/**
|
|
14699
|
+
*
|
|
14700
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
14701
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
14702
|
+
* @param {*} [options] Override http request option.
|
|
14703
|
+
* @throws {RequiredError}
|
|
14704
|
+
*/
|
|
14705
|
+
getUserTos(requestParameters, options) {
|
|
14706
|
+
return localVarFp.getUserTos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14707
|
+
},
|
|
13912
14708
|
/**
|
|
13913
14709
|
*
|
|
13914
14710
|
* @summary Returns the user\'s containers
|
|
@@ -13929,6 +14725,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
13929
14725
|
getUsersFinancialMutations(requestParameters, options) {
|
|
13930
14726
|
return localVarFp.getUsersFinancialMutations(requestParameters.id, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
13931
14727
|
},
|
|
14728
|
+
/**
|
|
14729
|
+
*
|
|
14730
|
+
* @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
|
|
14731
|
+
* @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
|
|
14732
|
+
* @param {*} [options] Override http request option.
|
|
14733
|
+
* @throws {RequiredError}
|
|
14734
|
+
*/
|
|
14735
|
+
getUsersPaymentRequests(requestParameters, options) {
|
|
14736
|
+
return localVarFp.getUsersPaymentRequests(requestParameters.id, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
14737
|
+
},
|
|
13932
14738
|
/**
|
|
13933
14739
|
*
|
|
13934
14740
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -14142,7 +14948,7 @@ exports.UsersApiFactory = UsersApiFactory;
|
|
|
14142
14948
|
class UsersApi extends base_1.BaseAPI {
|
|
14143
14949
|
/**
|
|
14144
14950
|
*
|
|
14145
|
-
* @summary Accept the Terms of Service
|
|
14951
|
+
* @summary Accept the current Terms of Service version
|
|
14146
14952
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
14147
14953
|
* @param {*} [options] Override http request option.
|
|
14148
14954
|
* @throws {RequiredError}
|
|
@@ -14305,6 +15111,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
14305
15111
|
getUserSettings(requestParameters, options) {
|
|
14306
15112
|
return (0, exports.UsersApiFp)(this.configuration).getUserSettings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
14307
15113
|
}
|
|
15114
|
+
/**
|
|
15115
|
+
*
|
|
15116
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
15117
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
15118
|
+
* @param {*} [options] Override http request option.
|
|
15119
|
+
* @throws {RequiredError}
|
|
15120
|
+
* @memberof UsersApi
|
|
15121
|
+
*/
|
|
15122
|
+
getUserTos(requestParameters, options) {
|
|
15123
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserTos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
15124
|
+
}
|
|
14308
15125
|
/**
|
|
14309
15126
|
*
|
|
14310
15127
|
* @summary Returns the user\'s containers
|
|
@@ -14327,6 +15144,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
14327
15144
|
getUsersFinancialMutations(requestParameters, options) {
|
|
14328
15145
|
return (0, exports.UsersApiFp)(this.configuration).getUsersFinancialMutations(requestParameters.id, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
14329
15146
|
}
|
|
15147
|
+
/**
|
|
15148
|
+
*
|
|
15149
|
+
* @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
|
|
15150
|
+
* @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
|
|
15151
|
+
* @param {*} [options] Override http request option.
|
|
15152
|
+
* @throws {RequiredError}
|
|
15153
|
+
* @memberof UsersApi
|
|
15154
|
+
*/
|
|
15155
|
+
getUsersPaymentRequests(requestParameters, options) {
|
|
15156
|
+
return (0, exports.UsersApiFp)(this.configuration).getUsersPaymentRequests(requestParameters.id, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
15157
|
+
}
|
|
14330
15158
|
/**
|
|
14331
15159
|
*
|
|
14332
15160
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -14562,6 +15390,15 @@ exports.GetAllUsersTypeEnum = {
|
|
|
14562
15390
|
Invoice: 'INVOICE',
|
|
14563
15391
|
AutomaticInvoice: 'AUTOMATIC_INVOICE'
|
|
14564
15392
|
};
|
|
15393
|
+
/**
|
|
15394
|
+
* @export
|
|
15395
|
+
*/
|
|
15396
|
+
exports.GetUsersPaymentRequestsStatusEnum = {
|
|
15397
|
+
Pending: 'PENDING',
|
|
15398
|
+
Paid: 'PAID',
|
|
15399
|
+
Expired: 'EXPIRED',
|
|
15400
|
+
Cancelled: 'CANCELLED'
|
|
15401
|
+
};
|
|
14565
15402
|
/**
|
|
14566
15403
|
* @export
|
|
14567
15404
|
*/
|