@finverse/sdk-typescript 0.0.378 → 0.0.382

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.MandateAuthLinkCustomizationsLanguageEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestLanguageEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = exports.IntegrationMetadataPaymentUserRequestIntegrationIdEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FvEmbeddedErrorModelTypeEnum = exports.FeePaidByEnum = exports.FVCardDetailsFundingEnum = exports.FVCardStatusEnum = exports.DisputeResponseDisputeStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestCardDetailsFundingEnum = exports.CreateCardRequestStatusEnum = exports.CompleteKcpPaymentRequestCardPointUseEnum = exports.CardFvLinkResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AutopayEnrollmentConfigurationEnrollmentPrefillValueEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
26
- exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.ListInstitutionsInstitutionTypeEnum = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.UpdateTestPaymentStatusRequestStatusEnum = exports.UpdatePaymentUserRequestUserTypeEnum = exports.TransactionLimitsResponsePeriodEnum = exports.TransactionLimitsRequestPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.SelectPaymentMethodRequestSenderTypeEnum = exports.SelectPaymentMethodRequestPaymentMethodTypeEnum = exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutSnapshotResponseTypeEnum = exports.PayoutSnapshotResponseStatusEnum = exports.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsRequestPaymentMethodTypesEnum = exports.PaymentSetupOptionsRequestFuturePaymentsEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataGocardlessMetadataFundsSettlementEnum = exports.PaymentMethodIntegrationMetadataGocardlessMetadataStatusEnum = exports.PaymentMethodIntegrationMetadataAdyenMetadataRecurringProcessingModelEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentFvLinkResponseTypeEnum = exports.PaymentFvLinkResponseStatusEnum = exports.PaymentAccountDetailsWithEnrichedDataAccountTypeEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.ManualPaymentConfirmationResponseStatusEnum = exports.MandateSenderAccountAccountTypeEnum = void 0;
27
- exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.ListPayoutsPayoutTypesEnum = exports.ListPayoutsStatusesEnum = exports.ListPaymentsPaymentTypesEnum = exports.ListPaymentsPaymentTypeEnum = exports.ListPaymentsSenderTypeEnum = exports.ListPaymentsStatusesEnum = exports.ListPaymentAccountsWithEnrichedDataAccountTypeEnum = exports.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = exports.ListDisputesStatusesEnum = exports.ListDetokenizedMandatesSenderTypeEnum = exports.ListDetokenizedMandatesStatusesEnum = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = void 0;
25
+ exports.MandateAuthLinkCustomizationsUiModeEnum = exports.MandateAuthLinkCustomizationsLanguageEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestLanguageEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = exports.IntegrationMetadataPaymentUserRequestIntegrationIdEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBillResponseStatusEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FvEmbeddedErrorModelTypeEnum = exports.FeePaidByEnum = exports.FVCardDetailsFundingEnum = exports.FVCardStatusEnum = exports.FVBillStatusEnum = exports.DisputeResponseDisputeStatusEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestCardDetailsFundingEnum = exports.CreateCardRequestStatusEnum = exports.CompleteKcpPaymentRequestCardPointUseEnum = exports.CardFvLinkResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AutopayEnrollmentConfigurationEnrollmentPrefillValueEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
26
+ exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.ListInstitutionsInstitutionTypeEnum = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.UpdateTestPaymentStatusRequestStatusEnum = exports.UpdatePaymentUserRequestUserTypeEnum = exports.TransactionLimitsResponsePeriodEnum = exports.TransactionLimitsRequestPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.SelectPaymentMethodRequestSenderTypeEnum = exports.SelectPaymentMethodRequestPaymentMethodTypeEnum = exports.RefreshLoginIdentityLinkCustomizationsUiModeEnum = exports.RefreshLoginIdentityLinkCustomizationsLanguageEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutSnapshotResponseTypeEnum = exports.PayoutSnapshotResponseStatusEnum = exports.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsRequestPaymentMethodTypesEnum = exports.PaymentSetupOptionsRequestFuturePaymentsEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataGocardlessMetadataFundsSettlementEnum = exports.PaymentMethodIntegrationMetadataGocardlessMetadataStatusEnum = exports.PaymentMethodIntegrationMetadataAdyenMetadataRecurringProcessingModelEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentLinkCustomizationsLanguageEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentFvLinkResponseTypeEnum = exports.PaymentFvLinkResponseStatusEnum = exports.PaymentAccountDetailsWithEnrichedDataAccountTypeEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.ManualPaymentConfirmationResponseStatusEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = void 0;
27
+ exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.ListPayoutsPayoutTypesEnum = exports.ListPayoutsStatusesEnum = exports.ListPaymentsPaymentTypesEnum = exports.ListPaymentsPaymentTypeEnum = exports.ListPaymentsSenderTypeEnum = exports.ListPaymentsStatusesEnum = exports.ListPaymentAccountsWithEnrichedDataAccountTypeEnum = exports.ListMandatesSenderTypeEnum = exports.ListMandatesStatusesEnum = exports.ListDisputesStatusesEnum = exports.ListDetokenizedMandatesSenderTypeEnum = exports.ListDetokenizedMandatesStatusesEnum = exports.ListBillsStatusesEnum = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.GetBalanceHistorySourceEnum = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.TokenGrantTypeEnum = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -83,7 +83,7 @@ exports.BadRequestModelV2ErrorTypeEnum = {
83
83
  };
84
84
  exports.CardFvLinkResponseStatusEnum = {
85
85
  Unknown: 'UNKNOWN',
86
- Processing: 'PROCESSING',
86
+ Created: 'CREATED',
87
87
  Succeeded: 'SUCCEEDED',
88
88
  Cancelled: 'CANCELLED',
89
89
  Failed: 'FAILED',
@@ -138,9 +138,6 @@ exports.CreatePaymentUserRequestUserTypeEnum = {
138
138
  exports.CreateRecipientAccountAccountTypeEnum = {
139
139
  ExternalAccount: 'EXTERNAL_ACCOUNT',
140
140
  };
141
- exports.CustomerPaymentInstructionTypeEnum = {
142
- DebitAuthorization: 'DEBIT_AUTHORIZATION',
143
- };
144
141
  exports.DisputeResponseDisputeStatusEnum = {
145
142
  Unknown: 'UNKNOWN',
146
143
  Undefended: 'UNDEFENDED',
@@ -150,9 +147,16 @@ exports.DisputeResponseDisputeStatusEnum = {
150
147
  Lost: 'LOST',
151
148
  Won: 'WON',
152
149
  };
150
+ exports.FVBillStatusEnum = {
151
+ Unknown: 'UNKNOWN',
152
+ Unpaid: 'UNPAID',
153
+ Paid: 'PAID',
154
+ Cancelled: 'CANCELLED',
155
+ Failed: 'FAILED',
156
+ };
153
157
  exports.FVCardStatusEnum = {
154
158
  Unknown: 'UNKNOWN',
155
- Processing: 'PROCESSING',
159
+ Created: 'CREATED',
156
160
  Succeeded: 'SUCCEEDED',
157
161
  Cancelled: 'CANCELLED',
158
162
  Failed: 'FAILED',
@@ -183,6 +187,13 @@ exports.GetBalanceHistoryResponseSourceEnum = {
183
187
  Institution: 'INSTITUTION',
184
188
  Computed: 'COMPUTED',
185
189
  };
190
+ exports.GetBillResponseStatusEnum = {
191
+ Unknown: 'UNKNOWN',
192
+ Unpaid: 'UNPAID',
193
+ Paid: 'PAID',
194
+ Cancelled: 'CANCELLED',
195
+ Failed: 'FAILED',
196
+ };
186
197
  exports.GetMandateAuthLinkResponseTokenTypeEnum = {
187
198
  Bearer: 'Bearer',
188
199
  };
@@ -332,9 +343,6 @@ exports.PaymentInfoPaymentsSupportedEnum = {
332
343
  Mandate: 'MANDATE',
333
344
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
334
345
  };
335
- exports.PaymentInstructionTypeEnum = {
336
- DebitAuthorization: 'DEBIT_AUTHORIZATION',
337
- };
338
346
  exports.PaymentLinkCustomizationsLanguageEnum = {
339
347
  En: 'en',
340
348
  Vi: 'vi',
@@ -522,38 +530,6 @@ exports.UpdateTestPaymentStatusRequestStatusEnum = {
522
530
  */
523
531
  const CustomerApiAxiosParamCreator = function (configuration) {
524
532
  return {
525
- /**
526
- * Create a new payment instruction to be used when linking to perform new payment
527
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
528
- * @param {*} [options] Override http request option.
529
- * @throws {RequiredError}
530
- */
531
- createPaymentInstruction: (paymentInstruction_1, ...args_1) => __awaiter(this, [paymentInstruction_1, ...args_1], void 0, function* (paymentInstruction, options = {}) {
532
- // verify required parameter 'paymentInstruction' is not null or undefined
533
- (0, common_1.assertParamExists)('createPaymentInstruction', 'paymentInstruction', paymentInstruction);
534
- const localVarPath = `/payments/instruction`;
535
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
536
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
537
- let baseOptions;
538
- if (configuration) {
539
- baseOptions = configuration.baseOptions;
540
- }
541
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
542
- const localVarHeaderParameter = {};
543
- const localVarQueryParameter = {};
544
- // authentication Oauth2 required
545
- // oauth required
546
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
547
- localVarHeaderParameter['Content-Type'] = 'application/json';
548
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
549
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
550
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
551
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(paymentInstruction, localVarRequestOptions, configuration);
552
- return {
553
- url: (0, common_1.toPathString)(localVarUrlObj),
554
- options: localVarRequestOptions,
555
- };
556
- }),
557
533
  /**
558
534
  * Get a specific institution by institutionId
559
535
  * @param {string} institutionId The institution id
@@ -611,37 +587,6 @@ const CustomerApiAxiosParamCreator = function (configuration) {
611
587
  options: localVarRequestOptions,
612
588
  };
613
589
  }),
614
- /**
615
- * [DEPRECATED] Get payment instructions by payment_instruction_id
616
- * @param {string} paymentInstructionId The id of a payment instruction
617
- * @param {*} [options] Override http request option.
618
- * @deprecated
619
- * @throws {RequiredError}
620
- */
621
- getPaymentInstruction: (paymentInstructionId_1, ...args_1) => __awaiter(this, [paymentInstructionId_1, ...args_1], void 0, function* (paymentInstructionId, options = {}) {
622
- // verify required parameter 'paymentInstructionId' is not null or undefined
623
- (0, common_1.assertParamExists)('getPaymentInstruction', 'paymentInstructionId', paymentInstructionId);
624
- const localVarPath = `/payments/instruction/{paymentInstructionId}`.replace(`{${'paymentInstructionId'}}`, encodeURIComponent(String(paymentInstructionId)));
625
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
626
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
627
- let baseOptions;
628
- if (configuration) {
629
- baseOptions = configuration.baseOptions;
630
- }
631
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
632
- const localVarHeaderParameter = {};
633
- const localVarQueryParameter = {};
634
- // authentication Oauth2 required
635
- // oauth required
636
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
637
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
638
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
640
- return {
641
- url: (0, common_1.toPathString)(localVarUrlObj),
642
- options: localVarRequestOptions,
643
- };
644
- }),
645
590
  /**
646
591
  * Get a list of institutions
647
592
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -727,21 +672,6 @@ exports.CustomerApiAxiosParamCreator = CustomerApiAxiosParamCreator;
727
672
  const CustomerApiFp = function (configuration) {
728
673
  const localVarAxiosParamCreator = (0, exports.CustomerApiAxiosParamCreator)(configuration);
729
674
  return {
730
- /**
731
- * Create a new payment instruction to be used when linking to perform new payment
732
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
733
- * @param {*} [options] Override http request option.
734
- * @throws {RequiredError}
735
- */
736
- createPaymentInstruction(paymentInstruction, options) {
737
- return __awaiter(this, void 0, void 0, function* () {
738
- var _a, _b, _c;
739
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentInstruction(paymentInstruction, options);
740
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
741
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomerApi.createPaymentInstruction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
742
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
743
- });
744
- },
745
675
  /**
746
676
  * Get a specific institution by institutionId
747
677
  * @param {string} institutionId The institution id
@@ -771,22 +701,6 @@ const CustomerApiFp = function (configuration) {
771
701
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
772
702
  });
773
703
  },
774
- /**
775
- * [DEPRECATED] Get payment instructions by payment_instruction_id
776
- * @param {string} paymentInstructionId The id of a payment instruction
777
- * @param {*} [options] Override http request option.
778
- * @deprecated
779
- * @throws {RequiredError}
780
- */
781
- getPaymentInstruction(paymentInstructionId, options) {
782
- return __awaiter(this, void 0, void 0, function* () {
783
- var _a, _b, _c;
784
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentInstruction(paymentInstructionId, options);
785
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
786
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomerApi.getPaymentInstruction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
787
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
788
- });
789
- },
790
704
  /**
791
705
  * Get a list of institutions
792
706
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -830,17 +744,6 @@ exports.CustomerApiFp = CustomerApiFp;
830
744
  const CustomerApiFactory = function (configuration, basePath, axios) {
831
745
  const localVarFp = (0, exports.CustomerApiFp)(configuration);
832
746
  return {
833
- /**
834
- * Create a new payment instruction to be used when linking to perform new payment
835
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
836
- * @param {*} [options] Override http request option.
837
- * @throws {RequiredError}
838
- */
839
- createPaymentInstruction(paymentInstruction, options) {
840
- return localVarFp
841
- .createPaymentInstruction(paymentInstruction, options)
842
- .then((request) => request(axios, basePath));
843
- },
844
747
  /**
845
748
  * Get a specific institution by institutionId
846
749
  * @param {string} institutionId The institution id
@@ -858,18 +761,6 @@ const CustomerApiFactory = function (configuration, basePath, axios) {
858
761
  getInstitutionsForCustomer(options) {
859
762
  return localVarFp.getInstitutionsForCustomer(options).then((request) => request(axios, basePath));
860
763
  },
861
- /**
862
- * [DEPRECATED] Get payment instructions by payment_instruction_id
863
- * @param {string} paymentInstructionId The id of a payment instruction
864
- * @param {*} [options] Override http request option.
865
- * @deprecated
866
- * @throws {RequiredError}
867
- */
868
- getPaymentInstruction(paymentInstructionId, options) {
869
- return localVarFp
870
- .getPaymentInstruction(paymentInstructionId, options)
871
- .then((request) => request(axios, basePath));
872
- },
873
764
  /**
874
765
  * Get a list of institutions
875
766
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -903,18 +794,6 @@ exports.CustomerApiFactory = CustomerApiFactory;
903
794
  * @extends {BaseAPI}
904
795
  */
905
796
  class CustomerApi extends base_1.BaseAPI {
906
- /**
907
- * Create a new payment instruction to be used when linking to perform new payment
908
- * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
909
- * @param {*} [options] Override http request option.
910
- * @throws {RequiredError}
911
- * @memberof CustomerApi
912
- */
913
- createPaymentInstruction(paymentInstruction, options) {
914
- return (0, exports.CustomerApiFp)(this.configuration)
915
- .createPaymentInstruction(paymentInstruction, options)
916
- .then((request) => request(this.axios, this.basePath));
917
- }
918
797
  /**
919
798
  * Get a specific institution by institutionId
920
799
  * @param {string} institutionId The institution id
@@ -938,19 +817,6 @@ class CustomerApi extends base_1.BaseAPI {
938
817
  .getInstitutionsForCustomer(options)
939
818
  .then((request) => request(this.axios, this.basePath));
940
819
  }
941
- /**
942
- * [DEPRECATED] Get payment instructions by payment_instruction_id
943
- * @param {string} paymentInstructionId The id of a payment instruction
944
- * @param {*} [options] Override http request option.
945
- * @deprecated
946
- * @throws {RequiredError}
947
- * @memberof CustomerApi
948
- */
949
- getPaymentInstruction(paymentInstructionId, options) {
950
- return (0, exports.CustomerApiFp)(this.configuration)
951
- .getPaymentInstruction(paymentInstructionId, options)
952
- .then((request) => request(this.axios, this.basePath));
953
- }
954
820
  /**
955
821
  * Get a list of institutions
956
822
  * @param {string} [country] (Deprecated) The country the institution belongs to
@@ -3071,44 +2937,6 @@ const PaymentApiAxiosParamCreator = function (configuration) {
3071
2937
  options: localVarRequestOptions,
3072
2938
  };
3073
2939
  }),
3074
- /**
3075
- * Create a scheduled payout
3076
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
3077
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
3078
- * @param {*} [options] Override http request option.
3079
- * @throws {RequiredError}
3080
- */
3081
- createScheduledPayout: (idempotencyKey_1, createScheduledPayoutRequest_1, ...args_1) => __awaiter(this, [idempotencyKey_1, createScheduledPayoutRequest_1, ...args_1], void 0, function* (idempotencyKey, createScheduledPayoutRequest, options = {}) {
3082
- // verify required parameter 'idempotencyKey' is not null or undefined
3083
- (0, common_1.assertParamExists)('createScheduledPayout', 'idempotencyKey', idempotencyKey);
3084
- // verify required parameter 'createScheduledPayoutRequest' is not null or undefined
3085
- (0, common_1.assertParamExists)('createScheduledPayout', 'createScheduledPayoutRequest', createScheduledPayoutRequest);
3086
- const localVarPath = `/payouts/scheduled`;
3087
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3088
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3089
- let baseOptions;
3090
- if (configuration) {
3091
- baseOptions = configuration.baseOptions;
3092
- }
3093
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3094
- const localVarHeaderParameter = {};
3095
- const localVarQueryParameter = {};
3096
- // authentication Oauth2 required
3097
- // oauth required
3098
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
3099
- localVarHeaderParameter['Content-Type'] = 'application/json';
3100
- if (idempotencyKey != null) {
3101
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
3102
- }
3103
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3104
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3105
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3106
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createScheduledPayoutRequest, localVarRequestOptions, configuration);
3107
- return {
3108
- url: (0, common_1.toPathString)(localVarUrlObj),
3109
- options: localVarRequestOptions,
3110
- };
3111
- }),
3112
2940
  /**
3113
2941
  * delete payment account
3114
2942
  * @param {string} paymentAccountId The payment account id
@@ -3180,6 +3008,63 @@ const PaymentApiAxiosParamCreator = function (configuration) {
3180
3008
  options: localVarRequestOptions,
3181
3009
  };
3182
3010
  }),
3011
+ /**
3012
+ * Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
3013
+ * @param {*} [options] Override http request option.
3014
+ * @throws {RequiredError}
3015
+ */
3016
+ getAdyenCardSetupPaymentMethods: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3017
+ const localVarPath = `/payment_link/fvlink/adyen/payment_methods`;
3018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3019
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3020
+ let baseOptions;
3021
+ if (configuration) {
3022
+ baseOptions = configuration.baseOptions;
3023
+ }
3024
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3025
+ const localVarHeaderParameter = {};
3026
+ const localVarQueryParameter = {};
3027
+ // authentication Oauth2 required
3028
+ // oauth required
3029
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
3030
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3032
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3033
+ return {
3034
+ url: (0, common_1.toPathString)(localVarUrlObj),
3035
+ options: localVarRequestOptions,
3036
+ };
3037
+ }),
3038
+ /**
3039
+ * Get a bill by ID
3040
+ * @param {string} billId
3041
+ * @param {*} [options] Override http request option.
3042
+ * @throws {RequiredError}
3043
+ */
3044
+ getBill: (billId_1, ...args_1) => __awaiter(this, [billId_1, ...args_1], void 0, function* (billId, options = {}) {
3045
+ // verify required parameter 'billId' is not null or undefined
3046
+ (0, common_1.assertParamExists)('getBill', 'billId', billId);
3047
+ const localVarPath = `/bills/{billId}`.replace(`{${'billId'}}`, encodeURIComponent(String(billId)));
3048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3049
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3050
+ let baseOptions;
3051
+ if (configuration) {
3052
+ baseOptions = configuration.baseOptions;
3053
+ }
3054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3055
+ const localVarHeaderParameter = {};
3056
+ const localVarQueryParameter = {};
3057
+ // authentication Oauth2 required
3058
+ // oauth required
3059
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
3060
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3062
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3063
+ return {
3064
+ url: (0, common_1.toPathString)(localVarUrlObj),
3065
+ options: localVarRequestOptions,
3066
+ };
3067
+ }),
3183
3068
  /**
3184
3069
  * Get Mandate details by mandate_id
3185
3070
  * @param {string} mandateId mandate id
@@ -3419,6 +3304,67 @@ const PaymentApiAxiosParamCreator = function (configuration) {
3419
3304
  options: localVarRequestOptions,
3420
3305
  };
3421
3306
  }),
3307
+ /**
3308
+ * List bills
3309
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
3310
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
3311
+ * @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
3312
+ * @param {string} [userId]
3313
+ * @param {string} [externalUserId]
3314
+ * @param {Array<string>} [currencies]
3315
+ * @param {number} [offset] default is 0
3316
+ * @param {number} [limit] default is 500, max is 1000
3317
+ * @param {*} [options] Override http request option.
3318
+ * @throws {RequiredError}
3319
+ */
3320
+ listBills: (dateFrom_1, dateTo_1, statuses_1, userId_1, externalUserId_1, currencies_1, offset_1, limit_1, ...args_1) => __awaiter(this, [dateFrom_1, dateTo_1, statuses_1, userId_1, externalUserId_1, currencies_1, offset_1, limit_1, ...args_1], void 0, function* (dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options = {}) {
3321
+ const localVarPath = `/bills`;
3322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3323
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3324
+ let baseOptions;
3325
+ if (configuration) {
3326
+ baseOptions = configuration.baseOptions;
3327
+ }
3328
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3329
+ const localVarHeaderParameter = {};
3330
+ const localVarQueryParameter = {};
3331
+ // authentication Oauth2 required
3332
+ // oauth required
3333
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
3334
+ if (dateFrom !== undefined) {
3335
+ localVarQueryParameter['date_from'] =
3336
+ dateFrom instanceof Date ? dateFrom.toISOString().substring(0, 10) : dateFrom;
3337
+ }
3338
+ if (dateTo !== undefined) {
3339
+ localVarQueryParameter['date_to'] =
3340
+ dateTo instanceof Date ? dateTo.toISOString().substring(0, 10) : dateTo;
3341
+ }
3342
+ if (statuses) {
3343
+ localVarQueryParameter['statuses'] = statuses.join(base_1.COLLECTION_FORMATS.csv);
3344
+ }
3345
+ if (userId !== undefined) {
3346
+ localVarQueryParameter['user_id'] = userId;
3347
+ }
3348
+ if (externalUserId !== undefined) {
3349
+ localVarQueryParameter['external_user_id'] = externalUserId;
3350
+ }
3351
+ if (currencies) {
3352
+ localVarQueryParameter['currencies'] = currencies.join(base_1.COLLECTION_FORMATS.csv);
3353
+ }
3354
+ if (offset !== undefined) {
3355
+ localVarQueryParameter['offset'] = offset;
3356
+ }
3357
+ if (limit !== undefined) {
3358
+ localVarQueryParameter['limit'] = limit;
3359
+ }
3360
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3361
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3362
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3363
+ return {
3364
+ url: (0, common_1.toPathString)(localVarUrlObj),
3365
+ options: localVarRequestOptions,
3366
+ };
3367
+ }),
3422
3368
  /**
3423
3369
  * List mandates details
3424
3370
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -3883,6 +3829,70 @@ const PaymentApiAxiosParamCreator = function (configuration) {
3883
3829
  options: localVarRequestOptions,
3884
3830
  };
3885
3831
  }),
3832
+ /**
3833
+ * Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
3834
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
3835
+ * @param {*} [options] Override http request option.
3836
+ * @throws {RequiredError}
3837
+ */
3838
+ submitAdyenCardSetupPayment: (submitAdyenCardSetupPaymentRequest_1, ...args_1) => __awaiter(this, [submitAdyenCardSetupPaymentRequest_1, ...args_1], void 0, function* (submitAdyenCardSetupPaymentRequest, options = {}) {
3839
+ // verify required parameter 'submitAdyenCardSetupPaymentRequest' is not null or undefined
3840
+ (0, common_1.assertParamExists)('submitAdyenCardSetupPayment', 'submitAdyenCardSetupPaymentRequest', submitAdyenCardSetupPaymentRequest);
3841
+ const localVarPath = `/payment_link/fvlink/adyen/payments`;
3842
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3843
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3844
+ let baseOptions;
3845
+ if (configuration) {
3846
+ baseOptions = configuration.baseOptions;
3847
+ }
3848
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3849
+ const localVarHeaderParameter = {};
3850
+ const localVarQueryParameter = {};
3851
+ // authentication Oauth2 required
3852
+ // oauth required
3853
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
3854
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3855
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3857
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3858
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitAdyenCardSetupPaymentRequest, localVarRequestOptions, configuration);
3859
+ return {
3860
+ url: (0, common_1.toPathString)(localVarUrlObj),
3861
+ options: localVarRequestOptions,
3862
+ };
3863
+ }),
3864
+ /**
3865
+ * Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
3866
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
3867
+ * @param {*} [options] Override http request option.
3868
+ * @throws {RequiredError}
3869
+ */
3870
+ submitAdyenCardSetupPaymentDetails: (submitAdyenCardSetupPaymentDetailsRequest_1, ...args_1) => __awaiter(this, [submitAdyenCardSetupPaymentDetailsRequest_1, ...args_1], void 0, function* (submitAdyenCardSetupPaymentDetailsRequest, options = {}) {
3871
+ // verify required parameter 'submitAdyenCardSetupPaymentDetailsRequest' is not null or undefined
3872
+ (0, common_1.assertParamExists)('submitAdyenCardSetupPaymentDetails', 'submitAdyenCardSetupPaymentDetailsRequest', submitAdyenCardSetupPaymentDetailsRequest);
3873
+ const localVarPath = `/payment_link/fvlink/adyen/payments/details`;
3874
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3875
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3876
+ let baseOptions;
3877
+ if (configuration) {
3878
+ baseOptions = configuration.baseOptions;
3879
+ }
3880
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3881
+ const localVarHeaderParameter = {};
3882
+ const localVarQueryParameter = {};
3883
+ // authentication Oauth2 required
3884
+ // oauth required
3885
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
3886
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3887
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3889
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3890
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitAdyenCardSetupPaymentDetailsRequest, localVarRequestOptions, configuration);
3891
+ return {
3892
+ url: (0, common_1.toPathString)(localVarUrlObj),
3893
+ options: localVarRequestOptions,
3894
+ };
3895
+ }),
3886
3896
  /**
3887
3897
  * Submit authorization checklist items
3888
3898
  * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
@@ -4216,22 +4226,6 @@ const PaymentApiFp = function (configuration) {
4216
4226
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4217
4227
  });
4218
4228
  },
4219
- /**
4220
- * Create a scheduled payout
4221
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
4222
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
4223
- * @param {*} [options] Override http request option.
4224
- * @throws {RequiredError}
4225
- */
4226
- createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
4227
- return __awaiter(this, void 0, void 0, function* () {
4228
- var _a, _b, _c;
4229
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options);
4230
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4231
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.createScheduledPayout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4232
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4233
- });
4234
- },
4235
4229
  /**
4236
4230
  * delete payment account
4237
4231
  * @param {string} paymentAccountId The payment account id
@@ -4264,6 +4258,35 @@ const PaymentApiFp = function (configuration) {
4264
4258
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4265
4259
  });
4266
4260
  },
4261
+ /**
4262
+ * Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
4263
+ * @param {*} [options] Override http request option.
4264
+ * @throws {RequiredError}
4265
+ */
4266
+ getAdyenCardSetupPaymentMethods(options) {
4267
+ return __awaiter(this, void 0, void 0, function* () {
4268
+ var _a, _b, _c;
4269
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAdyenCardSetupPaymentMethods(options);
4270
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4271
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.getAdyenCardSetupPaymentMethods']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4272
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4273
+ });
4274
+ },
4275
+ /**
4276
+ * Get a bill by ID
4277
+ * @param {string} billId
4278
+ * @param {*} [options] Override http request option.
4279
+ * @throws {RequiredError}
4280
+ */
4281
+ getBill(billId, options) {
4282
+ return __awaiter(this, void 0, void 0, function* () {
4283
+ var _a, _b, _c;
4284
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBill(billId, options);
4285
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4286
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.getBill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4287
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4288
+ });
4289
+ },
4267
4290
  /**
4268
4291
  * Get Mandate details by mandate_id
4269
4292
  * @param {string} mandateId mandate id
@@ -4383,6 +4406,28 @@ const PaymentApiFp = function (configuration) {
4383
4406
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4384
4407
  });
4385
4408
  },
4409
+ /**
4410
+ * List bills
4411
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
4412
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
4413
+ * @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
4414
+ * @param {string} [userId]
4415
+ * @param {string} [externalUserId]
4416
+ * @param {Array<string>} [currencies]
4417
+ * @param {number} [offset] default is 0
4418
+ * @param {number} [limit] default is 500, max is 1000
4419
+ * @param {*} [options] Override http request option.
4420
+ * @throws {RequiredError}
4421
+ */
4422
+ listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options) {
4423
+ return __awaiter(this, void 0, void 0, function* () {
4424
+ var _a, _b, _c;
4425
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options);
4426
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4427
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.listBills']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4428
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4429
+ });
4430
+ },
4386
4431
  /**
4387
4432
  * List mandates details
4388
4433
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -4562,6 +4607,36 @@ const PaymentApiFp = function (configuration) {
4562
4607
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4563
4608
  });
4564
4609
  },
4610
+ /**
4611
+ * Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
4612
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
4613
+ * @param {*} [options] Override http request option.
4614
+ * @throws {RequiredError}
4615
+ */
4616
+ submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options) {
4617
+ return __awaiter(this, void 0, void 0, function* () {
4618
+ var _a, _b, _c;
4619
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options);
4620
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4621
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.submitAdyenCardSetupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4622
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4623
+ });
4624
+ },
4625
+ /**
4626
+ * Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
4627
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
4628
+ * @param {*} [options] Override http request option.
4629
+ * @throws {RequiredError}
4630
+ */
4631
+ submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options) {
4632
+ return __awaiter(this, void 0, void 0, function* () {
4633
+ var _a, _b, _c;
4634
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options);
4635
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4636
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.submitAdyenCardSetupPaymentDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4637
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4638
+ });
4639
+ },
4565
4640
  /**
4566
4641
  * Submit authorization checklist items
4567
4642
  * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
@@ -4767,18 +4842,6 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
4767
4842
  .createPaymentUser(createPaymentUserRequest, options)
4768
4843
  .then((request) => request(axios, basePath));
4769
4844
  },
4770
- /**
4771
- * Create a scheduled payout
4772
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
4773
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
4774
- * @param {*} [options] Override http request option.
4775
- * @throws {RequiredError}
4776
- */
4777
- createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
4778
- return localVarFp
4779
- .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
4780
- .then((request) => request(axios, basePath));
4781
- },
4782
4845
  /**
4783
4846
  * delete payment account
4784
4847
  * @param {string} paymentAccountId The payment account id
@@ -4801,6 +4864,23 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
4801
4864
  .downloadBalanceStatement(dateFrom, dateTo, currencies, options)
4802
4865
  .then((request) => request(axios, basePath));
4803
4866
  },
4867
+ /**
4868
+ * Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
4869
+ * @param {*} [options] Override http request option.
4870
+ * @throws {RequiredError}
4871
+ */
4872
+ getAdyenCardSetupPaymentMethods(options) {
4873
+ return localVarFp.getAdyenCardSetupPaymentMethods(options).then((request) => request(axios, basePath));
4874
+ },
4875
+ /**
4876
+ * Get a bill by ID
4877
+ * @param {string} billId
4878
+ * @param {*} [options] Override http request option.
4879
+ * @throws {RequiredError}
4880
+ */
4881
+ getBill(billId, options) {
4882
+ return localVarFp.getBill(billId, options).then((request) => request(axios, basePath));
4883
+ },
4804
4884
  /**
4805
4885
  * Get Mandate details by mandate_id
4806
4886
  * @param {string} mandateId mandate id
@@ -4874,6 +4954,24 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
4874
4954
  getPayoutById(payoutId, options) {
4875
4955
  return localVarFp.getPayoutById(payoutId, options).then((request) => request(axios, basePath));
4876
4956
  },
4957
+ /**
4958
+ * List bills
4959
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
4960
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
4961
+ * @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
4962
+ * @param {string} [userId]
4963
+ * @param {string} [externalUserId]
4964
+ * @param {Array<string>} [currencies]
4965
+ * @param {number} [offset] default is 0
4966
+ * @param {number} [limit] default is 500, max is 1000
4967
+ * @param {*} [options] Override http request option.
4968
+ * @throws {RequiredError}
4969
+ */
4970
+ listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options) {
4971
+ return localVarFp
4972
+ .listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options)
4973
+ .then((request) => request(axios, basePath));
4974
+ },
4877
4975
  /**
4878
4976
  * List mandates details
4879
4977
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -5011,6 +5109,28 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
5011
5109
  setMandateInstitution(updateRequest, options) {
5012
5110
  return localVarFp.setMandateInstitution(updateRequest, options).then((request) => request(axios, basePath));
5013
5111
  },
5112
+ /**
5113
+ * Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
5114
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
5115
+ * @param {*} [options] Override http request option.
5116
+ * @throws {RequiredError}
5117
+ */
5118
+ submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options) {
5119
+ return localVarFp
5120
+ .submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options)
5121
+ .then((request) => request(axios, basePath));
5122
+ },
5123
+ /**
5124
+ * Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
5125
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
5126
+ * @param {*} [options] Override http request option.
5127
+ * @throws {RequiredError}
5128
+ */
5129
+ submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options) {
5130
+ return localVarFp
5131
+ .submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options)
5132
+ .then((request) => request(axios, basePath));
5133
+ },
5014
5134
  /**
5015
5135
  * Submit authorization checklist items
5016
5136
  * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
@@ -5218,19 +5338,6 @@ class PaymentApi extends base_1.BaseAPI {
5218
5338
  .createPaymentUser(createPaymentUserRequest, options)
5219
5339
  .then((request) => request(this.axios, this.basePath));
5220
5340
  }
5221
- /**
5222
- * Create a scheduled payout
5223
- * @param {string} idempotencyKey A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
5224
- * @param {CreateScheduledPayoutRequest} createScheduledPayoutRequest Request body containing information to create scheduled payout
5225
- * @param {*} [options] Override http request option.
5226
- * @throws {RequiredError}
5227
- * @memberof PaymentApi
5228
- */
5229
- createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options) {
5230
- return (0, exports.PaymentApiFp)(this.configuration)
5231
- .createScheduledPayout(idempotencyKey, createScheduledPayoutRequest, options)
5232
- .then((request) => request(this.axios, this.basePath));
5233
- }
5234
5341
  /**
5235
5342
  * delete payment account
5236
5343
  * @param {string} paymentAccountId The payment account id
@@ -5257,6 +5364,29 @@ class PaymentApi extends base_1.BaseAPI {
5257
5364
  .downloadBalanceStatement(dateFrom, dateTo, currencies, options)
5258
5365
  .then((request) => request(this.axios, this.basePath));
5259
5366
  }
5367
+ /**
5368
+ * Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
5369
+ * @param {*} [options] Override http request option.
5370
+ * @throws {RequiredError}
5371
+ * @memberof PaymentApi
5372
+ */
5373
+ getAdyenCardSetupPaymentMethods(options) {
5374
+ return (0, exports.PaymentApiFp)(this.configuration)
5375
+ .getAdyenCardSetupPaymentMethods(options)
5376
+ .then((request) => request(this.axios, this.basePath));
5377
+ }
5378
+ /**
5379
+ * Get a bill by ID
5380
+ * @param {string} billId
5381
+ * @param {*} [options] Override http request option.
5382
+ * @throws {RequiredError}
5383
+ * @memberof PaymentApi
5384
+ */
5385
+ getBill(billId, options) {
5386
+ return (0, exports.PaymentApiFp)(this.configuration)
5387
+ .getBill(billId, options)
5388
+ .then((request) => request(this.axios, this.basePath));
5389
+ }
5260
5390
  /**
5261
5391
  * Get Mandate details by mandate_id
5262
5392
  * @param {string} mandateId mandate id
@@ -5352,6 +5482,25 @@ class PaymentApi extends base_1.BaseAPI {
5352
5482
  .getPayoutById(payoutId, options)
5353
5483
  .then((request) => request(this.axios, this.basePath));
5354
5484
  }
5485
+ /**
5486
+ * List bills
5487
+ * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
5488
+ * @param {string} [dateTo] ISO format (YYYY-MM-DD)
5489
+ * @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
5490
+ * @param {string} [userId]
5491
+ * @param {string} [externalUserId]
5492
+ * @param {Array<string>} [currencies]
5493
+ * @param {number} [offset] default is 0
5494
+ * @param {number} [limit] default is 500, max is 1000
5495
+ * @param {*} [options] Override http request option.
5496
+ * @throws {RequiredError}
5497
+ * @memberof PaymentApi
5498
+ */
5499
+ listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options) {
5500
+ return (0, exports.PaymentApiFp)(this.configuration)
5501
+ .listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options)
5502
+ .then((request) => request(this.axios, this.basePath));
5503
+ }
5355
5504
  /**
5356
5505
  * List mandates details
5357
5506
  * @param {string} [dateFrom] ISO format (YYYY-MM-DD)
@@ -5504,6 +5653,30 @@ class PaymentApi extends base_1.BaseAPI {
5504
5653
  .setMandateInstitution(updateRequest, options)
5505
5654
  .then((request) => request(this.axios, this.basePath));
5506
5655
  }
5656
+ /**
5657
+ * Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
5658
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
5659
+ * @param {*} [options] Override http request option.
5660
+ * @throws {RequiredError}
5661
+ * @memberof PaymentApi
5662
+ */
5663
+ submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options) {
5664
+ return (0, exports.PaymentApiFp)(this.configuration)
5665
+ .submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options)
5666
+ .then((request) => request(this.axios, this.basePath));
5667
+ }
5668
+ /**
5669
+ * Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
5670
+ * @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
5671
+ * @param {*} [options] Override http request option.
5672
+ * @throws {RequiredError}
5673
+ * @memberof PaymentApi
5674
+ */
5675
+ submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options) {
5676
+ return (0, exports.PaymentApiFp)(this.configuration)
5677
+ .submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options)
5678
+ .then((request) => request(this.axios, this.basePath));
5679
+ }
5507
5680
  /**
5508
5681
  * Submit authorization checklist items
5509
5682
  * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
@@ -5558,6 +5731,16 @@ class PaymentApi extends base_1.BaseAPI {
5558
5731
  }
5559
5732
  }
5560
5733
  exports.PaymentApi = PaymentApi;
5734
+ /**
5735
+ * @export
5736
+ */
5737
+ exports.ListBillsStatusesEnum = {
5738
+ Unknown: 'UNKNOWN',
5739
+ Unpaid: 'UNPAID',
5740
+ Paid: 'PAID',
5741
+ Cancelled: 'CANCELLED',
5742
+ Failed: 'FAILED',
5743
+ };
5561
5744
  /**
5562
5745
  * @export
5563
5746
  */