@finverse/sdk-typescript 0.0.38 → 0.0.41

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 +370 -198
  2. package/dist/api.js +255 -153
  3. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -22,22 +22,39 @@ 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.GetMandatesResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = 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.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.GetPaymentResponseStatusEnum = exports.GetPaymentResponseTypeEnum = exports.GetMandateResponseMandateStatusEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreatePaymentRequestTypeEnum = 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.CreatePaymentRequestTypeEnum = {
33
+ Mandate: 'MANDATE',
34
+ Single: 'SINGLE',
35
+ };
32
36
  exports.CustomerPaymentInstructionTypeEnum = {
33
37
  DebitAuthorization: 'DEBIT_AUTHORIZATION',
34
38
  };
35
- exports.GetMandatesResponseMandateStatusEnum = {
39
+ exports.GetMandateResponseMandateStatusEnum = {
36
40
  Created: 'CREATED',
37
41
  Used: 'USED',
38
42
  Submitted: 'SUBMITTED',
39
43
  Error: 'ERROR',
40
44
  };
45
+ exports.GetPaymentResponseTypeEnum = {
46
+ Mandate: 'MANDATE',
47
+ Single: 'SINGLE',
48
+ };
49
+ exports.GetPaymentResponseStatusEnum = {
50
+ Created: 'CREATED',
51
+ Authorized: 'AUTHORIZED',
52
+ Submitted: 'SUBMITTED',
53
+ Executed: 'EXECUTED',
54
+ Failed: 'FAILED',
55
+ Rejected: 'REJECTED',
56
+ Cancelled: 'CANCELLED',
57
+ };
41
58
  exports.LinkTokenRequestUiModeEnum = {
42
59
  Iframe: 'iframe',
43
60
  Redirect: 'redirect',
@@ -72,6 +89,70 @@ exports.TransactionLimitsPeriodEnum = {
72
89
  */
73
90
  exports.CustomerApiAxiosParamCreator = function (configuration) {
74
91
  return {
92
+ /**
93
+ * CREATE Mandate
94
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ createMandate: (createMandateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
99
+ // verify required parameter 'createMandateRequest' is not null or undefined
100
+ common_1.assertParamExists('createMandate', 'createMandateRequest', createMandateRequest);
101
+ const localVarPath = `/mandates`;
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ // authentication Oauth2 required
112
+ // oauth required
113
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
118
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMandateRequest, localVarRequestOptions, configuration);
119
+ return {
120
+ url: common_1.toPathString(localVarUrlObj),
121
+ options: localVarRequestOptions,
122
+ };
123
+ }),
124
+ /**
125
+ * Create new Payment
126
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ createPayment: (createPaymentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
131
+ // verify required parameter 'createPaymentRequest' is not null or undefined
132
+ common_1.assertParamExists('createPayment', 'createPaymentRequest', createPaymentRequest);
133
+ const localVarPath = `/payments`;
134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
136
+ let baseOptions;
137
+ if (configuration) {
138
+ baseOptions = configuration.baseOptions;
139
+ }
140
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
141
+ const localVarHeaderParameter = {};
142
+ const localVarQueryParameter = {};
143
+ // authentication Oauth2 required
144
+ // oauth required
145
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
147
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
150
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPaymentRequest, localVarRequestOptions, configuration);
151
+ return {
152
+ url: common_1.toPathString(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
75
156
  /**
76
157
  * Create a new payment instruction to be used when linking to perform new payment
77
158
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -227,14 +308,14 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
227
308
  };
228
309
  }),
229
310
  /**
230
- * Get Mandates details by mandate_id
311
+ * Get Mandate details by mandate_id
231
312
  * @param {string} mandateId mandate id
232
313
  * @param {*} [options] Override http request option.
233
314
  * @throws {RequiredError}
234
315
  */
235
- getMandates: (mandateId, options = {}) => __awaiter(this, void 0, void 0, function* () {
316
+ getMandate: (mandateId, options = {}) => __awaiter(this, void 0, void 0, function* () {
236
317
  // verify required parameter 'mandateId' is not null or undefined
237
- common_1.assertParamExists('getMandates', 'mandateId', mandateId);
318
+ common_1.assertParamExists('getMandate', 'mandateId', mandateId);
238
319
  const localVarPath = `/mandates/{mandateId}`.replace(`{${'mandateId'}}`, encodeURIComponent(String(mandateId)));
239
320
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
321
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -256,6 +337,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
256
337
  options: localVarRequestOptions,
257
338
  };
258
339
  }),
340
+ /**
341
+ * Get Payment details by payment_id
342
+ * @param {string} paymentId payment id
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ getPayment: (paymentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
347
+ // verify required parameter 'paymentId' is not null or undefined
348
+ common_1.assertParamExists('getPayment', 'paymentId', paymentId);
349
+ const localVarPath = `/payments/{paymentId}`.replace(`{${'paymentId'}}`, encodeURIComponent(String(paymentId)));
350
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
351
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
352
+ let baseOptions;
353
+ if (configuration) {
354
+ baseOptions = configuration.baseOptions;
355
+ }
356
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
357
+ const localVarHeaderParameter = {};
358
+ const localVarQueryParameter = {};
359
+ // authentication Oauth2 required
360
+ // oauth required
361
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
362
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
363
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
365
+ return {
366
+ url: common_1.toPathString(localVarUrlObj),
367
+ options: localVarRequestOptions,
368
+ };
369
+ }),
259
370
  /**
260
371
  * Get payment instructions by payment_instruction_id
261
372
  * @param {string} paymentInstructionId The id of a payment instruction
@@ -329,38 +440,6 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
329
440
  options: localVarRequestOptions,
330
441
  };
331
442
  }),
332
- /**
333
- * CREATE Mandates
334
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
335
- * @param {*} [options] Override http request option.
336
- * @throws {RequiredError}
337
- */
338
- postMandates: (postMandatesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
339
- // verify required parameter 'postMandatesRequest' is not null or undefined
340
- common_1.assertParamExists('postMandates', 'postMandatesRequest', postMandatesRequest);
341
- const localVarPath = `/mandates`;
342
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
343
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
344
- let baseOptions;
345
- if (configuration) {
346
- baseOptions = configuration.baseOptions;
347
- }
348
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
349
- const localVarHeaderParameter = {};
350
- const localVarQueryParameter = {};
351
- // authentication Oauth2 required
352
- // oauth required
353
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
354
- localVarHeaderParameter['Content-Type'] = 'application/json';
355
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
356
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
358
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(postMandatesRequest, localVarRequestOptions, configuration);
359
- return {
360
- url: common_1.toPathString(localVarUrlObj),
361
- options: localVarRequestOptions,
362
- };
363
- }),
364
443
  /**
365
444
  * Refresh an access token
366
445
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -402,6 +481,30 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
402
481
  exports.CustomerApiFp = function (configuration) {
403
482
  const localVarAxiosParamCreator = exports.CustomerApiAxiosParamCreator(configuration);
404
483
  return {
484
+ /**
485
+ * CREATE Mandate
486
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ createMandate(createMandateRequest, options) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMandate(createMandateRequest, options);
493
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
494
+ });
495
+ },
496
+ /**
497
+ * Create new Payment
498
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ createPayment(createPaymentRequest, options) {
503
+ return __awaiter(this, void 0, void 0, function* () {
504
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPayment(createPaymentRequest, options);
505
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
506
+ });
507
+ },
405
508
  /**
406
509
  * Create a new payment instruction to be used when linking to perform new payment
407
510
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -463,14 +566,26 @@ exports.CustomerApiFp = function (configuration) {
463
566
  });
464
567
  },
465
568
  /**
466
- * Get Mandates details by mandate_id
569
+ * Get Mandate details by mandate_id
467
570
  * @param {string} mandateId mandate id
468
571
  * @param {*} [options] Override http request option.
469
572
  * @throws {RequiredError}
470
573
  */
471
- getMandates(mandateId, options) {
574
+ getMandate(mandateId, options) {
472
575
  return __awaiter(this, void 0, void 0, function* () {
473
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandates(mandateId, options);
576
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMandate(mandateId, options);
577
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
578
+ });
579
+ },
580
+ /**
581
+ * Get Payment details by payment_id
582
+ * @param {string} paymentId payment id
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ */
586
+ getPayment(paymentId, options) {
587
+ return __awaiter(this, void 0, void 0, function* () {
588
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayment(paymentId, options);
474
589
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
475
590
  });
476
591
  },
@@ -501,18 +616,6 @@ exports.CustomerApiFp = function (configuration) {
501
616
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
502
617
  });
503
618
  },
504
- /**
505
- * CREATE Mandates
506
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
507
- * @param {*} [options] Override http request option.
508
- * @throws {RequiredError}
509
- */
510
- postMandates(postMandatesRequest, options) {
511
- return __awaiter(this, void 0, void 0, function* () {
512
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postMandates(postMandatesRequest, options);
513
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
514
- });
515
- },
516
619
  /**
517
620
  * Refresh an access token
518
621
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -534,6 +637,24 @@ exports.CustomerApiFp = function (configuration) {
534
637
  exports.CustomerApiFactory = function (configuration, basePath, axios) {
535
638
  const localVarFp = exports.CustomerApiFp(configuration);
536
639
  return {
640
+ /**
641
+ * CREATE Mandate
642
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ createMandate(createMandateRequest, options) {
647
+ return localVarFp.createMandate(createMandateRequest, options).then((request) => request(axios, basePath));
648
+ },
649
+ /**
650
+ * Create new Payment
651
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ createPayment(createPaymentRequest, options) {
656
+ return localVarFp.createPayment(createPaymentRequest, options).then((request) => request(axios, basePath));
657
+ },
537
658
  /**
538
659
  * Create a new payment instruction to be used when linking to perform new payment
539
660
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -582,13 +703,22 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
582
703
  return localVarFp.getLoginIdentityHistory(loginIdentityId, options).then((request) => request(axios, basePath));
583
704
  },
584
705
  /**
585
- * Get Mandates details by mandate_id
706
+ * Get Mandate details by mandate_id
586
707
  * @param {string} mandateId mandate id
587
708
  * @param {*} [options] Override http request option.
588
709
  * @throws {RequiredError}
589
710
  */
590
- getMandates(mandateId, options) {
591
- return localVarFp.getMandates(mandateId, options).then((request) => request(axios, basePath));
711
+ getMandate(mandateId, options) {
712
+ return localVarFp.getMandate(mandateId, options).then((request) => request(axios, basePath));
713
+ },
714
+ /**
715
+ * Get Payment details by payment_id
716
+ * @param {string} paymentId payment id
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ getPayment(paymentId, options) {
721
+ return localVarFp.getPayment(paymentId, options).then((request) => request(axios, basePath));
592
722
  },
593
723
  /**
594
724
  * Get payment instructions by payment_instruction_id
@@ -615,15 +745,6 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
615
745
  .listInstitutions(country, countries, productsSupported, institutionType, options)
616
746
  .then((request) => request(axios, basePath));
617
747
  },
618
- /**
619
- * CREATE Mandates
620
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
621
- * @param {*} [options] Override http request option.
622
- * @throws {RequiredError}
623
- */
624
- postMandates(postMandatesRequest, options) {
625
- return localVarFp.postMandates(postMandatesRequest, options).then((request) => request(axios, basePath));
626
- },
627
748
  /**
628
749
  * Refresh an access token
629
750
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -642,6 +763,30 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
642
763
  * @extends {BaseAPI}
643
764
  */
644
765
  class CustomerApi extends base_1.BaseAPI {
766
+ /**
767
+ * CREATE Mandate
768
+ * @param {CreateMandateRequest} createMandateRequest request body for creating mandate
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ * @memberof CustomerApi
772
+ */
773
+ createMandate(createMandateRequest, options) {
774
+ return exports.CustomerApiFp(this.configuration)
775
+ .createMandate(createMandateRequest, options)
776
+ .then((request) => request(this.axios, this.basePath));
777
+ }
778
+ /**
779
+ * Create new Payment
780
+ * @param {CreatePaymentRequest} createPaymentRequest request body for creating payment
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ * @memberof CustomerApi
784
+ */
785
+ createPayment(createPaymentRequest, options) {
786
+ return exports.CustomerApiFp(this.configuration)
787
+ .createPayment(createPaymentRequest, options)
788
+ .then((request) => request(this.axios, this.basePath));
789
+ }
645
790
  /**
646
791
  * Create a new payment instruction to be used when linking to perform new payment
647
792
  * @param {CustomerPaymentInstruction} paymentInstruction Request body for starting a new Link
@@ -703,15 +848,27 @@ class CustomerApi extends base_1.BaseAPI {
703
848
  .then((request) => request(this.axios, this.basePath));
704
849
  }
705
850
  /**
706
- * Get Mandates details by mandate_id
851
+ * Get Mandate details by mandate_id
707
852
  * @param {string} mandateId mandate id
708
853
  * @param {*} [options] Override http request option.
709
854
  * @throws {RequiredError}
710
855
  * @memberof CustomerApi
711
856
  */
712
- getMandates(mandateId, options) {
857
+ getMandate(mandateId, options) {
713
858
  return exports.CustomerApiFp(this.configuration)
714
- .getMandates(mandateId, options)
859
+ .getMandate(mandateId, options)
860
+ .then((request) => request(this.axios, this.basePath));
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
+ * @memberof CustomerApi
868
+ */
869
+ getPayment(paymentId, options) {
870
+ return exports.CustomerApiFp(this.configuration)
871
+ .getPayment(paymentId, options)
715
872
  .then((request) => request(this.axios, this.basePath));
716
873
  }
717
874
  /**
@@ -741,18 +898,6 @@ class CustomerApi extends base_1.BaseAPI {
741
898
  .listInstitutions(country, countries, productsSupported, institutionType, options)
742
899
  .then((request) => request(this.axios, this.basePath));
743
900
  }
744
- /**
745
- * CREATE Mandates
746
- * @param {PostMandatesRequest} postMandatesRequest request body for creating mandate
747
- * @param {*} [options] Override http request option.
748
- * @throws {RequiredError}
749
- * @memberof CustomerApi
750
- */
751
- postMandates(postMandatesRequest, options) {
752
- return exports.CustomerApiFp(this.configuration)
753
- .postMandates(postMandatesRequest, options)
754
- .then((request) => request(this.axios, this.basePath));
755
- }
756
901
  /**
757
902
  * Refresh an access token
758
903
  * @param {RefreshRequest} refreshRequest The refresh token
@@ -1331,10 +1476,11 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1331
1476
  }),
1332
1477
  /**
1333
1478
  * Download composite statement
1479
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
1334
1480
  * @param {*} [options] Override http request option.
1335
1481
  * @throws {RequiredError}
1336
1482
  */
1337
- getCompositeStatement: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1483
+ getCompositeStatement: (redirect, options = {}) => __awaiter(this, void 0, void 0, function* () {
1338
1484
  const localVarPath = `/composite_statement`;
1339
1485
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1340
1486
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1348,33 +1494,9 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1348
1494
  // authentication Oauth2 required
1349
1495
  // oauth required
1350
1496
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1351
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1352
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1353
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1354
- return {
1355
- url: common_1.toPathString(localVarUrlObj),
1356
- options: localVarRequestOptions,
1357
- };
1358
- }),
1359
- /**
1360
- * Get composite statement link for download
1361
- * @param {*} [options] Override http request option.
1362
- * @throws {RequiredError}
1363
- */
1364
- getCompositeStatementLink: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1365
- const localVarPath = `/composite_statement_link`;
1366
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1367
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1368
- let baseOptions;
1369
- if (configuration) {
1370
- baseOptions = configuration.baseOptions;
1497
+ if (redirect !== undefined) {
1498
+ localVarQueryParameter['redirect'] = redirect;
1371
1499
  }
1372
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1373
- const localVarHeaderParameter = {};
1374
- const localVarQueryParameter = {};
1375
- // authentication Oauth2 required
1376
- // oauth required
1377
- yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1378
1500
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1379
1501
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1380
1502
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1467,10 +1589,11 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1467
1589
  /**
1468
1590
  * Download statement
1469
1591
  * @param {string} statementId The statement id
1592
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
1470
1593
  * @param {*} [options] Override http request option.
1471
1594
  * @throws {RequiredError}
1472
1595
  */
1473
- getStatement: (statementId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1596
+ getStatement: (statementId, redirect, options = {}) => __awaiter(this, void 0, void 0, function* () {
1474
1597
  // verify required parameter 'statementId' is not null or undefined
1475
1598
  common_1.assertParamExists('getStatement', 'statementId', statementId);
1476
1599
  const localVarPath = `/statements/{statementId}`.replace(`{${'statementId'}}`, encodeURIComponent(String(statementId)));
@@ -1486,6 +1609,9 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1486
1609
  // authentication Oauth2 required
1487
1610
  // oauth required
1488
1611
  yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
1612
+ if (redirect !== undefined) {
1613
+ localVarQueryParameter['redirect'] = redirect;
1614
+ }
1489
1615
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
1490
1616
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1491
1617
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1495,7 +1621,7 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
1495
1621
  };
1496
1622
  }),
1497
1623
  /**
1498
- * Get statement link for download
1624
+ * (Deprecated) Get statement link for download
1499
1625
  * @param {string} statementId The statement id
1500
1626
  * @param {*} [options] Override http request option.
1501
1627
  * @throws {RequiredError}
@@ -1748,23 +1874,13 @@ exports.LoginIdentityApiFp = function (configuration) {
1748
1874
  },
1749
1875
  /**
1750
1876
  * Download composite statement
1877
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
1751
1878
  * @param {*} [options] Override http request option.
1752
1879
  * @throws {RequiredError}
1753
1880
  */
1754
- getCompositeStatement(options) {
1881
+ getCompositeStatement(redirect, options) {
1755
1882
  return __awaiter(this, void 0, void 0, function* () {
1756
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompositeStatement(options);
1757
- return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1758
- });
1759
- },
1760
- /**
1761
- * Get composite statement link for download
1762
- * @param {*} [options] Override http request option.
1763
- * @throws {RequiredError}
1764
- */
1765
- getCompositeStatementLink(options) {
1766
- return __awaiter(this, void 0, void 0, function* () {
1767
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompositeStatementLink(options);
1883
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompositeStatement(redirect, options);
1768
1884
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1769
1885
  });
1770
1886
  },
@@ -1804,17 +1920,18 @@ exports.LoginIdentityApiFp = function (configuration) {
1804
1920
  /**
1805
1921
  * Download statement
1806
1922
  * @param {string} statementId The statement id
1923
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
1807
1924
  * @param {*} [options] Override http request option.
1808
1925
  * @throws {RequiredError}
1809
1926
  */
1810
- getStatement(statementId, options) {
1927
+ getStatement(statementId, redirect, options) {
1811
1928
  return __awaiter(this, void 0, void 0, function* () {
1812
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatement(statementId, options);
1929
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatement(statementId, redirect, options);
1813
1930
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1814
1931
  });
1815
1932
  },
1816
1933
  /**
1817
- * Get statement link for download
1934
+ * (Deprecated) Get statement link for download
1818
1935
  * @param {string} statementId The statement id
1819
1936
  * @param {*} [options] Override http request option.
1820
1937
  * @throws {RequiredError}
@@ -1940,19 +2057,12 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
1940
2057
  },
1941
2058
  /**
1942
2059
  * Download composite statement
2060
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
1943
2061
  * @param {*} [options] Override http request option.
1944
2062
  * @throws {RequiredError}
1945
2063
  */
1946
- getCompositeStatement(options) {
1947
- return localVarFp.getCompositeStatement(options).then((request) => request(axios, basePath));
1948
- },
1949
- /**
1950
- * Get composite statement link for download
1951
- * @param {*} [options] Override http request option.
1952
- * @throws {RequiredError}
1953
- */
1954
- getCompositeStatementLink(options) {
1955
- return localVarFp.getCompositeStatementLink(options).then((request) => request(axios, basePath));
2064
+ getCompositeStatement(redirect, options) {
2065
+ return localVarFp.getCompositeStatement(redirect, options).then((request) => request(axios, basePath));
1956
2066
  },
1957
2067
  /**
1958
2068
  * \\[BETA] Get a list of identity data for a given login identity
@@ -1981,14 +2091,15 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
1981
2091
  /**
1982
2092
  * Download statement
1983
2093
  * @param {string} statementId The statement id
2094
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
1984
2095
  * @param {*} [options] Override http request option.
1985
2096
  * @throws {RequiredError}
1986
2097
  */
1987
- getStatement(statementId, options) {
1988
- return localVarFp.getStatement(statementId, options).then((request) => request(axios, basePath));
2098
+ getStatement(statementId, redirect, options) {
2099
+ return localVarFp.getStatement(statementId, redirect, options).then((request) => request(axios, basePath));
1989
2100
  },
1990
2101
  /**
1991
- * Get statement link for download
2102
+ * (Deprecated) Get statement link for download
1992
2103
  * @param {string} statementId The statement id
1993
2104
  * @param {*} [options] Override http request option.
1994
2105
  * @throws {RequiredError}
@@ -2115,24 +2226,14 @@ class LoginIdentityApi extends base_1.BaseAPI {
2115
2226
  }
2116
2227
  /**
2117
2228
  * Download composite statement
2229
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
2118
2230
  * @param {*} [options] Override http request option.
2119
2231
  * @throws {RequiredError}
2120
2232
  * @memberof LoginIdentityApi
2121
2233
  */
2122
- getCompositeStatement(options) {
2123
- return exports.LoginIdentityApiFp(this.configuration)
2124
- .getCompositeStatement(options)
2125
- .then((request) => request(this.axios, this.basePath));
2126
- }
2127
- /**
2128
- * Get composite statement link for download
2129
- * @param {*} [options] Override http request option.
2130
- * @throws {RequiredError}
2131
- * @memberof LoginIdentityApi
2132
- */
2133
- getCompositeStatementLink(options) {
2234
+ getCompositeStatement(redirect, options) {
2134
2235
  return exports.LoginIdentityApiFp(this.configuration)
2135
- .getCompositeStatementLink(options)
2236
+ .getCompositeStatement(redirect, options)
2136
2237
  .then((request) => request(this.axios, this.basePath));
2137
2238
  }
2138
2239
  /**
@@ -2171,17 +2272,18 @@ class LoginIdentityApi extends base_1.BaseAPI {
2171
2272
  /**
2172
2273
  * Download statement
2173
2274
  * @param {string} statementId The statement id
2275
+ * @param {boolean} [redirect] when true, response will be http redirect; otherwise it will be json response with the download link
2174
2276
  * @param {*} [options] Override http request option.
2175
2277
  * @throws {RequiredError}
2176
2278
  * @memberof LoginIdentityApi
2177
2279
  */
2178
- getStatement(statementId, options) {
2280
+ getStatement(statementId, redirect, options) {
2179
2281
  return exports.LoginIdentityApiFp(this.configuration)
2180
- .getStatement(statementId, options)
2282
+ .getStatement(statementId, redirect, options)
2181
2283
  .then((request) => request(this.axios, this.basePath));
2182
2284
  }
2183
2285
  /**
2184
- * Get statement link for download
2286
+ * (Deprecated) Get statement link for download
2185
2287
  * @param {string} statementId The statement id
2186
2288
  * @param {*} [options] Override http request option.
2187
2289
  * @throws {RequiredError}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.38",
3
+ "version": "0.0.41",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [