@finverse/sdk-typescript 0.0.26 → 0.0.29
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 +18 -107
- package/dist/api.js +1 -168
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -1403,6 +1403,12 @@ export interface LinkRequest {
|
|
|
1403
1403
|
* @memberof LinkRequest
|
|
1404
1404
|
*/
|
|
1405
1405
|
store_credential: boolean;
|
|
1406
|
+
/**
|
|
1407
|
+
* this is a mandatory field
|
|
1408
|
+
* @type {boolean}
|
|
1409
|
+
* @memberof LinkRequest
|
|
1410
|
+
*/
|
|
1411
|
+
consent?: boolean | null;
|
|
1406
1412
|
/**
|
|
1407
1413
|
* products that is requested
|
|
1408
1414
|
* @type {Array<string>}
|
|
@@ -1806,6 +1812,12 @@ export interface LoginIdentity {
|
|
|
1806
1812
|
* @memberof LoginIdentity
|
|
1807
1813
|
*/
|
|
1808
1814
|
webhook?: string;
|
|
1815
|
+
/**
|
|
1816
|
+
*
|
|
1817
|
+
* @type {string}
|
|
1818
|
+
* @memberof LoginIdentity
|
|
1819
|
+
*/
|
|
1820
|
+
session_status?: string;
|
|
1809
1821
|
/**
|
|
1810
1822
|
*
|
|
1811
1823
|
* @type {string}
|
|
@@ -2324,6 +2336,12 @@ export interface RelinkRequest {
|
|
|
2324
2336
|
* @memberof RelinkRequest
|
|
2325
2337
|
*/
|
|
2326
2338
|
store_credential: boolean;
|
|
2339
|
+
/**
|
|
2340
|
+
* this is a mandatory field
|
|
2341
|
+
* @type {boolean}
|
|
2342
|
+
* @memberof RelinkRequest
|
|
2343
|
+
*/
|
|
2344
|
+
consent?: boolean | null;
|
|
2327
2345
|
}
|
|
2328
2346
|
/**
|
|
2329
2347
|
*
|
|
@@ -3726,113 +3744,6 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
|
|
|
3726
3744
|
*/
|
|
3727
3745
|
refreshLoginIdentity(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
|
|
3728
3746
|
}
|
|
3729
|
-
/**
|
|
3730
|
-
* PaymentApi - axios parameter creator
|
|
3731
|
-
* @export
|
|
3732
|
-
*/
|
|
3733
|
-
export declare const PaymentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3734
|
-
/**
|
|
3735
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3736
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3737
|
-
* @param {*} [options] Override http request option.
|
|
3738
|
-
* @throws {RequiredError}
|
|
3739
|
-
*/
|
|
3740
|
-
createPaymentInstruction: (paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3741
|
-
/**
|
|
3742
|
-
* Get payment instructions by payment_instruction_id
|
|
3743
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3744
|
-
* @param {*} [options] Override http request option.
|
|
3745
|
-
* @throws {RequiredError}
|
|
3746
|
-
*/
|
|
3747
|
-
getPaymentInstruction: (paymentInstructionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3748
|
-
};
|
|
3749
|
-
/**
|
|
3750
|
-
* PaymentApi - functional programming interface
|
|
3751
|
-
* @export
|
|
3752
|
-
*/
|
|
3753
|
-
export declare const PaymentApiFp: (configuration?: Configuration) => {
|
|
3754
|
-
/**
|
|
3755
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3756
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3757
|
-
* @param {*} [options] Override http request option.
|
|
3758
|
-
* @throws {RequiredError}
|
|
3759
|
-
*/
|
|
3760
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentInstructionResponse>>;
|
|
3761
|
-
/**
|
|
3762
|
-
* Get payment instructions by payment_instruction_id
|
|
3763
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3764
|
-
* @param {*} [options] Override http request option.
|
|
3765
|
-
* @throws {RequiredError}
|
|
3766
|
-
*/
|
|
3767
|
-
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentInstructionsResponse>>;
|
|
3768
|
-
};
|
|
3769
|
-
/**
|
|
3770
|
-
* PaymentApi - factory interface
|
|
3771
|
-
* @export
|
|
3772
|
-
*/
|
|
3773
|
-
export declare const PaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3774
|
-
/**
|
|
3775
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3776
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3777
|
-
* @param {*} [options] Override http request option.
|
|
3778
|
-
* @throws {RequiredError}
|
|
3779
|
-
*/
|
|
3780
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: any): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
3781
|
-
/**
|
|
3782
|
-
* Get payment instructions by payment_instruction_id
|
|
3783
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3784
|
-
* @param {*} [options] Override http request option.
|
|
3785
|
-
* @throws {RequiredError}
|
|
3786
|
-
*/
|
|
3787
|
-
getPaymentInstruction(paymentInstructionId: string, options?: any): AxiosPromise<GetPaymentInstructionsResponse>;
|
|
3788
|
-
};
|
|
3789
|
-
/**
|
|
3790
|
-
* PaymentApi - interface
|
|
3791
|
-
* @export
|
|
3792
|
-
* @interface PaymentApi
|
|
3793
|
-
*/
|
|
3794
|
-
export interface PaymentApiInterface {
|
|
3795
|
-
/**
|
|
3796
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3797
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3798
|
-
* @param {*} [options] Override http request option.
|
|
3799
|
-
* @throws {RequiredError}
|
|
3800
|
-
* @memberof PaymentApiInterface
|
|
3801
|
-
*/
|
|
3802
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): AxiosPromise<CreatePaymentInstructionResponse>;
|
|
3803
|
-
/**
|
|
3804
|
-
* Get payment instructions by payment_instruction_id
|
|
3805
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3806
|
-
* @param {*} [options] Override http request option.
|
|
3807
|
-
* @throws {RequiredError}
|
|
3808
|
-
* @memberof PaymentApiInterface
|
|
3809
|
-
*/
|
|
3810
|
-
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): AxiosPromise<GetPaymentInstructionsResponse>;
|
|
3811
|
-
}
|
|
3812
|
-
/**
|
|
3813
|
-
* PaymentApi - object-oriented interface
|
|
3814
|
-
* @export
|
|
3815
|
-
* @class PaymentApi
|
|
3816
|
-
* @extends {BaseAPI}
|
|
3817
|
-
*/
|
|
3818
|
-
export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
3819
|
-
/**
|
|
3820
|
-
* Create a new payment instruction to be used when linking to perform new payment
|
|
3821
|
-
* @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
|
|
3822
|
-
* @param {*} [options] Override http request option.
|
|
3823
|
-
* @throws {RequiredError}
|
|
3824
|
-
* @memberof PaymentApi
|
|
3825
|
-
*/
|
|
3826
|
-
createPaymentInstruction(paymentInstruction: CustomerPaymentInstruction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentInstructionResponse>>;
|
|
3827
|
-
/**
|
|
3828
|
-
* Get payment instructions by payment_instruction_id
|
|
3829
|
-
* @param {string} paymentInstructionId The id of a payment instruction
|
|
3830
|
-
* @param {*} [options] Override http request option.
|
|
3831
|
-
* @throws {RequiredError}
|
|
3832
|
-
* @memberof PaymentApi
|
|
3833
|
-
*/
|
|
3834
|
-
getPaymentInstruction(paymentInstructionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentInstructionsResponse>>;
|
|
3835
|
-
}
|
|
3836
3747
|
/**
|
|
3837
3748
|
* PublicApi - axios parameter creator
|
|
3838
3749
|
* @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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finverse/sdk-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "OpenAPI client for @finverse/sdk-typescript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@types/node": "^12.11.5",
|
|
27
27
|
"axios-mock-adapter": "^1.20.0",
|
|
28
28
|
"chai": "^4.3.6",
|
|
29
|
-
"mocha": "^
|
|
29
|
+
"mocha": "^10.0.0",
|
|
30
30
|
"ts-node": "^10.7.0",
|
|
31
31
|
"typescript": "^3.6.4"
|
|
32
32
|
},
|