@gewis/sudosos-client 0.0.0-develop.fd219fb → 0.0.0-develop.ff396b7

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +1776 -634
  2. package/dist/api.js +1393 -389
  3. package/package.json +3 -3
package/dist/api.js CHANGED
@@ -13,15 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PayoutRequestsApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.InactiveAdministrativeCostsApi = exports.InactiveAdministrativeCostsApiFactory = exports.InactiveAdministrativeCostsApiFp = exports.InactiveAdministrativeCostsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.GetFineReportPdfFileTypeEnum = exports.DebtorsApi = exports.DebtorsApiFactory = exports.DebtorsApiFp = exports.DebtorsApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.BannersApi = exports.BannersApiFactory = exports.BannersApiFp = exports.BannersApiAxiosParamCreator = exports.GetAllBalanceOrderDirectionEnum = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuthenticateApi = exports.AuthenticateApiFactory = exports.AuthenticateApiFp = exports.AuthenticateApiAxiosParamCreator = exports.UserType = exports.UserSettingsResponseLanguageEnum = exports.UpdateInvoiceRequestStateEnum = exports.QRStatusResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = void 0;
17
- exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = exports.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.StripeApi = exports.StripeApiFactory = exports.StripeApiFp = exports.StripeApiAxiosParamCreator = exports.ServerSettingsApi = exports.ServerSettingsApiFactory = exports.ServerSettingsApiFp = exports.ServerSettingsApiAxiosParamCreator = exports.SellerPayoutsApi = exports.SellerPayoutsApiFactory = exports.SellerPayoutsApiFp = exports.SellerPayoutsApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.RbacApi = exports.RbacApiFactory = exports.RbacApiFp = exports.RbacApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductCategoriesApi = exports.ProductCategoriesApiFactory = exports.ProductCategoriesApiFp = exports.ProductCategoriesApiAxiosParamCreator = exports.PointofsaleApi = exports.PointofsaleApiFactory = exports.PointofsaleApiFp = exports.PointofsaleApiAxiosParamCreator = exports.PayoutRequestsApi = exports.PayoutRequestsApiFactory = exports.PayoutRequestsApiFp = 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.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',
@@ -66,12 +72,28 @@ exports.PayoutRequestStatusRequestStateEnum = {
66
72
  Denied: 'DENIED',
67
73
  Cancelled: 'CANCELLED'
68
74
  };
75
+ exports.PublicPaymentRequestResponseStatusEnum = {
76
+ Pending: 'PENDING',
77
+ Paid: 'PAID',
78
+ Expired: 'EXPIRED',
79
+ Cancelled: 'CANCELLED'
80
+ };
69
81
  exports.QRStatusResponseStatusEnum = {
70
82
  Pending: 'PENDING',
71
83
  Confirmed: 'CONFIRMED',
72
84
  Expired: 'EXPIRED',
73
85
  Cancelled: 'CANCELLED'
74
86
  };
87
+ /**
88
+ * The terms of service status of a user
89
+ * @export
90
+ * @enum {string}
91
+ */
92
+ exports.TermsOfServiceStatus = {
93
+ Accepted: 'ACCEPTED',
94
+ NotAccepted: 'NOT_ACCEPTED',
95
+ NotRequired: 'NOT_REQUIRED'
96
+ };
75
97
  exports.UpdateInvoiceRequestStateEnum = {
76
98
  Created: 'CREATED',
77
99
  Sent: 'SENT',
@@ -202,10 +224,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
202
224
  },
203
225
  /**
204
226
  *
205
- * @summary EAN login and hand out token
206
- * @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
207
229
  * @param {*} [options] Override http request option.
208
- * @deprecated
209
230
  * @throws {RequiredError}
210
231
  */
211
232
  eanAuthentication: async (authenticationEanRequest, options = {}) => {
@@ -221,6 +242,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
221
242
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
222
243
  const localVarHeaderParameter = {};
223
244
  const localVarQueryParameter = {};
245
+ // authentication JWT required
246
+ // http bearer authentication required
247
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
224
248
  localVarHeaderParameter['Content-Type'] = 'application/json';
225
249
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
226
250
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -487,15 +511,14 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
487
511
  },
488
512
  /**
489
513
  *
490
- * @summary PIN login for members using memberId.
491
- * @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
492
516
  * @param {*} [options] Override http request option.
493
- * @deprecated
494
517
  * @throws {RequiredError}
495
518
  */
496
- memberPinAuthentication: async (memberAuthenticationPinRequest, options = {}) => {
519
+ memberPINAuthentication: async (memberAuthenticationPinRequest, options = {}) => {
497
520
  // verify required parameter 'memberAuthenticationPinRequest' is not null or undefined
498
- (0, common_1.assertParamExists)('memberPinAuthentication', 'memberAuthenticationPinRequest', memberAuthenticationPinRequest);
521
+ (0, common_1.assertParamExists)('memberPINAuthentication', 'memberAuthenticationPinRequest', memberAuthenticationPinRequest);
499
522
  const localVarPath = `/authentication/member/pin`;
500
523
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
501
524
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -506,6 +529,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
506
529
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
507
530
  const localVarHeaderParameter = {};
508
531
  const localVarQueryParameter = {};
532
+ // authentication JWT required
533
+ // http bearer authentication required
534
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
509
535
  localVarHeaderParameter['Content-Type'] = 'application/json';
510
536
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
511
537
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -548,10 +574,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
548
574
  },
549
575
  /**
550
576
  *
551
- * @summary NFC login and hand out token
552
- * @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
553
579
  * @param {*} [options] Override http request option.
554
- * @deprecated
555
580
  * @throws {RequiredError}
556
581
  */
557
582
  nfcAuthentication: async (authenticationNfcRequest, options = {}) => {
@@ -567,6 +592,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
567
592
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
568
593
  const localVarHeaderParameter = {};
569
594
  const localVarQueryParameter = {};
595
+ // authentication JWT required
596
+ // http bearer authentication required
597
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
570
598
  localVarHeaderParameter['Content-Type'] = 'application/json';
571
599
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
572
600
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -579,10 +607,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
579
607
  },
580
608
  /**
581
609
  *
582
- * @summary PIN login and hand out token
583
- * @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
584
612
  * @param {*} [options] Override http request option.
585
- * @deprecated
586
613
  * @throws {RequiredError}
587
614
  */
588
615
  pinAuthentication: async (authenticationPinRequest, options = {}) => {
@@ -598,6 +625,9 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
598
625
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
599
626
  const localVarHeaderParameter = {};
600
627
  const localVarQueryParameter = {};
628
+ // authentication JWT required
629
+ // http bearer authentication required
630
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
601
631
  localVarHeaderParameter['Content-Type'] = 'application/json';
602
632
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
603
633
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -696,138 +726,6 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
696
726
  options: localVarRequestOptions,
697
727
  };
698
728
  },
699
- /**
700
- *
701
- * @summary Secure EAN authentication that requires POS user authentication
702
- * @param {AuthenticationSecureEanRequest} authenticationSecureEanRequest The EAN login request with posId
703
- * @param {*} [options] Override http request option.
704
- * @throws {RequiredError}
705
- */
706
- secureEanAuthentication: async (authenticationSecureEanRequest, options = {}) => {
707
- // verify required parameter 'authenticationSecureEanRequest' is not null or undefined
708
- (0, common_1.assertParamExists)('secureEanAuthentication', 'authenticationSecureEanRequest', authenticationSecureEanRequest);
709
- const localVarPath = `/authentication/ean-secure`;
710
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
711
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
712
- let baseOptions;
713
- if (configuration) {
714
- baseOptions = configuration.baseOptions;
715
- }
716
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
717
- const localVarHeaderParameter = {};
718
- const localVarQueryParameter = {};
719
- // authentication JWT required
720
- // http bearer authentication required
721
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
722
- localVarHeaderParameter['Content-Type'] = 'application/json';
723
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
724
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
725
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
726
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecureEanRequest, localVarRequestOptions, configuration);
727
- return {
728
- url: (0, common_1.toPathString)(localVarUrlObj),
729
- options: localVarRequestOptions,
730
- };
731
- },
732
- /**
733
- *
734
- * @summary Secure member PIN authentication that requires POS user authentication
735
- * @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
736
- * @param {*} [options] Override http request option.
737
- * @throws {RequiredError}
738
- */
739
- secureMemberPINAuthentication: async (memberAuthenticationSecurePinRequest, options = {}) => {
740
- // verify required parameter 'memberAuthenticationSecurePinRequest' is not null or undefined
741
- (0, common_1.assertParamExists)('secureMemberPINAuthentication', 'memberAuthenticationSecurePinRequest', memberAuthenticationSecurePinRequest);
742
- const localVarPath = `/authentication/member/pin-secure`;
743
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
744
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
745
- let baseOptions;
746
- if (configuration) {
747
- baseOptions = configuration.baseOptions;
748
- }
749
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
750
- const localVarHeaderParameter = {};
751
- const localVarQueryParameter = {};
752
- // authentication JWT required
753
- // http bearer authentication required
754
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
755
- localVarHeaderParameter['Content-Type'] = 'application/json';
756
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
757
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
758
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
759
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationSecurePinRequest, localVarRequestOptions, configuration);
760
- return {
761
- url: (0, common_1.toPathString)(localVarUrlObj),
762
- options: localVarRequestOptions,
763
- };
764
- },
765
- /**
766
- *
767
- * @summary Secure NFC authentication that requires POS user authentication
768
- * @param {AuthenticationSecureNfcRequest} authenticationSecureNfcRequest The NFC login request with posId
769
- * @param {*} [options] Override http request option.
770
- * @throws {RequiredError}
771
- */
772
- secureNfcAuthentication: async (authenticationSecureNfcRequest, options = {}) => {
773
- // verify required parameter 'authenticationSecureNfcRequest' is not null or undefined
774
- (0, common_1.assertParamExists)('secureNfcAuthentication', 'authenticationSecureNfcRequest', authenticationSecureNfcRequest);
775
- const localVarPath = `/authentication/nfc-secure`;
776
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
777
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
778
- let baseOptions;
779
- if (configuration) {
780
- baseOptions = configuration.baseOptions;
781
- }
782
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
783
- const localVarHeaderParameter = {};
784
- const localVarQueryParameter = {};
785
- // authentication JWT required
786
- // http bearer authentication required
787
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
788
- localVarHeaderParameter['Content-Type'] = 'application/json';
789
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
790
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
791
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
792
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecureNfcRequest, localVarRequestOptions, configuration);
793
- return {
794
- url: (0, common_1.toPathString)(localVarUrlObj),
795
- options: localVarRequestOptions,
796
- };
797
- },
798
- /**
799
- *
800
- * @summary Secure PIN authentication that requires POS user authentication
801
- * @param {AuthenticationSecurePinRequest} authenticationSecurePinRequest The PIN login request with posId
802
- * @param {*} [options] Override http request option.
803
- * @throws {RequiredError}
804
- */
805
- securePINAuthentication: async (authenticationSecurePinRequest, options = {}) => {
806
- // verify required parameter 'authenticationSecurePinRequest' is not null or undefined
807
- (0, common_1.assertParamExists)('securePINAuthentication', 'authenticationSecurePinRequest', authenticationSecurePinRequest);
808
- const localVarPath = `/authentication/pin-secure`;
809
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
810
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
811
- let baseOptions;
812
- if (configuration) {
813
- baseOptions = configuration.baseOptions;
814
- }
815
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
816
- const localVarHeaderParameter = {};
817
- const localVarQueryParameter = {};
818
- // authentication JWT required
819
- // http bearer authentication required
820
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
821
- localVarHeaderParameter['Content-Type'] = 'application/json';
822
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
823
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
824
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
825
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecurePinRequest, localVarRequestOptions, configuration);
826
- return {
827
- url: (0, common_1.toPathString)(localVarUrlObj),
828
- options: localVarRequestOptions,
829
- };
830
- },
831
729
  };
832
730
  };
833
731
  exports.AuthenticateApiAxiosParamCreator = AuthenticateApiAxiosParamCreator;
@@ -879,10 +777,9 @@ const AuthenticateApiFp = function (configuration) {
879
777
  },
880
778
  /**
881
779
  *
882
- * @summary EAN login and hand out token
883
- * @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
884
782
  * @param {*} [options] Override http request option.
885
- * @deprecated
886
783
  * @throws {RequiredError}
887
784
  */
888
785
  async eanAuthentication(authenticationEanRequest, options) {
@@ -1007,16 +904,15 @@ const AuthenticateApiFp = function (configuration) {
1007
904
  },
1008
905
  /**
1009
906
  *
1010
- * @summary PIN login for members using memberId.
1011
- * @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
1012
909
  * @param {*} [options] Override http request option.
1013
- * @deprecated
1014
910
  * @throws {RequiredError}
1015
911
  */
1016
- async memberPinAuthentication(memberAuthenticationPinRequest, options) {
1017
- const localVarAxiosArgs = await localVarAxiosParamCreator.memberPinAuthentication(memberAuthenticationPinRequest, options);
912
+ async memberPINAuthentication(memberAuthenticationPinRequest, options) {
913
+ const localVarAxiosArgs = await localVarAxiosParamCreator.memberPINAuthentication(memberAuthenticationPinRequest, options);
1018
914
  const index = configuration?.serverIndex ?? 0;
1019
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPinAuthentication']?.[index]?.url;
915
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPINAuthentication']?.[index]?.url;
1020
916
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1021
917
  },
1022
918
  /**
@@ -1034,10 +930,9 @@ const AuthenticateApiFp = function (configuration) {
1034
930
  },
1035
931
  /**
1036
932
  *
1037
- * @summary NFC login and hand out token
1038
- * @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
1039
935
  * @param {*} [options] Override http request option.
1040
- * @deprecated
1041
936
  * @throws {RequiredError}
1042
937
  */
1043
938
  async nfcAuthentication(authenticationNfcRequest, options) {
@@ -1048,10 +943,9 @@ const AuthenticateApiFp = function (configuration) {
1048
943
  },
1049
944
  /**
1050
945
  *
1051
- * @summary PIN login and hand out token
1052
- * @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
1053
948
  * @param {*} [options] Override http request option.
1054
- * @deprecated
1055
949
  * @throws {RequiredError}
1056
950
  */
1057
951
  async pinAuthentication(authenticationPinRequest, options) {
@@ -1098,58 +992,6 @@ const AuthenticateApiFp = function (configuration) {
1098
992
  const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocalWithToken']?.[index]?.url;
1099
993
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1100
994
  },
1101
- /**
1102
- *
1103
- * @summary Secure EAN authentication that requires POS user authentication
1104
- * @param {AuthenticationSecureEanRequest} authenticationSecureEanRequest The EAN login request with posId
1105
- * @param {*} [options] Override http request option.
1106
- * @throws {RequiredError}
1107
- */
1108
- async secureEanAuthentication(authenticationSecureEanRequest, options) {
1109
- const localVarAxiosArgs = await localVarAxiosParamCreator.secureEanAuthentication(authenticationSecureEanRequest, options);
1110
- const index = configuration?.serverIndex ?? 0;
1111
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureEanAuthentication']?.[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 member PIN authentication that requires POS user authentication
1117
- * @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
1118
- * @param {*} [options] Override http request option.
1119
- * @throws {RequiredError}
1120
- */
1121
- async secureMemberPINAuthentication(memberAuthenticationSecurePinRequest, options) {
1122
- const localVarAxiosArgs = await localVarAxiosParamCreator.secureMemberPINAuthentication(memberAuthenticationSecurePinRequest, options);
1123
- const index = configuration?.serverIndex ?? 0;
1124
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureMemberPINAuthentication']?.[index]?.url;
1125
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1126
- },
1127
- /**
1128
- *
1129
- * @summary Secure NFC authentication that requires POS user authentication
1130
- * @param {AuthenticationSecureNfcRequest} authenticationSecureNfcRequest The NFC login request with posId
1131
- * @param {*} [options] Override http request option.
1132
- * @throws {RequiredError}
1133
- */
1134
- async secureNfcAuthentication(authenticationSecureNfcRequest, options) {
1135
- const localVarAxiosArgs = await localVarAxiosParamCreator.secureNfcAuthentication(authenticationSecureNfcRequest, options);
1136
- const index = configuration?.serverIndex ?? 0;
1137
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureNfcAuthentication']?.[index]?.url;
1138
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1139
- },
1140
- /**
1141
- *
1142
- * @summary Secure PIN authentication that requires POS user authentication
1143
- * @param {AuthenticationSecurePinRequest} authenticationSecurePinRequest The PIN login request with posId
1144
- * @param {*} [options] Override http request option.
1145
- * @throws {RequiredError}
1146
- */
1147
- async securePINAuthentication(authenticationSecurePinRequest, options) {
1148
- const localVarAxiosArgs = await localVarAxiosParamCreator.securePINAuthentication(authenticationSecurePinRequest, options);
1149
- const index = configuration?.serverIndex ?? 0;
1150
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.securePINAuthentication']?.[index]?.url;
1151
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1152
- },
1153
995
  };
1154
996
  };
1155
997
  exports.AuthenticateApiFp = AuthenticateApiFp;
@@ -1192,10 +1034,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
1192
1034
  },
1193
1035
  /**
1194
1036
  *
1195
- * @summary EAN login and hand out token
1037
+ * @summary EAN authentication that requires POS user authentication
1196
1038
  * @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
1197
1039
  * @param {*} [options] Override http request option.
1198
- * @deprecated
1199
1040
  * @throws {RequiredError}
1200
1041
  */
1201
1042
  eanAuthentication(requestParameters, options) {
@@ -1290,14 +1131,13 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
1290
1131
  },
1291
1132
  /**
1292
1133
  *
1293
- * @summary PIN login for members using memberId.
1294
- * @param {AuthenticateApiMemberPinAuthenticationRequest} requestParameters Request parameters.
1134
+ * @summary Member PIN authentication that requires POS user authentication
1135
+ * @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
1295
1136
  * @param {*} [options] Override http request option.
1296
- * @deprecated
1297
1137
  * @throws {RequiredError}
1298
1138
  */
1299
- memberPinAuthentication(requestParameters, options) {
1300
- return localVarFp.memberPinAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
1139
+ memberPINAuthentication(requestParameters, options) {
1140
+ return localVarFp.memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
1301
1141
  },
1302
1142
  /**
1303
1143
  *
@@ -1311,10 +1151,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
1311
1151
  },
1312
1152
  /**
1313
1153
  *
1314
- * @summary NFC login and hand out token
1154
+ * @summary NFC authentication that requires POS user authentication
1315
1155
  * @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
1316
1156
  * @param {*} [options] Override http request option.
1317
- * @deprecated
1318
1157
  * @throws {RequiredError}
1319
1158
  */
1320
1159
  nfcAuthentication(requestParameters, options) {
@@ -1322,10 +1161,9 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
1322
1161
  },
1323
1162
  /**
1324
1163
  *
1325
- * @summary PIN login and hand out token
1164
+ * @summary PIN authentication that requires POS user authentication
1326
1165
  * @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
1327
1166
  * @param {*} [options] Override http request option.
1328
- * @deprecated
1329
1167
  * @throws {RequiredError}
1330
1168
  */
1331
1169
  pinAuthentication(requestParameters, options) {
@@ -1360,46 +1198,6 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
1360
1198
  resetLocalWithToken(requestParameters, options) {
1361
1199
  return localVarFp.resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(axios, basePath));
1362
1200
  },
1363
- /**
1364
- *
1365
- * @summary Secure EAN authentication that requires POS user authentication
1366
- * @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
1367
- * @param {*} [options] Override http request option.
1368
- * @throws {RequiredError}
1369
- */
1370
- secureEanAuthentication(requestParameters, options) {
1371
- return localVarFp.secureEanAuthentication(requestParameters.authenticationSecureEanRequest, options).then((request) => request(axios, basePath));
1372
- },
1373
- /**
1374
- *
1375
- * @summary Secure member PIN authentication that requires POS user authentication
1376
- * @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
1377
- * @param {*} [options] Override http request option.
1378
- * @throws {RequiredError}
1379
- */
1380
- secureMemberPINAuthentication(requestParameters, options) {
1381
- return localVarFp.secureMemberPINAuthentication(requestParameters.memberAuthenticationSecurePinRequest, options).then((request) => request(axios, basePath));
1382
- },
1383
- /**
1384
- *
1385
- * @summary Secure NFC authentication that requires POS user authentication
1386
- * @param {AuthenticateApiSecureNfcAuthenticationRequest} requestParameters Request parameters.
1387
- * @param {*} [options] Override http request option.
1388
- * @throws {RequiredError}
1389
- */
1390
- secureNfcAuthentication(requestParameters, options) {
1391
- return localVarFp.secureNfcAuthentication(requestParameters.authenticationSecureNfcRequest, options).then((request) => request(axios, basePath));
1392
- },
1393
- /**
1394
- *
1395
- * @summary Secure PIN authentication that requires POS user authentication
1396
- * @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
1397
- * @param {*} [options] Override http request option.
1398
- * @throws {RequiredError}
1399
- */
1400
- securePINAuthentication(requestParameters, options) {
1401
- return localVarFp.securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(axios, basePath));
1402
- },
1403
1201
  };
1404
1202
  };
1405
1203
  exports.AuthenticateApiFactory = AuthenticateApiFactory;
@@ -1445,10 +1243,9 @@ class AuthenticateApi extends base_1.BaseAPI {
1445
1243
  }
1446
1244
  /**
1447
1245
  *
1448
- * @summary EAN login and hand out token
1246
+ * @summary EAN authentication that requires POS user authentication
1449
1247
  * @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
1450
1248
  * @param {*} [options] Override http request option.
1451
- * @deprecated
1452
1249
  * @throws {RequiredError}
1453
1250
  * @memberof AuthenticateApi
1454
1251
  */
@@ -1553,15 +1350,14 @@ class AuthenticateApi extends base_1.BaseAPI {
1553
1350
  }
1554
1351
  /**
1555
1352
  *
1556
- * @summary PIN login for members using memberId.
1557
- * @param {AuthenticateApiMemberPinAuthenticationRequest} requestParameters Request parameters.
1353
+ * @summary Member PIN authentication that requires POS user authentication
1354
+ * @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
1558
1355
  * @param {*} [options] Override http request option.
1559
- * @deprecated
1560
1356
  * @throws {RequiredError}
1561
1357
  * @memberof AuthenticateApi
1562
1358
  */
1563
- memberPinAuthentication(requestParameters, options) {
1564
- return (0, exports.AuthenticateApiFp)(this.configuration).memberPinAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
1359
+ memberPINAuthentication(requestParameters, options) {
1360
+ return (0, exports.AuthenticateApiFp)(this.configuration).memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
1565
1361
  }
1566
1362
  /**
1567
1363
  *
@@ -1576,10 +1372,9 @@ class AuthenticateApi extends base_1.BaseAPI {
1576
1372
  }
1577
1373
  /**
1578
1374
  *
1579
- * @summary NFC login and hand out token
1375
+ * @summary NFC authentication that requires POS user authentication
1580
1376
  * @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
1581
1377
  * @param {*} [options] Override http request option.
1582
- * @deprecated
1583
1378
  * @throws {RequiredError}
1584
1379
  * @memberof AuthenticateApi
1585
1380
  */
@@ -1588,10 +1383,9 @@ class AuthenticateApi extends base_1.BaseAPI {
1588
1383
  }
1589
1384
  /**
1590
1385
  *
1591
- * @summary PIN login and hand out token
1386
+ * @summary PIN authentication that requires POS user authentication
1592
1387
  * @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
1593
1388
  * @param {*} [options] Override http request option.
1594
- * @deprecated
1595
1389
  * @throws {RequiredError}
1596
1390
  * @memberof AuthenticateApi
1597
1391
  */
@@ -1630,50 +1424,6 @@ class AuthenticateApi extends base_1.BaseAPI {
1630
1424
  resetLocalWithToken(requestParameters, options) {
1631
1425
  return (0, exports.AuthenticateApiFp)(this.configuration).resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(this.axios, this.basePath));
1632
1426
  }
1633
- /**
1634
- *
1635
- * @summary Secure EAN authentication that requires POS user authentication
1636
- * @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
1637
- * @param {*} [options] Override http request option.
1638
- * @throws {RequiredError}
1639
- * @memberof AuthenticateApi
1640
- */
1641
- secureEanAuthentication(requestParameters, options) {
1642
- return (0, exports.AuthenticateApiFp)(this.configuration).secureEanAuthentication(requestParameters.authenticationSecureEanRequest, options).then((request) => request(this.axios, this.basePath));
1643
- }
1644
- /**
1645
- *
1646
- * @summary Secure member PIN authentication that requires POS user authentication
1647
- * @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
1648
- * @param {*} [options] Override http request option.
1649
- * @throws {RequiredError}
1650
- * @memberof AuthenticateApi
1651
- */
1652
- secureMemberPINAuthentication(requestParameters, options) {
1653
- return (0, exports.AuthenticateApiFp)(this.configuration).secureMemberPINAuthentication(requestParameters.memberAuthenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
1654
- }
1655
- /**
1656
- *
1657
- * @summary Secure NFC authentication that requires POS user authentication
1658
- * @param {AuthenticateApiSecureNfcAuthenticationRequest} requestParameters Request parameters.
1659
- * @param {*} [options] Override http request option.
1660
- * @throws {RequiredError}
1661
- * @memberof AuthenticateApi
1662
- */
1663
- secureNfcAuthentication(requestParameters, options) {
1664
- return (0, exports.AuthenticateApiFp)(this.configuration).secureNfcAuthentication(requestParameters.authenticationSecureNfcRequest, options).then((request) => request(this.axios, this.basePath));
1665
- }
1666
- /**
1667
- *
1668
- * @summary Secure PIN authentication that requires POS user authentication
1669
- * @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
1670
- * @param {*} [options] Override http request option.
1671
- * @throws {RequiredError}
1672
- * @memberof AuthenticateApi
1673
- */
1674
- securePINAuthentication(requestParameters, options) {
1675
- return (0, exports.AuthenticateApiFp)(this.configuration).securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
1676
- }
1677
1427
  }
1678
1428
  exports.AuthenticateApi = AuthenticateApi;
1679
1429
  /**
@@ -6553,22 +6303,23 @@ class InvoicesApi extends base_1.BaseAPI {
6553
6303
  }
6554
6304
  exports.InvoicesApi = InvoicesApi;
6555
6305
  /**
6556
- * PayoutRequestsApi - axios parameter creator
6306
+ * PaymentRequestsApi - axios parameter creator
6557
6307
  * @export
6558
6308
  */
6559
- const PayoutRequestsApiAxiosParamCreator = function (configuration) {
6309
+ const PaymentRequestsApiAxiosParamCreator = function (configuration) {
6560
6310
  return {
6561
6311
  /**
6562
6312
  *
6563
- * @summary Create a new payout request
6564
- * @param {PayoutRequestRequest} payoutRequestRequest New payout request
6313
+ * @summary Cancel a PENDING PaymentRequest.
6314
+ * @param {string} id UUID v4 of the payment request.
6565
6315
  * @param {*} [options] Override http request option.
6566
6316
  * @throws {RequiredError}
6567
6317
  */
6568
- createPayoutRequest: async (payoutRequestRequest, options = {}) => {
6569
- // verify required parameter 'payoutRequestRequest' is not null or undefined
6570
- (0, common_1.assertParamExists)('createPayoutRequest', 'payoutRequestRequest', payoutRequestRequest);
6571
- const localVarPath = `/payoutrequests`;
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)));
6572
6323
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6573
6324
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6574
6325
  let baseOptions;
@@ -6581,11 +6332,9 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
6581
6332
  // authentication JWT required
6582
6333
  // http bearer authentication required
6583
6334
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6584
- localVarHeaderParameter['Content-Type'] = 'application/json';
6585
6335
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6586
6336
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6587
6337
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6588
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payoutRequestRequest, localVarRequestOptions, configuration);
6589
6338
  return {
6590
6339
  url: (0, common_1.toPathString)(localVarUrlObj),
6591
6340
  options: localVarRequestOptions,
@@ -6593,32 +6342,677 @@ const PayoutRequestsApiAxiosParamCreator = function (configuration) {
6593
6342
  },
6594
6343
  /**
6595
6344
  *
6596
- * @summary Returns all payout requests given the filter parameters
6597
- * @param {GetAllPayoutRequestsRequestedByIdParameter} [requestedById] ID of user(s) who requested a payout
6598
- * @param {GetAllPayoutRequestsRequestedByIdParameter} [approvedById] ID of user(s) who approved a payout
6599
- * @param {string} [fromDate] Start date for selected transactions (inclusive)
6600
- * @param {string} [tillDate] End date for selected transactions (exclusive)
6601
- * @param {string} [status] Status of the payout requests (OR relation)
6602
- * @param {number} [take] How many payout requests the endpoint should return
6603
- * @param {number} [skip] How many payout requests should be skipped (for pagination)
6345
+ * @summary Create a new PaymentRequest.
6346
+ * @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
6604
6347
  * @param {*} [options] Override http request option.
6605
6348
  * @throws {RequiredError}
6606
6349
  */
6607
- getAllPayoutRequests: async (requestedById, approvedById, fromDate, tillDate, status, take, skip, options = {}) => {
6608
- const localVarPath = `/payoutrequests`;
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`;
6609
6354
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6610
6355
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6611
6356
  let baseOptions;
6612
6357
  if (configuration) {
6613
6358
  baseOptions = configuration.baseOptions;
6614
6359
  }
6615
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6360
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6616
6361
  const localVarHeaderParameter = {};
6617
6362
  const localVarQueryParameter = {};
6618
6363
  // authentication JWT required
6619
6364
  // http bearer authentication required
6620
6365
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6621
- if (requestedById !== undefined) {
6366
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6367
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6368
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6369
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6370
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentRequestRequest, localVarRequestOptions, configuration);
6371
+ return {
6372
+ url: (0, common_1.toPathString)(localVarUrlObj),
6373
+ options: localVarRequestOptions,
6374
+ };
6375
+ },
6376
+ /**
6377
+ *
6378
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6379
+ * @param {number} [forId] Filter by beneficiary user id.
6380
+ * @param {number} [createdById] Filter by creator user id.
6381
+ * @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
6382
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
6383
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
6384
+ * @param {number} [take] How many rows the endpoint should return
6385
+ * @param {number} [skip] How many rows to skip (for pagination)
6386
+ * @param {*} [options] Override http request option.
6387
+ * @throws {RequiredError}
6388
+ */
6389
+ getAllPaymentRequests: async (forId, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
6390
+ const localVarPath = `/payment-requests`;
6391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6392
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6393
+ let baseOptions;
6394
+ if (configuration) {
6395
+ baseOptions = configuration.baseOptions;
6396
+ }
6397
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6398
+ const localVarHeaderParameter = {};
6399
+ const localVarQueryParameter = {};
6400
+ // authentication JWT required
6401
+ // http bearer authentication required
6402
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6403
+ if (forId !== undefined) {
6404
+ localVarQueryParameter['forId'] = forId;
6405
+ }
6406
+ if (createdById !== undefined) {
6407
+ localVarQueryParameter['createdById'] = createdById;
6408
+ }
6409
+ if (status !== undefined) {
6410
+ localVarQueryParameter['status'] = status;
6411
+ }
6412
+ if (fromDate !== undefined) {
6413
+ localVarQueryParameter['fromDate'] = fromDate;
6414
+ }
6415
+ if (tillDate !== undefined) {
6416
+ localVarQueryParameter['tillDate'] = tillDate;
6417
+ }
6418
+ if (take !== undefined) {
6419
+ localVarQueryParameter['take'] = take;
6420
+ }
6421
+ if (skip !== undefined) {
6422
+ localVarQueryParameter['skip'] = skip;
6423
+ }
6424
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6425
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6426
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6427
+ return {
6428
+ url: (0, common_1.toPathString)(localVarUrlObj),
6429
+ options: localVarRequestOptions,
6430
+ };
6431
+ },
6432
+ /**
6433
+ *
6434
+ * @summary Fetch a single PaymentRequest by id.
6435
+ * @param {string} id UUID v4 of the payment request.
6436
+ * @param {*} [options] Override http request option.
6437
+ * @throws {RequiredError}
6438
+ */
6439
+ getSinglePaymentRequest: async (id, options = {}) => {
6440
+ // verify required parameter 'id' is not null or undefined
6441
+ (0, common_1.assertParamExists)('getSinglePaymentRequest', 'id', id);
6442
+ const localVarPath = `/payment-requests/{id}`
6443
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6445
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6446
+ let baseOptions;
6447
+ if (configuration) {
6448
+ baseOptions = configuration.baseOptions;
6449
+ }
6450
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6451
+ const localVarHeaderParameter = {};
6452
+ const localVarQueryParameter = {};
6453
+ // authentication JWT required
6454
+ // http bearer authentication required
6455
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6456
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6457
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6458
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6459
+ return {
6460
+ url: (0, common_1.toPathString)(localVarUrlObj),
6461
+ options: localVarRequestOptions,
6462
+ };
6463
+ },
6464
+ /**
6465
+ *
6466
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6467
+ * @param {string} id UUID v4 of the payment request.
6468
+ * @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
6469
+ * @param {*} [options] Override http request option.
6470
+ * @throws {RequiredError}
6471
+ */
6472
+ markPaymentRequestFulfilledExternally: async (id, markFulfilledExternallyRequest, options = {}) => {
6473
+ // verify required parameter 'id' is not null or undefined
6474
+ (0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'id', id);
6475
+ // verify required parameter 'markFulfilledExternallyRequest' is not null or undefined
6476
+ (0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'markFulfilledExternallyRequest', markFulfilledExternallyRequest);
6477
+ const localVarPath = `/payment-requests/{id}/mark-fulfilled`
6478
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6479
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6480
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6481
+ let baseOptions;
6482
+ if (configuration) {
6483
+ baseOptions = configuration.baseOptions;
6484
+ }
6485
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6486
+ const localVarHeaderParameter = {};
6487
+ const localVarQueryParameter = {};
6488
+ // authentication JWT required
6489
+ // http bearer authentication required
6490
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6491
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6492
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6493
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6494
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6495
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markFulfilledExternallyRequest, localVarRequestOptions, configuration);
6496
+ return {
6497
+ url: (0, common_1.toPathString)(localVarUrlObj),
6498
+ options: localVarRequestOptions,
6499
+ };
6500
+ },
6501
+ /**
6502
+ *
6503
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6504
+ * @param {string} id UUID v4 of the payment request.
6505
+ * @param {*} [options] Override http request option.
6506
+ * @throws {RequiredError}
6507
+ */
6508
+ startPaymentRequestAuthenticated: async (id, options = {}) => {
6509
+ // verify required parameter 'id' is not null or undefined
6510
+ (0, common_1.assertParamExists)('startPaymentRequestAuthenticated', 'id', id);
6511
+ const localVarPath = `/payment-requests/{id}/start`
6512
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6514
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6515
+ let baseOptions;
6516
+ if (configuration) {
6517
+ baseOptions = configuration.baseOptions;
6518
+ }
6519
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6520
+ const localVarHeaderParameter = {};
6521
+ const localVarQueryParameter = {};
6522
+ // authentication JWT required
6523
+ // http bearer authentication required
6524
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6525
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6527
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6528
+ return {
6529
+ url: (0, common_1.toPathString)(localVarUrlObj),
6530
+ options: localVarRequestOptions,
6531
+ };
6532
+ },
6533
+ };
6534
+ };
6535
+ exports.PaymentRequestsApiAxiosParamCreator = PaymentRequestsApiAxiosParamCreator;
6536
+ /**
6537
+ * PaymentRequestsApi - functional programming interface
6538
+ * @export
6539
+ */
6540
+ const PaymentRequestsApiFp = function (configuration) {
6541
+ const localVarAxiosParamCreator = (0, exports.PaymentRequestsApiAxiosParamCreator)(configuration);
6542
+ return {
6543
+ /**
6544
+ *
6545
+ * @summary Cancel a PENDING PaymentRequest.
6546
+ * @param {string} id UUID v4 of the payment request.
6547
+ * @param {*} [options] Override http request option.
6548
+ * @throws {RequiredError}
6549
+ */
6550
+ async cancelPaymentRequest(id, options) {
6551
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPaymentRequest(id, options);
6552
+ const index = configuration?.serverIndex ?? 0;
6553
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.cancelPaymentRequest']?.[index]?.url;
6554
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6555
+ },
6556
+ /**
6557
+ *
6558
+ * @summary Create a new PaymentRequest.
6559
+ * @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
6560
+ * @param {*} [options] Override http request option.
6561
+ * @throws {RequiredError}
6562
+ */
6563
+ async createPaymentRequest(createPaymentRequestRequest, options) {
6564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequest, options);
6565
+ const index = configuration?.serverIndex ?? 0;
6566
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.createPaymentRequest']?.[index]?.url;
6567
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6568
+ },
6569
+ /**
6570
+ *
6571
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6572
+ * @param {number} [forId] Filter by beneficiary user id.
6573
+ * @param {number} [createdById] Filter by creator user id.
6574
+ * @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
6575
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
6576
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
6577
+ * @param {number} [take] How many rows the endpoint should return
6578
+ * @param {number} [skip] How many rows to skip (for pagination)
6579
+ * @param {*} [options] Override http request option.
6580
+ * @throws {RequiredError}
6581
+ */
6582
+ async getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options) {
6583
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options);
6584
+ const index = configuration?.serverIndex ?? 0;
6585
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getAllPaymentRequests']?.[index]?.url;
6586
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6587
+ },
6588
+ /**
6589
+ *
6590
+ * @summary Fetch a single PaymentRequest by id.
6591
+ * @param {string} id UUID v4 of the payment request.
6592
+ * @param {*} [options] Override http request option.
6593
+ * @throws {RequiredError}
6594
+ */
6595
+ async getSinglePaymentRequest(id, options) {
6596
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSinglePaymentRequest(id, options);
6597
+ const index = configuration?.serverIndex ?? 0;
6598
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getSinglePaymentRequest']?.[index]?.url;
6599
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6600
+ },
6601
+ /**
6602
+ *
6603
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6604
+ * @param {string} id UUID v4 of the payment request.
6605
+ * @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
6606
+ * @param {*} [options] Override http request option.
6607
+ * @throws {RequiredError}
6608
+ */
6609
+ async markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options) {
6610
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options);
6611
+ const index = configuration?.serverIndex ?? 0;
6612
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.markPaymentRequestFulfilledExternally']?.[index]?.url;
6613
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6614
+ },
6615
+ /**
6616
+ *
6617
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6618
+ * @param {string} id UUID v4 of the payment request.
6619
+ * @param {*} [options] Override http request option.
6620
+ * @throws {RequiredError}
6621
+ */
6622
+ async startPaymentRequestAuthenticated(id, options) {
6623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestAuthenticated(id, options);
6624
+ const index = configuration?.serverIndex ?? 0;
6625
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.startPaymentRequestAuthenticated']?.[index]?.url;
6626
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6627
+ },
6628
+ };
6629
+ };
6630
+ exports.PaymentRequestsApiFp = PaymentRequestsApiFp;
6631
+ /**
6632
+ * PaymentRequestsApi - factory interface
6633
+ * @export
6634
+ */
6635
+ const PaymentRequestsApiFactory = function (configuration, basePath, axios) {
6636
+ const localVarFp = (0, exports.PaymentRequestsApiFp)(configuration);
6637
+ return {
6638
+ /**
6639
+ *
6640
+ * @summary Cancel a PENDING PaymentRequest.
6641
+ * @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
6642
+ * @param {*} [options] Override http request option.
6643
+ * @throws {RequiredError}
6644
+ */
6645
+ cancelPaymentRequest(requestParameters, options) {
6646
+ return localVarFp.cancelPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
6647
+ },
6648
+ /**
6649
+ *
6650
+ * @summary Create a new PaymentRequest.
6651
+ * @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
6652
+ * @param {*} [options] Override http request option.
6653
+ * @throws {RequiredError}
6654
+ */
6655
+ createPaymentRequest(requestParameters, options) {
6656
+ return localVarFp.createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(axios, basePath));
6657
+ },
6658
+ /**
6659
+ *
6660
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6661
+ * @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
6662
+ * @param {*} [options] Override http request option.
6663
+ * @throws {RequiredError}
6664
+ */
6665
+ getAllPaymentRequests(requestParameters = {}, options) {
6666
+ return localVarFp.getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
6667
+ },
6668
+ /**
6669
+ *
6670
+ * @summary Fetch a single PaymentRequest by id.
6671
+ * @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
6672
+ * @param {*} [options] Override http request option.
6673
+ * @throws {RequiredError}
6674
+ */
6675
+ getSinglePaymentRequest(requestParameters, options) {
6676
+ return localVarFp.getSinglePaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
6677
+ },
6678
+ /**
6679
+ *
6680
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6681
+ * @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
6682
+ * @param {*} [options] Override http request option.
6683
+ * @throws {RequiredError}
6684
+ */
6685
+ markPaymentRequestFulfilledExternally(requestParameters, options) {
6686
+ return localVarFp.markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(axios, basePath));
6687
+ },
6688
+ /**
6689
+ *
6690
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6691
+ * @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
6692
+ * @param {*} [options] Override http request option.
6693
+ * @throws {RequiredError}
6694
+ */
6695
+ startPaymentRequestAuthenticated(requestParameters, options) {
6696
+ return localVarFp.startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(axios, basePath));
6697
+ },
6698
+ };
6699
+ };
6700
+ exports.PaymentRequestsApiFactory = PaymentRequestsApiFactory;
6701
+ /**
6702
+ * PaymentRequestsApi - object-oriented interface
6703
+ * @export
6704
+ * @class PaymentRequestsApi
6705
+ * @extends {BaseAPI}
6706
+ */
6707
+ class PaymentRequestsApi extends base_1.BaseAPI {
6708
+ /**
6709
+ *
6710
+ * @summary Cancel a PENDING PaymentRequest.
6711
+ * @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
6712
+ * @param {*} [options] Override http request option.
6713
+ * @throws {RequiredError}
6714
+ * @memberof PaymentRequestsApi
6715
+ */
6716
+ cancelPaymentRequest(requestParameters, options) {
6717
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).cancelPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6718
+ }
6719
+ /**
6720
+ *
6721
+ * @summary Create a new PaymentRequest.
6722
+ * @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
6723
+ * @param {*} [options] Override http request option.
6724
+ * @throws {RequiredError}
6725
+ * @memberof PaymentRequestsApi
6726
+ */
6727
+ createPaymentRequest(requestParameters, options) {
6728
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(this.axios, this.basePath));
6729
+ }
6730
+ /**
6731
+ *
6732
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6733
+ * @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
6734
+ * @param {*} [options] Override http request option.
6735
+ * @throws {RequiredError}
6736
+ * @memberof PaymentRequestsApi
6737
+ */
6738
+ getAllPaymentRequests(requestParameters = {}, options) {
6739
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
6740
+ }
6741
+ /**
6742
+ *
6743
+ * @summary Fetch a single PaymentRequest by id.
6744
+ * @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
6745
+ * @param {*} [options] Override http request option.
6746
+ * @throws {RequiredError}
6747
+ * @memberof PaymentRequestsApi
6748
+ */
6749
+ getSinglePaymentRequest(requestParameters, options) {
6750
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).getSinglePaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6751
+ }
6752
+ /**
6753
+ *
6754
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6755
+ * @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
6756
+ * @param {*} [options] Override http request option.
6757
+ * @throws {RequiredError}
6758
+ * @memberof PaymentRequestsApi
6759
+ */
6760
+ markPaymentRequestFulfilledExternally(requestParameters, options) {
6761
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(this.axios, this.basePath));
6762
+ }
6763
+ /**
6764
+ *
6765
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6766
+ * @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
6767
+ * @param {*} [options] Override http request option.
6768
+ * @throws {RequiredError}
6769
+ * @memberof PaymentRequestsApi
6770
+ */
6771
+ startPaymentRequestAuthenticated(requestParameters, options) {
6772
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6773
+ }
6774
+ }
6775
+ exports.PaymentRequestsApi = PaymentRequestsApi;
6776
+ /**
6777
+ * @export
6778
+ */
6779
+ exports.GetAllPaymentRequestsStatusEnum = {
6780
+ Pending: 'PENDING',
6781
+ Paid: 'PAID',
6782
+ Expired: 'EXPIRED',
6783
+ Cancelled: 'CANCELLED'
6784
+ };
6785
+ /**
6786
+ * PaymentRequestsPublicApi - axios parameter creator
6787
+ * @export
6788
+ */
6789
+ const PaymentRequestsPublicApiAxiosParamCreator = function (configuration) {
6790
+ return {
6791
+ /**
6792
+ *
6793
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
6794
+ * @param {string} id UUID v4 of the payment request.
6795
+ * @param {*} [options] Override http request option.
6796
+ * @throws {RequiredError}
6797
+ */
6798
+ getPublicPaymentRequest: async (id, options = {}) => {
6799
+ // verify required parameter 'id' is not null or undefined
6800
+ (0, common_1.assertParamExists)('getPublicPaymentRequest', 'id', id);
6801
+ const localVarPath = `/payment-requests-public/{id}`
6802
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6803
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6804
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6805
+ let baseOptions;
6806
+ if (configuration) {
6807
+ baseOptions = configuration.baseOptions;
6808
+ }
6809
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6810
+ const localVarHeaderParameter = {};
6811
+ const localVarQueryParameter = {};
6812
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6814
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6815
+ return {
6816
+ url: (0, common_1.toPathString)(localVarUrlObj),
6817
+ options: localVarRequestOptions,
6818
+ };
6819
+ },
6820
+ /**
6821
+ *
6822
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
6823
+ * @param {string} id UUID v4 of the payment request.
6824
+ * @param {*} [options] Override http request option.
6825
+ * @throws {RequiredError}
6826
+ */
6827
+ startPaymentRequestPublic: async (id, options = {}) => {
6828
+ // verify required parameter 'id' is not null or undefined
6829
+ (0, common_1.assertParamExists)('startPaymentRequestPublic', 'id', id);
6830
+ const localVarPath = `/payment-requests-public/{id}/start`
6831
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6832
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6833
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6834
+ let baseOptions;
6835
+ if (configuration) {
6836
+ baseOptions = configuration.baseOptions;
6837
+ }
6838
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6839
+ const localVarHeaderParameter = {};
6840
+ const localVarQueryParameter = {};
6841
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6843
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6844
+ return {
6845
+ url: (0, common_1.toPathString)(localVarUrlObj),
6846
+ options: localVarRequestOptions,
6847
+ };
6848
+ },
6849
+ };
6850
+ };
6851
+ exports.PaymentRequestsPublicApiAxiosParamCreator = PaymentRequestsPublicApiAxiosParamCreator;
6852
+ /**
6853
+ * PaymentRequestsPublicApi - functional programming interface
6854
+ * @export
6855
+ */
6856
+ const PaymentRequestsPublicApiFp = function (configuration) {
6857
+ const localVarAxiosParamCreator = (0, exports.PaymentRequestsPublicApiAxiosParamCreator)(configuration);
6858
+ return {
6859
+ /**
6860
+ *
6861
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
6862
+ * @param {string} id UUID v4 of the payment request.
6863
+ * @param {*} [options] Override http request option.
6864
+ * @throws {RequiredError}
6865
+ */
6866
+ async getPublicPaymentRequest(id, options) {
6867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPaymentRequest(id, options);
6868
+ const index = configuration?.serverIndex ?? 0;
6869
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.getPublicPaymentRequest']?.[index]?.url;
6870
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6871
+ },
6872
+ /**
6873
+ *
6874
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
6875
+ * @param {string} id UUID v4 of the payment request.
6876
+ * @param {*} [options] Override http request option.
6877
+ * @throws {RequiredError}
6878
+ */
6879
+ async startPaymentRequestPublic(id, options) {
6880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestPublic(id, options);
6881
+ const index = configuration?.serverIndex ?? 0;
6882
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.startPaymentRequestPublic']?.[index]?.url;
6883
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
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`;
6966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6967
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6968
+ let baseOptions;
6969
+ if (configuration) {
6970
+ baseOptions = configuration.baseOptions;
6971
+ }
6972
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6973
+ const localVarHeaderParameter = {};
6974
+ const localVarQueryParameter = {};
6975
+ // authentication JWT required
6976
+ // http bearer authentication required
6977
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6978
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6979
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6980
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6981
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6982
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payoutRequestRequest, localVarRequestOptions, configuration);
6983
+ return {
6984
+ url: (0, common_1.toPathString)(localVarUrlObj),
6985
+ options: localVarRequestOptions,
6986
+ };
6987
+ },
6988
+ /**
6989
+ *
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)
6998
+ * @param {*} [options] Override http request option.
6999
+ * @throws {RequiredError}
7000
+ */
7001
+ getAllPayoutRequests: async (requestedById, approvedById, fromDate, tillDate, status, take, skip, options = {}) => {
7002
+ const localVarPath = `/payoutrequests`;
7003
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7004
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7005
+ let baseOptions;
7006
+ if (configuration) {
7007
+ baseOptions = configuration.baseOptions;
7008
+ }
7009
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7010
+ const localVarHeaderParameter = {};
7011
+ const localVarQueryParameter = {};
7012
+ // authentication JWT required
7013
+ // http bearer authentication required
7014
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7015
+ if (requestedById !== undefined) {
6622
7016
  for (const [key, value] of Object.entries(requestedById)) {
6623
7017
  localVarQueryParameter[key] = value;
6624
7018
  }
@@ -9987,6 +10381,31 @@ const StripeApiAxiosParamCreator = function (configuration) {
9987
10381
  options: localVarRequestOptions,
9988
10382
  };
9989
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
+ },
9990
10409
  };
9991
10410
  };
9992
10411
  exports.StripeApiAxiosParamCreator = StripeApiAxiosParamCreator;
@@ -10022,6 +10441,18 @@ const StripeApiFp = function (configuration) {
10022
10441
  const operationBasePath = base_1.operationServerMap['StripeApi.getStripePublicKey']?.[index]?.url;
10023
10442
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
10024
10443
  },
10444
+ /**
10445
+ *
10446
+ * @summary Webhook for Stripe event updates
10447
+ * @param {*} [options] Override http request option.
10448
+ * @throws {RequiredError}
10449
+ */
10450
+ async webhook(options) {
10451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(options);
10452
+ const index = configuration?.serverIndex ?? 0;
10453
+ const operationBasePath = base_1.operationServerMap['StripeApi.webhook']?.[index]?.url;
10454
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
10455
+ },
10025
10456
  };
10026
10457
  };
10027
10458
  exports.StripeApiFp = StripeApiFp;
@@ -10051,6 +10482,15 @@ const StripeApiFactory = function (configuration, basePath, axios) {
10051
10482
  getStripePublicKey(options) {
10052
10483
  return localVarFp.getStripePublicKey(options).then((request) => request(axios, basePath));
10053
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
+ },
10054
10494
  };
10055
10495
  };
10056
10496
  exports.StripeApiFactory = StripeApiFactory;
@@ -10082,6 +10522,16 @@ class StripeApi extends base_1.BaseAPI {
10082
10522
  getStripePublicKey(options) {
10083
10523
  return (0, exports.StripeApiFp)(this.configuration).getStripePublicKey(options).then((request) => request(this.axios, this.basePath));
10084
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
+ }
10085
10535
  }
10086
10536
  exports.StripeApi = StripeApi;
10087
10537
  /**
@@ -10126,75 +10576,443 @@ const SyncApiAxiosParamCreator = function (configuration) {
10126
10576
  };
10127
10577
  exports.SyncApiAxiosParamCreator = SyncApiAxiosParamCreator;
10128
10578
  /**
10129
- * SyncApi - functional programming interface
10579
+ * SyncApi - functional programming interface
10580
+ * @export
10581
+ */
10582
+ const SyncApiFp = function (configuration) {
10583
+ const localVarAxiosParamCreator = (0, exports.SyncApiAxiosParamCreator)(configuration);
10584
+ return {
10585
+ /**
10586
+ * Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
10587
+ * @summary Get dry-run sync results for users
10588
+ * @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
10589
+ * @param {*} [options] Override http request option.
10590
+ * @throws {RequiredError}
10591
+ */
10592
+ async getUserSyncResults(service, options) {
10593
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSyncResults(service, options);
10594
+ const index = configuration?.serverIndex ?? 0;
10595
+ const operationBasePath = base_1.operationServerMap['SyncApi.getUserSyncResults']?.[index]?.url;
10596
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
10597
+ },
10598
+ };
10599
+ };
10600
+ exports.SyncApiFp = SyncApiFp;
10601
+ /**
10602
+ * SyncApi - factory interface
10603
+ * @export
10604
+ */
10605
+ const SyncApiFactory = function (configuration, basePath, axios) {
10606
+ const localVarFp = (0, exports.SyncApiFp)(configuration);
10607
+ return {
10608
+ /**
10609
+ * Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
10610
+ * @summary Get dry-run sync results for users
10611
+ * @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
10612
+ * @param {*} [options] Override http request option.
10613
+ * @throws {RequiredError}
10614
+ */
10615
+ getUserSyncResults(requestParameters = {}, options) {
10616
+ return localVarFp.getUserSyncResults(requestParameters.service, options).then((request) => request(axios, basePath));
10617
+ },
10618
+ };
10619
+ };
10620
+ exports.SyncApiFactory = SyncApiFactory;
10621
+ /**
10622
+ * SyncApi - object-oriented interface
10623
+ * @export
10624
+ * @class SyncApi
10625
+ * @extends {BaseAPI}
10626
+ */
10627
+ class SyncApi extends base_1.BaseAPI {
10628
+ /**
10629
+ * Performs a dry-run synchronization of users using the specified services. This endpoint always performs a dry-run and does not apply any actual database changes.
10630
+ * @summary Get dry-run sync results for users
10631
+ * @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
10632
+ * @param {*} [options] Override http request option.
10633
+ * @throws {RequiredError}
10634
+ * @memberof SyncApi
10635
+ */
10636
+ getUserSyncResults(requestParameters = {}, options) {
10637
+ return (0, exports.SyncApiFp)(this.configuration).getUserSyncResults(requestParameters.service, options).then((request) => request(this.axios, this.basePath));
10638
+ }
10639
+ }
10640
+ exports.SyncApi = SyncApi;
10641
+ /**
10642
+ * @export
10643
+ */
10644
+ exports.GetUserSyncResultsServiceEnum = {
10645
+ Ldap: 'LDAP',
10646
+ Gewisdb: 'GEWISDB'
10647
+ };
10648
+ /**
10649
+ * TerminalPaymentsApi - axios parameter creator
10650
+ * @export
10651
+ */
10652
+ const TerminalPaymentsApiAxiosParamCreator = function (configuration) {
10653
+ return {
10654
+ /**
10655
+ *
10656
+ * @summary Cancel a Terminal Payment that is created/processing
10657
+ * @param {number} id The ID of the terminal payment
10658
+ * @param {*} [options] Override http request option.
10659
+ * @throws {RequiredError}
10660
+ */
10661
+ cancelTerminalPayment: async (id, options = {}) => {
10662
+ // verify required parameter 'id' is not null or undefined
10663
+ (0, common_1.assertParamExists)('cancelTerminalPayment', 'id', id);
10664
+ const localVarPath = `/terminal-payments/{id}`
10665
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
10666
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10667
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10668
+ let baseOptions;
10669
+ if (configuration) {
10670
+ baseOptions = configuration.baseOptions;
10671
+ }
10672
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
10673
+ const localVarHeaderParameter = {};
10674
+ const localVarQueryParameter = {};
10675
+ // authentication JWT required
10676
+ // http bearer authentication required
10677
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10678
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10679
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10680
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10681
+ return {
10682
+ url: (0, common_1.toPathString)(localVarUrlObj),
10683
+ options: localVarRequestOptions,
10684
+ };
10685
+ },
10686
+ /**
10687
+ *
10688
+ * @summary Create a terminal payment before executing.
10689
+ * @param {CreateTerminalPaymentRequest} createTerminalPaymentRequest The terminal payment that should be created.
10690
+ * @param {*} [options] Override http request option.
10691
+ * @throws {RequiredError}
10692
+ */
10693
+ createTerminalPayment: async (createTerminalPaymentRequest, options = {}) => {
10694
+ // verify required parameter 'createTerminalPaymentRequest' is not null or undefined
10695
+ (0, common_1.assertParamExists)('createTerminalPayment', 'createTerminalPaymentRequest', createTerminalPaymentRequest);
10696
+ const localVarPath = `/terminal-payments`;
10697
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10698
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10699
+ let baseOptions;
10700
+ if (configuration) {
10701
+ baseOptions = configuration.baseOptions;
10702
+ }
10703
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10704
+ const localVarHeaderParameter = {};
10705
+ const localVarQueryParameter = {};
10706
+ // authentication JWT required
10707
+ // http bearer authentication required
10708
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10709
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10710
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10711
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10712
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10713
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTerminalPaymentRequest, localVarRequestOptions, configuration);
10714
+ return {
10715
+ url: (0, common_1.toPathString)(localVarUrlObj),
10716
+ options: localVarRequestOptions,
10717
+ };
10718
+ },
10719
+ /**
10720
+ *
10721
+ * @summary Get single terminal payment by ID
10722
+ * @param {number} id The ID of the terminal payment
10723
+ * @param {*} [options] Override http request option.
10724
+ * @throws {RequiredError}
10725
+ */
10726
+ getSingleTerminalPayment: async (id, options = {}) => {
10727
+ // verify required parameter 'id' is not null or undefined
10728
+ (0, common_1.assertParamExists)('getSingleTerminalPayment', 'id', id);
10729
+ const localVarPath = `/terminal-payments/{id}`
10730
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
10731
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10732
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10733
+ let baseOptions;
10734
+ if (configuration) {
10735
+ baseOptions = configuration.baseOptions;
10736
+ }
10737
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10738
+ const localVarHeaderParameter = {};
10739
+ const localVarQueryParameter = {};
10740
+ // authentication JWT required
10741
+ // http bearer authentication required
10742
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10743
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10745
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10746
+ return {
10747
+ url: (0, common_1.toPathString)(localVarUrlObj),
10748
+ options: localVarRequestOptions,
10749
+ };
10750
+ },
10751
+ /**
10752
+ *
10753
+ * @summary Get all Stripe terminals
10754
+ * @param {*} [options] Override http request option.
10755
+ * @throws {RequiredError}
10756
+ */
10757
+ getStripeTerminals: async (options = {}) => {
10758
+ const localVarPath = `/terminal-payments/terminals`;
10759
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10760
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10761
+ let baseOptions;
10762
+ if (configuration) {
10763
+ baseOptions = configuration.baseOptions;
10764
+ }
10765
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10766
+ const localVarHeaderParameter = {};
10767
+ const localVarQueryParameter = {};
10768
+ // authentication JWT required
10769
+ // http bearer authentication required
10770
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
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
10130
10821
  * @export
10131
10822
  */
10132
- const SyncApiFp = function (configuration) {
10133
- const localVarAxiosParamCreator = (0, exports.SyncApiAxiosParamCreator)(configuration);
10823
+ const TerminalPaymentsApiFp = function (configuration) {
10824
+ const localVarAxiosParamCreator = (0, exports.TerminalPaymentsApiAxiosParamCreator)(configuration);
10134
10825
  return {
10135
10826
  /**
10136
- * 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.
10137
- * @summary Get dry-run sync results for users
10138
- * @param {Array<GetUserSyncResultsServiceEnum>} [service] Array of sync services to use (ldap, gewisdb). If not provided, all available services will be used.
10827
+ *
10828
+ * @summary Cancel a Terminal Payment that is created/processing
10829
+ * @param {number} id The ID of the terminal payment
10139
10830
  * @param {*} [options] Override http request option.
10140
10831
  * @throws {RequiredError}
10141
10832
  */
10142
- async getUserSyncResults(service, options) {
10143
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSyncResults(service, options);
10833
+ async cancelTerminalPayment(id, options) {
10834
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelTerminalPayment(id, options);
10144
10835
  const index = configuration?.serverIndex ?? 0;
10145
- const operationBasePath = base_1.operationServerMap['SyncApi.getUserSyncResults']?.[index]?.url;
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;
10146
10889
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
10147
10890
  },
10148
10891
  };
10149
10892
  };
10150
- exports.SyncApiFp = SyncApiFp;
10893
+ exports.TerminalPaymentsApiFp = TerminalPaymentsApiFp;
10151
10894
  /**
10152
- * SyncApi - factory interface
10895
+ * TerminalPaymentsApi - factory interface
10153
10896
  * @export
10154
10897
  */
10155
- const SyncApiFactory = function (configuration, basePath, axios) {
10156
- const localVarFp = (0, exports.SyncApiFp)(configuration);
10898
+ const TerminalPaymentsApiFactory = function (configuration, basePath, axios) {
10899
+ const localVarFp = (0, exports.TerminalPaymentsApiFp)(configuration);
10157
10900
  return {
10158
10901
  /**
10159
- * 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.
10160
- * @summary Get dry-run sync results for users
10161
- * @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
10902
+ *
10903
+ * @summary Cancel a Terminal Payment that is created/processing
10904
+ * @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
10162
10905
  * @param {*} [options] Override http request option.
10163
10906
  * @throws {RequiredError}
10164
10907
  */
10165
- getUserSyncResults(requestParameters = {}, options) {
10166
- return localVarFp.getUserSyncResults(requestParameters.service, options).then((request) => request(axios, basePath));
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
10934
+ * @param {*} [options] Override http request option.
10935
+ * @throws {RequiredError}
10936
+ */
10937
+ getStripeTerminals(options) {
10938
+ return localVarFp.getStripeTerminals(options).then((request) => request(axios, basePath));
10939
+ },
10940
+ /**
10941
+ *
10942
+ * @summary Start the payment process on the terminal for the TerminalPayment with the given ID
10943
+ * @param {TerminalPaymentsApiStartTerminalPaymentRequest} requestParameters Request parameters.
10944
+ * @param {*} [options] Override http request option.
10945
+ * @throws {RequiredError}
10946
+ */
10947
+ startTerminalPayment(requestParameters, options) {
10948
+ return localVarFp.startTerminalPayment(requestParameters.id, requestParameters.processTerminalPaymentRequest, options).then((request) => request(axios, basePath));
10167
10949
  },
10168
10950
  };
10169
10951
  };
10170
- exports.SyncApiFactory = SyncApiFactory;
10952
+ exports.TerminalPaymentsApiFactory = TerminalPaymentsApiFactory;
10171
10953
  /**
10172
- * SyncApi - object-oriented interface
10954
+ * TerminalPaymentsApi - object-oriented interface
10173
10955
  * @export
10174
- * @class SyncApi
10956
+ * @class TerminalPaymentsApi
10175
10957
  * @extends {BaseAPI}
10176
10958
  */
10177
- class SyncApi extends base_1.BaseAPI {
10959
+ class TerminalPaymentsApi extends base_1.BaseAPI {
10178
10960
  /**
10179
- * 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.
10180
- * @summary Get dry-run sync results for users
10181
- * @param {SyncApiGetUserSyncResultsRequest} requestParameters Request parameters.
10961
+ *
10962
+ * @summary Cancel a Terminal Payment that is created/processing
10963
+ * @param {TerminalPaymentsApiCancelTerminalPaymentRequest} requestParameters Request parameters.
10182
10964
  * @param {*} [options] Override http request option.
10183
10965
  * @throws {RequiredError}
10184
- * @memberof SyncApi
10966
+ * @memberof TerminalPaymentsApi
10185
10967
  */
10186
- getUserSyncResults(requestParameters = {}, options) {
10187
- return (0, exports.SyncApiFp)(this.configuration).getUserSyncResults(requestParameters.service, options).then((request) => request(this.axios, this.basePath));
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));
10188
11013
  }
10189
11014
  }
10190
- exports.SyncApi = SyncApi;
10191
- /**
10192
- * @export
10193
- */
10194
- exports.GetUserSyncResultsServiceEnum = {
10195
- Ldap: 'LDAP',
10196
- Gewisdb: 'GEWISDB'
10197
- };
11015
+ exports.TerminalPaymentsApi = TerminalPaymentsApi;
10198
11016
  /**
10199
11017
  * TermsOfServiceApi - axios parameter creator
10200
11018
  * @export
@@ -11267,12 +12085,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
11267
12085
  * @summary Returns all existing transfers
11268
12086
  * @param {string} [fromDate] Start date for selected transfers (inclusive)
11269
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
11270
12091
  * @param {number} [take] How many transfers the endpoint should return
11271
12092
  * @param {number} [skip] How many transfers should be skipped (for pagination)
11272
12093
  * @param {*} [options] Override http request option.
11273
12094
  * @throws {RequiredError}
11274
12095
  */
11275
- getAllTransfers: async (fromDate, tillDate, take, skip, options = {}) => {
12096
+ getAllTransfers: async (fromDate, tillDate, fromId, toId, category, take, skip, options = {}) => {
11276
12097
  const localVarPath = `/transfers`;
11277
12098
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11278
12099
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -11292,6 +12113,15 @@ const TransfersApiAxiosParamCreator = function (configuration) {
11292
12113
  if (tillDate !== undefined) {
11293
12114
  localVarQueryParameter['tillDate'] = tillDate;
11294
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
+ }
11295
12125
  if (take !== undefined) {
11296
12126
  localVarQueryParameter['take'] = take;
11297
12127
  }
@@ -11503,13 +12333,16 @@ const TransfersApiFp = function (configuration) {
11503
12333
  * @summary Returns all existing transfers
11504
12334
  * @param {string} [fromDate] Start date for selected transfers (inclusive)
11505
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
11506
12339
  * @param {number} [take] How many transfers the endpoint should return
11507
12340
  * @param {number} [skip] How many transfers should be skipped (for pagination)
11508
12341
  * @param {*} [options] Override http request option.
11509
12342
  * @throws {RequiredError}
11510
12343
  */
11511
- async getAllTransfers(fromDate, tillDate, take, skip, options) {
11512
- 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);
11513
12346
  const index = configuration?.serverIndex ?? 0;
11514
12347
  const operationBasePath = base_1.operationServerMap['TransfersApi.getAllTransfers']?.[index]?.url;
11515
12348
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -11611,7 +12444,7 @@ const TransfersApiFactory = function (configuration, basePath, axios) {
11611
12444
  * @throws {RequiredError}
11612
12445
  */
11613
12446
  getAllTransfers(requestParameters = {}, options) {
11614
- 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));
11615
12448
  },
11616
12449
  /**
11617
12450
  *
@@ -11694,7 +12527,7 @@ class TransfersApi extends base_1.BaseAPI {
11694
12527
  * @memberof TransfersApi
11695
12528
  */
11696
12529
  getAllTransfers(requestParameters = {}, options) {
11697
- 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));
11698
12531
  }
11699
12532
  /**
11700
12533
  *
@@ -12012,7 +12845,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
12012
12845
  return {
12013
12846
  /**
12014
12847
  *
12015
- * @summary Accept the Terms of Service if you have not accepted it yet
12848
+ * @summary Accept the current Terms of Service version
12016
12849
  * @param {AcceptTosRequest} acceptTosRequest \&quot;Tosrequest body\&quot;
12017
12850
  * @param {*} [options] Override http request option.
12018
12851
  * @throws {RequiredError}
@@ -12541,6 +13374,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
12541
13374
  options: localVarRequestOptions,
12542
13375
  };
12543
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
+ },
12544
13409
  /**
12545
13410
  *
12546
13411
  * @summary Returns the user\'s containers
@@ -12629,6 +13494,62 @@ const UsersApiAxiosParamCreator = function (configuration) {
12629
13494
  options: localVarRequestOptions,
12630
13495
  };
12631
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
+ },
12632
13553
  /**
12633
13554
  *
12634
13555
  * @summary Returns the user\'s Points of Sale
@@ -13467,7 +14388,7 @@ const UsersApiFp = function (configuration) {
13467
14388
  return {
13468
14389
  /**
13469
14390
  *
13470
- * @summary Accept the Terms of Service if you have not accepted it yet
14391
+ * @summary Accept the current Terms of Service version
13471
14392
  * @param {AcceptTosRequest} acceptTosRequest \&quot;Tosrequest body\&quot;
13472
14393
  * @param {*} [options] Override http request option.
13473
14394
  * @throws {RequiredError}
@@ -13672,6 +14593,19 @@ const UsersApiFp = function (configuration) {
13672
14593
  const operationBasePath = base_1.operationServerMap['UsersApi.getUserSettings']?.[index]?.url;
13673
14594
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
13674
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
+ },
13675
14609
  /**
13676
14610
  *
13677
14611
  * @summary Returns the user\'s containers
@@ -13704,6 +14638,25 @@ const UsersApiFp = function (configuration) {
13704
14638
  const operationBasePath = base_1.operationServerMap['UsersApi.getUsersFinancialMutations']?.[index]?.url;
13705
14639
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
13706
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
+ },
13707
14660
  /**
13708
14661
  *
13709
14662
  * @summary Returns the user\'s Points of Sale
@@ -14018,7 +14971,7 @@ const UsersApiFactory = function (configuration, basePath, axios) {
14018
14971
  return {
14019
14972
  /**
14020
14973
  *
14021
- * @summary Accept the Terms of Service if you have not accepted it yet
14974
+ * @summary Accept the current Terms of Service version
14022
14975
  * @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
14023
14976
  * @param {*} [options] Override http request option.
14024
14977
  * @throws {RequiredError}
@@ -14166,6 +15119,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
14166
15119
  getUserSettings(requestParameters, options) {
14167
15120
  return localVarFp.getUserSettings(requestParameters.id, options).then((request) => request(axios, basePath));
14168
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
+ },
14169
15132
  /**
14170
15133
  *
14171
15134
  * @summary Returns the user\'s containers
@@ -14186,6 +15149,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
14186
15149
  getUsersFinancialMutations(requestParameters, options) {
14187
15150
  return localVarFp.getUsersFinancialMutations(requestParameters.id, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
14188
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
+ },
14189
15162
  /**
14190
15163
  *
14191
15164
  * @summary Returns the user\'s Points of Sale
@@ -14399,7 +15372,7 @@ exports.UsersApiFactory = UsersApiFactory;
14399
15372
  class UsersApi extends base_1.BaseAPI {
14400
15373
  /**
14401
15374
  *
14402
- * @summary Accept the Terms of Service if you have not accepted it yet
15375
+ * @summary Accept the current Terms of Service version
14403
15376
  * @param {UsersApiAcceptTosRequest} requestParameters Request parameters.
14404
15377
  * @param {*} [options] Override http request option.
14405
15378
  * @throws {RequiredError}
@@ -14562,6 +15535,17 @@ class UsersApi extends base_1.BaseAPI {
14562
15535
  getUserSettings(requestParameters, options) {
14563
15536
  return (0, exports.UsersApiFp)(this.configuration).getUserSettings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
14564
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
+ }
14565
15549
  /**
14566
15550
  *
14567
15551
  * @summary Returns the user\'s containers
@@ -14584,6 +15568,17 @@ class UsersApi extends base_1.BaseAPI {
14584
15568
  getUsersFinancialMutations(requestParameters, options) {
14585
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));
14586
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
+ }
14587
15582
  /**
14588
15583
  *
14589
15584
  * @summary Returns the user\'s Points of Sale
@@ -14819,6 +15814,15 @@ exports.GetAllUsersTypeEnum = {
14819
15814
  Invoice: 'INVOICE',
14820
15815
  AutomaticInvoice: 'AUTOMATIC_INVOICE'
14821
15816
  };
15817
+ /**
15818
+ * @export
15819
+ */
15820
+ exports.GetUsersPaymentRequestsStatusEnum = {
15821
+ Pending: 'PENDING',
15822
+ Paid: 'PAID',
15823
+ Expired: 'EXPIRED',
15824
+ Cancelled: 'CANCELLED'
15825
+ };
14822
15826
  /**
14823
15827
  * @export
14824
15828
  */