@finverse/sdk-typescript 0.0.250 → 0.0.252
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 +127 -4
- package/dist/api.js +5 -1
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -762,17 +762,29 @@ export interface CardDetails {
|
|
|
762
762
|
*/
|
|
763
763
|
export interface CardFvLinkDetails {
|
|
764
764
|
/**
|
|
765
|
-
*
|
|
765
|
+
* The credit card brand
|
|
766
766
|
* @type {string}
|
|
767
767
|
* @memberof CardFvLinkDetails
|
|
768
768
|
*/
|
|
769
769
|
brand?: string;
|
|
770
770
|
/**
|
|
771
|
-
*
|
|
771
|
+
* Last 4 digits of the credit card number
|
|
772
772
|
* @type {string}
|
|
773
773
|
* @memberof CardFvLinkDetails
|
|
774
774
|
*/
|
|
775
775
|
last4?: string;
|
|
776
|
+
/**
|
|
777
|
+
* The credit card expiry month
|
|
778
|
+
* @type {number}
|
|
779
|
+
* @memberof CardFvLinkDetails
|
|
780
|
+
*/
|
|
781
|
+
expiry_month?: number;
|
|
782
|
+
/**
|
|
783
|
+
* The credit card expiry year
|
|
784
|
+
* @type {number}
|
|
785
|
+
* @memberof CardFvLinkDetails
|
|
786
|
+
*/
|
|
787
|
+
expiry_year?: number;
|
|
776
788
|
}
|
|
777
789
|
/**
|
|
778
790
|
*
|
|
@@ -1049,6 +1061,49 @@ export interface CreateMandateRequest {
|
|
|
1049
1061
|
[key: string]: string;
|
|
1050
1062
|
};
|
|
1051
1063
|
}
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @export
|
|
1067
|
+
* @interface CreateMandateRequestWithDdaReference
|
|
1068
|
+
*/
|
|
1069
|
+
export interface CreateMandateRequestWithDdaReference {
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* @type {MandateRecipientRequest}
|
|
1073
|
+
* @memberof CreateMandateRequestWithDdaReference
|
|
1074
|
+
*/
|
|
1075
|
+
recipient_account: MandateRecipientRequest;
|
|
1076
|
+
/**
|
|
1077
|
+
*
|
|
1078
|
+
* @type {MandateSenderAccountRequest}
|
|
1079
|
+
* @memberof CreateMandateRequestWithDdaReference
|
|
1080
|
+
*/
|
|
1081
|
+
sender_account: MandateSenderAccountRequest;
|
|
1082
|
+
/**
|
|
1083
|
+
*
|
|
1084
|
+
* @type {MandateDetailsRequestWithDdaReference}
|
|
1085
|
+
* @memberof CreateMandateRequestWithDdaReference
|
|
1086
|
+
*/
|
|
1087
|
+
mandate_details: MandateDetailsRequestWithDdaReference;
|
|
1088
|
+
/**
|
|
1089
|
+
* 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.
|
|
1090
|
+
* @type {{ [key: string]: string; }}
|
|
1091
|
+
* @memberof CreateMandateRequestWithDdaReference
|
|
1092
|
+
*/
|
|
1093
|
+
metadata?: {
|
|
1094
|
+
[key: string]: string;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* The mandate status
|
|
1098
|
+
* @type {string}
|
|
1099
|
+
* @memberof CreateMandateRequestWithDdaReference
|
|
1100
|
+
*/
|
|
1101
|
+
status: CreateMandateRequestWithDdaReferenceStatusEnum;
|
|
1102
|
+
}
|
|
1103
|
+
export declare const CreateMandateRequestWithDdaReferenceStatusEnum: {
|
|
1104
|
+
readonly Succeeded: "SUCCEEDED";
|
|
1105
|
+
};
|
|
1106
|
+
export declare type CreateMandateRequestWithDdaReferenceStatusEnum = (typeof CreateMandateRequestWithDdaReferenceStatusEnum)[keyof typeof CreateMandateRequestWithDdaReferenceStatusEnum];
|
|
1052
1107
|
/**
|
|
1053
1108
|
*
|
|
1054
1109
|
* @export
|
|
@@ -1432,13 +1487,19 @@ export interface CreatePaymentMethodRequest {
|
|
|
1432
1487
|
* @type {CreateCardRequest}
|
|
1433
1488
|
* @memberof CreatePaymentMethodRequest
|
|
1434
1489
|
*/
|
|
1435
|
-
card
|
|
1490
|
+
card?: CreateCardRequest;
|
|
1491
|
+
/**
|
|
1492
|
+
*
|
|
1493
|
+
* @type {CreateMandateRequestWithDdaReference}
|
|
1494
|
+
* @memberof CreatePaymentMethodRequest
|
|
1495
|
+
*/
|
|
1496
|
+
mandate?: CreateMandateRequestWithDdaReference;
|
|
1436
1497
|
/**
|
|
1437
1498
|
*
|
|
1438
1499
|
* @type {PaymentMethodIntegrationMetadata}
|
|
1439
1500
|
* @memberof CreatePaymentMethodRequest
|
|
1440
1501
|
*/
|
|
1441
|
-
integration_metadata
|
|
1502
|
+
integration_metadata?: PaymentMethodIntegrationMetadata;
|
|
1442
1503
|
/**
|
|
1443
1504
|
*
|
|
1444
1505
|
* @type {string}
|
|
@@ -1448,6 +1509,7 @@ export interface CreatePaymentMethodRequest {
|
|
|
1448
1509
|
}
|
|
1449
1510
|
export declare const CreatePaymentMethodRequestPaymentMethodTypeEnum: {
|
|
1450
1511
|
readonly Card: "CARD";
|
|
1512
|
+
readonly Mandate: "MANDATE";
|
|
1451
1513
|
};
|
|
1452
1514
|
export declare type CreatePaymentMethodRequestPaymentMethodTypeEnum = (typeof CreatePaymentMethodRequestPaymentMethodTypeEnum)[keyof typeof CreatePaymentMethodRequestPaymentMethodTypeEnum];
|
|
1453
1515
|
/**
|
|
@@ -1919,6 +1981,18 @@ export interface FVCardDetails {
|
|
|
1919
1981
|
* @memberof FVCardDetails
|
|
1920
1982
|
*/
|
|
1921
1983
|
last4?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* The credit card expiry month
|
|
1986
|
+
* @type {number}
|
|
1987
|
+
* @memberof FVCardDetails
|
|
1988
|
+
*/
|
|
1989
|
+
expiry_month?: number;
|
|
1990
|
+
/**
|
|
1991
|
+
* The credit card expiry year
|
|
1992
|
+
* @type {number}
|
|
1993
|
+
* @memberof FVCardDetails
|
|
1994
|
+
*/
|
|
1995
|
+
expiry_year?: number;
|
|
1922
1996
|
}
|
|
1923
1997
|
/**
|
|
1924
1998
|
*
|
|
@@ -4395,12 +4469,61 @@ export interface MandateDetailsRequest {
|
|
|
4395
4469
|
*/
|
|
4396
4470
|
mandate_bank_reference?: string;
|
|
4397
4471
|
}
|
|
4472
|
+
/**
|
|
4473
|
+
*
|
|
4474
|
+
* @export
|
|
4475
|
+
* @interface MandateDetailsRequestWithDdaReference
|
|
4476
|
+
*/
|
|
4477
|
+
export interface MandateDetailsRequestWithDdaReference {
|
|
4478
|
+
/**
|
|
4479
|
+
* The direct debit authorization reference
|
|
4480
|
+
* @type {string}
|
|
4481
|
+
* @memberof MandateDetailsRequestWithDdaReference
|
|
4482
|
+
*/
|
|
4483
|
+
dda_reference?: string;
|
|
4484
|
+
/**
|
|
4485
|
+
* ISO currency code
|
|
4486
|
+
* @type {string}
|
|
4487
|
+
* @memberof MandateDetailsRequestWithDdaReference
|
|
4488
|
+
*/
|
|
4489
|
+
currency: string;
|
|
4490
|
+
/**
|
|
4491
|
+
* YYYY-MM-DD, must be later than or the same as the date of creation. If unspecified, default to the date of creation.
|
|
4492
|
+
* @type {string}
|
|
4493
|
+
* @memberof MandateDetailsRequestWithDdaReference
|
|
4494
|
+
*/
|
|
4495
|
+
start_date?: string | null;
|
|
4496
|
+
/**
|
|
4497
|
+
* YYYY-MM-DD, must be later than the date of creation.
|
|
4498
|
+
* @type {string}
|
|
4499
|
+
* @memberof MandateDetailsRequestWithDdaReference
|
|
4500
|
+
*/
|
|
4501
|
+
end_date?: string | null;
|
|
4502
|
+
/**
|
|
4503
|
+
*
|
|
4504
|
+
* @type {TransactionLimits}
|
|
4505
|
+
* @memberof MandateDetailsRequestWithDdaReference
|
|
4506
|
+
*/
|
|
4507
|
+
transaction_limits?: TransactionLimits;
|
|
4508
|
+
/**
|
|
4509
|
+
* End-user facing description of the mandate (used in notifications, and in payments if no description is provided)
|
|
4510
|
+
* @type {string}
|
|
4511
|
+
* @memberof MandateDetailsRequestWithDdaReference
|
|
4512
|
+
*/
|
|
4513
|
+
description: string;
|
|
4514
|
+
}
|
|
4398
4515
|
/**
|
|
4399
4516
|
*
|
|
4400
4517
|
* @export
|
|
4401
4518
|
* @interface MandateDetailsResponse
|
|
4402
4519
|
*/
|
|
4403
4520
|
export interface MandateDetailsResponse {
|
|
4521
|
+
/**
|
|
4522
|
+
* The direct debit authorization reference, if empty this will be omitted from response
|
|
4523
|
+
* @type {string}
|
|
4524
|
+
* @memberof MandateDetailsResponse
|
|
4525
|
+
*/
|
|
4526
|
+
dda_reference?: string;
|
|
4404
4527
|
/**
|
|
4405
4528
|
* ISO currency code
|
|
4406
4529
|
* @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.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = 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.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateCardRequestStatusEnum = exports.CardFvLinkResponseStatusEnum = 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.PaymentUserWithoutEmailUserTypeEnum = exports.PaymentUserUserTypeEnum = exports.PaymentSetupOptionsPaymentMethodTypesEnum = exports.PaymentSetupOptionsFuturePaymentsEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentMethodIntegrationMetadataIntegrationIdEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseSessionStatusEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.PaymentAccountDetailsAccountTypeEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.IntegrationMetadataResponseIntegrationIdEnum = exports.IntegrationMetadataRequestIntegrationIdEnum = 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.FVCardStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentUserRequestUserTypeEnum = exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreatePaymentAccountRequestAccountTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.CreateMandateRequestWithDdaReferenceStatusEnum = exports.CreateCardRequestStatusEnum = exports.CardFvLinkResponseStatusEnum = 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
|
|
@@ -83,6 +83,9 @@ exports.CardFvLinkResponseStatusEnum = {
|
|
|
83
83
|
exports.CreateCardRequestStatusEnum = {
|
|
84
84
|
Succeeded: 'SUCCEEDED',
|
|
85
85
|
};
|
|
86
|
+
exports.CreateMandateRequestWithDdaReferenceStatusEnum = {
|
|
87
|
+
Succeeded: 'SUCCEEDED',
|
|
88
|
+
};
|
|
86
89
|
exports.CreateMandateResponseStatusEnum = {
|
|
87
90
|
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
|
|
88
91
|
Authorizing: 'AUTHORIZING',
|
|
@@ -109,6 +112,7 @@ exports.CreatePaymentLinkRequestModeEnum = {
|
|
|
109
112
|
};
|
|
110
113
|
exports.CreatePaymentMethodRequestPaymentMethodTypeEnum = {
|
|
111
114
|
Card: 'CARD',
|
|
115
|
+
Mandate: 'MANDATE',
|
|
112
116
|
};
|
|
113
117
|
exports.CreatePaymentUserRequestUserTypeEnum = {
|
|
114
118
|
Individual: 'INDIVIDUAL',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.252",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"axios": "^0.21.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/chai": "^4.3.
|
|
24
|
+
"@types/chai": "^4.3.17",
|
|
25
25
|
"@types/mocha": "^10.0.7",
|
|
26
26
|
"@types/node": "^12.11.5",
|
|
27
27
|
"axios-mock-adapter": "^1.21.2",
|
|
28
28
|
"chai": "^5.1.1",
|
|
29
|
-
"mocha": "^10.
|
|
29
|
+
"mocha": "^10.7.0",
|
|
30
30
|
"ts-node": "^10.9.2",
|
|
31
31
|
"typescript": "^3.6.4"
|
|
32
32
|
},
|