@finverse/sdk-typescript 0.0.62 → 0.0.64

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +1490 -252
  2. package/dist/api.js +1052 -69
  3. package/package.json +5 -5
package/dist/api.js CHANGED
@@ -22,13 +22,36 @@ 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.SubmitAuthChecklistResponseMandateStatusEnum = exports.SubmitAuthChecklistRequestSenderTypeEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentInstructionTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = 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;
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.SubmitAuthChecklistResponseMandateStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentInstructionTypeEnum = exports.MandateDetailsSenderTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateResponseMandateStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelTypeEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreateMandateResponseMandateStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
29
  const common_1 = require("./common");
30
30
  // @ts-ignore
31
31
  const base_1 = require("./base");
32
+ exports.AccountTypeTypeEnum = {
33
+ Deposit: 'DEPOSIT',
34
+ Card: 'CARD',
35
+ Investment: 'INVESTMENT',
36
+ Loan: 'LOAN',
37
+ Unknown: 'UNKNOWN',
38
+ };
39
+ exports.AccountTypeSubtypeEnum = {
40
+ Checking: 'CHECKING',
41
+ Savings: 'SAVINGS',
42
+ TimeDeposit: 'TIME_DEPOSIT',
43
+ Other: 'OTHER',
44
+ CreditCard: 'CREDIT_CARD',
45
+ DebitCard: 'DEBIT_CARD',
46
+ Securities: 'SECURITIES',
47
+ Funds: 'FUNDS',
48
+ Stocks: 'STOCKS',
49
+ Bonds: 'BONDS',
50
+ Mortgage: 'MORTGAGE',
51
+ PersonalLoan: 'PERSONAL_LOAN',
52
+ RevolvingLoan: 'REVOLVING_LOAN',
53
+ Unknown: 'UNKNOWN',
54
+ };
32
55
  exports.AuthChecklistFactorTypeEnum = {
33
56
  AccountIdentification: 'ACCOUNT_IDENTIFICATION',
34
57
  UserIdentification: 'USER_IDENTIFICATION',
@@ -48,6 +71,19 @@ exports.AuthChecklistOptionsSubmittedByEnum = {
48
71
  CustomerApp: 'CUSTOMER_APP',
49
72
  FinverseLink: 'FINVERSE_LINK',
50
73
  };
74
+ exports.BadRequestModelV2ErrorTypeEnum = {
75
+ LinkError: 'LINK_ERROR',
76
+ ApiError: 'API_ERROR',
77
+ };
78
+ exports.CreateMandateResponseMandateStatusEnum = {
79
+ AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
80
+ Authorizing: 'AUTHORIZING',
81
+ Processing: 'PROCESSING',
82
+ Submitted: 'SUBMITTED',
83
+ Succeeded: 'SUCCEEDED',
84
+ Failed: 'FAILED',
85
+ Revoked: 'REVOKED',
86
+ };
51
87
  exports.CreatePaymentRequestTypeEnum = {
52
88
  Mandate: 'MANDATE',
53
89
  Single: 'SINGLE',
@@ -55,6 +91,14 @@ exports.CreatePaymentRequestTypeEnum = {
55
91
  exports.CustomerPaymentInstructionTypeEnum = {
56
92
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
57
93
  };
94
+ exports.FvErrorModelTypeEnum = {
95
+ LinkError: 'LINK_ERROR',
96
+ ApiError: 'API_ERROR',
97
+ };
98
+ exports.GetBalanceHistoryResponseSourceEnum = {
99
+ Institution: 'INSTITUTION',
100
+ Computed: 'COMPUTED',
101
+ };
58
102
  exports.GetMandateAuthLinkResponseTokenTypeEnum = {
59
103
  Bearer: 'Bearer',
60
104
  };
@@ -69,23 +113,13 @@ exports.GetMandateAuthResponseSenderTypeEnum = {
69
113
  Business: 'BUSINESS',
70
114
  };
71
115
  exports.GetMandateResponseMandateStatusEnum = {
72
- Created: 'CREATED',
116
+ AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
117
+ Authorizing: 'AUTHORIZING',
73
118
  Processing: 'PROCESSING',
74
119
  Submitted: 'SUBMITTED',
75
- Error: 'ERROR',
76
- };
77
- exports.GetPaymentResponseTypeEnum = {
78
- Mandate: 'MANDATE',
79
- Single: 'SINGLE',
80
- };
81
- exports.GetPaymentResponseStatusEnum = {
82
- Created: 'CREATED',
83
- Authorized: 'AUTHORIZED',
84
- Submitted: 'SUBMITTED',
85
- Executed: 'EXECUTED',
120
+ Succeeded: 'SUCCEEDED',
86
121
  Failed: 'FAILED',
87
- Rejected: 'REJECTED',
88
- Cancelled: 'CANCELLED',
122
+ Revoked: 'REVOKED',
89
123
  };
90
124
  exports.InstitutionTagsEnum = {
91
125
  Real: 'real',
@@ -94,6 +128,7 @@ exports.InstitutionTagsEnum = {
94
128
  exports.InstitutionInstitutionTypeEnum = {
95
129
  Bank: 'BANK',
96
130
  Wallet: 'WALLET',
131
+ Test: 'TEST',
97
132
  };
98
133
  exports.InstitutionProductsSupportedEnum = {
99
134
  Accounts: 'ACCOUNTS',
@@ -104,6 +139,7 @@ exports.InstitutionProductsSupportedEnum = {
104
139
  };
105
140
  exports.InstitutionUserTypeEnum = {
106
141
  Personal: 'PERSONAL',
142
+ Individual: 'INDIVIDUAL',
107
143
  Business: 'BUSINESS',
108
144
  };
109
145
  exports.InstitutionStatusEnum = {
@@ -122,15 +158,37 @@ exports.LinkTokenRequestAutomaticDataRefreshEnum = {
122
158
  Off: 'OFF',
123
159
  ForcedOn: 'FORCED_ON',
124
160
  };
161
+ exports.LoginMethodStatusEnum = {
162
+ Supported: 'SUPPORTED',
163
+ Alpha: 'ALPHA',
164
+ Beta: 'BETA',
165
+ };
125
166
  exports.MandateAuthLinkCustomizationsUiModeEnum = {
126
167
  Iframe: 'iframe',
127
168
  Redirect: 'redirect',
128
169
  AutoRedirect: 'auto_redirect',
129
170
  Standalone: 'standalone',
130
171
  };
172
+ exports.MandateDetailsSenderTypeEnum = {
173
+ Individual: 'INDIVIDUAL',
174
+ Business: 'BUSINESS',
175
+ };
131
176
  exports.PaymentInstructionTypeEnum = {
132
177
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
133
178
  };
179
+ exports.PaymentResponseTypeEnum = {
180
+ Mandate: 'MANDATE',
181
+ Single: 'SINGLE',
182
+ };
183
+ exports.PaymentResponseStatusEnum = {
184
+ AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
185
+ Authorizing: 'AUTHORIZING',
186
+ Processing: 'PROCESSING',
187
+ Submitted: 'SUBMITTED',
188
+ Executed: 'EXECUTED',
189
+ Failed: 'FAILED',
190
+ Revoked: 'REVOKED',
191
+ };
134
192
  exports.PaymentScheduleFrequencyEnum = {
135
193
  Daily: 'DAILY',
136
194
  Weekly: 'WEEKLY',
@@ -138,10 +196,6 @@ exports.PaymentScheduleFrequencyEnum = {
138
196
  Quarterly: 'QUARTERLY',
139
197
  Yearly: 'YEARLY',
140
198
  };
141
- exports.SubmitAuthChecklistRequestSenderTypeEnum = {
142
- Individual: 'INDIVIDUAL',
143
- Business: 'BUSINESS',
144
- };
145
199
  exports.SubmitAuthChecklistResponseMandateStatusEnum = {
146
200
  Created: 'CREATED',
147
201
  Processing: 'PROCESSING',
@@ -161,6 +215,78 @@ exports.TransactionLimitsPeriodEnum = {
161
215
  */
162
216
  exports.CustomerApiAxiosParamCreator = function (configuration) {
163
217
  return {
218
+ /**
219
+ * CREATE Mandate
220
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
221
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ createMandate: (createMandateRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
226
+ // verify required parameter 'createMandateRequest' is not null or undefined
227
+ common_1.assertParamExists('createMandate', 'createMandateRequest', createMandateRequest);
228
+ const localVarPath = `/mandates`;
229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
230
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
231
+ let baseOptions;
232
+ if (configuration) {
233
+ baseOptions = configuration.baseOptions;
234
+ }
235
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
236
+ const localVarHeaderParameter = {};
237
+ const localVarQueryParameter = {};
238
+ // authentication Oauth2 required
239
+ // oauth required
240
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
241
+ if (idempotencyKey !== undefined && idempotencyKey !== null) {
242
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
243
+ }
244
+ localVarHeaderParameter['Content-Type'] = 'application/json';
245
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
248
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMandateRequest, localVarRequestOptions, configuration);
249
+ return {
250
+ url: common_1.toPathString(localVarUrlObj),
251
+ options: localVarRequestOptions,
252
+ };
253
+ }),
254
+ /**
255
+ * Create new Payment
256
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
257
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ createPayment: (createPaymentRequest, idempotencyKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
262
+ // verify required parameter 'createPaymentRequest' is not null or undefined
263
+ common_1.assertParamExists('createPayment', 'createPaymentRequest', createPaymentRequest);
264
+ const localVarPath = `/payments`;
265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
266
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
267
+ let baseOptions;
268
+ if (configuration) {
269
+ baseOptions = configuration.baseOptions;
270
+ }
271
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
272
+ const localVarHeaderParameter = {};
273
+ const localVarQueryParameter = {};
274
+ // authentication Oauth2 required
275
+ // oauth required
276
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
277
+ if (idempotencyKey !== undefined && idempotencyKey !== null) {
278
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
279
+ }
280
+ localVarHeaderParameter['Content-Type'] = 'application/json';
281
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
282
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
283
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
284
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentRequest, localVarRequestOptions, configuration);
285
+ return {
286
+ url: common_1.toPathString(localVarUrlObj),
287
+ options: localVarRequestOptions,
288
+ };
289
+ }),
164
290
  /**
165
291
  * Create a new payment instruction to be used when linking to perform new payment
166
292
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -315,6 +441,125 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
315
441
  options: localVarRequestOptions,
316
442
  };
317
443
  }),
444
+ /**
445
+ * Get Mandate details by mandate_id
446
+ * @param {string} mandateId mandate id
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ getMandate: (mandateId, options = {}) => __awaiter(this, void 0, void 0, function* () {
451
+ // verify required parameter 'mandateId' is not null or undefined
452
+ common_1.assertParamExists('getMandate', 'mandateId', mandateId);
453
+ const localVarPath = `/mandates/{mandateId}`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
455
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
456
+ let baseOptions;
457
+ if (configuration) {
458
+ baseOptions = configuration.baseOptions;
459
+ }
460
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
461
+ const localVarHeaderParameter = {};
462
+ const localVarQueryParameter = {};
463
+ // authentication Oauth2 required
464
+ // oauth required
465
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
466
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
469
+ return {
470
+ url: common_1.toPathString(localVarUrlObj),
471
+ options: localVarRequestOptions,
472
+ };
473
+ }),
474
+ /**
475
+ * Get Mandate Authorization by mandate id
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ getMandateAuth: (options = {}) => __awaiter(this, void 0, void 0, function* () {
480
+ const localVarPath = `/mandates/auth`;
481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
482
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
483
+ let baseOptions;
484
+ if (configuration) {
485
+ baseOptions = configuration.baseOptions;
486
+ }
487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
488
+ const localVarHeaderParameter = {};
489
+ const localVarQueryParameter = {};
490
+ // authentication Oauth2 required
491
+ // oauth required
492
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
493
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
495
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
496
+ return {
497
+ url: common_1.toPathString(localVarUrlObj),
498
+ options: localVarRequestOptions,
499
+ };
500
+ }),
501
+ /**
502
+ * Get link to launch FV Link UI in mandate authorization mode
503
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ */
507
+ getMandateAuthLink: (getMandateAuthLinkRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
508
+ // verify required parameter 'getMandateAuthLinkRequest' is not null or undefined
509
+ common_1.assertParamExists('getMandateAuthLink', 'getMandateAuthLinkRequest', getMandateAuthLinkRequest);
510
+ const localVarPath = `/mandates/link`;
511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
512
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
513
+ let baseOptions;
514
+ if (configuration) {
515
+ baseOptions = configuration.baseOptions;
516
+ }
517
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
518
+ const localVarHeaderParameter = {};
519
+ const localVarQueryParameter = {};
520
+ // authentication Oauth2 required
521
+ // oauth required
522
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
523
+ localVarHeaderParameter['Content-Type'] = 'application/json';
524
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
526
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
527
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(getMandateAuthLinkRequest, localVarRequestOptions, configuration);
528
+ return {
529
+ url: common_1.toPathString(localVarUrlObj),
530
+ options: localVarRequestOptions,
531
+ };
532
+ }),
533
+ /**
534
+ * Get Payment details by payment_id
535
+ * @param {string} paymentId payment id
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ getPayment: (paymentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
540
+ // verify required parameter 'paymentId' is not null or undefined
541
+ common_1.assertParamExists('getPayment', 'paymentId', paymentId);
542
+ const localVarPath = `/payments/{paymentId}`.replace(`{${'paymentId'}}`, encodeURIComponent(String(paymentId)));
543
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
544
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
545
+ let baseOptions;
546
+ if (configuration) {
547
+ baseOptions = configuration.baseOptions;
548
+ }
549
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
550
+ const localVarHeaderParameter = {};
551
+ const localVarQueryParameter = {};
552
+ // authentication Oauth2 required
553
+ // oauth required
554
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
555
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
556
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
557
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
558
+ return {
559
+ url: common_1.toPathString(localVarUrlObj),
560
+ options: localVarRequestOptions,
561
+ };
562
+ }),
318
563
  /**
319
564
  * Get payment instructions by payment_instruction_id
320
565
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -347,10 +592,10 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
347
592
  }),
348
593
  /**
349
594
  * Get a list of institutions
350
- * @param {string} [country] The country the institution belongs to
595
+ * @param {string} [country] (Deprecated) The country the institution belongs to
351
596
  * @param {Array<string>} [countries] The countries the institution belongs to
352
597
  * @param {string} [productsSupported] The products that this institution supports
353
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
598
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
354
599
  * @param {*} [options] Override http request option.
355
600
  * @throws {RequiredError}
356
601
  */
@@ -420,6 +665,70 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
420
665
  options: localVarRequestOptions,
421
666
  };
422
667
  }),
668
+ /**
669
+ * Update InstitutionID and SenderType for Mandate
670
+ * @param {SetMandateInstitutionRequest} updateRequest request body for updating mandate institutionId and senderType
671
+ * @param {*} [options] Override http request option.
672
+ * @throws {RequiredError}
673
+ */
674
+ setMandateInstitution: (updateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
675
+ // verify required parameter 'updateRequest' is not null or undefined
676
+ common_1.assertParamExists('setMandateInstitution', 'updateRequest', updateRequest);
677
+ const localVarPath = `/mandates/institution_selection`;
678
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
679
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
680
+ let baseOptions;
681
+ if (configuration) {
682
+ baseOptions = configuration.baseOptions;
683
+ }
684
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
685
+ const localVarHeaderParameter = {};
686
+ const localVarQueryParameter = {};
687
+ // authentication Oauth2 required
688
+ // oauth required
689
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
690
+ localVarHeaderParameter['Content-Type'] = 'application/json';
691
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
692
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
694
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateRequest, localVarRequestOptions, configuration);
695
+ return {
696
+ url: common_1.toPathString(localVarUrlObj),
697
+ options: localVarRequestOptions,
698
+ };
699
+ }),
700
+ /**
701
+ * Submit authorization checklist items
702
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ submitAuthChecklist: (submitAuthChecklistRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
707
+ // verify required parameter 'submitAuthChecklistRequest' is not null or undefined
708
+ common_1.assertParamExists('submitAuthChecklist', 'submitAuthChecklistRequest', submitAuthChecklistRequest);
709
+ const localVarPath = `/mandates/auth`;
710
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
711
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
712
+ let baseOptions;
713
+ if (configuration) {
714
+ baseOptions = configuration.baseOptions;
715
+ }
716
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
717
+ const localVarHeaderParameter = {};
718
+ const localVarQueryParameter = {};
719
+ // authentication Oauth2 required
720
+ // oauth required
721
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
722
+ localVarHeaderParameter['Content-Type'] = 'application/json';
723
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
724
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
725
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
726
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(submitAuthChecklistRequest, localVarRequestOptions, configuration);
727
+ return {
728
+ url: common_1.toPathString(localVarUrlObj),
729
+ options: localVarRequestOptions,
730
+ };
731
+ }),
423
732
  };
424
733
  };
425
734
  /**
@@ -429,6 +738,32 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
429
738
  exports.CustomerApiFp = function (configuration) {
430
739
  const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
431
740
  return {
741
+ /**
742
+ * CREATE Mandate
743
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
744
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ createMandate(createMandateRequest, idempotencyKey, options) {
749
+ return __awaiter(this, void 0, void 0, function* () {
750
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandate(createMandateRequest, idempotencyKey, options);
751
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
752
+ });
753
+ },
754
+ /**
755
+ * Create new Payment
756
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
757
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ createPayment(createPaymentRequest, idempotencyKey, options) {
762
+ return __awaiter(this, void 0, void 0, function* () {
763
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(createPaymentRequest, idempotencyKey, options);
764
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
765
+ });
766
+ },
432
767
  /**
433
768
  * Create a new payment instruction to be used when linking to perform new payment
434
769
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -489,6 +824,53 @@ exports.CustomerApiFp = function (configuration) {
489
824
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
490
825
  });
491
826
  },
827
+ /**
828
+ * Get Mandate details by mandate_id
829
+ * @param {string} mandateId mandate id
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ getMandate(mandateId, options) {
834
+ return __awaiter(this, void 0, void 0, function* () {
835
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandate(mandateId, options);
836
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
837
+ });
838
+ },
839
+ /**
840
+ * Get Mandate Authorization by mandate id
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ getMandateAuth(options) {
845
+ return __awaiter(this, void 0, void 0, function* () {
846
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandateAuth(options);
847
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
848
+ });
849
+ },
850
+ /**
851
+ * Get link to launch FV Link UI in mandate authorization mode
852
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
853
+ * @param {*} [options] Override http request option.
854
+ * @throws {RequiredError}
855
+ */
856
+ getMandateAuthLink(getMandateAuthLinkRequest, options) {
857
+ return __awaiter(this, void 0, void 0, function* () {
858
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandateAuthLink(getMandateAuthLinkRequest, options);
859
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
860
+ });
861
+ },
862
+ /**
863
+ * Get Payment details by payment_id
864
+ * @param {string} paymentId payment id
865
+ * @param {*} [options] Override http request option.
866
+ * @throws {RequiredError}
867
+ */
868
+ getPayment(paymentId, options) {
869
+ return __awaiter(this, void 0, void 0, function* () {
870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayment(paymentId, options);
871
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
872
+ });
873
+ },
492
874
  /**
493
875
  * Get payment instructions by payment_instruction_id
494
876
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -503,10 +885,10 @@ exports.CustomerApiFp = function (configuration) {
503
885
  },
504
886
  /**
505
887
  * Get a list of institutions
506
- * @param {string} [country] The country the institution belongs to
888
+ * @param {string} [country] (Deprecated) The country the institution belongs to
507
889
  * @param {Array<string>} [countries] The countries the institution belongs to
508
890
  * @param {string} [productsSupported] The products that this institution supports
509
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
891
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
510
892
  * @param {*} [options] Override http request option.
511
893
  * @throws {RequiredError}
512
894
  */
@@ -528,6 +910,30 @@ exports.CustomerApiFp = function (configuration) {
528
910
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
529
911
  });
530
912
  },
913
+ /**
914
+ * Update InstitutionID and SenderType for Mandate
915
+ * @param {SetMandateInstitutionRequest} updateRequest request body for updating mandate institutionId and senderType
916
+ * @param {*} [options] Override http request option.
917
+ * @throws {RequiredError}
918
+ */
919
+ setMandateInstitution(updateRequest, options) {
920
+ return __awaiter(this, void 0, void 0, function* () {
921
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setMandateInstitution(updateRequest, options);
922
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
923
+ });
924
+ },
925
+ /**
926
+ * Submit authorization checklist items
927
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ submitAuthChecklist(submitAuthChecklistRequest, options) {
932
+ return __awaiter(this, void 0, void 0, function* () {
933
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitAuthChecklist(submitAuthChecklistRequest, options);
934
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
935
+ });
936
+ },
531
937
  };
532
938
  };
533
939
  /**
@@ -537,6 +943,30 @@ exports.CustomerApiFp = function (configuration) {
537
943
  exports.CustomerApiFactory = function (configuration, basePath, axios) {
538
944
  const localVarFp = exports.CustomerApiFp(configuration);
539
945
  return {
946
+ /**
947
+ * CREATE Mandate
948
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
949
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ createMandate(createMandateRequest, idempotencyKey, options) {
954
+ return localVarFp
955
+ .createMandate(createMandateRequest, idempotencyKey, options)
956
+ .then((request) => request(axios, basePath));
957
+ },
958
+ /**
959
+ * Create new Payment
960
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
961
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
962
+ * @param {*} [options] Override http request option.
963
+ * @throws {RequiredError}
964
+ */
965
+ createPayment(createPaymentRequest, idempotencyKey, options) {
966
+ return localVarFp
967
+ .createPayment(createPaymentRequest, idempotencyKey, options)
968
+ .then((request) => request(axios, basePath));
969
+ },
540
970
  /**
541
971
  * Create a new payment instruction to be used when linking to perform new payment
542
972
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -584,6 +1014,43 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
584
1014
  getLoginIdentityHistory(loginIdentityId, options) {
585
1015
  return localVarFp.getLoginIdentityHistory(loginIdentityId, options).then((request) => request(axios, basePath));
586
1016
  },
1017
+ /**
1018
+ * Get Mandate details by mandate_id
1019
+ * @param {string} mandateId mandate id
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ */
1023
+ getMandate(mandateId, options) {
1024
+ return localVarFp.getMandate(mandateId, options).then((request) => request(axios, basePath));
1025
+ },
1026
+ /**
1027
+ * Get Mandate Authorization by mandate id
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ getMandateAuth(options) {
1032
+ return localVarFp.getMandateAuth(options).then((request) => request(axios, basePath));
1033
+ },
1034
+ /**
1035
+ * Get link to launch FV Link UI in mandate authorization mode
1036
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
1037
+ * @param {*} [options] Override http request option.
1038
+ * @throws {RequiredError}
1039
+ */
1040
+ getMandateAuthLink(getMandateAuthLinkRequest, options) {
1041
+ return localVarFp
1042
+ .getMandateAuthLink(getMandateAuthLinkRequest, options)
1043
+ .then((request) => request(axios, basePath));
1044
+ },
1045
+ /**
1046
+ * Get Payment details by payment_id
1047
+ * @param {string} paymentId payment id
1048
+ * @param {*} [options] Override http request option.
1049
+ * @throws {RequiredError}
1050
+ */
1051
+ getPayment(paymentId, options) {
1052
+ return localVarFp.getPayment(paymentId, options).then((request) => request(axios, basePath));
1053
+ },
587
1054
  /**
588
1055
  * Get payment instructions by payment_instruction_id
589
1056
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -597,10 +1064,10 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
597
1064
  },
598
1065
  /**
599
1066
  * Get a list of institutions
600
- * @param {string} [country] The country the institution belongs to
1067
+ * @param {string} [country] (Deprecated) The country the institution belongs to
601
1068
  * @param {Array<string>} [countries] The countries the institution belongs to
602
1069
  * @param {string} [productsSupported] The products that this institution supports
603
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
1070
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
604
1071
  * @param {*} [options] Override http request option.
605
1072
  * @throws {RequiredError}
606
1073
  */
@@ -618,6 +1085,26 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
618
1085
  refreshToken(refreshRequest, options) {
619
1086
  return localVarFp.refreshToken(refreshRequest, options).then((request) => request(axios, basePath));
620
1087
  },
1088
+ /**
1089
+ * Update InstitutionID and SenderType for Mandate
1090
+ * @param {SetMandateInstitutionRequest} updateRequest request body for updating mandate institutionId and senderType
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ setMandateInstitution(updateRequest, options) {
1095
+ return localVarFp.setMandateInstitution(updateRequest, options).then((request) => request(axios, basePath));
1096
+ },
1097
+ /**
1098
+ * Submit authorization checklist items
1099
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
1100
+ * @param {*} [options] Override http request option.
1101
+ * @throws {RequiredError}
1102
+ */
1103
+ submitAuthChecklist(submitAuthChecklistRequest, options) {
1104
+ return localVarFp
1105
+ .submitAuthChecklist(submitAuthChecklistRequest, options)
1106
+ .then((request) => request(axios, basePath));
1107
+ },
621
1108
  };
622
1109
  };
623
1110
  /**
@@ -627,6 +1114,32 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
627
1114
  * @extends {BaseAPI}
628
1115
  */
629
1116
  class CustomerApi extends base_1.BaseAPI {
1117
+ /**
1118
+ * CREATE Mandate
1119
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
1120
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ * @memberof CustomerApi
1124
+ */
1125
+ createMandate(createMandateRequest, idempotencyKey, options) {
1126
+ return exports.CustomerApiFp(this.configuration)
1127
+ .createMandate(createMandateRequest, idempotencyKey, options)
1128
+ .then((request) => request(this.axios, this.basePath));
1129
+ }
1130
+ /**
1131
+ * Create new Payment
1132
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
1133
+ * @param {string} [idempotencyKey] A random key provided by the customer, per unique payment. The purpose for the Idempotency key is to allow safe retrying without the operation being performed multiple times.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ * @memberof CustomerApi
1137
+ */
1138
+ createPayment(createPaymentRequest, idempotencyKey, options) {
1139
+ return exports.CustomerApiFp(this.configuration)
1140
+ .createPayment(createPaymentRequest, idempotencyKey, options)
1141
+ .then((request) => request(this.axios, this.basePath));
1142
+ }
630
1143
  /**
631
1144
  * Create a new payment instruction to be used when linking to perform new payment
632
1145
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -687,6 +1200,53 @@ class CustomerApi extends base_1.BaseAPI {
687
1200
  .getLoginIdentityHistory(loginIdentityId, options)
688
1201
  .then((request) => request(this.axios, this.basePath));
689
1202
  }
1203
+ /**
1204
+ * Get Mandate details by mandate_id
1205
+ * @param {string} mandateId mandate id
1206
+ * @param {*} [options] Override http request option.
1207
+ * @throws {RequiredError}
1208
+ * @memberof CustomerApi
1209
+ */
1210
+ getMandate(mandateId, options) {
1211
+ return exports.CustomerApiFp(this.configuration)
1212
+ .getMandate(mandateId, options)
1213
+ .then((request) => request(this.axios, this.basePath));
1214
+ }
1215
+ /**
1216
+ * Get Mandate Authorization by mandate id
1217
+ * @param {*} [options] Override http request option.
1218
+ * @throws {RequiredError}
1219
+ * @memberof CustomerApi
1220
+ */
1221
+ getMandateAuth(options) {
1222
+ return exports.CustomerApiFp(this.configuration)
1223
+ .getMandateAuth(options)
1224
+ .then((request) => request(this.axios, this.basePath));
1225
+ }
1226
+ /**
1227
+ * Get link to launch FV Link UI in mandate authorization mode
1228
+ * @param {GetMandateAuthLinkRequest} getMandateAuthLinkRequest request body for mandate authorization link
1229
+ * @param {*} [options] Override http request option.
1230
+ * @throws {RequiredError}
1231
+ * @memberof CustomerApi
1232
+ */
1233
+ getMandateAuthLink(getMandateAuthLinkRequest, options) {
1234
+ return exports.CustomerApiFp(this.configuration)
1235
+ .getMandateAuthLink(getMandateAuthLinkRequest, options)
1236
+ .then((request) => request(this.axios, this.basePath));
1237
+ }
1238
+ /**
1239
+ * Get Payment details by payment_id
1240
+ * @param {string} paymentId payment id
1241
+ * @param {*} [options] Override http request option.
1242
+ * @throws {RequiredError}
1243
+ * @memberof CustomerApi
1244
+ */
1245
+ getPayment(paymentId, options) {
1246
+ return exports.CustomerApiFp(this.configuration)
1247
+ .getPayment(paymentId, options)
1248
+ .then((request) => request(this.axios, this.basePath));
1249
+ }
690
1250
  /**
691
1251
  * Get payment instructions by payment_instruction_id
692
1252
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -701,10 +1261,10 @@ class CustomerApi extends base_1.BaseAPI {
701
1261
  }
702
1262
  /**
703
1263
  * Get a list of institutions
704
- * @param {string} [country] The country the institution belongs to
1264
+ * @param {string} [country] (Deprecated) The country the institution belongs to
705
1265
  * @param {Array<string>} [countries] The countries the institution belongs to
706
1266
  * @param {string} [productsSupported] The products that this institution supports
707
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
1267
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
708
1268
  * @param {*} [options] Override http request option.
709
1269
  * @throws {RequiredError}
710
1270
  * @memberof CustomerApi
@@ -726,6 +1286,30 @@ class CustomerApi extends base_1.BaseAPI {
726
1286
  .refreshToken(refreshRequest, options)
727
1287
  .then((request) => request(this.axios, this.basePath));
728
1288
  }
1289
+ /**
1290
+ * Update InstitutionID and SenderType for Mandate
1291
+ * @param {SetMandateInstitutionRequest} updateRequest request body for updating mandate institutionId and senderType
1292
+ * @param {*} [options] Override http request option.
1293
+ * @throws {RequiredError}
1294
+ * @memberof CustomerApi
1295
+ */
1296
+ setMandateInstitution(updateRequest, options) {
1297
+ return exports.CustomerApiFp(this.configuration)
1298
+ .setMandateInstitution(updateRequest, options)
1299
+ .then((request) => request(this.axios, this.basePath));
1300
+ }
1301
+ /**
1302
+ * Submit authorization checklist items
1303
+ * @param {SubmitAuthChecklistRequest} submitAuthChecklistRequest request body for submitting auth checklist
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ * @memberof CustomerApi
1307
+ */
1308
+ submitAuthChecklist(submitAuthChecklistRequest, options) {
1309
+ return exports.CustomerApiFp(this.configuration)
1310
+ .submitAuthChecklist(submitAuthChecklistRequest, options)
1311
+ .then((request) => request(this.axios, this.basePath));
1312
+ }
729
1313
  }
730
1314
  exports.CustomerApi = CustomerApi;
731
1315
  /**
@@ -735,15 +1319,82 @@ exports.CustomerApi = CustomerApi;
735
1319
  exports.LinkApiAxiosParamCreator = function (configuration) {
736
1320
  return {
737
1321
  /**
738
- * Creates a new link
739
- * @param {LinkRequest} linkRequest Request body for starting a new Link
1322
+ * Create a new link and submit credentials
1323
+ * @param {ApiLinkRequest} apiLinkRequest Request body for creating a new link and submitting credentials
1324
+ * @param {*} [options] Override http request option.
1325
+ * @throws {RequiredError}
1326
+ */
1327
+ createLink: (apiLinkRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1328
+ // verify required parameter 'apiLinkRequest' is not null or undefined
1329
+ common_1.assertParamExists('createLink', 'apiLinkRequest', apiLinkRequest);
1330
+ const localVarPath = `/link`;
1331
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1332
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1333
+ let baseOptions;
1334
+ if (configuration) {
1335
+ baseOptions = configuration.baseOptions;
1336
+ }
1337
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1338
+ const localVarHeaderParameter = {};
1339
+ const localVarQueryParameter = {};
1340
+ // authentication Oauth2 required
1341
+ // oauth required
1342
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1343
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1344
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1346
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1347
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(apiLinkRequest, localVarRequestOptions, configuration);
1348
+ return {
1349
+ url: common_1.toPathString(localVarUrlObj),
1350
+ options: localVarRequestOptions,
1351
+ };
1352
+ }),
1353
+ /**
1354
+ * Creates a new link
1355
+ * @param {LinkRequest} linkRequest Request body for starting a new Link
1356
+ * @param {*} [options] Override http request option.
1357
+ * @throws {RequiredError}
1358
+ */
1359
+ createLinkWoauth: (linkRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1360
+ // verify required parameter 'linkRequest' is not null or undefined
1361
+ common_1.assertParamExists('createLinkWoauth', 'linkRequest', linkRequest);
1362
+ const localVarPath = `/link/woauth`;
1363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1364
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1365
+ let baseOptions;
1366
+ if (configuration) {
1367
+ baseOptions = configuration.baseOptions;
1368
+ }
1369
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1370
+ const localVarHeaderParameter = {};
1371
+ const localVarQueryParameter = {};
1372
+ // authentication Oauth2 required
1373
+ // oauth required
1374
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', ['link'], configuration);
1375
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1376
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1378
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1379
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(linkRequest, localVarRequestOptions, configuration);
1380
+ return {
1381
+ url: common_1.toPathString(localVarUrlObj),
1382
+ options: localVarRequestOptions,
1383
+ };
1384
+ }),
1385
+ /**
1386
+ * Post the user action value
1387
+ * @param {string} loginIdentityId The login identity id
1388
+ * @param {ActionRequest} actionRequest Request body for post link action
740
1389
  * @param {*} [options] Override http request option.
741
1390
  * @throws {RequiredError}
742
1391
  */
743
- createLink: (linkRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
744
- // verify required parameter 'linkRequest' is not null or undefined
745
- common_1.assertParamExists('createLink', 'linkRequest', linkRequest);
746
- const localVarPath = `/link`;
1392
+ linkAction: (loginIdentityId, actionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1393
+ // verify required parameter 'loginIdentityId' is not null or undefined
1394
+ common_1.assertParamExists('linkAction', 'loginIdentityId', loginIdentityId);
1395
+ // verify required parameter 'actionRequest' is not null or undefined
1396
+ common_1.assertParamExists('linkAction', 'actionRequest', actionRequest);
1397
+ const localVarPath = `/link/action/{loginIdentityId}`.replace(`{${'loginIdentityId'}}`, encodeURIComponent(String(loginIdentityId)));
747
1398
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
748
1399
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
749
1400
  let baseOptions;
@@ -755,24 +1406,27 @@ exports.LinkApiAxiosParamCreator = function (configuration) {
755
1406
  const localVarQueryParameter = {};
756
1407
  // authentication Oauth2 required
757
1408
  // oauth required
758
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', ['link'], configuration);
1409
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
759
1410
  localVarHeaderParameter['Content-Type'] = 'application/json';
760
1411
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
761
1412
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
762
1413
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
763
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(linkRequest, localVarRequestOptions, configuration);
1414
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(actionRequest, localVarRequestOptions, configuration);
764
1415
  return {
765
1416
  url: common_1.toPathString(localVarUrlObj),
766
1417
  options: localVarRequestOptions,
767
1418
  };
768
1419
  }),
769
1420
  /**
770
- * Get the customization details
1421
+ * Check the status of a given loginIdentity
1422
+ * @param {string} loginIdentityId The login identity id
771
1423
  * @param {*} [options] Override http request option.
772
1424
  * @throws {RequiredError}
773
1425
  */
774
- getCustomization: (options = {}) => __awaiter(this, void 0, void 0, function* () {
775
- const localVarPath = `/customer/customizations`;
1426
+ linkStatus: (loginIdentityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1427
+ // verify required parameter 'loginIdentityId' is not null or undefined
1428
+ common_1.assertParamExists('linkStatus', 'loginIdentityId', loginIdentityId);
1429
+ const localVarPath = `/link/status/{loginIdentityId}`.replace(`{${'loginIdentityId'}}`, encodeURIComponent(String(loginIdentityId)));
776
1430
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
777
1431
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
778
1432
  let baseOptions;
@@ -784,7 +1438,37 @@ exports.LinkApiAxiosParamCreator = function (configuration) {
784
1438
  const localVarQueryParameter = {};
785
1439
  // authentication Oauth2 required
786
1440
  // oauth required
787
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', ['link'], configuration);
1441
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1442
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1444
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1445
+ return {
1446
+ url: common_1.toPathString(localVarUrlObj),
1447
+ options: localVarRequestOptions,
1448
+ };
1449
+ }),
1450
+ /**
1451
+ * Check the status of a given login identity via FVLink
1452
+ * @param {string} loginIdentityId The login identity id
1453
+ * @param {*} [options] Override http request option.
1454
+ * @throws {RequiredError}
1455
+ */
1456
+ linkStatusNonSensitive: (loginIdentityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1457
+ // verify required parameter 'loginIdentityId' is not null or undefined
1458
+ common_1.assertParamExists('linkStatusNonSensitive', 'loginIdentityId', loginIdentityId);
1459
+ const localVarPath = `/link/fvlink/status/{loginIdentityId}`.replace(`{${'loginIdentityId'}}`, encodeURIComponent(String(loginIdentityId)));
1460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1461
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1462
+ let baseOptions;
1463
+ if (configuration) {
1464
+ baseOptions = configuration.baseOptions;
1465
+ }
1466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1467
+ const localVarHeaderParameter = {};
1468
+ const localVarQueryParameter = {};
1469
+ // authentication Oauth2 required
1470
+ // oauth required
1471
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
788
1472
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
789
1473
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
790
1474
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -795,10 +1479,10 @@ exports.LinkApiAxiosParamCreator = function (configuration) {
795
1479
  }),
796
1480
  /**
797
1481
  * Get a list of institutions
798
- * @param {string} [country] The country the institution belongs to
1482
+ * @param {string} [country] (Deprecated) The country the institution belongs to
799
1483
  * @param {Array<string>} [countries] The countries the institution belongs to
800
1484
  * @param {string} [productsSupported] The products that this institution supports
801
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
1485
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
802
1486
  * @param {*} [options] Override http request option.
803
1487
  * @throws {RequiredError}
804
1488
  */
@@ -868,6 +1552,41 @@ exports.LinkApiAxiosParamCreator = function (configuration) {
868
1552
  options: localVarRequestOptions,
869
1553
  };
870
1554
  }),
1555
+ /**
1556
+ * Create a new link using an existing LIID
1557
+ * @param {string} loginIdentityId The login identity id
1558
+ * @param {ApiRelinkRequest} apiRelinkRequest Request body for relinking and submitting credentials
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ relinkV2: (loginIdentityId, apiRelinkRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1563
+ // verify required parameter 'loginIdentityId' is not null or undefined
1564
+ common_1.assertParamExists('relinkV2', 'loginIdentityId', loginIdentityId);
1565
+ // verify required parameter 'apiRelinkRequest' is not null or undefined
1566
+ common_1.assertParamExists('relinkV2', 'apiRelinkRequest', apiRelinkRequest);
1567
+ const localVarPath = `/link/relink/{loginIdentityId}`.replace(`{${'loginIdentityId'}}`, encodeURIComponent(String(loginIdentityId)));
1568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1569
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1570
+ let baseOptions;
1571
+ if (configuration) {
1572
+ baseOptions = configuration.baseOptions;
1573
+ }
1574
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1575
+ const localVarHeaderParameter = {};
1576
+ const localVarQueryParameter = {};
1577
+ // authentication Oauth2 required
1578
+ // oauth required
1579
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1580
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1581
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1582
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1583
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1584
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(apiRelinkRequest, localVarRequestOptions, configuration);
1585
+ return {
1586
+ url: common_1.toPathString(localVarUrlObj),
1587
+ options: localVarRequestOptions,
1588
+ };
1589
+ }),
871
1590
  /**
872
1591
  * Exchange authorization code for token
873
1592
  * @param {string} grantType
@@ -931,35 +1650,73 @@ exports.LinkApiAxiosParamCreator = function (configuration) {
931
1650
  exports.LinkApiFp = function (configuration) {
932
1651
  const localVarAxiosParamCreator = exports.LinkApiAxiosParamCreator(configuration);
933
1652
  return {
1653
+ /**
1654
+ * Create a new link and submit credentials
1655
+ * @param {ApiLinkRequest} apiLinkRequest Request body for creating a new link and submitting credentials
1656
+ * @param {*} [options] Override http request option.
1657
+ * @throws {RequiredError}
1658
+ */
1659
+ createLink(apiLinkRequest, options) {
1660
+ return __awaiter(this, void 0, void 0, function* () {
1661
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createLink(apiLinkRequest, options);
1662
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1663
+ });
1664
+ },
934
1665
  /**
935
1666
  * Creates a new link
936
1667
  * @param {LinkRequest} linkRequest Request body for starting a new Link
937
1668
  * @param {*} [options] Override http request option.
938
1669
  * @throws {RequiredError}
939
1670
  */
940
- createLink(linkRequest, options) {
1671
+ createLinkWoauth(linkRequest, options) {
1672
+ return __awaiter(this, void 0, void 0, function* () {
1673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createLinkWoauth(linkRequest, options);
1674
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1675
+ });
1676
+ },
1677
+ /**
1678
+ * Post the user action value
1679
+ * @param {string} loginIdentityId The login identity id
1680
+ * @param {ActionRequest} actionRequest Request body for post link action
1681
+ * @param {*} [options] Override http request option.
1682
+ * @throws {RequiredError}
1683
+ */
1684
+ linkAction(loginIdentityId, actionRequest, options) {
1685
+ return __awaiter(this, void 0, void 0, function* () {
1686
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.linkAction(loginIdentityId, actionRequest, options);
1687
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1688
+ });
1689
+ },
1690
+ /**
1691
+ * Check the status of a given loginIdentity
1692
+ * @param {string} loginIdentityId The login identity id
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ linkStatus(loginIdentityId, options) {
941
1697
  return __awaiter(this, void 0, void 0, function* () {
942
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createLink(linkRequest, options);
1698
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.linkStatus(loginIdentityId, options);
943
1699
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
944
1700
  });
945
1701
  },
946
1702
  /**
947
- * Get the customization details
1703
+ * Check the status of a given login identity via FVLink
1704
+ * @param {string} loginIdentityId The login identity id
948
1705
  * @param {*} [options] Override http request option.
949
1706
  * @throws {RequiredError}
950
1707
  */
951
- getCustomization(options) {
1708
+ linkStatusNonSensitive(loginIdentityId, options) {
952
1709
  return __awaiter(this, void 0, void 0, function* () {
953
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomization(options);
1710
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.linkStatusNonSensitive(loginIdentityId, options);
954
1711
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
955
1712
  });
956
1713
  },
957
1714
  /**
958
1715
  * Get a list of institutions
959
- * @param {string} [country] The country the institution belongs to
1716
+ * @param {string} [country] (Deprecated) The country the institution belongs to
960
1717
  * @param {Array<string>} [countries] The countries the institution belongs to
961
1718
  * @param {string} [productsSupported] The products that this institution supports
962
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
1719
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
963
1720
  * @param {*} [options] Override http request option.
964
1721
  * @throws {RequiredError}
965
1722
  */
@@ -981,6 +1738,19 @@ exports.LinkApiFp = function (configuration) {
981
1738
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
982
1739
  });
983
1740
  },
1741
+ /**
1742
+ * Create a new link using an existing LIID
1743
+ * @param {string} loginIdentityId The login identity id
1744
+ * @param {ApiRelinkRequest} apiRelinkRequest Request body for relinking and submitting credentials
1745
+ * @param {*} [options] Override http request option.
1746
+ * @throws {RequiredError}
1747
+ */
1748
+ relinkV2(loginIdentityId, apiRelinkRequest, options) {
1749
+ return __awaiter(this, void 0, void 0, function* () {
1750
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.relinkV2(loginIdentityId, apiRelinkRequest, options);
1751
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1752
+ });
1753
+ },
984
1754
  /**
985
1755
  * Exchange authorization code for token
986
1756
  * @param {string} grantType
@@ -1005,29 +1775,58 @@ exports.LinkApiFp = function (configuration) {
1005
1775
  exports.LinkApiFactory = function (configuration, basePath, axios) {
1006
1776
  const localVarFp = exports.LinkApiFp(configuration);
1007
1777
  return {
1778
+ /**
1779
+ * Create a new link and submit credentials
1780
+ * @param {ApiLinkRequest} apiLinkRequest Request body for creating a new link and submitting credentials
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ createLink(apiLinkRequest, options) {
1785
+ return localVarFp.createLink(apiLinkRequest, options).then((request) => request(axios, basePath));
1786
+ },
1008
1787
  /**
1009
1788
  * Creates a new link
1010
1789
  * @param {LinkRequest} linkRequest Request body for starting a new Link
1011
1790
  * @param {*} [options] Override http request option.
1012
1791
  * @throws {RequiredError}
1013
1792
  */
1014
- createLink(linkRequest, options) {
1015
- return localVarFp.createLink(linkRequest, options).then((request) => request(axios, basePath));
1793
+ createLinkWoauth(linkRequest, options) {
1794
+ return localVarFp.createLinkWoauth(linkRequest, options).then((request) => request(axios, basePath));
1795
+ },
1796
+ /**
1797
+ * Post the user action value
1798
+ * @param {string} loginIdentityId The login identity id
1799
+ * @param {ActionRequest} actionRequest Request body for post link action
1800
+ * @param {*} [options] Override http request option.
1801
+ * @throws {RequiredError}
1802
+ */
1803
+ linkAction(loginIdentityId, actionRequest, options) {
1804
+ return localVarFp.linkAction(loginIdentityId, actionRequest, options).then((request) => request(axios, basePath));
1805
+ },
1806
+ /**
1807
+ * Check the status of a given loginIdentity
1808
+ * @param {string} loginIdentityId The login identity id
1809
+ * @param {*} [options] Override http request option.
1810
+ * @throws {RequiredError}
1811
+ */
1812
+ linkStatus(loginIdentityId, options) {
1813
+ return localVarFp.linkStatus(loginIdentityId, options).then((request) => request(axios, basePath));
1016
1814
  },
1017
1815
  /**
1018
- * Get the customization details
1816
+ * Check the status of a given login identity via FVLink
1817
+ * @param {string} loginIdentityId The login identity id
1019
1818
  * @param {*} [options] Override http request option.
1020
1819
  * @throws {RequiredError}
1021
1820
  */
1022
- getCustomization(options) {
1023
- return localVarFp.getCustomization(options).then((request) => request(axios, basePath));
1821
+ linkStatusNonSensitive(loginIdentityId, options) {
1822
+ return localVarFp.linkStatusNonSensitive(loginIdentityId, options).then((request) => request(axios, basePath));
1024
1823
  },
1025
1824
  /**
1026
1825
  * Get a list of institutions
1027
- * @param {string} [country] The country the institution belongs to
1826
+ * @param {string} [country] (Deprecated) The country the institution belongs to
1028
1827
  * @param {Array<string>} [countries] The countries the institution belongs to
1029
1828
  * @param {string} [productsSupported] The products that this institution supports
1030
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
1829
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
1031
1830
  * @param {*} [options] Override http request option.
1032
1831
  * @throws {RequiredError}
1033
1832
  */
@@ -1045,6 +1844,18 @@ exports.LinkApiFactory = function (configuration, basePath, axios) {
1045
1844
  relink(relinkRequest, options) {
1046
1845
  return localVarFp.relink(relinkRequest, options).then((request) => request(axios, basePath));
1047
1846
  },
1847
+ /**
1848
+ * Create a new link using an existing LIID
1849
+ * @param {string} loginIdentityId The login identity id
1850
+ * @param {ApiRelinkRequest} apiRelinkRequest Request body for relinking and submitting credentials
1851
+ * @param {*} [options] Override http request option.
1852
+ * @throws {RequiredError}
1853
+ */
1854
+ relinkV2(loginIdentityId, apiRelinkRequest, options) {
1855
+ return localVarFp
1856
+ .relinkV2(loginIdentityId, apiRelinkRequest, options)
1857
+ .then((request) => request(axios, basePath));
1858
+ },
1048
1859
  /**
1049
1860
  * Exchange authorization code for token
1050
1861
  * @param {string} grantType
@@ -1068,6 +1879,18 @@ exports.LinkApiFactory = function (configuration, basePath, axios) {
1068
1879
  * @extends {BaseAPI}
1069
1880
  */
1070
1881
  class LinkApi extends base_1.BaseAPI {
1882
+ /**
1883
+ * Create a new link and submit credentials
1884
+ * @param {ApiLinkRequest} apiLinkRequest Request body for creating a new link and submitting credentials
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ * @memberof LinkApi
1888
+ */
1889
+ createLink(apiLinkRequest, options) {
1890
+ return exports.LinkApiFp(this.configuration)
1891
+ .createLink(apiLinkRequest, options)
1892
+ .then((request) => request(this.axios, this.basePath));
1893
+ }
1071
1894
  /**
1072
1895
  * Creates a new link
1073
1896
  * @param {LinkRequest} linkRequest Request body for starting a new Link
@@ -1075,28 +1898,54 @@ class LinkApi extends base_1.BaseAPI {
1075
1898
  * @throws {RequiredError}
1076
1899
  * @memberof LinkApi
1077
1900
  */
1078
- createLink(linkRequest, options) {
1901
+ createLinkWoauth(linkRequest, options) {
1902
+ return exports.LinkApiFp(this.configuration)
1903
+ .createLinkWoauth(linkRequest, options)
1904
+ .then((request) => request(this.axios, this.basePath));
1905
+ }
1906
+ /**
1907
+ * Post the user action value
1908
+ * @param {string} loginIdentityId The login identity id
1909
+ * @param {ActionRequest} actionRequest Request body for post link action
1910
+ * @param {*} [options] Override http request option.
1911
+ * @throws {RequiredError}
1912
+ * @memberof LinkApi
1913
+ */
1914
+ linkAction(loginIdentityId, actionRequest, options) {
1915
+ return exports.LinkApiFp(this.configuration)
1916
+ .linkAction(loginIdentityId, actionRequest, options)
1917
+ .then((request) => request(this.axios, this.basePath));
1918
+ }
1919
+ /**
1920
+ * Check the status of a given loginIdentity
1921
+ * @param {string} loginIdentityId The login identity id
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ * @memberof LinkApi
1925
+ */
1926
+ linkStatus(loginIdentityId, options) {
1079
1927
  return exports.LinkApiFp(this.configuration)
1080
- .createLink(linkRequest, options)
1928
+ .linkStatus(loginIdentityId, options)
1081
1929
  .then((request) => request(this.axios, this.basePath));
1082
1930
  }
1083
1931
  /**
1084
- * Get the customization details
1932
+ * Check the status of a given login identity via FVLink
1933
+ * @param {string} loginIdentityId The login identity id
1085
1934
  * @param {*} [options] Override http request option.
1086
1935
  * @throws {RequiredError}
1087
1936
  * @memberof LinkApi
1088
1937
  */
1089
- getCustomization(options) {
1938
+ linkStatusNonSensitive(loginIdentityId, options) {
1090
1939
  return exports.LinkApiFp(this.configuration)
1091
- .getCustomization(options)
1940
+ .linkStatusNonSensitive(loginIdentityId, options)
1092
1941
  .then((request) => request(this.axios, this.basePath));
1093
1942
  }
1094
1943
  /**
1095
1944
  * Get a list of institutions
1096
- * @param {string} [country] The country the institution belongs to
1945
+ * @param {string} [country] (Deprecated) The country the institution belongs to
1097
1946
  * @param {Array<string>} [countries] The countries the institution belongs to
1098
1947
  * @param {string} [productsSupported] The products that this institution supports
1099
- * @param {'BANK' | 'WALLET'} [institutionType] The type of institution
1948
+ * @param {'BANK' | 'WALLET' | 'TEST'} [institutionType] The type of institution
1100
1949
  * @param {*} [options] Override http request option.
1101
1950
  * @throws {RequiredError}
1102
1951
  * @memberof LinkApi
@@ -1118,6 +1967,19 @@ class LinkApi extends base_1.BaseAPI {
1118
1967
  .relink(relinkRequest, options)
1119
1968
  .then((request) => request(this.axios, this.basePath));
1120
1969
  }
1970
+ /**
1971
+ * Create a new link using an existing LIID
1972
+ * @param {string} loginIdentityId The login identity id
1973
+ * @param {ApiRelinkRequest} apiRelinkRequest Request body for relinking and submitting credentials
1974
+ * @param {*} [options] Override http request option.
1975
+ * @throws {RequiredError}
1976
+ * @memberof LinkApi
1977
+ */
1978
+ relinkV2(loginIdentityId, apiRelinkRequest, options) {
1979
+ return exports.LinkApiFp(this.configuration)
1980
+ .relinkV2(loginIdentityId, apiRelinkRequest, options)
1981
+ .then((request) => request(this.axios, this.basePath));
1982
+ }
1121
1983
  /**
1122
1984
  * Exchange authorization code for token
1123
1985
  * @param {string} grantType
@@ -1263,10 +2125,11 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1263
2125
  /**
1264
2126
  * Get the balance history for a specific account
1265
2127
  * @param {string} accountId The account id
2128
+ * @param {'INSTITUTION' | 'COMPUTED'} [source] The source will determine what type of balance history will be returned
1266
2129
  * @param {*} [options] Override http request option.
1267
2130
  * @throws {RequiredError}
1268
2131
  */
1269
- getBalanceHistory: (accountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2132
+ getBalanceHistory: (accountId, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
1270
2133
  // verify required parameter 'accountId' is not null or undefined
1271
2134
  common_1.assertParamExists('getBalanceHistory', 'accountId', accountId);
1272
2135
  const localVarPath = `/balance_history/{accountId}`.replace(`{${'accountId'}}`, encodeURIComponent(String(accountId)));
@@ -1282,6 +2145,9 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1282
2145
  // authentication Oauth2 required
1283
2146
  // oauth required
1284
2147
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
2148
+ if (source !== undefined) {
2149
+ localVarQueryParameter['source'] = source;
2150
+ }
1285
2151
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1286
2152
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1287
2153
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1649,12 +2515,13 @@ exports.LoginIdentityApiFp = function (configuration) {
1649
2515
  /**
1650
2516
  * Get the balance history for a specific account
1651
2517
  * @param {string} accountId The account id
2518
+ * @param {'INSTITUTION' | 'COMPUTED'} [source] The source will determine what type of balance history will be returned
1652
2519
  * @param {*} [options] Override http request option.
1653
2520
  * @throws {RequiredError}
1654
2521
  */
1655
- getBalanceHistory(accountId, options) {
2522
+ getBalanceHistory(accountId, source, options) {
1656
2523
  return __awaiter(this, void 0, void 0, function* () {
1657
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalanceHistory(accountId, options);
2524
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalanceHistory(accountId, source, options);
1658
2525
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1659
2526
  });
1660
2527
  },
@@ -1823,11 +2690,12 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
1823
2690
  /**
1824
2691
  * Get the balance history for a specific account
1825
2692
  * @param {string} accountId The account id
2693
+ * @param {'INSTITUTION' | 'COMPUTED'} [source] The source will determine what type of balance history will be returned
1826
2694
  * @param {*} [options] Override http request option.
1827
2695
  * @throws {RequiredError}
1828
2696
  */
1829
- getBalanceHistory(accountId, options) {
1830
- return localVarFp.getBalanceHistory(accountId, options).then((request) => request(axios, basePath));
2697
+ getBalanceHistory(accountId, source, options) {
2698
+ return localVarFp.getBalanceHistory(accountId, source, options).then((request) => request(axios, basePath));
1831
2699
  },
1832
2700
  /**
1833
2701
  * Download composite statement
@@ -1980,13 +2848,14 @@ class LoginIdentityApi extends base_1.BaseAPI {
1980
2848
  /**
1981
2849
  * Get the balance history for a specific account
1982
2850
  * @param {string} accountId The account id
2851
+ * @param {'INSTITUTION' | 'COMPUTED'} [source] The source will determine what type of balance history will be returned
1983
2852
  * @param {*} [options] Override http request option.
1984
2853
  * @throws {RequiredError}
1985
2854
  * @memberof LoginIdentityApi
1986
2855
  */
1987
- getBalanceHistory(accountId, options) {
2856
+ getBalanceHistory(accountId, source, options) {
1988
2857
  return exports.LoginIdentityApiFp(this.configuration)
1989
- .getBalanceHistory(accountId, options)
2858
+ .getBalanceHistory(accountId, source, options)
1990
2859
  .then((request) => request(this.axios, this.basePath));
1991
2860
  }
1992
2861
  /**
@@ -2194,6 +3063,60 @@ exports.PublicApiAxiosParamCreator = function (configuration) {
2194
3063
  options: localVarRequestOptions,
2195
3064
  };
2196
3065
  }),
3066
+ /**
3067
+ * get jwks
3068
+ * @param {*} [options] Override http request option.
3069
+ * @throws {RequiredError}
3070
+ */
3071
+ getCredSubmitJwks: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3072
+ const localVarPath = `/jwks`;
3073
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3074
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3075
+ let baseOptions;
3076
+ if (configuration) {
3077
+ baseOptions = configuration.baseOptions;
3078
+ }
3079
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3080
+ const localVarHeaderParameter = {};
3081
+ const localVarQueryParameter = {};
3082
+ // authentication Oauth2 required
3083
+ // oauth required
3084
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', ['test'], configuration);
3085
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3086
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3087
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3088
+ return {
3089
+ url: common_1.toPathString(localVarUrlObj),
3090
+ options: localVarRequestOptions,
3091
+ };
3092
+ }),
3093
+ /**
3094
+ * get payment jwks
3095
+ * @param {*} [options] Override http request option.
3096
+ * @throws {RequiredError}
3097
+ */
3098
+ getPaymentsJwks: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3099
+ const localVarPath = `/payments/jwks`;
3100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3101
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3102
+ let baseOptions;
3103
+ if (configuration) {
3104
+ baseOptions = configuration.baseOptions;
3105
+ }
3106
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3107
+ const localVarHeaderParameter = {};
3108
+ const localVarQueryParameter = {};
3109
+ // authentication Oauth2 required
3110
+ // oauth required
3111
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', ['test'], configuration);
3112
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
3113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3114
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3115
+ return {
3116
+ url: common_1.toPathString(localVarUrlObj),
3117
+ options: localVarRequestOptions,
3118
+ };
3119
+ }),
2197
3120
  };
2198
3121
  };
2199
3122
  /**
@@ -2231,6 +3154,28 @@ exports.PublicApiFp = function (configuration) {
2231
3154
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2232
3155
  });
2233
3156
  },
3157
+ /**
3158
+ * get jwks
3159
+ * @param {*} [options] Override http request option.
3160
+ * @throws {RequiredError}
3161
+ */
3162
+ getCredSubmitJwks(options) {
3163
+ return __awaiter(this, void 0, void 0, function* () {
3164
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCredSubmitJwks(options);
3165
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3166
+ });
3167
+ },
3168
+ /**
3169
+ * get payment jwks
3170
+ * @param {*} [options] Override http request option.
3171
+ * @throws {RequiredError}
3172
+ */
3173
+ getPaymentsJwks(options) {
3174
+ return __awaiter(this, void 0, void 0, function* () {
3175
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPaymentsJwks(options);
3176
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3177
+ });
3178
+ },
2234
3179
  };
2235
3180
  };
2236
3181
  /**
@@ -2264,6 +3209,22 @@ exports.PublicApiFactory = function (configuration, basePath, axios) {
2264
3209
  generateCustomerAccessToken(tokenRequest, options) {
2265
3210
  return localVarFp.generateCustomerAccessToken(tokenRequest, options).then((request) => request(axios, basePath));
2266
3211
  },
3212
+ /**
3213
+ * get jwks
3214
+ * @param {*} [options] Override http request option.
3215
+ * @throws {RequiredError}
3216
+ */
3217
+ getCredSubmitJwks(options) {
3218
+ return localVarFp.getCredSubmitJwks(options).then((request) => request(axios, basePath));
3219
+ },
3220
+ /**
3221
+ * get payment jwks
3222
+ * @param {*} [options] Override http request option.
3223
+ * @throws {RequiredError}
3224
+ */
3225
+ getPaymentsJwks(options) {
3226
+ return localVarFp.getPaymentsJwks(options).then((request) => request(axios, basePath));
3227
+ },
2267
3228
  };
2268
3229
  };
2269
3230
  /**
@@ -2301,5 +3262,27 @@ class PublicApi extends base_1.BaseAPI {
2301
3262
  .generateCustomerAccessToken(tokenRequest, options)
2302
3263
  .then((request) => request(this.axios, this.basePath));
2303
3264
  }
3265
+ /**
3266
+ * get jwks
3267
+ * @param {*} [options] Override http request option.
3268
+ * @throws {RequiredError}
3269
+ * @memberof PublicApi
3270
+ */
3271
+ getCredSubmitJwks(options) {
3272
+ return exports.PublicApiFp(this.configuration)
3273
+ .getCredSubmitJwks(options)
3274
+ .then((request) => request(this.axios, this.basePath));
3275
+ }
3276
+ /**
3277
+ * get payment jwks
3278
+ * @param {*} [options] Override http request option.
3279
+ * @throws {RequiredError}
3280
+ * @memberof PublicApi
3281
+ */
3282
+ getPaymentsJwks(options) {
3283
+ return exports.PublicApiFp(this.configuration)
3284
+ .getPaymentsJwks(options)
3285
+ .then((request) => request(this.axios, this.basePath));
3286
+ }
2304
3287
  }
2305
3288
  exports.PublicApi = PublicApi;