@finverse/sdk-typescript 0.0.142 → 0.0.143
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 +162 -17
- package/dist/api.js +9 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -968,19 +968,6 @@ export declare const CreatePaymentLinkRequestModeEnum: {
|
|
|
968
968
|
readonly Payment: "PAYMENT";
|
|
969
969
|
};
|
|
970
970
|
export declare type CreatePaymentLinkRequestModeEnum = (typeof CreatePaymentLinkRequestModeEnum)[keyof typeof CreatePaymentLinkRequestModeEnum];
|
|
971
|
-
/**
|
|
972
|
-
*
|
|
973
|
-
* @export
|
|
974
|
-
* @interface CreatePaymentLinkResponse
|
|
975
|
-
*/
|
|
976
|
-
export interface CreatePaymentLinkResponse {
|
|
977
|
-
/**
|
|
978
|
-
* The URL for payment link
|
|
979
|
-
* @type {string}
|
|
980
|
-
* @memberof CreatePaymentLinkResponse
|
|
981
|
-
*/
|
|
982
|
-
payment_link_url?: string;
|
|
983
|
-
}
|
|
984
971
|
/**
|
|
985
972
|
*
|
|
986
973
|
* @export
|
|
@@ -4053,6 +4040,133 @@ export interface PaymentLinkRecipientAccount {
|
|
|
4053
4040
|
*/
|
|
4054
4041
|
recipient_account_id: string;
|
|
4055
4042
|
}
|
|
4043
|
+
/**
|
|
4044
|
+
*
|
|
4045
|
+
* @export
|
|
4046
|
+
* @interface PaymentLinkResponse
|
|
4047
|
+
*/
|
|
4048
|
+
export interface PaymentLinkResponse {
|
|
4049
|
+
/**
|
|
4050
|
+
* Finverse Payment Link ID
|
|
4051
|
+
* @type {string}
|
|
4052
|
+
* @memberof PaymentLinkResponse
|
|
4053
|
+
*/
|
|
4054
|
+
payment_link_id?: string;
|
|
4055
|
+
/**
|
|
4056
|
+
* The amount of the payment. Expressed in currency\'s smallest unit or “minor unit”, as defined in ISO 4217.
|
|
4057
|
+
* @type {number}
|
|
4058
|
+
* @memberof PaymentLinkResponse
|
|
4059
|
+
*/
|
|
4060
|
+
amount?: number;
|
|
4061
|
+
/**
|
|
4062
|
+
*
|
|
4063
|
+
* @type {string}
|
|
4064
|
+
* @memberof PaymentLinkResponse
|
|
4065
|
+
*/
|
|
4066
|
+
currency?: string;
|
|
4067
|
+
/**
|
|
4068
|
+
* Specifies language to be used in Finverse UI
|
|
4069
|
+
* @type {string}
|
|
4070
|
+
* @memberof PaymentLinkResponse
|
|
4071
|
+
*/
|
|
4072
|
+
language?: string;
|
|
4073
|
+
/**
|
|
4074
|
+
* The payment link mode
|
|
4075
|
+
* @type {string}
|
|
4076
|
+
* @memberof PaymentLinkResponse
|
|
4077
|
+
*/
|
|
4078
|
+
mode?: PaymentLinkResponseModeEnum;
|
|
4079
|
+
/**
|
|
4080
|
+
*
|
|
4081
|
+
* @type {PaymentLinkDetails}
|
|
4082
|
+
* @memberof PaymentLinkResponse
|
|
4083
|
+
*/
|
|
4084
|
+
payment_details?: PaymentLinkDetails;
|
|
4085
|
+
/**
|
|
4086
|
+
* Unique reference id to identifying the payment to be collected.
|
|
4087
|
+
* @type {string}
|
|
4088
|
+
* @memberof PaymentLinkResponse
|
|
4089
|
+
*/
|
|
4090
|
+
unique_reference_id?: string;
|
|
4091
|
+
/**
|
|
4092
|
+
* Additional attributes of the payment link in key:value format (e.g. payment_id: 1234). It supports up to 10 key:value pairs, whereas the key and value supports up to 50 and 500 characters respectively.
|
|
4093
|
+
* @type {{ [key: string]: string; }}
|
|
4094
|
+
* @memberof PaymentLinkResponse
|
|
4095
|
+
*/
|
|
4096
|
+
metadata?: {
|
|
4097
|
+
[key: string]: string;
|
|
4098
|
+
};
|
|
4099
|
+
/**
|
|
4100
|
+
* The URL for payment link
|
|
4101
|
+
* @type {string}
|
|
4102
|
+
* @memberof PaymentLinkResponse
|
|
4103
|
+
*/
|
|
4104
|
+
url?: string;
|
|
4105
|
+
/**
|
|
4106
|
+
* The status of payment link
|
|
4107
|
+
* @type {string}
|
|
4108
|
+
* @memberof PaymentLinkResponse
|
|
4109
|
+
*/
|
|
4110
|
+
status?: PaymentLinkResponseStatusEnum;
|
|
4111
|
+
/**
|
|
4112
|
+
* Timestamp of when the payment link was or will expired in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
4113
|
+
* @type {string}
|
|
4114
|
+
* @memberof PaymentLinkResponse
|
|
4115
|
+
*/
|
|
4116
|
+
expires_at?: string;
|
|
4117
|
+
/**
|
|
4118
|
+
* Timestamp of when the payment link was created in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
4119
|
+
* @type {string}
|
|
4120
|
+
* @memberof PaymentLinkResponse
|
|
4121
|
+
*/
|
|
4122
|
+
created_at?: string;
|
|
4123
|
+
/**
|
|
4124
|
+
* Timestamp of when the payment link was last updated in ISO format (YYYY-MM-DDTHH:MM:SS.SSSZ)
|
|
4125
|
+
* @type {string}
|
|
4126
|
+
* @memberof PaymentLinkResponse
|
|
4127
|
+
*/
|
|
4128
|
+
updated_at?: string;
|
|
4129
|
+
/**
|
|
4130
|
+
*
|
|
4131
|
+
* @type {GetMandateResponse}
|
|
4132
|
+
* @memberof PaymentLinkResponse
|
|
4133
|
+
*/
|
|
4134
|
+
mandate?: GetMandateResponse;
|
|
4135
|
+
/**
|
|
4136
|
+
*
|
|
4137
|
+
* @type {PaymentResponse}
|
|
4138
|
+
* @memberof PaymentLinkResponse
|
|
4139
|
+
*/
|
|
4140
|
+
payment?: PaymentResponse;
|
|
4141
|
+
/**
|
|
4142
|
+
*
|
|
4143
|
+
* @type {MandateRecipient}
|
|
4144
|
+
* @memberof PaymentLinkResponse
|
|
4145
|
+
*/
|
|
4146
|
+
recipient?: MandateRecipient;
|
|
4147
|
+
/**
|
|
4148
|
+
*
|
|
4149
|
+
* @type {MandateRecipientAccount}
|
|
4150
|
+
* @memberof PaymentLinkResponse
|
|
4151
|
+
*/
|
|
4152
|
+
recipient_account?: MandateRecipientAccount;
|
|
4153
|
+
/**
|
|
4154
|
+
*
|
|
4155
|
+
* @type {PaymentLinkSenderResponse}
|
|
4156
|
+
* @memberof PaymentLinkResponse
|
|
4157
|
+
*/
|
|
4158
|
+
sender?: PaymentLinkSenderResponse;
|
|
4159
|
+
}
|
|
4160
|
+
export declare const PaymentLinkResponseModeEnum: {
|
|
4161
|
+
readonly Payment: "PAYMENT";
|
|
4162
|
+
};
|
|
4163
|
+
export declare type PaymentLinkResponseModeEnum = (typeof PaymentLinkResponseModeEnum)[keyof typeof PaymentLinkResponseModeEnum];
|
|
4164
|
+
export declare const PaymentLinkResponseStatusEnum: {
|
|
4165
|
+
readonly Created: "CREATED";
|
|
4166
|
+
readonly Paid: "PAID";
|
|
4167
|
+
readonly Expired: "EXPIRED";
|
|
4168
|
+
};
|
|
4169
|
+
export declare type PaymentLinkResponseStatusEnum = (typeof PaymentLinkResponseStatusEnum)[keyof typeof PaymentLinkResponseStatusEnum];
|
|
4056
4170
|
/**
|
|
4057
4171
|
*
|
|
4058
4172
|
* @export
|
|
@@ -4078,6 +4192,37 @@ export interface PaymentLinkSender {
|
|
|
4078
4192
|
*/
|
|
4079
4193
|
name: string;
|
|
4080
4194
|
}
|
|
4195
|
+
/**
|
|
4196
|
+
*
|
|
4197
|
+
* @export
|
|
4198
|
+
* @interface PaymentLinkSenderResponse
|
|
4199
|
+
*/
|
|
4200
|
+
export interface PaymentLinkSenderResponse {
|
|
4201
|
+
/**
|
|
4202
|
+
*
|
|
4203
|
+
* @type {string}
|
|
4204
|
+
* @memberof PaymentLinkSenderResponse
|
|
4205
|
+
*/
|
|
4206
|
+
email?: string;
|
|
4207
|
+
/**
|
|
4208
|
+
* Customer App\'s user ID, representing the end-user making the payment.
|
|
4209
|
+
* @type {string}
|
|
4210
|
+
* @memberof PaymentLinkSenderResponse
|
|
4211
|
+
*/
|
|
4212
|
+
external_user_id?: string;
|
|
4213
|
+
/**
|
|
4214
|
+
* Accountholder name of the sender\'s account
|
|
4215
|
+
* @type {string}
|
|
4216
|
+
* @memberof PaymentLinkSenderResponse
|
|
4217
|
+
*/
|
|
4218
|
+
name?: string;
|
|
4219
|
+
/**
|
|
4220
|
+
* A unique identifier generated after creating sender
|
|
4221
|
+
* @type {string}
|
|
4222
|
+
* @memberof PaymentLinkSenderResponse
|
|
4223
|
+
*/
|
|
4224
|
+
user_id?: string;
|
|
4225
|
+
}
|
|
4081
4226
|
/**
|
|
4082
4227
|
*
|
|
4083
4228
|
* @export
|
|
@@ -6113,7 +6258,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
6113
6258
|
* @param {*} [options] Override http request option.
|
|
6114
6259
|
* @throws {RequiredError}
|
|
6115
6260
|
*/
|
|
6116
|
-
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6261
|
+
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentLinkResponse>>;
|
|
6117
6262
|
/**
|
|
6118
6263
|
* Initiate Card Payment for a Payment Link
|
|
6119
6264
|
* @param {*} [options] Override http request option.
|
|
@@ -6202,7 +6347,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
6202
6347
|
* @param {*} [options] Override http request option.
|
|
6203
6348
|
* @throws {RequiredError}
|
|
6204
6349
|
*/
|
|
6205
|
-
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: any): AxiosPromise<
|
|
6350
|
+
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: any): AxiosPromise<PaymentLinkResponse>;
|
|
6206
6351
|
/**
|
|
6207
6352
|
* Initiate Card Payment for a Payment Link
|
|
6208
6353
|
* @param {*} [options] Override http request option.
|
|
@@ -6296,7 +6441,7 @@ export interface DefaultApiInterface {
|
|
|
6296
6441
|
* @throws {RequiredError}
|
|
6297
6442
|
* @memberof DefaultApiInterface
|
|
6298
6443
|
*/
|
|
6299
|
-
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): AxiosPromise<
|
|
6444
|
+
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): AxiosPromise<PaymentLinkResponse>;
|
|
6300
6445
|
/**
|
|
6301
6446
|
* Initiate Card Payment for a Payment Link
|
|
6302
6447
|
* @param {*} [options] Override http request option.
|
|
@@ -6397,7 +6542,7 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
6397
6542
|
* @throws {RequiredError}
|
|
6398
6543
|
* @memberof DefaultApi
|
|
6399
6544
|
*/
|
|
6400
|
-
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
6545
|
+
createPaymentLink(createPaymentLinkRequest: CreatePaymentLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkResponse>>;
|
|
6401
6546
|
/**
|
|
6402
6547
|
* Initiate Card Payment for a Payment Link
|
|
6403
6548
|
* @param {*} [options] Override http request option.
|
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.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = 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.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = 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.CreatePaymentLinkRequestModeEnum = 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
|
|
@@ -209,6 +209,14 @@ exports.PaymentInfoPaymentsSupportedEnum = {
|
|
|
209
209
|
exports.PaymentInstructionTypeEnum = {
|
|
210
210
|
DebitAuthorization: 'DEBIT_AUTHORIZATION',
|
|
211
211
|
};
|
|
212
|
+
exports.PaymentLinkResponseModeEnum = {
|
|
213
|
+
Payment: 'PAYMENT',
|
|
214
|
+
};
|
|
215
|
+
exports.PaymentLinkResponseStatusEnum = {
|
|
216
|
+
Created: 'CREATED',
|
|
217
|
+
Paid: 'PAID',
|
|
218
|
+
Expired: 'EXPIRED',
|
|
219
|
+
};
|
|
212
220
|
exports.PaymentLinkTokenResponseTokenTypeEnum = {
|
|
213
221
|
Bearer: 'Bearer',
|
|
214
222
|
};
|