@finverse/sdk-typescript 0.0.9 → 0.0.12
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 +75 -0
- package/dist/api.js +57 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1491,6 +1491,31 @@ export interface ListAccountsResponse {
|
|
|
1491
1491
|
*/
|
|
1492
1492
|
institution?: InstitutionShort;
|
|
1493
1493
|
}
|
|
1494
|
+
/**
|
|
1495
|
+
*
|
|
1496
|
+
* @export
|
|
1497
|
+
* @interface ListPaymentInstructionsResponse
|
|
1498
|
+
*/
|
|
1499
|
+
export interface ListPaymentInstructionsResponse {
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @type {Array<PaymentInstruction>}
|
|
1503
|
+
* @memberof ListPaymentInstructionsResponse
|
|
1504
|
+
*/
|
|
1505
|
+
payment_instructions?: Array<PaymentInstruction>;
|
|
1506
|
+
/**
|
|
1507
|
+
*
|
|
1508
|
+
* @type {LoginIdentityShort}
|
|
1509
|
+
* @memberof ListPaymentInstructionsResponse
|
|
1510
|
+
*/
|
|
1511
|
+
login_identity?: LoginIdentityShort;
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @type {InstitutionShort}
|
|
1515
|
+
* @memberof ListPaymentInstructionsResponse
|
|
1516
|
+
*/
|
|
1517
|
+
institution?: InstitutionShort;
|
|
1518
|
+
}
|
|
1494
1519
|
/**
|
|
1495
1520
|
*
|
|
1496
1521
|
* @export
|
|
@@ -1935,6 +1960,12 @@ export interface PaymentInstruction {
|
|
|
1935
1960
|
* @memberof PaymentInstruction
|
|
1936
1961
|
*/
|
|
1937
1962
|
recipient_name?: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* The recipient account Id
|
|
1965
|
+
* @type {string}
|
|
1966
|
+
* @memberof PaymentInstruction
|
|
1967
|
+
*/
|
|
1968
|
+
recipient_account_id?: string;
|
|
1938
1969
|
/**
|
|
1939
1970
|
* The sender name
|
|
1940
1971
|
* @type {string}
|
|
@@ -1989,6 +2020,18 @@ export interface PaymentInstruction {
|
|
|
1989
2020
|
* @memberof PaymentInstruction
|
|
1990
2021
|
*/
|
|
1991
2022
|
idempotence_key?: string;
|
|
2023
|
+
/**
|
|
2024
|
+
* Status of the payment
|
|
2025
|
+
* @type {string}
|
|
2026
|
+
* @memberof PaymentInstruction
|
|
2027
|
+
*/
|
|
2028
|
+
payment_status?: string;
|
|
2029
|
+
/**
|
|
2030
|
+
* Reference identification returned by institution
|
|
2031
|
+
* @type {string}
|
|
2032
|
+
* @memberof PaymentInstruction
|
|
2033
|
+
*/
|
|
2034
|
+
reference_id?: string;
|
|
1992
2035
|
}
|
|
1993
2036
|
export declare const PaymentInstructionPaymentTypeEnum: {
|
|
1994
2037
|
readonly DebitAuthorization: "DEBIT_AUTHORIZATION";
|
|
@@ -3029,6 +3072,12 @@ export declare const LoginIdentityApiAxiosParamCreator: (configuration?: Configu
|
|
|
3029
3072
|
* @throws {RequiredError}
|
|
3030
3073
|
*/
|
|
3031
3074
|
listAccounts: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3075
|
+
/**
|
|
3076
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
3077
|
+
* @param {*} [options] Override http request option.
|
|
3078
|
+
* @throws {RequiredError}
|
|
3079
|
+
*/
|
|
3080
|
+
listPaymentInstructions: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3032
3081
|
/**
|
|
3033
3082
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
3034
3083
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
|
@@ -3136,6 +3185,12 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
|
|
|
3136
3185
|
* @throws {RequiredError}
|
|
3137
3186
|
*/
|
|
3138
3187
|
listAccounts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsResponse>>;
|
|
3188
|
+
/**
|
|
3189
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
3190
|
+
* @param {*} [options] Override http request option.
|
|
3191
|
+
* @throws {RequiredError}
|
|
3192
|
+
*/
|
|
3193
|
+
listPaymentInstructions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentInstructionsResponse>>;
|
|
3139
3194
|
/**
|
|
3140
3195
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
3141
3196
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
|
@@ -3243,6 +3298,12 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
|
|
|
3243
3298
|
* @throws {RequiredError}
|
|
3244
3299
|
*/
|
|
3245
3300
|
listAccounts(options?: any): AxiosPromise<ListAccountsResponse>;
|
|
3301
|
+
/**
|
|
3302
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
3303
|
+
* @param {*} [options] Override http request option.
|
|
3304
|
+
* @throws {RequiredError}
|
|
3305
|
+
*/
|
|
3306
|
+
listPaymentInstructions(options?: any): AxiosPromise<ListPaymentInstructionsResponse>;
|
|
3246
3307
|
/**
|
|
3247
3308
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
3248
3309
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
|
@@ -3363,6 +3424,13 @@ export interface LoginIdentityApiInterface {
|
|
|
3363
3424
|
* @memberof LoginIdentityApiInterface
|
|
3364
3425
|
*/
|
|
3365
3426
|
listAccounts(options?: AxiosRequestConfig): AxiosPromise<ListAccountsResponse>;
|
|
3427
|
+
/**
|
|
3428
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
3429
|
+
* @param {*} [options] Override http request option.
|
|
3430
|
+
* @throws {RequiredError}
|
|
3431
|
+
* @memberof LoginIdentityApiInterface
|
|
3432
|
+
*/
|
|
3433
|
+
listPaymentInstructions(options?: AxiosRequestConfig): AxiosPromise<ListPaymentInstructionsResponse>;
|
|
3366
3434
|
/**
|
|
3367
3435
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
3368
3436
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
|
@@ -3487,6 +3555,13 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
|
|
|
3487
3555
|
* @memberof LoginIdentityApi
|
|
3488
3556
|
*/
|
|
3489
3557
|
listAccounts(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsResponse>>;
|
|
3558
|
+
/**
|
|
3559
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
3560
|
+
* @param {*} [options] Override http request option.
|
|
3561
|
+
* @throws {RequiredError}
|
|
3562
|
+
* @memberof LoginIdentityApi
|
|
3563
|
+
*/
|
|
3564
|
+
listPaymentInstructions(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentInstructionsResponse>>;
|
|
3490
3565
|
/**
|
|
3491
3566
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
3492
3567
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
package/dist/api.js
CHANGED
|
@@ -1302,6 +1302,33 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
|
|
|
1302
1302
|
options: localVarRequestOptions,
|
|
1303
1303
|
};
|
|
1304
1304
|
}),
|
|
1305
|
+
/**
|
|
1306
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
1307
|
+
* @param {*} [options] Override http request option.
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
*/
|
|
1310
|
+
listPaymentInstructions: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1311
|
+
const localVarPath = `/payments/instruction/`;
|
|
1312
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1313
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1314
|
+
let baseOptions;
|
|
1315
|
+
if (configuration) {
|
|
1316
|
+
baseOptions = configuration.baseOptions;
|
|
1317
|
+
}
|
|
1318
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1319
|
+
const localVarHeaderParameter = {};
|
|
1320
|
+
const localVarQueryParameter = {};
|
|
1321
|
+
// authentication Oauth2 required
|
|
1322
|
+
// oauth required
|
|
1323
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1324
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1326
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1327
|
+
return {
|
|
1328
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1329
|
+
options: localVarRequestOptions,
|
|
1330
|
+
};
|
|
1331
|
+
}),
|
|
1305
1332
|
/**
|
|
1306
1333
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
1307
1334
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
|
@@ -1549,6 +1576,17 @@ exports.LoginIdentityApiFp = function (configuration) {
|
|
|
1549
1576
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1550
1577
|
});
|
|
1551
1578
|
},
|
|
1579
|
+
/**
|
|
1580
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
1581
|
+
* @param {*} [options] Override http request option.
|
|
1582
|
+
* @throws {RequiredError}
|
|
1583
|
+
*/
|
|
1584
|
+
listPaymentInstructions(options) {
|
|
1585
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPaymentInstructions(options);
|
|
1587
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1588
|
+
});
|
|
1589
|
+
},
|
|
1552
1590
|
/**
|
|
1553
1591
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
1554
1592
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
|
@@ -1698,6 +1736,14 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
|
|
|
1698
1736
|
listAccounts(options) {
|
|
1699
1737
|
return localVarFp.listAccounts(options).then((request) => request(axios, basePath));
|
|
1700
1738
|
},
|
|
1739
|
+
/**
|
|
1740
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
1741
|
+
* @param {*} [options] Override http request option.
|
|
1742
|
+
* @throws {RequiredError}
|
|
1743
|
+
*/
|
|
1744
|
+
listPaymentInstructions(options) {
|
|
1745
|
+
return localVarFp.listPaymentInstructions(options).then((request) => request(axios, basePath));
|
|
1746
|
+
},
|
|
1701
1747
|
/**
|
|
1702
1748
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
1703
1749
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|
|
@@ -1878,6 +1924,17 @@ class LoginIdentityApi extends base_1.BaseAPI {
|
|
|
1878
1924
|
.listAccounts(options)
|
|
1879
1925
|
.then((request) => request(this.axios, this.basePath));
|
|
1880
1926
|
}
|
|
1927
|
+
/**
|
|
1928
|
+
* Get list of payment instructions to be used when linking to perfom debit authorization
|
|
1929
|
+
* @param {*} [options] Override http request option.
|
|
1930
|
+
* @throws {RequiredError}
|
|
1931
|
+
* @memberof LoginIdentityApi
|
|
1932
|
+
*/
|
|
1933
|
+
listPaymentInstructions(options) {
|
|
1934
|
+
return exports.LoginIdentityApiFp(this.configuration)
|
|
1935
|
+
.listPaymentInstructions(options)
|
|
1936
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1937
|
+
}
|
|
1881
1938
|
/**
|
|
1882
1939
|
* Get a list of transactions for a particular account. The transactions are returned in sorted order, with the most recent one appearing first.
|
|
1883
1940
|
* @param {string} accountId The account id (ULID, example - 01EP4A1MZDHKETZFRPF0K62S6S)
|