@stashfin/grpc 1.2.633 → 1.2.635

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.633",
3
+ "version": "1.2.635",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,6 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "loans.getlocdetails";
3
3
  export interface GetLocDetailsRequest {
4
+ customer_id: number;
4
5
  }
5
6
  export interface GetLocDetailsResponse {
6
7
  matched: boolean;
@@ -37,10 +38,10 @@ export interface GetLocDetailsResponse {
37
38
  bill_amount_l: string;
38
39
  early_foreclosure_fees_l: string;
39
40
  convenience_fees_l: string;
40
- total_interest_pay_l: number;
41
+ total_interest_pay_l: string;
41
42
  effective_annual_rate_l: string;
42
- trans_fee_plus_gst_l: number;
43
- processing_fee_plus_gst_l: number;
43
+ trans_fee_plus_gst_l: string;
44
+ processing_fee_plus_gst_l: string;
44
45
  max_amount_l: string;
45
46
  credit_report_fees_l: string;
46
47
  fee_and_charges_l: string;
@@ -74,12 +75,12 @@ export interface GetLocDetailsResponse {
74
75
  financing_documents: string;
75
76
  }
76
77
  export declare const GetLocDetailsRequest: {
77
- encode(_: GetLocDetailsRequest, writer?: _m0.Writer): _m0.Writer;
78
+ encode(message: GetLocDetailsRequest, writer?: _m0.Writer): _m0.Writer;
78
79
  decode(input: _m0.Reader | Uint8Array, length?: number): GetLocDetailsRequest;
79
- fromJSON(_: any): GetLocDetailsRequest;
80
- toJSON(_: GetLocDetailsRequest): unknown;
80
+ fromJSON(object: any): GetLocDetailsRequest;
81
+ toJSON(message: GetLocDetailsRequest): unknown;
81
82
  create<I extends Exact<DeepPartial<GetLocDetailsRequest>, I>>(base?: I): GetLocDetailsRequest;
82
- fromPartial<I extends Exact<DeepPartial<GetLocDetailsRequest>, I>>(_: I): GetLocDetailsRequest;
83
+ fromPartial<I extends Exact<DeepPartial<GetLocDetailsRequest>, I>>(object: I): GetLocDetailsRequest;
83
84
  };
84
85
  export declare const GetLocDetailsResponse: {
85
86
  encode(message: GetLocDetailsResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,10 +13,13 @@ exports.GetLocDetailsResponse = exports.GetLocDetailsRequest = exports.protobufP
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.getlocdetails";
15
15
  function createBaseGetLocDetailsRequest() {
16
- return {};
16
+ return { customer_id: 0 };
17
17
  }
18
18
  exports.GetLocDetailsRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
+ }
20
23
  return writer;
21
24
  },
22
25
  decode(input, length) {
@@ -26,6 +29,12 @@ exports.GetLocDetailsRequest = {
26
29
  while (reader.pos < end) {
27
30
  const tag = reader.uint32();
28
31
  switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 8) {
34
+ break;
35
+ }
36
+ message.customer_id = reader.int32();
37
+ continue;
29
38
  }
30
39
  if ((tag & 7) === 4 || tag === 0) {
31
40
  break;
@@ -34,18 +43,22 @@ exports.GetLocDetailsRequest = {
34
43
  }
35
44
  return message;
36
45
  },
37
- fromJSON(_) {
38
- return {};
46
+ fromJSON(object) {
47
+ return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
39
48
  },
40
- toJSON(_) {
49
+ toJSON(message) {
41
50
  const obj = {};
51
+ if (message.customer_id !== 0) {
52
+ obj.customer_id = Math.round(message.customer_id);
53
+ }
42
54
  return obj;
43
55
  },
44
56
  create(base) {
45
57
  return exports.GetLocDetailsRequest.fromPartial(base ?? {});
46
58
  },
47
- fromPartial(_) {
59
+ fromPartial(object) {
48
60
  const message = createBaseGetLocDetailsRequest();
61
+ message.customer_id = object.customer_id ?? 0;
49
62
  return message;
50
63
  },
51
64
  };
@@ -85,10 +98,10 @@ function createBaseGetLocDetailsResponse() {
85
98
  bill_amount_l: "",
86
99
  early_foreclosure_fees_l: "",
87
100
  convenience_fees_l: "",
88
- total_interest_pay_l: 0,
101
+ total_interest_pay_l: "",
89
102
  effective_annual_rate_l: "",
90
- trans_fee_plus_gst_l: 0,
91
- processing_fee_plus_gst_l: 0,
103
+ trans_fee_plus_gst_l: "",
104
+ processing_fee_plus_gst_l: "",
92
105
  max_amount_l: "",
93
106
  credit_report_fees_l: "",
94
107
  fee_and_charges_l: "",
@@ -226,17 +239,17 @@ exports.GetLocDetailsResponse = {
226
239
  if (message.convenience_fees_l !== "") {
227
240
  writer.uint32(274).string(message.convenience_fees_l);
228
241
  }
229
- if (message.total_interest_pay_l !== 0) {
230
- 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);
231
244
  }
232
245
  if (message.effective_annual_rate_l !== "") {
233
246
  writer.uint32(290).string(message.effective_annual_rate_l);
234
247
  }
235
- if (message.trans_fee_plus_gst_l !== 0) {
236
- 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);
237
250
  }
238
- if (message.processing_fee_plus_gst_l !== 0) {
239
- 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);
240
253
  }
241
254
  if (message.max_amount_l !== "") {
242
255
  writer.uint32(314).string(message.max_amount_l);
@@ -545,10 +558,10 @@ exports.GetLocDetailsResponse = {
545
558
  message.convenience_fees_l = reader.string();
546
559
  continue;
547
560
  case 35:
548
- if (tag !== 280) {
561
+ if (tag !== 282) {
549
562
  break;
550
563
  }
551
- message.total_interest_pay_l = reader.int32();
564
+ message.total_interest_pay_l = reader.string();
552
565
  continue;
553
566
  case 36:
554
567
  if (tag !== 290) {
@@ -557,16 +570,16 @@ exports.GetLocDetailsResponse = {
557
570
  message.effective_annual_rate_l = reader.string();
558
571
  continue;
559
572
  case 37:
560
- if (tag !== 296) {
573
+ if (tag !== 298) {
561
574
  break;
562
575
  }
563
- message.trans_fee_plus_gst_l = reader.int32();
576
+ message.trans_fee_plus_gst_l = reader.string();
564
577
  continue;
565
578
  case 38:
566
- if (tag !== 304) {
579
+ if (tag !== 306) {
567
580
  break;
568
581
  }
569
- message.processing_fee_plus_gst_l = reader.int32();
582
+ message.processing_fee_plus_gst_l = reader.string();
570
583
  continue;
571
584
  case 39:
572
585
  if (tag !== 314) {
@@ -810,14 +823,14 @@ exports.GetLocDetailsResponse = {
810
823
  ? globalThis.String(object.early_foreclosure_fees_l)
811
824
  : "",
812
825
  convenience_fees_l: isSet(object.convenience_fees_l) ? globalThis.String(object.convenience_fees_l) : "",
813
- 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) : "",
814
827
  effective_annual_rate_l: isSet(object.effective_annual_rate_l)
815
828
  ? globalThis.String(object.effective_annual_rate_l)
816
829
  : "",
817
- 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) : "",
818
831
  processing_fee_plus_gst_l: isSet(object.processing_fee_plus_gst_l)
819
- ? globalThis.Number(object.processing_fee_plus_gst_l)
820
- : 0,
832
+ ? globalThis.String(object.processing_fee_plus_gst_l)
833
+ : "",
821
834
  max_amount_l: isSet(object.max_amount_l) ? globalThis.String(object.max_amount_l) : "",
822
835
  credit_report_fees_l: isSet(object.credit_report_fees_l) ? globalThis.String(object.credit_report_fees_l) : "",
823
836
  fee_and_charges_l: isSet(object.fee_and_charges_l) ? globalThis.String(object.fee_and_charges_l) : "",
@@ -961,17 +974,17 @@ exports.GetLocDetailsResponse = {
961
974
  if (message.convenience_fees_l !== "") {
962
975
  obj.convenience_fees_l = message.convenience_fees_l;
963
976
  }
964
- if (message.total_interest_pay_l !== 0) {
965
- 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;
966
979
  }
967
980
  if (message.effective_annual_rate_l !== "") {
968
981
  obj.effective_annual_rate_l = message.effective_annual_rate_l;
969
982
  }
970
- if (message.trans_fee_plus_gst_l !== 0) {
971
- 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;
972
985
  }
973
- if (message.processing_fee_plus_gst_l !== 0) {
974
- 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;
975
988
  }
976
989
  if (message.max_amount_l !== "") {
977
990
  obj.max_amount_l = message.max_amount_l;
@@ -1107,10 +1120,10 @@ exports.GetLocDetailsResponse = {
1107
1120
  message.bill_amount_l = object.bill_amount_l ?? "";
1108
1121
  message.early_foreclosure_fees_l = object.early_foreclosure_fees_l ?? "";
1109
1122
  message.convenience_fees_l = object.convenience_fees_l ?? "";
1110
- message.total_interest_pay_l = object.total_interest_pay_l ?? 0;
1123
+ message.total_interest_pay_l = object.total_interest_pay_l ?? "";
1111
1124
  message.effective_annual_rate_l = object.effective_annual_rate_l ?? "";
1112
- message.trans_fee_plus_gst_l = object.trans_fee_plus_gst_l ?? 0;
1113
- 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 ?? "";
1114
1127
  message.max_amount_l = object.max_amount_l ?? "";
1115
1128
  message.credit_report_fees_l = object.credit_report_fees_l ?? "";
1116
1129
  message.fee_and_charges_l = object.fee_and_charges_l ?? "";
@@ -1,18 +1,19 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "loans.getlocdisburse";
3
3
  export interface GetLocDisburseRequest {
4
+ customer_id: number;
4
5
  }
5
6
  export interface GetLocDisburseResponse {
6
7
  msg: string;
7
8
  status: string;
8
9
  }
9
10
  export declare const GetLocDisburseRequest: {
10
- encode(_: GetLocDisburseRequest, writer?: _m0.Writer): _m0.Writer;
11
+ encode(message: GetLocDisburseRequest, writer?: _m0.Writer): _m0.Writer;
11
12
  decode(input: _m0.Reader | Uint8Array, length?: number): GetLocDisburseRequest;
12
- fromJSON(_: any): GetLocDisburseRequest;
13
- toJSON(_: GetLocDisburseRequest): unknown;
13
+ fromJSON(object: any): GetLocDisburseRequest;
14
+ toJSON(message: GetLocDisburseRequest): unknown;
14
15
  create<I extends Exact<DeepPartial<GetLocDisburseRequest>, I>>(base?: I): GetLocDisburseRequest;
15
- fromPartial<I extends Exact<DeepPartial<GetLocDisburseRequest>, I>>(_: I): GetLocDisburseRequest;
16
+ fromPartial<I extends Exact<DeepPartial<GetLocDisburseRequest>, I>>(object: I): GetLocDisburseRequest;
16
17
  };
17
18
  export declare const GetLocDisburseResponse: {
18
19
  encode(message: GetLocDisburseResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,10 +13,13 @@ exports.GetLocDisburseResponse = exports.GetLocDisburseRequest = exports.protobu
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.getlocdisburse";
15
15
  function createBaseGetLocDisburseRequest() {
16
- return {};
16
+ return { customer_id: 0 };
17
17
  }
18
18
  exports.GetLocDisburseRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
+ }
20
23
  return writer;
21
24
  },
22
25
  decode(input, length) {
@@ -26,6 +29,12 @@ exports.GetLocDisburseRequest = {
26
29
  while (reader.pos < end) {
27
30
  const tag = reader.uint32();
28
31
  switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 8) {
34
+ break;
35
+ }
36
+ message.customer_id = reader.int32();
37
+ continue;
29
38
  }
30
39
  if ((tag & 7) === 4 || tag === 0) {
31
40
  break;
@@ -34,18 +43,22 @@ exports.GetLocDisburseRequest = {
34
43
  }
35
44
  return message;
36
45
  },
37
- fromJSON(_) {
38
- return {};
46
+ fromJSON(object) {
47
+ return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
39
48
  },
40
- toJSON(_) {
49
+ toJSON(message) {
41
50
  const obj = {};
51
+ if (message.customer_id !== 0) {
52
+ obj.customer_id = Math.round(message.customer_id);
53
+ }
42
54
  return obj;
43
55
  },
44
56
  create(base) {
45
57
  return exports.GetLocDisburseRequest.fromPartial(base ?? {});
46
58
  },
47
- fromPartial(_) {
59
+ fromPartial(object) {
48
60
  const message = createBaseGetLocDisburseRequest();
61
+ message.customer_id = object.customer_id ?? 0;
49
62
  return message;
50
63
  },
51
64
  };
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,