@gewis/sudosos-client 0.0.0-develop.e05135a → 0.0.0-develop.e6519ec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +110 -0
- package/dist/api.d.ts +1230 -494
- package/dist/api.js +1063 -474
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/package.json +4 -4
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.InvoicesApiFactory = 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.QRStatusResponseStatusEnum = exports.PublicPaymentRequestResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = exports.BasePaymentRequestResponseStatusEnum = void 0;
|
|
17
|
+
exports.SyncApi = 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 = 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 = 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',
|
|
@@ -32,6 +38,17 @@ exports.FinancialMutationResponseTypeEnum = {
|
|
|
32
38
|
Transfer: 'transfer',
|
|
33
39
|
Transaction: 'transaction'
|
|
34
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @enum {string}
|
|
45
|
+
*/
|
|
46
|
+
exports.GetAllInvoicesCurrentStateParameterInner = {
|
|
47
|
+
Created: 'CREATED',
|
|
48
|
+
Sent: 'SENT',
|
|
49
|
+
Paid: 'PAID',
|
|
50
|
+
Deleted: 'DELETED'
|
|
51
|
+
};
|
|
35
52
|
exports.InvoiceStatusResponseStateEnum = {
|
|
36
53
|
Created: 'CREATED',
|
|
37
54
|
Sent: 'SENT',
|
|
@@ -55,6 +72,12 @@ exports.PayoutRequestStatusRequestStateEnum = {
|
|
|
55
72
|
Denied: 'DENIED',
|
|
56
73
|
Cancelled: 'CANCELLED'
|
|
57
74
|
};
|
|
75
|
+
exports.PublicPaymentRequestResponseStatusEnum = {
|
|
76
|
+
Pending: 'PENDING',
|
|
77
|
+
Paid: 'PAID',
|
|
78
|
+
Expired: 'EXPIRED',
|
|
79
|
+
Cancelled: 'CANCELLED'
|
|
80
|
+
};
|
|
58
81
|
exports.QRStatusResponseStatusEnum = {
|
|
59
82
|
Pending: 'PENDING',
|
|
60
83
|
Confirmed: 'CONFIRMED',
|
|
@@ -72,6 +95,21 @@ exports.UserSettingsResponseLanguageEnum = {
|
|
|
72
95
|
EnUs: 'en-US',
|
|
73
96
|
PlPl: 'pl-PL'
|
|
74
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* The type of a user
|
|
100
|
+
* @export
|
|
101
|
+
* @enum {string}
|
|
102
|
+
*/
|
|
103
|
+
exports.UserType = {
|
|
104
|
+
Member: 'MEMBER',
|
|
105
|
+
Organ: 'ORGAN',
|
|
106
|
+
Voucher: 'VOUCHER',
|
|
107
|
+
LocalUser: 'LOCAL_USER',
|
|
108
|
+
LocalAdmin: 'LOCAL_ADMIN',
|
|
109
|
+
Invoice: 'INVOICE',
|
|
110
|
+
PointOfSale: 'POINT_OF_SALE',
|
|
111
|
+
Integration: 'INTEGRATION'
|
|
112
|
+
};
|
|
75
113
|
/**
|
|
76
114
|
* AuthenticateApi - axios parameter creator
|
|
77
115
|
* @export
|
|
@@ -176,10 +214,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
176
214
|
},
|
|
177
215
|
/**
|
|
178
216
|
*
|
|
179
|
-
* @summary EAN
|
|
180
|
-
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login
|
|
217
|
+
* @summary EAN authentication that requires POS user authentication
|
|
218
|
+
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
|
|
181
219
|
* @param {*} [options] Override http request option.
|
|
182
|
-
* @deprecated
|
|
183
220
|
* @throws {RequiredError}
|
|
184
221
|
*/
|
|
185
222
|
eanAuthentication: async (authenticationEanRequest, options = {}) => {
|
|
@@ -195,6 +232,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
195
232
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
196
233
|
const localVarHeaderParameter = {};
|
|
197
234
|
const localVarQueryParameter = {};
|
|
235
|
+
// authentication JWT required
|
|
236
|
+
// http bearer authentication required
|
|
237
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
198
238
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
240
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -461,15 +501,14 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
461
501
|
},
|
|
462
502
|
/**
|
|
463
503
|
*
|
|
464
|
-
* @summary PIN
|
|
465
|
-
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login
|
|
504
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
505
|
+
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
|
|
466
506
|
* @param {*} [options] Override http request option.
|
|
467
|
-
* @deprecated
|
|
468
507
|
* @throws {RequiredError}
|
|
469
508
|
*/
|
|
470
|
-
|
|
509
|
+
memberPINAuthentication: async (memberAuthenticationPinRequest, options = {}) => {
|
|
471
510
|
// verify required parameter 'memberAuthenticationPinRequest' is not null or undefined
|
|
472
|
-
(0, common_1.assertParamExists)('
|
|
511
|
+
(0, common_1.assertParamExists)('memberPINAuthentication', 'memberAuthenticationPinRequest', memberAuthenticationPinRequest);
|
|
473
512
|
const localVarPath = `/authentication/member/pin`;
|
|
474
513
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
475
514
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -480,6 +519,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
480
519
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
481
520
|
const localVarHeaderParameter = {};
|
|
482
521
|
const localVarQueryParameter = {};
|
|
522
|
+
// authentication JWT required
|
|
523
|
+
// http bearer authentication required
|
|
524
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
483
525
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
484
526
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
485
527
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -522,10 +564,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
522
564
|
},
|
|
523
565
|
/**
|
|
524
566
|
*
|
|
525
|
-
* @summary NFC
|
|
526
|
-
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login
|
|
567
|
+
* @summary NFC authentication that requires POS user authentication
|
|
568
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
527
569
|
* @param {*} [options] Override http request option.
|
|
528
|
-
* @deprecated
|
|
529
570
|
* @throws {RequiredError}
|
|
530
571
|
*/
|
|
531
572
|
nfcAuthentication: async (authenticationNfcRequest, options = {}) => {
|
|
@@ -541,6 +582,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
541
582
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
542
583
|
const localVarHeaderParameter = {};
|
|
543
584
|
const localVarQueryParameter = {};
|
|
585
|
+
// authentication JWT required
|
|
586
|
+
// http bearer authentication required
|
|
587
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
544
588
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
545
589
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
546
590
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -553,10 +597,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
553
597
|
},
|
|
554
598
|
/**
|
|
555
599
|
*
|
|
556
|
-
* @summary PIN
|
|
557
|
-
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login
|
|
600
|
+
* @summary PIN authentication that requires POS user authentication
|
|
601
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
558
602
|
* @param {*} [options] Override http request option.
|
|
559
|
-
* @deprecated
|
|
560
603
|
* @throws {RequiredError}
|
|
561
604
|
*/
|
|
562
605
|
pinAuthentication: async (authenticationPinRequest, options = {}) => {
|
|
@@ -572,6 +615,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
572
615
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
573
616
|
const localVarHeaderParameter = {};
|
|
574
617
|
const localVarQueryParameter = {};
|
|
618
|
+
// authentication JWT required
|
|
619
|
+
// http bearer authentication required
|
|
620
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
575
621
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
576
622
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
577
623
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -670,138 +716,6 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
670
716
|
options: localVarRequestOptions,
|
|
671
717
|
};
|
|
672
718
|
},
|
|
673
|
-
/**
|
|
674
|
-
*
|
|
675
|
-
* @summary Secure EAN authentication that requires POS user authentication
|
|
676
|
-
* @param {AuthenticationSecureEanRequest} authenticationSecureEanRequest The EAN login request with posId
|
|
677
|
-
* @param {*} [options] Override http request option.
|
|
678
|
-
* @throws {RequiredError}
|
|
679
|
-
*/
|
|
680
|
-
secureEanAuthentication: async (authenticationSecureEanRequest, options = {}) => {
|
|
681
|
-
// verify required parameter 'authenticationSecureEanRequest' is not null or undefined
|
|
682
|
-
(0, common_1.assertParamExists)('secureEanAuthentication', 'authenticationSecureEanRequest', authenticationSecureEanRequest);
|
|
683
|
-
const localVarPath = `/authentication/ean-secure`;
|
|
684
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
685
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
686
|
-
let baseOptions;
|
|
687
|
-
if (configuration) {
|
|
688
|
-
baseOptions = configuration.baseOptions;
|
|
689
|
-
}
|
|
690
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
691
|
-
const localVarHeaderParameter = {};
|
|
692
|
-
const localVarQueryParameter = {};
|
|
693
|
-
// authentication JWT required
|
|
694
|
-
// http bearer authentication required
|
|
695
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
696
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
697
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
698
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
699
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
700
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecureEanRequest, localVarRequestOptions, configuration);
|
|
701
|
-
return {
|
|
702
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
703
|
-
options: localVarRequestOptions,
|
|
704
|
-
};
|
|
705
|
-
},
|
|
706
|
-
/**
|
|
707
|
-
*
|
|
708
|
-
* @summary Secure member PIN authentication that requires POS user authentication
|
|
709
|
-
* @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
|
|
710
|
-
* @param {*} [options] Override http request option.
|
|
711
|
-
* @throws {RequiredError}
|
|
712
|
-
*/
|
|
713
|
-
secureMemberPINAuthentication: async (memberAuthenticationSecurePinRequest, options = {}) => {
|
|
714
|
-
// verify required parameter 'memberAuthenticationSecurePinRequest' is not null or undefined
|
|
715
|
-
(0, common_1.assertParamExists)('secureMemberPINAuthentication', 'memberAuthenticationSecurePinRequest', memberAuthenticationSecurePinRequest);
|
|
716
|
-
const localVarPath = `/authentication/member/pin-secure`;
|
|
717
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
718
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
719
|
-
let baseOptions;
|
|
720
|
-
if (configuration) {
|
|
721
|
-
baseOptions = configuration.baseOptions;
|
|
722
|
-
}
|
|
723
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
724
|
-
const localVarHeaderParameter = {};
|
|
725
|
-
const localVarQueryParameter = {};
|
|
726
|
-
// authentication JWT required
|
|
727
|
-
// http bearer authentication required
|
|
728
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
729
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
730
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
731
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
732
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
733
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationSecurePinRequest, localVarRequestOptions, configuration);
|
|
734
|
-
return {
|
|
735
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
736
|
-
options: localVarRequestOptions,
|
|
737
|
-
};
|
|
738
|
-
},
|
|
739
|
-
/**
|
|
740
|
-
*
|
|
741
|
-
* @summary Secure NFC authentication that requires POS user authentication
|
|
742
|
-
* @param {AuthenticationSecureNfcRequest} authenticationSecureNfcRequest The NFC login request with posId
|
|
743
|
-
* @param {*} [options] Override http request option.
|
|
744
|
-
* @throws {RequiredError}
|
|
745
|
-
*/
|
|
746
|
-
secureNfcAuthentication: async (authenticationSecureNfcRequest, options = {}) => {
|
|
747
|
-
// verify required parameter 'authenticationSecureNfcRequest' is not null or undefined
|
|
748
|
-
(0, common_1.assertParamExists)('secureNfcAuthentication', 'authenticationSecureNfcRequest', authenticationSecureNfcRequest);
|
|
749
|
-
const localVarPath = `/authentication/nfc-secure`;
|
|
750
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
751
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
752
|
-
let baseOptions;
|
|
753
|
-
if (configuration) {
|
|
754
|
-
baseOptions = configuration.baseOptions;
|
|
755
|
-
}
|
|
756
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
757
|
-
const localVarHeaderParameter = {};
|
|
758
|
-
const localVarQueryParameter = {};
|
|
759
|
-
// authentication JWT required
|
|
760
|
-
// http bearer authentication required
|
|
761
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
762
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
763
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
764
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
765
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
766
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecureNfcRequest, localVarRequestOptions, configuration);
|
|
767
|
-
return {
|
|
768
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
769
|
-
options: localVarRequestOptions,
|
|
770
|
-
};
|
|
771
|
-
},
|
|
772
|
-
/**
|
|
773
|
-
*
|
|
774
|
-
* @summary Secure PIN authentication that requires POS user authentication
|
|
775
|
-
* @param {AuthenticationSecurePinRequest} authenticationSecurePinRequest The PIN login request with posId
|
|
776
|
-
* @param {*} [options] Override http request option.
|
|
777
|
-
* @throws {RequiredError}
|
|
778
|
-
*/
|
|
779
|
-
securePINAuthentication: async (authenticationSecurePinRequest, options = {}) => {
|
|
780
|
-
// verify required parameter 'authenticationSecurePinRequest' is not null or undefined
|
|
781
|
-
(0, common_1.assertParamExists)('securePINAuthentication', 'authenticationSecurePinRequest', authenticationSecurePinRequest);
|
|
782
|
-
const localVarPath = `/authentication/pin-secure`;
|
|
783
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
784
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
785
|
-
let baseOptions;
|
|
786
|
-
if (configuration) {
|
|
787
|
-
baseOptions = configuration.baseOptions;
|
|
788
|
-
}
|
|
789
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
790
|
-
const localVarHeaderParameter = {};
|
|
791
|
-
const localVarQueryParameter = {};
|
|
792
|
-
// authentication JWT required
|
|
793
|
-
// http bearer authentication required
|
|
794
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
795
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
796
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
797
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
798
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
799
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecurePinRequest, localVarRequestOptions, configuration);
|
|
800
|
-
return {
|
|
801
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
802
|
-
options: localVarRequestOptions,
|
|
803
|
-
};
|
|
804
|
-
},
|
|
805
719
|
};
|
|
806
720
|
};
|
|
807
721
|
exports.AuthenticateApiAxiosParamCreator = AuthenticateApiAxiosParamCreator;
|
|
@@ -853,10 +767,9 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
853
767
|
},
|
|
854
768
|
/**
|
|
855
769
|
*
|
|
856
|
-
* @summary EAN
|
|
857
|
-
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login
|
|
770
|
+
* @summary EAN authentication that requires POS user authentication
|
|
771
|
+
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
|
|
858
772
|
* @param {*} [options] Override http request option.
|
|
859
|
-
* @deprecated
|
|
860
773
|
* @throws {RequiredError}
|
|
861
774
|
*/
|
|
862
775
|
async eanAuthentication(authenticationEanRequest, options) {
|
|
@@ -981,16 +894,15 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
981
894
|
},
|
|
982
895
|
/**
|
|
983
896
|
*
|
|
984
|
-
* @summary PIN
|
|
985
|
-
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login
|
|
897
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
898
|
+
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
|
|
986
899
|
* @param {*} [options] Override http request option.
|
|
987
|
-
* @deprecated
|
|
988
900
|
* @throws {RequiredError}
|
|
989
901
|
*/
|
|
990
|
-
async
|
|
991
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
902
|
+
async memberPINAuthentication(memberAuthenticationPinRequest, options) {
|
|
903
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.memberPINAuthentication(memberAuthenticationPinRequest, options);
|
|
992
904
|
const index = configuration?.serverIndex ?? 0;
|
|
993
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
905
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPINAuthentication']?.[index]?.url;
|
|
994
906
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
995
907
|
},
|
|
996
908
|
/**
|
|
@@ -1008,10 +920,9 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1008
920
|
},
|
|
1009
921
|
/**
|
|
1010
922
|
*
|
|
1011
|
-
* @summary NFC
|
|
1012
|
-
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login
|
|
923
|
+
* @summary NFC authentication that requires POS user authentication
|
|
924
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
1013
925
|
* @param {*} [options] Override http request option.
|
|
1014
|
-
* @deprecated
|
|
1015
926
|
* @throws {RequiredError}
|
|
1016
927
|
*/
|
|
1017
928
|
async nfcAuthentication(authenticationNfcRequest, options) {
|
|
@@ -1022,10 +933,9 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1022
933
|
},
|
|
1023
934
|
/**
|
|
1024
935
|
*
|
|
1025
|
-
* @summary PIN
|
|
1026
|
-
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login
|
|
936
|
+
* @summary PIN authentication that requires POS user authentication
|
|
937
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
1027
938
|
* @param {*} [options] Override http request option.
|
|
1028
|
-
* @deprecated
|
|
1029
939
|
* @throws {RequiredError}
|
|
1030
940
|
*/
|
|
1031
941
|
async pinAuthentication(authenticationPinRequest, options) {
|
|
@@ -1072,58 +982,6 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1072
982
|
const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocalWithToken']?.[index]?.url;
|
|
1073
983
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1074
984
|
},
|
|
1075
|
-
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @summary Secure EAN authentication that requires POS user authentication
|
|
1078
|
-
* @param {AuthenticationSecureEanRequest} authenticationSecureEanRequest The EAN login request with posId
|
|
1079
|
-
* @param {*} [options] Override http request option.
|
|
1080
|
-
* @throws {RequiredError}
|
|
1081
|
-
*/
|
|
1082
|
-
async secureEanAuthentication(authenticationSecureEanRequest, options) {
|
|
1083
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.secureEanAuthentication(authenticationSecureEanRequest, options);
|
|
1084
|
-
const index = configuration?.serverIndex ?? 0;
|
|
1085
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureEanAuthentication']?.[index]?.url;
|
|
1086
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1087
|
-
},
|
|
1088
|
-
/**
|
|
1089
|
-
*
|
|
1090
|
-
* @summary Secure member PIN authentication that requires POS user authentication
|
|
1091
|
-
* @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
|
|
1092
|
-
* @param {*} [options] Override http request option.
|
|
1093
|
-
* @throws {RequiredError}
|
|
1094
|
-
*/
|
|
1095
|
-
async secureMemberPINAuthentication(memberAuthenticationSecurePinRequest, options) {
|
|
1096
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.secureMemberPINAuthentication(memberAuthenticationSecurePinRequest, options);
|
|
1097
|
-
const index = configuration?.serverIndex ?? 0;
|
|
1098
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureMemberPINAuthentication']?.[index]?.url;
|
|
1099
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1100
|
-
},
|
|
1101
|
-
/**
|
|
1102
|
-
*
|
|
1103
|
-
* @summary Secure NFC authentication that requires POS user authentication
|
|
1104
|
-
* @param {AuthenticationSecureNfcRequest} authenticationSecureNfcRequest The NFC login request with posId
|
|
1105
|
-
* @param {*} [options] Override http request option.
|
|
1106
|
-
* @throws {RequiredError}
|
|
1107
|
-
*/
|
|
1108
|
-
async secureNfcAuthentication(authenticationSecureNfcRequest, options) {
|
|
1109
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.secureNfcAuthentication(authenticationSecureNfcRequest, options);
|
|
1110
|
-
const index = configuration?.serverIndex ?? 0;
|
|
1111
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureNfcAuthentication']?.[index]?.url;
|
|
1112
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1113
|
-
},
|
|
1114
|
-
/**
|
|
1115
|
-
*
|
|
1116
|
-
* @summary Secure PIN authentication that requires POS user authentication
|
|
1117
|
-
* @param {AuthenticationSecurePinRequest} authenticationSecurePinRequest The PIN login request with posId
|
|
1118
|
-
* @param {*} [options] Override http request option.
|
|
1119
|
-
* @throws {RequiredError}
|
|
1120
|
-
*/
|
|
1121
|
-
async securePINAuthentication(authenticationSecurePinRequest, options) {
|
|
1122
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.securePINAuthentication(authenticationSecurePinRequest, options);
|
|
1123
|
-
const index = configuration?.serverIndex ?? 0;
|
|
1124
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.securePINAuthentication']?.[index]?.url;
|
|
1125
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1126
|
-
},
|
|
1127
985
|
};
|
|
1128
986
|
};
|
|
1129
987
|
exports.AuthenticateApiFp = AuthenticateApiFp;
|
|
@@ -1166,10 +1024,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1166
1024
|
},
|
|
1167
1025
|
/**
|
|
1168
1026
|
*
|
|
1169
|
-
* @summary EAN
|
|
1027
|
+
* @summary EAN authentication that requires POS user authentication
|
|
1170
1028
|
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1171
1029
|
* @param {*} [options] Override http request option.
|
|
1172
|
-
* @deprecated
|
|
1173
1030
|
* @throws {RequiredError}
|
|
1174
1031
|
*/
|
|
1175
1032
|
eanAuthentication(requestParameters, options) {
|
|
@@ -1264,14 +1121,13 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1264
1121
|
},
|
|
1265
1122
|
/**
|
|
1266
1123
|
*
|
|
1267
|
-
* @summary PIN
|
|
1268
|
-
* @param {
|
|
1124
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
1125
|
+
* @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1269
1126
|
* @param {*} [options] Override http request option.
|
|
1270
|
-
* @deprecated
|
|
1271
1127
|
* @throws {RequiredError}
|
|
1272
1128
|
*/
|
|
1273
|
-
|
|
1274
|
-
return localVarFp.
|
|
1129
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1130
|
+
return localVarFp.memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1275
1131
|
},
|
|
1276
1132
|
/**
|
|
1277
1133
|
*
|
|
@@ -1285,10 +1141,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1285
1141
|
},
|
|
1286
1142
|
/**
|
|
1287
1143
|
*
|
|
1288
|
-
* @summary NFC
|
|
1144
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1289
1145
|
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1290
1146
|
* @param {*} [options] Override http request option.
|
|
1291
|
-
* @deprecated
|
|
1292
1147
|
* @throws {RequiredError}
|
|
1293
1148
|
*/
|
|
1294
1149
|
nfcAuthentication(requestParameters, options) {
|
|
@@ -1296,10 +1151,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1296
1151
|
},
|
|
1297
1152
|
/**
|
|
1298
1153
|
*
|
|
1299
|
-
* @summary PIN
|
|
1154
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1300
1155
|
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1301
1156
|
* @param {*} [options] Override http request option.
|
|
1302
|
-
* @deprecated
|
|
1303
1157
|
* @throws {RequiredError}
|
|
1304
1158
|
*/
|
|
1305
1159
|
pinAuthentication(requestParameters, options) {
|
|
@@ -1334,46 +1188,6 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1334
1188
|
resetLocalWithToken(requestParameters, options) {
|
|
1335
1189
|
return localVarFp.resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(axios, basePath));
|
|
1336
1190
|
},
|
|
1337
|
-
/**
|
|
1338
|
-
*
|
|
1339
|
-
* @summary Secure EAN authentication that requires POS user authentication
|
|
1340
|
-
* @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
|
|
1341
|
-
* @param {*} [options] Override http request option.
|
|
1342
|
-
* @throws {RequiredError}
|
|
1343
|
-
*/
|
|
1344
|
-
secureEanAuthentication(requestParameters, options) {
|
|
1345
|
-
return localVarFp.secureEanAuthentication(requestParameters.authenticationSecureEanRequest, options).then((request) => request(axios, basePath));
|
|
1346
|
-
},
|
|
1347
|
-
/**
|
|
1348
|
-
*
|
|
1349
|
-
* @summary Secure member PIN authentication that requires POS user authentication
|
|
1350
|
-
* @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1351
|
-
* @param {*} [options] Override http request option.
|
|
1352
|
-
* @throws {RequiredError}
|
|
1353
|
-
*/
|
|
1354
|
-
secureMemberPINAuthentication(requestParameters, options) {
|
|
1355
|
-
return localVarFp.secureMemberPINAuthentication(requestParameters.memberAuthenticationSecurePinRequest, options).then((request) => request(axios, basePath));
|
|
1356
|
-
},
|
|
1357
|
-
/**
|
|
1358
|
-
*
|
|
1359
|
-
* @summary Secure NFC authentication that requires POS user authentication
|
|
1360
|
-
* @param {AuthenticateApiSecureNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1361
|
-
* @param {*} [options] Override http request option.
|
|
1362
|
-
* @throws {RequiredError}
|
|
1363
|
-
*/
|
|
1364
|
-
secureNfcAuthentication(requestParameters, options) {
|
|
1365
|
-
return localVarFp.secureNfcAuthentication(requestParameters.authenticationSecureNfcRequest, options).then((request) => request(axios, basePath));
|
|
1366
|
-
},
|
|
1367
|
-
/**
|
|
1368
|
-
*
|
|
1369
|
-
* @summary Secure PIN authentication that requires POS user authentication
|
|
1370
|
-
* @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
|
|
1371
|
-
* @param {*} [options] Override http request option.
|
|
1372
|
-
* @throws {RequiredError}
|
|
1373
|
-
*/
|
|
1374
|
-
securePINAuthentication(requestParameters, options) {
|
|
1375
|
-
return localVarFp.securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(axios, basePath));
|
|
1376
|
-
},
|
|
1377
1191
|
};
|
|
1378
1192
|
};
|
|
1379
1193
|
exports.AuthenticateApiFactory = AuthenticateApiFactory;
|
|
@@ -1419,10 +1233,9 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1419
1233
|
}
|
|
1420
1234
|
/**
|
|
1421
1235
|
*
|
|
1422
|
-
* @summary EAN
|
|
1236
|
+
* @summary EAN authentication that requires POS user authentication
|
|
1423
1237
|
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1424
1238
|
* @param {*} [options] Override http request option.
|
|
1425
|
-
* @deprecated
|
|
1426
1239
|
* @throws {RequiredError}
|
|
1427
1240
|
* @memberof AuthenticateApi
|
|
1428
1241
|
*/
|
|
@@ -1527,15 +1340,14 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1527
1340
|
}
|
|
1528
1341
|
/**
|
|
1529
1342
|
*
|
|
1530
|
-
* @summary PIN
|
|
1531
|
-
* @param {
|
|
1343
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
1344
|
+
* @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1532
1345
|
* @param {*} [options] Override http request option.
|
|
1533
|
-
* @deprecated
|
|
1534
1346
|
* @throws {RequiredError}
|
|
1535
1347
|
* @memberof AuthenticateApi
|
|
1536
1348
|
*/
|
|
1537
|
-
|
|
1538
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1349
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1350
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1539
1351
|
}
|
|
1540
1352
|
/**
|
|
1541
1353
|
*
|
|
@@ -1550,10 +1362,9 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1550
1362
|
}
|
|
1551
1363
|
/**
|
|
1552
1364
|
*
|
|
1553
|
-
* @summary NFC
|
|
1365
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1554
1366
|
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1555
1367
|
* @param {*} [options] Override http request option.
|
|
1556
|
-
* @deprecated
|
|
1557
1368
|
* @throws {RequiredError}
|
|
1558
1369
|
* @memberof AuthenticateApi
|
|
1559
1370
|
*/
|
|
@@ -1562,10 +1373,9 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1562
1373
|
}
|
|
1563
1374
|
/**
|
|
1564
1375
|
*
|
|
1565
|
-
* @summary PIN
|
|
1376
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1566
1377
|
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1567
1378
|
* @param {*} [options] Override http request option.
|
|
1568
|
-
* @deprecated
|
|
1569
1379
|
* @throws {RequiredError}
|
|
1570
1380
|
* @memberof AuthenticateApi
|
|
1571
1381
|
*/
|
|
@@ -1604,50 +1414,6 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1604
1414
|
resetLocalWithToken(requestParameters, options) {
|
|
1605
1415
|
return (0, exports.AuthenticateApiFp)(this.configuration).resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1606
1416
|
}
|
|
1607
|
-
/**
|
|
1608
|
-
*
|
|
1609
|
-
* @summary Secure EAN authentication that requires POS user authentication
|
|
1610
|
-
* @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
|
|
1611
|
-
* @param {*} [options] Override http request option.
|
|
1612
|
-
* @throws {RequiredError}
|
|
1613
|
-
* @memberof AuthenticateApi
|
|
1614
|
-
*/
|
|
1615
|
-
secureEanAuthentication(requestParameters, options) {
|
|
1616
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).secureEanAuthentication(requestParameters.authenticationSecureEanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1617
|
-
}
|
|
1618
|
-
/**
|
|
1619
|
-
*
|
|
1620
|
-
* @summary Secure member PIN authentication that requires POS user authentication
|
|
1621
|
-
* @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1622
|
-
* @param {*} [options] Override http request option.
|
|
1623
|
-
* @throws {RequiredError}
|
|
1624
|
-
* @memberof AuthenticateApi
|
|
1625
|
-
*/
|
|
1626
|
-
secureMemberPINAuthentication(requestParameters, options) {
|
|
1627
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).secureMemberPINAuthentication(requestParameters.memberAuthenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1628
|
-
}
|
|
1629
|
-
/**
|
|
1630
|
-
*
|
|
1631
|
-
* @summary Secure NFC authentication that requires POS user authentication
|
|
1632
|
-
* @param {AuthenticateApiSecureNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1633
|
-
* @param {*} [options] Override http request option.
|
|
1634
|
-
* @throws {RequiredError}
|
|
1635
|
-
* @memberof AuthenticateApi
|
|
1636
|
-
*/
|
|
1637
|
-
secureNfcAuthentication(requestParameters, options) {
|
|
1638
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).secureNfcAuthentication(requestParameters.authenticationSecureNfcRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1639
|
-
}
|
|
1640
|
-
/**
|
|
1641
|
-
*
|
|
1642
|
-
* @summary Secure PIN authentication that requires POS user authentication
|
|
1643
|
-
* @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
|
|
1644
|
-
* @param {*} [options] Override http request option.
|
|
1645
|
-
* @throws {RequiredError}
|
|
1646
|
-
* @memberof AuthenticateApi
|
|
1647
|
-
*/
|
|
1648
|
-
securePINAuthentication(requestParameters, options) {
|
|
1649
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1650
|
-
}
|
|
1651
1417
|
}
|
|
1652
1418
|
exports.AuthenticateApi = AuthenticateApi;
|
|
1653
1419
|
/**
|
|
@@ -1703,7 +1469,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
1703
1469
|
* @param {boolean} [hasFine] Only users with(out) fines
|
|
1704
1470
|
* @param {number} [minFine] Minimum fine
|
|
1705
1471
|
* @param {number} [maxFine] Maximum fine
|
|
1706
|
-
* @param {
|
|
1472
|
+
* @param {Array<UserType>} [userTypes] Filter based on user type.
|
|
1707
1473
|
* @param {string} [orderBy] Column to order balance by - eg: id,amount
|
|
1708
1474
|
* @param {GetAllBalanceOrderDirectionEnum} [orderDirection] Order direction
|
|
1709
1475
|
* @param {boolean} [allowDeleted] Whether to include deleted users
|
|
@@ -1867,7 +1633,7 @@ const BalanceApiFp = function (configuration) {
|
|
|
1867
1633
|
* @param {boolean} [hasFine] Only users with(out) fines
|
|
1868
1634
|
* @param {number} [minFine] Minimum fine
|
|
1869
1635
|
* @param {number} [maxFine] Maximum fine
|
|
1870
|
-
* @param {
|
|
1636
|
+
* @param {Array<UserType>} [userTypes] Filter based on user type.
|
|
1871
1637
|
* @param {string} [orderBy] Column to order balance by - eg: id,amount
|
|
1872
1638
|
* @param {GetAllBalanceOrderDirectionEnum} [orderDirection] Order direction
|
|
1873
1639
|
* @param {boolean} [allowDeleted] Whether to include deleted users
|
|
@@ -2012,10 +1778,6 @@ class BalanceApi extends base_1.BaseAPI {
|
|
|
2012
1778
|
}
|
|
2013
1779
|
}
|
|
2014
1780
|
exports.BalanceApi = BalanceApi;
|
|
2015
|
-
/**
|
|
2016
|
-
* @export
|
|
2017
|
-
*/
|
|
2018
|
-
exports.GetAllBalanceUserTypesEnum = {};
|
|
2019
1781
|
/**
|
|
2020
1782
|
* @export
|
|
2021
1783
|
*/
|
|
@@ -5804,16 +5566,17 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5804
5566
|
* @summary Returns all invoices in the system.
|
|
5805
5567
|
* @param {number} [toId] Filter on Id of the debtor
|
|
5806
5568
|
* @param {number} [invoiceId] Filter on invoice ID
|
|
5807
|
-
* @param {
|
|
5569
|
+
* @param {Array<GetAllInvoicesCurrentStateParameterInner>} [currentState] Filter based on Invoice State.
|
|
5808
5570
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
5809
5571
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
5810
5572
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
5573
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
5811
5574
|
* @param {number} [take] How many entries the endpoint should return
|
|
5812
5575
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
5813
5576
|
* @param {*} [options] Override http request option.
|
|
5814
5577
|
* @throws {RequiredError}
|
|
5815
5578
|
*/
|
|
5816
|
-
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options = {}) => {
|
|
5579
|
+
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options = {}) => {
|
|
5817
5580
|
const localVarPath = `/invoices`;
|
|
5818
5581
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5819
5582
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5845,6 +5608,9 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5845
5608
|
if (tillDate !== undefined) {
|
|
5846
5609
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
5847
5610
|
}
|
|
5611
|
+
if (description !== undefined) {
|
|
5612
|
+
localVarQueryParameter['description'] = description;
|
|
5613
|
+
}
|
|
5848
5614
|
if (take !== undefined) {
|
|
5849
5615
|
localVarQueryParameter['take'] = take;
|
|
5850
5616
|
}
|
|
@@ -5905,14 +5671,42 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5905
5671
|
},
|
|
5906
5672
|
/**
|
|
5907
5673
|
*
|
|
5908
|
-
* @summary
|
|
5909
|
-
* @param {number} id The id of the invoice to return
|
|
5910
|
-
* @param {boolean} [force] Force creation of pdf
|
|
5674
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
5911
5675
|
* @param {*} [options] Override http request option.
|
|
5912
5676
|
* @throws {RequiredError}
|
|
5913
5677
|
*/
|
|
5914
|
-
|
|
5915
|
-
|
|
5678
|
+
getInvoiceDrift: async (options = {}) => {
|
|
5679
|
+
const localVarPath = `/invoices/drift`;
|
|
5680
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5681
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5682
|
+
let baseOptions;
|
|
5683
|
+
if (configuration) {
|
|
5684
|
+
baseOptions = configuration.baseOptions;
|
|
5685
|
+
}
|
|
5686
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5687
|
+
const localVarHeaderParameter = {};
|
|
5688
|
+
const localVarQueryParameter = {};
|
|
5689
|
+
// authentication JWT required
|
|
5690
|
+
// http bearer authentication required
|
|
5691
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5692
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5693
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5694
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5695
|
+
return {
|
|
5696
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5697
|
+
options: localVarRequestOptions,
|
|
5698
|
+
};
|
|
5699
|
+
},
|
|
5700
|
+
/**
|
|
5701
|
+
*
|
|
5702
|
+
* @summary Get an invoice pdf.
|
|
5703
|
+
* @param {number} id The id of the invoice to return
|
|
5704
|
+
* @param {boolean} [force] Force creation of pdf
|
|
5705
|
+
* @param {*} [options] Override http request option.
|
|
5706
|
+
* @throws {RequiredError}
|
|
5707
|
+
*/
|
|
5708
|
+
getInvoicePdf: async (id, force, options = {}) => {
|
|
5709
|
+
// verify required parameter 'id' is not null or undefined
|
|
5916
5710
|
(0, common_1.assertParamExists)('getInvoicePdf', 'id', id);
|
|
5917
5711
|
const localVarPath = `/invoices/{id}/pdf`
|
|
5918
5712
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
@@ -6135,17 +5929,18 @@ const InvoicesApiFp = function (configuration) {
|
|
|
6135
5929
|
* @summary Returns all invoices in the system.
|
|
6136
5930
|
* @param {number} [toId] Filter on Id of the debtor
|
|
6137
5931
|
* @param {number} [invoiceId] Filter on invoice ID
|
|
6138
|
-
* @param {
|
|
5932
|
+
* @param {Array<GetAllInvoicesCurrentStateParameterInner>} [currentState] Filter based on Invoice State.
|
|
6139
5933
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
6140
5934
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
6141
5935
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
5936
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
6142
5937
|
* @param {number} [take] How many entries the endpoint should return
|
|
6143
5938
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
6144
5939
|
* @param {*} [options] Override http request option.
|
|
6145
5940
|
* @throws {RequiredError}
|
|
6146
5941
|
*/
|
|
6147
|
-
async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options) {
|
|
6148
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options);
|
|
5942
|
+
async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options) {
|
|
5943
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options);
|
|
6149
5944
|
const index = configuration?.serverIndex ?? 0;
|
|
6150
5945
|
const operationBasePath = base_1.operationServerMap['InvoicesApi.getAllInvoices']?.[index]?.url;
|
|
6151
5946
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -6165,6 +5960,18 @@ const InvoicesApiFp = function (configuration) {
|
|
|
6165
5960
|
const operationBasePath = base_1.operationServerMap['InvoicesApi.getEligibleTransactions']?.[index]?.url;
|
|
6166
5961
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6167
5962
|
},
|
|
5963
|
+
/**
|
|
5964
|
+
*
|
|
5965
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
5966
|
+
* @param {*} [options] Override http request option.
|
|
5967
|
+
* @throws {RequiredError}
|
|
5968
|
+
*/
|
|
5969
|
+
async getInvoiceDrift(options) {
|
|
5970
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceDrift(options);
|
|
5971
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5972
|
+
const operationBasePath = base_1.operationServerMap['InvoicesApi.getInvoiceDrift']?.[index]?.url;
|
|
5973
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5974
|
+
},
|
|
6168
5975
|
/**
|
|
6169
5976
|
*
|
|
6170
5977
|
* @summary Get an invoice pdf.
|
|
@@ -6282,7 +6089,7 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6282
6089
|
* @throws {RequiredError}
|
|
6283
6090
|
*/
|
|
6284
6091
|
getAllInvoices(requestParameters = {}, options) {
|
|
6285
|
-
return localVarFp.getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
6092
|
+
return localVarFp.getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
6286
6093
|
},
|
|
6287
6094
|
/**
|
|
6288
6095
|
*
|
|
@@ -6296,180 +6103,839 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6296
6103
|
},
|
|
6297
6104
|
/**
|
|
6298
6105
|
*
|
|
6299
|
-
* @summary
|
|
6300
|
-
* @param {
|
|
6106
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6107
|
+
* @param {*} [options] Override http request option.
|
|
6108
|
+
* @throws {RequiredError}
|
|
6109
|
+
*/
|
|
6110
|
+
getInvoiceDrift(options) {
|
|
6111
|
+
return localVarFp.getInvoiceDrift(options).then((request) => request(axios, basePath));
|
|
6112
|
+
},
|
|
6113
|
+
/**
|
|
6114
|
+
*
|
|
6115
|
+
* @summary Get an invoice pdf.
|
|
6116
|
+
* @param {InvoicesApiGetInvoicePdfRequest} requestParameters Request parameters.
|
|
6117
|
+
* @param {*} [options] Override http request option.
|
|
6118
|
+
* @throws {RequiredError}
|
|
6119
|
+
*/
|
|
6120
|
+
getInvoicePdf(requestParameters, options) {
|
|
6121
|
+
return localVarFp.getInvoicePdf(requestParameters.id, requestParameters.force, options).then((request) => request(axios, basePath));
|
|
6122
|
+
},
|
|
6123
|
+
/**
|
|
6124
|
+
*
|
|
6125
|
+
* @summary Returns a single invoice in the system.
|
|
6126
|
+
* @param {InvoicesApiGetSingleInvoiceRequest} requestParameters Request parameters.
|
|
6127
|
+
* @param {*} [options] Override http request option.
|
|
6128
|
+
* @throws {RequiredError}
|
|
6129
|
+
*/
|
|
6130
|
+
getSingleInvoice(requestParameters, options) {
|
|
6131
|
+
return localVarFp.getSingleInvoice(requestParameters.id, requestParameters.returnEntries, options).then((request) => request(axios, basePath));
|
|
6132
|
+
},
|
|
6133
|
+
/**
|
|
6134
|
+
*
|
|
6135
|
+
* @summary Get invoice user defaults.
|
|
6136
|
+
* @param {InvoicesApiGetSingleInvoiceUserRequest} requestParameters Request parameters.
|
|
6137
|
+
* @param {*} [options] Override http request option.
|
|
6138
|
+
* @throws {RequiredError}
|
|
6139
|
+
*/
|
|
6140
|
+
getSingleInvoiceUser(requestParameters, options) {
|
|
6141
|
+
return localVarFp.getSingleInvoiceUser(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6142
|
+
},
|
|
6143
|
+
/**
|
|
6144
|
+
*
|
|
6145
|
+
* @summary Update or create invoice user defaults.
|
|
6146
|
+
* @param {InvoicesApiPutInvoiceUserRequest} requestParameters Request parameters.
|
|
6147
|
+
* @param {*} [options] Override http request option.
|
|
6148
|
+
* @throws {RequiredError}
|
|
6149
|
+
*/
|
|
6150
|
+
putInvoiceUser(requestParameters, options) {
|
|
6151
|
+
return localVarFp.putInvoiceUser(requestParameters.id, requestParameters.updateInvoiceUserRequest, options).then((request) => request(axios, basePath));
|
|
6152
|
+
},
|
|
6153
|
+
/**
|
|
6154
|
+
*
|
|
6155
|
+
* @summary Adds an invoice to the system.
|
|
6156
|
+
* @param {InvoicesApiUpdateInvoiceRequest} requestParameters Request parameters.
|
|
6157
|
+
* @param {*} [options] Override http request option.
|
|
6158
|
+
* @throws {RequiredError}
|
|
6159
|
+
*/
|
|
6160
|
+
updateInvoice(requestParameters, options) {
|
|
6161
|
+
return localVarFp.updateInvoice(requestParameters.id, requestParameters.updateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
6162
|
+
},
|
|
6163
|
+
};
|
|
6164
|
+
};
|
|
6165
|
+
exports.InvoicesApiFactory = InvoicesApiFactory;
|
|
6166
|
+
/**
|
|
6167
|
+
* InvoicesApi - object-oriented interface
|
|
6168
|
+
* @export
|
|
6169
|
+
* @class InvoicesApi
|
|
6170
|
+
* @extends {BaseAPI}
|
|
6171
|
+
*/
|
|
6172
|
+
class InvoicesApi extends base_1.BaseAPI {
|
|
6173
|
+
/**
|
|
6174
|
+
*
|
|
6175
|
+
* @summary Adds an invoice to the system.
|
|
6176
|
+
* @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
|
|
6177
|
+
* @param {*} [options] Override http request option.
|
|
6178
|
+
* @throws {RequiredError}
|
|
6179
|
+
* @memberof InvoicesApi
|
|
6180
|
+
*/
|
|
6181
|
+
createInvoice(requestParameters, options) {
|
|
6182
|
+
return (0, exports.InvoicesApiFp)(this.configuration).createInvoice(requestParameters.createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6183
|
+
}
|
|
6184
|
+
/**
|
|
6185
|
+
*
|
|
6186
|
+
* @summary Deletes an invoice.
|
|
6187
|
+
* @param {InvoicesApiDeleteInvoiceRequest} requestParameters Request parameters.
|
|
6188
|
+
* @param {*} [options] Override http request option.
|
|
6189
|
+
* @throws {RequiredError}
|
|
6190
|
+
* @memberof InvoicesApi
|
|
6191
|
+
*/
|
|
6192
|
+
deleteInvoice(requestParameters, options) {
|
|
6193
|
+
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6194
|
+
}
|
|
6195
|
+
/**
|
|
6196
|
+
*
|
|
6197
|
+
* @summary Delete invoice user defaults.
|
|
6198
|
+
* @param {InvoicesApiDeleteInvoiceUserRequest} requestParameters Request parameters.
|
|
6199
|
+
* @param {*} [options] Override http request option.
|
|
6200
|
+
* @throws {RequiredError}
|
|
6201
|
+
* @memberof InvoicesApi
|
|
6202
|
+
*/
|
|
6203
|
+
deleteInvoiceUser(requestParameters, options) {
|
|
6204
|
+
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6205
|
+
}
|
|
6206
|
+
/**
|
|
6207
|
+
*
|
|
6208
|
+
* @summary Returns all invoices in the system.
|
|
6209
|
+
* @param {InvoicesApiGetAllInvoicesRequest} requestParameters Request parameters.
|
|
6210
|
+
* @param {*} [options] Override http request option.
|
|
6211
|
+
* @throws {RequiredError}
|
|
6212
|
+
* @memberof InvoicesApi
|
|
6213
|
+
*/
|
|
6214
|
+
getAllInvoices(requestParameters = {}, options) {
|
|
6215
|
+
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));
|
|
6216
|
+
}
|
|
6217
|
+
/**
|
|
6218
|
+
*
|
|
6219
|
+
* @summary Get eligible transactions for invoice creation.
|
|
6220
|
+
* @param {InvoicesApiGetEligibleTransactionsRequest} requestParameters Request parameters.
|
|
6221
|
+
* @param {*} [options] Override http request option.
|
|
6222
|
+
* @throws {RequiredError}
|
|
6223
|
+
* @memberof InvoicesApi
|
|
6224
|
+
*/
|
|
6225
|
+
getEligibleTransactions(requestParameters, options) {
|
|
6226
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
|
|
6227
|
+
}
|
|
6228
|
+
/**
|
|
6229
|
+
*
|
|
6230
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6231
|
+
* @param {*} [options] Override http request option.
|
|
6232
|
+
* @throws {RequiredError}
|
|
6233
|
+
* @memberof InvoicesApi
|
|
6234
|
+
*/
|
|
6235
|
+
getInvoiceDrift(options) {
|
|
6236
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
|
|
6237
|
+
}
|
|
6238
|
+
/**
|
|
6239
|
+
*
|
|
6240
|
+
* @summary Get an invoice pdf.
|
|
6241
|
+
* @param {InvoicesApiGetInvoicePdfRequest} requestParameters Request parameters.
|
|
6242
|
+
* @param {*} [options] Override http request option.
|
|
6243
|
+
* @throws {RequiredError}
|
|
6244
|
+
* @memberof InvoicesApi
|
|
6245
|
+
*/
|
|
6246
|
+
getInvoicePdf(requestParameters, options) {
|
|
6247
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(requestParameters.id, requestParameters.force, options).then((request) => request(this.axios, this.basePath));
|
|
6248
|
+
}
|
|
6249
|
+
/**
|
|
6250
|
+
*
|
|
6251
|
+
* @summary Returns a single invoice in the system.
|
|
6252
|
+
* @param {InvoicesApiGetSingleInvoiceRequest} requestParameters Request parameters.
|
|
6253
|
+
* @param {*} [options] Override http request option.
|
|
6254
|
+
* @throws {RequiredError}
|
|
6255
|
+
* @memberof InvoicesApi
|
|
6256
|
+
*/
|
|
6257
|
+
getSingleInvoice(requestParameters, options) {
|
|
6258
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoice(requestParameters.id, requestParameters.returnEntries, options).then((request) => request(this.axios, this.basePath));
|
|
6259
|
+
}
|
|
6260
|
+
/**
|
|
6261
|
+
*
|
|
6262
|
+
* @summary Get invoice user defaults.
|
|
6263
|
+
* @param {InvoicesApiGetSingleInvoiceUserRequest} requestParameters Request parameters.
|
|
6264
|
+
* @param {*} [options] Override http request option.
|
|
6265
|
+
* @throws {RequiredError}
|
|
6266
|
+
* @memberof InvoicesApi
|
|
6267
|
+
*/
|
|
6268
|
+
getSingleInvoiceUser(requestParameters, options) {
|
|
6269
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6270
|
+
}
|
|
6271
|
+
/**
|
|
6272
|
+
*
|
|
6273
|
+
* @summary Update or create invoice user defaults.
|
|
6274
|
+
* @param {InvoicesApiPutInvoiceUserRequest} requestParameters Request parameters.
|
|
6275
|
+
* @param {*} [options] Override http request option.
|
|
6276
|
+
* @throws {RequiredError}
|
|
6277
|
+
* @memberof InvoicesApi
|
|
6278
|
+
*/
|
|
6279
|
+
putInvoiceUser(requestParameters, options) {
|
|
6280
|
+
return (0, exports.InvoicesApiFp)(this.configuration).putInvoiceUser(requestParameters.id, requestParameters.updateInvoiceUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6281
|
+
}
|
|
6282
|
+
/**
|
|
6283
|
+
*
|
|
6284
|
+
* @summary Adds an invoice to the system.
|
|
6285
|
+
* @param {InvoicesApiUpdateInvoiceRequest} requestParameters Request parameters.
|
|
6286
|
+
* @param {*} [options] Override http request option.
|
|
6287
|
+
* @throws {RequiredError}
|
|
6288
|
+
* @memberof InvoicesApi
|
|
6289
|
+
*/
|
|
6290
|
+
updateInvoice(requestParameters, options) {
|
|
6291
|
+
return (0, exports.InvoicesApiFp)(this.configuration).updateInvoice(requestParameters.id, requestParameters.updateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6292
|
+
}
|
|
6293
|
+
}
|
|
6294
|
+
exports.InvoicesApi = InvoicesApi;
|
|
6295
|
+
/**
|
|
6296
|
+
* PaymentRequestsApi - axios parameter creator
|
|
6297
|
+
* @export
|
|
6298
|
+
*/
|
|
6299
|
+
const PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
6300
|
+
return {
|
|
6301
|
+
/**
|
|
6302
|
+
*
|
|
6303
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6304
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6305
|
+
* @param {*} [options] Override http request option.
|
|
6306
|
+
* @throws {RequiredError}
|
|
6307
|
+
*/
|
|
6308
|
+
cancelPaymentRequest: async (id, options = {}) => {
|
|
6309
|
+
// verify required parameter 'id' is not null or undefined
|
|
6310
|
+
(0, common_1.assertParamExists)('cancelPaymentRequest', 'id', id);
|
|
6311
|
+
const localVarPath = `/payment-requests/{id}/cancel`
|
|
6312
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6314
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6315
|
+
let baseOptions;
|
|
6316
|
+
if (configuration) {
|
|
6317
|
+
baseOptions = configuration.baseOptions;
|
|
6318
|
+
}
|
|
6319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6320
|
+
const localVarHeaderParameter = {};
|
|
6321
|
+
const localVarQueryParameter = {};
|
|
6322
|
+
// authentication JWT required
|
|
6323
|
+
// http bearer authentication required
|
|
6324
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6325
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6327
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6328
|
+
return {
|
|
6329
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6330
|
+
options: localVarRequestOptions,
|
|
6331
|
+
};
|
|
6332
|
+
},
|
|
6333
|
+
/**
|
|
6334
|
+
*
|
|
6335
|
+
* @summary Create a new PaymentRequest.
|
|
6336
|
+
* @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
|
|
6337
|
+
* @param {*} [options] Override http request option.
|
|
6338
|
+
* @throws {RequiredError}
|
|
6339
|
+
*/
|
|
6340
|
+
createPaymentRequest: async (createPaymentRequestRequest, options = {}) => {
|
|
6341
|
+
// verify required parameter 'createPaymentRequestRequest' is not null or undefined
|
|
6342
|
+
(0, common_1.assertParamExists)('createPaymentRequest', 'createPaymentRequestRequest', createPaymentRequestRequest);
|
|
6343
|
+
const localVarPath = `/payment-requests`;
|
|
6344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6345
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6346
|
+
let baseOptions;
|
|
6347
|
+
if (configuration) {
|
|
6348
|
+
baseOptions = configuration.baseOptions;
|
|
6349
|
+
}
|
|
6350
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6351
|
+
const localVarHeaderParameter = {};
|
|
6352
|
+
const localVarQueryParameter = {};
|
|
6353
|
+
// authentication JWT required
|
|
6354
|
+
// http bearer authentication required
|
|
6355
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6356
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6358
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6359
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6360
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentRequestRequest, localVarRequestOptions, configuration);
|
|
6361
|
+
return {
|
|
6362
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6363
|
+
options: localVarRequestOptions,
|
|
6364
|
+
};
|
|
6365
|
+
},
|
|
6366
|
+
/**
|
|
6367
|
+
*
|
|
6368
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6369
|
+
* @param {number} [forId] Filter by beneficiary user id.
|
|
6370
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
6371
|
+
* @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
6372
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
6373
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
6374
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
6375
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
6376
|
+
* @param {*} [options] Override http request option.
|
|
6377
|
+
* @throws {RequiredError}
|
|
6378
|
+
*/
|
|
6379
|
+
getAllPaymentRequests: async (forId, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
|
|
6380
|
+
const localVarPath = `/payment-requests`;
|
|
6381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6382
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6383
|
+
let baseOptions;
|
|
6384
|
+
if (configuration) {
|
|
6385
|
+
baseOptions = configuration.baseOptions;
|
|
6386
|
+
}
|
|
6387
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6388
|
+
const localVarHeaderParameter = {};
|
|
6389
|
+
const localVarQueryParameter = {};
|
|
6390
|
+
// authentication JWT required
|
|
6391
|
+
// http bearer authentication required
|
|
6392
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6393
|
+
if (forId !== undefined) {
|
|
6394
|
+
localVarQueryParameter['forId'] = forId;
|
|
6395
|
+
}
|
|
6396
|
+
if (createdById !== undefined) {
|
|
6397
|
+
localVarQueryParameter['createdById'] = createdById;
|
|
6398
|
+
}
|
|
6399
|
+
if (status !== undefined) {
|
|
6400
|
+
localVarQueryParameter['status'] = status;
|
|
6401
|
+
}
|
|
6402
|
+
if (fromDate !== undefined) {
|
|
6403
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
6404
|
+
}
|
|
6405
|
+
if (tillDate !== undefined) {
|
|
6406
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
6407
|
+
}
|
|
6408
|
+
if (take !== undefined) {
|
|
6409
|
+
localVarQueryParameter['take'] = take;
|
|
6410
|
+
}
|
|
6411
|
+
if (skip !== undefined) {
|
|
6412
|
+
localVarQueryParameter['skip'] = skip;
|
|
6413
|
+
}
|
|
6414
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6415
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6416
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6417
|
+
return {
|
|
6418
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6419
|
+
options: localVarRequestOptions,
|
|
6420
|
+
};
|
|
6421
|
+
},
|
|
6422
|
+
/**
|
|
6423
|
+
*
|
|
6424
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6425
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6426
|
+
* @param {*} [options] Override http request option.
|
|
6427
|
+
* @throws {RequiredError}
|
|
6428
|
+
*/
|
|
6429
|
+
getSinglePaymentRequest: async (id, options = {}) => {
|
|
6430
|
+
// verify required parameter 'id' is not null or undefined
|
|
6431
|
+
(0, common_1.assertParamExists)('getSinglePaymentRequest', 'id', id);
|
|
6432
|
+
const localVarPath = `/payment-requests/{id}`
|
|
6433
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6434
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6435
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6436
|
+
let baseOptions;
|
|
6437
|
+
if (configuration) {
|
|
6438
|
+
baseOptions = configuration.baseOptions;
|
|
6439
|
+
}
|
|
6440
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6441
|
+
const localVarHeaderParameter = {};
|
|
6442
|
+
const localVarQueryParameter = {};
|
|
6443
|
+
// authentication JWT required
|
|
6444
|
+
// http bearer authentication required
|
|
6445
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6446
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6447
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6448
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6449
|
+
return {
|
|
6450
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6451
|
+
options: localVarRequestOptions,
|
|
6452
|
+
};
|
|
6453
|
+
},
|
|
6454
|
+
/**
|
|
6455
|
+
*
|
|
6456
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6457
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6458
|
+
* @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
|
|
6459
|
+
* @param {*} [options] Override http request option.
|
|
6460
|
+
* @throws {RequiredError}
|
|
6461
|
+
*/
|
|
6462
|
+
markPaymentRequestFulfilledExternally: async (id, markFulfilledExternallyRequest, options = {}) => {
|
|
6463
|
+
// verify required parameter 'id' is not null or undefined
|
|
6464
|
+
(0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'id', id);
|
|
6465
|
+
// verify required parameter 'markFulfilledExternallyRequest' is not null or undefined
|
|
6466
|
+
(0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'markFulfilledExternallyRequest', markFulfilledExternallyRequest);
|
|
6467
|
+
const localVarPath = `/payment-requests/{id}/mark-fulfilled`
|
|
6468
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6470
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6471
|
+
let baseOptions;
|
|
6472
|
+
if (configuration) {
|
|
6473
|
+
baseOptions = configuration.baseOptions;
|
|
6474
|
+
}
|
|
6475
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6476
|
+
const localVarHeaderParameter = {};
|
|
6477
|
+
const localVarQueryParameter = {};
|
|
6478
|
+
// authentication JWT required
|
|
6479
|
+
// http bearer authentication required
|
|
6480
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6481
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6482
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6483
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6484
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6485
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markFulfilledExternallyRequest, localVarRequestOptions, configuration);
|
|
6486
|
+
return {
|
|
6487
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6488
|
+
options: localVarRequestOptions,
|
|
6489
|
+
};
|
|
6490
|
+
},
|
|
6491
|
+
/**
|
|
6492
|
+
*
|
|
6493
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6494
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6495
|
+
* @param {*} [options] Override http request option.
|
|
6496
|
+
* @throws {RequiredError}
|
|
6497
|
+
*/
|
|
6498
|
+
startPaymentRequestAuthenticated: async (id, options = {}) => {
|
|
6499
|
+
// verify required parameter 'id' is not null or undefined
|
|
6500
|
+
(0, common_1.assertParamExists)('startPaymentRequestAuthenticated', 'id', id);
|
|
6501
|
+
const localVarPath = `/payment-requests/{id}/start`
|
|
6502
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6505
|
+
let baseOptions;
|
|
6506
|
+
if (configuration) {
|
|
6507
|
+
baseOptions = configuration.baseOptions;
|
|
6508
|
+
}
|
|
6509
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6510
|
+
const localVarHeaderParameter = {};
|
|
6511
|
+
const localVarQueryParameter = {};
|
|
6512
|
+
// authentication JWT required
|
|
6513
|
+
// http bearer authentication required
|
|
6514
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6515
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6517
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6518
|
+
return {
|
|
6519
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6520
|
+
options: localVarRequestOptions,
|
|
6521
|
+
};
|
|
6522
|
+
},
|
|
6523
|
+
};
|
|
6524
|
+
};
|
|
6525
|
+
exports.PaymentRequestsApiAxiosParamCreator = PaymentRequestsApiAxiosParamCreator;
|
|
6526
|
+
/**
|
|
6527
|
+
* PaymentRequestsApi - functional programming interface
|
|
6528
|
+
* @export
|
|
6529
|
+
*/
|
|
6530
|
+
const PaymentRequestsApiFp = function (configuration) {
|
|
6531
|
+
const localVarAxiosParamCreator = (0, exports.PaymentRequestsApiAxiosParamCreator)(configuration);
|
|
6532
|
+
return {
|
|
6533
|
+
/**
|
|
6534
|
+
*
|
|
6535
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6536
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6537
|
+
* @param {*} [options] Override http request option.
|
|
6538
|
+
* @throws {RequiredError}
|
|
6539
|
+
*/
|
|
6540
|
+
async cancelPaymentRequest(id, options) {
|
|
6541
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPaymentRequest(id, options);
|
|
6542
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6543
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.cancelPaymentRequest']?.[index]?.url;
|
|
6544
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6545
|
+
},
|
|
6546
|
+
/**
|
|
6547
|
+
*
|
|
6548
|
+
* @summary Create a new PaymentRequest.
|
|
6549
|
+
* @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
|
|
6550
|
+
* @param {*} [options] Override http request option.
|
|
6551
|
+
* @throws {RequiredError}
|
|
6552
|
+
*/
|
|
6553
|
+
async createPaymentRequest(createPaymentRequestRequest, options) {
|
|
6554
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequest, options);
|
|
6555
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6556
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.createPaymentRequest']?.[index]?.url;
|
|
6557
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6558
|
+
},
|
|
6559
|
+
/**
|
|
6560
|
+
*
|
|
6561
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6562
|
+
* @param {number} [forId] Filter by beneficiary user id.
|
|
6563
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
6564
|
+
* @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
6565
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
6566
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
6567
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
6568
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
6569
|
+
* @param {*} [options] Override http request option.
|
|
6570
|
+
* @throws {RequiredError}
|
|
6571
|
+
*/
|
|
6572
|
+
async getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options) {
|
|
6573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options);
|
|
6574
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6575
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getAllPaymentRequests']?.[index]?.url;
|
|
6576
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6577
|
+
},
|
|
6578
|
+
/**
|
|
6579
|
+
*
|
|
6580
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6581
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6582
|
+
* @param {*} [options] Override http request option.
|
|
6583
|
+
* @throws {RequiredError}
|
|
6584
|
+
*/
|
|
6585
|
+
async getSinglePaymentRequest(id, options) {
|
|
6586
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSinglePaymentRequest(id, options);
|
|
6587
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6588
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getSinglePaymentRequest']?.[index]?.url;
|
|
6589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6590
|
+
},
|
|
6591
|
+
/**
|
|
6592
|
+
*
|
|
6593
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6594
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6595
|
+
* @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
|
|
6596
|
+
* @param {*} [options] Override http request option.
|
|
6597
|
+
* @throws {RequiredError}
|
|
6598
|
+
*/
|
|
6599
|
+
async markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options) {
|
|
6600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options);
|
|
6601
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6602
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.markPaymentRequestFulfilledExternally']?.[index]?.url;
|
|
6603
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6604
|
+
},
|
|
6605
|
+
/**
|
|
6606
|
+
*
|
|
6607
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6608
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6609
|
+
* @param {*} [options] Override http request option.
|
|
6610
|
+
* @throws {RequiredError}
|
|
6611
|
+
*/
|
|
6612
|
+
async startPaymentRequestAuthenticated(id, options) {
|
|
6613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestAuthenticated(id, options);
|
|
6614
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6615
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.startPaymentRequestAuthenticated']?.[index]?.url;
|
|
6616
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6617
|
+
},
|
|
6618
|
+
};
|
|
6619
|
+
};
|
|
6620
|
+
exports.PaymentRequestsApiFp = PaymentRequestsApiFp;
|
|
6621
|
+
/**
|
|
6622
|
+
* PaymentRequestsApi - factory interface
|
|
6623
|
+
* @export
|
|
6624
|
+
*/
|
|
6625
|
+
const PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
6626
|
+
const localVarFp = (0, exports.PaymentRequestsApiFp)(configuration);
|
|
6627
|
+
return {
|
|
6628
|
+
/**
|
|
6629
|
+
*
|
|
6630
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6631
|
+
* @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
|
|
6632
|
+
* @param {*} [options] Override http request option.
|
|
6633
|
+
* @throws {RequiredError}
|
|
6634
|
+
*/
|
|
6635
|
+
cancelPaymentRequest(requestParameters, options) {
|
|
6636
|
+
return localVarFp.cancelPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6637
|
+
},
|
|
6638
|
+
/**
|
|
6639
|
+
*
|
|
6640
|
+
* @summary Create a new PaymentRequest.
|
|
6641
|
+
* @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
|
|
6642
|
+
* @param {*} [options] Override http request option.
|
|
6643
|
+
* @throws {RequiredError}
|
|
6644
|
+
*/
|
|
6645
|
+
createPaymentRequest(requestParameters, options) {
|
|
6646
|
+
return localVarFp.createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(axios, basePath));
|
|
6647
|
+
},
|
|
6648
|
+
/**
|
|
6649
|
+
*
|
|
6650
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6651
|
+
* @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
|
|
6652
|
+
* @param {*} [options] Override http request option.
|
|
6653
|
+
* @throws {RequiredError}
|
|
6654
|
+
*/
|
|
6655
|
+
getAllPaymentRequests(requestParameters = {}, options) {
|
|
6656
|
+
return localVarFp.getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
6657
|
+
},
|
|
6658
|
+
/**
|
|
6659
|
+
*
|
|
6660
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6661
|
+
* @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
|
|
6662
|
+
* @param {*} [options] Override http request option.
|
|
6663
|
+
* @throws {RequiredError}
|
|
6664
|
+
*/
|
|
6665
|
+
getSinglePaymentRequest(requestParameters, options) {
|
|
6666
|
+
return localVarFp.getSinglePaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6667
|
+
},
|
|
6668
|
+
/**
|
|
6669
|
+
*
|
|
6670
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6671
|
+
* @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
|
|
6672
|
+
* @param {*} [options] Override http request option.
|
|
6673
|
+
* @throws {RequiredError}
|
|
6674
|
+
*/
|
|
6675
|
+
markPaymentRequestFulfilledExternally(requestParameters, options) {
|
|
6676
|
+
return localVarFp.markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(axios, basePath));
|
|
6677
|
+
},
|
|
6678
|
+
/**
|
|
6679
|
+
*
|
|
6680
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6681
|
+
* @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
|
|
6682
|
+
* @param {*} [options] Override http request option.
|
|
6683
|
+
* @throws {RequiredError}
|
|
6684
|
+
*/
|
|
6685
|
+
startPaymentRequestAuthenticated(requestParameters, options) {
|
|
6686
|
+
return localVarFp.startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6687
|
+
},
|
|
6688
|
+
};
|
|
6689
|
+
};
|
|
6690
|
+
exports.PaymentRequestsApiFactory = PaymentRequestsApiFactory;
|
|
6691
|
+
/**
|
|
6692
|
+
* PaymentRequestsApi - object-oriented interface
|
|
6693
|
+
* @export
|
|
6694
|
+
* @class PaymentRequestsApi
|
|
6695
|
+
* @extends {BaseAPI}
|
|
6696
|
+
*/
|
|
6697
|
+
class PaymentRequestsApi extends base_1.BaseAPI {
|
|
6698
|
+
/**
|
|
6699
|
+
*
|
|
6700
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6701
|
+
* @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
|
|
6702
|
+
* @param {*} [options] Override http request option.
|
|
6703
|
+
* @throws {RequiredError}
|
|
6704
|
+
* @memberof PaymentRequestsApi
|
|
6705
|
+
*/
|
|
6706
|
+
cancelPaymentRequest(requestParameters, options) {
|
|
6707
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).cancelPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6708
|
+
}
|
|
6709
|
+
/**
|
|
6710
|
+
*
|
|
6711
|
+
* @summary Create a new PaymentRequest.
|
|
6712
|
+
* @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
|
|
6713
|
+
* @param {*} [options] Override http request option.
|
|
6714
|
+
* @throws {RequiredError}
|
|
6715
|
+
* @memberof PaymentRequestsApi
|
|
6716
|
+
*/
|
|
6717
|
+
createPaymentRequest(requestParameters, options) {
|
|
6718
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6719
|
+
}
|
|
6720
|
+
/**
|
|
6721
|
+
*
|
|
6722
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6723
|
+
* @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
|
|
6724
|
+
* @param {*} [options] Override http request option.
|
|
6725
|
+
* @throws {RequiredError}
|
|
6726
|
+
* @memberof PaymentRequestsApi
|
|
6727
|
+
*/
|
|
6728
|
+
getAllPaymentRequests(requestParameters = {}, options) {
|
|
6729
|
+
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));
|
|
6730
|
+
}
|
|
6731
|
+
/**
|
|
6732
|
+
*
|
|
6733
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6734
|
+
* @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
|
|
6735
|
+
* @param {*} [options] Override http request option.
|
|
6736
|
+
* @throws {RequiredError}
|
|
6737
|
+
* @memberof PaymentRequestsApi
|
|
6738
|
+
*/
|
|
6739
|
+
getSinglePaymentRequest(requestParameters, options) {
|
|
6740
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).getSinglePaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6741
|
+
}
|
|
6742
|
+
/**
|
|
6743
|
+
*
|
|
6744
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6745
|
+
* @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
|
|
6746
|
+
* @param {*} [options] Override http request option.
|
|
6747
|
+
* @throws {RequiredError}
|
|
6748
|
+
* @memberof PaymentRequestsApi
|
|
6749
|
+
*/
|
|
6750
|
+
markPaymentRequestFulfilledExternally(requestParameters, options) {
|
|
6751
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6752
|
+
}
|
|
6753
|
+
/**
|
|
6754
|
+
*
|
|
6755
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6756
|
+
* @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
|
|
6757
|
+
* @param {*} [options] Override http request option.
|
|
6758
|
+
* @throws {RequiredError}
|
|
6759
|
+
* @memberof PaymentRequestsApi
|
|
6760
|
+
*/
|
|
6761
|
+
startPaymentRequestAuthenticated(requestParameters, options) {
|
|
6762
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6763
|
+
}
|
|
6764
|
+
}
|
|
6765
|
+
exports.PaymentRequestsApi = PaymentRequestsApi;
|
|
6766
|
+
/**
|
|
6767
|
+
* @export
|
|
6768
|
+
*/
|
|
6769
|
+
exports.GetAllPaymentRequestsStatusEnum = {
|
|
6770
|
+
Pending: 'PENDING',
|
|
6771
|
+
Paid: 'PAID',
|
|
6772
|
+
Expired: 'EXPIRED',
|
|
6773
|
+
Cancelled: 'CANCELLED'
|
|
6774
|
+
};
|
|
6775
|
+
/**
|
|
6776
|
+
* PaymentRequestsPublicApi - axios parameter creator
|
|
6777
|
+
* @export
|
|
6778
|
+
*/
|
|
6779
|
+
const PaymentRequestsPublicApiAxiosParamCreator = function (configuration) {
|
|
6780
|
+
return {
|
|
6781
|
+
/**
|
|
6782
|
+
*
|
|
6783
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6784
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6785
|
+
* @param {*} [options] Override http request option.
|
|
6786
|
+
* @throws {RequiredError}
|
|
6787
|
+
*/
|
|
6788
|
+
getPublicPaymentRequest: async (id, options = {}) => {
|
|
6789
|
+
// verify required parameter 'id' is not null or undefined
|
|
6790
|
+
(0, common_1.assertParamExists)('getPublicPaymentRequest', 'id', id);
|
|
6791
|
+
const localVarPath = `/payment-requests-public/{id}`
|
|
6792
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6793
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6794
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6795
|
+
let baseOptions;
|
|
6796
|
+
if (configuration) {
|
|
6797
|
+
baseOptions = configuration.baseOptions;
|
|
6798
|
+
}
|
|
6799
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6800
|
+
const localVarHeaderParameter = {};
|
|
6801
|
+
const localVarQueryParameter = {};
|
|
6802
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6803
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6804
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6805
|
+
return {
|
|
6806
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6807
|
+
options: localVarRequestOptions,
|
|
6808
|
+
};
|
|
6809
|
+
},
|
|
6810
|
+
/**
|
|
6811
|
+
*
|
|
6812
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6813
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6301
6814
|
* @param {*} [options] Override http request option.
|
|
6302
6815
|
* @throws {RequiredError}
|
|
6303
6816
|
*/
|
|
6304
|
-
|
|
6305
|
-
|
|
6817
|
+
startPaymentRequestPublic: async (id, options = {}) => {
|
|
6818
|
+
// verify required parameter 'id' is not null or undefined
|
|
6819
|
+
(0, common_1.assertParamExists)('startPaymentRequestPublic', 'id', id);
|
|
6820
|
+
const localVarPath = `/payment-requests-public/{id}/start`
|
|
6821
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6822
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6823
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6824
|
+
let baseOptions;
|
|
6825
|
+
if (configuration) {
|
|
6826
|
+
baseOptions = configuration.baseOptions;
|
|
6827
|
+
}
|
|
6828
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6829
|
+
const localVarHeaderParameter = {};
|
|
6830
|
+
const localVarQueryParameter = {};
|
|
6831
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6832
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6833
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6834
|
+
return {
|
|
6835
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6836
|
+
options: localVarRequestOptions,
|
|
6837
|
+
};
|
|
6306
6838
|
},
|
|
6839
|
+
};
|
|
6840
|
+
};
|
|
6841
|
+
exports.PaymentRequestsPublicApiAxiosParamCreator = PaymentRequestsPublicApiAxiosParamCreator;
|
|
6842
|
+
/**
|
|
6843
|
+
* PaymentRequestsPublicApi - functional programming interface
|
|
6844
|
+
* @export
|
|
6845
|
+
*/
|
|
6846
|
+
const PaymentRequestsPublicApiFp = function (configuration) {
|
|
6847
|
+
const localVarAxiosParamCreator = (0, exports.PaymentRequestsPublicApiAxiosParamCreator)(configuration);
|
|
6848
|
+
return {
|
|
6307
6849
|
/**
|
|
6308
6850
|
*
|
|
6309
|
-
* @summary Returns a
|
|
6310
|
-
* @param {
|
|
6851
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6852
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6311
6853
|
* @param {*} [options] Override http request option.
|
|
6312
6854
|
* @throws {RequiredError}
|
|
6313
6855
|
*/
|
|
6314
|
-
|
|
6315
|
-
|
|
6856
|
+
async getPublicPaymentRequest(id, options) {
|
|
6857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPaymentRequest(id, options);
|
|
6858
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6859
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.getPublicPaymentRequest']?.[index]?.url;
|
|
6860
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6316
6861
|
},
|
|
6317
6862
|
/**
|
|
6318
6863
|
*
|
|
6319
|
-
* @summary
|
|
6320
|
-
* @param {
|
|
6864
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6865
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6321
6866
|
* @param {*} [options] Override http request option.
|
|
6322
6867
|
* @throws {RequiredError}
|
|
6323
6868
|
*/
|
|
6324
|
-
|
|
6325
|
-
|
|
6869
|
+
async startPaymentRequestPublic(id, options) {
|
|
6870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestPublic(id, options);
|
|
6871
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6872
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.startPaymentRequestPublic']?.[index]?.url;
|
|
6873
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6326
6874
|
},
|
|
6875
|
+
};
|
|
6876
|
+
};
|
|
6877
|
+
exports.PaymentRequestsPublicApiFp = PaymentRequestsPublicApiFp;
|
|
6878
|
+
/**
|
|
6879
|
+
* PaymentRequestsPublicApi - factory interface
|
|
6880
|
+
* @export
|
|
6881
|
+
*/
|
|
6882
|
+
const PaymentRequestsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6883
|
+
const localVarFp = (0, exports.PaymentRequestsPublicApiFp)(configuration);
|
|
6884
|
+
return {
|
|
6327
6885
|
/**
|
|
6328
6886
|
*
|
|
6329
|
-
* @summary
|
|
6330
|
-
* @param {
|
|
6887
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6888
|
+
* @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
|
|
6331
6889
|
* @param {*} [options] Override http request option.
|
|
6332
6890
|
* @throws {RequiredError}
|
|
6333
6891
|
*/
|
|
6334
|
-
|
|
6335
|
-
return localVarFp.
|
|
6892
|
+
getPublicPaymentRequest(requestParameters, options) {
|
|
6893
|
+
return localVarFp.getPublicPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6336
6894
|
},
|
|
6337
6895
|
/**
|
|
6338
6896
|
*
|
|
6339
|
-
* @summary
|
|
6340
|
-
* @param {
|
|
6897
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6898
|
+
* @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
|
|
6341
6899
|
* @param {*} [options] Override http request option.
|
|
6342
6900
|
* @throws {RequiredError}
|
|
6343
6901
|
*/
|
|
6344
|
-
|
|
6345
|
-
return localVarFp.
|
|
6902
|
+
startPaymentRequestPublic(requestParameters, options) {
|
|
6903
|
+
return localVarFp.startPaymentRequestPublic(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6346
6904
|
},
|
|
6347
6905
|
};
|
|
6348
6906
|
};
|
|
6349
|
-
exports.
|
|
6907
|
+
exports.PaymentRequestsPublicApiFactory = PaymentRequestsPublicApiFactory;
|
|
6350
6908
|
/**
|
|
6351
|
-
*
|
|
6909
|
+
* PaymentRequestsPublicApi - object-oriented interface
|
|
6352
6910
|
* @export
|
|
6353
|
-
* @class
|
|
6911
|
+
* @class PaymentRequestsPublicApi
|
|
6354
6912
|
* @extends {BaseAPI}
|
|
6355
6913
|
*/
|
|
6356
|
-
class
|
|
6357
|
-
/**
|
|
6358
|
-
*
|
|
6359
|
-
* @summary Adds an invoice to the system.
|
|
6360
|
-
* @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
|
|
6361
|
-
* @param {*} [options] Override http request option.
|
|
6362
|
-
* @throws {RequiredError}
|
|
6363
|
-
* @memberof InvoicesApi
|
|
6364
|
-
*/
|
|
6365
|
-
createInvoice(requestParameters, options) {
|
|
6366
|
-
return (0, exports.InvoicesApiFp)(this.configuration).createInvoice(requestParameters.createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6367
|
-
}
|
|
6368
|
-
/**
|
|
6369
|
-
*
|
|
6370
|
-
* @summary Deletes an invoice.
|
|
6371
|
-
* @param {InvoicesApiDeleteInvoiceRequest} requestParameters Request parameters.
|
|
6372
|
-
* @param {*} [options] Override http request option.
|
|
6373
|
-
* @throws {RequiredError}
|
|
6374
|
-
* @memberof InvoicesApi
|
|
6375
|
-
*/
|
|
6376
|
-
deleteInvoice(requestParameters, options) {
|
|
6377
|
-
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6378
|
-
}
|
|
6379
|
-
/**
|
|
6380
|
-
*
|
|
6381
|
-
* @summary Delete invoice user defaults.
|
|
6382
|
-
* @param {InvoicesApiDeleteInvoiceUserRequest} requestParameters Request parameters.
|
|
6383
|
-
* @param {*} [options] Override http request option.
|
|
6384
|
-
* @throws {RequiredError}
|
|
6385
|
-
* @memberof InvoicesApi
|
|
6386
|
-
*/
|
|
6387
|
-
deleteInvoiceUser(requestParameters, options) {
|
|
6388
|
-
return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6389
|
-
}
|
|
6390
|
-
/**
|
|
6391
|
-
*
|
|
6392
|
-
* @summary Returns all invoices in the system.
|
|
6393
|
-
* @param {InvoicesApiGetAllInvoicesRequest} requestParameters Request parameters.
|
|
6394
|
-
* @param {*} [options] Override http request option.
|
|
6395
|
-
* @throws {RequiredError}
|
|
6396
|
-
* @memberof InvoicesApi
|
|
6397
|
-
*/
|
|
6398
|
-
getAllInvoices(requestParameters = {}, options) {
|
|
6399
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6400
|
-
}
|
|
6401
|
-
/**
|
|
6402
|
-
*
|
|
6403
|
-
* @summary Get eligible transactions for invoice creation.
|
|
6404
|
-
* @param {InvoicesApiGetEligibleTransactionsRequest} requestParameters Request parameters.
|
|
6405
|
-
* @param {*} [options] Override http request option.
|
|
6406
|
-
* @throws {RequiredError}
|
|
6407
|
-
* @memberof InvoicesApi
|
|
6408
|
-
*/
|
|
6409
|
-
getEligibleTransactions(requestParameters, options) {
|
|
6410
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
|
|
6411
|
-
}
|
|
6412
|
-
/**
|
|
6413
|
-
*
|
|
6414
|
-
* @summary Get an invoice pdf.
|
|
6415
|
-
* @param {InvoicesApiGetInvoicePdfRequest} requestParameters Request parameters.
|
|
6416
|
-
* @param {*} [options] Override http request option.
|
|
6417
|
-
* @throws {RequiredError}
|
|
6418
|
-
* @memberof InvoicesApi
|
|
6419
|
-
*/
|
|
6420
|
-
getInvoicePdf(requestParameters, options) {
|
|
6421
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(requestParameters.id, requestParameters.force, options).then((request) => request(this.axios, this.basePath));
|
|
6422
|
-
}
|
|
6423
|
-
/**
|
|
6424
|
-
*
|
|
6425
|
-
* @summary Returns a single invoice in the system.
|
|
6426
|
-
* @param {InvoicesApiGetSingleInvoiceRequest} requestParameters Request parameters.
|
|
6427
|
-
* @param {*} [options] Override http request option.
|
|
6428
|
-
* @throws {RequiredError}
|
|
6429
|
-
* @memberof InvoicesApi
|
|
6430
|
-
*/
|
|
6431
|
-
getSingleInvoice(requestParameters, options) {
|
|
6432
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoice(requestParameters.id, requestParameters.returnEntries, options).then((request) => request(this.axios, this.basePath));
|
|
6433
|
-
}
|
|
6434
|
-
/**
|
|
6435
|
-
*
|
|
6436
|
-
* @summary Get invoice user defaults.
|
|
6437
|
-
* @param {InvoicesApiGetSingleInvoiceUserRequest} requestParameters Request parameters.
|
|
6438
|
-
* @param {*} [options] Override http request option.
|
|
6439
|
-
* @throws {RequiredError}
|
|
6440
|
-
* @memberof InvoicesApi
|
|
6441
|
-
*/
|
|
6442
|
-
getSingleInvoiceUser(requestParameters, options) {
|
|
6443
|
-
return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6444
|
-
}
|
|
6914
|
+
class PaymentRequestsPublicApi extends base_1.BaseAPI {
|
|
6445
6915
|
/**
|
|
6446
6916
|
*
|
|
6447
|
-
* @summary
|
|
6448
|
-
* @param {
|
|
6917
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6918
|
+
* @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
|
|
6449
6919
|
* @param {*} [options] Override http request option.
|
|
6450
6920
|
* @throws {RequiredError}
|
|
6451
|
-
* @memberof
|
|
6921
|
+
* @memberof PaymentRequestsPublicApi
|
|
6452
6922
|
*/
|
|
6453
|
-
|
|
6454
|
-
return (0, exports.
|
|
6923
|
+
getPublicPaymentRequest(requestParameters, options) {
|
|
6924
|
+
return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).getPublicPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6455
6925
|
}
|
|
6456
6926
|
/**
|
|
6457
6927
|
*
|
|
6458
|
-
* @summary
|
|
6459
|
-
* @param {
|
|
6928
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6929
|
+
* @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
|
|
6460
6930
|
* @param {*} [options] Override http request option.
|
|
6461
6931
|
* @throws {RequiredError}
|
|
6462
|
-
* @memberof
|
|
6932
|
+
* @memberof PaymentRequestsPublicApi
|
|
6463
6933
|
*/
|
|
6464
|
-
|
|
6465
|
-
return (0, exports.
|
|
6934
|
+
startPaymentRequestPublic(requestParameters, options) {
|
|
6935
|
+
return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).startPaymentRequestPublic(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6466
6936
|
}
|
|
6467
6937
|
}
|
|
6468
|
-
exports.
|
|
6469
|
-
/**
|
|
6470
|
-
* @export
|
|
6471
|
-
*/
|
|
6472
|
-
exports.GetAllInvoicesCurrentStateEnum = {};
|
|
6938
|
+
exports.PaymentRequestsPublicApi = PaymentRequestsPublicApi;
|
|
6473
6939
|
/**
|
|
6474
6940
|
* PayoutRequestsApi - axios parameter creator
|
|
6475
6941
|
* @export
|
|
@@ -10011,7 +10477,7 @@ const SyncApiAxiosParamCreator = function (configuration) {
|
|
|
10011
10477
|
/**
|
|
10012
10478
|
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10013
10479
|
* @summary Get dry-run sync results for users
|
|
10014
|
-
* @param {GetUserSyncResultsServiceEnum} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10480
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10015
10481
|
* @param {*} [options] Override http request option.
|
|
10016
10482
|
* @throws {RequiredError}
|
|
10017
10483
|
*/
|
|
@@ -10053,7 +10519,7 @@ const SyncApiFp = function (configuration) {
|
|
|
10053
10519
|
/**
|
|
10054
10520
|
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10055
10521
|
* @summary Get dry-run sync results for users
|
|
10056
|
-
* @param {GetUserSyncResultsServiceEnum} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10522
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10057
10523
|
* @param {*} [options] Override http request option.
|
|
10058
10524
|
* @throws {RequiredError}
|
|
10059
10525
|
*/
|
|
@@ -10109,7 +10575,10 @@ exports.SyncApi = SyncApi;
|
|
|
10109
10575
|
/**
|
|
10110
10576
|
* @export
|
|
10111
10577
|
*/
|
|
10112
|
-
exports.GetUserSyncResultsServiceEnum = {
|
|
10578
|
+
exports.GetUserSyncResultsServiceEnum = {
|
|
10579
|
+
Ldap: 'LDAP',
|
|
10580
|
+
Gewisdb: 'GEWISDB'
|
|
10581
|
+
};
|
|
10113
10582
|
/**
|
|
10114
10583
|
* TermsOfServiceApi - axios parameter creator
|
|
10115
10584
|
* @export
|
|
@@ -11182,12 +11651,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11182
11651
|
* @summary Returns all existing transfers
|
|
11183
11652
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11184
11653
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11654
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11655
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11656
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11185
11657
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11186
11658
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11187
11659
|
* @param {*} [options] Override http request option.
|
|
11188
11660
|
* @throws {RequiredError}
|
|
11189
11661
|
*/
|
|
11190
|
-
getAllTransfers: async (fromDate, tillDate, take, skip, options = {}) => {
|
|
11662
|
+
getAllTransfers: async (fromDate, tillDate, fromId, toId, category, take, skip, options = {}) => {
|
|
11191
11663
|
const localVarPath = `/transfers`;
|
|
11192
11664
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11193
11665
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11207,6 +11679,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11207
11679
|
if (tillDate !== undefined) {
|
|
11208
11680
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
11209
11681
|
}
|
|
11682
|
+
if (fromId !== undefined) {
|
|
11683
|
+
localVarQueryParameter['fromId'] = fromId;
|
|
11684
|
+
}
|
|
11685
|
+
if (toId !== undefined) {
|
|
11686
|
+
localVarQueryParameter['toId'] = toId;
|
|
11687
|
+
}
|
|
11688
|
+
if (category !== undefined) {
|
|
11689
|
+
localVarQueryParameter['category'] = category;
|
|
11690
|
+
}
|
|
11210
11691
|
if (take !== undefined) {
|
|
11211
11692
|
localVarQueryParameter['take'] = take;
|
|
11212
11693
|
}
|
|
@@ -11418,13 +11899,16 @@ const TransfersApiFp = function (configuration) {
|
|
|
11418
11899
|
* @summary Returns all existing transfers
|
|
11419
11900
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11420
11901
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11902
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
11903
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
11904
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11421
11905
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11422
11906
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11423
11907
|
* @param {*} [options] Override http request option.
|
|
11424
11908
|
* @throws {RequiredError}
|
|
11425
11909
|
*/
|
|
11426
|
-
async getAllTransfers(fromDate, tillDate, take, skip, options) {
|
|
11427
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, take, skip, options);
|
|
11910
|
+
async getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options) {
|
|
11911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options);
|
|
11428
11912
|
const index = configuration?.serverIndex ?? 0;
|
|
11429
11913
|
const operationBasePath = base_1.operationServerMap['TransfersApi.getAllTransfers']?.[index]?.url;
|
|
11430
11914
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -11526,7 +12010,7 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
|
|
|
11526
12010
|
* @throws {RequiredError}
|
|
11527
12011
|
*/
|
|
11528
12012
|
getAllTransfers(requestParameters = {}, options) {
|
|
11529
|
-
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12013
|
+
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, requestParameters.category, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
11530
12014
|
},
|
|
11531
12015
|
/**
|
|
11532
12016
|
*
|
|
@@ -11609,7 +12093,7 @@ class TransfersApi extends base_1.BaseAPI {
|
|
|
11609
12093
|
* @memberof TransfersApi
|
|
11610
12094
|
*/
|
|
11611
12095
|
getAllTransfers(requestParameters = {}, options) {
|
|
11612
|
-
return (0, exports.TransfersApiFp)(this.configuration).getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12096
|
+
return (0, exports.TransfersApiFp)(this.configuration).getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, requestParameters.category, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
11613
12097
|
}
|
|
11614
12098
|
/**
|
|
11615
12099
|
*
|
|
@@ -12544,6 +13028,62 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12544
13028
|
options: localVarRequestOptions,
|
|
12545
13029
|
};
|
|
12546
13030
|
},
|
|
13031
|
+
/**
|
|
13032
|
+
*
|
|
13033
|
+
* @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.
|
|
13034
|
+
* @param {number} id The id of the beneficiary user.
|
|
13035
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
13036
|
+
* @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
13037
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
13038
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
13039
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
13040
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
13041
|
+
* @param {*} [options] Override http request option.
|
|
13042
|
+
* @throws {RequiredError}
|
|
13043
|
+
*/
|
|
13044
|
+
getUsersPaymentRequests: async (id, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
|
|
13045
|
+
// verify required parameter 'id' is not null or undefined
|
|
13046
|
+
(0, common_1.assertParamExists)('getUsersPaymentRequests', 'id', id);
|
|
13047
|
+
const localVarPath = `/users/{id}/payment-requests`
|
|
13048
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13049
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13050
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13051
|
+
let baseOptions;
|
|
13052
|
+
if (configuration) {
|
|
13053
|
+
baseOptions = configuration.baseOptions;
|
|
13054
|
+
}
|
|
13055
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13056
|
+
const localVarHeaderParameter = {};
|
|
13057
|
+
const localVarQueryParameter = {};
|
|
13058
|
+
// authentication JWT required
|
|
13059
|
+
// http bearer authentication required
|
|
13060
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13061
|
+
if (createdById !== undefined) {
|
|
13062
|
+
localVarQueryParameter['createdById'] = createdById;
|
|
13063
|
+
}
|
|
13064
|
+
if (status !== undefined) {
|
|
13065
|
+
localVarQueryParameter['status'] = status;
|
|
13066
|
+
}
|
|
13067
|
+
if (fromDate !== undefined) {
|
|
13068
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
13069
|
+
}
|
|
13070
|
+
if (tillDate !== undefined) {
|
|
13071
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
13072
|
+
}
|
|
13073
|
+
if (take !== undefined) {
|
|
13074
|
+
localVarQueryParameter['take'] = take;
|
|
13075
|
+
}
|
|
13076
|
+
if (skip !== undefined) {
|
|
13077
|
+
localVarQueryParameter['skip'] = skip;
|
|
13078
|
+
}
|
|
13079
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13081
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13082
|
+
return {
|
|
13083
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13084
|
+
options: localVarRequestOptions,
|
|
13085
|
+
};
|
|
13086
|
+
},
|
|
12547
13087
|
/**
|
|
12548
13088
|
*
|
|
12549
13089
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -13619,6 +14159,25 @@ const UsersApiFp = function (configuration) {
|
|
|
13619
14159
|
const operationBasePath = base_1.operationServerMap['UsersApi.getUsersFinancialMutations']?.[index]?.url;
|
|
13620
14160
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
13621
14161
|
},
|
|
14162
|
+
/**
|
|
14163
|
+
*
|
|
14164
|
+
* @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.
|
|
14165
|
+
* @param {number} id The id of the beneficiary user.
|
|
14166
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
14167
|
+
* @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
14168
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
14169
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
14170
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
14171
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
14172
|
+
* @param {*} [options] Override http request option.
|
|
14173
|
+
* @throws {RequiredError}
|
|
14174
|
+
*/
|
|
14175
|
+
async getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options) {
|
|
14176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options);
|
|
14177
|
+
const index = configuration?.serverIndex ?? 0;
|
|
14178
|
+
const operationBasePath = base_1.operationServerMap['UsersApi.getUsersPaymentRequests']?.[index]?.url;
|
|
14179
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14180
|
+
},
|
|
13622
14181
|
/**
|
|
13623
14182
|
*
|
|
13624
14183
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -14101,6 +14660,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14101
14660
|
getUsersFinancialMutations(requestParameters, options) {
|
|
14102
14661
|
return localVarFp.getUsersFinancialMutations(requestParameters.id, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
14103
14662
|
},
|
|
14663
|
+
/**
|
|
14664
|
+
*
|
|
14665
|
+
* @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.
|
|
14666
|
+
* @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
|
|
14667
|
+
* @param {*} [options] Override http request option.
|
|
14668
|
+
* @throws {RequiredError}
|
|
14669
|
+
*/
|
|
14670
|
+
getUsersPaymentRequests(requestParameters, options) {
|
|
14671
|
+
return localVarFp.getUsersPaymentRequests(requestParameters.id, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
14672
|
+
},
|
|
14104
14673
|
/**
|
|
14105
14674
|
*
|
|
14106
14675
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -14499,6 +15068,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
14499
15068
|
getUsersFinancialMutations(requestParameters, options) {
|
|
14500
15069
|
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));
|
|
14501
15070
|
}
|
|
15071
|
+
/**
|
|
15072
|
+
*
|
|
15073
|
+
* @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.
|
|
15074
|
+
* @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
|
|
15075
|
+
* @param {*} [options] Override http request option.
|
|
15076
|
+
* @throws {RequiredError}
|
|
15077
|
+
* @memberof UsersApi
|
|
15078
|
+
*/
|
|
15079
|
+
getUsersPaymentRequests(requestParameters, options) {
|
|
15080
|
+
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));
|
|
15081
|
+
}
|
|
14502
15082
|
/**
|
|
14503
15083
|
*
|
|
14504
15084
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -14734,6 +15314,15 @@ exports.GetAllUsersTypeEnum = {
|
|
|
14734
15314
|
Invoice: 'INVOICE',
|
|
14735
15315
|
AutomaticInvoice: 'AUTOMATIC_INVOICE'
|
|
14736
15316
|
};
|
|
15317
|
+
/**
|
|
15318
|
+
* @export
|
|
15319
|
+
*/
|
|
15320
|
+
exports.GetUsersPaymentRequestsStatusEnum = {
|
|
15321
|
+
Pending: 'PENDING',
|
|
15322
|
+
Paid: 'PAID',
|
|
15323
|
+
Expired: 'EXPIRED',
|
|
15324
|
+
Cancelled: 'CANCELLED'
|
|
15325
|
+
};
|
|
14737
15326
|
/**
|
|
14738
15327
|
* @export
|
|
14739
15328
|
*/
|