@gewis/sudosos-client 0.0.0-develop.d892faf → 0.0.0-develop.da7bb4b
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 +1941 -549
- package/dist/api.js +1801 -631
- 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.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.InactiveAdministrativeCostsApi = exports.InactiveAdministrativeCostsApiFactory = exports.InactiveAdministrativeCostsApiFp = exports.InactiveAdministrativeCostsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.GetFineReportPdfFileTypeEnum = exports.DebtorsApi = exports.DebtorsApiFactory = exports.DebtorsApiFp = exports.DebtorsApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.BannersApi = exports.BannersApiFactory = exports.BannersApiFp = exports.BannersApiAxiosParamCreator = exports.GetAllBalanceOrderDirectionEnum = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuthenticateApi = exports.AuthenticateApiFactory = exports.AuthenticateApiFp = exports.AuthenticateApiAxiosParamCreator = exports.UserType = exports.UserSettingsResponseLanguageEnum = exports.UpdateInvoiceRequestStateEnum = exports.TermsOfServiceStatus = exports.QRStatusResponseStatusEnum = exports.PublicPaymentRequestResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = exports.BasePaymentRequestResponseStatusEnum = void 0;
|
|
17
|
+
exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.StripeApi = exports.StripeApiFactory = exports.StripeApiFp = exports.StripeApiAxiosParamCreator = exports.ServerSettingsApi = exports.ServerSettingsApiFactory = exports.ServerSettingsApiFp = exports.ServerSettingsApiAxiosParamCreator = exports.SellerPayoutsApi = exports.SellerPayoutsApiFactory = exports.SellerPayoutsApiFp = exports.SellerPayoutsApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.RbacApi = exports.RbacApiFactory = exports.RbacApiFp = exports.RbacApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductCategoriesApi = exports.ProductCategoriesApiFactory = exports.ProductCategoriesApiFp = exports.ProductCategoriesApiAxiosParamCreator = exports.PointofsaleApi = exports.PointofsaleApiFactory = exports.PointofsaleApiFp = exports.PointofsaleApiAxiosParamCreator = exports.PayoutRequestsApi = exports.PayoutRequestsApiFactory = exports.PayoutRequestsApiFp = exports.PayoutRequestsApiAxiosParamCreator = exports.PaymentRequestsPublicApi = exports.PaymentRequestsPublicApiFactory = exports.PaymentRequestsPublicApiFp = exports.PaymentRequestsPublicApiAxiosParamCreator = exports.GetAllPaymentRequestsStatusEnum = exports.PaymentRequestsApi = exports.PaymentRequestsApiFactory = exports.PaymentRequestsApiFp = exports.PaymentRequestsApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = void 0;
|
|
18
|
+
exports.WriteoffsApi = exports.WriteoffsApiFactory = exports.WriteoffsApiFp = exports.WriteoffsApiAxiosParamCreator = exports.VouchergroupsApi = exports.VouchergroupsApiFactory = exports.VouchergroupsApiFp = exports.VouchergroupsApiAxiosParamCreator = exports.VatGroupsApi = exports.VatGroupsApiFactory = exports.VatGroupsApiFp = exports.VatGroupsApiAxiosParamCreator = exports.GetUsersSalesReportPdfFileTypeEnum = exports.GetUsersPurchaseReportPdfFileTypeEnum = exports.GetUsersPaymentRequestsStatusEnum = exports.GetAllUsersTypeEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserNotificationPreferencesApi = exports.UserNotificationPreferencesApiFactory = exports.UserNotificationPreferencesApiFp = exports.UserNotificationPreferencesApiAxiosParamCreator = exports.TransfersApi = exports.TransfersApiFactory = exports.TransfersApiFp = exports.TransfersApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TransactionSummariesApi = exports.TransactionSummariesApiFactory = exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.TerminalPaymentsApi = exports.TerminalPaymentsApiFactory = exports.TerminalPaymentsApiFp = exports.TerminalPaymentsApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = exports.SyncApi = void 0;
|
|
19
19
|
const axios_1 = require("axios");
|
|
20
20
|
// Some imports not used depending on template conditions
|
|
21
21
|
// @ts-ignore
|
|
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,12 +72,28 @@ 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',
|
|
61
84
|
Expired: 'EXPIRED',
|
|
62
85
|
Cancelled: 'CANCELLED'
|
|
63
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* The terms of service status of a user
|
|
89
|
+
* @export
|
|
90
|
+
* @enum {string}
|
|
91
|
+
*/
|
|
92
|
+
exports.TermsOfServiceStatus = {
|
|
93
|
+
Accepted: 'ACCEPTED',
|
|
94
|
+
NotAccepted: 'NOT_ACCEPTED',
|
|
95
|
+
NotRequired: 'NOT_REQUIRED'
|
|
96
|
+
};
|
|
64
97
|
exports.UpdateInvoiceRequestStateEnum = {
|
|
65
98
|
Created: 'CREATED',
|
|
66
99
|
Sent: 'SENT',
|
|
@@ -72,6 +105,21 @@ exports.UserSettingsResponseLanguageEnum = {
|
|
|
72
105
|
EnUs: 'en-US',
|
|
73
106
|
PlPl: 'pl-PL'
|
|
74
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* The type of a user
|
|
110
|
+
* @export
|
|
111
|
+
* @enum {string}
|
|
112
|
+
*/
|
|
113
|
+
exports.UserType = {
|
|
114
|
+
Member: 'MEMBER',
|
|
115
|
+
Organ: 'ORGAN',
|
|
116
|
+
Voucher: 'VOUCHER',
|
|
117
|
+
LocalUser: 'LOCAL_USER',
|
|
118
|
+
LocalAdmin: 'LOCAL_ADMIN',
|
|
119
|
+
Invoice: 'INVOICE',
|
|
120
|
+
PointOfSale: 'POINT_OF_SALE',
|
|
121
|
+
Integration: 'INTEGRATION'
|
|
122
|
+
};
|
|
75
123
|
/**
|
|
76
124
|
* AuthenticateApi - axios parameter creator
|
|
77
125
|
* @export
|
|
@@ -176,10 +224,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
176
224
|
},
|
|
177
225
|
/**
|
|
178
226
|
*
|
|
179
|
-
* @summary EAN
|
|
180
|
-
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login
|
|
227
|
+
* @summary EAN authentication that requires POS user authentication
|
|
228
|
+
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
|
|
181
229
|
* @param {*} [options] Override http request option.
|
|
182
|
-
* @deprecated
|
|
183
230
|
* @throws {RequiredError}
|
|
184
231
|
*/
|
|
185
232
|
eanAuthentication: async (authenticationEanRequest, options = {}) => {
|
|
@@ -195,6 +242,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
195
242
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
196
243
|
const localVarHeaderParameter = {};
|
|
197
244
|
const localVarQueryParameter = {};
|
|
245
|
+
// authentication JWT required
|
|
246
|
+
// http bearer authentication required
|
|
247
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
198
248
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
249
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
250
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -461,15 +511,14 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
461
511
|
},
|
|
462
512
|
/**
|
|
463
513
|
*
|
|
464
|
-
* @summary PIN
|
|
465
|
-
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login
|
|
514
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
515
|
+
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
|
|
466
516
|
* @param {*} [options] Override http request option.
|
|
467
|
-
* @deprecated
|
|
468
517
|
* @throws {RequiredError}
|
|
469
518
|
*/
|
|
470
|
-
|
|
519
|
+
memberPINAuthentication: async (memberAuthenticationPinRequest, options = {}) => {
|
|
471
520
|
// verify required parameter 'memberAuthenticationPinRequest' is not null or undefined
|
|
472
|
-
(0, common_1.assertParamExists)('
|
|
521
|
+
(0, common_1.assertParamExists)('memberPINAuthentication', 'memberAuthenticationPinRequest', memberAuthenticationPinRequest);
|
|
473
522
|
const localVarPath = `/authentication/member/pin`;
|
|
474
523
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
475
524
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -480,6 +529,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
480
529
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
481
530
|
const localVarHeaderParameter = {};
|
|
482
531
|
const localVarQueryParameter = {};
|
|
532
|
+
// authentication JWT required
|
|
533
|
+
// http bearer authentication required
|
|
534
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
483
535
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
484
536
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
485
537
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -522,10 +574,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
522
574
|
},
|
|
523
575
|
/**
|
|
524
576
|
*
|
|
525
|
-
* @summary NFC
|
|
526
|
-
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login
|
|
577
|
+
* @summary NFC authentication that requires POS user authentication
|
|
578
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
527
579
|
* @param {*} [options] Override http request option.
|
|
528
|
-
* @deprecated
|
|
529
580
|
* @throws {RequiredError}
|
|
530
581
|
*/
|
|
531
582
|
nfcAuthentication: async (authenticationNfcRequest, options = {}) => {
|
|
@@ -541,6 +592,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
541
592
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
542
593
|
const localVarHeaderParameter = {};
|
|
543
594
|
const localVarQueryParameter = {};
|
|
595
|
+
// authentication JWT required
|
|
596
|
+
// http bearer authentication required
|
|
597
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
544
598
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
545
599
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
546
600
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -553,10 +607,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
553
607
|
},
|
|
554
608
|
/**
|
|
555
609
|
*
|
|
556
|
-
* @summary PIN
|
|
557
|
-
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login
|
|
610
|
+
* @summary PIN authentication that requires POS user authentication
|
|
611
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
558
612
|
* @param {*} [options] Override http request option.
|
|
559
|
-
* @deprecated
|
|
560
613
|
* @throws {RequiredError}
|
|
561
614
|
*/
|
|
562
615
|
pinAuthentication: async (authenticationPinRequest, options = {}) => {
|
|
@@ -572,6 +625,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
572
625
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
573
626
|
const localVarHeaderParameter = {};
|
|
574
627
|
const localVarQueryParameter = {};
|
|
628
|
+
// authentication JWT required
|
|
629
|
+
// http bearer authentication required
|
|
630
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
575
631
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
576
632
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
577
633
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -670,138 +726,6 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
|
|
|
670
726
|
options: localVarRequestOptions,
|
|
671
727
|
};
|
|
672
728
|
},
|
|
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
729
|
};
|
|
806
730
|
};
|
|
807
731
|
exports.AuthenticateApiAxiosParamCreator = AuthenticateApiAxiosParamCreator;
|
|
@@ -853,10 +777,9 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
853
777
|
},
|
|
854
778
|
/**
|
|
855
779
|
*
|
|
856
|
-
* @summary EAN
|
|
857
|
-
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login
|
|
780
|
+
* @summary EAN authentication that requires POS user authentication
|
|
781
|
+
* @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
|
|
858
782
|
* @param {*} [options] Override http request option.
|
|
859
|
-
* @deprecated
|
|
860
783
|
* @throws {RequiredError}
|
|
861
784
|
*/
|
|
862
785
|
async eanAuthentication(authenticationEanRequest, options) {
|
|
@@ -981,16 +904,15 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
981
904
|
},
|
|
982
905
|
/**
|
|
983
906
|
*
|
|
984
|
-
* @summary PIN
|
|
985
|
-
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login
|
|
907
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
908
|
+
* @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
|
|
986
909
|
* @param {*} [options] Override http request option.
|
|
987
|
-
* @deprecated
|
|
988
910
|
* @throws {RequiredError}
|
|
989
911
|
*/
|
|
990
|
-
async
|
|
991
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
912
|
+
async memberPINAuthentication(memberAuthenticationPinRequest, options) {
|
|
913
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.memberPINAuthentication(memberAuthenticationPinRequest, options);
|
|
992
914
|
const index = configuration?.serverIndex ?? 0;
|
|
993
|
-
const operationBasePath = base_1.operationServerMap['AuthenticateApi.
|
|
915
|
+
const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPINAuthentication']?.[index]?.url;
|
|
994
916
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
995
917
|
},
|
|
996
918
|
/**
|
|
@@ -1008,10 +930,9 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1008
930
|
},
|
|
1009
931
|
/**
|
|
1010
932
|
*
|
|
1011
|
-
* @summary NFC
|
|
1012
|
-
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login
|
|
933
|
+
* @summary NFC authentication that requires POS user authentication
|
|
934
|
+
* @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
|
|
1013
935
|
* @param {*} [options] Override http request option.
|
|
1014
|
-
* @deprecated
|
|
1015
936
|
* @throws {RequiredError}
|
|
1016
937
|
*/
|
|
1017
938
|
async nfcAuthentication(authenticationNfcRequest, options) {
|
|
@@ -1022,10 +943,9 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1022
943
|
},
|
|
1023
944
|
/**
|
|
1024
945
|
*
|
|
1025
|
-
* @summary PIN
|
|
1026
|
-
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login
|
|
946
|
+
* @summary PIN authentication that requires POS user authentication
|
|
947
|
+
* @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
|
|
1027
948
|
* @param {*} [options] Override http request option.
|
|
1028
|
-
* @deprecated
|
|
1029
949
|
* @throws {RequiredError}
|
|
1030
950
|
*/
|
|
1031
951
|
async pinAuthentication(authenticationPinRequest, options) {
|
|
@@ -1072,58 +992,6 @@ const AuthenticateApiFp = function (configuration) {
|
|
|
1072
992
|
const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocalWithToken']?.[index]?.url;
|
|
1073
993
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
1074
994
|
},
|
|
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
995
|
};
|
|
1128
996
|
};
|
|
1129
997
|
exports.AuthenticateApiFp = AuthenticateApiFp;
|
|
@@ -1166,10 +1034,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1166
1034
|
},
|
|
1167
1035
|
/**
|
|
1168
1036
|
*
|
|
1169
|
-
* @summary EAN
|
|
1037
|
+
* @summary EAN authentication that requires POS user authentication
|
|
1170
1038
|
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1171
1039
|
* @param {*} [options] Override http request option.
|
|
1172
|
-
* @deprecated
|
|
1173
1040
|
* @throws {RequiredError}
|
|
1174
1041
|
*/
|
|
1175
1042
|
eanAuthentication(requestParameters, options) {
|
|
@@ -1264,14 +1131,13 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1264
1131
|
},
|
|
1265
1132
|
/**
|
|
1266
1133
|
*
|
|
1267
|
-
* @summary PIN
|
|
1268
|
-
* @param {
|
|
1134
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
1135
|
+
* @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1269
1136
|
* @param {*} [options] Override http request option.
|
|
1270
|
-
* @deprecated
|
|
1271
1137
|
* @throws {RequiredError}
|
|
1272
1138
|
*/
|
|
1273
|
-
|
|
1274
|
-
return localVarFp.
|
|
1139
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1140
|
+
return localVarFp.memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
|
|
1275
1141
|
},
|
|
1276
1142
|
/**
|
|
1277
1143
|
*
|
|
@@ -1285,10 +1151,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1285
1151
|
},
|
|
1286
1152
|
/**
|
|
1287
1153
|
*
|
|
1288
|
-
* @summary NFC
|
|
1154
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1289
1155
|
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1290
1156
|
* @param {*} [options] Override http request option.
|
|
1291
|
-
* @deprecated
|
|
1292
1157
|
* @throws {RequiredError}
|
|
1293
1158
|
*/
|
|
1294
1159
|
nfcAuthentication(requestParameters, options) {
|
|
@@ -1296,10 +1161,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1296
1161
|
},
|
|
1297
1162
|
/**
|
|
1298
1163
|
*
|
|
1299
|
-
* @summary PIN
|
|
1164
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1300
1165
|
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1301
1166
|
* @param {*} [options] Override http request option.
|
|
1302
|
-
* @deprecated
|
|
1303
1167
|
* @throws {RequiredError}
|
|
1304
1168
|
*/
|
|
1305
1169
|
pinAuthentication(requestParameters, options) {
|
|
@@ -1334,46 +1198,6 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
|
|
|
1334
1198
|
resetLocalWithToken(requestParameters, options) {
|
|
1335
1199
|
return localVarFp.resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(axios, basePath));
|
|
1336
1200
|
},
|
|
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
1201
|
};
|
|
1378
1202
|
};
|
|
1379
1203
|
exports.AuthenticateApiFactory = AuthenticateApiFactory;
|
|
@@ -1419,10 +1243,9 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1419
1243
|
}
|
|
1420
1244
|
/**
|
|
1421
1245
|
*
|
|
1422
|
-
* @summary EAN
|
|
1246
|
+
* @summary EAN authentication that requires POS user authentication
|
|
1423
1247
|
* @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
|
|
1424
1248
|
* @param {*} [options] Override http request option.
|
|
1425
|
-
* @deprecated
|
|
1426
1249
|
* @throws {RequiredError}
|
|
1427
1250
|
* @memberof AuthenticateApi
|
|
1428
1251
|
*/
|
|
@@ -1527,15 +1350,14 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1527
1350
|
}
|
|
1528
1351
|
/**
|
|
1529
1352
|
*
|
|
1530
|
-
* @summary PIN
|
|
1531
|
-
* @param {
|
|
1353
|
+
* @summary Member PIN authentication that requires POS user authentication
|
|
1354
|
+
* @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
|
|
1532
1355
|
* @param {*} [options] Override http request option.
|
|
1533
|
-
* @deprecated
|
|
1534
1356
|
* @throws {RequiredError}
|
|
1535
1357
|
* @memberof AuthenticateApi
|
|
1536
1358
|
*/
|
|
1537
|
-
|
|
1538
|
-
return (0, exports.AuthenticateApiFp)(this.configuration).
|
|
1359
|
+
memberPINAuthentication(requestParameters, options) {
|
|
1360
|
+
return (0, exports.AuthenticateApiFp)(this.configuration).memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1539
1361
|
}
|
|
1540
1362
|
/**
|
|
1541
1363
|
*
|
|
@@ -1550,10 +1372,9 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1550
1372
|
}
|
|
1551
1373
|
/**
|
|
1552
1374
|
*
|
|
1553
|
-
* @summary NFC
|
|
1375
|
+
* @summary NFC authentication that requires POS user authentication
|
|
1554
1376
|
* @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
|
|
1555
1377
|
* @param {*} [options] Override http request option.
|
|
1556
|
-
* @deprecated
|
|
1557
1378
|
* @throws {RequiredError}
|
|
1558
1379
|
* @memberof AuthenticateApi
|
|
1559
1380
|
*/
|
|
@@ -1562,10 +1383,9 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1562
1383
|
}
|
|
1563
1384
|
/**
|
|
1564
1385
|
*
|
|
1565
|
-
* @summary PIN
|
|
1386
|
+
* @summary PIN authentication that requires POS user authentication
|
|
1566
1387
|
* @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
|
|
1567
1388
|
* @param {*} [options] Override http request option.
|
|
1568
|
-
* @deprecated
|
|
1569
1389
|
* @throws {RequiredError}
|
|
1570
1390
|
* @memberof AuthenticateApi
|
|
1571
1391
|
*/
|
|
@@ -1604,50 +1424,6 @@ class AuthenticateApi extends base_1.BaseAPI {
|
|
|
1604
1424
|
resetLocalWithToken(requestParameters, options) {
|
|
1605
1425
|
return (0, exports.AuthenticateApiFp)(this.configuration).resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1606
1426
|
}
|
|
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
1427
|
}
|
|
1652
1428
|
exports.AuthenticateApi = AuthenticateApi;
|
|
1653
1429
|
/**
|
|
@@ -1703,7 +1479,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
1703
1479
|
* @param {boolean} [hasFine] Only users with(out) fines
|
|
1704
1480
|
* @param {number} [minFine] Minimum fine
|
|
1705
1481
|
* @param {number} [maxFine] Maximum fine
|
|
1706
|
-
* @param {
|
|
1482
|
+
* @param {Array<UserType>} [userTypes] Filter based on user type.
|
|
1707
1483
|
* @param {string} [orderBy] Column to order balance by - eg: id,amount
|
|
1708
1484
|
* @param {GetAllBalanceOrderDirectionEnum} [orderDirection] Order direction
|
|
1709
1485
|
* @param {boolean} [allowDeleted] Whether to include deleted users
|
|
@@ -1867,7 +1643,7 @@ const BalanceApiFp = function (configuration) {
|
|
|
1867
1643
|
* @param {boolean} [hasFine] Only users with(out) fines
|
|
1868
1644
|
* @param {number} [minFine] Minimum fine
|
|
1869
1645
|
* @param {number} [maxFine] Maximum fine
|
|
1870
|
-
* @param {
|
|
1646
|
+
* @param {Array<UserType>} [userTypes] Filter based on user type.
|
|
1871
1647
|
* @param {string} [orderBy] Column to order balance by - eg: id,amount
|
|
1872
1648
|
* @param {GetAllBalanceOrderDirectionEnum} [orderDirection] Order direction
|
|
1873
1649
|
* @param {boolean} [allowDeleted] Whether to include deleted users
|
|
@@ -2012,10 +1788,6 @@ class BalanceApi extends base_1.BaseAPI {
|
|
|
2012
1788
|
}
|
|
2013
1789
|
}
|
|
2014
1790
|
exports.BalanceApi = BalanceApi;
|
|
2015
|
-
/**
|
|
2016
|
-
* @export
|
|
2017
|
-
*/
|
|
2018
|
-
exports.GetAllBalanceUserTypesEnum = {};
|
|
2019
1791
|
/**
|
|
2020
1792
|
* @export
|
|
2021
1793
|
*/
|
|
@@ -5804,16 +5576,17 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5804
5576
|
* @summary Returns all invoices in the system.
|
|
5805
5577
|
* @param {number} [toId] Filter on Id of the debtor
|
|
5806
5578
|
* @param {number} [invoiceId] Filter on invoice ID
|
|
5807
|
-
* @param {
|
|
5579
|
+
* @param {Array<GetAllInvoicesCurrentStateParameterInner>} [currentState] Filter based on Invoice State.
|
|
5808
5580
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
5809
5581
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
5810
5582
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
5583
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
5811
5584
|
* @param {number} [take] How many entries the endpoint should return
|
|
5812
5585
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
5813
5586
|
* @param {*} [options] Override http request option.
|
|
5814
5587
|
* @throws {RequiredError}
|
|
5815
5588
|
*/
|
|
5816
|
-
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, take, skip, options = {}) => {
|
|
5589
|
+
getAllInvoices: async (toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options = {}) => {
|
|
5817
5590
|
const localVarPath = `/invoices`;
|
|
5818
5591
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5819
5592
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5845,6 +5618,9 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5845
5618
|
if (tillDate !== undefined) {
|
|
5846
5619
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
5847
5620
|
}
|
|
5621
|
+
if (description !== undefined) {
|
|
5622
|
+
localVarQueryParameter['description'] = description;
|
|
5623
|
+
}
|
|
5848
5624
|
if (take !== undefined) {
|
|
5849
5625
|
localVarQueryParameter['take'] = take;
|
|
5850
5626
|
}
|
|
@@ -5905,7 +5681,35 @@ const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
5905
5681
|
},
|
|
5906
5682
|
/**
|
|
5907
5683
|
*
|
|
5908
|
-
* @summary
|
|
5684
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
5685
|
+
* @param {*} [options] Override http request option.
|
|
5686
|
+
* @throws {RequiredError}
|
|
5687
|
+
*/
|
|
5688
|
+
getInvoiceDrift: async (options = {}) => {
|
|
5689
|
+
const localVarPath = `/invoices/drift`;
|
|
5690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5691
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5692
|
+
let baseOptions;
|
|
5693
|
+
if (configuration) {
|
|
5694
|
+
baseOptions = configuration.baseOptions;
|
|
5695
|
+
}
|
|
5696
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5697
|
+
const localVarHeaderParameter = {};
|
|
5698
|
+
const localVarQueryParameter = {};
|
|
5699
|
+
// authentication JWT required
|
|
5700
|
+
// http bearer authentication required
|
|
5701
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5702
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5703
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5704
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5705
|
+
return {
|
|
5706
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5707
|
+
options: localVarRequestOptions,
|
|
5708
|
+
};
|
|
5709
|
+
},
|
|
5710
|
+
/**
|
|
5711
|
+
*
|
|
5712
|
+
* @summary Get an invoice pdf.
|
|
5909
5713
|
* @param {number} id The id of the invoice to return
|
|
5910
5714
|
* @param {boolean} [force] Force creation of pdf
|
|
5911
5715
|
* @param {*} [options] Override http request option.
|
|
@@ -6135,17 +5939,18 @@ const InvoicesApiFp = function (configuration) {
|
|
|
6135
5939
|
* @summary Returns all invoices in the system.
|
|
6136
5940
|
* @param {number} [toId] Filter on Id of the debtor
|
|
6137
5941
|
* @param {number} [invoiceId] Filter on invoice ID
|
|
6138
|
-
* @param {
|
|
5942
|
+
* @param {Array<GetAllInvoicesCurrentStateParameterInner>} [currentState] Filter based on Invoice State.
|
|
6139
5943
|
* @param {boolean} [returnEntries] Boolean if invoice entries should be returned
|
|
6140
5944
|
* @param {string} [fromDate] Start date for selected invoices (inclusive)
|
|
6141
5945
|
* @param {string} [tillDate] End date for selected invoices (exclusive)
|
|
5946
|
+
* @param {string} [description] Filter invoices by description (partial match)
|
|
6142
5947
|
* @param {number} [take] How many entries the endpoint should return
|
|
6143
5948
|
* @param {number} [skip] How many entries should be skipped (for pagination)
|
|
6144
5949
|
* @param {*} [options] Override http request option.
|
|
6145
5950
|
* @throws {RequiredError}
|
|
6146
5951
|
*/
|
|
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);
|
|
5952
|
+
async getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options) {
|
|
5953
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllInvoices(toId, invoiceId, currentState, returnEntries, fromDate, tillDate, description, take, skip, options);
|
|
6149
5954
|
const index = configuration?.serverIndex ?? 0;
|
|
6150
5955
|
const operationBasePath = base_1.operationServerMap['InvoicesApi.getAllInvoices']?.[index]?.url;
|
|
6151
5956
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -6165,6 +5970,18 @@ const InvoicesApiFp = function (configuration) {
|
|
|
6165
5970
|
const operationBasePath = base_1.operationServerMap['InvoicesApi.getEligibleTransactions']?.[index]?.url;
|
|
6166
5971
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6167
5972
|
},
|
|
5973
|
+
/**
|
|
5974
|
+
*
|
|
5975
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
5976
|
+
* @param {*} [options] Override http request option.
|
|
5977
|
+
* @throws {RequiredError}
|
|
5978
|
+
*/
|
|
5979
|
+
async getInvoiceDrift(options) {
|
|
5980
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceDrift(options);
|
|
5981
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5982
|
+
const operationBasePath = base_1.operationServerMap['InvoicesApi.getInvoiceDrift']?.[index]?.url;
|
|
5983
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5984
|
+
},
|
|
6168
5985
|
/**
|
|
6169
5986
|
*
|
|
6170
5987
|
* @summary Get an invoice pdf.
|
|
@@ -6282,7 +6099,7 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6282
6099
|
* @throws {RequiredError}
|
|
6283
6100
|
*/
|
|
6284
6101
|
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));
|
|
6102
|
+
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
6103
|
},
|
|
6287
6104
|
/**
|
|
6288
6105
|
*
|
|
@@ -6294,6 +6111,15 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
6294
6111
|
getEligibleTransactions(requestParameters, options) {
|
|
6295
6112
|
return localVarFp.getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(axios, basePath));
|
|
6296
6113
|
},
|
|
6114
|
+
/**
|
|
6115
|
+
*
|
|
6116
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6117
|
+
* @param {*} [options] Override http request option.
|
|
6118
|
+
* @throws {RequiredError}
|
|
6119
|
+
*/
|
|
6120
|
+
getInvoiceDrift(options) {
|
|
6121
|
+
return localVarFp.getInvoiceDrift(options).then((request) => request(axios, basePath));
|
|
6122
|
+
},
|
|
6297
6123
|
/**
|
|
6298
6124
|
*
|
|
6299
6125
|
* @summary Get an invoice pdf.
|
|
@@ -6396,7 +6222,7 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
6396
6222
|
* @memberof InvoicesApi
|
|
6397
6223
|
*/
|
|
6398
6224
|
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));
|
|
6225
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6400
6226
|
}
|
|
6401
6227
|
/**
|
|
6402
6228
|
*
|
|
@@ -6409,6 +6235,16 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
6409
6235
|
getEligibleTransactions(requestParameters, options) {
|
|
6410
6236
|
return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
|
|
6411
6237
|
}
|
|
6238
|
+
/**
|
|
6239
|
+
*
|
|
6240
|
+
* @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
|
|
6241
|
+
* @param {*} [options] Override http request option.
|
|
6242
|
+
* @throws {RequiredError}
|
|
6243
|
+
* @memberof InvoicesApi
|
|
6244
|
+
*/
|
|
6245
|
+
getInvoiceDrift(options) {
|
|
6246
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
|
|
6247
|
+
}
|
|
6412
6248
|
/**
|
|
6413
6249
|
*
|
|
6414
6250
|
* @summary Get an invoice pdf.
|
|
@@ -6467,26 +6303,54 @@ class InvoicesApi extends base_1.BaseAPI {
|
|
|
6467
6303
|
}
|
|
6468
6304
|
exports.InvoicesApi = InvoicesApi;
|
|
6469
6305
|
/**
|
|
6306
|
+
* PaymentRequestsApi - axios parameter creator
|
|
6470
6307
|
* @export
|
|
6471
6308
|
*/
|
|
6472
|
-
|
|
6473
|
-
/**
|
|
6474
|
-
* PayoutRequestsApi - axios parameter creator
|
|
6475
|
-
* @export
|
|
6476
|
-
*/
|
|
6477
|
-
const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
6309
|
+
const PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
6478
6310
|
return {
|
|
6479
6311
|
/**
|
|
6480
6312
|
*
|
|
6481
|
-
* @summary
|
|
6482
|
-
* @param {
|
|
6313
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6314
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6483
6315
|
* @param {*} [options] Override http request option.
|
|
6484
6316
|
* @throws {RequiredError}
|
|
6485
6317
|
*/
|
|
6486
|
-
|
|
6487
|
-
// verify required parameter '
|
|
6488
|
-
(0, common_1.assertParamExists)('
|
|
6489
|
-
const localVarPath = `/
|
|
6318
|
+
cancelPaymentRequest: async (id, options = {}) => {
|
|
6319
|
+
// verify required parameter 'id' is not null or undefined
|
|
6320
|
+
(0, common_1.assertParamExists)('cancelPaymentRequest', 'id', id);
|
|
6321
|
+
const localVarPath = `/payment-requests/{id}/cancel`
|
|
6322
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6324
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6325
|
+
let baseOptions;
|
|
6326
|
+
if (configuration) {
|
|
6327
|
+
baseOptions = configuration.baseOptions;
|
|
6328
|
+
}
|
|
6329
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6330
|
+
const localVarHeaderParameter = {};
|
|
6331
|
+
const localVarQueryParameter = {};
|
|
6332
|
+
// authentication JWT required
|
|
6333
|
+
// http bearer authentication required
|
|
6334
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6335
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6337
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6338
|
+
return {
|
|
6339
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6340
|
+
options: localVarRequestOptions,
|
|
6341
|
+
};
|
|
6342
|
+
},
|
|
6343
|
+
/**
|
|
6344
|
+
*
|
|
6345
|
+
* @summary Create a new PaymentRequest.
|
|
6346
|
+
* @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
|
|
6347
|
+
* @param {*} [options] Override http request option.
|
|
6348
|
+
* @throws {RequiredError}
|
|
6349
|
+
*/
|
|
6350
|
+
createPaymentRequest: async (createPaymentRequestRequest, options = {}) => {
|
|
6351
|
+
// verify required parameter 'createPaymentRequestRequest' is not null or undefined
|
|
6352
|
+
(0, common_1.assertParamExists)('createPaymentRequest', 'createPaymentRequestRequest', createPaymentRequestRequest);
|
|
6353
|
+
const localVarPath = `/payment-requests`;
|
|
6490
6354
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6491
6355
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6492
6356
|
let baseOptions;
|
|
@@ -6503,7 +6367,7 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6503
6367
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6504
6368
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6505
6369
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6506
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
6370
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentRequestRequest, localVarRequestOptions, configuration);
|
|
6507
6371
|
return {
|
|
6508
6372
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6509
6373
|
options: localVarRequestOptions,
|
|
@@ -6511,19 +6375,19 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6511
6375
|
},
|
|
6512
6376
|
/**
|
|
6513
6377
|
*
|
|
6514
|
-
* @summary
|
|
6515
|
-
* @param {
|
|
6516
|
-
* @param {
|
|
6517
|
-
* @param {
|
|
6518
|
-
* @param {string} [
|
|
6519
|
-
* @param {string} [
|
|
6520
|
-
* @param {number} [take] How many
|
|
6521
|
-
* @param {number} [skip] How many
|
|
6378
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6379
|
+
* @param {number} [forId] Filter by beneficiary user id.
|
|
6380
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
6381
|
+
* @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
6382
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
6383
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
6384
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
6385
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
6522
6386
|
* @param {*} [options] Override http request option.
|
|
6523
6387
|
* @throws {RequiredError}
|
|
6524
6388
|
*/
|
|
6525
|
-
|
|
6526
|
-
const localVarPath = `/
|
|
6389
|
+
getAllPaymentRequests: async (forId, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
|
|
6390
|
+
const localVarPath = `/payment-requests`;
|
|
6527
6391
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6528
6392
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6529
6393
|
let baseOptions;
|
|
@@ -6536,15 +6400,14 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6536
6400
|
// authentication JWT required
|
|
6537
6401
|
// http bearer authentication required
|
|
6538
6402
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6539
|
-
if (
|
|
6540
|
-
|
|
6541
|
-
localVarQueryParameter[key] = value;
|
|
6542
|
-
}
|
|
6403
|
+
if (forId !== undefined) {
|
|
6404
|
+
localVarQueryParameter['forId'] = forId;
|
|
6543
6405
|
}
|
|
6544
|
-
if (
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6406
|
+
if (createdById !== undefined) {
|
|
6407
|
+
localVarQueryParameter['createdById'] = createdById;
|
|
6408
|
+
}
|
|
6409
|
+
if (status !== undefined) {
|
|
6410
|
+
localVarQueryParameter['status'] = status;
|
|
6548
6411
|
}
|
|
6549
6412
|
if (fromDate !== undefined) {
|
|
6550
6413
|
localVarQueryParameter['fromDate'] = fromDate;
|
|
@@ -6552,9 +6415,6 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6552
6415
|
if (tillDate !== undefined) {
|
|
6553
6416
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
6554
6417
|
}
|
|
6555
|
-
if (status !== undefined) {
|
|
6556
|
-
localVarQueryParameter['status'] = status;
|
|
6557
|
-
}
|
|
6558
6418
|
if (take !== undefined) {
|
|
6559
6419
|
localVarQueryParameter['take'] = take;
|
|
6560
6420
|
}
|
|
@@ -6571,16 +6431,15 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6571
6431
|
},
|
|
6572
6432
|
/**
|
|
6573
6433
|
*
|
|
6574
|
-
* @summary
|
|
6575
|
-
* @param {
|
|
6576
|
-
* @param {boolean} [force] Whether to force regeneration of the pdf
|
|
6434
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6435
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6577
6436
|
* @param {*} [options] Override http request option.
|
|
6578
6437
|
* @throws {RequiredError}
|
|
6579
6438
|
*/
|
|
6580
|
-
|
|
6439
|
+
getSinglePaymentRequest: async (id, options = {}) => {
|
|
6581
6440
|
// verify required parameter 'id' is not null or undefined
|
|
6582
|
-
(0, common_1.assertParamExists)('
|
|
6583
|
-
const localVarPath = `/
|
|
6441
|
+
(0, common_1.assertParamExists)('getSinglePaymentRequest', 'id', id);
|
|
6442
|
+
const localVarPath = `/payment-requests/{id}`
|
|
6584
6443
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6585
6444
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6586
6445
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6594,9 +6453,6 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6594
6453
|
// authentication JWT required
|
|
6595
6454
|
// http bearer authentication required
|
|
6596
6455
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6597
|
-
if (force !== undefined) {
|
|
6598
|
-
localVarQueryParameter['force'] = force;
|
|
6599
|
-
}
|
|
6600
6456
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6601
6457
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6602
6458
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -6607,15 +6463,18 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6607
6463
|
},
|
|
6608
6464
|
/**
|
|
6609
6465
|
*
|
|
6610
|
-
* @summary
|
|
6611
|
-
* @param {
|
|
6466
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6467
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6468
|
+
* @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
|
|
6612
6469
|
* @param {*} [options] Override http request option.
|
|
6613
6470
|
* @throws {RequiredError}
|
|
6614
6471
|
*/
|
|
6615
|
-
|
|
6472
|
+
markPaymentRequestFulfilledExternally: async (id, markFulfilledExternallyRequest, options = {}) => {
|
|
6616
6473
|
// verify required parameter 'id' is not null or undefined
|
|
6617
|
-
(0, common_1.assertParamExists)('
|
|
6618
|
-
|
|
6474
|
+
(0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'id', id);
|
|
6475
|
+
// verify required parameter 'markFulfilledExternallyRequest' is not null or undefined
|
|
6476
|
+
(0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'markFulfilledExternallyRequest', markFulfilledExternallyRequest);
|
|
6477
|
+
const localVarPath = `/payment-requests/{id}/mark-fulfilled`
|
|
6619
6478
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6620
6479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6621
6480
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6623,15 +6482,17 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6623
6482
|
if (configuration) {
|
|
6624
6483
|
baseOptions = configuration.baseOptions;
|
|
6625
6484
|
}
|
|
6626
|
-
const localVarRequestOptions = { method: '
|
|
6485
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6627
6486
|
const localVarHeaderParameter = {};
|
|
6628
6487
|
const localVarQueryParameter = {};
|
|
6629
6488
|
// authentication JWT required
|
|
6630
6489
|
// http bearer authentication required
|
|
6631
6490
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6491
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6632
6492
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6633
6493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6634
6494
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6495
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markFulfilledExternallyRequest, localVarRequestOptions, configuration);
|
|
6635
6496
|
return {
|
|
6636
6497
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6637
6498
|
options: localVarRequestOptions,
|
|
@@ -6639,18 +6500,15 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6639
6500
|
},
|
|
6640
6501
|
/**
|
|
6641
6502
|
*
|
|
6642
|
-
* @summary
|
|
6643
|
-
* @param {
|
|
6644
|
-
* @param {PayoutRequestStatusRequest} payoutRequestStatusRequest New state of payout request
|
|
6503
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6504
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6645
6505
|
* @param {*} [options] Override http request option.
|
|
6646
6506
|
* @throws {RequiredError}
|
|
6647
6507
|
*/
|
|
6648
|
-
|
|
6508
|
+
startPaymentRequestAuthenticated: async (id, options = {}) => {
|
|
6649
6509
|
// verify required parameter 'id' is not null or undefined
|
|
6650
|
-
(0, common_1.assertParamExists)('
|
|
6651
|
-
|
|
6652
|
-
(0, common_1.assertParamExists)('setPayoutRequestStatus', 'payoutRequestStatusRequest', payoutRequestStatusRequest);
|
|
6653
|
-
const localVarPath = `/payoutrequests/{id}/status`
|
|
6510
|
+
(0, common_1.assertParamExists)('startPaymentRequestAuthenticated', 'id', id);
|
|
6511
|
+
const localVarPath = `/payment-requests/{id}/start`
|
|
6654
6512
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6655
6513
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6656
6514
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6664,11 +6522,9 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6664
6522
|
// authentication JWT required
|
|
6665
6523
|
// http bearer authentication required
|
|
6666
6524
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6667
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6668
6525
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6669
6526
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6670
6527
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6671
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payoutRequestStatusRequest, localVarRequestOptions, configuration);
|
|
6672
6528
|
return {
|
|
6673
6529
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6674
6530
|
options: localVarRequestOptions,
|
|
@@ -6676,248 +6532,286 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
6676
6532
|
},
|
|
6677
6533
|
};
|
|
6678
6534
|
};
|
|
6679
|
-
exports.
|
|
6535
|
+
exports.PaymentRequestsApiAxiosParamCreator = PaymentRequestsApiAxiosParamCreator;
|
|
6680
6536
|
/**
|
|
6681
|
-
*
|
|
6537
|
+
* PaymentRequestsApi - functional programming interface
|
|
6682
6538
|
* @export
|
|
6683
6539
|
*/
|
|
6684
|
-
const
|
|
6685
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
6540
|
+
const PaymentRequestsApiFp = function (configuration) {
|
|
6541
|
+
const localVarAxiosParamCreator = (0, exports.PaymentRequestsApiAxiosParamCreator)(configuration);
|
|
6686
6542
|
return {
|
|
6687
6543
|
/**
|
|
6688
6544
|
*
|
|
6689
|
-
* @summary
|
|
6690
|
-
* @param {
|
|
6545
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6546
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6691
6547
|
* @param {*} [options] Override http request option.
|
|
6692
6548
|
* @throws {RequiredError}
|
|
6693
6549
|
*/
|
|
6694
|
-
async
|
|
6695
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6550
|
+
async cancelPaymentRequest(id, options) {
|
|
6551
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPaymentRequest(id, options);
|
|
6696
6552
|
const index = configuration?.serverIndex ?? 0;
|
|
6697
|
-
const operationBasePath = base_1.operationServerMap['
|
|
6553
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.cancelPaymentRequest']?.[index]?.url;
|
|
6698
6554
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6699
6555
|
},
|
|
6700
6556
|
/**
|
|
6701
6557
|
*
|
|
6702
|
-
* @summary
|
|
6703
|
-
* @param {
|
|
6704
|
-
* @param {GetAllPayoutRequestsRequestedByIdParameter} [approvedById] ID of user(s) who approved a payout
|
|
6705
|
-
* @param {string} [fromDate] Start date for selected transactions (inclusive)
|
|
6706
|
-
* @param {string} [tillDate] End date for selected transactions (exclusive)
|
|
6707
|
-
* @param {string} [status] Status of the payout requests (OR relation)
|
|
6708
|
-
* @param {number} [take] How many payout requests the endpoint should return
|
|
6709
|
-
* @param {number} [skip] How many payout requests should be skipped (for pagination)
|
|
6558
|
+
* @summary Create a new PaymentRequest.
|
|
6559
|
+
* @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
|
|
6710
6560
|
* @param {*} [options] Override http request option.
|
|
6711
6561
|
* @throws {RequiredError}
|
|
6712
6562
|
*/
|
|
6713
|
-
async
|
|
6714
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6563
|
+
async createPaymentRequest(createPaymentRequestRequest, options) {
|
|
6564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequest, options);
|
|
6715
6565
|
const index = configuration?.serverIndex ?? 0;
|
|
6716
|
-
const operationBasePath = base_1.operationServerMap['
|
|
6566
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.createPaymentRequest']?.[index]?.url;
|
|
6717
6567
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6718
6568
|
},
|
|
6719
6569
|
/**
|
|
6720
6570
|
*
|
|
6721
|
-
* @summary
|
|
6722
|
-
* @param {number}
|
|
6723
|
-
* @param {
|
|
6571
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6572
|
+
* @param {number} [forId] Filter by beneficiary user id.
|
|
6573
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
6574
|
+
* @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
6575
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
6576
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
6577
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
6578
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
6724
6579
|
* @param {*} [options] Override http request option.
|
|
6725
6580
|
* @throws {RequiredError}
|
|
6726
6581
|
*/
|
|
6727
|
-
async
|
|
6728
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6582
|
+
async getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options) {
|
|
6583
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options);
|
|
6729
6584
|
const index = configuration?.serverIndex ?? 0;
|
|
6730
|
-
const operationBasePath = base_1.operationServerMap['
|
|
6585
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getAllPaymentRequests']?.[index]?.url;
|
|
6731
6586
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6732
6587
|
},
|
|
6733
6588
|
/**
|
|
6734
6589
|
*
|
|
6735
|
-
* @summary
|
|
6736
|
-
* @param {
|
|
6590
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6591
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6737
6592
|
* @param {*} [options] Override http request option.
|
|
6738
6593
|
* @throws {RequiredError}
|
|
6739
6594
|
*/
|
|
6740
|
-
async
|
|
6741
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6595
|
+
async getSinglePaymentRequest(id, options) {
|
|
6596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSinglePaymentRequest(id, options);
|
|
6742
6597
|
const index = configuration?.serverIndex ?? 0;
|
|
6743
|
-
const operationBasePath = base_1.operationServerMap['
|
|
6598
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getSinglePaymentRequest']?.[index]?.url;
|
|
6744
6599
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6745
6600
|
},
|
|
6746
6601
|
/**
|
|
6747
6602
|
*
|
|
6748
|
-
* @summary
|
|
6749
|
-
* @param {
|
|
6750
|
-
* @param {
|
|
6603
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6604
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6605
|
+
* @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
|
|
6751
6606
|
* @param {*} [options] Override http request option.
|
|
6752
6607
|
* @throws {RequiredError}
|
|
6753
6608
|
*/
|
|
6754
|
-
async
|
|
6755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6609
|
+
async markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options) {
|
|
6610
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options);
|
|
6756
6611
|
const index = configuration?.serverIndex ?? 0;
|
|
6757
|
-
const operationBasePath = base_1.operationServerMap['
|
|
6612
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.markPaymentRequestFulfilledExternally']?.[index]?.url;
|
|
6613
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6614
|
+
},
|
|
6615
|
+
/**
|
|
6616
|
+
*
|
|
6617
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6618
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6619
|
+
* @param {*} [options] Override http request option.
|
|
6620
|
+
* @throws {RequiredError}
|
|
6621
|
+
*/
|
|
6622
|
+
async startPaymentRequestAuthenticated(id, options) {
|
|
6623
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestAuthenticated(id, options);
|
|
6624
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6625
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.startPaymentRequestAuthenticated']?.[index]?.url;
|
|
6758
6626
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6759
6627
|
},
|
|
6760
6628
|
};
|
|
6761
6629
|
};
|
|
6762
|
-
exports.
|
|
6630
|
+
exports.PaymentRequestsApiFp = PaymentRequestsApiFp;
|
|
6763
6631
|
/**
|
|
6764
|
-
*
|
|
6632
|
+
* PaymentRequestsApi - factory interface
|
|
6765
6633
|
* @export
|
|
6766
6634
|
*/
|
|
6767
|
-
const
|
|
6768
|
-
const localVarFp = (0, exports.
|
|
6635
|
+
const PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
6636
|
+
const localVarFp = (0, exports.PaymentRequestsApiFp)(configuration);
|
|
6769
6637
|
return {
|
|
6770
6638
|
/**
|
|
6771
6639
|
*
|
|
6772
|
-
* @summary
|
|
6773
|
-
* @param {
|
|
6640
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6641
|
+
* @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
|
|
6774
6642
|
* @param {*} [options] Override http request option.
|
|
6775
6643
|
* @throws {RequiredError}
|
|
6776
6644
|
*/
|
|
6777
|
-
|
|
6778
|
-
return localVarFp.
|
|
6645
|
+
cancelPaymentRequest(requestParameters, options) {
|
|
6646
|
+
return localVarFp.cancelPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6779
6647
|
},
|
|
6780
6648
|
/**
|
|
6781
6649
|
*
|
|
6782
|
-
* @summary
|
|
6783
|
-
* @param {
|
|
6650
|
+
* @summary Create a new PaymentRequest.
|
|
6651
|
+
* @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
|
|
6784
6652
|
* @param {*} [options] Override http request option.
|
|
6785
6653
|
* @throws {RequiredError}
|
|
6786
6654
|
*/
|
|
6787
|
-
|
|
6788
|
-
return localVarFp.
|
|
6655
|
+
createPaymentRequest(requestParameters, options) {
|
|
6656
|
+
return localVarFp.createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(axios, basePath));
|
|
6789
6657
|
},
|
|
6790
6658
|
/**
|
|
6791
6659
|
*
|
|
6792
|
-
* @summary
|
|
6793
|
-
* @param {
|
|
6660
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6661
|
+
* @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
|
|
6794
6662
|
* @param {*} [options] Override http request option.
|
|
6795
6663
|
* @throws {RequiredError}
|
|
6796
6664
|
*/
|
|
6797
|
-
|
|
6798
|
-
return localVarFp.
|
|
6665
|
+
getAllPaymentRequests(requestParameters = {}, options) {
|
|
6666
|
+
return localVarFp.getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
6799
6667
|
},
|
|
6800
6668
|
/**
|
|
6801
6669
|
*
|
|
6802
|
-
* @summary
|
|
6803
|
-
* @param {
|
|
6670
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6671
|
+
* @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
|
|
6804
6672
|
* @param {*} [options] Override http request option.
|
|
6805
6673
|
* @throws {RequiredError}
|
|
6806
6674
|
*/
|
|
6807
|
-
|
|
6808
|
-
return localVarFp.
|
|
6675
|
+
getSinglePaymentRequest(requestParameters, options) {
|
|
6676
|
+
return localVarFp.getSinglePaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6809
6677
|
},
|
|
6810
6678
|
/**
|
|
6811
6679
|
*
|
|
6812
|
-
* @summary
|
|
6813
|
-
* @param {
|
|
6680
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6681
|
+
* @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
|
|
6814
6682
|
* @param {*} [options] Override http request option.
|
|
6815
6683
|
* @throws {RequiredError}
|
|
6816
6684
|
*/
|
|
6817
|
-
|
|
6818
|
-
return localVarFp.
|
|
6685
|
+
markPaymentRequestFulfilledExternally(requestParameters, options) {
|
|
6686
|
+
return localVarFp.markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(axios, basePath));
|
|
6687
|
+
},
|
|
6688
|
+
/**
|
|
6689
|
+
*
|
|
6690
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6691
|
+
* @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
|
|
6692
|
+
* @param {*} [options] Override http request option.
|
|
6693
|
+
* @throws {RequiredError}
|
|
6694
|
+
*/
|
|
6695
|
+
startPaymentRequestAuthenticated(requestParameters, options) {
|
|
6696
|
+
return localVarFp.startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6819
6697
|
},
|
|
6820
6698
|
};
|
|
6821
6699
|
};
|
|
6822
|
-
exports.
|
|
6700
|
+
exports.PaymentRequestsApiFactory = PaymentRequestsApiFactory;
|
|
6823
6701
|
/**
|
|
6824
|
-
*
|
|
6702
|
+
* PaymentRequestsApi - object-oriented interface
|
|
6825
6703
|
* @export
|
|
6826
|
-
* @class
|
|
6704
|
+
* @class PaymentRequestsApi
|
|
6827
6705
|
* @extends {BaseAPI}
|
|
6828
6706
|
*/
|
|
6829
|
-
class
|
|
6707
|
+
class PaymentRequestsApi extends base_1.BaseAPI {
|
|
6830
6708
|
/**
|
|
6831
6709
|
*
|
|
6832
|
-
* @summary
|
|
6833
|
-
* @param {
|
|
6710
|
+
* @summary Cancel a PENDING PaymentRequest.
|
|
6711
|
+
* @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
|
|
6834
6712
|
* @param {*} [options] Override http request option.
|
|
6835
6713
|
* @throws {RequiredError}
|
|
6836
|
-
* @memberof
|
|
6714
|
+
* @memberof PaymentRequestsApi
|
|
6837
6715
|
*/
|
|
6838
|
-
|
|
6839
|
-
return (0, exports.
|
|
6716
|
+
cancelPaymentRequest(requestParameters, options) {
|
|
6717
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).cancelPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6840
6718
|
}
|
|
6841
6719
|
/**
|
|
6842
6720
|
*
|
|
6843
|
-
* @summary
|
|
6844
|
-
* @param {
|
|
6721
|
+
* @summary Create a new PaymentRequest.
|
|
6722
|
+
* @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
|
|
6845
6723
|
* @param {*} [options] Override http request option.
|
|
6846
6724
|
* @throws {RequiredError}
|
|
6847
|
-
* @memberof
|
|
6725
|
+
* @memberof PaymentRequestsApi
|
|
6848
6726
|
*/
|
|
6849
|
-
|
|
6850
|
-
return (0, exports.
|
|
6727
|
+
createPaymentRequest(requestParameters, options) {
|
|
6728
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6851
6729
|
}
|
|
6852
6730
|
/**
|
|
6853
6731
|
*
|
|
6854
|
-
* @summary
|
|
6855
|
-
* @param {
|
|
6732
|
+
* @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
|
|
6733
|
+
* @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
|
|
6856
6734
|
* @param {*} [options] Override http request option.
|
|
6857
6735
|
* @throws {RequiredError}
|
|
6858
|
-
* @memberof
|
|
6736
|
+
* @memberof PaymentRequestsApi
|
|
6859
6737
|
*/
|
|
6860
|
-
|
|
6861
|
-
return (0, exports.
|
|
6738
|
+
getAllPaymentRequests(requestParameters = {}, options) {
|
|
6739
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
6862
6740
|
}
|
|
6863
6741
|
/**
|
|
6864
6742
|
*
|
|
6865
|
-
* @summary
|
|
6866
|
-
* @param {
|
|
6743
|
+
* @summary Fetch a single PaymentRequest by id.
|
|
6744
|
+
* @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
|
|
6867
6745
|
* @param {*} [options] Override http request option.
|
|
6868
6746
|
* @throws {RequiredError}
|
|
6869
|
-
* @memberof
|
|
6747
|
+
* @memberof PaymentRequestsApi
|
|
6870
6748
|
*/
|
|
6871
|
-
|
|
6872
|
-
return (0, exports.
|
|
6749
|
+
getSinglePaymentRequest(requestParameters, options) {
|
|
6750
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).getSinglePaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6873
6751
|
}
|
|
6874
6752
|
/**
|
|
6875
6753
|
*
|
|
6876
|
-
* @summary
|
|
6877
|
-
* @param {
|
|
6754
|
+
* @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
|
|
6755
|
+
* @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
|
|
6878
6756
|
* @param {*} [options] Override http request option.
|
|
6879
6757
|
* @throws {RequiredError}
|
|
6880
|
-
* @memberof
|
|
6758
|
+
* @memberof PaymentRequestsApi
|
|
6881
6759
|
*/
|
|
6882
|
-
|
|
6883
|
-
return (0, exports.
|
|
6760
|
+
markPaymentRequestFulfilledExternally(requestParameters, options) {
|
|
6761
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6762
|
+
}
|
|
6763
|
+
/**
|
|
6764
|
+
*
|
|
6765
|
+
* @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
|
|
6766
|
+
* @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
|
|
6767
|
+
* @param {*} [options] Override http request option.
|
|
6768
|
+
* @throws {RequiredError}
|
|
6769
|
+
* @memberof PaymentRequestsApi
|
|
6770
|
+
*/
|
|
6771
|
+
startPaymentRequestAuthenticated(requestParameters, options) {
|
|
6772
|
+
return (0, exports.PaymentRequestsApiFp)(this.configuration).startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6884
6773
|
}
|
|
6885
6774
|
}
|
|
6886
|
-
exports.
|
|
6775
|
+
exports.PaymentRequestsApi = PaymentRequestsApi;
|
|
6887
6776
|
/**
|
|
6888
|
-
* PointofsaleApi - axios parameter creator
|
|
6889
6777
|
* @export
|
|
6890
6778
|
*/
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6779
|
+
exports.GetAllPaymentRequestsStatusEnum = {
|
|
6780
|
+
Pending: 'PENDING',
|
|
6781
|
+
Paid: 'PAID',
|
|
6782
|
+
Expired: 'EXPIRED',
|
|
6783
|
+
Cancelled: 'CANCELLED'
|
|
6784
|
+
};
|
|
6785
|
+
/**
|
|
6786
|
+
* PaymentRequestsPublicApi - axios parameter creator
|
|
6787
|
+
* @export
|
|
6788
|
+
*/
|
|
6789
|
+
const PaymentRequestsPublicApiAxiosParamCreator = function (configuration) {
|
|
6790
|
+
return {
|
|
6791
|
+
/**
|
|
6894
6792
|
*
|
|
6895
|
-
* @summary
|
|
6896
|
-
* @param {
|
|
6793
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6794
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6897
6795
|
* @param {*} [options] Override http request option.
|
|
6898
6796
|
* @throws {RequiredError}
|
|
6899
6797
|
*/
|
|
6900
|
-
|
|
6901
|
-
// verify required parameter '
|
|
6902
|
-
(0, common_1.assertParamExists)('
|
|
6903
|
-
const localVarPath = `/
|
|
6798
|
+
getPublicPaymentRequest: async (id, options = {}) => {
|
|
6799
|
+
// verify required parameter 'id' is not null or undefined
|
|
6800
|
+
(0, common_1.assertParamExists)('getPublicPaymentRequest', 'id', id);
|
|
6801
|
+
const localVarPath = `/payment-requests-public/{id}`
|
|
6802
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6904
6803
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6905
6804
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6906
6805
|
let baseOptions;
|
|
6907
6806
|
if (configuration) {
|
|
6908
6807
|
baseOptions = configuration.baseOptions;
|
|
6909
6808
|
}
|
|
6910
|
-
const localVarRequestOptions = { method: '
|
|
6809
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6911
6810
|
const localVarHeaderParameter = {};
|
|
6912
6811
|
const localVarQueryParameter = {};
|
|
6913
|
-
// authentication JWT required
|
|
6914
|
-
// http bearer authentication required
|
|
6915
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6916
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6917
6812
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6918
6813
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6919
6814
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6920
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPointOfSaleRequest, localVarRequestOptions, configuration);
|
|
6921
6815
|
return {
|
|
6922
6816
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6923
6817
|
options: localVarRequestOptions,
|
|
@@ -6925,15 +6819,15 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
6925
6819
|
},
|
|
6926
6820
|
/**
|
|
6927
6821
|
*
|
|
6928
|
-
* @summary
|
|
6929
|
-
* @param {
|
|
6822
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6823
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6930
6824
|
* @param {*} [options] Override http request option.
|
|
6931
6825
|
* @throws {RequiredError}
|
|
6932
6826
|
*/
|
|
6933
|
-
|
|
6827
|
+
startPaymentRequestPublic: async (id, options = {}) => {
|
|
6934
6828
|
// verify required parameter 'id' is not null or undefined
|
|
6935
|
-
(0, common_1.assertParamExists)('
|
|
6936
|
-
const localVarPath = `/
|
|
6829
|
+
(0, common_1.assertParamExists)('startPaymentRequestPublic', 'id', id);
|
|
6830
|
+
const localVarPath = `/payment-requests-public/{id}/start`
|
|
6937
6831
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6938
6832
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6939
6833
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6941,12 +6835,9 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
6941
6835
|
if (configuration) {
|
|
6942
6836
|
baseOptions = configuration.baseOptions;
|
|
6943
6837
|
}
|
|
6944
|
-
const localVarRequestOptions = { method: '
|
|
6838
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6945
6839
|
const localVarHeaderParameter = {};
|
|
6946
6840
|
const localVarQueryParameter = {};
|
|
6947
|
-
// authentication JWT required
|
|
6948
|
-
// http bearer authentication required
|
|
6949
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6950
6841
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6951
6842
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6952
6843
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -6955,73 +6846,140 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
6955
6846
|
options: localVarRequestOptions,
|
|
6956
6847
|
};
|
|
6957
6848
|
},
|
|
6849
|
+
};
|
|
6850
|
+
};
|
|
6851
|
+
exports.PaymentRequestsPublicApiAxiosParamCreator = PaymentRequestsPublicApiAxiosParamCreator;
|
|
6852
|
+
/**
|
|
6853
|
+
* PaymentRequestsPublicApi - functional programming interface
|
|
6854
|
+
* @export
|
|
6855
|
+
*/
|
|
6856
|
+
const PaymentRequestsPublicApiFp = function (configuration) {
|
|
6857
|
+
const localVarAxiosParamCreator = (0, exports.PaymentRequestsPublicApiAxiosParamCreator)(configuration);
|
|
6858
|
+
return {
|
|
6958
6859
|
/**
|
|
6959
6860
|
*
|
|
6960
|
-
* @summary
|
|
6961
|
-
* @param {
|
|
6962
|
-
* @param {number} [take] How many containers the endpoint should return
|
|
6963
|
-
* @param {number} [skip] How many containers should be skipped (for pagination)
|
|
6861
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6862
|
+
* @param {string} id UUID v4 of the payment request.
|
|
6964
6863
|
* @param {*} [options] Override http request option.
|
|
6965
6864
|
* @throws {RequiredError}
|
|
6966
6865
|
*/
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
const
|
|
6971
|
-
|
|
6972
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6973
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6974
|
-
let baseOptions;
|
|
6975
|
-
if (configuration) {
|
|
6976
|
-
baseOptions = configuration.baseOptions;
|
|
6977
|
-
}
|
|
6978
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6979
|
-
const localVarHeaderParameter = {};
|
|
6980
|
-
const localVarQueryParameter = {};
|
|
6981
|
-
// authentication JWT required
|
|
6982
|
-
// http bearer authentication required
|
|
6983
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6984
|
-
if (take !== undefined) {
|
|
6985
|
-
localVarQueryParameter['take'] = take;
|
|
6986
|
-
}
|
|
6987
|
-
if (skip !== undefined) {
|
|
6988
|
-
localVarQueryParameter['skip'] = skip;
|
|
6989
|
-
}
|
|
6990
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6991
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6992
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6993
|
-
return {
|
|
6994
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6995
|
-
options: localVarRequestOptions,
|
|
6996
|
-
};
|
|
6866
|
+
async getPublicPaymentRequest(id, options) {
|
|
6867
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPaymentRequest(id, options);
|
|
6868
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6869
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.getPublicPaymentRequest']?.[index]?.url;
|
|
6870
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6997
6871
|
},
|
|
6998
6872
|
/**
|
|
6999
6873
|
*
|
|
7000
|
-
* @summary
|
|
7001
|
-
* @param {
|
|
6874
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6875
|
+
* @param {string} id UUID v4 of the payment request.
|
|
7002
6876
|
* @param {*} [options] Override http request option.
|
|
7003
6877
|
* @throws {RequiredError}
|
|
7004
6878
|
*/
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
const
|
|
7009
|
-
|
|
6879
|
+
async startPaymentRequestPublic(id, options) {
|
|
6880
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestPublic(id, options);
|
|
6881
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6882
|
+
const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.startPaymentRequestPublic']?.[index]?.url;
|
|
6883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6884
|
+
},
|
|
6885
|
+
};
|
|
6886
|
+
};
|
|
6887
|
+
exports.PaymentRequestsPublicApiFp = PaymentRequestsPublicApiFp;
|
|
6888
|
+
/**
|
|
6889
|
+
* PaymentRequestsPublicApi - factory interface
|
|
6890
|
+
* @export
|
|
6891
|
+
*/
|
|
6892
|
+
const PaymentRequestsPublicApiFactory = function (configuration, basePath, axios) {
|
|
6893
|
+
const localVarFp = (0, exports.PaymentRequestsPublicApiFp)(configuration);
|
|
6894
|
+
return {
|
|
6895
|
+
/**
|
|
6896
|
+
*
|
|
6897
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6898
|
+
* @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
|
|
6899
|
+
* @param {*} [options] Override http request option.
|
|
6900
|
+
* @throws {RequiredError}
|
|
6901
|
+
*/
|
|
6902
|
+
getPublicPaymentRequest(requestParameters, options) {
|
|
6903
|
+
return localVarFp.getPublicPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6904
|
+
},
|
|
6905
|
+
/**
|
|
6906
|
+
*
|
|
6907
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6908
|
+
* @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
|
|
6909
|
+
* @param {*} [options] Override http request option.
|
|
6910
|
+
* @throws {RequiredError}
|
|
6911
|
+
*/
|
|
6912
|
+
startPaymentRequestPublic(requestParameters, options) {
|
|
6913
|
+
return localVarFp.startPaymentRequestPublic(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6914
|
+
},
|
|
6915
|
+
};
|
|
6916
|
+
};
|
|
6917
|
+
exports.PaymentRequestsPublicApiFactory = PaymentRequestsPublicApiFactory;
|
|
6918
|
+
/**
|
|
6919
|
+
* PaymentRequestsPublicApi - object-oriented interface
|
|
6920
|
+
* @export
|
|
6921
|
+
* @class PaymentRequestsPublicApi
|
|
6922
|
+
* @extends {BaseAPI}
|
|
6923
|
+
*/
|
|
6924
|
+
class PaymentRequestsPublicApi extends base_1.BaseAPI {
|
|
6925
|
+
/**
|
|
6926
|
+
*
|
|
6927
|
+
* @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
|
|
6928
|
+
* @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
|
|
6929
|
+
* @param {*} [options] Override http request option.
|
|
6930
|
+
* @throws {RequiredError}
|
|
6931
|
+
* @memberof PaymentRequestsPublicApi
|
|
6932
|
+
*/
|
|
6933
|
+
getPublicPaymentRequest(requestParameters, options) {
|
|
6934
|
+
return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).getPublicPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6935
|
+
}
|
|
6936
|
+
/**
|
|
6937
|
+
*
|
|
6938
|
+
* @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
|
|
6939
|
+
* @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
|
|
6940
|
+
* @param {*} [options] Override http request option.
|
|
6941
|
+
* @throws {RequiredError}
|
|
6942
|
+
* @memberof PaymentRequestsPublicApi
|
|
6943
|
+
*/
|
|
6944
|
+
startPaymentRequestPublic(requestParameters, options) {
|
|
6945
|
+
return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).startPaymentRequestPublic(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6946
|
+
}
|
|
6947
|
+
}
|
|
6948
|
+
exports.PaymentRequestsPublicApi = PaymentRequestsPublicApi;
|
|
6949
|
+
/**
|
|
6950
|
+
* PayoutRequestsApi - axios parameter creator
|
|
6951
|
+
* @export
|
|
6952
|
+
*/
|
|
6953
|
+
const PayoutRequestsApiAxiosParamCreator = function (configuration) {
|
|
6954
|
+
return {
|
|
6955
|
+
/**
|
|
6956
|
+
*
|
|
6957
|
+
* @summary Create a new payout request
|
|
6958
|
+
* @param {PayoutRequestRequest} payoutRequestRequest New payout request
|
|
6959
|
+
* @param {*} [options] Override http request option.
|
|
6960
|
+
* @throws {RequiredError}
|
|
6961
|
+
*/
|
|
6962
|
+
createPayoutRequest: async (payoutRequestRequest, options = {}) => {
|
|
6963
|
+
// verify required parameter 'payoutRequestRequest' is not null or undefined
|
|
6964
|
+
(0, common_1.assertParamExists)('createPayoutRequest', 'payoutRequestRequest', payoutRequestRequest);
|
|
6965
|
+
const localVarPath = `/payoutrequests`;
|
|
7010
6966
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7011
6967
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7012
6968
|
let baseOptions;
|
|
7013
6969
|
if (configuration) {
|
|
7014
6970
|
baseOptions = configuration.baseOptions;
|
|
7015
6971
|
}
|
|
7016
|
-
const localVarRequestOptions = { method: '
|
|
6972
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7017
6973
|
const localVarHeaderParameter = {};
|
|
7018
6974
|
const localVarQueryParameter = {};
|
|
7019
6975
|
// authentication JWT required
|
|
7020
6976
|
// http bearer authentication required
|
|
7021
6977
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6978
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7022
6979
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7023
6980
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7024
6981
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6982
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payoutRequestRequest, localVarRequestOptions, configuration);
|
|
7025
6983
|
return {
|
|
7026
6984
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7027
6985
|
options: localVarRequestOptions,
|
|
@@ -7029,14 +6987,19 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
7029
6987
|
},
|
|
7030
6988
|
/**
|
|
7031
6989
|
*
|
|
7032
|
-
* @summary Returns all
|
|
7033
|
-
* @param {
|
|
7034
|
-
* @param {
|
|
6990
|
+
* @summary Returns all payout requests given the filter parameters
|
|
6991
|
+
* @param {GetAllPayoutRequestsRequestedByIdParameter} [requestedById] ID of user(s) who requested a payout
|
|
6992
|
+
* @param {GetAllPayoutRequestsRequestedByIdParameter} [approvedById] ID of user(s) who approved a payout
|
|
6993
|
+
* @param {string} [fromDate] Start date for selected transactions (inclusive)
|
|
6994
|
+
* @param {string} [tillDate] End date for selected transactions (exclusive)
|
|
6995
|
+
* @param {string} [status] Status of the payout requests (OR relation)
|
|
6996
|
+
* @param {number} [take] How many payout requests the endpoint should return
|
|
6997
|
+
* @param {number} [skip] How many payout requests should be skipped (for pagination)
|
|
7035
6998
|
* @param {*} [options] Override http request option.
|
|
7036
6999
|
* @throws {RequiredError}
|
|
7037
7000
|
*/
|
|
7038
|
-
|
|
7039
|
-
const localVarPath = `/
|
|
7001
|
+
getAllPayoutRequests: async (requestedById, approvedById, fromDate, tillDate, status, take, skip, options = {}) => {
|
|
7002
|
+
const localVarPath = `/payoutrequests`;
|
|
7040
7003
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7041
7004
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7042
7005
|
let baseOptions;
|
|
@@ -7049,6 +7012,25 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
7049
7012
|
// authentication JWT required
|
|
7050
7013
|
// http bearer authentication required
|
|
7051
7014
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7015
|
+
if (requestedById !== undefined) {
|
|
7016
|
+
for (const [key, value] of Object.entries(requestedById)) {
|
|
7017
|
+
localVarQueryParameter[key] = value;
|
|
7018
|
+
}
|
|
7019
|
+
}
|
|
7020
|
+
if (approvedById !== undefined) {
|
|
7021
|
+
for (const [key, value] of Object.entries(approvedById)) {
|
|
7022
|
+
localVarQueryParameter[key] = value;
|
|
7023
|
+
}
|
|
7024
|
+
}
|
|
7025
|
+
if (fromDate !== undefined) {
|
|
7026
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
7027
|
+
}
|
|
7028
|
+
if (tillDate !== undefined) {
|
|
7029
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
7030
|
+
}
|
|
7031
|
+
if (status !== undefined) {
|
|
7032
|
+
localVarQueryParameter['status'] = status;
|
|
7033
|
+
}
|
|
7052
7034
|
if (take !== undefined) {
|
|
7053
7035
|
localVarQueryParameter['take'] = take;
|
|
7054
7036
|
}
|
|
@@ -7065,15 +7047,16 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
7065
7047
|
},
|
|
7066
7048
|
/**
|
|
7067
7049
|
*
|
|
7068
|
-
* @summary
|
|
7069
|
-
* @param {number} id The
|
|
7050
|
+
* @summary Get a payout request pdf
|
|
7051
|
+
* @param {number} id The ID of the payout request object that should be returned
|
|
7052
|
+
* @param {boolean} [force] Whether to force regeneration of the pdf
|
|
7070
7053
|
* @param {*} [options] Override http request option.
|
|
7071
7054
|
* @throws {RequiredError}
|
|
7072
7055
|
*/
|
|
7073
|
-
|
|
7056
|
+
getPayoutRequestPdf: async (id, force, options = {}) => {
|
|
7074
7057
|
// verify required parameter 'id' is not null or undefined
|
|
7075
|
-
(0, common_1.assertParamExists)('
|
|
7076
|
-
const localVarPath = `/
|
|
7058
|
+
(0, common_1.assertParamExists)('getPayoutRequestPdf', 'id', id);
|
|
7059
|
+
const localVarPath = `/payoutrequests/{id}/pdf`
|
|
7077
7060
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7078
7061
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7079
7062
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7087,6 +7070,9 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
7087
7070
|
// authentication JWT required
|
|
7088
7071
|
// http bearer authentication required
|
|
7089
7072
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7073
|
+
if (force !== undefined) {
|
|
7074
|
+
localVarQueryParameter['force'] = force;
|
|
7075
|
+
}
|
|
7090
7076
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7091
7077
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7092
7078
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -7097,15 +7083,15 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
7097
7083
|
},
|
|
7098
7084
|
/**
|
|
7099
7085
|
*
|
|
7100
|
-
* @summary
|
|
7101
|
-
* @param {number} id The
|
|
7086
|
+
* @summary Get a single payout request
|
|
7087
|
+
* @param {number} id The ID of the payout request object that should be returned
|
|
7102
7088
|
* @param {*} [options] Override http request option.
|
|
7103
7089
|
* @throws {RequiredError}
|
|
7104
7090
|
*/
|
|
7105
|
-
|
|
7091
|
+
getSinglePayoutRequest: async (id, options = {}) => {
|
|
7106
7092
|
// verify required parameter 'id' is not null or undefined
|
|
7107
|
-
(0, common_1.assertParamExists)('
|
|
7108
|
-
const localVarPath = `/
|
|
7093
|
+
(0, common_1.assertParamExists)('getSinglePayoutRequest', 'id', id);
|
|
7094
|
+
const localVarPath = `/payoutrequests/{id}`
|
|
7109
7095
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7110
7096
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7111
7097
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7129,63 +7115,553 @@ const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
|
7129
7115
|
},
|
|
7130
7116
|
/**
|
|
7131
7117
|
*
|
|
7132
|
-
* @summary
|
|
7133
|
-
* @param {number} id The
|
|
7134
|
-
* @param {
|
|
7118
|
+
* @summary Create a new status for a payout request
|
|
7119
|
+
* @param {number} id The ID of the payout request object that should be returned
|
|
7120
|
+
* @param {PayoutRequestStatusRequest} payoutRequestStatusRequest New state of payout request
|
|
7135
7121
|
* @param {*} [options] Override http request option.
|
|
7136
7122
|
* @throws {RequiredError}
|
|
7137
7123
|
*/
|
|
7138
|
-
|
|
7124
|
+
setPayoutRequestStatus: async (id, payoutRequestStatusRequest, options = {}) => {
|
|
7139
7125
|
// verify required parameter 'id' is not null or undefined
|
|
7140
|
-
(0, common_1.assertParamExists)('
|
|
7141
|
-
// verify required parameter '
|
|
7142
|
-
(0, common_1.assertParamExists)('
|
|
7143
|
-
const localVarPath = `/
|
|
7144
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
7145
|
-
.replace(`{${"revision"}}`, encodeURIComponent(String(revision)));
|
|
7126
|
+
(0, common_1.assertParamExists)('setPayoutRequestStatus', 'id', id);
|
|
7127
|
+
// verify required parameter 'payoutRequestStatusRequest' is not null or undefined
|
|
7128
|
+
(0, common_1.assertParamExists)('setPayoutRequestStatus', 'payoutRequestStatusRequest', payoutRequestStatusRequest);
|
|
7129
|
+
const localVarPath = `/payoutrequests/{id}/status`
|
|
7130
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7146
7131
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7147
7132
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7148
7133
|
let baseOptions;
|
|
7149
7134
|
if (configuration) {
|
|
7150
7135
|
baseOptions = configuration.baseOptions;
|
|
7151
7136
|
}
|
|
7152
|
-
const localVarRequestOptions = { method: '
|
|
7137
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7153
7138
|
const localVarHeaderParameter = {};
|
|
7154
7139
|
const localVarQueryParameter = {};
|
|
7155
7140
|
// authentication JWT required
|
|
7156
7141
|
// http bearer authentication required
|
|
7157
7142
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7143
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7158
7144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7159
7145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7160
7146
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7147
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payoutRequestStatusRequest, localVarRequestOptions, configuration);
|
|
7161
7148
|
return {
|
|
7162
7149
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7163
7150
|
options: localVarRequestOptions,
|
|
7164
7151
|
};
|
|
7165
7152
|
},
|
|
7153
|
+
};
|
|
7154
|
+
};
|
|
7155
|
+
exports.PayoutRequestsApiAxiosParamCreator = PayoutRequestsApiAxiosParamCreator;
|
|
7156
|
+
/**
|
|
7157
|
+
* PayoutRequestsApi - functional programming interface
|
|
7158
|
+
* @export
|
|
7159
|
+
*/
|
|
7160
|
+
const PayoutRequestsApiFp = function (configuration) {
|
|
7161
|
+
const localVarAxiosParamCreator = (0, exports.PayoutRequestsApiAxiosParamCreator)(configuration);
|
|
7162
|
+
return {
|
|
7166
7163
|
/**
|
|
7167
7164
|
*
|
|
7168
|
-
* @summary
|
|
7169
|
-
* @param {
|
|
7170
|
-
* @param {number} [take] How many transactions the endpoint should return
|
|
7171
|
-
* @param {number} [skip] How many transactions should be skipped (for pagination)
|
|
7165
|
+
* @summary Create a new payout request
|
|
7166
|
+
* @param {PayoutRequestRequest} payoutRequestRequest New payout request
|
|
7172
7167
|
* @param {*} [options] Override http request option.
|
|
7173
7168
|
* @throws {RequiredError}
|
|
7174
7169
|
*/
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
const
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7170
|
+
async createPayoutRequest(payoutRequestRequest, options) {
|
|
7171
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPayoutRequest(payoutRequestRequest, options);
|
|
7172
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7173
|
+
const operationBasePath = base_1.operationServerMap['PayoutRequestsApi.createPayoutRequest']?.[index]?.url;
|
|
7174
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7175
|
+
},
|
|
7176
|
+
/**
|
|
7177
|
+
*
|
|
7178
|
+
* @summary Returns all payout requests given the filter parameters
|
|
7179
|
+
* @param {GetAllPayoutRequestsRequestedByIdParameter} [requestedById] ID of user(s) who requested a payout
|
|
7180
|
+
* @param {GetAllPayoutRequestsRequestedByIdParameter} [approvedById] ID of user(s) who approved a payout
|
|
7181
|
+
* @param {string} [fromDate] Start date for selected transactions (inclusive)
|
|
7182
|
+
* @param {string} [tillDate] End date for selected transactions (exclusive)
|
|
7183
|
+
* @param {string} [status] Status of the payout requests (OR relation)
|
|
7184
|
+
* @param {number} [take] How many payout requests the endpoint should return
|
|
7185
|
+
* @param {number} [skip] How many payout requests should be skipped (for pagination)
|
|
7186
|
+
* @param {*} [options] Override http request option.
|
|
7187
|
+
* @throws {RequiredError}
|
|
7188
|
+
*/
|
|
7189
|
+
async getAllPayoutRequests(requestedById, approvedById, fromDate, tillDate, status, take, skip, options) {
|
|
7190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPayoutRequests(requestedById, approvedById, fromDate, tillDate, status, take, skip, options);
|
|
7191
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7192
|
+
const operationBasePath = base_1.operationServerMap['PayoutRequestsApi.getAllPayoutRequests']?.[index]?.url;
|
|
7193
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7194
|
+
},
|
|
7195
|
+
/**
|
|
7196
|
+
*
|
|
7197
|
+
* @summary Get a payout request pdf
|
|
7198
|
+
* @param {number} id The ID of the payout request object that should be returned
|
|
7199
|
+
* @param {boolean} [force] Whether to force regeneration of the pdf
|
|
7200
|
+
* @param {*} [options] Override http request option.
|
|
7201
|
+
* @throws {RequiredError}
|
|
7202
|
+
*/
|
|
7203
|
+
async getPayoutRequestPdf(id, force, options) {
|
|
7204
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPayoutRequestPdf(id, force, options);
|
|
7205
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7206
|
+
const operationBasePath = base_1.operationServerMap['PayoutRequestsApi.getPayoutRequestPdf']?.[index]?.url;
|
|
7207
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7208
|
+
},
|
|
7209
|
+
/**
|
|
7210
|
+
*
|
|
7211
|
+
* @summary Get a single payout request
|
|
7212
|
+
* @param {number} id The ID of the payout request object that should be returned
|
|
7213
|
+
* @param {*} [options] Override http request option.
|
|
7214
|
+
* @throws {RequiredError}
|
|
7215
|
+
*/
|
|
7216
|
+
async getSinglePayoutRequest(id, options) {
|
|
7217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSinglePayoutRequest(id, options);
|
|
7218
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7219
|
+
const operationBasePath = base_1.operationServerMap['PayoutRequestsApi.getSinglePayoutRequest']?.[index]?.url;
|
|
7220
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7221
|
+
},
|
|
7222
|
+
/**
|
|
7223
|
+
*
|
|
7224
|
+
* @summary Create a new status for a payout request
|
|
7225
|
+
* @param {number} id The ID of the payout request object that should be returned
|
|
7226
|
+
* @param {PayoutRequestStatusRequest} payoutRequestStatusRequest New state of payout request
|
|
7227
|
+
* @param {*} [options] Override http request option.
|
|
7228
|
+
* @throws {RequiredError}
|
|
7229
|
+
*/
|
|
7230
|
+
async setPayoutRequestStatus(id, payoutRequestStatusRequest, options) {
|
|
7231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setPayoutRequestStatus(id, payoutRequestStatusRequest, options);
|
|
7232
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7233
|
+
const operationBasePath = base_1.operationServerMap['PayoutRequestsApi.setPayoutRequestStatus']?.[index]?.url;
|
|
7234
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7235
|
+
},
|
|
7236
|
+
};
|
|
7237
|
+
};
|
|
7238
|
+
exports.PayoutRequestsApiFp = PayoutRequestsApiFp;
|
|
7239
|
+
/**
|
|
7240
|
+
* PayoutRequestsApi - factory interface
|
|
7241
|
+
* @export
|
|
7242
|
+
*/
|
|
7243
|
+
const PayoutRequestsApiFactory = function (configuration, basePath, axios) {
|
|
7244
|
+
const localVarFp = (0, exports.PayoutRequestsApiFp)(configuration);
|
|
7245
|
+
return {
|
|
7246
|
+
/**
|
|
7247
|
+
*
|
|
7248
|
+
* @summary Create a new payout request
|
|
7249
|
+
* @param {PayoutRequestsApiCreatePayoutRequestRequest} requestParameters Request parameters.
|
|
7250
|
+
* @param {*} [options] Override http request option.
|
|
7251
|
+
* @throws {RequiredError}
|
|
7252
|
+
*/
|
|
7253
|
+
createPayoutRequest(requestParameters, options) {
|
|
7254
|
+
return localVarFp.createPayoutRequest(requestParameters.payoutRequestRequest, options).then((request) => request(axios, basePath));
|
|
7255
|
+
},
|
|
7256
|
+
/**
|
|
7257
|
+
*
|
|
7258
|
+
* @summary Returns all payout requests given the filter parameters
|
|
7259
|
+
* @param {PayoutRequestsApiGetAllPayoutRequestsRequest} requestParameters Request parameters.
|
|
7260
|
+
* @param {*} [options] Override http request option.
|
|
7261
|
+
* @throws {RequiredError}
|
|
7262
|
+
*/
|
|
7263
|
+
getAllPayoutRequests(requestParameters = {}, options) {
|
|
7264
|
+
return localVarFp.getAllPayoutRequests(requestParameters.requestedById, requestParameters.approvedById, requestParameters.fromDate, requestParameters.tillDate, requestParameters.status, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
7265
|
+
},
|
|
7266
|
+
/**
|
|
7267
|
+
*
|
|
7268
|
+
* @summary Get a payout request pdf
|
|
7269
|
+
* @param {PayoutRequestsApiGetPayoutRequestPdfRequest} requestParameters Request parameters.
|
|
7270
|
+
* @param {*} [options] Override http request option.
|
|
7271
|
+
* @throws {RequiredError}
|
|
7272
|
+
*/
|
|
7273
|
+
getPayoutRequestPdf(requestParameters, options) {
|
|
7274
|
+
return localVarFp.getPayoutRequestPdf(requestParameters.id, requestParameters.force, options).then((request) => request(axios, basePath));
|
|
7275
|
+
},
|
|
7276
|
+
/**
|
|
7277
|
+
*
|
|
7278
|
+
* @summary Get a single payout request
|
|
7279
|
+
* @param {PayoutRequestsApiGetSinglePayoutRequestRequest} requestParameters Request parameters.
|
|
7280
|
+
* @param {*} [options] Override http request option.
|
|
7281
|
+
* @throws {RequiredError}
|
|
7282
|
+
*/
|
|
7283
|
+
getSinglePayoutRequest(requestParameters, options) {
|
|
7284
|
+
return localVarFp.getSinglePayoutRequest(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7285
|
+
},
|
|
7286
|
+
/**
|
|
7287
|
+
*
|
|
7288
|
+
* @summary Create a new status for a payout request
|
|
7289
|
+
* @param {PayoutRequestsApiSetPayoutRequestStatusRequest} requestParameters Request parameters.
|
|
7290
|
+
* @param {*} [options] Override http request option.
|
|
7291
|
+
* @throws {RequiredError}
|
|
7292
|
+
*/
|
|
7293
|
+
setPayoutRequestStatus(requestParameters, options) {
|
|
7294
|
+
return localVarFp.setPayoutRequestStatus(requestParameters.id, requestParameters.payoutRequestStatusRequest, options).then((request) => request(axios, basePath));
|
|
7295
|
+
},
|
|
7296
|
+
};
|
|
7297
|
+
};
|
|
7298
|
+
exports.PayoutRequestsApiFactory = PayoutRequestsApiFactory;
|
|
7299
|
+
/**
|
|
7300
|
+
* PayoutRequestsApi - object-oriented interface
|
|
7301
|
+
* @export
|
|
7302
|
+
* @class PayoutRequestsApi
|
|
7303
|
+
* @extends {BaseAPI}
|
|
7304
|
+
*/
|
|
7305
|
+
class PayoutRequestsApi extends base_1.BaseAPI {
|
|
7306
|
+
/**
|
|
7307
|
+
*
|
|
7308
|
+
* @summary Create a new payout request
|
|
7309
|
+
* @param {PayoutRequestsApiCreatePayoutRequestRequest} requestParameters Request parameters.
|
|
7310
|
+
* @param {*} [options] Override http request option.
|
|
7311
|
+
* @throws {RequiredError}
|
|
7312
|
+
* @memberof PayoutRequestsApi
|
|
7313
|
+
*/
|
|
7314
|
+
createPayoutRequest(requestParameters, options) {
|
|
7315
|
+
return (0, exports.PayoutRequestsApiFp)(this.configuration).createPayoutRequest(requestParameters.payoutRequestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7316
|
+
}
|
|
7317
|
+
/**
|
|
7318
|
+
*
|
|
7319
|
+
* @summary Returns all payout requests given the filter parameters
|
|
7320
|
+
* @param {PayoutRequestsApiGetAllPayoutRequestsRequest} requestParameters Request parameters.
|
|
7321
|
+
* @param {*} [options] Override http request option.
|
|
7322
|
+
* @throws {RequiredError}
|
|
7323
|
+
* @memberof PayoutRequestsApi
|
|
7324
|
+
*/
|
|
7325
|
+
getAllPayoutRequests(requestParameters = {}, options) {
|
|
7326
|
+
return (0, exports.PayoutRequestsApiFp)(this.configuration).getAllPayoutRequests(requestParameters.requestedById, requestParameters.approvedById, requestParameters.fromDate, requestParameters.tillDate, requestParameters.status, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
7327
|
+
}
|
|
7328
|
+
/**
|
|
7329
|
+
*
|
|
7330
|
+
* @summary Get a payout request pdf
|
|
7331
|
+
* @param {PayoutRequestsApiGetPayoutRequestPdfRequest} requestParameters Request parameters.
|
|
7332
|
+
* @param {*} [options] Override http request option.
|
|
7333
|
+
* @throws {RequiredError}
|
|
7334
|
+
* @memberof PayoutRequestsApi
|
|
7335
|
+
*/
|
|
7336
|
+
getPayoutRequestPdf(requestParameters, options) {
|
|
7337
|
+
return (0, exports.PayoutRequestsApiFp)(this.configuration).getPayoutRequestPdf(requestParameters.id, requestParameters.force, options).then((request) => request(this.axios, this.basePath));
|
|
7338
|
+
}
|
|
7339
|
+
/**
|
|
7340
|
+
*
|
|
7341
|
+
* @summary Get a single payout request
|
|
7342
|
+
* @param {PayoutRequestsApiGetSinglePayoutRequestRequest} requestParameters Request parameters.
|
|
7343
|
+
* @param {*} [options] Override http request option.
|
|
7344
|
+
* @throws {RequiredError}
|
|
7345
|
+
* @memberof PayoutRequestsApi
|
|
7346
|
+
*/
|
|
7347
|
+
getSinglePayoutRequest(requestParameters, options) {
|
|
7348
|
+
return (0, exports.PayoutRequestsApiFp)(this.configuration).getSinglePayoutRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7349
|
+
}
|
|
7350
|
+
/**
|
|
7351
|
+
*
|
|
7352
|
+
* @summary Create a new status for a payout request
|
|
7353
|
+
* @param {PayoutRequestsApiSetPayoutRequestStatusRequest} requestParameters Request parameters.
|
|
7354
|
+
* @param {*} [options] Override http request option.
|
|
7355
|
+
* @throws {RequiredError}
|
|
7356
|
+
* @memberof PayoutRequestsApi
|
|
7357
|
+
*/
|
|
7358
|
+
setPayoutRequestStatus(requestParameters, options) {
|
|
7359
|
+
return (0, exports.PayoutRequestsApiFp)(this.configuration).setPayoutRequestStatus(requestParameters.id, requestParameters.payoutRequestStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7360
|
+
}
|
|
7361
|
+
}
|
|
7362
|
+
exports.PayoutRequestsApi = PayoutRequestsApi;
|
|
7363
|
+
/**
|
|
7364
|
+
* PointofsaleApi - axios parameter creator
|
|
7365
|
+
* @export
|
|
7366
|
+
*/
|
|
7367
|
+
const PointofsaleApiAxiosParamCreator = function (configuration) {
|
|
7368
|
+
return {
|
|
7369
|
+
/**
|
|
7370
|
+
*
|
|
7371
|
+
* @summary Create a new Point of Sale.
|
|
7372
|
+
* @param {CreatePointOfSaleRequest} createPointOfSaleRequest The point of sale which should be created
|
|
7373
|
+
* @param {*} [options] Override http request option.
|
|
7374
|
+
* @throws {RequiredError}
|
|
7375
|
+
*/
|
|
7376
|
+
createPointOfSale: async (createPointOfSaleRequest, options = {}) => {
|
|
7377
|
+
// verify required parameter 'createPointOfSaleRequest' is not null or undefined
|
|
7378
|
+
(0, common_1.assertParamExists)('createPointOfSale', 'createPointOfSaleRequest', createPointOfSaleRequest);
|
|
7379
|
+
const localVarPath = `/pointsofsale`;
|
|
7380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7381
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7382
|
+
let baseOptions;
|
|
7383
|
+
if (configuration) {
|
|
7384
|
+
baseOptions = configuration.baseOptions;
|
|
7385
|
+
}
|
|
7386
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7387
|
+
const localVarHeaderParameter = {};
|
|
7388
|
+
const localVarQueryParameter = {};
|
|
7389
|
+
// authentication JWT required
|
|
7390
|
+
// http bearer authentication required
|
|
7391
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7392
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7393
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7395
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7396
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPointOfSaleRequest, localVarRequestOptions, configuration);
|
|
7397
|
+
return {
|
|
7398
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7399
|
+
options: localVarRequestOptions,
|
|
7400
|
+
};
|
|
7401
|
+
},
|
|
7402
|
+
/**
|
|
7403
|
+
*
|
|
7404
|
+
* @summary (Soft) delete the given point of sale. Cannot be undone.
|
|
7405
|
+
* @param {number} id The id of the point of sale which should be deleted
|
|
7406
|
+
* @param {*} [options] Override http request option.
|
|
7407
|
+
* @throws {RequiredError}
|
|
7408
|
+
*/
|
|
7409
|
+
deletePointOfSale: async (id, options = {}) => {
|
|
7410
|
+
// verify required parameter 'id' is not null or undefined
|
|
7411
|
+
(0, common_1.assertParamExists)('deletePointOfSale', 'id', id);
|
|
7412
|
+
const localVarPath = `/pointsofsale/{id}`
|
|
7413
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7414
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7415
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7416
|
+
let baseOptions;
|
|
7417
|
+
if (configuration) {
|
|
7418
|
+
baseOptions = configuration.baseOptions;
|
|
7419
|
+
}
|
|
7420
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
7421
|
+
const localVarHeaderParameter = {};
|
|
7422
|
+
const localVarQueryParameter = {};
|
|
7423
|
+
// authentication JWT required
|
|
7424
|
+
// http bearer authentication required
|
|
7425
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7426
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7427
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7428
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7429
|
+
return {
|
|
7430
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7431
|
+
options: localVarRequestOptions,
|
|
7432
|
+
};
|
|
7433
|
+
},
|
|
7434
|
+
/**
|
|
7435
|
+
*
|
|
7436
|
+
* @summary Returns the containers of the requested Point of Sale, empty list if POS does not exist
|
|
7437
|
+
* @param {number} id The id of the point of sale
|
|
7438
|
+
* @param {number} [take] How many containers the endpoint should return
|
|
7439
|
+
* @param {number} [skip] How many containers should be skipped (for pagination)
|
|
7440
|
+
* @param {*} [options] Override http request option.
|
|
7441
|
+
* @throws {RequiredError}
|
|
7442
|
+
*/
|
|
7443
|
+
getAllPointOfSaleContainers: async (id, take, skip, options = {}) => {
|
|
7444
|
+
// verify required parameter 'id' is not null or undefined
|
|
7445
|
+
(0, common_1.assertParamExists)('getAllPointOfSaleContainers', 'id', id);
|
|
7446
|
+
const localVarPath = `/pointsofsale/{id}/containers`
|
|
7447
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7449
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7450
|
+
let baseOptions;
|
|
7451
|
+
if (configuration) {
|
|
7452
|
+
baseOptions = configuration.baseOptions;
|
|
7453
|
+
}
|
|
7454
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7455
|
+
const localVarHeaderParameter = {};
|
|
7456
|
+
const localVarQueryParameter = {};
|
|
7457
|
+
// authentication JWT required
|
|
7458
|
+
// http bearer authentication required
|
|
7459
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7460
|
+
if (take !== undefined) {
|
|
7461
|
+
localVarQueryParameter['take'] = take;
|
|
7462
|
+
}
|
|
7463
|
+
if (skip !== undefined) {
|
|
7464
|
+
localVarQueryParameter['skip'] = skip;
|
|
7465
|
+
}
|
|
7466
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7467
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7468
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7469
|
+
return {
|
|
7470
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7471
|
+
options: localVarRequestOptions,
|
|
7472
|
+
};
|
|
7473
|
+
},
|
|
7474
|
+
/**
|
|
7475
|
+
*
|
|
7476
|
+
* @summary Returns the products of the requested Point of Sale, empty list if POS does not exist
|
|
7477
|
+
* @param {number} id The id of the point of sale
|
|
7478
|
+
* @param {*} [options] Override http request option.
|
|
7479
|
+
* @throws {RequiredError}
|
|
7480
|
+
*/
|
|
7481
|
+
getAllPointOfSaleProducts: async (id, options = {}) => {
|
|
7482
|
+
// verify required parameter 'id' is not null or undefined
|
|
7483
|
+
(0, common_1.assertParamExists)('getAllPointOfSaleProducts', 'id', id);
|
|
7484
|
+
const localVarPath = `/pointsofsale/{id}/products`
|
|
7485
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7486
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7487
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7488
|
+
let baseOptions;
|
|
7489
|
+
if (configuration) {
|
|
7490
|
+
baseOptions = configuration.baseOptions;
|
|
7491
|
+
}
|
|
7492
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7493
|
+
const localVarHeaderParameter = {};
|
|
7494
|
+
const localVarQueryParameter = {};
|
|
7495
|
+
// authentication JWT required
|
|
7496
|
+
// http bearer authentication required
|
|
7497
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7498
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7500
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7501
|
+
return {
|
|
7502
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7503
|
+
options: localVarRequestOptions,
|
|
7504
|
+
};
|
|
7505
|
+
},
|
|
7506
|
+
/**
|
|
7507
|
+
*
|
|
7508
|
+
* @summary Returns all existing Point of Sales
|
|
7509
|
+
* @param {number} [take] How many points of sale the endpoint should return
|
|
7510
|
+
* @param {number} [skip] How many points of sale should be skipped (for pagination)
|
|
7511
|
+
* @param {*} [options] Override http request option.
|
|
7512
|
+
* @throws {RequiredError}
|
|
7513
|
+
*/
|
|
7514
|
+
getAllPointsOfSale: async (take, skip, options = {}) => {
|
|
7515
|
+
const localVarPath = `/pointsofsale`;
|
|
7516
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7517
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7518
|
+
let baseOptions;
|
|
7519
|
+
if (configuration) {
|
|
7520
|
+
baseOptions = configuration.baseOptions;
|
|
7521
|
+
}
|
|
7522
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7523
|
+
const localVarHeaderParameter = {};
|
|
7524
|
+
const localVarQueryParameter = {};
|
|
7525
|
+
// authentication JWT required
|
|
7526
|
+
// http bearer authentication required
|
|
7527
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7528
|
+
if (take !== undefined) {
|
|
7529
|
+
localVarQueryParameter['take'] = take;
|
|
7530
|
+
}
|
|
7531
|
+
if (skip !== undefined) {
|
|
7532
|
+
localVarQueryParameter['skip'] = skip;
|
|
7533
|
+
}
|
|
7534
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7535
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7536
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7537
|
+
return {
|
|
7538
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7539
|
+
options: localVarRequestOptions,
|
|
7540
|
+
};
|
|
7541
|
+
},
|
|
7542
|
+
/**
|
|
7543
|
+
*
|
|
7544
|
+
* @summary Returns a Point of Sale\'s associate users
|
|
7545
|
+
* @param {number} id The id of the Point of Sale of which to get the associate users.
|
|
7546
|
+
* @param {*} [options] Override http request option.
|
|
7547
|
+
* @throws {RequiredError}
|
|
7548
|
+
*/
|
|
7549
|
+
getPointOfSaleAssociates: async (id, options = {}) => {
|
|
7550
|
+
// verify required parameter 'id' is not null or undefined
|
|
7551
|
+
(0, common_1.assertParamExists)('getPointOfSaleAssociates', 'id', id);
|
|
7552
|
+
const localVarPath = `/pointsofsale/{id}/associates`
|
|
7553
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7554
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7555
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7556
|
+
let baseOptions;
|
|
7557
|
+
if (configuration) {
|
|
7558
|
+
baseOptions = configuration.baseOptions;
|
|
7559
|
+
}
|
|
7560
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7561
|
+
const localVarHeaderParameter = {};
|
|
7562
|
+
const localVarQueryParameter = {};
|
|
7563
|
+
// authentication JWT required
|
|
7564
|
+
// http bearer authentication required
|
|
7565
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7566
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7567
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7568
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7569
|
+
return {
|
|
7570
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7571
|
+
options: localVarRequestOptions,
|
|
7572
|
+
};
|
|
7573
|
+
},
|
|
7574
|
+
/**
|
|
7575
|
+
*
|
|
7576
|
+
* @summary Returns the requested Point of Sale
|
|
7577
|
+
* @param {number} id The id of the Point of Sale which should be returned
|
|
7578
|
+
* @param {*} [options] Override http request option.
|
|
7579
|
+
* @throws {RequiredError}
|
|
7580
|
+
*/
|
|
7581
|
+
getSinglePointOfSale: async (id, options = {}) => {
|
|
7582
|
+
// verify required parameter 'id' is not null or undefined
|
|
7583
|
+
(0, common_1.assertParamExists)('getSinglePointOfSale', 'id', id);
|
|
7584
|
+
const localVarPath = `/pointsofsale/{id}`
|
|
7585
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7586
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7587
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7588
|
+
let baseOptions;
|
|
7589
|
+
if (configuration) {
|
|
7590
|
+
baseOptions = configuration.baseOptions;
|
|
7591
|
+
}
|
|
7592
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7593
|
+
const localVarHeaderParameter = {};
|
|
7594
|
+
const localVarQueryParameter = {};
|
|
7595
|
+
// authentication JWT required
|
|
7596
|
+
// http bearer authentication required
|
|
7597
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7598
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7600
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7601
|
+
return {
|
|
7602
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7603
|
+
options: localVarRequestOptions,
|
|
7604
|
+
};
|
|
7605
|
+
},
|
|
7606
|
+
/**
|
|
7607
|
+
*
|
|
7608
|
+
* @summary Returns a specific revision of the requested Point of Sale
|
|
7609
|
+
* @param {number} id The id of the Point of Sale which should be returned
|
|
7610
|
+
* @param {number} revision The revision number of the Point of Sale
|
|
7611
|
+
* @param {*} [options] Override http request option.
|
|
7612
|
+
* @throws {RequiredError}
|
|
7613
|
+
*/
|
|
7614
|
+
getSinglePointOfSaleRevision: async (id, revision, options = {}) => {
|
|
7615
|
+
// verify required parameter 'id' is not null or undefined
|
|
7616
|
+
(0, common_1.assertParamExists)('getSinglePointOfSaleRevision', 'id', id);
|
|
7617
|
+
// verify required parameter 'revision' is not null or undefined
|
|
7618
|
+
(0, common_1.assertParamExists)('getSinglePointOfSaleRevision', 'revision', revision);
|
|
7619
|
+
const localVarPath = `/pointsofsale/{id}/{revision}`
|
|
7620
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
7621
|
+
.replace(`{${"revision"}}`, encodeURIComponent(String(revision)));
|
|
7622
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7623
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7624
|
+
let baseOptions;
|
|
7625
|
+
if (configuration) {
|
|
7626
|
+
baseOptions = configuration.baseOptions;
|
|
7627
|
+
}
|
|
7628
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7629
|
+
const localVarHeaderParameter = {};
|
|
7630
|
+
const localVarQueryParameter = {};
|
|
7631
|
+
// authentication JWT required
|
|
7632
|
+
// http bearer authentication required
|
|
7633
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7634
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7635
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7636
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7637
|
+
return {
|
|
7638
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7639
|
+
options: localVarRequestOptions,
|
|
7640
|
+
};
|
|
7641
|
+
},
|
|
7642
|
+
/**
|
|
7643
|
+
*
|
|
7644
|
+
* @summary Returns a Point of Sale transactions
|
|
7645
|
+
* @param {number} id The id of the Point of Sale of which to get the transactions.
|
|
7646
|
+
* @param {number} [take] How many transactions the endpoint should return
|
|
7647
|
+
* @param {number} [skip] How many transactions should be skipped (for pagination)
|
|
7648
|
+
* @param {*} [options] Override http request option.
|
|
7649
|
+
* @throws {RequiredError}
|
|
7650
|
+
*/
|
|
7651
|
+
getTransactions: async (id, take, skip, options = {}) => {
|
|
7652
|
+
// verify required parameter 'id' is not null or undefined
|
|
7653
|
+
(0, common_1.assertParamExists)('getTransactions', 'id', id);
|
|
7654
|
+
const localVarPath = `/pointsofsale/{id}/transactions`
|
|
7655
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7656
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7657
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7658
|
+
let baseOptions;
|
|
7659
|
+
if (configuration) {
|
|
7660
|
+
baseOptions = configuration.baseOptions;
|
|
7661
|
+
}
|
|
7662
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7663
|
+
const localVarHeaderParameter = {};
|
|
7664
|
+
const localVarQueryParameter = {};
|
|
7189
7665
|
// authentication JWT required
|
|
7190
7666
|
// http bearer authentication required
|
|
7191
7667
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
@@ -9905,6 +10381,31 @@ const StripeApiAxiosParamCreator = function (configuration) {
|
|
|
9905
10381
|
options: localVarRequestOptions,
|
|
9906
10382
|
};
|
|
9907
10383
|
},
|
|
10384
|
+
/**
|
|
10385
|
+
*
|
|
10386
|
+
* @summary Webhook for Stripe event updates
|
|
10387
|
+
* @param {*} [options] Override http request option.
|
|
10388
|
+
* @throws {RequiredError}
|
|
10389
|
+
*/
|
|
10390
|
+
webhook: async (options = {}) => {
|
|
10391
|
+
const localVarPath = `/stripe/webhook`;
|
|
10392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10393
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10394
|
+
let baseOptions;
|
|
10395
|
+
if (configuration) {
|
|
10396
|
+
baseOptions = configuration.baseOptions;
|
|
10397
|
+
}
|
|
10398
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10399
|
+
const localVarHeaderParameter = {};
|
|
10400
|
+
const localVarQueryParameter = {};
|
|
10401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10404
|
+
return {
|
|
10405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10406
|
+
options: localVarRequestOptions,
|
|
10407
|
+
};
|
|
10408
|
+
},
|
|
9908
10409
|
};
|
|
9909
10410
|
};
|
|
9910
10411
|
exports.StripeApiAxiosParamCreator = StripeApiAxiosParamCreator;
|
|
@@ -9937,7 +10438,19 @@ const StripeApiFp = function (configuration) {
|
|
|
9937
10438
|
async getStripePublicKey(options) {
|
|
9938
10439
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getStripePublicKey(options);
|
|
9939
10440
|
const index = configuration?.serverIndex ?? 0;
|
|
9940
|
-
const operationBasePath = base_1.operationServerMap['StripeApi.getStripePublicKey']?.[index]?.url;
|
|
10441
|
+
const operationBasePath = base_1.operationServerMap['StripeApi.getStripePublicKey']?.[index]?.url;
|
|
10442
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10443
|
+
},
|
|
10444
|
+
/**
|
|
10445
|
+
*
|
|
10446
|
+
* @summary Webhook for Stripe event updates
|
|
10447
|
+
* @param {*} [options] Override http request option.
|
|
10448
|
+
* @throws {RequiredError}
|
|
10449
|
+
*/
|
|
10450
|
+
async webhook(options) {
|
|
10451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(options);
|
|
10452
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10453
|
+
const operationBasePath = base_1.operationServerMap['StripeApi.webhook']?.[index]?.url;
|
|
9941
10454
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9942
10455
|
},
|
|
9943
10456
|
};
|
|
@@ -9969,6 +10482,15 @@ const StripeApiFactory = function (configuration, basePath, axios) {
|
|
|
9969
10482
|
getStripePublicKey(options) {
|
|
9970
10483
|
return localVarFp.getStripePublicKey(options).then((request) => request(axios, basePath));
|
|
9971
10484
|
},
|
|
10485
|
+
/**
|
|
10486
|
+
*
|
|
10487
|
+
* @summary Webhook for Stripe event updates
|
|
10488
|
+
* @param {*} [options] Override http request option.
|
|
10489
|
+
* @throws {RequiredError}
|
|
10490
|
+
*/
|
|
10491
|
+
webhook(options) {
|
|
10492
|
+
return localVarFp.webhook(options).then((request) => request(axios, basePath));
|
|
10493
|
+
},
|
|
9972
10494
|
};
|
|
9973
10495
|
};
|
|
9974
10496
|
exports.StripeApiFactory = StripeApiFactory;
|
|
@@ -10000,6 +10522,16 @@ class StripeApi extends base_1.BaseAPI {
|
|
|
10000
10522
|
getStripePublicKey(options) {
|
|
10001
10523
|
return (0, exports.StripeApiFp)(this.configuration).getStripePublicKey(options).then((request) => request(this.axios, this.basePath));
|
|
10002
10524
|
}
|
|
10525
|
+
/**
|
|
10526
|
+
*
|
|
10527
|
+
* @summary Webhook for Stripe event updates
|
|
10528
|
+
* @param {*} [options] Override http request option.
|
|
10529
|
+
* @throws {RequiredError}
|
|
10530
|
+
* @memberof StripeApi
|
|
10531
|
+
*/
|
|
10532
|
+
webhook(options) {
|
|
10533
|
+
return (0, exports.StripeApiFp)(this.configuration).webhook(options).then((request) => request(this.axios, this.basePath));
|
|
10534
|
+
}
|
|
10003
10535
|
}
|
|
10004
10536
|
exports.StripeApi = StripeApi;
|
|
10005
10537
|
/**
|
|
@@ -10011,7 +10543,7 @@ const SyncApiAxiosParamCreator = function (configuration) {
|
|
|
10011
10543
|
/**
|
|
10012
10544
|
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10013
10545
|
* @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.
|
|
10546
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10015
10547
|
* @param {*} [options] Override http request option.
|
|
10016
10548
|
* @throws {RequiredError}
|
|
10017
10549
|
*/
|
|
@@ -10053,7 +10585,7 @@ const SyncApiFp = function (configuration) {
|
|
|
10053
10585
|
/**
|
|
10054
10586
|
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10055
10587
|
* @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.
|
|
10588
|
+
* @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
|
|
10057
10589
|
* @param {*} [options] Override http request option.
|
|
10058
10590
|
* @throws {RequiredError}
|
|
10059
10591
|
*/
|
|
@@ -10074,42 +10606,413 @@ const SyncApiFactory = function (configuration, basePath, axios) {
|
|
|
10074
10606
|
const localVarFp = (0, exports.SyncApiFp)(configuration);
|
|
10075
10607
|
return {
|
|
10076
10608
|
/**
|
|
10077
|
-
* 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.
|
|
10078
|
-
* @summary Get dry-run sync results for users
|
|
10079
|
-
* @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
|
|
10609
|
+
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10610
|
+
* @summary Get dry-run sync results for users
|
|
10611
|
+
* @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
|
|
10612
|
+
* @param {*} [options] Override http request option.
|
|
10613
|
+
* @throws {RequiredError}
|
|
10614
|
+
*/
|
|
10615
|
+
getUserSyncResults(requestParameters = {}, options) {
|
|
10616
|
+
return localVarFp.getUserSyncResults(requestParameters.service, options).then((request) => request(axios, basePath));
|
|
10617
|
+
},
|
|
10618
|
+
};
|
|
10619
|
+
};
|
|
10620
|
+
exports.SyncApiFactory = SyncApiFactory;
|
|
10621
|
+
/**
|
|
10622
|
+
* SyncApi - object-oriented interface
|
|
10623
|
+
* @export
|
|
10624
|
+
* @class SyncApi
|
|
10625
|
+
* @extends {BaseAPI}
|
|
10626
|
+
*/
|
|
10627
|
+
class SyncApi extends base_1.BaseAPI {
|
|
10628
|
+
/**
|
|
10629
|
+
* Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
|
|
10630
|
+
* @summary Get dry-run sync results for users
|
|
10631
|
+
* @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
|
|
10632
|
+
* @param {*} [options] Override http request option.
|
|
10633
|
+
* @throws {RequiredError}
|
|
10634
|
+
* @memberof SyncApi
|
|
10635
|
+
*/
|
|
10636
|
+
getUserSyncResults(requestParameters = {}, options) {
|
|
10637
|
+
return (0, exports.SyncApiFp)(this.configuration).getUserSyncResults(requestParameters.service, options).then((request) => request(this.axios, this.basePath));
|
|
10638
|
+
}
|
|
10639
|
+
}
|
|
10640
|
+
exports.SyncApi = SyncApi;
|
|
10641
|
+
/**
|
|
10642
|
+
* @export
|
|
10643
|
+
*/
|
|
10644
|
+
exports.GetUserSyncResultsServiceEnum = {
|
|
10645
|
+
Ldap: 'LDAP',
|
|
10646
|
+
Gewisdb: 'GEWISDB'
|
|
10647
|
+
};
|
|
10648
|
+
/**
|
|
10649
|
+
* TerminalPaymentsApi - axios parameter creator
|
|
10650
|
+
* @export
|
|
10651
|
+
*/
|
|
10652
|
+
const TerminalPaymentsApiAxiosParamCreator = function (configuration) {
|
|
10653
|
+
return {
|
|
10654
|
+
/**
|
|
10655
|
+
*
|
|
10656
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10657
|
+
* @param {number} id The ID of the terminal payment
|
|
10658
|
+
* @param {*} [options] Override http request option.
|
|
10659
|
+
* @throws {RequiredError}
|
|
10660
|
+
*/
|
|
10661
|
+
cancelTerminalPayment: async (id, options = {}) => {
|
|
10662
|
+
// verify required parameter 'id' is not null or undefined
|
|
10663
|
+
(0, common_1.assertParamExists)('cancelTerminalPayment', 'id', id);
|
|
10664
|
+
const localVarPath = `/terminal-payments/{id}`
|
|
10665
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10667
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10668
|
+
let baseOptions;
|
|
10669
|
+
if (configuration) {
|
|
10670
|
+
baseOptions = configuration.baseOptions;
|
|
10671
|
+
}
|
|
10672
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
10673
|
+
const localVarHeaderParameter = {};
|
|
10674
|
+
const localVarQueryParameter = {};
|
|
10675
|
+
// authentication JWT required
|
|
10676
|
+
// http bearer authentication required
|
|
10677
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10678
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10680
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10681
|
+
return {
|
|
10682
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10683
|
+
options: localVarRequestOptions,
|
|
10684
|
+
};
|
|
10685
|
+
},
|
|
10686
|
+
/**
|
|
10687
|
+
*
|
|
10688
|
+
* @summary Create a terminal payment before executing.
|
|
10689
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
10690
|
+
* @param {*} [options] Override http request option.
|
|
10691
|
+
* @throws {RequiredError}
|
|
10692
|
+
*/
|
|
10693
|
+
createTerminalPayment: async (createTerminalPaymentRequest, options = {}) => {
|
|
10694
|
+
// verify required parameter 'createTerminalPaymentRequest' is not null or undefined
|
|
10695
|
+
(0, common_1.assertParamExists)('createTerminalPayment', 'createTerminalPaymentRequest', createTerminalPaymentRequest);
|
|
10696
|
+
const localVarPath = `/terminal-payments`;
|
|
10697
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10698
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10699
|
+
let baseOptions;
|
|
10700
|
+
if (configuration) {
|
|
10701
|
+
baseOptions = configuration.baseOptions;
|
|
10702
|
+
}
|
|
10703
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10704
|
+
const localVarHeaderParameter = {};
|
|
10705
|
+
const localVarQueryParameter = {};
|
|
10706
|
+
// authentication JWT required
|
|
10707
|
+
// http bearer authentication required
|
|
10708
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10709
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10710
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10712
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10713
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTerminalPaymentRequest, localVarRequestOptions, configuration);
|
|
10714
|
+
return {
|
|
10715
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10716
|
+
options: localVarRequestOptions,
|
|
10717
|
+
};
|
|
10718
|
+
},
|
|
10719
|
+
/**
|
|
10720
|
+
*
|
|
10721
|
+
* @summary Get single terminal payment by ID
|
|
10722
|
+
* @param {number} id The ID of the terminal payment
|
|
10723
|
+
* @param {*} [options] Override http request option.
|
|
10724
|
+
* @throws {RequiredError}
|
|
10725
|
+
*/
|
|
10726
|
+
getSingleTerminalPayment: async (id, options = {}) => {
|
|
10727
|
+
// verify required parameter 'id' is not null or undefined
|
|
10728
|
+
(0, common_1.assertParamExists)('getSingleTerminalPayment', 'id', id);
|
|
10729
|
+
const localVarPath = `/terminal-payments/{id}`
|
|
10730
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10732
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10733
|
+
let baseOptions;
|
|
10734
|
+
if (configuration) {
|
|
10735
|
+
baseOptions = configuration.baseOptions;
|
|
10736
|
+
}
|
|
10737
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10738
|
+
const localVarHeaderParameter = {};
|
|
10739
|
+
const localVarQueryParameter = {};
|
|
10740
|
+
// authentication JWT required
|
|
10741
|
+
// http bearer authentication required
|
|
10742
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10743
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10744
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10745
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10746
|
+
return {
|
|
10747
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10748
|
+
options: localVarRequestOptions,
|
|
10749
|
+
};
|
|
10750
|
+
},
|
|
10751
|
+
/**
|
|
10752
|
+
*
|
|
10753
|
+
* @summary Get all Stripe terminals
|
|
10754
|
+
* @param {*} [options] Override http request option.
|
|
10755
|
+
* @throws {RequiredError}
|
|
10756
|
+
*/
|
|
10757
|
+
getStripeTerminals: async (options = {}) => {
|
|
10758
|
+
const localVarPath = `/terminal-payments/terminals`;
|
|
10759
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10760
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10761
|
+
let baseOptions;
|
|
10762
|
+
if (configuration) {
|
|
10763
|
+
baseOptions = configuration.baseOptions;
|
|
10764
|
+
}
|
|
10765
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10766
|
+
const localVarHeaderParameter = {};
|
|
10767
|
+
const localVarQueryParameter = {};
|
|
10768
|
+
// authentication JWT required
|
|
10769
|
+
// http bearer authentication required
|
|
10770
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10771
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10772
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10773
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10774
|
+
return {
|
|
10775
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10776
|
+
options: localVarRequestOptions,
|
|
10777
|
+
};
|
|
10778
|
+
},
|
|
10779
|
+
/**
|
|
10780
|
+
*
|
|
10781
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10782
|
+
* @param {number} id The ID of the terminal payment
|
|
10783
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
10784
|
+
* @param {*} [options] Override http request option.
|
|
10785
|
+
* @throws {RequiredError}
|
|
10786
|
+
*/
|
|
10787
|
+
startTerminalPayment: async (id, processTerminalPaymentRequest, options = {}) => {
|
|
10788
|
+
// verify required parameter 'id' is not null or undefined
|
|
10789
|
+
(0, common_1.assertParamExists)('startTerminalPayment', 'id', id);
|
|
10790
|
+
// verify required parameter 'processTerminalPaymentRequest' is not null or undefined
|
|
10791
|
+
(0, common_1.assertParamExists)('startTerminalPayment', 'processTerminalPaymentRequest', processTerminalPaymentRequest);
|
|
10792
|
+
const localVarPath = `/terminal-payments/{id}/process`
|
|
10793
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10794
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10795
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10796
|
+
let baseOptions;
|
|
10797
|
+
if (configuration) {
|
|
10798
|
+
baseOptions = configuration.baseOptions;
|
|
10799
|
+
}
|
|
10800
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
10801
|
+
const localVarHeaderParameter = {};
|
|
10802
|
+
const localVarQueryParameter = {};
|
|
10803
|
+
// authentication JWT required
|
|
10804
|
+
// http bearer authentication required
|
|
10805
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10806
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10807
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10809
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10810
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(processTerminalPaymentRequest, localVarRequestOptions, configuration);
|
|
10811
|
+
return {
|
|
10812
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10813
|
+
options: localVarRequestOptions,
|
|
10814
|
+
};
|
|
10815
|
+
},
|
|
10816
|
+
};
|
|
10817
|
+
};
|
|
10818
|
+
exports.TerminalPaymentsApiAxiosParamCreator = TerminalPaymentsApiAxiosParamCreator;
|
|
10819
|
+
/**
|
|
10820
|
+
* TerminalPaymentsApi - functional programming interface
|
|
10821
|
+
* @export
|
|
10822
|
+
*/
|
|
10823
|
+
const TerminalPaymentsApiFp = function (configuration) {
|
|
10824
|
+
const localVarAxiosParamCreator = (0, exports.TerminalPaymentsApiAxiosParamCreator)(configuration);
|
|
10825
|
+
return {
|
|
10826
|
+
/**
|
|
10827
|
+
*
|
|
10828
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10829
|
+
* @param {number} id The ID of the terminal payment
|
|
10830
|
+
* @param {*} [options] Override http request option.
|
|
10831
|
+
* @throws {RequiredError}
|
|
10832
|
+
*/
|
|
10833
|
+
async cancelTerminalPayment(id, options) {
|
|
10834
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelTerminalPayment(id, options);
|
|
10835
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10836
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.cancelTerminalPayment']?.[index]?.url;
|
|
10837
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10838
|
+
},
|
|
10839
|
+
/**
|
|
10840
|
+
*
|
|
10841
|
+
* @summary Create a terminal payment before executing.
|
|
10842
|
+
* @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
|
|
10843
|
+
* @param {*} [options] Override http request option.
|
|
10844
|
+
* @throws {RequiredError}
|
|
10845
|
+
*/
|
|
10846
|
+
async createTerminalPayment(createTerminalPaymentRequest, options) {
|
|
10847
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createTerminalPayment(createTerminalPaymentRequest, options);
|
|
10848
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10849
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.createTerminalPayment']?.[index]?.url;
|
|
10850
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10851
|
+
},
|
|
10852
|
+
/**
|
|
10853
|
+
*
|
|
10854
|
+
* @summary Get single terminal payment by ID
|
|
10855
|
+
* @param {number} id The ID of the terminal payment
|
|
10856
|
+
* @param {*} [options] Override http request option.
|
|
10857
|
+
* @throws {RequiredError}
|
|
10858
|
+
*/
|
|
10859
|
+
async getSingleTerminalPayment(id, options) {
|
|
10860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSingleTerminalPayment(id, options);
|
|
10861
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10862
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.getSingleTerminalPayment']?.[index]?.url;
|
|
10863
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10864
|
+
},
|
|
10865
|
+
/**
|
|
10866
|
+
*
|
|
10867
|
+
* @summary Get all Stripe terminals
|
|
10868
|
+
* @param {*} [options] Override http request option.
|
|
10869
|
+
* @throws {RequiredError}
|
|
10870
|
+
*/
|
|
10871
|
+
async getStripeTerminals(options) {
|
|
10872
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStripeTerminals(options);
|
|
10873
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10874
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.getStripeTerminals']?.[index]?.url;
|
|
10875
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10876
|
+
},
|
|
10877
|
+
/**
|
|
10878
|
+
*
|
|
10879
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10880
|
+
* @param {number} id The ID of the terminal payment
|
|
10881
|
+
* @param {ProcessTerminalPaymentRequest} processTerminalPaymentRequest Payment options
|
|
10882
|
+
* @param {*} [options] Override http request option.
|
|
10883
|
+
* @throws {RequiredError}
|
|
10884
|
+
*/
|
|
10885
|
+
async startTerminalPayment(id, processTerminalPaymentRequest, options) {
|
|
10886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startTerminalPayment(id, processTerminalPaymentRequest, options);
|
|
10887
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10888
|
+
const operationBasePath = base_1.operationServerMap['TerminalPaymentsApi.startTerminalPayment']?.[index]?.url;
|
|
10889
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10890
|
+
},
|
|
10891
|
+
};
|
|
10892
|
+
};
|
|
10893
|
+
exports.TerminalPaymentsApiFp = TerminalPaymentsApiFp;
|
|
10894
|
+
/**
|
|
10895
|
+
* TerminalPaymentsApi - factory interface
|
|
10896
|
+
* @export
|
|
10897
|
+
*/
|
|
10898
|
+
const TerminalPaymentsApiFactory = function (configuration, basePath, axios) {
|
|
10899
|
+
const localVarFp = (0, exports.TerminalPaymentsApiFp)(configuration);
|
|
10900
|
+
return {
|
|
10901
|
+
/**
|
|
10902
|
+
*
|
|
10903
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10904
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
10905
|
+
* @param {*} [options] Override http request option.
|
|
10906
|
+
* @throws {RequiredError}
|
|
10907
|
+
*/
|
|
10908
|
+
cancelTerminalPayment(requestParameters, options) {
|
|
10909
|
+
return localVarFp.cancelTerminalPayment(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10910
|
+
},
|
|
10911
|
+
/**
|
|
10912
|
+
*
|
|
10913
|
+
* @summary Create a terminal payment before executing.
|
|
10914
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
10915
|
+
* @param {*} [options] Override http request option.
|
|
10916
|
+
* @throws {RequiredError}
|
|
10917
|
+
*/
|
|
10918
|
+
createTerminalPayment(requestParameters, options) {
|
|
10919
|
+
return localVarFp.createTerminalPayment(requestParameters.createTerminalPaymentRequest, options).then((request) => request(axios, basePath));
|
|
10920
|
+
},
|
|
10921
|
+
/**
|
|
10922
|
+
*
|
|
10923
|
+
* @summary Get single terminal payment by ID
|
|
10924
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
10925
|
+
* @param {*} [options] Override http request option.
|
|
10926
|
+
* @throws {RequiredError}
|
|
10927
|
+
*/
|
|
10928
|
+
getSingleTerminalPayment(requestParameters, options) {
|
|
10929
|
+
return localVarFp.getSingleTerminalPayment(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10930
|
+
},
|
|
10931
|
+
/**
|
|
10932
|
+
*
|
|
10933
|
+
* @summary Get all Stripe terminals
|
|
10080
10934
|
* @param {*} [options] Override http request option.
|
|
10081
10935
|
* @throws {RequiredError}
|
|
10082
10936
|
*/
|
|
10083
|
-
|
|
10084
|
-
return localVarFp.
|
|
10937
|
+
getStripeTerminals(options) {
|
|
10938
|
+
return localVarFp.getStripeTerminals(options).then((request) => request(axios, basePath));
|
|
10939
|
+
},
|
|
10940
|
+
/**
|
|
10941
|
+
*
|
|
10942
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
10943
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
10944
|
+
* @param {*} [options] Override http request option.
|
|
10945
|
+
* @throws {RequiredError}
|
|
10946
|
+
*/
|
|
10947
|
+
startTerminalPayment(requestParameters, options) {
|
|
10948
|
+
return localVarFp.startTerminalPayment(requestParameters.id, requestParameters.processTerminalPaymentRequest, options).then((request) => request(axios, basePath));
|
|
10085
10949
|
},
|
|
10086
10950
|
};
|
|
10087
10951
|
};
|
|
10088
|
-
exports.
|
|
10952
|
+
exports.TerminalPaymentsApiFactory = TerminalPaymentsApiFactory;
|
|
10089
10953
|
/**
|
|
10090
|
-
*
|
|
10954
|
+
* TerminalPaymentsApi - object-oriented interface
|
|
10091
10955
|
* @export
|
|
10092
|
-
* @class
|
|
10956
|
+
* @class TerminalPaymentsApi
|
|
10093
10957
|
* @extends {BaseAPI}
|
|
10094
10958
|
*/
|
|
10095
|
-
class
|
|
10959
|
+
class TerminalPaymentsApi extends base_1.BaseAPI {
|
|
10096
10960
|
/**
|
|
10097
|
-
*
|
|
10098
|
-
* @summary
|
|
10099
|
-
* @param {
|
|
10961
|
+
*
|
|
10962
|
+
* @summary Cancel a Terminal Payment that is created/processing
|
|
10963
|
+
* @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
|
|
10100
10964
|
* @param {*} [options] Override http request option.
|
|
10101
10965
|
* @throws {RequiredError}
|
|
10102
|
-
* @memberof
|
|
10966
|
+
* @memberof TerminalPaymentsApi
|
|
10103
10967
|
*/
|
|
10104
|
-
|
|
10105
|
-
return (0, exports.
|
|
10968
|
+
cancelTerminalPayment(requestParameters, options) {
|
|
10969
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).cancelTerminalPayment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10970
|
+
}
|
|
10971
|
+
/**
|
|
10972
|
+
*
|
|
10973
|
+
* @summary Create a terminal payment before executing.
|
|
10974
|
+
* @param {TerminalPaymentsApiCreateTerminalPaymentRequest} requestParameters Request parameters.
|
|
10975
|
+
* @param {*} [options] Override http request option.
|
|
10976
|
+
* @throws {RequiredError}
|
|
10977
|
+
* @memberof TerminalPaymentsApi
|
|
10978
|
+
*/
|
|
10979
|
+
createTerminalPayment(requestParameters, options) {
|
|
10980
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).createTerminalPayment(requestParameters.createTerminalPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10981
|
+
}
|
|
10982
|
+
/**
|
|
10983
|
+
*
|
|
10984
|
+
* @summary Get single terminal payment by ID
|
|
10985
|
+
* @param {TerminalPaymentsApiGetSingleTerminalPaymentRequest} requestParameters Request parameters.
|
|
10986
|
+
* @param {*} [options] Override http request option.
|
|
10987
|
+
* @throws {RequiredError}
|
|
10988
|
+
* @memberof TerminalPaymentsApi
|
|
10989
|
+
*/
|
|
10990
|
+
getSingleTerminalPayment(requestParameters, options) {
|
|
10991
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).getSingleTerminalPayment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
10992
|
+
}
|
|
10993
|
+
/**
|
|
10994
|
+
*
|
|
10995
|
+
* @summary Get all Stripe terminals
|
|
10996
|
+
* @param {*} [options] Override http request option.
|
|
10997
|
+
* @throws {RequiredError}
|
|
10998
|
+
* @memberof TerminalPaymentsApi
|
|
10999
|
+
*/
|
|
11000
|
+
getStripeTerminals(options) {
|
|
11001
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).getStripeTerminals(options).then((request) => request(this.axios, this.basePath));
|
|
11002
|
+
}
|
|
11003
|
+
/**
|
|
11004
|
+
*
|
|
11005
|
+
* @summary Start the payment process on the terminal for the TerminalPayment with the given ID
|
|
11006
|
+
* @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
|
|
11007
|
+
* @param {*} [options] Override http request option.
|
|
11008
|
+
* @throws {RequiredError}
|
|
11009
|
+
* @memberof TerminalPaymentsApi
|
|
11010
|
+
*/
|
|
11011
|
+
startTerminalPayment(requestParameters, options) {
|
|
11012
|
+
return (0, exports.TerminalPaymentsApiFp)(this.configuration).startTerminalPayment(requestParameters.id, requestParameters.processTerminalPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10106
11013
|
}
|
|
10107
11014
|
}
|
|
10108
|
-
exports.
|
|
10109
|
-
/**
|
|
10110
|
-
* @export
|
|
10111
|
-
*/
|
|
10112
|
-
exports.GetUserSyncResultsServiceEnum = {};
|
|
11015
|
+
exports.TerminalPaymentsApi = TerminalPaymentsApi;
|
|
10113
11016
|
/**
|
|
10114
11017
|
* TermsOfServiceApi - axios parameter creator
|
|
10115
11018
|
* @export
|
|
@@ -11182,12 +12085,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11182
12085
|
* @summary Returns all existing transfers
|
|
11183
12086
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11184
12087
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
12088
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
12089
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
12090
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11185
12091
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11186
12092
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11187
12093
|
* @param {*} [options] Override http request option.
|
|
11188
12094
|
* @throws {RequiredError}
|
|
11189
12095
|
*/
|
|
11190
|
-
getAllTransfers: async (fromDate, tillDate, take, skip, options = {}) => {
|
|
12096
|
+
getAllTransfers: async (fromDate, tillDate, fromId, toId, category, take, skip, options = {}) => {
|
|
11191
12097
|
const localVarPath = `/transfers`;
|
|
11192
12098
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11193
12099
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -11207,6 +12113,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11207
12113
|
if (tillDate !== undefined) {
|
|
11208
12114
|
localVarQueryParameter['tillDate'] = tillDate;
|
|
11209
12115
|
}
|
|
12116
|
+
if (fromId !== undefined) {
|
|
12117
|
+
localVarQueryParameter['fromId'] = fromId;
|
|
12118
|
+
}
|
|
12119
|
+
if (toId !== undefined) {
|
|
12120
|
+
localVarQueryParameter['toId'] = toId;
|
|
12121
|
+
}
|
|
12122
|
+
if (category !== undefined) {
|
|
12123
|
+
localVarQueryParameter['category'] = category;
|
|
12124
|
+
}
|
|
11210
12125
|
if (take !== undefined) {
|
|
11211
12126
|
localVarQueryParameter['take'] = take;
|
|
11212
12127
|
}
|
|
@@ -11260,7 +12175,7 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11260
12175
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11261
12176
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
11262
12177
|
* @param {number} [toId] Filter transfers to this user ID
|
|
11263
|
-
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
12178
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
11264
12179
|
* @param {*} [options] Override http request option.
|
|
11265
12180
|
* @throws {RequiredError}
|
|
11266
12181
|
*/
|
|
@@ -11333,6 +12248,50 @@ const TransfersApiAxiosParamCreator = function (configuration) {
|
|
|
11333
12248
|
options: localVarRequestOptions,
|
|
11334
12249
|
};
|
|
11335
12250
|
},
|
|
12251
|
+
/**
|
|
12252
|
+
*
|
|
12253
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
12254
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
12255
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
12256
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
12257
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
12258
|
+
* @param {*} [options] Override http request option.
|
|
12259
|
+
* @throws {RequiredError}
|
|
12260
|
+
*/
|
|
12261
|
+
getTransferSummary: async (fromDate, tillDate, fromId, toId, options = {}) => {
|
|
12262
|
+
const localVarPath = `/transfers/summary`;
|
|
12263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12264
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12265
|
+
let baseOptions;
|
|
12266
|
+
if (configuration) {
|
|
12267
|
+
baseOptions = configuration.baseOptions;
|
|
12268
|
+
}
|
|
12269
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
12270
|
+
const localVarHeaderParameter = {};
|
|
12271
|
+
const localVarQueryParameter = {};
|
|
12272
|
+
// authentication JWT required
|
|
12273
|
+
// http bearer authentication required
|
|
12274
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12275
|
+
if (fromDate !== undefined) {
|
|
12276
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
12277
|
+
}
|
|
12278
|
+
if (tillDate !== undefined) {
|
|
12279
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
12280
|
+
}
|
|
12281
|
+
if (fromId !== undefined) {
|
|
12282
|
+
localVarQueryParameter['fromId'] = fromId;
|
|
12283
|
+
}
|
|
12284
|
+
if (toId !== undefined) {
|
|
12285
|
+
localVarQueryParameter['toId'] = toId;
|
|
12286
|
+
}
|
|
12287
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12289
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
12290
|
+
return {
|
|
12291
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12292
|
+
options: localVarRequestOptions,
|
|
12293
|
+
};
|
|
12294
|
+
},
|
|
11336
12295
|
};
|
|
11337
12296
|
};
|
|
11338
12297
|
exports.TransfersApiAxiosParamCreator = TransfersApiAxiosParamCreator;
|
|
@@ -11374,13 +12333,16 @@ const TransfersApiFp = function (configuration) {
|
|
|
11374
12333
|
* @summary Returns all existing transfers
|
|
11375
12334
|
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
11376
12335
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
12336
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
12337
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
12338
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost, manualCreation, manualDeletion
|
|
11377
12339
|
* @param {number} [take] How many transfers the endpoint should return
|
|
11378
12340
|
* @param {number} [skip] How many transfers should be skipped (for pagination)
|
|
11379
12341
|
* @param {*} [options] Override http request option.
|
|
11380
12342
|
* @throws {RequiredError}
|
|
11381
12343
|
*/
|
|
11382
|
-
async getAllTransfers(fromDate, tillDate, take, skip, options) {
|
|
11383
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, take, skip, options);
|
|
12344
|
+
async getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options) {
|
|
12345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTransfers(fromDate, tillDate, fromId, toId, category, take, skip, options);
|
|
11384
12346
|
const index = configuration?.serverIndex ?? 0;
|
|
11385
12347
|
const operationBasePath = base_1.operationServerMap['TransfersApi.getAllTransfers']?.[index]?.url;
|
|
11386
12348
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -11405,7 +12367,7 @@ const TransfersApiFp = function (configuration) {
|
|
|
11405
12367
|
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
11406
12368
|
* @param {number} [fromId] Filter transfers from this user ID
|
|
11407
12369
|
* @param {number} [toId] Filter transfers to this user ID
|
|
11408
|
-
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, invoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
12370
|
+
* @param {string} [category] Restrict to a specific transfer category: deposit, payoutRequest, sellerPayout, invoice, creditInvoice, fine, waivedFines, writeOff, inactiveAdministrativeCost
|
|
11409
12371
|
* @param {*} [options] Override http request option.
|
|
11410
12372
|
* @throws {RequiredError}
|
|
11411
12373
|
*/
|
|
@@ -11428,6 +12390,22 @@ const TransfersApiFp = function (configuration) {
|
|
|
11428
12390
|
const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferPdf']?.[index]?.url;
|
|
11429
12391
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
11430
12392
|
},
|
|
12393
|
+
/**
|
|
12394
|
+
*
|
|
12395
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
12396
|
+
* @param {string} [fromDate] Start date for selected transfers (inclusive)
|
|
12397
|
+
* @param {string} [tillDate] End date for selected transfers (exclusive)
|
|
12398
|
+
* @param {number} [fromId] Filter transfers from this user ID
|
|
12399
|
+
* @param {number} [toId] Filter transfers to this user ID
|
|
12400
|
+
* @param {*} [options] Override http request option.
|
|
12401
|
+
* @throws {RequiredError}
|
|
12402
|
+
*/
|
|
12403
|
+
async getTransferSummary(fromDate, tillDate, fromId, toId, options) {
|
|
12404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferSummary(fromDate, tillDate, fromId, toId, options);
|
|
12405
|
+
const index = configuration?.serverIndex ?? 0;
|
|
12406
|
+
const operationBasePath = base_1.operationServerMap['TransfersApi.getTransferSummary']?.[index]?.url;
|
|
12407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
12408
|
+
},
|
|
11431
12409
|
};
|
|
11432
12410
|
};
|
|
11433
12411
|
exports.TransfersApiFp = TransfersApiFp;
|
|
@@ -11466,7 +12444,7 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
|
|
|
11466
12444
|
* @throws {RequiredError}
|
|
11467
12445
|
*/
|
|
11468
12446
|
getAllTransfers(requestParameters = {}, options) {
|
|
11469
|
-
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
12447
|
+
return localVarFp.getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, requestParameters.category, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
11470
12448
|
},
|
|
11471
12449
|
/**
|
|
11472
12450
|
*
|
|
@@ -11498,6 +12476,16 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
|
|
|
11498
12476
|
getTransferPdf(requestParameters, options) {
|
|
11499
12477
|
return localVarFp.getTransferPdf(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
11500
12478
|
},
|
|
12479
|
+
/**
|
|
12480
|
+
*
|
|
12481
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
12482
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
12483
|
+
* @param {*} [options] Override http request option.
|
|
12484
|
+
* @throws {RequiredError}
|
|
12485
|
+
*/
|
|
12486
|
+
getTransferSummary(requestParameters = {}, options) {
|
|
12487
|
+
return localVarFp.getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(axios, basePath));
|
|
12488
|
+
},
|
|
11501
12489
|
};
|
|
11502
12490
|
};
|
|
11503
12491
|
exports.TransfersApiFactory = TransfersApiFactory;
|
|
@@ -11539,7 +12527,7 @@ class TransfersApi extends base_1.BaseAPI {
|
|
|
11539
12527
|
* @memberof TransfersApi
|
|
11540
12528
|
*/
|
|
11541
12529
|
getAllTransfers(requestParameters = {}, options) {
|
|
11542
|
-
return (0, exports.TransfersApiFp)(this.configuration).getAllTransfers(requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
12530
|
+
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));
|
|
11543
12531
|
}
|
|
11544
12532
|
/**
|
|
11545
12533
|
*
|
|
@@ -11574,6 +12562,17 @@ class TransfersApi extends base_1.BaseAPI {
|
|
|
11574
12562
|
getTransferPdf(requestParameters, options) {
|
|
11575
12563
|
return (0, exports.TransfersApiFp)(this.configuration).getTransferPdf(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
11576
12564
|
}
|
|
12565
|
+
/**
|
|
12566
|
+
*
|
|
12567
|
+
* @summary Returns an aggregate breakdown of transfers for every category plus an overall total
|
|
12568
|
+
* @param {TransfersApiGetTransferSummaryRequest} requestParameters Request parameters.
|
|
12569
|
+
* @param {*} [options] Override http request option.
|
|
12570
|
+
* @throws {RequiredError}
|
|
12571
|
+
* @memberof TransfersApi
|
|
12572
|
+
*/
|
|
12573
|
+
getTransferSummary(requestParameters = {}, options) {
|
|
12574
|
+
return (0, exports.TransfersApiFp)(this.configuration).getTransferSummary(requestParameters.fromDate, requestParameters.tillDate, requestParameters.fromId, requestParameters.toId, options).then((request) => request(this.axios, this.basePath));
|
|
12575
|
+
}
|
|
11577
12576
|
}
|
|
11578
12577
|
exports.TransfersApi = TransfersApi;
|
|
11579
12578
|
/**
|
|
@@ -11846,7 +12845,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
11846
12845
|
return {
|
|
11847
12846
|
/**
|
|
11848
12847
|
*
|
|
11849
|
-
* @summary Accept the Terms of Service
|
|
12848
|
+
* @summary Accept the current Terms of Service version
|
|
11850
12849
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
11851
12850
|
* @param {*} [options] Override http request option.
|
|
11852
12851
|
* @throws {RequiredError}
|
|
@@ -12375,6 +13374,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12375
13374
|
options: localVarRequestOptions,
|
|
12376
13375
|
};
|
|
12377
13376
|
},
|
|
13377
|
+
/**
|
|
13378
|
+
*
|
|
13379
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
13380
|
+
* @param {number} id The id of the user
|
|
13381
|
+
* @param {*} [options] Override http request option.
|
|
13382
|
+
* @throws {RequiredError}
|
|
13383
|
+
*/
|
|
13384
|
+
getUserTos: async (id, options = {}) => {
|
|
13385
|
+
// verify required parameter 'id' is not null or undefined
|
|
13386
|
+
(0, common_1.assertParamExists)('getUserTos', 'id', id);
|
|
13387
|
+
const localVarPath = `/users/{id}/tos`
|
|
13388
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13389
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13390
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13391
|
+
let baseOptions;
|
|
13392
|
+
if (configuration) {
|
|
13393
|
+
baseOptions = configuration.baseOptions;
|
|
13394
|
+
}
|
|
13395
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13396
|
+
const localVarHeaderParameter = {};
|
|
13397
|
+
const localVarQueryParameter = {};
|
|
13398
|
+
// authentication JWT required
|
|
13399
|
+
// http bearer authentication required
|
|
13400
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13404
|
+
return {
|
|
13405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13406
|
+
options: localVarRequestOptions,
|
|
13407
|
+
};
|
|
13408
|
+
},
|
|
12378
13409
|
/**
|
|
12379
13410
|
*
|
|
12380
13411
|
* @summary Returns the user\'s containers
|
|
@@ -12463,6 +13494,62 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12463
13494
|
options: localVarRequestOptions,
|
|
12464
13495
|
};
|
|
12465
13496
|
},
|
|
13497
|
+
/**
|
|
13498
|
+
*
|
|
13499
|
+
* @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.
|
|
13500
|
+
* @param {number} id The id of the beneficiary user.
|
|
13501
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
13502
|
+
* @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
13503
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
13504
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
13505
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
13506
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
13507
|
+
* @param {*} [options] Override http request option.
|
|
13508
|
+
* @throws {RequiredError}
|
|
13509
|
+
*/
|
|
13510
|
+
getUsersPaymentRequests: async (id, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
|
|
13511
|
+
// verify required parameter 'id' is not null or undefined
|
|
13512
|
+
(0, common_1.assertParamExists)('getUsersPaymentRequests', 'id', id);
|
|
13513
|
+
const localVarPath = `/users/{id}/payment-requests`
|
|
13514
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
13515
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13516
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13517
|
+
let baseOptions;
|
|
13518
|
+
if (configuration) {
|
|
13519
|
+
baseOptions = configuration.baseOptions;
|
|
13520
|
+
}
|
|
13521
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
13522
|
+
const localVarHeaderParameter = {};
|
|
13523
|
+
const localVarQueryParameter = {};
|
|
13524
|
+
// authentication JWT required
|
|
13525
|
+
// http bearer authentication required
|
|
13526
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13527
|
+
if (createdById !== undefined) {
|
|
13528
|
+
localVarQueryParameter['createdById'] = createdById;
|
|
13529
|
+
}
|
|
13530
|
+
if (status !== undefined) {
|
|
13531
|
+
localVarQueryParameter['status'] = status;
|
|
13532
|
+
}
|
|
13533
|
+
if (fromDate !== undefined) {
|
|
13534
|
+
localVarQueryParameter['fromDate'] = fromDate;
|
|
13535
|
+
}
|
|
13536
|
+
if (tillDate !== undefined) {
|
|
13537
|
+
localVarQueryParameter['tillDate'] = tillDate;
|
|
13538
|
+
}
|
|
13539
|
+
if (take !== undefined) {
|
|
13540
|
+
localVarQueryParameter['take'] = take;
|
|
13541
|
+
}
|
|
13542
|
+
if (skip !== undefined) {
|
|
13543
|
+
localVarQueryParameter['skip'] = skip;
|
|
13544
|
+
}
|
|
13545
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13546
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13547
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
13548
|
+
return {
|
|
13549
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13550
|
+
options: localVarRequestOptions,
|
|
13551
|
+
};
|
|
13552
|
+
},
|
|
12466
13553
|
/**
|
|
12467
13554
|
*
|
|
12468
13555
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -13301,7 +14388,7 @@ const UsersApiFp = function (configuration) {
|
|
|
13301
14388
|
return {
|
|
13302
14389
|
/**
|
|
13303
14390
|
*
|
|
13304
|
-
* @summary Accept the Terms of Service
|
|
14391
|
+
* @summary Accept the current Terms of Service version
|
|
13305
14392
|
* @param {AcceptTosRequest} acceptTosRequest \"Tosrequest body\"
|
|
13306
14393
|
* @param {*} [options] Override http request option.
|
|
13307
14394
|
* @throws {RequiredError}
|
|
@@ -13506,6 +14593,19 @@ const UsersApiFp = function (configuration) {
|
|
|
13506
14593
|
const operationBasePath = base_1.operationServerMap['UsersApi.getUserSettings']?.[index]?.url;
|
|
13507
14594
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
13508
14595
|
},
|
|
14596
|
+
/**
|
|
14597
|
+
*
|
|
14598
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
14599
|
+
* @param {number} id The id of the user
|
|
14600
|
+
* @param {*} [options] Override http request option.
|
|
14601
|
+
* @throws {RequiredError}
|
|
14602
|
+
*/
|
|
14603
|
+
async getUserTos(id, options) {
|
|
14604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserTos(id, options);
|
|
14605
|
+
const index = configuration?.serverIndex ?? 0;
|
|
14606
|
+
const operationBasePath = base_1.operationServerMap['UsersApi.getUserTos']?.[index]?.url;
|
|
14607
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14608
|
+
},
|
|
13509
14609
|
/**
|
|
13510
14610
|
*
|
|
13511
14611
|
* @summary Returns the user\'s containers
|
|
@@ -13538,6 +14638,25 @@ const UsersApiFp = function (configuration) {
|
|
|
13538
14638
|
const operationBasePath = base_1.operationServerMap['UsersApi.getUsersFinancialMutations']?.[index]?.url;
|
|
13539
14639
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
13540
14640
|
},
|
|
14641
|
+
/**
|
|
14642
|
+
*
|
|
14643
|
+
* @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.
|
|
14644
|
+
* @param {number} id The id of the beneficiary user.
|
|
14645
|
+
* @param {number} [createdById] Filter by creator user id.
|
|
14646
|
+
* @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
|
|
14647
|
+
* @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
|
|
14648
|
+
* @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
|
|
14649
|
+
* @param {number} [take] How many rows the endpoint should return
|
|
14650
|
+
* @param {number} [skip] How many rows to skip (for pagination)
|
|
14651
|
+
* @param {*} [options] Override http request option.
|
|
14652
|
+
* @throws {RequiredError}
|
|
14653
|
+
*/
|
|
14654
|
+
async getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options) {
|
|
14655
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options);
|
|
14656
|
+
const index = configuration?.serverIndex ?? 0;
|
|
14657
|
+
const operationBasePath = base_1.operationServerMap['UsersApi.getUsersPaymentRequests']?.[index]?.url;
|
|
14658
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
14659
|
+
},
|
|
13541
14660
|
/**
|
|
13542
14661
|
*
|
|
13543
14662
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -13852,7 +14971,7 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
13852
14971
|
return {
|
|
13853
14972
|
/**
|
|
13854
14973
|
*
|
|
13855
|
-
* @summary Accept the Terms of Service
|
|
14974
|
+
* @summary Accept the current Terms of Service version
|
|
13856
14975
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
13857
14976
|
* @param {*} [options] Override http request option.
|
|
13858
14977
|
* @throws {RequiredError}
|
|
@@ -14000,6 +15119,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14000
15119
|
getUserSettings(requestParameters, options) {
|
|
14001
15120
|
return localVarFp.getUserSettings(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14002
15121
|
},
|
|
15122
|
+
/**
|
|
15123
|
+
*
|
|
15124
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
15125
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
15126
|
+
* @param {*} [options] Override http request option.
|
|
15127
|
+
* @throws {RequiredError}
|
|
15128
|
+
*/
|
|
15129
|
+
getUserTos(requestParameters, options) {
|
|
15130
|
+
return localVarFp.getUserTos(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
15131
|
+
},
|
|
14003
15132
|
/**
|
|
14004
15133
|
*
|
|
14005
15134
|
* @summary Returns the user\'s containers
|
|
@@ -14020,6 +15149,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14020
15149
|
getUsersFinancialMutations(requestParameters, options) {
|
|
14021
15150
|
return localVarFp.getUsersFinancialMutations(requestParameters.id, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
14022
15151
|
},
|
|
15152
|
+
/**
|
|
15153
|
+
*
|
|
15154
|
+
* @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.
|
|
15155
|
+
* @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
|
|
15156
|
+
* @param {*} [options] Override http request option.
|
|
15157
|
+
* @throws {RequiredError}
|
|
15158
|
+
*/
|
|
15159
|
+
getUsersPaymentRequests(requestParameters, options) {
|
|
15160
|
+
return localVarFp.getUsersPaymentRequests(requestParameters.id, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
15161
|
+
},
|
|
14023
15162
|
/**
|
|
14024
15163
|
*
|
|
14025
15164
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -14233,7 +15372,7 @@ exports.UsersApiFactory = UsersApiFactory;
|
|
|
14233
15372
|
class UsersApi extends base_1.BaseAPI {
|
|
14234
15373
|
/**
|
|
14235
15374
|
*
|
|
14236
|
-
* @summary Accept the Terms of Service
|
|
15375
|
+
* @summary Accept the current Terms of Service version
|
|
14237
15376
|
* @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
|
|
14238
15377
|
* @param {*} [options] Override http request option.
|
|
14239
15378
|
* @throws {RequiredError}
|
|
@@ -14396,6 +15535,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
14396
15535
|
getUserSettings(requestParameters, options) {
|
|
14397
15536
|
return (0, exports.UsersApiFp)(this.configuration).getUserSettings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
14398
15537
|
}
|
|
15538
|
+
/**
|
|
15539
|
+
*
|
|
15540
|
+
* @summary Get a user\'s terms of service status and acceptance history
|
|
15541
|
+
* @param {UsersApiGetUserTosRequest} requestParameters Request parameters.
|
|
15542
|
+
* @param {*} [options] Override http request option.
|
|
15543
|
+
* @throws {RequiredError}
|
|
15544
|
+
* @memberof UsersApi
|
|
15545
|
+
*/
|
|
15546
|
+
getUserTos(requestParameters, options) {
|
|
15547
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserTos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
15548
|
+
}
|
|
14399
15549
|
/**
|
|
14400
15550
|
*
|
|
14401
15551
|
* @summary Returns the user\'s containers
|
|
@@ -14418,6 +15568,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
14418
15568
|
getUsersFinancialMutations(requestParameters, options) {
|
|
14419
15569
|
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));
|
|
14420
15570
|
}
|
|
15571
|
+
/**
|
|
15572
|
+
*
|
|
15573
|
+
* @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.
|
|
15574
|
+
* @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
|
|
15575
|
+
* @param {*} [options] Override http request option.
|
|
15576
|
+
* @throws {RequiredError}
|
|
15577
|
+
* @memberof UsersApi
|
|
15578
|
+
*/
|
|
15579
|
+
getUsersPaymentRequests(requestParameters, options) {
|
|
15580
|
+
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));
|
|
15581
|
+
}
|
|
14421
15582
|
/**
|
|
14422
15583
|
*
|
|
14423
15584
|
* @summary Returns the user\'s Points of Sale
|
|
@@ -14653,6 +15814,15 @@ exports.GetAllUsersTypeEnum = {
|
|
|
14653
15814
|
Invoice: 'INVOICE',
|
|
14654
15815
|
AutomaticInvoice: 'AUTOMATIC_INVOICE'
|
|
14655
15816
|
};
|
|
15817
|
+
/**
|
|
15818
|
+
* @export
|
|
15819
|
+
*/
|
|
15820
|
+
exports.GetUsersPaymentRequestsStatusEnum = {
|
|
15821
|
+
Pending: 'PENDING',
|
|
15822
|
+
Paid: 'PAID',
|
|
15823
|
+
Expired: 'EXPIRED',
|
|
15824
|
+
Cancelled: 'CANCELLED'
|
|
15825
|
+
};
|
|
14656
15826
|
/**
|
|
14657
15827
|
* @export
|
|
14658
15828
|
*/
|