@gewis/sudosos-client 0.0.0-develop.c36a01f → 0.0.0-develop.d4e012a

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 +1236 -367
  2. package/dist/api.js +1046 -285
  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.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.InactiveAdministrativeCostsApi = exports.InactiveAdministrativeCostsApiFactory = exports.InactiveAdministrativeCostsApiFp = exports.InactiveAdministrativeCostsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.GetFineReportPdfFileTypeEnum = exports.DebtorsApi = exports.DebtorsApiFactory = exports.DebtorsApiFp = exports.DebtorsApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.BannersApi = exports.BannersApiFactory = exports.BannersApiFp = exports.BannersApiAxiosParamCreator = exports.GetAllBalanceOrderDirectionEnum = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuthenticateApi = exports.AuthenticateApiFactory = exports.AuthenticateApiFp = exports.AuthenticateApiAxiosParamCreator = exports.UserType = exports.UserSettingsResponseLanguageEnum = exports.UpdateInvoiceRequestStateEnum = exports.QRStatusResponseStatusEnum = exports.PublicPaymentRequestResponseStatusEnum = exports.PayoutRequestStatusRequestStateEnum = exports.PayoutRequestResponseStatusEnum = exports.PatchUserSettingsRequestLanguageEnum = exports.InvoiceStatusResponseStateEnum = exports.GetAllInvoicesCurrentStateParameterInner = exports.FinancialMutationResponseTypeEnum = exports.BasePayoutRequestResponseStatusEnum = exports.BasePaymentRequestResponseStatusEnum = void 0;
17
+ exports.SyncApi = exports.SyncApiFactory = exports.SyncApiFp = exports.SyncApiAxiosParamCreator = exports.StripeApi = exports.StripeApiFactory = exports.StripeApiFp = exports.StripeApiAxiosParamCreator = exports.ServerSettingsApi = exports.ServerSettingsApiFactory = exports.ServerSettingsApiFp = exports.ServerSettingsApiAxiosParamCreator = exports.SellerPayoutsApi = exports.SellerPayoutsApiFactory = exports.SellerPayoutsApiFp = exports.SellerPayoutsApiAxiosParamCreator = exports.RootApi = exports.RootApiFactory = exports.RootApiFp = exports.RootApiAxiosParamCreator = exports.RbacApi = exports.RbacApiFactory = exports.RbacApiFp = exports.RbacApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.ProductCategoriesApi = exports.ProductCategoriesApiFactory = exports.ProductCategoriesApiFp = exports.ProductCategoriesApiAxiosParamCreator = exports.PointofsaleApi = exports.PointofsaleApiFactory = exports.PointofsaleApiFp = exports.PointofsaleApiAxiosParamCreator = exports.PayoutRequestsApi = exports.PayoutRequestsApiFactory = exports.PayoutRequestsApiFp = exports.PayoutRequestsApiAxiosParamCreator = exports.PaymentRequestsPublicApi = exports.PaymentRequestsPublicApiFactory = exports.PaymentRequestsPublicApiFp = exports.PaymentRequestsPublicApiAxiosParamCreator = exports.GetAllPaymentRequestsStatusEnum = exports.PaymentRequestsApi = exports.PaymentRequestsApiFactory = exports.PaymentRequestsApiFp = exports.PaymentRequestsApiAxiosParamCreator = exports.InvoicesApi = void 0;
18
+ exports.WriteoffsApi = exports.WriteoffsApiFactory = exports.WriteoffsApiFp = exports.WriteoffsApiAxiosParamCreator = exports.VouchergroupsApi = exports.VouchergroupsApiFactory = exports.VouchergroupsApiFp = exports.VouchergroupsApiAxiosParamCreator = exports.VatGroupsApi = exports.VatGroupsApiFactory = exports.VatGroupsApiFp = exports.VatGroupsApiAxiosParamCreator = exports.GetUsersSalesReportPdfFileTypeEnum = exports.GetUsersPurchaseReportPdfFileTypeEnum = exports.GetUsersPaymentRequestsStatusEnum = exports.GetAllUsersTypeEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserNotificationPreferencesApi = exports.UserNotificationPreferencesApiFactory = exports.UserNotificationPreferencesApiFp = exports.UserNotificationPreferencesApiAxiosParamCreator = exports.TransfersApi = exports.TransfersApiFactory = exports.TransfersApiFp = exports.TransfersApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TransactionSummariesApi = exports.TransactionSummariesApiFactory = exports.TransactionSummariesApiFp = exports.TransactionSummariesApiAxiosParamCreator = exports.TestOperationsOfTheTestControllerApi = exports.TestOperationsOfTheTestControllerApiFactory = exports.TestOperationsOfTheTestControllerApiFp = exports.TestOperationsOfTheTestControllerApiAxiosParamCreator = exports.TermsOfServiceApi = exports.TermsOfServiceApiFactory = exports.TermsOfServiceApiFp = exports.TermsOfServiceApiAxiosParamCreator = exports.GetUserSyncResultsServiceEnum = void 0;
19
19
  const axios_1 = require("axios");
20
20
  // Some imports not used depending on template conditions
21
21
  // @ts-ignore
22
22
  const common_1 = require("./common");
23
23
  // @ts-ignore
24
24
  const base_1 = require("./base");
25
+ exports.BasePaymentRequestResponseStatusEnum = {
26
+ Pending: 'PENDING',
27
+ Paid: 'PAID',
28
+ Expired: 'EXPIRED',
29
+ Cancelled: 'CANCELLED'
30
+ };
25
31
  exports.BasePayoutRequestResponseStatusEnum = {
26
32
  Created: 'CREATED',
27
33
  Approved: 'APPROVED',
@@ -66,6 +72,12 @@ 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',
@@ -200,6 +212,39 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
200
212
  options: localVarRequestOptions,
201
213
  };
202
214
  },
215
+ /**
216
+ *
217
+ * @summary EAN authentication that requires POS user authentication
218
+ * @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ eanAuthentication: async (authenticationEanRequest, options = {}) => {
223
+ // verify required parameter 'authenticationEanRequest' is not null or undefined
224
+ (0, common_1.assertParamExists)('eanAuthentication', 'authenticationEanRequest', authenticationEanRequest);
225
+ const localVarPath = `/authentication/ean`;
226
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
227
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
228
+ let baseOptions;
229
+ if (configuration) {
230
+ baseOptions = configuration.baseOptions;
231
+ }
232
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
233
+ const localVarHeaderParameter = {};
234
+ const localVarQueryParameter = {};
235
+ // authentication JWT required
236
+ // http bearer authentication required
237
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
238
+ localVarHeaderParameter['Content-Type'] = 'application/json';
239
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
242
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationEanRequest, localVarRequestOptions, configuration);
243
+ return {
244
+ url: (0, common_1.toPathString)(localVarUrlObj),
245
+ options: localVarRequestOptions,
246
+ };
247
+ },
203
248
  /**
204
249
  *
205
250
  * @summary Generate a QR code for authentication
@@ -456,15 +501,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
456
501
  },
457
502
  /**
458
503
  *
459
- * @summary Mock login and hand out token.
460
- * @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
504
+ * @summary Member PIN authentication that requires POS user authentication
505
+ * @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
461
506
  * @param {*} [options] Override http request option.
462
507
  * @throws {RequiredError}
463
508
  */
464
- mockAuthentication: async (authenticationMockRequest, options = {}) => {
465
- // verify required parameter 'authenticationMockRequest' is not null or undefined
466
- (0, common_1.assertParamExists)('mockAuthentication', 'authenticationMockRequest', authenticationMockRequest);
467
- const localVarPath = `/authentication/mock`;
509
+ memberPINAuthentication: async (memberAuthenticationPinRequest, options = {}) => {
510
+ // verify required parameter 'memberAuthenticationPinRequest' is not null or undefined
511
+ (0, common_1.assertParamExists)('memberPINAuthentication', 'memberAuthenticationPinRequest', memberAuthenticationPinRequest);
512
+ const localVarPath = `/authentication/member/pin`;
468
513
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
469
514
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
470
515
  let baseOptions;
@@ -474,39 +519,14 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
474
519
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
475
520
  const localVarHeaderParameter = {};
476
521
  const localVarQueryParameter = {};
477
- localVarHeaderParameter['Content-Type'] = 'application/json';
478
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
480
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
481
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationMockRequest, localVarRequestOptions, configuration);
482
- return {
483
- url: (0, common_1.toPathString)(localVarUrlObj),
484
- options: localVarRequestOptions,
485
- };
486
- },
487
- /**
488
- *
489
- * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
490
- * @param {*} [options] Override http request option.
491
- * @throws {RequiredError}
492
- */
493
- refreshToken: async (options = {}) => {
494
- const localVarPath = `/authentication/refreshToken`;
495
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
496
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
497
- let baseOptions;
498
- if (configuration) {
499
- baseOptions = configuration.baseOptions;
500
- }
501
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
502
- const localVarHeaderParameter = {};
503
- const localVarQueryParameter = {};
504
522
  // authentication JWT required
505
523
  // http bearer authentication required
506
524
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
525
+ localVarHeaderParameter['Content-Type'] = 'application/json';
507
526
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
508
527
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
509
528
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
529
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationPinRequest, localVarRequestOptions, configuration);
510
530
  return {
511
531
  url: (0, common_1.toPathString)(localVarUrlObj),
512
532
  options: localVarRequestOptions,
@@ -514,15 +534,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
514
534
  },
515
535
  /**
516
536
  *
517
- * @summary Creates a reset token for the local authentication
518
- * @param {ResetLocalRequest} resetLocalRequest The reset info.
537
+ * @summary Mock login and hand out token.
538
+ * @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
519
539
  * @param {*} [options] Override http request option.
520
540
  * @throws {RequiredError}
521
541
  */
522
- resetLocal: async (resetLocalRequest, options = {}) => {
523
- // verify required parameter 'resetLocalRequest' is not null or undefined
524
- (0, common_1.assertParamExists)('resetLocal', 'resetLocalRequest', resetLocalRequest);
525
- const localVarPath = `/authentication/local/reset`;
542
+ mockAuthentication: async (authenticationMockRequest, options = {}) => {
543
+ // verify required parameter 'authenticationMockRequest' is not null or undefined
544
+ (0, common_1.assertParamExists)('mockAuthentication', 'authenticationMockRequest', authenticationMockRequest);
545
+ const localVarPath = `/authentication/mock`;
526
546
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
527
547
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
528
548
  let baseOptions;
@@ -536,7 +556,7 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
536
556
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
537
557
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
538
558
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
539
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetLocalRequest, localVarRequestOptions, configuration);
559
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationMockRequest, localVarRequestOptions, configuration);
540
560
  return {
541
561
  url: (0, common_1.toPathString)(localVarUrlObj),
542
562
  options: localVarRequestOptions,
@@ -544,29 +564,32 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
544
564
  },
545
565
  /**
546
566
  *
547
- * @summary Reset local authentication using the provided token
548
- * @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
567
+ * @summary NFC authentication that requires POS user authentication
568
+ * @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
549
569
  * @param {*} [options] Override http request option.
550
570
  * @throws {RequiredError}
551
571
  */
552
- resetLocalWithToken: async (authenticationResetTokenRequest, options = {}) => {
553
- // verify required parameter 'authenticationResetTokenRequest' is not null or undefined
554
- (0, common_1.assertParamExists)('resetLocalWithToken', 'authenticationResetTokenRequest', authenticationResetTokenRequest);
555
- const localVarPath = `/authentication/local`;
572
+ nfcAuthentication: async (authenticationNfcRequest, options = {}) => {
573
+ // verify required parameter 'authenticationNfcRequest' is not null or undefined
574
+ (0, common_1.assertParamExists)('nfcAuthentication', 'authenticationNfcRequest', authenticationNfcRequest);
575
+ const localVarPath = `/authentication/nfc`;
556
576
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
557
577
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
558
578
  let baseOptions;
559
579
  if (configuration) {
560
580
  baseOptions = configuration.baseOptions;
561
581
  }
562
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
582
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
563
583
  const localVarHeaderParameter = {};
564
584
  const localVarQueryParameter = {};
585
+ // authentication JWT required
586
+ // http bearer authentication required
587
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
565
588
  localVarHeaderParameter['Content-Type'] = 'application/json';
566
589
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
567
590
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
568
591
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
569
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationResetTokenRequest, localVarRequestOptions, configuration);
592
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationNfcRequest, localVarRequestOptions, configuration);
570
593
  return {
571
594
  url: (0, common_1.toPathString)(localVarUrlObj),
572
595
  options: localVarRequestOptions,
@@ -574,15 +597,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
574
597
  },
575
598
  /**
576
599
  *
577
- * @summary Secure EAN authentication that requires POS user authentication
578
- * @param {AuthenticationSecureEanRequest} authenticationSecureEanRequest The EAN login request with posId
600
+ * @summary PIN authentication that requires POS user authentication
601
+ * @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
579
602
  * @param {*} [options] Override http request option.
580
603
  * @throws {RequiredError}
581
604
  */
582
- secureEanAuthentication: async (authenticationSecureEanRequest, options = {}) => {
583
- // verify required parameter 'authenticationSecureEanRequest' is not null or undefined
584
- (0, common_1.assertParamExists)('secureEanAuthentication', 'authenticationSecureEanRequest', authenticationSecureEanRequest);
585
- const localVarPath = `/authentication/ean-secure`;
605
+ pinAuthentication: async (authenticationPinRequest, options = {}) => {
606
+ // verify required parameter 'authenticationPinRequest' is not null or undefined
607
+ (0, common_1.assertParamExists)('pinAuthentication', 'authenticationPinRequest', authenticationPinRequest);
608
+ const localVarPath = `/authentication/pin`;
586
609
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
587
610
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
588
611
  let baseOptions;
@@ -599,7 +622,7 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
599
622
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
600
623
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
601
624
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
602
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecureEanRequest, localVarRequestOptions, configuration);
625
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationPinRequest, localVarRequestOptions, configuration);
603
626
  return {
604
627
  url: (0, common_1.toPathString)(localVarUrlObj),
605
628
  options: localVarRequestOptions,
@@ -607,32 +630,27 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
607
630
  },
608
631
  /**
609
632
  *
610
- * @summary Secure member PIN authentication that requires POS user authentication
611
- * @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
633
+ * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
612
634
  * @param {*} [options] Override http request option.
613
635
  * @throws {RequiredError}
614
636
  */
615
- secureMemberPINAuthentication: async (memberAuthenticationSecurePinRequest, options = {}) => {
616
- // verify required parameter 'memberAuthenticationSecurePinRequest' is not null or undefined
617
- (0, common_1.assertParamExists)('secureMemberPINAuthentication', 'memberAuthenticationSecurePinRequest', memberAuthenticationSecurePinRequest);
618
- const localVarPath = `/authentication/member/pin-secure`;
637
+ refreshToken: async (options = {}) => {
638
+ const localVarPath = `/authentication/refreshToken`;
619
639
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
620
640
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
621
641
  let baseOptions;
622
642
  if (configuration) {
623
643
  baseOptions = configuration.baseOptions;
624
644
  }
625
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
645
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
626
646
  const localVarHeaderParameter = {};
627
647
  const localVarQueryParameter = {};
628
648
  // authentication JWT required
629
649
  // http bearer authentication required
630
650
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
631
- localVarHeaderParameter['Content-Type'] = 'application/json';
632
651
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
633
652
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
634
653
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
635
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(memberAuthenticationSecurePinRequest, localVarRequestOptions, configuration);
636
654
  return {
637
655
  url: (0, common_1.toPathString)(localVarUrlObj),
638
656
  options: localVarRequestOptions,
@@ -640,15 +658,15 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
640
658
  },
641
659
  /**
642
660
  *
643
- * @summary Secure NFC authentication that requires POS user authentication
644
- * @param {AuthenticationSecureNfcRequest} authenticationSecureNfcRequest The NFC login request with posId
661
+ * @summary Creates a reset token for the local authentication
662
+ * @param {ResetLocalRequest} resetLocalRequest The reset info.
645
663
  * @param {*} [options] Override http request option.
646
664
  * @throws {RequiredError}
647
665
  */
648
- secureNfcAuthentication: async (authenticationSecureNfcRequest, options = {}) => {
649
- // verify required parameter 'authenticationSecureNfcRequest' is not null or undefined
650
- (0, common_1.assertParamExists)('secureNfcAuthentication', 'authenticationSecureNfcRequest', authenticationSecureNfcRequest);
651
- const localVarPath = `/authentication/nfc-secure`;
666
+ resetLocal: async (resetLocalRequest, options = {}) => {
667
+ // verify required parameter 'resetLocalRequest' is not null or undefined
668
+ (0, common_1.assertParamExists)('resetLocal', 'resetLocalRequest', resetLocalRequest);
669
+ const localVarPath = `/authentication/local/reset`;
652
670
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
653
671
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
654
672
  let baseOptions;
@@ -658,14 +676,11 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
658
676
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
659
677
  const localVarHeaderParameter = {};
660
678
  const localVarQueryParameter = {};
661
- // authentication JWT required
662
- // http bearer authentication required
663
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
664
679
  localVarHeaderParameter['Content-Type'] = 'application/json';
665
680
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
666
681
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
667
682
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
668
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecureNfcRequest, localVarRequestOptions, configuration);
683
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetLocalRequest, localVarRequestOptions, configuration);
669
684
  return {
670
685
  url: (0, common_1.toPathString)(localVarUrlObj),
671
686
  options: localVarRequestOptions,
@@ -673,32 +688,29 @@ const AuthenticateApiAxiosParamCreator = function (configuration) {
673
688
  },
674
689
  /**
675
690
  *
676
- * @summary Secure PIN authentication that requires POS user authentication
677
- * @param {AuthenticationSecurePinRequest} authenticationSecurePinRequest The PIN login request with posId
691
+ * @summary Reset local authentication using the provided token
692
+ * @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
678
693
  * @param {*} [options] Override http request option.
679
694
  * @throws {RequiredError}
680
695
  */
681
- securePINAuthentication: async (authenticationSecurePinRequest, options = {}) => {
682
- // verify required parameter 'authenticationSecurePinRequest' is not null or undefined
683
- (0, common_1.assertParamExists)('securePINAuthentication', 'authenticationSecurePinRequest', authenticationSecurePinRequest);
684
- const localVarPath = `/authentication/pin-secure`;
696
+ resetLocalWithToken: async (authenticationResetTokenRequest, options = {}) => {
697
+ // verify required parameter 'authenticationResetTokenRequest' is not null or undefined
698
+ (0, common_1.assertParamExists)('resetLocalWithToken', 'authenticationResetTokenRequest', authenticationResetTokenRequest);
699
+ const localVarPath = `/authentication/local`;
685
700
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
686
701
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
687
702
  let baseOptions;
688
703
  if (configuration) {
689
704
  baseOptions = configuration.baseOptions;
690
705
  }
691
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
706
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
692
707
  const localVarHeaderParameter = {};
693
708
  const localVarQueryParameter = {};
694
- // authentication JWT required
695
- // http bearer authentication required
696
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
697
709
  localVarHeaderParameter['Content-Type'] = 'application/json';
698
710
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
699
711
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
700
712
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
701
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationSecurePinRequest, localVarRequestOptions, configuration);
713
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticationResetTokenRequest, localVarRequestOptions, configuration);
702
714
  return {
703
715
  url: (0, common_1.toPathString)(localVarUrlObj),
704
716
  options: localVarRequestOptions,
@@ -753,6 +765,19 @@ const AuthenticateApiFp = function (configuration) {
753
765
  const operationBasePath = base_1.operationServerMap['AuthenticateApi.confirmQRCode']?.[index]?.url;
754
766
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
755
767
  },
768
+ /**
769
+ *
770
+ * @summary EAN authentication that requires POS user authentication
771
+ * @param {AuthenticationEanRequest} authenticationEanRequest The EAN login request with posId
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
775
+ async eanAuthentication(authenticationEanRequest, options) {
776
+ const localVarAxiosArgs = await localVarAxiosParamCreator.eanAuthentication(authenticationEanRequest, options);
777
+ const index = configuration?.serverIndex ?? 0;
778
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.eanAuthentication']?.[index]?.url;
779
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
780
+ },
756
781
  /**
757
782
  *
758
783
  * @summary Generate a QR code for authentication
@@ -869,105 +894,92 @@ const AuthenticateApiFp = function (configuration) {
869
894
  },
870
895
  /**
871
896
  *
872
- * @summary Mock login and hand out token.
873
- * @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
874
- * @param {*} [options] Override http request option.
875
- * @throws {RequiredError}
876
- */
877
- async mockAuthentication(authenticationMockRequest, options) {
878
- const localVarAxiosArgs = await localVarAxiosParamCreator.mockAuthentication(authenticationMockRequest, options);
879
- const index = configuration?.serverIndex ?? 0;
880
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.mockAuthentication']?.[index]?.url;
881
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
882
- },
883
- /**
884
- *
885
- * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
897
+ * @summary Member PIN authentication that requires POS user authentication
898
+ * @param {MemberAuthenticationPinRequest} memberAuthenticationPinRequest The PIN login request with posId
886
899
  * @param {*} [options] Override http request option.
887
900
  * @throws {RequiredError}
888
901
  */
889
- async refreshToken(options) {
890
- const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(options);
902
+ async memberPINAuthentication(memberAuthenticationPinRequest, options) {
903
+ const localVarAxiosArgs = await localVarAxiosParamCreator.memberPINAuthentication(memberAuthenticationPinRequest, options);
891
904
  const index = configuration?.serverIndex ?? 0;
892
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.refreshToken']?.[index]?.url;
905
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.memberPINAuthentication']?.[index]?.url;
893
906
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
894
907
  },
895
908
  /**
896
909
  *
897
- * @summary Creates a reset token for the local authentication
898
- * @param {ResetLocalRequest} resetLocalRequest The reset info.
910
+ * @summary Mock login and hand out token.
911
+ * @param {AuthenticationMockRequest} authenticationMockRequest The mock login.
899
912
  * @param {*} [options] Override http request option.
900
913
  * @throws {RequiredError}
901
914
  */
902
- async resetLocal(resetLocalRequest, options) {
903
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocal(resetLocalRequest, options);
915
+ async mockAuthentication(authenticationMockRequest, options) {
916
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mockAuthentication(authenticationMockRequest, options);
904
917
  const index = configuration?.serverIndex ?? 0;
905
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocal']?.[index]?.url;
918
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.mockAuthentication']?.[index]?.url;
906
919
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
907
920
  },
908
921
  /**
909
922
  *
910
- * @summary Reset local authentication using the provided token
911
- * @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
923
+ * @summary NFC authentication that requires POS user authentication
924
+ * @param {AuthenticationNfcRequest} authenticationNfcRequest The NFC login request with posId
912
925
  * @param {*} [options] Override http request option.
913
926
  * @throws {RequiredError}
914
927
  */
915
- async resetLocalWithToken(authenticationResetTokenRequest, options) {
916
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocalWithToken(authenticationResetTokenRequest, options);
928
+ async nfcAuthentication(authenticationNfcRequest, options) {
929
+ const localVarAxiosArgs = await localVarAxiosParamCreator.nfcAuthentication(authenticationNfcRequest, options);
917
930
  const index = configuration?.serverIndex ?? 0;
918
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocalWithToken']?.[index]?.url;
931
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.nfcAuthentication']?.[index]?.url;
919
932
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
920
933
  },
921
934
  /**
922
935
  *
923
- * @summary Secure EAN authentication that requires POS user authentication
924
- * @param {AuthenticationSecureEanRequest} authenticationSecureEanRequest The EAN login request with posId
936
+ * @summary PIN authentication that requires POS user authentication
937
+ * @param {AuthenticationPinRequest} authenticationPinRequest The PIN login request with posId
925
938
  * @param {*} [options] Override http request option.
926
939
  * @throws {RequiredError}
927
940
  */
928
- async secureEanAuthentication(authenticationSecureEanRequest, options) {
929
- const localVarAxiosArgs = await localVarAxiosParamCreator.secureEanAuthentication(authenticationSecureEanRequest, options);
941
+ async pinAuthentication(authenticationPinRequest, options) {
942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pinAuthentication(authenticationPinRequest, options);
930
943
  const index = configuration?.serverIndex ?? 0;
931
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureEanAuthentication']?.[index]?.url;
944
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.pinAuthentication']?.[index]?.url;
932
945
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
933
946
  },
934
947
  /**
935
948
  *
936
- * @summary Secure member PIN authentication that requires POS user authentication
937
- * @param {MemberAuthenticationSecurePinRequest} memberAuthenticationSecurePinRequest The PIN login request with posId
949
+ * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
938
950
  * @param {*} [options] Override http request option.
939
951
  * @throws {RequiredError}
940
952
  */
941
- async secureMemberPINAuthentication(memberAuthenticationSecurePinRequest, options) {
942
- const localVarAxiosArgs = await localVarAxiosParamCreator.secureMemberPINAuthentication(memberAuthenticationSecurePinRequest, options);
953
+ async refreshToken(options) {
954
+ const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(options);
943
955
  const index = configuration?.serverIndex ?? 0;
944
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureMemberPINAuthentication']?.[index]?.url;
956
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.refreshToken']?.[index]?.url;
945
957
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
946
958
  },
947
959
  /**
948
960
  *
949
- * @summary Secure NFC authentication that requires POS user authentication
950
- * @param {AuthenticationSecureNfcRequest} authenticationSecureNfcRequest The NFC login request with posId
961
+ * @summary Creates a reset token for the local authentication
962
+ * @param {ResetLocalRequest} resetLocalRequest The reset info.
951
963
  * @param {*} [options] Override http request option.
952
964
  * @throws {RequiredError}
953
965
  */
954
- async secureNfcAuthentication(authenticationSecureNfcRequest, options) {
955
- const localVarAxiosArgs = await localVarAxiosParamCreator.secureNfcAuthentication(authenticationSecureNfcRequest, options);
966
+ async resetLocal(resetLocalRequest, options) {
967
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocal(resetLocalRequest, options);
956
968
  const index = configuration?.serverIndex ?? 0;
957
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.secureNfcAuthentication']?.[index]?.url;
969
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocal']?.[index]?.url;
958
970
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
959
971
  },
960
972
  /**
961
973
  *
962
- * @summary Secure PIN authentication that requires POS user authentication
963
- * @param {AuthenticationSecurePinRequest} authenticationSecurePinRequest The PIN login request with posId
974
+ * @summary Reset local authentication using the provided token
975
+ * @param {AuthenticationResetTokenRequest} authenticationResetTokenRequest The reset token.
964
976
  * @param {*} [options] Override http request option.
965
977
  * @throws {RequiredError}
966
978
  */
967
- async securePINAuthentication(authenticationSecurePinRequest, options) {
968
- const localVarAxiosArgs = await localVarAxiosParamCreator.securePINAuthentication(authenticationSecurePinRequest, options);
979
+ async resetLocalWithToken(authenticationResetTokenRequest, options) {
980
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetLocalWithToken(authenticationResetTokenRequest, options);
969
981
  const index = configuration?.serverIndex ?? 0;
970
- const operationBasePath = base_1.operationServerMap['AuthenticateApi.securePINAuthentication']?.[index]?.url;
982
+ const operationBasePath = base_1.operationServerMap['AuthenticateApi.resetLocalWithToken']?.[index]?.url;
971
983
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
972
984
  },
973
985
  };
@@ -1010,6 +1022,16 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
1010
1022
  confirmQRCode(requestParameters, options) {
1011
1023
  return localVarFp.confirmQRCode(requestParameters.sessionId, options).then((request) => request(axios, basePath));
1012
1024
  },
1025
+ /**
1026
+ *
1027
+ * @summary EAN authentication that requires POS user authentication
1028
+ * @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ */
1032
+ eanAuthentication(requestParameters, options) {
1033
+ return localVarFp.eanAuthentication(requestParameters.authenticationEanRequest, options).then((request) => request(axios, basePath));
1034
+ },
1013
1035
  /**
1014
1036
  *
1015
1037
  * @summary Generate a QR code for authentication
@@ -1099,82 +1121,72 @@ const AuthenticateApiFactory = function (configuration, basePath, axios) {
1099
1121
  },
1100
1122
  /**
1101
1123
  *
1102
- * @summary Mock login and hand out token.
1103
- * @param {AuthenticateApiMockAuthenticationRequest} requestParameters Request parameters.
1104
- * @param {*} [options] Override http request option.
1105
- * @throws {RequiredError}
1106
- */
1107
- mockAuthentication(requestParameters, options) {
1108
- return localVarFp.mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(axios, basePath));
1109
- },
1110
- /**
1111
- *
1112
- * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
1124
+ * @summary Member PIN authentication that requires POS user authentication
1125
+ * @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
1113
1126
  * @param {*} [options] Override http request option.
1114
1127
  * @throws {RequiredError}
1115
1128
  */
1116
- refreshToken(options) {
1117
- return localVarFp.refreshToken(options).then((request) => request(axios, basePath));
1129
+ memberPINAuthentication(requestParameters, options) {
1130
+ return localVarFp.memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(axios, basePath));
1118
1131
  },
1119
1132
  /**
1120
1133
  *
1121
- * @summary Creates a reset token for the local authentication
1122
- * @param {AuthenticateApiResetLocalRequest} requestParameters Request parameters.
1134
+ * @summary Mock login and hand out token.
1135
+ * @param {AuthenticateApiMockAuthenticationRequest} requestParameters Request parameters.
1123
1136
  * @param {*} [options] Override http request option.
1124
1137
  * @throws {RequiredError}
1125
1138
  */
1126
- resetLocal(requestParameters, options) {
1127
- return localVarFp.resetLocal(requestParameters.resetLocalRequest, options).then((request) => request(axios, basePath));
1139
+ mockAuthentication(requestParameters, options) {
1140
+ return localVarFp.mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(axios, basePath));
1128
1141
  },
1129
1142
  /**
1130
1143
  *
1131
- * @summary Reset local authentication using the provided token
1132
- * @param {AuthenticateApiResetLocalWithTokenRequest} requestParameters Request parameters.
1144
+ * @summary NFC authentication that requires POS user authentication
1145
+ * @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
1133
1146
  * @param {*} [options] Override http request option.
1134
1147
  * @throws {RequiredError}
1135
1148
  */
1136
- resetLocalWithToken(requestParameters, options) {
1137
- return localVarFp.resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(axios, basePath));
1149
+ nfcAuthentication(requestParameters, options) {
1150
+ return localVarFp.nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(axios, basePath));
1138
1151
  },
1139
1152
  /**
1140
1153
  *
1141
- * @summary Secure EAN authentication that requires POS user authentication
1142
- * @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
1154
+ * @summary PIN authentication that requires POS user authentication
1155
+ * @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
1143
1156
  * @param {*} [options] Override http request option.
1144
1157
  * @throws {RequiredError}
1145
1158
  */
1146
- secureEanAuthentication(requestParameters, options) {
1147
- return localVarFp.secureEanAuthentication(requestParameters.authenticationSecureEanRequest, options).then((request) => request(axios, basePath));
1159
+ pinAuthentication(requestParameters, options) {
1160
+ return localVarFp.pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(axios, basePath));
1148
1161
  },
1149
1162
  /**
1150
1163
  *
1151
- * @summary Secure member PIN authentication that requires POS user authentication
1152
- * @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
1164
+ * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
1153
1165
  * @param {*} [options] Override http request option.
1154
1166
  * @throws {RequiredError}
1155
1167
  */
1156
- secureMemberPINAuthentication(requestParameters, options) {
1157
- return localVarFp.secureMemberPINAuthentication(requestParameters.memberAuthenticationSecurePinRequest, options).then((request) => request(axios, basePath));
1168
+ refreshToken(options) {
1169
+ return localVarFp.refreshToken(options).then((request) => request(axios, basePath));
1158
1170
  },
1159
1171
  /**
1160
1172
  *
1161
- * @summary Secure NFC authentication that requires POS user authentication
1162
- * @param {AuthenticateApiSecureNfcAuthenticationRequest} requestParameters Request parameters.
1173
+ * @summary Creates a reset token for the local authentication
1174
+ * @param {AuthenticateApiResetLocalRequest} requestParameters Request parameters.
1163
1175
  * @param {*} [options] Override http request option.
1164
1176
  * @throws {RequiredError}
1165
1177
  */
1166
- secureNfcAuthentication(requestParameters, options) {
1167
- return localVarFp.secureNfcAuthentication(requestParameters.authenticationSecureNfcRequest, options).then((request) => request(axios, basePath));
1178
+ resetLocal(requestParameters, options) {
1179
+ return localVarFp.resetLocal(requestParameters.resetLocalRequest, options).then((request) => request(axios, basePath));
1168
1180
  },
1169
1181
  /**
1170
1182
  *
1171
- * @summary Secure PIN authentication that requires POS user authentication
1172
- * @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
1183
+ * @summary Reset local authentication using the provided token
1184
+ * @param {AuthenticateApiResetLocalWithTokenRequest} requestParameters Request parameters.
1173
1185
  * @param {*} [options] Override http request option.
1174
1186
  * @throws {RequiredError}
1175
1187
  */
1176
- securePINAuthentication(requestParameters, options) {
1177
- return localVarFp.securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(axios, basePath));
1188
+ resetLocalWithToken(requestParameters, options) {
1189
+ return localVarFp.resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(axios, basePath));
1178
1190
  },
1179
1191
  };
1180
1192
  };
@@ -1219,6 +1231,17 @@ class AuthenticateApi extends base_1.BaseAPI {
1219
1231
  confirmQRCode(requestParameters, options) {
1220
1232
  return (0, exports.AuthenticateApiFp)(this.configuration).confirmQRCode(requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1221
1233
  }
1234
+ /**
1235
+ *
1236
+ * @summary EAN authentication that requires POS user authentication
1237
+ * @param {AuthenticateApiEanAuthenticationRequest} requestParameters Request parameters.
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ * @memberof AuthenticateApi
1241
+ */
1242
+ eanAuthentication(requestParameters, options) {
1243
+ return (0, exports.AuthenticateApiFp)(this.configuration).eanAuthentication(requestParameters.authenticationEanRequest, options).then((request) => request(this.axios, this.basePath));
1244
+ }
1222
1245
  /**
1223
1246
  *
1224
1247
  * @summary Generate a QR code for authentication
@@ -1317,90 +1340,79 @@ class AuthenticateApi extends base_1.BaseAPI {
1317
1340
  }
1318
1341
  /**
1319
1342
  *
1320
- * @summary Mock login and hand out token.
1321
- * @param {AuthenticateApiMockAuthenticationRequest} requestParameters Request parameters.
1343
+ * @summary Member PIN authentication that requires POS user authentication
1344
+ * @param {AuthenticateApiMemberPINAuthenticationRequest} requestParameters Request parameters.
1322
1345
  * @param {*} [options] Override http request option.
1323
1346
  * @throws {RequiredError}
1324
1347
  * @memberof AuthenticateApi
1325
1348
  */
1326
- mockAuthentication(requestParameters, options) {
1327
- return (0, exports.AuthenticateApiFp)(this.configuration).mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(this.axios, this.basePath));
1349
+ memberPINAuthentication(requestParameters, options) {
1350
+ return (0, exports.AuthenticateApiFp)(this.configuration).memberPINAuthentication(requestParameters.memberAuthenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
1328
1351
  }
1329
1352
  /**
1330
1353
  *
1331
- * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
1354
+ * @summary Mock login and hand out token.
1355
+ * @param {AuthenticateApiMockAuthenticationRequest} requestParameters Request parameters.
1332
1356
  * @param {*} [options] Override http request option.
1333
1357
  * @throws {RequiredError}
1334
1358
  * @memberof AuthenticateApi
1335
1359
  */
1336
- refreshToken(options) {
1337
- return (0, exports.AuthenticateApiFp)(this.configuration).refreshToken(options).then((request) => request(this.axios, this.basePath));
1360
+ mockAuthentication(requestParameters, options) {
1361
+ return (0, exports.AuthenticateApiFp)(this.configuration).mockAuthentication(requestParameters.authenticationMockRequest, options).then((request) => request(this.axios, this.basePath));
1338
1362
  }
1339
1363
  /**
1340
1364
  *
1341
- * @summary Creates a reset token for the local authentication
1342
- * @param {AuthenticateApiResetLocalRequest} requestParameters Request parameters.
1365
+ * @summary NFC authentication that requires POS user authentication
1366
+ * @param {AuthenticateApiNfcAuthenticationRequest} requestParameters Request parameters.
1343
1367
  * @param {*} [options] Override http request option.
1344
1368
  * @throws {RequiredError}
1345
1369
  * @memberof AuthenticateApi
1346
1370
  */
1347
- resetLocal(requestParameters, options) {
1348
- return (0, exports.AuthenticateApiFp)(this.configuration).resetLocal(requestParameters.resetLocalRequest, options).then((request) => request(this.axios, this.basePath));
1371
+ nfcAuthentication(requestParameters, options) {
1372
+ return (0, exports.AuthenticateApiFp)(this.configuration).nfcAuthentication(requestParameters.authenticationNfcRequest, options).then((request) => request(this.axios, this.basePath));
1349
1373
  }
1350
1374
  /**
1351
1375
  *
1352
- * @summary Reset local authentication using the provided token
1353
- * @param {AuthenticateApiResetLocalWithTokenRequest} requestParameters Request parameters.
1376
+ * @summary PIN authentication that requires POS user authentication
1377
+ * @param {AuthenticateApiPinAuthenticationRequest} requestParameters Request parameters.
1354
1378
  * @param {*} [options] Override http request option.
1355
1379
  * @throws {RequiredError}
1356
1380
  * @memberof AuthenticateApi
1357
1381
  */
1358
- resetLocalWithToken(requestParameters, options) {
1359
- return (0, exports.AuthenticateApiFp)(this.configuration).resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(this.axios, this.basePath));
1382
+ pinAuthentication(requestParameters, options) {
1383
+ return (0, exports.AuthenticateApiFp)(this.configuration).pinAuthentication(requestParameters.authenticationPinRequest, options).then((request) => request(this.axios, this.basePath));
1360
1384
  }
1361
1385
  /**
1362
1386
  *
1363
- * @summary Secure EAN authentication that requires POS user authentication
1364
- * @param {AuthenticateApiSecureEanAuthenticationRequest} requestParameters Request parameters.
1387
+ * @summary Get a new JWT token, maintaining the same access level (posId) as the original token
1365
1388
  * @param {*} [options] Override http request option.
1366
1389
  * @throws {RequiredError}
1367
1390
  * @memberof AuthenticateApi
1368
1391
  */
1369
- secureEanAuthentication(requestParameters, options) {
1370
- return (0, exports.AuthenticateApiFp)(this.configuration).secureEanAuthentication(requestParameters.authenticationSecureEanRequest, options).then((request) => request(this.axios, this.basePath));
1392
+ refreshToken(options) {
1393
+ return (0, exports.AuthenticateApiFp)(this.configuration).refreshToken(options).then((request) => request(this.axios, this.basePath));
1371
1394
  }
1372
1395
  /**
1373
1396
  *
1374
- * @summary Secure member PIN authentication that requires POS user authentication
1375
- * @param {AuthenticateApiSecureMemberPINAuthenticationRequest} requestParameters Request parameters.
1397
+ * @summary Creates a reset token for the local authentication
1398
+ * @param {AuthenticateApiResetLocalRequest} requestParameters Request parameters.
1376
1399
  * @param {*} [options] Override http request option.
1377
1400
  * @throws {RequiredError}
1378
1401
  * @memberof AuthenticateApi
1379
1402
  */
1380
- secureMemberPINAuthentication(requestParameters, options) {
1381
- return (0, exports.AuthenticateApiFp)(this.configuration).secureMemberPINAuthentication(requestParameters.memberAuthenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
1403
+ resetLocal(requestParameters, options) {
1404
+ return (0, exports.AuthenticateApiFp)(this.configuration).resetLocal(requestParameters.resetLocalRequest, options).then((request) => request(this.axios, this.basePath));
1382
1405
  }
1383
1406
  /**
1384
1407
  *
1385
- * @summary Secure NFC authentication that requires POS user authentication
1386
- * @param {AuthenticateApiSecureNfcAuthenticationRequest} requestParameters Request parameters.
1408
+ * @summary Reset local authentication using the provided token
1409
+ * @param {AuthenticateApiResetLocalWithTokenRequest} requestParameters Request parameters.
1387
1410
  * @param {*} [options] Override http request option.
1388
1411
  * @throws {RequiredError}
1389
1412
  * @memberof AuthenticateApi
1390
1413
  */
1391
- secureNfcAuthentication(requestParameters, options) {
1392
- return (0, exports.AuthenticateApiFp)(this.configuration).secureNfcAuthentication(requestParameters.authenticationSecureNfcRequest, options).then((request) => request(this.axios, this.basePath));
1393
- }
1394
- /**
1395
- *
1396
- * @summary Secure PIN authentication that requires POS user authentication
1397
- * @param {AuthenticateApiSecurePINAuthenticationRequest} requestParameters Request parameters.
1398
- * @param {*} [options] Override http request option.
1399
- * @throws {RequiredError}
1400
- * @memberof AuthenticateApi
1401
- */
1402
- securePINAuthentication(requestParameters, options) {
1403
- return (0, exports.AuthenticateApiFp)(this.configuration).securePINAuthentication(requestParameters.authenticationSecurePinRequest, options).then((request) => request(this.axios, this.basePath));
1414
+ resetLocalWithToken(requestParameters, options) {
1415
+ return (0, exports.AuthenticateApiFp)(this.configuration).resetLocalWithToken(requestParameters.authenticationResetTokenRequest, options).then((request) => request(this.axios, this.basePath));
1404
1416
  }
1405
1417
  }
1406
1418
  exports.AuthenticateApi = AuthenticateApi;
@@ -6154,132 +6166,776 @@ exports.InvoicesApiFactory = InvoicesApiFactory;
6154
6166
  /**
6155
6167
  * InvoicesApi - object-oriented interface
6156
6168
  * @export
6157
- * @class InvoicesApi
6169
+ * @class InvoicesApi
6170
+ * @extends {BaseAPI}
6171
+ */
6172
+ class InvoicesApi extends base_1.BaseAPI {
6173
+ /**
6174
+ *
6175
+ * @summary Adds an invoice to the system.
6176
+ * @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
6177
+ * @param {*} [options] Override http request option.
6178
+ * @throws {RequiredError}
6179
+ * @memberof InvoicesApi
6180
+ */
6181
+ createInvoice(requestParameters, options) {
6182
+ return (0, exports.InvoicesApiFp)(this.configuration).createInvoice(requestParameters.createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
6183
+ }
6184
+ /**
6185
+ *
6186
+ * @summary Deletes an invoice.
6187
+ * @param {InvoicesApiDeleteInvoiceRequest} requestParameters Request parameters.
6188
+ * @param {*} [options] Override http request option.
6189
+ * @throws {RequiredError}
6190
+ * @memberof InvoicesApi
6191
+ */
6192
+ deleteInvoice(requestParameters, options) {
6193
+ return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6194
+ }
6195
+ /**
6196
+ *
6197
+ * @summary Delete invoice user defaults.
6198
+ * @param {InvoicesApiDeleteInvoiceUserRequest} requestParameters Request parameters.
6199
+ * @param {*} [options] Override http request option.
6200
+ * @throws {RequiredError}
6201
+ * @memberof InvoicesApi
6202
+ */
6203
+ deleteInvoiceUser(requestParameters, options) {
6204
+ return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6205
+ }
6206
+ /**
6207
+ *
6208
+ * @summary Returns all invoices in the system.
6209
+ * @param {InvoicesApiGetAllInvoicesRequest} requestParameters Request parameters.
6210
+ * @param {*} [options] Override http request option.
6211
+ * @throws {RequiredError}
6212
+ * @memberof InvoicesApi
6213
+ */
6214
+ getAllInvoices(requestParameters = {}, options) {
6215
+ return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
6216
+ }
6217
+ /**
6218
+ *
6219
+ * @summary Get eligible transactions for invoice creation.
6220
+ * @param {InvoicesApiGetEligibleTransactionsRequest} requestParameters Request parameters.
6221
+ * @param {*} [options] Override http request option.
6222
+ * @throws {RequiredError}
6223
+ * @memberof InvoicesApi
6224
+ */
6225
+ getEligibleTransactions(requestParameters, options) {
6226
+ return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
6227
+ }
6228
+ /**
6229
+ *
6230
+ * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
6231
+ * @param {*} [options] Override http request option.
6232
+ * @throws {RequiredError}
6233
+ * @memberof InvoicesApi
6234
+ */
6235
+ getInvoiceDrift(options) {
6236
+ return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
6237
+ }
6238
+ /**
6239
+ *
6240
+ * @summary Get an invoice pdf.
6241
+ * @param {InvoicesApiGetInvoicePdfRequest} requestParameters Request parameters.
6242
+ * @param {*} [options] Override http request option.
6243
+ * @throws {RequiredError}
6244
+ * @memberof InvoicesApi
6245
+ */
6246
+ getInvoicePdf(requestParameters, options) {
6247
+ return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(requestParameters.id, requestParameters.force, options).then((request) => request(this.axios, this.basePath));
6248
+ }
6249
+ /**
6250
+ *
6251
+ * @summary Returns a single invoice in the system.
6252
+ * @param {InvoicesApiGetSingleInvoiceRequest} requestParameters Request parameters.
6253
+ * @param {*} [options] Override http request option.
6254
+ * @throws {RequiredError}
6255
+ * @memberof InvoicesApi
6256
+ */
6257
+ getSingleInvoice(requestParameters, options) {
6258
+ return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoice(requestParameters.id, requestParameters.returnEntries, options).then((request) => request(this.axios, this.basePath));
6259
+ }
6260
+ /**
6261
+ *
6262
+ * @summary Get invoice user defaults.
6263
+ * @param {InvoicesApiGetSingleInvoiceUserRequest} requestParameters Request parameters.
6264
+ * @param {*} [options] Override http request option.
6265
+ * @throws {RequiredError}
6266
+ * @memberof InvoicesApi
6267
+ */
6268
+ getSingleInvoiceUser(requestParameters, options) {
6269
+ return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6270
+ }
6271
+ /**
6272
+ *
6273
+ * @summary Update or create invoice user defaults.
6274
+ * @param {InvoicesApiPutInvoiceUserRequest} requestParameters Request parameters.
6275
+ * @param {*} [options] Override http request option.
6276
+ * @throws {RequiredError}
6277
+ * @memberof InvoicesApi
6278
+ */
6279
+ putInvoiceUser(requestParameters, options) {
6280
+ return (0, exports.InvoicesApiFp)(this.configuration).putInvoiceUser(requestParameters.id, requestParameters.updateInvoiceUserRequest, options).then((request) => request(this.axios, this.basePath));
6281
+ }
6282
+ /**
6283
+ *
6284
+ * @summary Adds an invoice to the system.
6285
+ * @param {InvoicesApiUpdateInvoiceRequest} requestParameters Request parameters.
6286
+ * @param {*} [options] Override http request option.
6287
+ * @throws {RequiredError}
6288
+ * @memberof InvoicesApi
6289
+ */
6290
+ updateInvoice(requestParameters, options) {
6291
+ return (0, exports.InvoicesApiFp)(this.configuration).updateInvoice(requestParameters.id, requestParameters.updateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
6292
+ }
6293
+ }
6294
+ exports.InvoicesApi = InvoicesApi;
6295
+ /**
6296
+ * PaymentRequestsApi - axios parameter creator
6297
+ * @export
6298
+ */
6299
+ const PaymentRequestsApiAxiosParamCreator = function (configuration) {
6300
+ return {
6301
+ /**
6302
+ *
6303
+ * @summary Cancel a PENDING PaymentRequest.
6304
+ * @param {string} id UUID v4 of the payment request.
6305
+ * @param {*} [options] Override http request option.
6306
+ * @throws {RequiredError}
6307
+ */
6308
+ cancelPaymentRequest: async (id, options = {}) => {
6309
+ // verify required parameter 'id' is not null or undefined
6310
+ (0, common_1.assertParamExists)('cancelPaymentRequest', 'id', id);
6311
+ const localVarPath = `/payment-requests/{id}/cancel`
6312
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6313
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6314
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6315
+ let baseOptions;
6316
+ if (configuration) {
6317
+ baseOptions = configuration.baseOptions;
6318
+ }
6319
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6320
+ const localVarHeaderParameter = {};
6321
+ const localVarQueryParameter = {};
6322
+ // authentication JWT required
6323
+ // http bearer authentication required
6324
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6325
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6326
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6327
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6328
+ return {
6329
+ url: (0, common_1.toPathString)(localVarUrlObj),
6330
+ options: localVarRequestOptions,
6331
+ };
6332
+ },
6333
+ /**
6334
+ *
6335
+ * @summary Create a new PaymentRequest.
6336
+ * @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
6337
+ * @param {*} [options] Override http request option.
6338
+ * @throws {RequiredError}
6339
+ */
6340
+ createPaymentRequest: async (createPaymentRequestRequest, options = {}) => {
6341
+ // verify required parameter 'createPaymentRequestRequest' is not null or undefined
6342
+ (0, common_1.assertParamExists)('createPaymentRequest', 'createPaymentRequestRequest', createPaymentRequestRequest);
6343
+ const localVarPath = `/payment-requests`;
6344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6345
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6346
+ let baseOptions;
6347
+ if (configuration) {
6348
+ baseOptions = configuration.baseOptions;
6349
+ }
6350
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6351
+ const localVarHeaderParameter = {};
6352
+ const localVarQueryParameter = {};
6353
+ // authentication JWT required
6354
+ // http bearer authentication required
6355
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6357
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6359
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6360
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentRequestRequest, localVarRequestOptions, configuration);
6361
+ return {
6362
+ url: (0, common_1.toPathString)(localVarUrlObj),
6363
+ options: localVarRequestOptions,
6364
+ };
6365
+ },
6366
+ /**
6367
+ *
6368
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6369
+ * @param {number} [forId] Filter by beneficiary user id.
6370
+ * @param {number} [createdById] Filter by creator user id.
6371
+ * @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
6372
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
6373
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
6374
+ * @param {number} [take] How many rows the endpoint should return
6375
+ * @param {number} [skip] How many rows to skip (for pagination)
6376
+ * @param {*} [options] Override http request option.
6377
+ * @throws {RequiredError}
6378
+ */
6379
+ getAllPaymentRequests: async (forId, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
6380
+ const localVarPath = `/payment-requests`;
6381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6382
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6383
+ let baseOptions;
6384
+ if (configuration) {
6385
+ baseOptions = configuration.baseOptions;
6386
+ }
6387
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6388
+ const localVarHeaderParameter = {};
6389
+ const localVarQueryParameter = {};
6390
+ // authentication JWT required
6391
+ // http bearer authentication required
6392
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6393
+ if (forId !== undefined) {
6394
+ localVarQueryParameter['forId'] = forId;
6395
+ }
6396
+ if (createdById !== undefined) {
6397
+ localVarQueryParameter['createdById'] = createdById;
6398
+ }
6399
+ if (status !== undefined) {
6400
+ localVarQueryParameter['status'] = status;
6401
+ }
6402
+ if (fromDate !== undefined) {
6403
+ localVarQueryParameter['fromDate'] = fromDate;
6404
+ }
6405
+ if (tillDate !== undefined) {
6406
+ localVarQueryParameter['tillDate'] = tillDate;
6407
+ }
6408
+ if (take !== undefined) {
6409
+ localVarQueryParameter['take'] = take;
6410
+ }
6411
+ if (skip !== undefined) {
6412
+ localVarQueryParameter['skip'] = skip;
6413
+ }
6414
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6415
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6416
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6417
+ return {
6418
+ url: (0, common_1.toPathString)(localVarUrlObj),
6419
+ options: localVarRequestOptions,
6420
+ };
6421
+ },
6422
+ /**
6423
+ *
6424
+ * @summary Fetch a single PaymentRequest by id.
6425
+ * @param {string} id UUID v4 of the payment request.
6426
+ * @param {*} [options] Override http request option.
6427
+ * @throws {RequiredError}
6428
+ */
6429
+ getSinglePaymentRequest: async (id, options = {}) => {
6430
+ // verify required parameter 'id' is not null or undefined
6431
+ (0, common_1.assertParamExists)('getSinglePaymentRequest', 'id', id);
6432
+ const localVarPath = `/payment-requests/{id}`
6433
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6434
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6435
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6436
+ let baseOptions;
6437
+ if (configuration) {
6438
+ baseOptions = configuration.baseOptions;
6439
+ }
6440
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6441
+ const localVarHeaderParameter = {};
6442
+ const localVarQueryParameter = {};
6443
+ // authentication JWT required
6444
+ // http bearer authentication required
6445
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6446
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6447
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6448
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6449
+ return {
6450
+ url: (0, common_1.toPathString)(localVarUrlObj),
6451
+ options: localVarRequestOptions,
6452
+ };
6453
+ },
6454
+ /**
6455
+ *
6456
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6457
+ * @param {string} id UUID v4 of the payment request.
6458
+ * @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
6459
+ * @param {*} [options] Override http request option.
6460
+ * @throws {RequiredError}
6461
+ */
6462
+ markPaymentRequestFulfilledExternally: async (id, markFulfilledExternallyRequest, options = {}) => {
6463
+ // verify required parameter 'id' is not null or undefined
6464
+ (0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'id', id);
6465
+ // verify required parameter 'markFulfilledExternallyRequest' is not null or undefined
6466
+ (0, common_1.assertParamExists)('markPaymentRequestFulfilledExternally', 'markFulfilledExternallyRequest', markFulfilledExternallyRequest);
6467
+ const localVarPath = `/payment-requests/{id}/mark-fulfilled`
6468
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6469
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6470
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6471
+ let baseOptions;
6472
+ if (configuration) {
6473
+ baseOptions = configuration.baseOptions;
6474
+ }
6475
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6476
+ const localVarHeaderParameter = {};
6477
+ const localVarQueryParameter = {};
6478
+ // authentication JWT required
6479
+ // http bearer authentication required
6480
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6481
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6482
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6484
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6485
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markFulfilledExternallyRequest, localVarRequestOptions, configuration);
6486
+ return {
6487
+ url: (0, common_1.toPathString)(localVarUrlObj),
6488
+ options: localVarRequestOptions,
6489
+ };
6490
+ },
6491
+ /**
6492
+ *
6493
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6494
+ * @param {string} id UUID v4 of the payment request.
6495
+ * @param {*} [options] Override http request option.
6496
+ * @throws {RequiredError}
6497
+ */
6498
+ startPaymentRequestAuthenticated: async (id, options = {}) => {
6499
+ // verify required parameter 'id' is not null or undefined
6500
+ (0, common_1.assertParamExists)('startPaymentRequestAuthenticated', 'id', id);
6501
+ const localVarPath = `/payment-requests/{id}/start`
6502
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6504
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6505
+ let baseOptions;
6506
+ if (configuration) {
6507
+ baseOptions = configuration.baseOptions;
6508
+ }
6509
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6510
+ const localVarHeaderParameter = {};
6511
+ const localVarQueryParameter = {};
6512
+ // authentication JWT required
6513
+ // http bearer authentication required
6514
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6515
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6516
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6517
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6518
+ return {
6519
+ url: (0, common_1.toPathString)(localVarUrlObj),
6520
+ options: localVarRequestOptions,
6521
+ };
6522
+ },
6523
+ };
6524
+ };
6525
+ exports.PaymentRequestsApiAxiosParamCreator = PaymentRequestsApiAxiosParamCreator;
6526
+ /**
6527
+ * PaymentRequestsApi - functional programming interface
6528
+ * @export
6529
+ */
6530
+ const PaymentRequestsApiFp = function (configuration) {
6531
+ const localVarAxiosParamCreator = (0, exports.PaymentRequestsApiAxiosParamCreator)(configuration);
6532
+ return {
6533
+ /**
6534
+ *
6535
+ * @summary Cancel a PENDING PaymentRequest.
6536
+ * @param {string} id UUID v4 of the payment request.
6537
+ * @param {*} [options] Override http request option.
6538
+ * @throws {RequiredError}
6539
+ */
6540
+ async cancelPaymentRequest(id, options) {
6541
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPaymentRequest(id, options);
6542
+ const index = configuration?.serverIndex ?? 0;
6543
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.cancelPaymentRequest']?.[index]?.url;
6544
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6545
+ },
6546
+ /**
6547
+ *
6548
+ * @summary Create a new PaymentRequest.
6549
+ * @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
6550
+ * @param {*} [options] Override http request option.
6551
+ * @throws {RequiredError}
6552
+ */
6553
+ async createPaymentRequest(createPaymentRequestRequest, options) {
6554
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentRequest(createPaymentRequestRequest, options);
6555
+ const index = configuration?.serverIndex ?? 0;
6556
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.createPaymentRequest']?.[index]?.url;
6557
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6558
+ },
6559
+ /**
6560
+ *
6561
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6562
+ * @param {number} [forId] Filter by beneficiary user id.
6563
+ * @param {number} [createdById] Filter by creator user id.
6564
+ * @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
6565
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
6566
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
6567
+ * @param {number} [take] How many rows the endpoint should return
6568
+ * @param {number} [skip] How many rows to skip (for pagination)
6569
+ * @param {*} [options] Override http request option.
6570
+ * @throws {RequiredError}
6571
+ */
6572
+ async getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options) {
6573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPaymentRequests(forId, createdById, status, fromDate, tillDate, take, skip, options);
6574
+ const index = configuration?.serverIndex ?? 0;
6575
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getAllPaymentRequests']?.[index]?.url;
6576
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6577
+ },
6578
+ /**
6579
+ *
6580
+ * @summary Fetch a single PaymentRequest by id.
6581
+ * @param {string} id UUID v4 of the payment request.
6582
+ * @param {*} [options] Override http request option.
6583
+ * @throws {RequiredError}
6584
+ */
6585
+ async getSinglePaymentRequest(id, options) {
6586
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSinglePaymentRequest(id, options);
6587
+ const index = configuration?.serverIndex ?? 0;
6588
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.getSinglePaymentRequest']?.[index]?.url;
6589
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6590
+ },
6591
+ /**
6592
+ *
6593
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6594
+ * @param {string} id UUID v4 of the payment request.
6595
+ * @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
6596
+ * @param {*} [options] Override http request option.
6597
+ * @throws {RequiredError}
6598
+ */
6599
+ async markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options) {
6600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markPaymentRequestFulfilledExternally(id, markFulfilledExternallyRequest, options);
6601
+ const index = configuration?.serverIndex ?? 0;
6602
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.markPaymentRequestFulfilledExternally']?.[index]?.url;
6603
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6604
+ },
6605
+ /**
6606
+ *
6607
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6608
+ * @param {string} id UUID v4 of the payment request.
6609
+ * @param {*} [options] Override http request option.
6610
+ * @throws {RequiredError}
6611
+ */
6612
+ async startPaymentRequestAuthenticated(id, options) {
6613
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestAuthenticated(id, options);
6614
+ const index = configuration?.serverIndex ?? 0;
6615
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsApi.startPaymentRequestAuthenticated']?.[index]?.url;
6616
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6617
+ },
6618
+ };
6619
+ };
6620
+ exports.PaymentRequestsApiFp = PaymentRequestsApiFp;
6621
+ /**
6622
+ * PaymentRequestsApi - factory interface
6623
+ * @export
6624
+ */
6625
+ const PaymentRequestsApiFactory = function (configuration, basePath, axios) {
6626
+ const localVarFp = (0, exports.PaymentRequestsApiFp)(configuration);
6627
+ return {
6628
+ /**
6629
+ *
6630
+ * @summary Cancel a PENDING PaymentRequest.
6631
+ * @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
6632
+ * @param {*} [options] Override http request option.
6633
+ * @throws {RequiredError}
6634
+ */
6635
+ cancelPaymentRequest(requestParameters, options) {
6636
+ return localVarFp.cancelPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
6637
+ },
6638
+ /**
6639
+ *
6640
+ * @summary Create a new PaymentRequest.
6641
+ * @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
6642
+ * @param {*} [options] Override http request option.
6643
+ * @throws {RequiredError}
6644
+ */
6645
+ createPaymentRequest(requestParameters, options) {
6646
+ return localVarFp.createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(axios, basePath));
6647
+ },
6648
+ /**
6649
+ *
6650
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6651
+ * @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
6652
+ * @param {*} [options] Override http request option.
6653
+ * @throws {RequiredError}
6654
+ */
6655
+ getAllPaymentRequests(requestParameters = {}, options) {
6656
+ return localVarFp.getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
6657
+ },
6658
+ /**
6659
+ *
6660
+ * @summary Fetch a single PaymentRequest by id.
6661
+ * @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
6662
+ * @param {*} [options] Override http request option.
6663
+ * @throws {RequiredError}
6664
+ */
6665
+ getSinglePaymentRequest(requestParameters, options) {
6666
+ return localVarFp.getSinglePaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
6667
+ },
6668
+ /**
6669
+ *
6670
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6671
+ * @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
6672
+ * @param {*} [options] Override http request option.
6673
+ * @throws {RequiredError}
6674
+ */
6675
+ markPaymentRequestFulfilledExternally(requestParameters, options) {
6676
+ return localVarFp.markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(axios, basePath));
6677
+ },
6678
+ /**
6679
+ *
6680
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6681
+ * @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
6682
+ * @param {*} [options] Override http request option.
6683
+ * @throws {RequiredError}
6684
+ */
6685
+ startPaymentRequestAuthenticated(requestParameters, options) {
6686
+ return localVarFp.startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(axios, basePath));
6687
+ },
6688
+ };
6689
+ };
6690
+ exports.PaymentRequestsApiFactory = PaymentRequestsApiFactory;
6691
+ /**
6692
+ * PaymentRequestsApi - object-oriented interface
6693
+ * @export
6694
+ * @class PaymentRequestsApi
6158
6695
  * @extends {BaseAPI}
6159
6696
  */
6160
- class InvoicesApi extends base_1.BaseAPI {
6161
- /**
6162
- *
6163
- * @summary Adds an invoice to the system.
6164
- * @param {InvoicesApiCreateInvoiceRequest} requestParameters Request parameters.
6165
- * @param {*} [options] Override http request option.
6166
- * @throws {RequiredError}
6167
- * @memberof InvoicesApi
6168
- */
6169
- createInvoice(requestParameters, options) {
6170
- return (0, exports.InvoicesApiFp)(this.configuration).createInvoice(requestParameters.createInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
6171
- }
6172
- /**
6173
- *
6174
- * @summary Deletes an invoice.
6175
- * @param {InvoicesApiDeleteInvoiceRequest} requestParameters Request parameters.
6176
- * @param {*} [options] Override http request option.
6177
- * @throws {RequiredError}
6178
- * @memberof InvoicesApi
6179
- */
6180
- deleteInvoice(requestParameters, options) {
6181
- return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6182
- }
6183
- /**
6184
- *
6185
- * @summary Delete invoice user defaults.
6186
- * @param {InvoicesApiDeleteInvoiceUserRequest} requestParameters Request parameters.
6187
- * @param {*} [options] Override http request option.
6188
- * @throws {RequiredError}
6189
- * @memberof InvoicesApi
6190
- */
6191
- deleteInvoiceUser(requestParameters, options) {
6192
- return (0, exports.InvoicesApiFp)(this.configuration).deleteInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6193
- }
6697
+ class PaymentRequestsApi extends base_1.BaseAPI {
6194
6698
  /**
6195
6699
  *
6196
- * @summary Returns all invoices in the system.
6197
- * @param {InvoicesApiGetAllInvoicesRequest} requestParameters Request parameters.
6700
+ * @summary Cancel a PENDING PaymentRequest.
6701
+ * @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
6198
6702
  * @param {*} [options] Override http request option.
6199
6703
  * @throws {RequiredError}
6200
- * @memberof InvoicesApi
6704
+ * @memberof PaymentRequestsApi
6201
6705
  */
6202
- getAllInvoices(requestParameters = {}, options) {
6203
- return (0, exports.InvoicesApiFp)(this.configuration).getAllInvoices(requestParameters.toId, requestParameters.invoiceId, requestParameters.currentState, requestParameters.returnEntries, requestParameters.fromDate, requestParameters.tillDate, requestParameters.description, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
6706
+ cancelPaymentRequest(requestParameters, options) {
6707
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).cancelPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6204
6708
  }
6205
6709
  /**
6206
6710
  *
6207
- * @summary Get eligible transactions for invoice creation.
6208
- * @param {InvoicesApiGetEligibleTransactionsRequest} requestParameters Request parameters.
6711
+ * @summary Create a new PaymentRequest.
6712
+ * @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
6209
6713
  * @param {*} [options] Override http request option.
6210
6714
  * @throws {RequiredError}
6211
- * @memberof InvoicesApi
6715
+ * @memberof PaymentRequestsApi
6212
6716
  */
6213
- getEligibleTransactions(requestParameters, options) {
6214
- return (0, exports.InvoicesApiFp)(this.configuration).getEligibleTransactions(requestParameters.forId, requestParameters.fromDate, requestParameters.tillDate, options).then((request) => request(this.axios, this.basePath));
6717
+ createPaymentRequest(requestParameters, options) {
6718
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequest, options).then((request) => request(this.axios, this.basePath));
6215
6719
  }
6216
6720
  /**
6217
6721
  *
6218
- * @summary Returns all invoices with transfer amount drift: for active invoices transfer != row sum; for deleted invoices transfer != credit transfer.
6722
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
6723
+ * @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
6219
6724
  * @param {*} [options] Override http request option.
6220
6725
  * @throws {RequiredError}
6221
- * @memberof InvoicesApi
6726
+ * @memberof PaymentRequestsApi
6222
6727
  */
6223
- getInvoiceDrift(options) {
6224
- return (0, exports.InvoicesApiFp)(this.configuration).getInvoiceDrift(options).then((request) => request(this.axios, this.basePath));
6728
+ getAllPaymentRequests(requestParameters = {}, options) {
6729
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).getAllPaymentRequests(requestParameters.forId, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
6225
6730
  }
6226
6731
  /**
6227
6732
  *
6228
- * @summary Get an invoice pdf.
6229
- * @param {InvoicesApiGetInvoicePdfRequest} requestParameters Request parameters.
6733
+ * @summary Fetch a single PaymentRequest by id.
6734
+ * @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
6230
6735
  * @param {*} [options] Override http request option.
6231
6736
  * @throws {RequiredError}
6232
- * @memberof InvoicesApi
6737
+ * @memberof PaymentRequestsApi
6233
6738
  */
6234
- getInvoicePdf(requestParameters, options) {
6235
- return (0, exports.InvoicesApiFp)(this.configuration).getInvoicePdf(requestParameters.id, requestParameters.force, options).then((request) => request(this.axios, this.basePath));
6739
+ getSinglePaymentRequest(requestParameters, options) {
6740
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).getSinglePaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6236
6741
  }
6237
6742
  /**
6238
6743
  *
6239
- * @summary Returns a single invoice in the system.
6240
- * @param {InvoicesApiGetSingleInvoiceRequest} requestParameters Request parameters.
6744
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
6745
+ * @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
6241
6746
  * @param {*} [options] Override http request option.
6242
6747
  * @throws {RequiredError}
6243
- * @memberof InvoicesApi
6748
+ * @memberof PaymentRequestsApi
6244
6749
  */
6245
- getSingleInvoice(requestParameters, options) {
6246
- return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoice(requestParameters.id, requestParameters.returnEntries, options).then((request) => request(this.axios, this.basePath));
6750
+ markPaymentRequestFulfilledExternally(requestParameters, options) {
6751
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).markPaymentRequestFulfilledExternally(requestParameters.id, requestParameters.markFulfilledExternallyRequest, options).then((request) => request(this.axios, this.basePath));
6247
6752
  }
6248
6753
  /**
6249
6754
  *
6250
- * @summary Get invoice user defaults.
6251
- * @param {InvoicesApiGetSingleInvoiceUserRequest} requestParameters Request parameters.
6755
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
6756
+ * @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
6252
6757
  * @param {*} [options] Override http request option.
6253
6758
  * @throws {RequiredError}
6254
- * @memberof InvoicesApi
6759
+ * @memberof PaymentRequestsApi
6255
6760
  */
6256
- getSingleInvoiceUser(requestParameters, options) {
6257
- return (0, exports.InvoicesApiFp)(this.configuration).getSingleInvoiceUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6761
+ startPaymentRequestAuthenticated(requestParameters, options) {
6762
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).startPaymentRequestAuthenticated(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6258
6763
  }
6764
+ }
6765
+ exports.PaymentRequestsApi = PaymentRequestsApi;
6766
+ /**
6767
+ * @export
6768
+ */
6769
+ exports.GetAllPaymentRequestsStatusEnum = {
6770
+ Pending: 'PENDING',
6771
+ Paid: 'PAID',
6772
+ Expired: 'EXPIRED',
6773
+ Cancelled: 'CANCELLED'
6774
+ };
6775
+ /**
6776
+ * PaymentRequestsPublicApi - axios parameter creator
6777
+ * @export
6778
+ */
6779
+ const PaymentRequestsPublicApiAxiosParamCreator = function (configuration) {
6780
+ return {
6781
+ /**
6782
+ *
6783
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
6784
+ * @param {string} id UUID v4 of the payment request.
6785
+ * @param {*} [options] Override http request option.
6786
+ * @throws {RequiredError}
6787
+ */
6788
+ getPublicPaymentRequest: async (id, options = {}) => {
6789
+ // verify required parameter 'id' is not null or undefined
6790
+ (0, common_1.assertParamExists)('getPublicPaymentRequest', 'id', id);
6791
+ const localVarPath = `/payment-requests-public/{id}`
6792
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6793
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6794
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6795
+ let baseOptions;
6796
+ if (configuration) {
6797
+ baseOptions = configuration.baseOptions;
6798
+ }
6799
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6800
+ const localVarHeaderParameter = {};
6801
+ const localVarQueryParameter = {};
6802
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6803
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6804
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6805
+ return {
6806
+ url: (0, common_1.toPathString)(localVarUrlObj),
6807
+ options: localVarRequestOptions,
6808
+ };
6809
+ },
6810
+ /**
6811
+ *
6812
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
6813
+ * @param {string} id UUID v4 of the payment request.
6814
+ * @param {*} [options] Override http request option.
6815
+ * @throws {RequiredError}
6816
+ */
6817
+ startPaymentRequestPublic: async (id, options = {}) => {
6818
+ // verify required parameter 'id' is not null or undefined
6819
+ (0, common_1.assertParamExists)('startPaymentRequestPublic', 'id', id);
6820
+ const localVarPath = `/payment-requests-public/{id}/start`
6821
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6822
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6823
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6824
+ let baseOptions;
6825
+ if (configuration) {
6826
+ baseOptions = configuration.baseOptions;
6827
+ }
6828
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6829
+ const localVarHeaderParameter = {};
6830
+ const localVarQueryParameter = {};
6831
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6832
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6833
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6834
+ return {
6835
+ url: (0, common_1.toPathString)(localVarUrlObj),
6836
+ options: localVarRequestOptions,
6837
+ };
6838
+ },
6839
+ };
6840
+ };
6841
+ exports.PaymentRequestsPublicApiAxiosParamCreator = PaymentRequestsPublicApiAxiosParamCreator;
6842
+ /**
6843
+ * PaymentRequestsPublicApi - functional programming interface
6844
+ * @export
6845
+ */
6846
+ const PaymentRequestsPublicApiFp = function (configuration) {
6847
+ const localVarAxiosParamCreator = (0, exports.PaymentRequestsPublicApiAxiosParamCreator)(configuration);
6848
+ return {
6849
+ /**
6850
+ *
6851
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
6852
+ * @param {string} id UUID v4 of the payment request.
6853
+ * @param {*} [options] Override http request option.
6854
+ * @throws {RequiredError}
6855
+ */
6856
+ async getPublicPaymentRequest(id, options) {
6857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPaymentRequest(id, options);
6858
+ const index = configuration?.serverIndex ?? 0;
6859
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.getPublicPaymentRequest']?.[index]?.url;
6860
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6861
+ },
6862
+ /**
6863
+ *
6864
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
6865
+ * @param {string} id UUID v4 of the payment request.
6866
+ * @param {*} [options] Override http request option.
6867
+ * @throws {RequiredError}
6868
+ */
6869
+ async startPaymentRequestPublic(id, options) {
6870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startPaymentRequestPublic(id, options);
6871
+ const index = configuration?.serverIndex ?? 0;
6872
+ const operationBasePath = base_1.operationServerMap['PaymentRequestsPublicApi.startPaymentRequestPublic']?.[index]?.url;
6873
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
6874
+ },
6875
+ };
6876
+ };
6877
+ exports.PaymentRequestsPublicApiFp = PaymentRequestsPublicApiFp;
6878
+ /**
6879
+ * PaymentRequestsPublicApi - factory interface
6880
+ * @export
6881
+ */
6882
+ const PaymentRequestsPublicApiFactory = function (configuration, basePath, axios) {
6883
+ const localVarFp = (0, exports.PaymentRequestsPublicApiFp)(configuration);
6884
+ return {
6885
+ /**
6886
+ *
6887
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
6888
+ * @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
6889
+ * @param {*} [options] Override http request option.
6890
+ * @throws {RequiredError}
6891
+ */
6892
+ getPublicPaymentRequest(requestParameters, options) {
6893
+ return localVarFp.getPublicPaymentRequest(requestParameters.id, options).then((request) => request(axios, basePath));
6894
+ },
6895
+ /**
6896
+ *
6897
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
6898
+ * @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
6899
+ * @param {*} [options] Override http request option.
6900
+ * @throws {RequiredError}
6901
+ */
6902
+ startPaymentRequestPublic(requestParameters, options) {
6903
+ return localVarFp.startPaymentRequestPublic(requestParameters.id, options).then((request) => request(axios, basePath));
6904
+ },
6905
+ };
6906
+ };
6907
+ exports.PaymentRequestsPublicApiFactory = PaymentRequestsPublicApiFactory;
6908
+ /**
6909
+ * PaymentRequestsPublicApi - object-oriented interface
6910
+ * @export
6911
+ * @class PaymentRequestsPublicApi
6912
+ * @extends {BaseAPI}
6913
+ */
6914
+ class PaymentRequestsPublicApi extends base_1.BaseAPI {
6259
6915
  /**
6260
6916
  *
6261
- * @summary Update or create invoice user defaults.
6262
- * @param {InvoicesApiPutInvoiceUserRequest} requestParameters Request parameters.
6917
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
6918
+ * @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
6263
6919
  * @param {*} [options] Override http request option.
6264
6920
  * @throws {RequiredError}
6265
- * @memberof InvoicesApi
6921
+ * @memberof PaymentRequestsPublicApi
6266
6922
  */
6267
- putInvoiceUser(requestParameters, options) {
6268
- return (0, exports.InvoicesApiFp)(this.configuration).putInvoiceUser(requestParameters.id, requestParameters.updateInvoiceUserRequest, options).then((request) => request(this.axios, this.basePath));
6923
+ getPublicPaymentRequest(requestParameters, options) {
6924
+ return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).getPublicPaymentRequest(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6269
6925
  }
6270
6926
  /**
6271
6927
  *
6272
- * @summary Adds an invoice to the system.
6273
- * @param {InvoicesApiUpdateInvoiceRequest} requestParameters Request parameters.
6928
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
6929
+ * @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
6274
6930
  * @param {*} [options] Override http request option.
6275
6931
  * @throws {RequiredError}
6276
- * @memberof InvoicesApi
6932
+ * @memberof PaymentRequestsPublicApi
6277
6933
  */
6278
- updateInvoice(requestParameters, options) {
6279
- return (0, exports.InvoicesApiFp)(this.configuration).updateInvoice(requestParameters.id, requestParameters.updateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
6934
+ startPaymentRequestPublic(requestParameters, options) {
6935
+ return (0, exports.PaymentRequestsPublicApiFp)(this.configuration).startPaymentRequestPublic(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6280
6936
  }
6281
6937
  }
6282
- exports.InvoicesApi = InvoicesApi;
6938
+ exports.PaymentRequestsPublicApi = PaymentRequestsPublicApi;
6283
6939
  /**
6284
6940
  * PayoutRequestsApi - axios parameter creator
6285
6941
  * @export
@@ -12372,6 +13028,62 @@ const UsersApiAxiosParamCreator = function (configuration) {
12372
13028
  options: localVarRequestOptions,
12373
13029
  };
12374
13030
  },
13031
+ /**
13032
+ *
13033
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
13034
+ * @param {number} id The id of the beneficiary user.
13035
+ * @param {number} [createdById] Filter by creator user id.
13036
+ * @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
13037
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
13038
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
13039
+ * @param {number} [take] How many rows the endpoint should return
13040
+ * @param {number} [skip] How many rows to skip (for pagination)
13041
+ * @param {*} [options] Override http request option.
13042
+ * @throws {RequiredError}
13043
+ */
13044
+ getUsersPaymentRequests: async (id, createdById, status, fromDate, tillDate, take, skip, options = {}) => {
13045
+ // verify required parameter 'id' is not null or undefined
13046
+ (0, common_1.assertParamExists)('getUsersPaymentRequests', 'id', id);
13047
+ const localVarPath = `/users/{id}/payment-requests`
13048
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13049
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13050
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13051
+ let baseOptions;
13052
+ if (configuration) {
13053
+ baseOptions = configuration.baseOptions;
13054
+ }
13055
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
13056
+ const localVarHeaderParameter = {};
13057
+ const localVarQueryParameter = {};
13058
+ // authentication JWT required
13059
+ // http bearer authentication required
13060
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13061
+ if (createdById !== undefined) {
13062
+ localVarQueryParameter['createdById'] = createdById;
13063
+ }
13064
+ if (status !== undefined) {
13065
+ localVarQueryParameter['status'] = status;
13066
+ }
13067
+ if (fromDate !== undefined) {
13068
+ localVarQueryParameter['fromDate'] = fromDate;
13069
+ }
13070
+ if (tillDate !== undefined) {
13071
+ localVarQueryParameter['tillDate'] = tillDate;
13072
+ }
13073
+ if (take !== undefined) {
13074
+ localVarQueryParameter['take'] = take;
13075
+ }
13076
+ if (skip !== undefined) {
13077
+ localVarQueryParameter['skip'] = skip;
13078
+ }
13079
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13080
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13081
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
13082
+ return {
13083
+ url: (0, common_1.toPathString)(localVarUrlObj),
13084
+ options: localVarRequestOptions,
13085
+ };
13086
+ },
12375
13087
  /**
12376
13088
  *
12377
13089
  * @summary Returns the user\'s Points of Sale
@@ -13447,6 +14159,25 @@ const UsersApiFp = function (configuration) {
13447
14159
  const operationBasePath = base_1.operationServerMap['UsersApi.getUsersFinancialMutations']?.[index]?.url;
13448
14160
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
13449
14161
  },
14162
+ /**
14163
+ *
14164
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
14165
+ * @param {number} id The id of the beneficiary user.
14166
+ * @param {number} [createdById] Filter by creator user id.
14167
+ * @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
14168
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
14169
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
14170
+ * @param {number} [take] How many rows the endpoint should return
14171
+ * @param {number} [skip] How many rows to skip (for pagination)
14172
+ * @param {*} [options] Override http request option.
14173
+ * @throws {RequiredError}
14174
+ */
14175
+ async getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options) {
14176
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUsersPaymentRequests(id, createdById, status, fromDate, tillDate, take, skip, options);
14177
+ const index = configuration?.serverIndex ?? 0;
14178
+ const operationBasePath = base_1.operationServerMap['UsersApi.getUsersPaymentRequests']?.[index]?.url;
14179
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
14180
+ },
13450
14181
  /**
13451
14182
  *
13452
14183
  * @summary Returns the user\'s Points of Sale
@@ -13929,6 +14660,16 @@ const UsersApiFactory = function (configuration, basePath, axios) {
13929
14660
  getUsersFinancialMutations(requestParameters, options) {
13930
14661
  return localVarFp.getUsersFinancialMutations(requestParameters.id, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
13931
14662
  },
14663
+ /**
14664
+ *
14665
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
14666
+ * @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
14667
+ * @param {*} [options] Override http request option.
14668
+ * @throws {RequiredError}
14669
+ */
14670
+ getUsersPaymentRequests(requestParameters, options) {
14671
+ return localVarFp.getUsersPaymentRequests(requestParameters.id, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(axios, basePath));
14672
+ },
13932
14673
  /**
13933
14674
  *
13934
14675
  * @summary Returns the user\'s Points of Sale
@@ -14327,6 +15068,17 @@ class UsersApi extends base_1.BaseAPI {
14327
15068
  getUsersFinancialMutations(requestParameters, options) {
14328
15069
  return (0, exports.UsersApiFp)(this.configuration).getUsersFinancialMutations(requestParameters.id, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
14329
15070
  }
15071
+ /**
15072
+ *
15073
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
15074
+ * @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
15075
+ * @param {*} [options] Override http request option.
15076
+ * @throws {RequiredError}
15077
+ * @memberof UsersApi
15078
+ */
15079
+ getUsersPaymentRequests(requestParameters, options) {
15080
+ return (0, exports.UsersApiFp)(this.configuration).getUsersPaymentRequests(requestParameters.id, requestParameters.createdById, requestParameters.status, requestParameters.fromDate, requestParameters.tillDate, requestParameters.take, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
15081
+ }
14330
15082
  /**
14331
15083
  *
14332
15084
  * @summary Returns the user\'s Points of Sale
@@ -14562,6 +15314,15 @@ exports.GetAllUsersTypeEnum = {
14562
15314
  Invoice: 'INVOICE',
14563
15315
  AutomaticInvoice: 'AUTOMATIC_INVOICE'
14564
15316
  };
15317
+ /**
15318
+ * @export
15319
+ */
15320
+ exports.GetUsersPaymentRequestsStatusEnum = {
15321
+ Pending: 'PENDING',
15322
+ Paid: 'PAID',
15323
+ Expired: 'EXPIRED',
15324
+ Cancelled: 'CANCELLED'
15325
+ };
14565
15326
  /**
14566
15327
  * @export
14567
15328
  */