@finverse/sdk-typescript 0.0.48 → 0.0.49

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 CHANGED
@@ -987,6 +987,60 @@ export interface GetLoginIdentityHistoryResponse {
987
987
  */
988
988
  status_history?: Array<LoginIdentityStatusDetails>;
989
989
  }
990
+ /**
991
+ *
992
+ * @export
993
+ * @interface GetMandateAuthLinkRequest
994
+ */
995
+ export interface GetMandateAuthLinkRequest {
996
+ /**
997
+ * Mandate ID
998
+ * @type {string}
999
+ * @memberof GetMandateAuthLinkRequest
1000
+ */
1001
+ mandate_id: string;
1002
+ /**
1003
+ *
1004
+ * @type {MandateAuthLinkCustomizations}
1005
+ * @memberof GetMandateAuthLinkRequest
1006
+ */
1007
+ link_customizations: MandateAuthLinkCustomizations;
1008
+ }
1009
+ /**
1010
+ *
1011
+ * @export
1012
+ * @interface GetMandateAuthLinkResponse
1013
+ */
1014
+ export interface GetMandateAuthLinkResponse {
1015
+ /**
1016
+ * Short-lived access-token to interact with Finverse Link
1017
+ * @type {string}
1018
+ * @memberof GetMandateAuthLinkResponse
1019
+ */
1020
+ access_token: string;
1021
+ /**
1022
+ * Access token validity duration (in seconds)
1023
+ * @type {number}
1024
+ * @memberof GetMandateAuthLinkResponse
1025
+ */
1026
+ expires_in: number;
1027
+ /**
1028
+ * URL to launch Finverse Link to authorize the mandate
1029
+ * @type {string}
1030
+ * @memberof GetMandateAuthLinkResponse
1031
+ */
1032
+ link_url: string;
1033
+ /**
1034
+ *
1035
+ * @type {string}
1036
+ * @memberof GetMandateAuthLinkResponse
1037
+ */
1038
+ token_type: GetMandateAuthLinkResponseTokenTypeEnum;
1039
+ }
1040
+ export declare const GetMandateAuthLinkResponseTokenTypeEnum: {
1041
+ readonly Bearer: "Bearer";
1042
+ };
1043
+ export declare type GetMandateAuthLinkResponseTokenTypeEnum = typeof GetMandateAuthLinkResponseTokenTypeEnum[keyof typeof GetMandateAuthLinkResponseTokenTypeEnum];
990
1044
  /**
991
1045
  *
992
1046
  * @export
@@ -2479,6 +2533,68 @@ export interface MandateAuthEncryptionInfo {
2479
2533
  */
2480
2534
  key_id: string;
2481
2535
  }
2536
+ /**
2537
+ *
2538
+ * @export
2539
+ * @interface MandateAuthLinkCustomizations
2540
+ */
2541
+ export interface MandateAuthLinkCustomizations {
2542
+ /**
2543
+ * institution\'s country filter
2544
+ * @type {Array<string>}
2545
+ * @memberof MandateAuthLinkCustomizations
2546
+ */
2547
+ countries?: Array<string>;
2548
+ /**
2549
+ * Institution to preselect
2550
+ * @type {string}
2551
+ * @memberof MandateAuthLinkCustomizations
2552
+ */
2553
+ institution_id?: string;
2554
+ /**
2555
+ * institution\'s status filter
2556
+ * @type {string}
2557
+ * @memberof MandateAuthLinkCustomizations
2558
+ */
2559
+ institution_status?: string;
2560
+ /**
2561
+ * ISO639-1 language code. Language to display when user open the link, default to English (en) if not specified
2562
+ * @type {string}
2563
+ * @memberof MandateAuthLinkCustomizations
2564
+ */
2565
+ language?: string;
2566
+ /**
2567
+ * Space separated list of the tags of the institutions to view.
2568
+ * @type {string}
2569
+ * @memberof MandateAuthLinkCustomizations
2570
+ */
2571
+ link_mode?: string;
2572
+ /**
2573
+ * institution\'s supported product filter
2574
+ * @type {Array<string>}
2575
+ * @memberof MandateAuthLinkCustomizations
2576
+ */
2577
+ products_supported?: Array<string>;
2578
+ /**
2579
+ * The UI mode link is intended to be used in - \"iframe\" (default), \"auto_redirect\" or \"redirect\" or \"standalone\"
2580
+ * @type {string}
2581
+ * @memberof MandateAuthLinkCustomizations
2582
+ */
2583
+ ui_mode?: MandateAuthLinkCustomizationsUiModeEnum;
2584
+ /**
2585
+ * institution\'s supported user_type filter
2586
+ * @type {Array<string>}
2587
+ * @memberof MandateAuthLinkCustomizations
2588
+ */
2589
+ user_type?: Array<string>;
2590
+ }
2591
+ export declare const MandateAuthLinkCustomizationsUiModeEnum: {
2592
+ readonly Iframe: "iframe";
2593
+ readonly Redirect: "redirect";
2594
+ readonly AutoRedirect: "auto_redirect";
2595
+ readonly Standalone: "standalone";
2596
+ };
2597
+ export declare type MandateAuthLinkCustomizationsUiModeEnum = typeof MandateAuthLinkCustomizationsUiModeEnum[keyof typeof MandateAuthLinkCustomizationsUiModeEnum];
2482
2598
  /**
2483
2599
  *
2484
2600
  * @export
@@ -3325,6 +3441,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
3325
3441
  * @throws {RequiredError}
3326
3442
  */
3327
3443
  getMandateAuth: (mandateId: string, institutionId: string, senderType?: 'PERSONAL' | 'BUSINESS', options?: AxiosRequestConfig) => Promise<RequestArgs>;
3444
+ /**
3445
+ * Get link to launch FV Link UI in mandate authorization mode
3446
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
3447
+ * @param {*} [options] Override http request option.
3448
+ * @throws {RequiredError}
3449
+ */
3450
+ getMandateAuthLink: (getMandateAuthLinkRequest: GetMandateAuthLinkRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3328
3451
  /**
3329
3452
  * Get Payment details by payment_id
3330
3453
  * @param {string} paymentId payment id
@@ -3429,6 +3552,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
3429
3552
  * @throws {RequiredError}
3430
3553
  */
3431
3554
  getMandateAuth(mandateId: string, institutionId: string, senderType?: 'PERSONAL' | 'BUSINESS', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandateAuthResponse>>;
3555
+ /**
3556
+ * Get link to launch FV Link UI in mandate authorization mode
3557
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
3558
+ * @param {*} [options] Override http request option.
3559
+ * @throws {RequiredError}
3560
+ */
3561
+ getMandateAuthLink(getMandateAuthLinkRequest: GetMandateAuthLinkRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMandateAuthLinkResponse>>;
3432
3562
  /**
3433
3563
  * Get Payment details by payment_id
3434
3564
  * @param {string} paymentId payment id
@@ -3533,6 +3663,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
3533
3663
  * @throws {RequiredError}
3534
3664
  */
3535
3665
  getMandateAuth(mandateId: string, institutionId: string, senderType?: 'PERSONAL' | 'BUSINESS', options?: any): AxiosPromise<GetMandateAuthResponse>;
3666
+ /**
3667
+ * Get link to launch FV Link UI in mandate authorization mode
3668
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
3669
+ * @param {*} [options] Override http request option.
3670
+ * @throws {RequiredError}
3671
+ */
3672
+ getMandateAuthLink(getMandateAuthLinkRequest: GetMandateAuthLinkRequest, options?: any): AxiosPromise<GetMandateAuthLinkResponse>;
3536
3673
  /**
3537
3674
  * Get Payment details by payment_id
3538
3675
  * @param {string} paymentId payment id
@@ -3647,6 +3784,14 @@ export interface CustomerApiInterface {
3647
3784
  * @memberof CustomerApiInterface
3648
3785
  */
3649
3786
  getMandateAuth(mandateId: string, institutionId: string, senderType?: 'PERSONAL' | 'BUSINESS', options?: AxiosRequestConfig): AxiosPromise<GetMandateAuthResponse>;
3787
+ /**
3788
+ * Get link to launch FV Link UI in mandate authorization mode
3789
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
3790
+ * @param {*} [options] Override http request option.
3791
+ * @throws {RequiredError}
3792
+ * @memberof CustomerApiInterface
3793
+ */
3794
+ getMandateAuthLink(getMandateAuthLinkRequest: GetMandateAuthLinkRequest, options?: AxiosRequestConfig): AxiosPromise<GetMandateAuthLinkResponse>;
3650
3795
  /**
3651
3796
  * Get Payment details by payment_id
3652
3797
  * @param {string} paymentId payment id
@@ -3766,6 +3911,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
3766
3911
  * @memberof CustomerApi
3767
3912
  */
3768
3913
  getMandateAuth(mandateId: string, institutionId: string, senderType?: 'PERSONAL' | 'BUSINESS', options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandateAuthResponse>>;
3914
+ /**
3915
+ * Get link to launch FV Link UI in mandate authorization mode
3916
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
3917
+ * @param {*} [options] Override http request option.
3918
+ * @throws {RequiredError}
3919
+ * @memberof CustomerApi
3920
+ */
3921
+ getMandateAuthLink(getMandateAuthLinkRequest: GetMandateAuthLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMandateAuthLinkResponse>>;
3769
3922
  /**
3770
3923
  * Get Payment details by payment_id
3771
3924
  * @param {string} paymentId payment id
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.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandateResponseMandateStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = 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.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandateResponseMandateStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -55,6 +55,9 @@ exports.CreatePaymentRequestTypeEnum = {
55
55
  exports.CustomerPaymentInstructionTypeEnum = {
56
56
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
57
57
  };
58
+ exports.GetMandateAuthLinkResponseTokenTypeEnum = {
59
+ Bearer: 'Bearer',
60
+ };
58
61
  exports.GetMandateAuthResponseMandateStatusEnum = {
59
62
  Created: 'CREATED',
60
63
  Processing: 'PROCESSING',
@@ -95,6 +98,12 @@ exports.LinkTokenRequestAutomaticDataRefreshEnum = {
95
98
  Off: 'OFF',
96
99
  ForcedOn: 'FORCED_ON',
97
100
  };
101
+ exports.MandateAuthLinkCustomizationsUiModeEnum = {
102
+ Iframe: 'iframe',
103
+ Redirect: 'redirect',
104
+ AutoRedirect: 'auto_redirect',
105
+ Standalone: 'standalone',
106
+ };
98
107
  exports.PaymentInstructionTypeEnum = {
99
108
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
100
109
  };
@@ -414,6 +423,38 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
414
423
  options: localVarRequestOptions,
415
424
  };
416
425
  }),
426
+ /**
427
+ * Get link to launch FV Link UI in mandate authorization mode
428
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ getMandateAuthLink: (getMandateAuthLinkRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
433
+ // verify required parameter 'getMandateAuthLinkRequest' is not null or undefined
434
+ common_1.assertParamExists('getMandateAuthLink', 'getMandateAuthLinkRequest', getMandateAuthLinkRequest);
435
+ const localVarPath = `/mandates/link`;
436
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
437
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
438
+ let baseOptions;
439
+ if (configuration) {
440
+ baseOptions = configuration.baseOptions;
441
+ }
442
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
443
+ const localVarHeaderParameter = {};
444
+ const localVarQueryParameter = {};
445
+ // authentication Oauth2 required
446
+ // oauth required
447
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
448
+ localVarHeaderParameter['Content-Type'] = 'application/json';
449
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
450
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
451
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
452
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(getMandateAuthLinkRequest, localVarRequestOptions, configuration);
453
+ return {
454
+ url: common_1.toPathString(localVarUrlObj),
455
+ options: localVarRequestOptions,
456
+ };
457
+ }),
417
458
  /**
418
459
  * Get Payment details by payment_id
419
460
  * @param {string} paymentId payment id
@@ -670,6 +711,18 @@ exports.CustomerApiFp = function (configuration) {
670
711
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
671
712
  });
672
713
  },
714
+ /**
715
+ * Get link to launch FV Link UI in mandate authorization mode
716
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ getMandateAuthLink(getMandateAuthLinkRequest, options) {
721
+ return __awaiter(this, void 0, void 0, function* () {
722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandateAuthLink(getMandateAuthLinkRequest, options);
723
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
724
+ });
725
+ },
673
726
  /**
674
727
  * Get Payment details by payment_id
675
728
  * @param {string} paymentId payment id
@@ -823,6 +876,17 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
823
876
  .getMandateAuth(mandateId, institutionId, senderType, options)
824
877
  .then((request) => request(axios, basePath));
825
878
  },
879
+ /**
880
+ * Get link to launch FV Link UI in mandate authorization mode
881
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ */
885
+ getMandateAuthLink(getMandateAuthLinkRequest, options) {
886
+ return localVarFp
887
+ .getMandateAuthLink(getMandateAuthLinkRequest, options)
888
+ .then((request) => request(axios, basePath));
889
+ },
826
890
  /**
827
891
  * Get Payment details by payment_id
828
892
  * @param {string} paymentId payment id
@@ -987,6 +1051,18 @@ class CustomerApi extends base_1.BaseAPI {
987
1051
  .getMandateAuth(mandateId, institutionId, senderType, options)
988
1052
  .then((request) => request(this.axios, this.basePath));
989
1053
  }
1054
+ /**
1055
+ * Get link to launch FV Link UI in mandate authorization mode
1056
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ * @memberof CustomerApi
1060
+ */
1061
+ getMandateAuthLink(getMandateAuthLinkRequest, options) {
1062
+ return exports.CustomerApiFp(this.configuration)
1063
+ .getMandateAuthLink(getMandateAuthLinkRequest, options)
1064
+ .then((request) => request(this.axios, this.basePath));
1065
+ }
990
1066
  /**
991
1067
  * Get Payment details by payment_id
992
1068
  * @param {string} paymentId payment id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [