@finverse/sdk-typescript 0.0.24 → 0.0.27
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 +25 -107
- package/dist/api.js +1 -168
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1567,6 +1567,12 @@ export interface LinkTokenRequest {
|
|
|
1567
1567
|
* @memberof LinkTokenRequest
|
|
1568
1568
|
*/
|
|
1569
1569
|
automatic_data_refresh?: LinkTokenRequestAutomaticDataRefreshEnum;
|
|
1570
|
+
/**
|
|
1571
|
+
* institution\'s status filter
|
|
1572
|
+
* @type {string}
|
|
1573
|
+
* @memberof LinkTokenRequest
|
|
1574
|
+
*/
|
|
1575
|
+
institution_status?: string;
|
|
1570
1576
|
}
|
|
1571
1577
|
export declare const LinkTokenRequestUiModeEnum: {
|
|
1572
1578
|
readonly Iframe: "iframe";
|
|
@@ -2007,6 +2013,19 @@ export interface OtherInfo {
|
|
|
2007
2013
|
*/
|
|
2008
2014
|
bank_code?: string;
|
|
2009
2015
|
}
|
|
2016
|
+
/**
|
|
2017
|
+
*
|
|
2018
|
+
* @export
|
|
2019
|
+
* @interface PaymentAccount
|
|
2020
|
+
*/
|
|
2021
|
+
export interface PaymentAccount {
|
|
2022
|
+
/**
|
|
2023
|
+
* The raw value for the account the user selected when making payment request
|
|
2024
|
+
* @type {string}
|
|
2025
|
+
* @memberof PaymentAccount
|
|
2026
|
+
*/
|
|
2027
|
+
raw?: string;
|
|
2028
|
+
}
|
|
2010
2029
|
/**
|
|
2011
2030
|
*
|
|
2012
2031
|
* @export
|
|
@@ -2098,6 +2117,12 @@ export interface PaymentInstruction {
|
|
|
2098
2117
|
* @memberof PaymentInstruction
|
|
2099
2118
|
*/
|
|
2100
2119
|
sender_name?: string;
|
|
2120
|
+
/**
|
|
2121
|
+
*
|
|
2122
|
+
* @type {PaymentAccount}
|
|
2123
|
+
* @memberof PaymentInstruction
|
|
2124
|
+
*/
|
|
2125
|
+
sender_account?: PaymentAccount;
|
|
2101
2126
|
/**
|
|
2102
2127
|
* The sender account Id
|
|
2103
2128
|
* @type {string}
|
|
@@ -3701,113 +3726,6 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
|
|
|
3701
3726
|
*/
|
|
3702
3727
|
refreshLoginIdentity(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
3703
3728
|
}
|
|
3704
|
-
/**
|
|
3705
|
-
* PaymentApi - axios parameter creator
|
|
3706
|
-
* @export
|
|
3707
|
-
*/
|
|
3708
|
-
export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3709
|
-
/**
|
|
3710
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3711
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3712
|
-
* @param {*} [options] Override http request option.
|
|
3713
|
-
* @throws {RequiredError}
|
|
3714
|
-
*/
|
|
3715
|
-
createPaymentInstruction: (paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3716
|
-
/**
|
|
3717
|
-
* Get payment instructions by payment_instruction_id
|
|
3718
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3719
|
-
* @param {*} [options] Override http request option.
|
|
3720
|
-
* @throws {RequiredError}
|
|
3721
|
-
*/
|
|
3722
|
-
getPaymentInstruction: (paymentInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3723
|
-
};
|
|
3724
|
-
/**
|
|
3725
|
-
* PaymentApi - functional programming interface
|
|
3726
|
-
* @export
|
|
3727
|
-
*/
|
|
3728
|
-
export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
3729
|
-
/**
|
|
3730
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3731
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3732
|
-
* @param {*} [options] Override http request option.
|
|
3733
|
-
* @throws {RequiredError}
|
|
3734
|
-
*/
|
|
3735
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentInstructionResponse>>;
|
|
3736
|
-
/**
|
|
3737
|
-
* Get payment instructions by payment_instruction_id
|
|
3738
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3739
|
-
* @param {*} [options] Override http request option.
|
|
3740
|
-
* @throws {RequiredError}
|
|
3741
|
-
*/
|
|
3742
|
-
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentInstructionsResponse>>;
|
|
3743
|
-
};
|
|
3744
|
-
/**
|
|
3745
|
-
* PaymentApi - factory interface
|
|
3746
|
-
* @export
|
|
3747
|
-
*/
|
|
3748
|
-
export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3749
|
-
/**
|
|
3750
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3751
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3752
|
-
* @param {*} [options] Override http request option.
|
|
3753
|
-
* @throws {RequiredError}
|
|
3754
|
-
*/
|
|
3755
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: any): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
3756
|
-
/**
|
|
3757
|
-
* Get payment instructions by payment_instruction_id
|
|
3758
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3759
|
-
* @param {*} [options] Override http request option.
|
|
3760
|
-
* @throws {RequiredError}
|
|
3761
|
-
*/
|
|
3762
|
-
getPaymentInstruction(paymentInstructionId: string, options?: any): AxiosPromise<GetPaymentInstructionsResponse>;
|
|
3763
|
-
};
|
|
3764
|
-
/**
|
|
3765
|
-
* PaymentApi - interface
|
|
3766
|
-
* @export
|
|
3767
|
-
* @interface PaymentApi
|
|
3768
|
-
*/
|
|
3769
|
-
export interface PaymentApiInterface {
|
|
3770
|
-
/**
|
|
3771
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3772
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3773
|
-
* @param {*} [options] Override http request option.
|
|
3774
|
-
* @throws {RequiredError}
|
|
3775
|
-
* @memberof PaymentApiInterface
|
|
3776
|
-
*/
|
|
3777
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
3778
|
-
/**
|
|
3779
|
-
* Get payment instructions by payment_instruction_id
|
|
3780
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3781
|
-
* @param {*} [options] Override http request option.
|
|
3782
|
-
* @throws {RequiredError}
|
|
3783
|
-
* @memberof PaymentApiInterface
|
|
3784
|
-
*/
|
|
3785
|
-
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentInstructionsResponse>;
|
|
3786
|
-
}
|
|
3787
|
-
/**
|
|
3788
|
-
* PaymentApi - object-oriented interface
|
|
3789
|
-
* @export
|
|
3790
|
-
* @class PaymentApi
|
|
3791
|
-
* @extends {BaseAPI}
|
|
3792
|
-
*/
|
|
3793
|
-
export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
3794
|
-
/**
|
|
3795
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3796
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3797
|
-
* @param {*} [options] Override http request option.
|
|
3798
|
-
* @throws {RequiredError}
|
|
3799
|
-
* @memberof PaymentApi
|
|
3800
|
-
*/
|
|
3801
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentInstructionResponse>>;
|
|
3802
|
-
/**
|
|
3803
|
-
* Get payment instructions by payment_instruction_id
|
|
3804
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3805
|
-
* @param {*} [options] Override http request option.
|
|
3806
|
-
* @throws {RequiredError}
|
|
3807
|
-
* @memberof PaymentApi
|
|
3808
|
-
*/
|
|
3809
|
-
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentInstructionsResponse>>;
|
|
3810
|
-
}
|
|
3811
3729
|
/**
|
|
3812
3730
|
* PublicApi - axios parameter creator
|
|
3813
3731
|
* @export
|
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.
|
|
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.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.CustomerPaymentInstructionTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -1991,173 +1991,6 @@ class LoginIdentityApi extends base_1.BaseAPI {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
exports.LoginIdentityApi = LoginIdentityApi;
|
|
1994
|
-
/**
|
|
1995
|
-
* PaymentApi - axios parameter creator
|
|
1996
|
-
* @export
|
|
1997
|
-
*/
|
|
1998
|
-
exports.PaymentApiAxiosParamCreator = function (configuration) {
|
|
1999
|
-
return {
|
|
2000
|
-
/**
|
|
2001
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
2002
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
2003
|
-
* @param {*} [options] Override http request option.
|
|
2004
|
-
* @throws {RequiredError}
|
|
2005
|
-
*/
|
|
2006
|
-
createPaymentInstruction: (paymentInstruction, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2007
|
-
// verify required parameter 'paymentInstruction' is not null or undefined
|
|
2008
|
-
common_1.assertParamExists('createPaymentInstruction', 'paymentInstruction', paymentInstruction);
|
|
2009
|
-
const localVarPath = `/payments/instruction`;
|
|
2010
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2011
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2012
|
-
let baseOptions;
|
|
2013
|
-
if (configuration) {
|
|
2014
|
-
baseOptions = configuration.baseOptions;
|
|
2015
|
-
}
|
|
2016
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2017
|
-
const localVarHeaderParameter = {};
|
|
2018
|
-
const localVarQueryParameter = {};
|
|
2019
|
-
// authentication Oauth2 required
|
|
2020
|
-
// oauth required
|
|
2021
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2022
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2023
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2024
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2025
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2026
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(paymentInstruction, localVarRequestOptions, configuration);
|
|
2027
|
-
return {
|
|
2028
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
2029
|
-
options: localVarRequestOptions,
|
|
2030
|
-
};
|
|
2031
|
-
}),
|
|
2032
|
-
/**
|
|
2033
|
-
* Get payment instructions by payment_instruction_id
|
|
2034
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
2035
|
-
* @param {*} [options] Override http request option.
|
|
2036
|
-
* @throws {RequiredError}
|
|
2037
|
-
*/
|
|
2038
|
-
getPaymentInstruction: (paymentInstructionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2039
|
-
// verify required parameter 'paymentInstructionId' is not null or undefined
|
|
2040
|
-
common_1.assertParamExists('getPaymentInstruction', 'paymentInstructionId', paymentInstructionId);
|
|
2041
|
-
const localVarPath = `/payments/instruction/{paymentInstructionId}`.replace(`{${'paymentInstructionId'}}`, encodeURIComponent(String(paymentInstructionId)));
|
|
2042
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2043
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2044
|
-
let baseOptions;
|
|
2045
|
-
if (configuration) {
|
|
2046
|
-
baseOptions = configuration.baseOptions;
|
|
2047
|
-
}
|
|
2048
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2049
|
-
const localVarHeaderParameter = {};
|
|
2050
|
-
const localVarQueryParameter = {};
|
|
2051
|
-
// authentication Oauth2 required
|
|
2052
|
-
// oauth required
|
|
2053
|
-
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2054
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2055
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2056
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2057
|
-
return {
|
|
2058
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
2059
|
-
options: localVarRequestOptions,
|
|
2060
|
-
};
|
|
2061
|
-
}),
|
|
2062
|
-
};
|
|
2063
|
-
};
|
|
2064
|
-
/**
|
|
2065
|
-
* PaymentApi - functional programming interface
|
|
2066
|
-
* @export
|
|
2067
|
-
*/
|
|
2068
|
-
exports.PaymentApiFp = function (configuration) {
|
|
2069
|
-
const localVarAxiosParamCreator = exports.PaymentApiAxiosParamCreator(configuration);
|
|
2070
|
-
return {
|
|
2071
|
-
/**
|
|
2072
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
2073
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
2074
|
-
* @param {*} [options] Override http request option.
|
|
2075
|
-
* @throws {RequiredError}
|
|
2076
|
-
*/
|
|
2077
|
-
createPaymentInstruction(paymentInstruction, options) {
|
|
2078
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2079
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPaymentInstruction(paymentInstruction, options);
|
|
2080
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2081
|
-
});
|
|
2082
|
-
},
|
|
2083
|
-
/**
|
|
2084
|
-
* Get payment instructions by payment_instruction_id
|
|
2085
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
2086
|
-
* @param {*} [options] Override http request option.
|
|
2087
|
-
* @throws {RequiredError}
|
|
2088
|
-
*/
|
|
2089
|
-
getPaymentInstruction(paymentInstructionId, options) {
|
|
2090
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2091
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentInstruction(paymentInstructionId, options);
|
|
2092
|
-
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2093
|
-
});
|
|
2094
|
-
},
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
/**
|
|
2098
|
-
* PaymentApi - factory interface
|
|
2099
|
-
* @export
|
|
2100
|
-
*/
|
|
2101
|
-
exports.PaymentApiFactory = function (configuration, basePath, axios) {
|
|
2102
|
-
const localVarFp = exports.PaymentApiFp(configuration);
|
|
2103
|
-
return {
|
|
2104
|
-
/**
|
|
2105
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
2106
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
2107
|
-
* @param {*} [options] Override http request option.
|
|
2108
|
-
* @throws {RequiredError}
|
|
2109
|
-
*/
|
|
2110
|
-
createPaymentInstruction(paymentInstruction, options) {
|
|
2111
|
-
return localVarFp
|
|
2112
|
-
.createPaymentInstruction(paymentInstruction, options)
|
|
2113
|
-
.then((request) => request(axios, basePath));
|
|
2114
|
-
},
|
|
2115
|
-
/**
|
|
2116
|
-
* Get payment instructions by payment_instruction_id
|
|
2117
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
2118
|
-
* @param {*} [options] Override http request option.
|
|
2119
|
-
* @throws {RequiredError}
|
|
2120
|
-
*/
|
|
2121
|
-
getPaymentInstruction(paymentInstructionId, options) {
|
|
2122
|
-
return localVarFp
|
|
2123
|
-
.getPaymentInstruction(paymentInstructionId, options)
|
|
2124
|
-
.then((request) => request(axios, basePath));
|
|
2125
|
-
},
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
/**
|
|
2129
|
-
* PaymentApi - object-oriented interface
|
|
2130
|
-
* @export
|
|
2131
|
-
* @class PaymentApi
|
|
2132
|
-
* @extends {BaseAPI}
|
|
2133
|
-
*/
|
|
2134
|
-
class PaymentApi extends base_1.BaseAPI {
|
|
2135
|
-
/**
|
|
2136
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
2137
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
2138
|
-
* @param {*} [options] Override http request option.
|
|
2139
|
-
* @throws {RequiredError}
|
|
2140
|
-
* @memberof PaymentApi
|
|
2141
|
-
*/
|
|
2142
|
-
createPaymentInstruction(paymentInstruction, options) {
|
|
2143
|
-
return exports.PaymentApiFp(this.configuration)
|
|
2144
|
-
.createPaymentInstruction(paymentInstruction, options)
|
|
2145
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2146
|
-
}
|
|
2147
|
-
/**
|
|
2148
|
-
* Get payment instructions by payment_instruction_id
|
|
2149
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
2150
|
-
* @param {*} [options] Override http request option.
|
|
2151
|
-
* @throws {RequiredError}
|
|
2152
|
-
* @memberof PaymentApi
|
|
2153
|
-
*/
|
|
2154
|
-
getPaymentInstruction(paymentInstructionId, options) {
|
|
2155
|
-
return exports.PaymentApiFp(this.configuration)
|
|
2156
|
-
.getPaymentInstruction(paymentInstructionId, options)
|
|
2157
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
|
-
exports.PaymentApi = PaymentApi;
|
|
2161
1994
|
/**
|
|
2162
1995
|
* PublicApi - axios parameter creator
|
|
2163
1996
|
* @export
|