@finverse/sdk-typescript 0.0.124 → 0.0.126
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 +63 -3
- package/dist/api.js +5 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -740,6 +740,12 @@ export interface CreateMandateResponse {
|
|
|
740
740
|
* @memberof CreateMandateResponse
|
|
741
741
|
*/
|
|
742
742
|
mandate_details: MandateDetails;
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @type {Array<Fee>}
|
|
746
|
+
* @memberof CreateMandateResponse
|
|
747
|
+
*/
|
|
748
|
+
fees?: Array<Fee>;
|
|
743
749
|
/**
|
|
744
750
|
* Additional attributes of the mandate in key:value format (e.g. mandate_internal_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
|
|
745
751
|
* @type {{ [key: string]: string; }}
|
|
@@ -782,7 +788,7 @@ export interface CreateMandateSender {
|
|
|
782
788
|
* @type {string}
|
|
783
789
|
* @memberof CreateMandateSender
|
|
784
790
|
*/
|
|
785
|
-
|
|
791
|
+
external_user_id?: string;
|
|
786
792
|
/**
|
|
787
793
|
* Type of account held by the Sender at the Institution. Possible values are INDIVIDUAL, BUSINESS
|
|
788
794
|
* @type {string}
|
|
@@ -1208,6 +1214,42 @@ export interface ErrorResponse {
|
|
|
1208
1214
|
*/
|
|
1209
1215
|
request_id?: string;
|
|
1210
1216
|
}
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @export
|
|
1220
|
+
* @interface Fee
|
|
1221
|
+
*/
|
|
1222
|
+
export interface Fee {
|
|
1223
|
+
/**
|
|
1224
|
+
* The amount of fee for a single transaction. Expressed in currency\'s smallest unit or “minor unit”, as defined in ISO 4217.
|
|
1225
|
+
* @type {number}
|
|
1226
|
+
* @memberof Fee
|
|
1227
|
+
*/
|
|
1228
|
+
amount: number;
|
|
1229
|
+
/**
|
|
1230
|
+
*
|
|
1231
|
+
* @type {string}
|
|
1232
|
+
* @memberof Fee
|
|
1233
|
+
*/
|
|
1234
|
+
currency?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
*
|
|
1237
|
+
* @type {string}
|
|
1238
|
+
* @memberof Fee
|
|
1239
|
+
*/
|
|
1240
|
+
paid_by?: FeePaidByEnum;
|
|
1241
|
+
/**
|
|
1242
|
+
* The payment account Id
|
|
1243
|
+
* @type {string}
|
|
1244
|
+
* @memberof Fee
|
|
1245
|
+
*/
|
|
1246
|
+
paid_by_account_id?: string;
|
|
1247
|
+
}
|
|
1248
|
+
export declare const FeePaidByEnum: {
|
|
1249
|
+
readonly Recipient: "RECIPIENT";
|
|
1250
|
+
readonly Sender: "SENDER";
|
|
1251
|
+
};
|
|
1252
|
+
export declare type FeePaidByEnum = (typeof FeePaidByEnum)[keyof typeof FeePaidByEnum];
|
|
1211
1253
|
/**
|
|
1212
1254
|
*
|
|
1213
1255
|
* @export
|
|
@@ -1671,6 +1713,12 @@ export interface GetMandateResponse {
|
|
|
1671
1713
|
* @memberof GetMandateResponse
|
|
1672
1714
|
*/
|
|
1673
1715
|
mandate_details: MandateDetails;
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* @type {Array<Fee>}
|
|
1719
|
+
* @memberof GetMandateResponse
|
|
1720
|
+
*/
|
|
1721
|
+
fees?: Array<Fee>;
|
|
1674
1722
|
/**
|
|
1675
1723
|
*
|
|
1676
1724
|
* @type {FvErrorModelV2}
|
|
@@ -1707,7 +1755,7 @@ export interface GetMandateSender {
|
|
|
1707
1755
|
* @type {string}
|
|
1708
1756
|
* @memberof GetMandateSender
|
|
1709
1757
|
*/
|
|
1710
|
-
|
|
1758
|
+
user_id: string;
|
|
1711
1759
|
/**
|
|
1712
1760
|
*
|
|
1713
1761
|
* @type {string}
|
|
@@ -1719,7 +1767,7 @@ export interface GetMandateSender {
|
|
|
1719
1767
|
* @type {string}
|
|
1720
1768
|
* @memberof GetMandateSender
|
|
1721
1769
|
*/
|
|
1722
|
-
|
|
1770
|
+
external_user_id: string;
|
|
1723
1771
|
/**
|
|
1724
1772
|
* Type of account held by the Sender at the Institution. Possible values are INDIVIDUAL, BUSINESS
|
|
1725
1773
|
* @type {string}
|
|
@@ -3400,6 +3448,12 @@ export interface MandateDetails {
|
|
|
3400
3448
|
* @memberof MandateDetails
|
|
3401
3449
|
*/
|
|
3402
3450
|
description?: string;
|
|
3451
|
+
/**
|
|
3452
|
+
* A bank specific reference, what the end user may see
|
|
3453
|
+
* @type {string}
|
|
3454
|
+
* @memberof MandateDetails
|
|
3455
|
+
*/
|
|
3456
|
+
mandate_bank_reference?: string;
|
|
3403
3457
|
}
|
|
3404
3458
|
/**
|
|
3405
3459
|
*
|
|
@@ -3912,6 +3966,12 @@ export interface PaymentResponse {
|
|
|
3912
3966
|
* @memberof PaymentResponse
|
|
3913
3967
|
*/
|
|
3914
3968
|
sender?: GetMandateSender;
|
|
3969
|
+
/**
|
|
3970
|
+
*
|
|
3971
|
+
* @type {Array<Fee>}
|
|
3972
|
+
* @memberof PaymentResponse
|
|
3973
|
+
*/
|
|
3974
|
+
fees?: Array<Fee>;
|
|
3915
3975
|
/**
|
|
3916
3976
|
* Timestamp in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
3917
3977
|
* @type {string}
|
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = 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.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
25
|
+
exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = 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.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -102,6 +102,10 @@ exports.CreateRecipientAccountAccountTypeEnum = {
|
|
|
102
102
|
exports.CustomerPaymentInstructionTypeEnum = {
|
|
103
103
|
DebitAuthorization: 'DEBIT_AUTHORIZATION',
|
|
104
104
|
};
|
|
105
|
+
exports.FeePaidByEnum = {
|
|
106
|
+
Recipient: 'RECIPIENT',
|
|
107
|
+
Sender: 'SENDER',
|
|
108
|
+
};
|
|
105
109
|
exports.FvErrorModelTypeEnum = {
|
|
106
110
|
LinkError: 'LINK_ERROR',
|
|
107
111
|
ApiError: 'API_ERROR',
|