@finverse/sdk-typescript 0.0.377 → 0.0.381
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.d.ts +735 -367
- package/dist/api.js +415 -153
- package/package.json +2 -2
- package/dist/test/paymentInstruction.spec.d.ts +0 -1
- package/dist/test/paymentInstruction.spec.js +0 -58
- package/dist/test/responses/paymentInstruction.d.ts +0 -3
- package/dist/test/responses/paymentInstruction.js +0 -29
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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
@@ -3180,6 +3046,63 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
3180
3046
|
options: localVarRequestOptions,
|
|
3181
3047
|
};
|
|
3182
3048
|
}),
|
|
3049
|
+
/**
|
|
3050
|
+
* Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
|
|
3051
|
+
* @param {*} [options] Override http request option.
|
|
3052
|
+
* @throws {RequiredError}
|
|
3053
|
+
*/
|
|
3054
|
+
getAdyenCardSetupPaymentMethods: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3055
|
+
const localVarPath = `/payment_link/fvlink/adyen/payment_methods`;
|
|
3056
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3057
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3058
|
+
let baseOptions;
|
|
3059
|
+
if (configuration) {
|
|
3060
|
+
baseOptions = configuration.baseOptions;
|
|
3061
|
+
}
|
|
3062
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3063
|
+
const localVarHeaderParameter = {};
|
|
3064
|
+
const localVarQueryParameter = {};
|
|
3065
|
+
// authentication Oauth2 required
|
|
3066
|
+
// oauth required
|
|
3067
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3068
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3069
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3070
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3071
|
+
return {
|
|
3072
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3073
|
+
options: localVarRequestOptions,
|
|
3074
|
+
};
|
|
3075
|
+
}),
|
|
3076
|
+
/**
|
|
3077
|
+
* Get a bill by ID
|
|
3078
|
+
* @param {string} billId
|
|
3079
|
+
* @param {*} [options] Override http request option.
|
|
3080
|
+
* @throws {RequiredError}
|
|
3081
|
+
*/
|
|
3082
|
+
getBill: (billId_1, ...args_1) => __awaiter(this, [billId_1, ...args_1], void 0, function* (billId, options = {}) {
|
|
3083
|
+
// verify required parameter 'billId' is not null or undefined
|
|
3084
|
+
(0, common_1.assertParamExists)('getBill', 'billId', billId);
|
|
3085
|
+
const localVarPath = `/bills/{billId}`.replace(`{${'billId'}}`, encodeURIComponent(String(billId)));
|
|
3086
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3087
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3088
|
+
let baseOptions;
|
|
3089
|
+
if (configuration) {
|
|
3090
|
+
baseOptions = configuration.baseOptions;
|
|
3091
|
+
}
|
|
3092
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3093
|
+
const localVarHeaderParameter = {};
|
|
3094
|
+
const localVarQueryParameter = {};
|
|
3095
|
+
// authentication Oauth2 required
|
|
3096
|
+
// oauth required
|
|
3097
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3098
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3099
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3100
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3101
|
+
return {
|
|
3102
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3103
|
+
options: localVarRequestOptions,
|
|
3104
|
+
};
|
|
3105
|
+
}),
|
|
3183
3106
|
/**
|
|
3184
3107
|
* Get Mandate details by mandate_id
|
|
3185
3108
|
* @param {string} mandateId mandate id
|
|
@@ -3419,6 +3342,67 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
3419
3342
|
options: localVarRequestOptions,
|
|
3420
3343
|
};
|
|
3421
3344
|
}),
|
|
3345
|
+
/**
|
|
3346
|
+
* List bills
|
|
3347
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
3348
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
3349
|
+
* @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
|
|
3350
|
+
* @param {string} [userId]
|
|
3351
|
+
* @param {string} [externalUserId]
|
|
3352
|
+
* @param {Array<string>} [currencies]
|
|
3353
|
+
* @param {number} [offset] default is 0
|
|
3354
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
3355
|
+
* @param {*} [options] Override http request option.
|
|
3356
|
+
* @throws {RequiredError}
|
|
3357
|
+
*/
|
|
3358
|
+
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 = {}) {
|
|
3359
|
+
const localVarPath = `/bills`;
|
|
3360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3361
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3362
|
+
let baseOptions;
|
|
3363
|
+
if (configuration) {
|
|
3364
|
+
baseOptions = configuration.baseOptions;
|
|
3365
|
+
}
|
|
3366
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3367
|
+
const localVarHeaderParameter = {};
|
|
3368
|
+
const localVarQueryParameter = {};
|
|
3369
|
+
// authentication Oauth2 required
|
|
3370
|
+
// oauth required
|
|
3371
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3372
|
+
if (dateFrom !== undefined) {
|
|
3373
|
+
localVarQueryParameter['date_from'] =
|
|
3374
|
+
dateFrom instanceof Date ? dateFrom.toISOString().substring(0, 10) : dateFrom;
|
|
3375
|
+
}
|
|
3376
|
+
if (dateTo !== undefined) {
|
|
3377
|
+
localVarQueryParameter['date_to'] =
|
|
3378
|
+
dateTo instanceof Date ? dateTo.toISOString().substring(0, 10) : dateTo;
|
|
3379
|
+
}
|
|
3380
|
+
if (statuses) {
|
|
3381
|
+
localVarQueryParameter['statuses'] = statuses.join(base_1.COLLECTION_FORMATS.csv);
|
|
3382
|
+
}
|
|
3383
|
+
if (userId !== undefined) {
|
|
3384
|
+
localVarQueryParameter['user_id'] = userId;
|
|
3385
|
+
}
|
|
3386
|
+
if (externalUserId !== undefined) {
|
|
3387
|
+
localVarQueryParameter['external_user_id'] = externalUserId;
|
|
3388
|
+
}
|
|
3389
|
+
if (currencies) {
|
|
3390
|
+
localVarQueryParameter['currencies'] = currencies.join(base_1.COLLECTION_FORMATS.csv);
|
|
3391
|
+
}
|
|
3392
|
+
if (offset !== undefined) {
|
|
3393
|
+
localVarQueryParameter['offset'] = offset;
|
|
3394
|
+
}
|
|
3395
|
+
if (limit !== undefined) {
|
|
3396
|
+
localVarQueryParameter['limit'] = limit;
|
|
3397
|
+
}
|
|
3398
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3399
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3400
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3401
|
+
return {
|
|
3402
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3403
|
+
options: localVarRequestOptions,
|
|
3404
|
+
};
|
|
3405
|
+
}),
|
|
3422
3406
|
/**
|
|
3423
3407
|
* List mandates details
|
|
3424
3408
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -3883,6 +3867,70 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
3883
3867
|
options: localVarRequestOptions,
|
|
3884
3868
|
};
|
|
3885
3869
|
}),
|
|
3870
|
+
/**
|
|
3871
|
+
* Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
|
|
3872
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
|
|
3873
|
+
* @param {*} [options] Override http request option.
|
|
3874
|
+
* @throws {RequiredError}
|
|
3875
|
+
*/
|
|
3876
|
+
submitAdyenCardSetupPayment: (submitAdyenCardSetupPaymentRequest_1, ...args_1) => __awaiter(this, [submitAdyenCardSetupPaymentRequest_1, ...args_1], void 0, function* (submitAdyenCardSetupPaymentRequest, options = {}) {
|
|
3877
|
+
// verify required parameter 'submitAdyenCardSetupPaymentRequest' is not null or undefined
|
|
3878
|
+
(0, common_1.assertParamExists)('submitAdyenCardSetupPayment', 'submitAdyenCardSetupPaymentRequest', submitAdyenCardSetupPaymentRequest);
|
|
3879
|
+
const localVarPath = `/payment_link/fvlink/adyen/payments`;
|
|
3880
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3881
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3882
|
+
let baseOptions;
|
|
3883
|
+
if (configuration) {
|
|
3884
|
+
baseOptions = configuration.baseOptions;
|
|
3885
|
+
}
|
|
3886
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3887
|
+
const localVarHeaderParameter = {};
|
|
3888
|
+
const localVarQueryParameter = {};
|
|
3889
|
+
// authentication Oauth2 required
|
|
3890
|
+
// oauth required
|
|
3891
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3892
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3893
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3894
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3895
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3896
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitAdyenCardSetupPaymentRequest, localVarRequestOptions, configuration);
|
|
3897
|
+
return {
|
|
3898
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3899
|
+
options: localVarRequestOptions,
|
|
3900
|
+
};
|
|
3901
|
+
}),
|
|
3902
|
+
/**
|
|
3903
|
+
* Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
|
|
3904
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
|
|
3905
|
+
* @param {*} [options] Override http request option.
|
|
3906
|
+
* @throws {RequiredError}
|
|
3907
|
+
*/
|
|
3908
|
+
submitAdyenCardSetupPaymentDetails: (submitAdyenCardSetupPaymentDetailsRequest_1, ...args_1) => __awaiter(this, [submitAdyenCardSetupPaymentDetailsRequest_1, ...args_1], void 0, function* (submitAdyenCardSetupPaymentDetailsRequest, options = {}) {
|
|
3909
|
+
// verify required parameter 'submitAdyenCardSetupPaymentDetailsRequest' is not null or undefined
|
|
3910
|
+
(0, common_1.assertParamExists)('submitAdyenCardSetupPaymentDetails', 'submitAdyenCardSetupPaymentDetailsRequest', submitAdyenCardSetupPaymentDetailsRequest);
|
|
3911
|
+
const localVarPath = `/payment_link/fvlink/adyen/payments/details`;
|
|
3912
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3913
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3914
|
+
let baseOptions;
|
|
3915
|
+
if (configuration) {
|
|
3916
|
+
baseOptions = configuration.baseOptions;
|
|
3917
|
+
}
|
|
3918
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3919
|
+
const localVarHeaderParameter = {};
|
|
3920
|
+
const localVarQueryParameter = {};
|
|
3921
|
+
// authentication Oauth2 required
|
|
3922
|
+
// oauth required
|
|
3923
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
3924
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3925
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3926
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3927
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3928
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitAdyenCardSetupPaymentDetailsRequest, localVarRequestOptions, configuration);
|
|
3929
|
+
return {
|
|
3930
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3931
|
+
options: localVarRequestOptions,
|
|
3932
|
+
};
|
|
3933
|
+
}),
|
|
3886
3934
|
/**
|
|
3887
3935
|
* Submit authorization checklist items
|
|
3888
3936
|
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
@@ -4264,6 +4312,35 @@ const PaymentApiFp = function (configuration) {
|
|
|
4264
4312
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4265
4313
|
});
|
|
4266
4314
|
},
|
|
4315
|
+
/**
|
|
4316
|
+
* Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
|
|
4317
|
+
* @param {*} [options] Override http request option.
|
|
4318
|
+
* @throws {RequiredError}
|
|
4319
|
+
*/
|
|
4320
|
+
getAdyenCardSetupPaymentMethods(options) {
|
|
4321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4322
|
+
var _a, _b, _c;
|
|
4323
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAdyenCardSetupPaymentMethods(options);
|
|
4324
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4325
|
+
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;
|
|
4326
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4327
|
+
});
|
|
4328
|
+
},
|
|
4329
|
+
/**
|
|
4330
|
+
* Get a bill by ID
|
|
4331
|
+
* @param {string} billId
|
|
4332
|
+
* @param {*} [options] Override http request option.
|
|
4333
|
+
* @throws {RequiredError}
|
|
4334
|
+
*/
|
|
4335
|
+
getBill(billId, options) {
|
|
4336
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4337
|
+
var _a, _b, _c;
|
|
4338
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBill(billId, options);
|
|
4339
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4340
|
+
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;
|
|
4341
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4342
|
+
});
|
|
4343
|
+
},
|
|
4267
4344
|
/**
|
|
4268
4345
|
* Get Mandate details by mandate_id
|
|
4269
4346
|
* @param {string} mandateId mandate id
|
|
@@ -4383,6 +4460,28 @@ const PaymentApiFp = function (configuration) {
|
|
|
4383
4460
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4384
4461
|
});
|
|
4385
4462
|
},
|
|
4463
|
+
/**
|
|
4464
|
+
* List bills
|
|
4465
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
4466
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
4467
|
+
* @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
|
|
4468
|
+
* @param {string} [userId]
|
|
4469
|
+
* @param {string} [externalUserId]
|
|
4470
|
+
* @param {Array<string>} [currencies]
|
|
4471
|
+
* @param {number} [offset] default is 0
|
|
4472
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
4473
|
+
* @param {*} [options] Override http request option.
|
|
4474
|
+
* @throws {RequiredError}
|
|
4475
|
+
*/
|
|
4476
|
+
listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options) {
|
|
4477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4478
|
+
var _a, _b, _c;
|
|
4479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options);
|
|
4480
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4481
|
+
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;
|
|
4482
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4483
|
+
});
|
|
4484
|
+
},
|
|
4386
4485
|
/**
|
|
4387
4486
|
* List mandates details
|
|
4388
4487
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -4562,6 +4661,36 @@ const PaymentApiFp = function (configuration) {
|
|
|
4562
4661
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4563
4662
|
});
|
|
4564
4663
|
},
|
|
4664
|
+
/**
|
|
4665
|
+
* Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
|
|
4666
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
|
|
4667
|
+
* @param {*} [options] Override http request option.
|
|
4668
|
+
* @throws {RequiredError}
|
|
4669
|
+
*/
|
|
4670
|
+
submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options) {
|
|
4671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4672
|
+
var _a, _b, _c;
|
|
4673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options);
|
|
4674
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4675
|
+
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;
|
|
4676
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4677
|
+
});
|
|
4678
|
+
},
|
|
4679
|
+
/**
|
|
4680
|
+
* Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
|
|
4681
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
|
|
4682
|
+
* @param {*} [options] Override http request option.
|
|
4683
|
+
* @throws {RequiredError}
|
|
4684
|
+
*/
|
|
4685
|
+
submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options) {
|
|
4686
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4687
|
+
var _a, _b, _c;
|
|
4688
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options);
|
|
4689
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4690
|
+
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;
|
|
4691
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4692
|
+
});
|
|
4693
|
+
},
|
|
4565
4694
|
/**
|
|
4566
4695
|
* Submit authorization checklist items
|
|
4567
4696
|
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
@@ -4801,6 +4930,23 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
4801
4930
|
.downloadBalanceStatement(dateFrom, dateTo, currencies, options)
|
|
4802
4931
|
.then((request) => request(axios, basePath));
|
|
4803
4932
|
},
|
|
4933
|
+
/**
|
|
4934
|
+
* Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
|
|
4935
|
+
* @param {*} [options] Override http request option.
|
|
4936
|
+
* @throws {RequiredError}
|
|
4937
|
+
*/
|
|
4938
|
+
getAdyenCardSetupPaymentMethods(options) {
|
|
4939
|
+
return localVarFp.getAdyenCardSetupPaymentMethods(options).then((request) => request(axios, basePath));
|
|
4940
|
+
},
|
|
4941
|
+
/**
|
|
4942
|
+
* Get a bill by ID
|
|
4943
|
+
* @param {string} billId
|
|
4944
|
+
* @param {*} [options] Override http request option.
|
|
4945
|
+
* @throws {RequiredError}
|
|
4946
|
+
*/
|
|
4947
|
+
getBill(billId, options) {
|
|
4948
|
+
return localVarFp.getBill(billId, options).then((request) => request(axios, basePath));
|
|
4949
|
+
},
|
|
4804
4950
|
/**
|
|
4805
4951
|
* Get Mandate details by mandate_id
|
|
4806
4952
|
* @param {string} mandateId mandate id
|
|
@@ -4874,6 +5020,24 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
4874
5020
|
getPayoutById(payoutId, options) {
|
|
4875
5021
|
return localVarFp.getPayoutById(payoutId, options).then((request) => request(axios, basePath));
|
|
4876
5022
|
},
|
|
5023
|
+
/**
|
|
5024
|
+
* List bills
|
|
5025
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
5026
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
5027
|
+
* @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
|
|
5028
|
+
* @param {string} [userId]
|
|
5029
|
+
* @param {string} [externalUserId]
|
|
5030
|
+
* @param {Array<string>} [currencies]
|
|
5031
|
+
* @param {number} [offset] default is 0
|
|
5032
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
5033
|
+
* @param {*} [options] Override http request option.
|
|
5034
|
+
* @throws {RequiredError}
|
|
5035
|
+
*/
|
|
5036
|
+
listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options) {
|
|
5037
|
+
return localVarFp
|
|
5038
|
+
.listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options)
|
|
5039
|
+
.then((request) => request(axios, basePath));
|
|
5040
|
+
},
|
|
4877
5041
|
/**
|
|
4878
5042
|
* List mandates details
|
|
4879
5043
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -5011,6 +5175,28 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
5011
5175
|
setMandateInstitution(updateRequest, options) {
|
|
5012
5176
|
return localVarFp.setMandateInstitution(updateRequest, options).then((request) => request(axios, basePath));
|
|
5013
5177
|
},
|
|
5178
|
+
/**
|
|
5179
|
+
* Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
|
|
5180
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
|
|
5181
|
+
* @param {*} [options] Override http request option.
|
|
5182
|
+
* @throws {RequiredError}
|
|
5183
|
+
*/
|
|
5184
|
+
submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options) {
|
|
5185
|
+
return localVarFp
|
|
5186
|
+
.submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options)
|
|
5187
|
+
.then((request) => request(axios, basePath));
|
|
5188
|
+
},
|
|
5189
|
+
/**
|
|
5190
|
+
* Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
|
|
5191
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
|
|
5192
|
+
* @param {*} [options] Override http request option.
|
|
5193
|
+
* @throws {RequiredError}
|
|
5194
|
+
*/
|
|
5195
|
+
submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options) {
|
|
5196
|
+
return localVarFp
|
|
5197
|
+
.submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options)
|
|
5198
|
+
.then((request) => request(axios, basePath));
|
|
5199
|
+
},
|
|
5014
5200
|
/**
|
|
5015
5201
|
* Submit authorization checklist items
|
|
5016
5202
|
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
@@ -5257,6 +5443,29 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5257
5443
|
.downloadBalanceStatement(dateFrom, dateTo, currencies, options)
|
|
5258
5444
|
.then((request) => request(this.axios, this.basePath));
|
|
5259
5445
|
}
|
|
5446
|
+
/**
|
|
5447
|
+
* Get available Adyen payment methods for Advanced card setup (proxy to Adyen /paymentMethods)
|
|
5448
|
+
* @param {*} [options] Override http request option.
|
|
5449
|
+
* @throws {RequiredError}
|
|
5450
|
+
* @memberof PaymentApi
|
|
5451
|
+
*/
|
|
5452
|
+
getAdyenCardSetupPaymentMethods(options) {
|
|
5453
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5454
|
+
.getAdyenCardSetupPaymentMethods(options)
|
|
5455
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5456
|
+
}
|
|
5457
|
+
/**
|
|
5458
|
+
* Get a bill by ID
|
|
5459
|
+
* @param {string} billId
|
|
5460
|
+
* @param {*} [options] Override http request option.
|
|
5461
|
+
* @throws {RequiredError}
|
|
5462
|
+
* @memberof PaymentApi
|
|
5463
|
+
*/
|
|
5464
|
+
getBill(billId, options) {
|
|
5465
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5466
|
+
.getBill(billId, options)
|
|
5467
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5468
|
+
}
|
|
5260
5469
|
/**
|
|
5261
5470
|
* Get Mandate details by mandate_id
|
|
5262
5471
|
* @param {string} mandateId mandate id
|
|
@@ -5352,6 +5561,25 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5352
5561
|
.getPayoutById(payoutId, options)
|
|
5353
5562
|
.then((request) => request(this.axios, this.basePath));
|
|
5354
5563
|
}
|
|
5564
|
+
/**
|
|
5565
|
+
* List bills
|
|
5566
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
5567
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
5568
|
+
* @param {Array<ListBillsStatusesEnum>} [statuses] Bill statuses to filter for, comma separated
|
|
5569
|
+
* @param {string} [userId]
|
|
5570
|
+
* @param {string} [externalUserId]
|
|
5571
|
+
* @param {Array<string>} [currencies]
|
|
5572
|
+
* @param {number} [offset] default is 0
|
|
5573
|
+
* @param {number} [limit] default is 500, max is 1000
|
|
5574
|
+
* @param {*} [options] Override http request option.
|
|
5575
|
+
* @throws {RequiredError}
|
|
5576
|
+
* @memberof PaymentApi
|
|
5577
|
+
*/
|
|
5578
|
+
listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options) {
|
|
5579
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5580
|
+
.listBills(dateFrom, dateTo, statuses, userId, externalUserId, currencies, offset, limit, options)
|
|
5581
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5582
|
+
}
|
|
5355
5583
|
/**
|
|
5356
5584
|
* List mandates details
|
|
5357
5585
|
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
@@ -5504,6 +5732,30 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5504
5732
|
.setMandateInstitution(updateRequest, options)
|
|
5505
5733
|
.then((request) => request(this.axios, this.basePath));
|
|
5506
5734
|
}
|
|
5735
|
+
/**
|
|
5736
|
+
* Submit Adyen card setup payment (proxy to Adyen /payments with Drop-in state.data from onSubmit)
|
|
5737
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentRequest Full Drop-in state.data from onSubmit
|
|
5738
|
+
* @param {*} [options] Override http request option.
|
|
5739
|
+
* @throws {RequiredError}
|
|
5740
|
+
* @memberof PaymentApi
|
|
5741
|
+
*/
|
|
5742
|
+
submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options) {
|
|
5743
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5744
|
+
.submitAdyenCardSetupPayment(submitAdyenCardSetupPaymentRequest, options)
|
|
5745
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5746
|
+
}
|
|
5747
|
+
/**
|
|
5748
|
+
* Submit Adyen card setup payment details (proxy to Adyen /payments/details with Drop-in state.data from onAdditionalDetails)
|
|
5749
|
+
* @param {{ [key: string]: any; }} submitAdyenCardSetupPaymentDetailsRequest Full Drop-in state.data from onAdditionalDetails (includes details + paymentData)
|
|
5750
|
+
* @param {*} [options] Override http request option.
|
|
5751
|
+
* @throws {RequiredError}
|
|
5752
|
+
* @memberof PaymentApi
|
|
5753
|
+
*/
|
|
5754
|
+
submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options) {
|
|
5755
|
+
return (0, exports.PaymentApiFp)(this.configuration)
|
|
5756
|
+
.submitAdyenCardSetupPaymentDetails(submitAdyenCardSetupPaymentDetailsRequest, options)
|
|
5757
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5758
|
+
}
|
|
5507
5759
|
/**
|
|
5508
5760
|
* Submit authorization checklist items
|
|
5509
5761
|
* @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
|
|
@@ -5558,6 +5810,16 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
5558
5810
|
}
|
|
5559
5811
|
}
|
|
5560
5812
|
exports.PaymentApi = PaymentApi;
|
|
5813
|
+
/**
|
|
5814
|
+
* @export
|
|
5815
|
+
*/
|
|
5816
|
+
exports.ListBillsStatusesEnum = {
|
|
5817
|
+
Unknown: 'UNKNOWN',
|
|
5818
|
+
Unpaid: 'UNPAID',
|
|
5819
|
+
Paid: 'PAID',
|
|
5820
|
+
Cancelled: 'CANCELLED',
|
|
5821
|
+
Failed: 'FAILED',
|
|
5822
|
+
};
|
|
5561
5823
|
/**
|
|
5562
5824
|
* @export
|
|
5563
5825
|
*/
|