@finverse/sdk-typescript 0.0.154 → 0.0.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -1587,6 +1587,19 @@ export interface GetJWKSResponse {
1587
1587
  */
1588
1588
  keys?: Array<JWKSKey>;
1589
1589
  }
1590
+ /**
1591
+ *
1592
+ * @export
1593
+ * @interface GetLineItemsForDisplayResponse
1594
+ */
1595
+ export interface GetLineItemsForDisplayResponse {
1596
+ /**
1597
+ *
1598
+ * @type {Array<LineItem>}
1599
+ * @memberof GetLineItemsForDisplayResponse
1600
+ */
1601
+ line_items?: Array<LineItem>;
1602
+ }
1590
1603
  /**
1591
1604
  *
1592
1605
  * @export
@@ -2623,6 +2636,37 @@ export interface JWKSKey {
2623
2636
  */
2624
2637
  x5c?: Array<string>;
2625
2638
  }
2639
+ /**
2640
+ *
2641
+ * @export
2642
+ * @interface LineItem
2643
+ */
2644
+ export interface LineItem {
2645
+ /**
2646
+ *
2647
+ * @type {string}
2648
+ * @memberof LineItem
2649
+ */
2650
+ currency?: string;
2651
+ /**
2652
+ * The amount in decimal
2653
+ * @type {string}
2654
+ * @memberof LineItem
2655
+ */
2656
+ amount?: string;
2657
+ /**
2658
+ *
2659
+ * @type {string}
2660
+ * @memberof LineItem
2661
+ */
2662
+ item_type?: LineItemItemTypeEnum;
2663
+ }
2664
+ export declare const LineItemItemTypeEnum: {
2665
+ readonly AmountDue: "AMOUNT_DUE";
2666
+ readonly Surcharge: "SURCHARGE";
2667
+ readonly Total: "TOTAL";
2668
+ };
2669
+ export declare type LineItemItemTypeEnum = (typeof LineItemItemTypeEnum)[keyof typeof LineItemItemTypeEnum];
2626
2670
  /**
2627
2671
  *
2628
2672
  * @export
@@ -4637,6 +4681,12 @@ export interface Principal {
4637
4681
  * @memberof Principal
4638
4682
  */
4639
4683
  link_token_request?: LinkTokenRequest;
4684
+ /**
4685
+ *
4686
+ * @type {GetMandateAuthLinkRequest}
4687
+ * @memberof Principal
4688
+ */
4689
+ get_mandate_auth_link_request?: GetMandateAuthLinkRequest;
4640
4690
  /**
4641
4691
  *
4642
4692
  * @type {string}
@@ -5460,6 +5510,13 @@ export declare const CustomerApiAxiosParamCreator: (configuration?: Configuratio
5460
5510
  * @throws {RequiredError}
5461
5511
  */
5462
5512
  getInstitution: (institutionId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5513
+ /**
5514
+ * Get line items for display
5515
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
5516
+ * @param {*} [options] Override http request option.
5517
+ * @throws {RequiredError}
5518
+ */
5519
+ getLineItemsForDisplay: (paymentType: 'MANDATE' | 'MANUAL', options?: AxiosRequestConfig) => Promise<RequestArgs>;
5463
5520
  /**
5464
5521
  * Get a specific loginIdentity
5465
5522
  * @param {string} loginIdentityId The login identity id
@@ -5604,6 +5661,13 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
5604
5661
  * @throws {RequiredError}
5605
5662
  */
5606
5663
  getInstitution(institutionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Institution>>;
5664
+ /**
5665
+ * Get line items for display
5666
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
5667
+ * @param {*} [options] Override http request option.
5668
+ * @throws {RequiredError}
5669
+ */
5670
+ getLineItemsForDisplay(paymentType: 'MANDATE' | 'MANUAL', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLineItemsForDisplayResponse>>;
5607
5671
  /**
5608
5672
  * Get a specific loginIdentity
5609
5673
  * @param {string} loginIdentityId The login identity id
@@ -5748,6 +5812,13 @@ export declare const CustomerApiFactory: (configuration?: Configuration, basePat
5748
5812
  * @throws {RequiredError}
5749
5813
  */
5750
5814
  getInstitution(institutionId: string, options?: any): AxiosPromise<Institution>;
5815
+ /**
5816
+ * Get line items for display
5817
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
5818
+ * @param {*} [options] Override http request option.
5819
+ * @throws {RequiredError}
5820
+ */
5821
+ getLineItemsForDisplay(paymentType: 'MANDATE' | 'MANUAL', options?: any): AxiosPromise<GetLineItemsForDisplayResponse>;
5751
5822
  /**
5752
5823
  * Get a specific loginIdentity
5753
5824
  * @param {string} loginIdentityId The login identity id
@@ -5900,6 +5971,14 @@ export interface CustomerApiInterface {
5900
5971
  * @memberof CustomerApiInterface
5901
5972
  */
5902
5973
  getInstitution(institutionId: string, options?: AxiosRequestConfig): AxiosPromise<Institution>;
5974
+ /**
5975
+ * Get line items for display
5976
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
5977
+ * @param {*} [options] Override http request option.
5978
+ * @throws {RequiredError}
5979
+ * @memberof CustomerApiInterface
5980
+ */
5981
+ getLineItemsForDisplay(paymentType: 'MANDATE' | 'MANUAL', options?: AxiosRequestConfig): AxiosPromise<GetLineItemsForDisplayResponse>;
5903
5982
  /**
5904
5983
  * Get a specific loginIdentity
5905
5984
  * @param {string} loginIdentityId The login identity id
@@ -6065,6 +6144,14 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
6065
6144
  * @memberof CustomerApi
6066
6145
  */
6067
6146
  getInstitution(institutionId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Institution>>;
6147
+ /**
6148
+ * Get line items for display
6149
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
6150
+ * @param {*} [options] Override http request option.
6151
+ * @throws {RequiredError}
6152
+ * @memberof CustomerApi
6153
+ */
6154
+ getLineItemsForDisplay(paymentType: 'MANDATE' | 'MANUAL', options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLineItemsForDisplayResponse>>;
6068
6155
  /**
6069
6156
  * Get a specific loginIdentity
6070
6157
  * @param {string} loginIdentityId The login identity id
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PublicApi = exports.PublicApiFactory = exports.PublicApiFp = exports.PublicApiAxiosParamCreator = exports.LoginIdentityApi = exports.LoginIdentityApiFactory = exports.LoginIdentityApiFp = exports.LoginIdentityApiAxiosParamCreator = exports.LinkApi = exports.LinkApiFactory = exports.LinkApiFp = exports.LinkApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = exports.BadRequestModelV2ErrorTypeEnum = exports.AuthChecklistOptionsSubmittedByEnum = exports.AuthChecklistOptionsNameEnum = exports.AuthChecklistFactorRequiredEnum = exports.AuthChecklistFactorTypeEnum = exports.AccountTypeSubtypeEnum = exports.AccountTypeTypeEnum = 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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = exports.CustomerApiAxiosParamCreator = exports.TransactionLimitsPeriodEnum = exports.SubmitAuthChecklistResponseMandateStatusEnum = exports.SenderDetailDetailsTypeEnum = exports.RecipientAccountResponseAccountTypeEnum = exports.RecipientAccountNumberTypeEnum = exports.PayoutInstructionResponseStatusEnum = exports.PaymentScheduleFrequencyEnum = exports.PaymentResponseStatusEnum = exports.PaymentResponseTypeEnum = exports.PaymentLinkTokenResponseTokenTypeEnum = exports.PaymentLinkResponseStatusEnum = exports.PaymentLinkResponseModeEnum = exports.PaymentLinkCustomizationsUiModeEnum = exports.PaymentInstructionTypeEnum = exports.PaymentInfoPaymentsSupportedEnum = exports.MandateSenderAccountAccountTypeEnum = exports.MandateRecipientAccountAccountTypeEnum = exports.MandateAuthLinkCustomizationsUiModeEnum = exports.LoginMethodStatusEnum = exports.LinkTokenRequestAutomaticDataRefreshEnum = exports.LinkTokenRequestUiModeEnum = exports.LineItemItemTypeEnum = exports.InstitutionStatusEnum = exports.InstitutionUserTypeEnum = exports.InstitutionProductsSupportedEnum = exports.InstitutionInstitutionTypeEnum = exports.InstitutionTagsEnum = exports.GetMandateSenderUserTypeEnum = exports.GetMandateResponseStatusEnum = exports.GetMandateAuthResponseSenderTypeEnum = exports.GetMandateAuthResponseMandateStatusEnum = exports.GetMandateAuthLinkResponseTokenTypeEnum = exports.GetBalanceHistoryResponseSourceEnum = exports.FvErrorModelV2TypeEnum = exports.FvErrorModelTypeEnum = exports.FeePaidByEnum = exports.CustomerPaymentInstructionTypeEnum = exports.CreateRecipientAccountAccountTypeEnum = exports.CreatePaymentRequestTypeEnum = exports.CreatePaymentLinkRequestModeEnum = exports.CreatePaymentLinkMandateRequestSenderTypeEnum = exports.CreateMandateSenderUserTypeEnum = exports.CreateMandateResponseStatusEnum = 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
@@ -173,6 +173,11 @@ exports.InstitutionStatusEnum = {
173
173
  Alpha: 'ALPHA',
174
174
  Beta: 'BETA',
175
175
  };
176
+ exports.LineItemItemTypeEnum = {
177
+ AmountDue: 'AMOUNT_DUE',
178
+ Surcharge: 'SURCHARGE',
179
+ Total: 'TOTAL',
180
+ };
176
181
  exports.LinkTokenRequestUiModeEnum = {
177
182
  Iframe: 'iframe',
178
183
  Redirect: 'redirect',
@@ -518,6 +523,36 @@ exports.CustomerApiAxiosParamCreator = function (configuration) {
518
523
  options: localVarRequestOptions,
519
524
  };
520
525
  }),
526
+ /**
527
+ * Get line items for display
528
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ getLineItemsForDisplay: (paymentType, options = {}) => __awaiter(this, void 0, void 0, function* () {
533
+ // verify required parameter 'paymentType' is not null or undefined
534
+ common_1.assertParamExists('getLineItemsForDisplay', 'paymentType', paymentType);
535
+ const localVarPath = `/calculate/line_items/{paymentType}`.replace(`{${'paymentType'}}`, encodeURIComponent(String(paymentType)));
536
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
537
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
538
+ let baseOptions;
539
+ if (configuration) {
540
+ baseOptions = configuration.baseOptions;
541
+ }
542
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
543
+ const localVarHeaderParameter = {};
544
+ const localVarQueryParameter = {};
545
+ // authentication Oauth2 required
546
+ // oauth required
547
+ yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
548
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
549
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
550
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
551
+ return {
552
+ url: common_1.toPathString(localVarUrlObj),
553
+ options: localVarRequestOptions,
554
+ };
555
+ }),
521
556
  /**
522
557
  * Get a specific loginIdentity
523
558
  * @param {string} loginIdentityId The login identity id
@@ -992,6 +1027,18 @@ exports.CustomerApiFp = function (configuration) {
992
1027
  return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
993
1028
  });
994
1029
  },
1030
+ /**
1031
+ * Get line items for display
1032
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
1033
+ * @param {*} [options] Override http request option.
1034
+ * @throws {RequiredError}
1035
+ */
1036
+ getLineItemsForDisplay(paymentType, options) {
1037
+ return __awaiter(this, void 0, void 0, function* () {
1038
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLineItemsForDisplay(paymentType, options);
1039
+ return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1040
+ });
1041
+ },
995
1042
  /**
996
1043
  * Get a specific loginIdentity
997
1044
  * @param {string} loginIdentityId The login identity id
@@ -1223,6 +1270,15 @@ exports.CustomerApiFactory = function (configuration, basePath, axios) {
1223
1270
  getInstitution(institutionId, options) {
1224
1271
  return localVarFp.getInstitution(institutionId, options).then((request) => request(axios, basePath));
1225
1272
  },
1273
+ /**
1274
+ * Get line items for display
1275
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
1276
+ * @param {*} [options] Override http request option.
1277
+ * @throws {RequiredError}
1278
+ */
1279
+ getLineItemsForDisplay(paymentType, options) {
1280
+ return localVarFp.getLineItemsForDisplay(paymentType, options).then((request) => request(axios, basePath));
1281
+ },
1226
1282
  /**
1227
1283
  * Get a specific loginIdentity
1228
1284
  * @param {string} loginIdentityId The login identity id
@@ -1437,6 +1493,18 @@ class CustomerApi extends base_1.BaseAPI {
1437
1493
  .getInstitution(institutionId, options)
1438
1494
  .then((request) => request(this.axios, this.basePath));
1439
1495
  }
1496
+ /**
1497
+ * Get line items for display
1498
+ * @param {'MANDATE' | 'MANUAL'} paymentType The payment type
1499
+ * @param {*} [options] Override http request option.
1500
+ * @throws {RequiredError}
1501
+ * @memberof CustomerApi
1502
+ */
1503
+ getLineItemsForDisplay(paymentType, options) {
1504
+ return exports.CustomerApiFp(this.configuration)
1505
+ .getLineItemsForDisplay(paymentType, options)
1506
+ .then((request) => request(this.axios, this.basePath));
1507
+ }
1440
1508
  /**
1441
1509
  * Get a specific loginIdentity
1442
1510
  * @param {string} loginIdentityId The login identity id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finverse/sdk-typescript",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "description": "OpenAPI client for @finverse/sdk-typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -25,7 +25,7 @@
25
25
  "@types/mocha": "^10.0.1",
26
26
  "@types/node": "^12.11.5",
27
27
  "axios-mock-adapter": "^1.21.2",
28
- "chai": "^4.3.7",
28
+ "chai": "^4.3.8",
29
29
  "mocha": "^10.2.0",
30
30
  "ts-node": "^10.9.1",
31
31
  "typescript": "^3.6.4"