@finverse/sdk-typescript 0.0.171 → 0.0.172
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 +55 -0
- package/dist/api.js +73 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -484,6 +484,19 @@ export declare const AuthChecklistOptionsSubmittedByEnum: {
|
|
|
484
484
|
readonly FinverseLink: "FINVERSE_LINK";
|
|
485
485
|
};
|
|
486
486
|
export declare type AuthChecklistOptionsSubmittedByEnum = (typeof AuthChecklistOptionsSubmittedByEnum)[keyof typeof AuthChecklistOptionsSubmittedByEnum];
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @export
|
|
490
|
+
* @interface AuthorizeMandateRequest
|
|
491
|
+
*/
|
|
492
|
+
export interface AuthorizeMandateRequest {
|
|
493
|
+
/**
|
|
494
|
+
* Whether a consent was provided by the enduser to authorize a mandate
|
|
495
|
+
* @type {boolean}
|
|
496
|
+
* @memberof AuthorizeMandateRequest
|
|
497
|
+
*/
|
|
498
|
+
enduser_consent: boolean;
|
|
499
|
+
}
|
|
487
500
|
/**
|
|
488
501
|
*
|
|
489
502
|
* @export
|
|
@@ -6039,6 +6052,14 @@ export interface UserMessage {
|
|
|
6039
6052
|
* @export
|
|
6040
6053
|
*/
|
|
6041
6054
|
export declare const CustomerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6055
|
+
/**
|
|
6056
|
+
* Allows a customer to authorize a specific mandate
|
|
6057
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
6058
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
6059
|
+
* @param {*} [options] Override http request option.
|
|
6060
|
+
* @throws {RequiredError}
|
|
6061
|
+
*/
|
|
6062
|
+
authorizeMandate: (mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6042
6063
|
/**
|
|
6043
6064
|
* Cancel Payout Instruction by payout_instruction_id
|
|
6044
6065
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -6225,6 +6246,14 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
6225
6246
|
* @export
|
|
6226
6247
|
*/
|
|
6227
6248
|
export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
6249
|
+
/**
|
|
6250
|
+
* Allows a customer to authorize a specific mandate
|
|
6251
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
6252
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
6253
|
+
* @param {*} [options] Override http request option.
|
|
6254
|
+
* @throws {RequiredError}
|
|
6255
|
+
*/
|
|
6256
|
+
authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAuthChecklistResponse>>;
|
|
6228
6257
|
/**
|
|
6229
6258
|
* Cancel Payout Instruction by payout_instruction_id
|
|
6230
6259
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -6411,6 +6440,14 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
6411
6440
|
* @export
|
|
6412
6441
|
*/
|
|
6413
6442
|
export declare const CustomerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6443
|
+
/**
|
|
6444
|
+
* Allows a customer to authorize a specific mandate
|
|
6445
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
6446
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
6447
|
+
* @param {*} [options] Override http request option.
|
|
6448
|
+
* @throws {RequiredError}
|
|
6449
|
+
*/
|
|
6450
|
+
authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: any): AxiosPromise<SubmitAuthChecklistResponse>;
|
|
6414
6451
|
/**
|
|
6415
6452
|
* Cancel Payout Instruction by payout_instruction_id
|
|
6416
6453
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -6598,6 +6635,15 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
|
|
|
6598
6635
|
* @interface CustomerApi
|
|
6599
6636
|
*/
|
|
6600
6637
|
export interface CustomerApiInterface {
|
|
6638
|
+
/**
|
|
6639
|
+
* Allows a customer to authorize a specific mandate
|
|
6640
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
6641
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
6642
|
+
* @param {*} [options] Override http request option.
|
|
6643
|
+
* @throws {RequiredError}
|
|
6644
|
+
* @memberof CustomerApiInterface
|
|
6645
|
+
*/
|
|
6646
|
+
authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitAuthChecklistResponse>;
|
|
6601
6647
|
/**
|
|
6602
6648
|
* Cancel Payout Instruction by payout_instruction_id
|
|
6603
6649
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -6811,6 +6857,15 @@ export interface CustomerApiInterface {
|
|
|
6811
6857
|
* @extends {BaseAPI}
|
|
6812
6858
|
*/
|
|
6813
6859
|
export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
|
|
6860
|
+
/**
|
|
6861
|
+
* Allows a customer to authorize a specific mandate
|
|
6862
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
6863
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
6864
|
+
* @param {*} [options] Override http request option.
|
|
6865
|
+
* @throws {RequiredError}
|
|
6866
|
+
* @memberof CustomerApi
|
|
6867
|
+
*/
|
|
6868
|
+
authorizeMandate(mandateId: string, authorizeMandateRequest: AuthorizeMandateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitAuthChecklistResponse>>;
|
|
6814
6869
|
/**
|
|
6815
6870
|
* Cancel Payout Instruction by payout_instruction_id
|
|
6816
6871
|
* @param {string} payoutInstructionId payout instruction id
|
package/dist/api.js
CHANGED
|
@@ -306,6 +306,41 @@ exports.TransactionLimitsPeriodEnum = {
|
|
|
306
306
|
*/
|
|
307
307
|
exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
308
308
|
return {
|
|
309
|
+
/**
|
|
310
|
+
* Allows a customer to authorize a specific mandate
|
|
311
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
312
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
authorizeMandate: (mandateId, authorizeMandateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
// verify required parameter 'mandateId' is not null or undefined
|
|
318
|
+
common_1.assertParamExists('authorizeMandate', 'mandateId', mandateId);
|
|
319
|
+
// verify required parameter 'authorizeMandateRequest' is not null or undefined
|
|
320
|
+
common_1.assertParamExists('authorizeMandate', 'authorizeMandateRequest', authorizeMandateRequest);
|
|
321
|
+
const localVarPath = `/mandates/{mandateId}/authorize`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
|
|
322
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
323
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
324
|
+
let baseOptions;
|
|
325
|
+
if (configuration) {
|
|
326
|
+
baseOptions = configuration.baseOptions;
|
|
327
|
+
}
|
|
328
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
329
|
+
const localVarHeaderParameter = {};
|
|
330
|
+
const localVarQueryParameter = {};
|
|
331
|
+
// authentication Oauth2 required
|
|
332
|
+
// oauth required
|
|
333
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
335
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
338
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(authorizeMandateRequest, localVarRequestOptions, configuration);
|
|
339
|
+
return {
|
|
340
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
341
|
+
options: localVarRequestOptions,
|
|
342
|
+
};
|
|
343
|
+
}),
|
|
309
344
|
/**
|
|
310
345
|
* Cancel Payout Instruction by payout_instruction_id
|
|
311
346
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -1109,6 +1144,19 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
|
|
|
1109
1144
|
exports.CustomerApiFp = function (configuration) {
|
|
1110
1145
|
const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
|
|
1111
1146
|
return {
|
|
1147
|
+
/**
|
|
1148
|
+
* Allows a customer to authorize a specific mandate
|
|
1149
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
1150
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
1151
|
+
* @param {*} [options] Override http request option.
|
|
1152
|
+
* @throws {RequiredError}
|
|
1153
|
+
*/
|
|
1154
|
+
authorizeMandate(mandateId, authorizeMandateRequest, options) {
|
|
1155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeMandate(mandateId, authorizeMandateRequest, options);
|
|
1157
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1158
|
+
});
|
|
1159
|
+
},
|
|
1112
1160
|
/**
|
|
1113
1161
|
* Cancel Payout Instruction by payout_instruction_id
|
|
1114
1162
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -1423,6 +1471,18 @@ exports.CustomerApiFp = function (configuration) {
|
|
|
1423
1471
|
exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
1424
1472
|
const localVarFp = exports.CustomerApiFp(configuration);
|
|
1425
1473
|
return {
|
|
1474
|
+
/**
|
|
1475
|
+
* Allows a customer to authorize a specific mandate
|
|
1476
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
1477
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
1478
|
+
* @param {*} [options] Override http request option.
|
|
1479
|
+
* @throws {RequiredError}
|
|
1480
|
+
*/
|
|
1481
|
+
authorizeMandate(mandateId, authorizeMandateRequest, options) {
|
|
1482
|
+
return localVarFp
|
|
1483
|
+
.authorizeMandate(mandateId, authorizeMandateRequest, options)
|
|
1484
|
+
.then((request) => request(axios, basePath));
|
|
1485
|
+
},
|
|
1426
1486
|
/**
|
|
1427
1487
|
* Cancel Payout Instruction by payout_instruction_id
|
|
1428
1488
|
* @param {string} payoutInstructionId payout instruction id
|
|
@@ -1684,6 +1744,19 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
|
|
|
1684
1744
|
* @extends {BaseAPI}
|
|
1685
1745
|
*/
|
|
1686
1746
|
class CustomerApi extends base_1.BaseAPI {
|
|
1747
|
+
/**
|
|
1748
|
+
* Allows a customer to authorize a specific mandate
|
|
1749
|
+
* @param {string} mandateId The mandate_id that is being authorized
|
|
1750
|
+
* @param {AuthorizeMandateRequest} authorizeMandateRequest request body for authorizing a mandate
|
|
1751
|
+
* @param {*} [options] Override http request option.
|
|
1752
|
+
* @throws {RequiredError}
|
|
1753
|
+
* @memberof CustomerApi
|
|
1754
|
+
*/
|
|
1755
|
+
authorizeMandate(mandateId, authorizeMandateRequest, options) {
|
|
1756
|
+
return exports.CustomerApiFp(this.configuration)
|
|
1757
|
+
.authorizeMandate(mandateId, authorizeMandateRequest, options)
|
|
1758
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1759
|
+
}
|
|
1687
1760
|
/**
|
|
1688
1761
|
* Cancel Payout Instruction by payout_instruction_id
|
|
1689
1762
|
* @param {string} payoutInstructionId payout instruction id
|