@stashfin/grpc 1.2.99 → 1.2.101

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.99",
3
+ "version": "1.2.101",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -4,7 +4,7 @@ export interface forgotMpinRequest {
4
4
  mobile: string;
5
5
  }
6
6
  export interface forgotMpinResponse {
7
- id: number;
7
+ status: string;
8
8
  }
9
9
  export declare const forgotMpinRequest: {
10
10
  encode(message: forgotMpinRequest, writer?: _m0.Writer): _m0.Writer;
@@ -63,12 +63,12 @@ exports.forgotMpinRequest = {
63
63
  },
64
64
  };
65
65
  function createBaseforgotMpinResponse() {
66
- return { id: 0 };
66
+ return { status: "" };
67
67
  }
68
68
  exports.forgotMpinResponse = {
69
69
  encode(message, writer = minimal_1.default.Writer.create()) {
70
- if (message.id !== 0) {
71
- writer.uint32(8).int32(message.id);
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
72
  }
73
73
  return writer;
74
74
  },
@@ -80,10 +80,10 @@ exports.forgotMpinResponse = {
80
80
  const tag = reader.uint32();
81
81
  switch (tag >>> 3) {
82
82
  case 1:
83
- if (tag !== 8) {
83
+ if (tag !== 10) {
84
84
  break;
85
85
  }
86
- message.id = reader.int32();
86
+ message.status = reader.string();
87
87
  continue;
88
88
  }
89
89
  if ((tag & 7) === 4 || tag === 0) {
@@ -94,12 +94,12 @@ exports.forgotMpinResponse = {
94
94
  return message;
95
95
  },
96
96
  fromJSON(object) {
97
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
97
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
98
98
  },
99
99
  toJSON(message) {
100
100
  const obj = {};
101
- if (message.id !== 0) {
102
- obj.id = Math.round(message.id);
101
+ if (message.status !== "") {
102
+ obj.status = message.status;
103
103
  }
104
104
  return obj;
105
105
  },
@@ -108,7 +108,7 @@ exports.forgotMpinResponse = {
108
108
  },
109
109
  fromPartial(object) {
110
110
  const message = createBaseforgotMpinResponse();
111
- message.id = object.id ?? 0;
111
+ message.status = object.status ?? "";
112
112
  return message;
113
113
  },
114
114
  };
@@ -4,7 +4,7 @@ export interface forgotMpinVerifyRequest {
4
4
  otp: string;
5
5
  }
6
6
  export interface forgotMpinVerifyResponse {
7
- success: boolean;
7
+ status: string;
8
8
  }
9
9
  export declare const forgotMpinVerifyRequest: {
10
10
  encode(message: forgotMpinVerifyRequest, writer?: _m0.Writer): _m0.Writer;
@@ -63,12 +63,12 @@ exports.forgotMpinVerifyRequest = {
63
63
  },
64
64
  };
65
65
  function createBaseforgotMpinVerifyResponse() {
66
- return { success: false };
66
+ return { status: "" };
67
67
  }
68
68
  exports.forgotMpinVerifyResponse = {
69
69
  encode(message, writer = minimal_1.default.Writer.create()) {
70
- if (message.success !== false) {
71
- writer.uint32(8).bool(message.success);
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
72
  }
73
73
  return writer;
74
74
  },
@@ -80,10 +80,10 @@ exports.forgotMpinVerifyResponse = {
80
80
  const tag = reader.uint32();
81
81
  switch (tag >>> 3) {
82
82
  case 1:
83
- if (tag !== 8) {
83
+ if (tag !== 10) {
84
84
  break;
85
85
  }
86
- message.success = reader.bool();
86
+ message.status = reader.string();
87
87
  continue;
88
88
  }
89
89
  if ((tag & 7) === 4 || tag === 0) {
@@ -94,12 +94,12 @@ exports.forgotMpinVerifyResponse = {
94
94
  return message;
95
95
  },
96
96
  fromJSON(object) {
97
- return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
97
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
98
98
  },
99
99
  toJSON(message) {
100
100
  const obj = {};
101
- if (message.success !== false) {
102
- obj.success = message.success;
101
+ if (message.status !== "") {
102
+ obj.status = message.status;
103
103
  }
104
104
  return obj;
105
105
  },
@@ -108,7 +108,7 @@ exports.forgotMpinVerifyResponse = {
108
108
  },
109
109
  fromPartial(object) {
110
110
  const message = createBaseforgotMpinVerifyResponse();
111
- message.success = object.success ?? false;
111
+ message.status = object.status ?? "";
112
112
  return message;
113
113
  },
114
114
  };
@@ -15,6 +15,12 @@ export interface creditLimitResponse {
15
15
  minimum_request_amount: number;
16
16
  sanctioned_limit: number;
17
17
  remaining_sanctioned_limit: number;
18
+ sanctioned_limit_info_popup_heading: string;
19
+ sanctioned_limit_info_popup_body: string;
20
+ exposure_limit_info_popup_heading: string;
21
+ exposure_limit_info_popup_body: string;
22
+ sanctioned_limit_heading: string;
23
+ exposure_limit_heading: string;
18
24
  }
19
25
  export declare const creditLimitRequest: {
20
26
  encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
@@ -63,6 +63,12 @@ function createBasecreditLimitResponse() {
63
63
  minimum_request_amount: 0,
64
64
  sanctioned_limit: 0,
65
65
  remaining_sanctioned_limit: 0,
66
+ sanctioned_limit_info_popup_heading: "",
67
+ sanctioned_limit_info_popup_body: "",
68
+ exposure_limit_info_popup_heading: "",
69
+ exposure_limit_info_popup_body: "",
70
+ sanctioned_limit_heading: "",
71
+ exposure_limit_heading: "",
66
72
  };
67
73
  }
68
74
  exports.creditLimitResponse = {
@@ -103,6 +109,24 @@ exports.creditLimitResponse = {
103
109
  if (message.remaining_sanctioned_limit !== 0) {
104
110
  writer.uint32(96).int32(message.remaining_sanctioned_limit);
105
111
  }
112
+ if (message.sanctioned_limit_info_popup_heading !== "") {
113
+ writer.uint32(106).string(message.sanctioned_limit_info_popup_heading);
114
+ }
115
+ if (message.sanctioned_limit_info_popup_body !== "") {
116
+ writer.uint32(114).string(message.sanctioned_limit_info_popup_body);
117
+ }
118
+ if (message.exposure_limit_info_popup_heading !== "") {
119
+ writer.uint32(122).string(message.exposure_limit_info_popup_heading);
120
+ }
121
+ if (message.exposure_limit_info_popup_body !== "") {
122
+ writer.uint32(130).string(message.exposure_limit_info_popup_body);
123
+ }
124
+ if (message.sanctioned_limit_heading !== "") {
125
+ writer.uint32(138).string(message.sanctioned_limit_heading);
126
+ }
127
+ if (message.exposure_limit_heading !== "") {
128
+ writer.uint32(146).string(message.exposure_limit_heading);
129
+ }
106
130
  return writer;
107
131
  },
108
132
  decode(input, length) {
@@ -184,6 +208,42 @@ exports.creditLimitResponse = {
184
208
  }
185
209
  message.remaining_sanctioned_limit = reader.int32();
186
210
  continue;
211
+ case 13:
212
+ if (tag !== 106) {
213
+ break;
214
+ }
215
+ message.sanctioned_limit_info_popup_heading = reader.string();
216
+ continue;
217
+ case 14:
218
+ if (tag !== 114) {
219
+ break;
220
+ }
221
+ message.sanctioned_limit_info_popup_body = reader.string();
222
+ continue;
223
+ case 15:
224
+ if (tag !== 122) {
225
+ break;
226
+ }
227
+ message.exposure_limit_info_popup_heading = reader.string();
228
+ continue;
229
+ case 16:
230
+ if (tag !== 130) {
231
+ break;
232
+ }
233
+ message.exposure_limit_info_popup_body = reader.string();
234
+ continue;
235
+ case 17:
236
+ if (tag !== 138) {
237
+ break;
238
+ }
239
+ message.sanctioned_limit_heading = reader.string();
240
+ continue;
241
+ case 18:
242
+ if (tag !== 146) {
243
+ break;
244
+ }
245
+ message.exposure_limit_heading = reader.string();
246
+ continue;
187
247
  }
188
248
  if ((tag & 7) === 4 || tag === 0) {
189
249
  break;
@@ -212,6 +272,24 @@ exports.creditLimitResponse = {
212
272
  remaining_sanctioned_limit: isSet(object.remaining_sanctioned_limit)
213
273
  ? globalThis.Number(object.remaining_sanctioned_limit)
214
274
  : 0,
275
+ sanctioned_limit_info_popup_heading: isSet(object.sanctioned_limit_info_popup_heading)
276
+ ? globalThis.String(object.sanctioned_limit_info_popup_heading)
277
+ : "",
278
+ sanctioned_limit_info_popup_body: isSet(object.sanctioned_limit_info_popup_body)
279
+ ? globalThis.String(object.sanctioned_limit_info_popup_body)
280
+ : "",
281
+ exposure_limit_info_popup_heading: isSet(object.exposure_limit_info_popup_heading)
282
+ ? globalThis.String(object.exposure_limit_info_popup_heading)
283
+ : "",
284
+ exposure_limit_info_popup_body: isSet(object.exposure_limit_info_popup_body)
285
+ ? globalThis.String(object.exposure_limit_info_popup_body)
286
+ : "",
287
+ sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
288
+ ? globalThis.String(object.sanctioned_limit_heading)
289
+ : "",
290
+ exposure_limit_heading: isSet(object.exposure_limit_heading)
291
+ ? globalThis.String(object.exposure_limit_heading)
292
+ : "",
215
293
  };
216
294
  },
217
295
  toJSON(message) {
@@ -252,6 +330,24 @@ exports.creditLimitResponse = {
252
330
  if (message.remaining_sanctioned_limit !== 0) {
253
331
  obj.remaining_sanctioned_limit = Math.round(message.remaining_sanctioned_limit);
254
332
  }
333
+ if (message.sanctioned_limit_info_popup_heading !== "") {
334
+ obj.sanctioned_limit_info_popup_heading = message.sanctioned_limit_info_popup_heading;
335
+ }
336
+ if (message.sanctioned_limit_info_popup_body !== "") {
337
+ obj.sanctioned_limit_info_popup_body = message.sanctioned_limit_info_popup_body;
338
+ }
339
+ if (message.exposure_limit_info_popup_heading !== "") {
340
+ obj.exposure_limit_info_popup_heading = message.exposure_limit_info_popup_heading;
341
+ }
342
+ if (message.exposure_limit_info_popup_body !== "") {
343
+ obj.exposure_limit_info_popup_body = message.exposure_limit_info_popup_body;
344
+ }
345
+ if (message.sanctioned_limit_heading !== "") {
346
+ obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
347
+ }
348
+ if (message.exposure_limit_heading !== "") {
349
+ obj.exposure_limit_heading = message.exposure_limit_heading;
350
+ }
255
351
  return obj;
256
352
  },
257
353
  create(base) {
@@ -271,6 +367,12 @@ exports.creditLimitResponse = {
271
367
  message.minimum_request_amount = object.minimum_request_amount ?? 0;
272
368
  message.sanctioned_limit = object.sanctioned_limit ?? 0;
273
369
  message.remaining_sanctioned_limit = object.remaining_sanctioned_limit ?? 0;
370
+ message.sanctioned_limit_info_popup_heading = object.sanctioned_limit_info_popup_heading ?? "";
371
+ message.sanctioned_limit_info_popup_body = object.sanctioned_limit_info_popup_body ?? "";
372
+ message.exposure_limit_info_popup_heading = object.exposure_limit_info_popup_heading ?? "";
373
+ message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
374
+ message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
375
+ message.exposure_limit_heading = object.exposure_limit_heading ?? "";
274
376
  return message;
275
377
  },
276
378
  };
@@ -0,0 +1,80 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.getsummarystaticfields";
3
+ export interface getSummaryStaticFieldsRequest {
4
+ }
5
+ export interface getSummaryStaticFieldsResponse {
6
+ emi_date_l: string;
7
+ emi_amount_l: string;
8
+ first_emi_date_l: string;
9
+ final_disbursal_amount_l: string;
10
+ upfront_interest_l: string;
11
+ processing_fees_l: string;
12
+ gst_l: string;
13
+ rate_of_interest_l: string;
14
+ early_foreclosure_fees_l: string;
15
+ convenience_fees_l: string;
16
+ total_interest_pay_l: string;
17
+ effective_annual_rate_l: string;
18
+ trans_fee_plus_gst_l: string;
19
+ processing_fee_plus_gst_l: string;
20
+ max_amount_l: string;
21
+ credit_report_fees_l: string;
22
+ fee_and_charges_l: string;
23
+ add_on_l: string;
24
+ total_loan_amount_l: string;
25
+ loan_amount_l: string;
26
+ disbursed_amount_l: string;
27
+ total_payable_amount_l: string;
28
+ disbursal_amount_l: string;
29
+ number_of_emi_l: string;
30
+ first_emi_amt_l: string;
31
+ subsequent_emi_l: string;
32
+ effective_roi_l: string;
33
+ effective_annual_roi_l: string;
34
+ insurance_l: string;
35
+ apr_title: string;
36
+ insurance_desc: getSummaryStaticFieldsResponse_Field[];
37
+ insurance_title: string;
38
+ upfront_interest_description: string;
39
+ bill_amount_l: string;
40
+ }
41
+ export interface getSummaryStaticFieldsResponse_Field {
42
+ title: string;
43
+ desc: string;
44
+ icon: string;
45
+ }
46
+ export declare const getSummaryStaticFieldsRequest: {
47
+ encode(_: getSummaryStaticFieldsRequest, writer?: _m0.Writer): _m0.Writer;
48
+ decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsRequest;
49
+ fromJSON(_: any): getSummaryStaticFieldsRequest;
50
+ toJSON(_: getSummaryStaticFieldsRequest): unknown;
51
+ create<I extends Exact<DeepPartial<getSummaryStaticFieldsRequest>, I>>(base?: I): getSummaryStaticFieldsRequest;
52
+ fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsRequest>, I>>(_: I): getSummaryStaticFieldsRequest;
53
+ };
54
+ export declare const getSummaryStaticFieldsResponse: {
55
+ encode(message: getSummaryStaticFieldsResponse, writer?: _m0.Writer): _m0.Writer;
56
+ decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsResponse;
57
+ fromJSON(object: any): getSummaryStaticFieldsResponse;
58
+ toJSON(message: getSummaryStaticFieldsResponse): unknown;
59
+ create<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse>, I>>(base?: I): getSummaryStaticFieldsResponse;
60
+ fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse>, I>>(object: I): getSummaryStaticFieldsResponse;
61
+ };
62
+ export declare const getSummaryStaticFieldsResponse_Field: {
63
+ encode(message: getSummaryStaticFieldsResponse_Field, writer?: _m0.Writer): _m0.Writer;
64
+ decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsResponse_Field;
65
+ fromJSON(object: any): getSummaryStaticFieldsResponse_Field;
66
+ toJSON(message: getSummaryStaticFieldsResponse_Field): unknown;
67
+ create<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_Field>, I>>(base?: I): getSummaryStaticFieldsResponse_Field;
68
+ fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_Field>, I>>(object: I): getSummaryStaticFieldsResponse_Field;
69
+ };
70
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
71
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
72
+ [K in keyof T]?: DeepPartial<T[K]>;
73
+ } : Partial<T>;
74
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
75
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
76
+ [K in keyof P]: Exact<P[K], I[K]>;
77
+ } & {
78
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
79
+ };
80
+ export {};
@@ -0,0 +1,700 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.27.3
6
+ // source: loans/getsummarystaticfields.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.getSummaryStaticFieldsResponse_Field = exports.getSummaryStaticFieldsResponse = exports.getSummaryStaticFieldsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.getsummarystaticfields";
15
+ function createBasegetSummaryStaticFieldsRequest() {
16
+ return {};
17
+ }
18
+ exports.getSummaryStaticFieldsRequest = {
19
+ encode(_, writer = minimal_1.default.Writer.create()) {
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBasegetSummaryStaticFieldsRequest();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ }
30
+ if ((tag & 7) === 4 || tag === 0) {
31
+ break;
32
+ }
33
+ reader.skipType(tag & 7);
34
+ }
35
+ return message;
36
+ },
37
+ fromJSON(_) {
38
+ return {};
39
+ },
40
+ toJSON(_) {
41
+ const obj = {};
42
+ return obj;
43
+ },
44
+ create(base) {
45
+ return exports.getSummaryStaticFieldsRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetSummaryStaticFieldsRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetSummaryStaticFieldsResponse() {
53
+ return {
54
+ emi_date_l: "",
55
+ emi_amount_l: "",
56
+ first_emi_date_l: "",
57
+ final_disbursal_amount_l: "",
58
+ upfront_interest_l: "",
59
+ processing_fees_l: "",
60
+ gst_l: "",
61
+ rate_of_interest_l: "",
62
+ early_foreclosure_fees_l: "",
63
+ convenience_fees_l: "",
64
+ total_interest_pay_l: "",
65
+ effective_annual_rate_l: "",
66
+ trans_fee_plus_gst_l: "",
67
+ processing_fee_plus_gst_l: "",
68
+ max_amount_l: "",
69
+ credit_report_fees_l: "",
70
+ fee_and_charges_l: "",
71
+ add_on_l: "",
72
+ total_loan_amount_l: "",
73
+ loan_amount_l: "",
74
+ disbursed_amount_l: "",
75
+ total_payable_amount_l: "",
76
+ disbursal_amount_l: "",
77
+ number_of_emi_l: "",
78
+ first_emi_amt_l: "",
79
+ subsequent_emi_l: "",
80
+ effective_roi_l: "",
81
+ effective_annual_roi_l: "",
82
+ insurance_l: "",
83
+ apr_title: "",
84
+ insurance_desc: [],
85
+ insurance_title: "",
86
+ upfront_interest_description: "",
87
+ bill_amount_l: "",
88
+ };
89
+ }
90
+ exports.getSummaryStaticFieldsResponse = {
91
+ encode(message, writer = minimal_1.default.Writer.create()) {
92
+ if (message.emi_date_l !== "") {
93
+ writer.uint32(10).string(message.emi_date_l);
94
+ }
95
+ if (message.emi_amount_l !== "") {
96
+ writer.uint32(18).string(message.emi_amount_l);
97
+ }
98
+ if (message.first_emi_date_l !== "") {
99
+ writer.uint32(26).string(message.first_emi_date_l);
100
+ }
101
+ if (message.final_disbursal_amount_l !== "") {
102
+ writer.uint32(34).string(message.final_disbursal_amount_l);
103
+ }
104
+ if (message.upfront_interest_l !== "") {
105
+ writer.uint32(42).string(message.upfront_interest_l);
106
+ }
107
+ if (message.processing_fees_l !== "") {
108
+ writer.uint32(50).string(message.processing_fees_l);
109
+ }
110
+ if (message.gst_l !== "") {
111
+ writer.uint32(58).string(message.gst_l);
112
+ }
113
+ if (message.rate_of_interest_l !== "") {
114
+ writer.uint32(66).string(message.rate_of_interest_l);
115
+ }
116
+ if (message.early_foreclosure_fees_l !== "") {
117
+ writer.uint32(74).string(message.early_foreclosure_fees_l);
118
+ }
119
+ if (message.convenience_fees_l !== "") {
120
+ writer.uint32(82).string(message.convenience_fees_l);
121
+ }
122
+ if (message.total_interest_pay_l !== "") {
123
+ writer.uint32(90).string(message.total_interest_pay_l);
124
+ }
125
+ if (message.effective_annual_rate_l !== "") {
126
+ writer.uint32(98).string(message.effective_annual_rate_l);
127
+ }
128
+ if (message.trans_fee_plus_gst_l !== "") {
129
+ writer.uint32(106).string(message.trans_fee_plus_gst_l);
130
+ }
131
+ if (message.processing_fee_plus_gst_l !== "") {
132
+ writer.uint32(114).string(message.processing_fee_plus_gst_l);
133
+ }
134
+ if (message.max_amount_l !== "") {
135
+ writer.uint32(122).string(message.max_amount_l);
136
+ }
137
+ if (message.credit_report_fees_l !== "") {
138
+ writer.uint32(130).string(message.credit_report_fees_l);
139
+ }
140
+ if (message.fee_and_charges_l !== "") {
141
+ writer.uint32(138).string(message.fee_and_charges_l);
142
+ }
143
+ if (message.add_on_l !== "") {
144
+ writer.uint32(146).string(message.add_on_l);
145
+ }
146
+ if (message.total_loan_amount_l !== "") {
147
+ writer.uint32(154).string(message.total_loan_amount_l);
148
+ }
149
+ if (message.loan_amount_l !== "") {
150
+ writer.uint32(162).string(message.loan_amount_l);
151
+ }
152
+ if (message.disbursed_amount_l !== "") {
153
+ writer.uint32(170).string(message.disbursed_amount_l);
154
+ }
155
+ if (message.total_payable_amount_l !== "") {
156
+ writer.uint32(178).string(message.total_payable_amount_l);
157
+ }
158
+ if (message.disbursal_amount_l !== "") {
159
+ writer.uint32(186).string(message.disbursal_amount_l);
160
+ }
161
+ if (message.number_of_emi_l !== "") {
162
+ writer.uint32(194).string(message.number_of_emi_l);
163
+ }
164
+ if (message.first_emi_amt_l !== "") {
165
+ writer.uint32(202).string(message.first_emi_amt_l);
166
+ }
167
+ if (message.subsequent_emi_l !== "") {
168
+ writer.uint32(210).string(message.subsequent_emi_l);
169
+ }
170
+ if (message.effective_roi_l !== "") {
171
+ writer.uint32(218).string(message.effective_roi_l);
172
+ }
173
+ if (message.effective_annual_roi_l !== "") {
174
+ writer.uint32(226).string(message.effective_annual_roi_l);
175
+ }
176
+ if (message.insurance_l !== "") {
177
+ writer.uint32(234).string(message.insurance_l);
178
+ }
179
+ if (message.apr_title !== "") {
180
+ writer.uint32(242).string(message.apr_title);
181
+ }
182
+ for (const v of message.insurance_desc) {
183
+ exports.getSummaryStaticFieldsResponse_Field.encode(v, writer.uint32(250).fork()).ldelim();
184
+ }
185
+ if (message.insurance_title !== "") {
186
+ writer.uint32(258).string(message.insurance_title);
187
+ }
188
+ if (message.upfront_interest_description !== "") {
189
+ writer.uint32(266).string(message.upfront_interest_description);
190
+ }
191
+ if (message.bill_amount_l !== "") {
192
+ writer.uint32(274).string(message.bill_amount_l);
193
+ }
194
+ return writer;
195
+ },
196
+ decode(input, length) {
197
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
198
+ let end = length === undefined ? reader.len : reader.pos + length;
199
+ const message = createBasegetSummaryStaticFieldsResponse();
200
+ while (reader.pos < end) {
201
+ const tag = reader.uint32();
202
+ switch (tag >>> 3) {
203
+ case 1:
204
+ if (tag !== 10) {
205
+ break;
206
+ }
207
+ message.emi_date_l = reader.string();
208
+ continue;
209
+ case 2:
210
+ if (tag !== 18) {
211
+ break;
212
+ }
213
+ message.emi_amount_l = reader.string();
214
+ continue;
215
+ case 3:
216
+ if (tag !== 26) {
217
+ break;
218
+ }
219
+ message.first_emi_date_l = reader.string();
220
+ continue;
221
+ case 4:
222
+ if (tag !== 34) {
223
+ break;
224
+ }
225
+ message.final_disbursal_amount_l = reader.string();
226
+ continue;
227
+ case 5:
228
+ if (tag !== 42) {
229
+ break;
230
+ }
231
+ message.upfront_interest_l = reader.string();
232
+ continue;
233
+ case 6:
234
+ if (tag !== 50) {
235
+ break;
236
+ }
237
+ message.processing_fees_l = reader.string();
238
+ continue;
239
+ case 7:
240
+ if (tag !== 58) {
241
+ break;
242
+ }
243
+ message.gst_l = reader.string();
244
+ continue;
245
+ case 8:
246
+ if (tag !== 66) {
247
+ break;
248
+ }
249
+ message.rate_of_interest_l = reader.string();
250
+ continue;
251
+ case 9:
252
+ if (tag !== 74) {
253
+ break;
254
+ }
255
+ message.early_foreclosure_fees_l = reader.string();
256
+ continue;
257
+ case 10:
258
+ if (tag !== 82) {
259
+ break;
260
+ }
261
+ message.convenience_fees_l = reader.string();
262
+ continue;
263
+ case 11:
264
+ if (tag !== 90) {
265
+ break;
266
+ }
267
+ message.total_interest_pay_l = reader.string();
268
+ continue;
269
+ case 12:
270
+ if (tag !== 98) {
271
+ break;
272
+ }
273
+ message.effective_annual_rate_l = reader.string();
274
+ continue;
275
+ case 13:
276
+ if (tag !== 106) {
277
+ break;
278
+ }
279
+ message.trans_fee_plus_gst_l = reader.string();
280
+ continue;
281
+ case 14:
282
+ if (tag !== 114) {
283
+ break;
284
+ }
285
+ message.processing_fee_plus_gst_l = reader.string();
286
+ continue;
287
+ case 15:
288
+ if (tag !== 122) {
289
+ break;
290
+ }
291
+ message.max_amount_l = reader.string();
292
+ continue;
293
+ case 16:
294
+ if (tag !== 130) {
295
+ break;
296
+ }
297
+ message.credit_report_fees_l = reader.string();
298
+ continue;
299
+ case 17:
300
+ if (tag !== 138) {
301
+ break;
302
+ }
303
+ message.fee_and_charges_l = reader.string();
304
+ continue;
305
+ case 18:
306
+ if (tag !== 146) {
307
+ break;
308
+ }
309
+ message.add_on_l = reader.string();
310
+ continue;
311
+ case 19:
312
+ if (tag !== 154) {
313
+ break;
314
+ }
315
+ message.total_loan_amount_l = reader.string();
316
+ continue;
317
+ case 20:
318
+ if (tag !== 162) {
319
+ break;
320
+ }
321
+ message.loan_amount_l = reader.string();
322
+ continue;
323
+ case 21:
324
+ if (tag !== 170) {
325
+ break;
326
+ }
327
+ message.disbursed_amount_l = reader.string();
328
+ continue;
329
+ case 22:
330
+ if (tag !== 178) {
331
+ break;
332
+ }
333
+ message.total_payable_amount_l = reader.string();
334
+ continue;
335
+ case 23:
336
+ if (tag !== 186) {
337
+ break;
338
+ }
339
+ message.disbursal_amount_l = reader.string();
340
+ continue;
341
+ case 24:
342
+ if (tag !== 194) {
343
+ break;
344
+ }
345
+ message.number_of_emi_l = reader.string();
346
+ continue;
347
+ case 25:
348
+ if (tag !== 202) {
349
+ break;
350
+ }
351
+ message.first_emi_amt_l = reader.string();
352
+ continue;
353
+ case 26:
354
+ if (tag !== 210) {
355
+ break;
356
+ }
357
+ message.subsequent_emi_l = reader.string();
358
+ continue;
359
+ case 27:
360
+ if (tag !== 218) {
361
+ break;
362
+ }
363
+ message.effective_roi_l = reader.string();
364
+ continue;
365
+ case 28:
366
+ if (tag !== 226) {
367
+ break;
368
+ }
369
+ message.effective_annual_roi_l = reader.string();
370
+ continue;
371
+ case 29:
372
+ if (tag !== 234) {
373
+ break;
374
+ }
375
+ message.insurance_l = reader.string();
376
+ continue;
377
+ case 30:
378
+ if (tag !== 242) {
379
+ break;
380
+ }
381
+ message.apr_title = reader.string();
382
+ continue;
383
+ case 31:
384
+ if (tag !== 250) {
385
+ break;
386
+ }
387
+ message.insurance_desc.push(exports.getSummaryStaticFieldsResponse_Field.decode(reader, reader.uint32()));
388
+ continue;
389
+ case 32:
390
+ if (tag !== 258) {
391
+ break;
392
+ }
393
+ message.insurance_title = reader.string();
394
+ continue;
395
+ case 33:
396
+ if (tag !== 266) {
397
+ break;
398
+ }
399
+ message.upfront_interest_description = reader.string();
400
+ continue;
401
+ case 34:
402
+ if (tag !== 274) {
403
+ break;
404
+ }
405
+ message.bill_amount_l = reader.string();
406
+ continue;
407
+ }
408
+ if ((tag & 7) === 4 || tag === 0) {
409
+ break;
410
+ }
411
+ reader.skipType(tag & 7);
412
+ }
413
+ return message;
414
+ },
415
+ fromJSON(object) {
416
+ return {
417
+ emi_date_l: isSet(object.emi_date_l) ? globalThis.String(object.emi_date_l) : "",
418
+ emi_amount_l: isSet(object.emi_amount_l) ? globalThis.String(object.emi_amount_l) : "",
419
+ first_emi_date_l: isSet(object.first_emi_date_l) ? globalThis.String(object.first_emi_date_l) : "",
420
+ final_disbursal_amount_l: isSet(object.final_disbursal_amount_l)
421
+ ? globalThis.String(object.final_disbursal_amount_l)
422
+ : "",
423
+ upfront_interest_l: isSet(object.upfront_interest_l) ? globalThis.String(object.upfront_interest_l) : "",
424
+ processing_fees_l: isSet(object.processing_fees_l) ? globalThis.String(object.processing_fees_l) : "",
425
+ gst_l: isSet(object.gst_l) ? globalThis.String(object.gst_l) : "",
426
+ rate_of_interest_l: isSet(object.rate_of_interest_l) ? globalThis.String(object.rate_of_interest_l) : "",
427
+ early_foreclosure_fees_l: isSet(object.early_foreclosure_fees_l)
428
+ ? globalThis.String(object.early_foreclosure_fees_l)
429
+ : "",
430
+ convenience_fees_l: isSet(object.convenience_fees_l) ? globalThis.String(object.convenience_fees_l) : "",
431
+ total_interest_pay_l: isSet(object.total_interest_pay_l) ? globalThis.String(object.total_interest_pay_l) : "",
432
+ effective_annual_rate_l: isSet(object.effective_annual_rate_l)
433
+ ? globalThis.String(object.effective_annual_rate_l)
434
+ : "",
435
+ trans_fee_plus_gst_l: isSet(object.trans_fee_plus_gst_l) ? globalThis.String(object.trans_fee_plus_gst_l) : "",
436
+ processing_fee_plus_gst_l: isSet(object.processing_fee_plus_gst_l)
437
+ ? globalThis.String(object.processing_fee_plus_gst_l)
438
+ : "",
439
+ max_amount_l: isSet(object.max_amount_l) ? globalThis.String(object.max_amount_l) : "",
440
+ credit_report_fees_l: isSet(object.credit_report_fees_l) ? globalThis.String(object.credit_report_fees_l) : "",
441
+ fee_and_charges_l: isSet(object.fee_and_charges_l) ? globalThis.String(object.fee_and_charges_l) : "",
442
+ add_on_l: isSet(object.add_on_l) ? globalThis.String(object.add_on_l) : "",
443
+ total_loan_amount_l: isSet(object.total_loan_amount_l) ? globalThis.String(object.total_loan_amount_l) : "",
444
+ loan_amount_l: isSet(object.loan_amount_l) ? globalThis.String(object.loan_amount_l) : "",
445
+ disbursed_amount_l: isSet(object.disbursed_amount_l) ? globalThis.String(object.disbursed_amount_l) : "",
446
+ total_payable_amount_l: isSet(object.total_payable_amount_l)
447
+ ? globalThis.String(object.total_payable_amount_l)
448
+ : "",
449
+ disbursal_amount_l: isSet(object.disbursal_amount_l) ? globalThis.String(object.disbursal_amount_l) : "",
450
+ number_of_emi_l: isSet(object.number_of_emi_l) ? globalThis.String(object.number_of_emi_l) : "",
451
+ first_emi_amt_l: isSet(object.first_emi_amt_l) ? globalThis.String(object.first_emi_amt_l) : "",
452
+ subsequent_emi_l: isSet(object.subsequent_emi_l) ? globalThis.String(object.subsequent_emi_l) : "",
453
+ effective_roi_l: isSet(object.effective_roi_l) ? globalThis.String(object.effective_roi_l) : "",
454
+ effective_annual_roi_l: isSet(object.effective_annual_roi_l)
455
+ ? globalThis.String(object.effective_annual_roi_l)
456
+ : "",
457
+ insurance_l: isSet(object.insurance_l) ? globalThis.String(object.insurance_l) : "",
458
+ apr_title: isSet(object.apr_title) ? globalThis.String(object.apr_title) : "",
459
+ insurance_desc: globalThis.Array.isArray(object?.insurance_desc)
460
+ ? object.insurance_desc.map((e) => exports.getSummaryStaticFieldsResponse_Field.fromJSON(e))
461
+ : [],
462
+ insurance_title: isSet(object.insurance_title) ? globalThis.String(object.insurance_title) : "",
463
+ upfront_interest_description: isSet(object.upfront_interest_description)
464
+ ? globalThis.String(object.upfront_interest_description)
465
+ : "",
466
+ bill_amount_l: isSet(object.bill_amount_l) ? globalThis.String(object.bill_amount_l) : "",
467
+ };
468
+ },
469
+ toJSON(message) {
470
+ const obj = {};
471
+ if (message.emi_date_l !== "") {
472
+ obj.emi_date_l = message.emi_date_l;
473
+ }
474
+ if (message.emi_amount_l !== "") {
475
+ obj.emi_amount_l = message.emi_amount_l;
476
+ }
477
+ if (message.first_emi_date_l !== "") {
478
+ obj.first_emi_date_l = message.first_emi_date_l;
479
+ }
480
+ if (message.final_disbursal_amount_l !== "") {
481
+ obj.final_disbursal_amount_l = message.final_disbursal_amount_l;
482
+ }
483
+ if (message.upfront_interest_l !== "") {
484
+ obj.upfront_interest_l = message.upfront_interest_l;
485
+ }
486
+ if (message.processing_fees_l !== "") {
487
+ obj.processing_fees_l = message.processing_fees_l;
488
+ }
489
+ if (message.gst_l !== "") {
490
+ obj.gst_l = message.gst_l;
491
+ }
492
+ if (message.rate_of_interest_l !== "") {
493
+ obj.rate_of_interest_l = message.rate_of_interest_l;
494
+ }
495
+ if (message.early_foreclosure_fees_l !== "") {
496
+ obj.early_foreclosure_fees_l = message.early_foreclosure_fees_l;
497
+ }
498
+ if (message.convenience_fees_l !== "") {
499
+ obj.convenience_fees_l = message.convenience_fees_l;
500
+ }
501
+ if (message.total_interest_pay_l !== "") {
502
+ obj.total_interest_pay_l = message.total_interest_pay_l;
503
+ }
504
+ if (message.effective_annual_rate_l !== "") {
505
+ obj.effective_annual_rate_l = message.effective_annual_rate_l;
506
+ }
507
+ if (message.trans_fee_plus_gst_l !== "") {
508
+ obj.trans_fee_plus_gst_l = message.trans_fee_plus_gst_l;
509
+ }
510
+ if (message.processing_fee_plus_gst_l !== "") {
511
+ obj.processing_fee_plus_gst_l = message.processing_fee_plus_gst_l;
512
+ }
513
+ if (message.max_amount_l !== "") {
514
+ obj.max_amount_l = message.max_amount_l;
515
+ }
516
+ if (message.credit_report_fees_l !== "") {
517
+ obj.credit_report_fees_l = message.credit_report_fees_l;
518
+ }
519
+ if (message.fee_and_charges_l !== "") {
520
+ obj.fee_and_charges_l = message.fee_and_charges_l;
521
+ }
522
+ if (message.add_on_l !== "") {
523
+ obj.add_on_l = message.add_on_l;
524
+ }
525
+ if (message.total_loan_amount_l !== "") {
526
+ obj.total_loan_amount_l = message.total_loan_amount_l;
527
+ }
528
+ if (message.loan_amount_l !== "") {
529
+ obj.loan_amount_l = message.loan_amount_l;
530
+ }
531
+ if (message.disbursed_amount_l !== "") {
532
+ obj.disbursed_amount_l = message.disbursed_amount_l;
533
+ }
534
+ if (message.total_payable_amount_l !== "") {
535
+ obj.total_payable_amount_l = message.total_payable_amount_l;
536
+ }
537
+ if (message.disbursal_amount_l !== "") {
538
+ obj.disbursal_amount_l = message.disbursal_amount_l;
539
+ }
540
+ if (message.number_of_emi_l !== "") {
541
+ obj.number_of_emi_l = message.number_of_emi_l;
542
+ }
543
+ if (message.first_emi_amt_l !== "") {
544
+ obj.first_emi_amt_l = message.first_emi_amt_l;
545
+ }
546
+ if (message.subsequent_emi_l !== "") {
547
+ obj.subsequent_emi_l = message.subsequent_emi_l;
548
+ }
549
+ if (message.effective_roi_l !== "") {
550
+ obj.effective_roi_l = message.effective_roi_l;
551
+ }
552
+ if (message.effective_annual_roi_l !== "") {
553
+ obj.effective_annual_roi_l = message.effective_annual_roi_l;
554
+ }
555
+ if (message.insurance_l !== "") {
556
+ obj.insurance_l = message.insurance_l;
557
+ }
558
+ if (message.apr_title !== "") {
559
+ obj.apr_title = message.apr_title;
560
+ }
561
+ if (message.insurance_desc?.length) {
562
+ obj.insurance_desc = message.insurance_desc.map((e) => exports.getSummaryStaticFieldsResponse_Field.toJSON(e));
563
+ }
564
+ if (message.insurance_title !== "") {
565
+ obj.insurance_title = message.insurance_title;
566
+ }
567
+ if (message.upfront_interest_description !== "") {
568
+ obj.upfront_interest_description = message.upfront_interest_description;
569
+ }
570
+ if (message.bill_amount_l !== "") {
571
+ obj.bill_amount_l = message.bill_amount_l;
572
+ }
573
+ return obj;
574
+ },
575
+ create(base) {
576
+ return exports.getSummaryStaticFieldsResponse.fromPartial(base ?? {});
577
+ },
578
+ fromPartial(object) {
579
+ const message = createBasegetSummaryStaticFieldsResponse();
580
+ message.emi_date_l = object.emi_date_l ?? "";
581
+ message.emi_amount_l = object.emi_amount_l ?? "";
582
+ message.first_emi_date_l = object.first_emi_date_l ?? "";
583
+ message.final_disbursal_amount_l = object.final_disbursal_amount_l ?? "";
584
+ message.upfront_interest_l = object.upfront_interest_l ?? "";
585
+ message.processing_fees_l = object.processing_fees_l ?? "";
586
+ message.gst_l = object.gst_l ?? "";
587
+ message.rate_of_interest_l = object.rate_of_interest_l ?? "";
588
+ message.early_foreclosure_fees_l = object.early_foreclosure_fees_l ?? "";
589
+ message.convenience_fees_l = object.convenience_fees_l ?? "";
590
+ message.total_interest_pay_l = object.total_interest_pay_l ?? "";
591
+ message.effective_annual_rate_l = object.effective_annual_rate_l ?? "";
592
+ message.trans_fee_plus_gst_l = object.trans_fee_plus_gst_l ?? "";
593
+ message.processing_fee_plus_gst_l = object.processing_fee_plus_gst_l ?? "";
594
+ message.max_amount_l = object.max_amount_l ?? "";
595
+ message.credit_report_fees_l = object.credit_report_fees_l ?? "";
596
+ message.fee_and_charges_l = object.fee_and_charges_l ?? "";
597
+ message.add_on_l = object.add_on_l ?? "";
598
+ message.total_loan_amount_l = object.total_loan_amount_l ?? "";
599
+ message.loan_amount_l = object.loan_amount_l ?? "";
600
+ message.disbursed_amount_l = object.disbursed_amount_l ?? "";
601
+ message.total_payable_amount_l = object.total_payable_amount_l ?? "";
602
+ message.disbursal_amount_l = object.disbursal_amount_l ?? "";
603
+ message.number_of_emi_l = object.number_of_emi_l ?? "";
604
+ message.first_emi_amt_l = object.first_emi_amt_l ?? "";
605
+ message.subsequent_emi_l = object.subsequent_emi_l ?? "";
606
+ message.effective_roi_l = object.effective_roi_l ?? "";
607
+ message.effective_annual_roi_l = object.effective_annual_roi_l ?? "";
608
+ message.insurance_l = object.insurance_l ?? "";
609
+ message.apr_title = object.apr_title ?? "";
610
+ message.insurance_desc = object.insurance_desc?.map((e) => exports.getSummaryStaticFieldsResponse_Field.fromPartial(e)) ||
611
+ [];
612
+ message.insurance_title = object.insurance_title ?? "";
613
+ message.upfront_interest_description = object.upfront_interest_description ?? "";
614
+ message.bill_amount_l = object.bill_amount_l ?? "";
615
+ return message;
616
+ },
617
+ };
618
+ function createBasegetSummaryStaticFieldsResponse_Field() {
619
+ return { title: "", desc: "", icon: "" };
620
+ }
621
+ exports.getSummaryStaticFieldsResponse_Field = {
622
+ encode(message, writer = minimal_1.default.Writer.create()) {
623
+ if (message.title !== "") {
624
+ writer.uint32(10).string(message.title);
625
+ }
626
+ if (message.desc !== "") {
627
+ writer.uint32(18).string(message.desc);
628
+ }
629
+ if (message.icon !== "") {
630
+ writer.uint32(26).string(message.icon);
631
+ }
632
+ return writer;
633
+ },
634
+ decode(input, length) {
635
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
636
+ let end = length === undefined ? reader.len : reader.pos + length;
637
+ const message = createBasegetSummaryStaticFieldsResponse_Field();
638
+ while (reader.pos < end) {
639
+ const tag = reader.uint32();
640
+ switch (tag >>> 3) {
641
+ case 1:
642
+ if (tag !== 10) {
643
+ break;
644
+ }
645
+ message.title = reader.string();
646
+ continue;
647
+ case 2:
648
+ if (tag !== 18) {
649
+ break;
650
+ }
651
+ message.desc = reader.string();
652
+ continue;
653
+ case 3:
654
+ if (tag !== 26) {
655
+ break;
656
+ }
657
+ message.icon = reader.string();
658
+ continue;
659
+ }
660
+ if ((tag & 7) === 4 || tag === 0) {
661
+ break;
662
+ }
663
+ reader.skipType(tag & 7);
664
+ }
665
+ return message;
666
+ },
667
+ fromJSON(object) {
668
+ return {
669
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
670
+ desc: isSet(object.desc) ? globalThis.String(object.desc) : "",
671
+ icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
672
+ };
673
+ },
674
+ toJSON(message) {
675
+ const obj = {};
676
+ if (message.title !== "") {
677
+ obj.title = message.title;
678
+ }
679
+ if (message.desc !== "") {
680
+ obj.desc = message.desc;
681
+ }
682
+ if (message.icon !== "") {
683
+ obj.icon = message.icon;
684
+ }
685
+ return obj;
686
+ },
687
+ create(base) {
688
+ return exports.getSummaryStaticFieldsResponse_Field.fromPartial(base ?? {});
689
+ },
690
+ fromPartial(object) {
691
+ const message = createBasegetSummaryStaticFieldsResponse_Field();
692
+ message.title = object.title ?? "";
693
+ message.desc = object.desc ?? "";
694
+ message.icon = object.icon ?? "";
695
+ return message;
696
+ },
697
+ };
698
+ function isSet(value) {
699
+ return value !== null && value !== undefined;
700
+ }
package/ts/loans.d.ts CHANGED
@@ -5,7 +5,7 @@ import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi"
5
5
  import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
6
6
  import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
7
7
  import { getPendingEmiAmountRequest, getPendingEmiAmountResponse } from "./loans/getpendingemiamount";
8
- import { getStaticFieldsRequest, getStaticFieldsResponse } from "./loans/getstaticfields";
8
+ import { getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse } from "./loans/getsummarystaticfields";
9
9
  import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
10
10
  import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
11
11
  import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
@@ -143,14 +143,14 @@ export declare const loansService: {
143
143
  readonly responseSerialize: (value: getPendingEmiAmountResponse) => Buffer;
144
144
  readonly responseDeserialize: (value: Buffer) => getPendingEmiAmountResponse;
145
145
  };
146
- readonly getStaticFields: {
147
- readonly path: "/service.loans/getStaticFields";
146
+ readonly getSummaryStaticFields: {
147
+ readonly path: "/service.loans/getSummaryStaticFields";
148
148
  readonly requestStream: false;
149
149
  readonly responseStream: false;
150
- readonly requestSerialize: (value: getStaticFieldsRequest) => Buffer;
151
- readonly requestDeserialize: (value: Buffer) => getStaticFieldsRequest;
152
- readonly responseSerialize: (value: getStaticFieldsResponse) => Buffer;
153
- readonly responseDeserialize: (value: Buffer) => getStaticFieldsResponse;
150
+ readonly requestSerialize: (value: getSummaryStaticFieldsRequest) => Buffer;
151
+ readonly requestDeserialize: (value: Buffer) => getSummaryStaticFieldsRequest;
152
+ readonly responseSerialize: (value: getSummaryStaticFieldsResponse) => Buffer;
153
+ readonly responseDeserialize: (value: Buffer) => getSummaryStaticFieldsResponse;
154
154
  };
155
155
  };
156
156
  export interface loansServer extends UntypedServiceImplementation {
@@ -168,7 +168,7 @@ export interface loansServer extends UntypedServiceImplementation {
168
168
  sendEmail: handleUnaryCall<sendEmailRequest, sendEmailResponse>;
169
169
  sendNocEmail: handleUnaryCall<sendNocEmailRequest, sendNocEmailResponse>;
170
170
  getPendingEmiAmount: handleUnaryCall<getPendingEmiAmountRequest, getPendingEmiAmountResponse>;
171
- getStaticFields: handleUnaryCall<getStaticFieldsRequest, getStaticFieldsResponse>;
171
+ getSummaryStaticFields: handleUnaryCall<getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse>;
172
172
  }
173
173
  export interface loansClient extends Client {
174
174
  creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
@@ -213,9 +213,9 @@ export interface loansClient extends Client {
213
213
  getPendingEmiAmount(request: getPendingEmiAmountRequest, callback: (error: ServiceError | null, response: getPendingEmiAmountResponse) => void): ClientUnaryCall;
214
214
  getPendingEmiAmount(request: getPendingEmiAmountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getPendingEmiAmountResponse) => void): ClientUnaryCall;
215
215
  getPendingEmiAmount(request: getPendingEmiAmountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getPendingEmiAmountResponse) => void): ClientUnaryCall;
216
- getStaticFields(request: getStaticFieldsRequest, callback: (error: ServiceError | null, response: getStaticFieldsResponse) => void): ClientUnaryCall;
217
- getStaticFields(request: getStaticFieldsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getStaticFieldsResponse) => void): ClientUnaryCall;
218
- getStaticFields(request: getStaticFieldsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getStaticFieldsResponse) => void): ClientUnaryCall;
216
+ getSummaryStaticFields(request: getSummaryStaticFieldsRequest, callback: (error: ServiceError | null, response: getSummaryStaticFieldsResponse) => void): ClientUnaryCall;
217
+ getSummaryStaticFields(request: getSummaryStaticFieldsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getSummaryStaticFieldsResponse) => void): ClientUnaryCall;
218
+ getSummaryStaticFields(request: getSummaryStaticFieldsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getSummaryStaticFieldsResponse) => void): ClientUnaryCall;
219
219
  }
220
220
  export declare const loansClient: {
221
221
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
package/ts/loans.js CHANGED
@@ -14,7 +14,7 @@ const calculateemi_1 = require("./loans/calculateemi");
14
14
  const creditlimit_1 = require("./loans/creditlimit");
15
15
  const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
16
16
  const getpendingemiamount_1 = require("./loans/getpendingemiamount");
17
- const getstaticfields_1 = require("./loans/getstaticfields");
17
+ const getsummarystaticfields_1 = require("./loans/getsummarystaticfields");
18
18
  const loansummary_1 = require("./loans/loansummary");
19
19
  const paymentallocation_1 = require("./loans/paymentallocation");
20
20
  const restructureloan_1 = require("./loans/restructureloan");
@@ -151,14 +151,14 @@ exports.loansService = {
151
151
  responseSerialize: (value) => Buffer.from(getpendingemiamount_1.getPendingEmiAmountResponse.encode(value).finish()),
152
152
  responseDeserialize: (value) => getpendingemiamount_1.getPendingEmiAmountResponse.decode(value),
153
153
  },
154
- getStaticFields: {
155
- path: "/service.loans/getStaticFields",
154
+ getSummaryStaticFields: {
155
+ path: "/service.loans/getSummaryStaticFields",
156
156
  requestStream: false,
157
157
  responseStream: false,
158
- requestSerialize: (value) => Buffer.from(getstaticfields_1.getStaticFieldsRequest.encode(value).finish()),
159
- requestDeserialize: (value) => getstaticfields_1.getStaticFieldsRequest.decode(value),
160
- responseSerialize: (value) => Buffer.from(getstaticfields_1.getStaticFieldsResponse.encode(value).finish()),
161
- responseDeserialize: (value) => getstaticfields_1.getStaticFieldsResponse.decode(value),
158
+ requestSerialize: (value) => Buffer.from(getsummarystaticfields_1.getSummaryStaticFieldsRequest.encode(value).finish()),
159
+ requestDeserialize: (value) => getsummarystaticfields_1.getSummaryStaticFieldsRequest.decode(value),
160
+ responseSerialize: (value) => Buffer.from(getsummarystaticfields_1.getSummaryStaticFieldsResponse.encode(value).finish()),
161
+ responseDeserialize: (value) => getsummarystaticfields_1.getSummaryStaticFieldsResponse.decode(value),
162
162
  },
163
163
  };
164
164
  exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");