@stashfin/grpc 1.2.634 → 1.2.636

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.634",
3
+ "version": "1.2.636",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -38,10 +38,10 @@ export interface GetLocDetailsResponse {
38
38
  bill_amount_l: string;
39
39
  early_foreclosure_fees_l: string;
40
40
  convenience_fees_l: string;
41
- total_interest_pay_l: number;
41
+ total_interest_pay_l: string;
42
42
  effective_annual_rate_l: string;
43
- trans_fee_plus_gst_l: number;
44
- processing_fee_plus_gst_l: number;
43
+ trans_fee_plus_gst_l: string;
44
+ processing_fee_plus_gst_l: string;
45
45
  max_amount_l: string;
46
46
  credit_report_fees_l: string;
47
47
  fee_and_charges_l: string;
@@ -98,10 +98,10 @@ function createBaseGetLocDetailsResponse() {
98
98
  bill_amount_l: "",
99
99
  early_foreclosure_fees_l: "",
100
100
  convenience_fees_l: "",
101
- total_interest_pay_l: 0,
101
+ total_interest_pay_l: "",
102
102
  effective_annual_rate_l: "",
103
- trans_fee_plus_gst_l: 0,
104
- processing_fee_plus_gst_l: 0,
103
+ trans_fee_plus_gst_l: "",
104
+ processing_fee_plus_gst_l: "",
105
105
  max_amount_l: "",
106
106
  credit_report_fees_l: "",
107
107
  fee_and_charges_l: "",
@@ -239,17 +239,17 @@ exports.GetLocDetailsResponse = {
239
239
  if (message.convenience_fees_l !== "") {
240
240
  writer.uint32(274).string(message.convenience_fees_l);
241
241
  }
242
- if (message.total_interest_pay_l !== 0) {
243
- writer.uint32(280).int32(message.total_interest_pay_l);
242
+ if (message.total_interest_pay_l !== "") {
243
+ writer.uint32(282).string(message.total_interest_pay_l);
244
244
  }
245
245
  if (message.effective_annual_rate_l !== "") {
246
246
  writer.uint32(290).string(message.effective_annual_rate_l);
247
247
  }
248
- if (message.trans_fee_plus_gst_l !== 0) {
249
- writer.uint32(296).int32(message.trans_fee_plus_gst_l);
248
+ if (message.trans_fee_plus_gst_l !== "") {
249
+ writer.uint32(298).string(message.trans_fee_plus_gst_l);
250
250
  }
251
- if (message.processing_fee_plus_gst_l !== 0) {
252
- writer.uint32(304).int32(message.processing_fee_plus_gst_l);
251
+ if (message.processing_fee_plus_gst_l !== "") {
252
+ writer.uint32(306).string(message.processing_fee_plus_gst_l);
253
253
  }
254
254
  if (message.max_amount_l !== "") {
255
255
  writer.uint32(314).string(message.max_amount_l);
@@ -558,10 +558,10 @@ exports.GetLocDetailsResponse = {
558
558
  message.convenience_fees_l = reader.string();
559
559
  continue;
560
560
  case 35:
561
- if (tag !== 280) {
561
+ if (tag !== 282) {
562
562
  break;
563
563
  }
564
- message.total_interest_pay_l = reader.int32();
564
+ message.total_interest_pay_l = reader.string();
565
565
  continue;
566
566
  case 36:
567
567
  if (tag !== 290) {
@@ -570,16 +570,16 @@ exports.GetLocDetailsResponse = {
570
570
  message.effective_annual_rate_l = reader.string();
571
571
  continue;
572
572
  case 37:
573
- if (tag !== 296) {
573
+ if (tag !== 298) {
574
574
  break;
575
575
  }
576
- message.trans_fee_plus_gst_l = reader.int32();
576
+ message.trans_fee_plus_gst_l = reader.string();
577
577
  continue;
578
578
  case 38:
579
- if (tag !== 304) {
579
+ if (tag !== 306) {
580
580
  break;
581
581
  }
582
- message.processing_fee_plus_gst_l = reader.int32();
582
+ message.processing_fee_plus_gst_l = reader.string();
583
583
  continue;
584
584
  case 39:
585
585
  if (tag !== 314) {
@@ -823,14 +823,14 @@ exports.GetLocDetailsResponse = {
823
823
  ? globalThis.String(object.early_foreclosure_fees_l)
824
824
  : "",
825
825
  convenience_fees_l: isSet(object.convenience_fees_l) ? globalThis.String(object.convenience_fees_l) : "",
826
- total_interest_pay_l: isSet(object.total_interest_pay_l) ? globalThis.Number(object.total_interest_pay_l) : 0,
826
+ total_interest_pay_l: isSet(object.total_interest_pay_l) ? globalThis.String(object.total_interest_pay_l) : "",
827
827
  effective_annual_rate_l: isSet(object.effective_annual_rate_l)
828
828
  ? globalThis.String(object.effective_annual_rate_l)
829
829
  : "",
830
- trans_fee_plus_gst_l: isSet(object.trans_fee_plus_gst_l) ? globalThis.Number(object.trans_fee_plus_gst_l) : 0,
830
+ trans_fee_plus_gst_l: isSet(object.trans_fee_plus_gst_l) ? globalThis.String(object.trans_fee_plus_gst_l) : "",
831
831
  processing_fee_plus_gst_l: isSet(object.processing_fee_plus_gst_l)
832
- ? globalThis.Number(object.processing_fee_plus_gst_l)
833
- : 0,
832
+ ? globalThis.String(object.processing_fee_plus_gst_l)
833
+ : "",
834
834
  max_amount_l: isSet(object.max_amount_l) ? globalThis.String(object.max_amount_l) : "",
835
835
  credit_report_fees_l: isSet(object.credit_report_fees_l) ? globalThis.String(object.credit_report_fees_l) : "",
836
836
  fee_and_charges_l: isSet(object.fee_and_charges_l) ? globalThis.String(object.fee_and_charges_l) : "",
@@ -974,17 +974,17 @@ exports.GetLocDetailsResponse = {
974
974
  if (message.convenience_fees_l !== "") {
975
975
  obj.convenience_fees_l = message.convenience_fees_l;
976
976
  }
977
- if (message.total_interest_pay_l !== 0) {
978
- obj.total_interest_pay_l = Math.round(message.total_interest_pay_l);
977
+ if (message.total_interest_pay_l !== "") {
978
+ obj.total_interest_pay_l = message.total_interest_pay_l;
979
979
  }
980
980
  if (message.effective_annual_rate_l !== "") {
981
981
  obj.effective_annual_rate_l = message.effective_annual_rate_l;
982
982
  }
983
- if (message.trans_fee_plus_gst_l !== 0) {
984
- obj.trans_fee_plus_gst_l = Math.round(message.trans_fee_plus_gst_l);
983
+ if (message.trans_fee_plus_gst_l !== "") {
984
+ obj.trans_fee_plus_gst_l = message.trans_fee_plus_gst_l;
985
985
  }
986
- if (message.processing_fee_plus_gst_l !== 0) {
987
- obj.processing_fee_plus_gst_l = Math.round(message.processing_fee_plus_gst_l);
986
+ if (message.processing_fee_plus_gst_l !== "") {
987
+ obj.processing_fee_plus_gst_l = message.processing_fee_plus_gst_l;
988
988
  }
989
989
  if (message.max_amount_l !== "") {
990
990
  obj.max_amount_l = message.max_amount_l;
@@ -1120,10 +1120,10 @@ exports.GetLocDetailsResponse = {
1120
1120
  message.bill_amount_l = object.bill_amount_l ?? "";
1121
1121
  message.early_foreclosure_fees_l = object.early_foreclosure_fees_l ?? "";
1122
1122
  message.convenience_fees_l = object.convenience_fees_l ?? "";
1123
- message.total_interest_pay_l = object.total_interest_pay_l ?? 0;
1123
+ message.total_interest_pay_l = object.total_interest_pay_l ?? "";
1124
1124
  message.effective_annual_rate_l = object.effective_annual_rate_l ?? "";
1125
- message.trans_fee_plus_gst_l = object.trans_fee_plus_gst_l ?? 0;
1126
- message.processing_fee_plus_gst_l = object.processing_fee_plus_gst_l ?? 0;
1125
+ message.trans_fee_plus_gst_l = object.trans_fee_plus_gst_l ?? "";
1126
+ message.processing_fee_plus_gst_l = object.processing_fee_plus_gst_l ?? "";
1127
1127
  message.max_amount_l = object.max_amount_l ?? "";
1128
1128
  message.credit_report_fees_l = object.credit_report_fees_l ?? "";
1129
1129
  message.fee_and_charges_l = object.fee_and_charges_l ?? "";
@@ -14,11 +14,11 @@ export interface GetLocTenureResponse {
14
14
  max_tenure: number;
15
15
  msg?: string | undefined;
16
16
  first_emi_date: string;
17
- fcp_fee: number;
17
+ fcp_fee: string;
18
18
  fcp_interest: number;
19
19
  tenure_details: TenureDetail[];
20
20
  is_fip: boolean;
21
- amount_grossup: string;
21
+ amount_grossup: number;
22
22
  }
23
23
  export declare const GetLocTenureRequest: {
24
24
  encode(message: GetLocTenureRequest, writer?: _m0.Writer): _m0.Writer;
@@ -136,11 +136,11 @@ function createBaseGetLocTenureResponse() {
136
136
  max_tenure: 0,
137
137
  msg: undefined,
138
138
  first_emi_date: "",
139
- fcp_fee: 0,
139
+ fcp_fee: "",
140
140
  fcp_interest: 0,
141
141
  tenure_details: [],
142
142
  is_fip: false,
143
- amount_grossup: "",
143
+ amount_grossup: 0,
144
144
  };
145
145
  }
146
146
  exports.GetLocTenureResponse = {
@@ -163,8 +163,8 @@ exports.GetLocTenureResponse = {
163
163
  if (message.first_emi_date !== "") {
164
164
  writer.uint32(50).string(message.first_emi_date);
165
165
  }
166
- if (message.fcp_fee !== 0) {
167
- writer.uint32(56).int32(message.fcp_fee);
166
+ if (message.fcp_fee !== "") {
167
+ writer.uint32(58).string(message.fcp_fee);
168
168
  }
169
169
  if (message.fcp_interest !== 0) {
170
170
  writer.uint32(64).int32(message.fcp_interest);
@@ -175,8 +175,8 @@ exports.GetLocTenureResponse = {
175
175
  if (message.is_fip !== false) {
176
176
  writer.uint32(80).bool(message.is_fip);
177
177
  }
178
- if (message.amount_grossup !== "") {
179
- writer.uint32(90).string(message.amount_grossup);
178
+ if (message.amount_grossup !== 0) {
179
+ writer.uint32(88).int32(message.amount_grossup);
180
180
  }
181
181
  return writer;
182
182
  },
@@ -224,10 +224,10 @@ exports.GetLocTenureResponse = {
224
224
  message.first_emi_date = reader.string();
225
225
  continue;
226
226
  case 7:
227
- if (tag !== 56) {
227
+ if (tag !== 58) {
228
228
  break;
229
229
  }
230
- message.fcp_fee = reader.int32();
230
+ message.fcp_fee = reader.string();
231
231
  continue;
232
232
  case 8:
233
233
  if (tag !== 64) {
@@ -248,10 +248,10 @@ exports.GetLocTenureResponse = {
248
248
  message.is_fip = reader.bool();
249
249
  continue;
250
250
  case 11:
251
- if (tag !== 90) {
251
+ if (tag !== 88) {
252
252
  break;
253
253
  }
254
- message.amount_grossup = reader.string();
254
+ message.amount_grossup = reader.int32();
255
255
  continue;
256
256
  }
257
257
  if ((tag & 7) === 4 || tag === 0) {
@@ -269,13 +269,13 @@ exports.GetLocTenureResponse = {
269
269
  max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
270
270
  msg: isSet(object.msg) ? globalThis.String(object.msg) : undefined,
271
271
  first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
272
- fcp_fee: isSet(object.fcp_fee) ? globalThis.Number(object.fcp_fee) : 0,
272
+ fcp_fee: isSet(object.fcp_fee) ? globalThis.String(object.fcp_fee) : "",
273
273
  fcp_interest: isSet(object.fcp_interest) ? globalThis.Number(object.fcp_interest) : 0,
274
274
  tenure_details: globalThis.Array.isArray(object?.tenure_details)
275
275
  ? object.tenure_details.map((e) => exports.TenureDetail.fromJSON(e))
276
276
  : [],
277
277
  is_fip: isSet(object.is_fip) ? globalThis.Boolean(object.is_fip) : false,
278
- amount_grossup: isSet(object.amount_grossup) ? globalThis.String(object.amount_grossup) : "",
278
+ amount_grossup: isSet(object.amount_grossup) ? globalThis.Number(object.amount_grossup) : 0,
279
279
  };
280
280
  },
281
281
  toJSON(message) {
@@ -298,8 +298,8 @@ exports.GetLocTenureResponse = {
298
298
  if (message.first_emi_date !== "") {
299
299
  obj.first_emi_date = message.first_emi_date;
300
300
  }
301
- if (message.fcp_fee !== 0) {
302
- obj.fcp_fee = Math.round(message.fcp_fee);
301
+ if (message.fcp_fee !== "") {
302
+ obj.fcp_fee = message.fcp_fee;
303
303
  }
304
304
  if (message.fcp_interest !== 0) {
305
305
  obj.fcp_interest = Math.round(message.fcp_interest);
@@ -310,8 +310,8 @@ exports.GetLocTenureResponse = {
310
310
  if (message.is_fip !== false) {
311
311
  obj.is_fip = message.is_fip;
312
312
  }
313
- if (message.amount_grossup !== "") {
314
- obj.amount_grossup = message.amount_grossup;
313
+ if (message.amount_grossup !== 0) {
314
+ obj.amount_grossup = Math.round(message.amount_grossup);
315
315
  }
316
316
  return obj;
317
317
  },
@@ -326,11 +326,11 @@ exports.GetLocTenureResponse = {
326
326
  message.max_tenure = object.max_tenure ?? 0;
327
327
  message.msg = object.msg ?? undefined;
328
328
  message.first_emi_date = object.first_emi_date ?? "";
329
- message.fcp_fee = object.fcp_fee ?? 0;
329
+ message.fcp_fee = object.fcp_fee ?? "";
330
330
  message.fcp_interest = object.fcp_interest ?? 0;
331
331
  message.tenure_details = object.tenure_details?.map((e) => exports.TenureDetail.fromPartial(e)) || [];
332
332
  message.is_fip = object.is_fip ?? false;
333
- message.amount_grossup = object.amount_grossup ?? "";
333
+ message.amount_grossup = object.amount_grossup ?? 0;
334
334
  return message;
335
335
  },
336
336
  };
package/ts/loans.d.ts CHANGED
@@ -22,7 +22,6 @@ import { getLoanByIdRequest, getLoanByIdResponse } from "./loans/getloanbyid";
22
22
  import { GetLocConfirmRequest, GetLocConfirmResponse } from "./loans/getlocconfirms";
23
23
  import { GetLocDetailsRequest, GetLocDetailsResponse } from "./loans/getlocdetails";
24
24
  import { GetLocDisburseRequest, GetLocDisburseResponse } from "./loans/getlocdisburse";
25
- import { GetLocPartnerConfirmRequest, GetLocPartnerConfirmResponse } from "./loans/getlocpartnerconfirm";
26
25
  import { GetLocTenureRequest, GetLocTenureResponse } from "./loans/getloctenure";
27
26
  import { GetLocWithdrawlRequest, GetLocWithdrawlResponse } from "./loans/getlocwithdraw";
28
27
  import { GetLocWithdrawFormRequest, GetLocWithdrawFormResponse } from "./loans/getlocwithdrawform";
@@ -475,15 +474,6 @@ export declare const loansService: {
475
474
  readonly responseSerialize: (value: getBankDetailsResponse) => Buffer;
476
475
  readonly responseDeserialize: (value: Buffer) => getBankDetailsResponse;
477
476
  };
478
- readonly getPartnerLocConfirm: {
479
- readonly path: "/service.loans/getPartnerLocConfirm";
480
- readonly requestStream: false;
481
- readonly responseStream: false;
482
- readonly requestSerialize: (value: GetLocPartnerConfirmRequest) => Buffer;
483
- readonly requestDeserialize: (value: Buffer) => GetLocPartnerConfirmRequest;
484
- readonly responseSerialize: (value: GetLocPartnerConfirmResponse) => Buffer;
485
- readonly responseDeserialize: (value: Buffer) => GetLocPartnerConfirmResponse;
486
- };
487
477
  readonly getLocDetails: {
488
478
  readonly path: "/service.loans/GetLocDetails";
489
479
  readonly requestStream: false;
@@ -551,7 +541,6 @@ export interface loansServer extends UntypedServiceImplementation {
551
541
  getLocWithdraw: handleUnaryCall<GetLocWithdrawlRequest, GetLocWithdrawlResponse>;
552
542
  getLocConfirms: handleUnaryCall<GetLocConfirmRequest, GetLocConfirmResponse>;
553
543
  getBankDetails: handleUnaryCall<getBankDetailsRequest, getBankDetailsResponse>;
554
- getPartnerLocConfirm: handleUnaryCall<GetLocPartnerConfirmRequest, GetLocPartnerConfirmResponse>;
555
544
  getLocDetails: handleUnaryCall<GetLocDetailsRequest, GetLocDetailsResponse>;
556
545
  getLocDisburse: handleUnaryCall<GetLocDisburseRequest, GetLocDisburseResponse>;
557
546
  }
@@ -697,9 +686,6 @@ export interface loansClient extends Client {
697
686
  getBankDetails(request: getBankDetailsRequest, callback: (error: ServiceError | null, response: getBankDetailsResponse) => void): ClientUnaryCall;
698
687
  getBankDetails(request: getBankDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBankDetailsResponse) => void): ClientUnaryCall;
699
688
  getBankDetails(request: getBankDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBankDetailsResponse) => void): ClientUnaryCall;
700
- getPartnerLocConfirm(request: GetLocPartnerConfirmRequest, callback: (error: ServiceError | null, response: GetLocPartnerConfirmResponse) => void): ClientUnaryCall;
701
- getPartnerLocConfirm(request: GetLocPartnerConfirmRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetLocPartnerConfirmResponse) => void): ClientUnaryCall;
702
- getPartnerLocConfirm(request: GetLocPartnerConfirmRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetLocPartnerConfirmResponse) => void): ClientUnaryCall;
703
689
  getLocDetails(request: GetLocDetailsRequest, callback: (error: ServiceError | null, response: GetLocDetailsResponse) => void): ClientUnaryCall;
704
690
  getLocDetails(request: GetLocDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetLocDetailsResponse) => void): ClientUnaryCall;
705
691
  getLocDetails(request: GetLocDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetLocDetailsResponse) => void): ClientUnaryCall;
package/ts/loans.js CHANGED
@@ -31,7 +31,6 @@ const getloanbyid_1 = require("./loans/getloanbyid");
31
31
  const getlocconfirms_1 = require("./loans/getlocconfirms");
32
32
  const getlocdetails_1 = require("./loans/getlocdetails");
33
33
  const getlocdisburse_1 = require("./loans/getlocdisburse");
34
- const getlocpartnerconfirm_1 = require("./loans/getlocpartnerconfirm");
35
34
  const getloctenure_1 = require("./loans/getloctenure");
36
35
  const getlocwithdraw_1 = require("./loans/getlocwithdraw");
37
36
  const getlocwithdrawform_1 = require("./loans/getlocwithdrawform");
@@ -483,15 +482,6 @@ exports.loansService = {
483
482
  responseSerialize: (value) => Buffer.from(getbankdetails_1.getBankDetailsResponse.encode(value).finish()),
484
483
  responseDeserialize: (value) => getbankdetails_1.getBankDetailsResponse.decode(value),
485
484
  },
486
- getPartnerLocConfirm: {
487
- path: "/service.loans/getPartnerLocConfirm",
488
- requestStream: false,
489
- responseStream: false,
490
- requestSerialize: (value) => Buffer.from(getlocpartnerconfirm_1.GetLocPartnerConfirmRequest.encode(value).finish()),
491
- requestDeserialize: (value) => getlocpartnerconfirm_1.GetLocPartnerConfirmRequest.decode(value),
492
- responseSerialize: (value) => Buffer.from(getlocpartnerconfirm_1.GetLocPartnerConfirmResponse.encode(value).finish()),
493
- responseDeserialize: (value) => getlocpartnerconfirm_1.GetLocPartnerConfirmResponse.decode(value),
494
- },
495
485
  getLocDetails: {
496
486
  path: "/service.loans/GetLocDetails",
497
487
  requestStream: false,