@stashfin/grpc 1.2.60 → 1.2.61
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 +1 -1
- package/ts/loans/calculateemi.js +4 -4
- package/ts/loans/loansummary.d.ts +50 -0
- package/ts/loans/loansummary.js +360 -0
- package/ts/loans/paymentallocation.d.ts +36 -0
- package/ts/loans/paymentallocation.js +133 -0
- package/ts/loans.d.ts +28 -0
- package/ts/loans.js +20 -0
package/package.json
CHANGED
package/ts/loans/calculateemi.js
CHANGED
|
@@ -181,7 +181,7 @@ exports.calculateEmiResponse_Field = {
|
|
|
181
181
|
writer.uint32(8).int32(message.tenure);
|
|
182
182
|
}
|
|
183
183
|
if (message.emi_amount !== 0) {
|
|
184
|
-
writer.uint32(
|
|
184
|
+
writer.uint32(21).float(message.emi_amount);
|
|
185
185
|
}
|
|
186
186
|
return writer;
|
|
187
187
|
},
|
|
@@ -199,10 +199,10 @@ exports.calculateEmiResponse_Field = {
|
|
|
199
199
|
message.tenure = reader.int32();
|
|
200
200
|
continue;
|
|
201
201
|
case 2:
|
|
202
|
-
if (tag !==
|
|
202
|
+
if (tag !== 21) {
|
|
203
203
|
break;
|
|
204
204
|
}
|
|
205
|
-
message.emi_amount = reader.
|
|
205
|
+
message.emi_amount = reader.float();
|
|
206
206
|
continue;
|
|
207
207
|
}
|
|
208
208
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -224,7 +224,7 @@ exports.calculateEmiResponse_Field = {
|
|
|
224
224
|
obj.tenure = Math.round(message.tenure);
|
|
225
225
|
}
|
|
226
226
|
if (message.emi_amount !== 0) {
|
|
227
|
-
obj.emi_amount =
|
|
227
|
+
obj.emi_amount = message.emi_amount;
|
|
228
228
|
}
|
|
229
229
|
return obj;
|
|
230
230
|
},
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.loansummary";
|
|
3
|
+
export interface loanSummaryRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface loanSummaryResponse {
|
|
6
|
+
loc_limit: number;
|
|
7
|
+
bill_date: string;
|
|
8
|
+
minimum_request_amount: number;
|
|
9
|
+
request_amount_increment_step: number;
|
|
10
|
+
used_loc: number;
|
|
11
|
+
max_tenure: number;
|
|
12
|
+
min_tenure: number;
|
|
13
|
+
rate_of_interest: number;
|
|
14
|
+
info_popup_heading: string;
|
|
15
|
+
info_popup_body: string;
|
|
16
|
+
sanctioned_limit_heading: string;
|
|
17
|
+
exposure_limit_heading: string;
|
|
18
|
+
request_max_percentage: number;
|
|
19
|
+
loc_disable: boolean;
|
|
20
|
+
exposure_limit: number;
|
|
21
|
+
sanctioned_limit: number;
|
|
22
|
+
remaining_senctioned_limit: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const loanSummaryRequest: {
|
|
25
|
+
encode(_: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): loanSummaryRequest;
|
|
27
|
+
fromJSON(_: any): loanSummaryRequest;
|
|
28
|
+
toJSON(_: loanSummaryRequest): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(base?: I): loanSummaryRequest;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<loanSummaryRequest>, I>>(_: I): loanSummaryRequest;
|
|
31
|
+
};
|
|
32
|
+
export declare const loanSummaryResponse: {
|
|
33
|
+
encode(message: loanSummaryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): loanSummaryResponse;
|
|
35
|
+
fromJSON(object: any): loanSummaryResponse;
|
|
36
|
+
toJSON(message: loanSummaryResponse): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<loanSummaryResponse>, I>>(base?: I): loanSummaryResponse;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<loanSummaryResponse>, I>>(object: I): loanSummaryResponse;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,360 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: loans/loansummary.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.loanSummaryResponse = exports.loanSummaryRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.loansummary";
|
|
15
|
+
function createBaseloanSummaryRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.loanSummaryRequest = {
|
|
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 = createBaseloanSummaryRequest();
|
|
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.loanSummaryRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseloanSummaryRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseloanSummaryResponse() {
|
|
53
|
+
return {
|
|
54
|
+
loc_limit: 0,
|
|
55
|
+
bill_date: "",
|
|
56
|
+
minimum_request_amount: 0,
|
|
57
|
+
request_amount_increment_step: 0,
|
|
58
|
+
used_loc: 0,
|
|
59
|
+
max_tenure: 0,
|
|
60
|
+
min_tenure: 0,
|
|
61
|
+
rate_of_interest: 0,
|
|
62
|
+
info_popup_heading: "",
|
|
63
|
+
info_popup_body: "",
|
|
64
|
+
sanctioned_limit_heading: "",
|
|
65
|
+
exposure_limit_heading: "",
|
|
66
|
+
request_max_percentage: 0,
|
|
67
|
+
loc_disable: false,
|
|
68
|
+
exposure_limit: 0,
|
|
69
|
+
sanctioned_limit: 0,
|
|
70
|
+
remaining_senctioned_limit: 0,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.loanSummaryResponse = {
|
|
74
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
75
|
+
if (message.loc_limit !== 0) {
|
|
76
|
+
writer.uint32(8).int32(message.loc_limit);
|
|
77
|
+
}
|
|
78
|
+
if (message.bill_date !== "") {
|
|
79
|
+
writer.uint32(18).string(message.bill_date);
|
|
80
|
+
}
|
|
81
|
+
if (message.minimum_request_amount !== 0) {
|
|
82
|
+
writer.uint32(24).int32(message.minimum_request_amount);
|
|
83
|
+
}
|
|
84
|
+
if (message.request_amount_increment_step !== 0) {
|
|
85
|
+
writer.uint32(32).int32(message.request_amount_increment_step);
|
|
86
|
+
}
|
|
87
|
+
if (message.used_loc !== 0) {
|
|
88
|
+
writer.uint32(40).int32(message.used_loc);
|
|
89
|
+
}
|
|
90
|
+
if (message.max_tenure !== 0) {
|
|
91
|
+
writer.uint32(48).int32(message.max_tenure);
|
|
92
|
+
}
|
|
93
|
+
if (message.min_tenure !== 0) {
|
|
94
|
+
writer.uint32(56).int32(message.min_tenure);
|
|
95
|
+
}
|
|
96
|
+
if (message.rate_of_interest !== 0) {
|
|
97
|
+
writer.uint32(64).int32(message.rate_of_interest);
|
|
98
|
+
}
|
|
99
|
+
if (message.info_popup_heading !== "") {
|
|
100
|
+
writer.uint32(74).string(message.info_popup_heading);
|
|
101
|
+
}
|
|
102
|
+
if (message.info_popup_body !== "") {
|
|
103
|
+
writer.uint32(82).string(message.info_popup_body);
|
|
104
|
+
}
|
|
105
|
+
if (message.sanctioned_limit_heading !== "") {
|
|
106
|
+
writer.uint32(90).string(message.sanctioned_limit_heading);
|
|
107
|
+
}
|
|
108
|
+
if (message.exposure_limit_heading !== "") {
|
|
109
|
+
writer.uint32(98).string(message.exposure_limit_heading);
|
|
110
|
+
}
|
|
111
|
+
if (message.request_max_percentage !== 0) {
|
|
112
|
+
writer.uint32(104).int32(message.request_max_percentage);
|
|
113
|
+
}
|
|
114
|
+
if (message.loc_disable !== false) {
|
|
115
|
+
writer.uint32(112).bool(message.loc_disable);
|
|
116
|
+
}
|
|
117
|
+
if (message.exposure_limit !== 0) {
|
|
118
|
+
writer.uint32(120).int32(message.exposure_limit);
|
|
119
|
+
}
|
|
120
|
+
if (message.sanctioned_limit !== 0) {
|
|
121
|
+
writer.uint32(128).int32(message.sanctioned_limit);
|
|
122
|
+
}
|
|
123
|
+
if (message.remaining_senctioned_limit !== 0) {
|
|
124
|
+
writer.uint32(136).int32(message.remaining_senctioned_limit);
|
|
125
|
+
}
|
|
126
|
+
return writer;
|
|
127
|
+
},
|
|
128
|
+
decode(input, length) {
|
|
129
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
130
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
131
|
+
const message = createBaseloanSummaryResponse();
|
|
132
|
+
while (reader.pos < end) {
|
|
133
|
+
const tag = reader.uint32();
|
|
134
|
+
switch (tag >>> 3) {
|
|
135
|
+
case 1:
|
|
136
|
+
if (tag !== 8) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.loc_limit = reader.int32();
|
|
140
|
+
continue;
|
|
141
|
+
case 2:
|
|
142
|
+
if (tag !== 18) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.bill_date = reader.string();
|
|
146
|
+
continue;
|
|
147
|
+
case 3:
|
|
148
|
+
if (tag !== 24) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
message.minimum_request_amount = reader.int32();
|
|
152
|
+
continue;
|
|
153
|
+
case 4:
|
|
154
|
+
if (tag !== 32) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.request_amount_increment_step = reader.int32();
|
|
158
|
+
continue;
|
|
159
|
+
case 5:
|
|
160
|
+
if (tag !== 40) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.used_loc = reader.int32();
|
|
164
|
+
continue;
|
|
165
|
+
case 6:
|
|
166
|
+
if (tag !== 48) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
message.max_tenure = reader.int32();
|
|
170
|
+
continue;
|
|
171
|
+
case 7:
|
|
172
|
+
if (tag !== 56) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
message.min_tenure = reader.int32();
|
|
176
|
+
continue;
|
|
177
|
+
case 8:
|
|
178
|
+
if (tag !== 64) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
message.rate_of_interest = reader.int32();
|
|
182
|
+
continue;
|
|
183
|
+
case 9:
|
|
184
|
+
if (tag !== 74) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
message.info_popup_heading = reader.string();
|
|
188
|
+
continue;
|
|
189
|
+
case 10:
|
|
190
|
+
if (tag !== 82) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
message.info_popup_body = reader.string();
|
|
194
|
+
continue;
|
|
195
|
+
case 11:
|
|
196
|
+
if (tag !== 90) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
message.sanctioned_limit_heading = reader.string();
|
|
200
|
+
continue;
|
|
201
|
+
case 12:
|
|
202
|
+
if (tag !== 98) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.exposure_limit_heading = reader.string();
|
|
206
|
+
continue;
|
|
207
|
+
case 13:
|
|
208
|
+
if (tag !== 104) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
message.request_max_percentage = reader.int32();
|
|
212
|
+
continue;
|
|
213
|
+
case 14:
|
|
214
|
+
if (tag !== 112) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.loc_disable = reader.bool();
|
|
218
|
+
continue;
|
|
219
|
+
case 15:
|
|
220
|
+
if (tag !== 120) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.exposure_limit = reader.int32();
|
|
224
|
+
continue;
|
|
225
|
+
case 16:
|
|
226
|
+
if (tag !== 128) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.sanctioned_limit = reader.int32();
|
|
230
|
+
continue;
|
|
231
|
+
case 17:
|
|
232
|
+
if (tag !== 136) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
message.remaining_senctioned_limit = reader.int32();
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
reader.skipType(tag & 7);
|
|
242
|
+
}
|
|
243
|
+
return message;
|
|
244
|
+
},
|
|
245
|
+
fromJSON(object) {
|
|
246
|
+
return {
|
|
247
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
248
|
+
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
249
|
+
minimum_request_amount: isSet(object.minimum_request_amount)
|
|
250
|
+
? globalThis.Number(object.minimum_request_amount)
|
|
251
|
+
: 0,
|
|
252
|
+
request_amount_increment_step: isSet(object.request_amount_increment_step)
|
|
253
|
+
? globalThis.Number(object.request_amount_increment_step)
|
|
254
|
+
: 0,
|
|
255
|
+
used_loc: isSet(object.used_loc) ? globalThis.Number(object.used_loc) : 0,
|
|
256
|
+
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
257
|
+
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
258
|
+
rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
|
|
259
|
+
info_popup_heading: isSet(object.info_popup_heading) ? globalThis.String(object.info_popup_heading) : "",
|
|
260
|
+
info_popup_body: isSet(object.info_popup_body) ? globalThis.String(object.info_popup_body) : "",
|
|
261
|
+
sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
|
|
262
|
+
? globalThis.String(object.sanctioned_limit_heading)
|
|
263
|
+
: "",
|
|
264
|
+
exposure_limit_heading: isSet(object.exposure_limit_heading)
|
|
265
|
+
? globalThis.String(object.exposure_limit_heading)
|
|
266
|
+
: "",
|
|
267
|
+
request_max_percentage: isSet(object.request_max_percentage)
|
|
268
|
+
? globalThis.Number(object.request_max_percentage)
|
|
269
|
+
: 0,
|
|
270
|
+
loc_disable: isSet(object.loc_disable) ? globalThis.Boolean(object.loc_disable) : false,
|
|
271
|
+
exposure_limit: isSet(object.exposure_limit) ? globalThis.Number(object.exposure_limit) : 0,
|
|
272
|
+
sanctioned_limit: isSet(object.sanctioned_limit) ? globalThis.Number(object.sanctioned_limit) : 0,
|
|
273
|
+
remaining_senctioned_limit: isSet(object.remaining_senctioned_limit)
|
|
274
|
+
? globalThis.Number(object.remaining_senctioned_limit)
|
|
275
|
+
: 0,
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
toJSON(message) {
|
|
279
|
+
const obj = {};
|
|
280
|
+
if (message.loc_limit !== 0) {
|
|
281
|
+
obj.loc_limit = Math.round(message.loc_limit);
|
|
282
|
+
}
|
|
283
|
+
if (message.bill_date !== "") {
|
|
284
|
+
obj.bill_date = message.bill_date;
|
|
285
|
+
}
|
|
286
|
+
if (message.minimum_request_amount !== 0) {
|
|
287
|
+
obj.minimum_request_amount = Math.round(message.minimum_request_amount);
|
|
288
|
+
}
|
|
289
|
+
if (message.request_amount_increment_step !== 0) {
|
|
290
|
+
obj.request_amount_increment_step = Math.round(message.request_amount_increment_step);
|
|
291
|
+
}
|
|
292
|
+
if (message.used_loc !== 0) {
|
|
293
|
+
obj.used_loc = Math.round(message.used_loc);
|
|
294
|
+
}
|
|
295
|
+
if (message.max_tenure !== 0) {
|
|
296
|
+
obj.max_tenure = Math.round(message.max_tenure);
|
|
297
|
+
}
|
|
298
|
+
if (message.min_tenure !== 0) {
|
|
299
|
+
obj.min_tenure = Math.round(message.min_tenure);
|
|
300
|
+
}
|
|
301
|
+
if (message.rate_of_interest !== 0) {
|
|
302
|
+
obj.rate_of_interest = Math.round(message.rate_of_interest);
|
|
303
|
+
}
|
|
304
|
+
if (message.info_popup_heading !== "") {
|
|
305
|
+
obj.info_popup_heading = message.info_popup_heading;
|
|
306
|
+
}
|
|
307
|
+
if (message.info_popup_body !== "") {
|
|
308
|
+
obj.info_popup_body = message.info_popup_body;
|
|
309
|
+
}
|
|
310
|
+
if (message.sanctioned_limit_heading !== "") {
|
|
311
|
+
obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
|
|
312
|
+
}
|
|
313
|
+
if (message.exposure_limit_heading !== "") {
|
|
314
|
+
obj.exposure_limit_heading = message.exposure_limit_heading;
|
|
315
|
+
}
|
|
316
|
+
if (message.request_max_percentage !== 0) {
|
|
317
|
+
obj.request_max_percentage = Math.round(message.request_max_percentage);
|
|
318
|
+
}
|
|
319
|
+
if (message.loc_disable !== false) {
|
|
320
|
+
obj.loc_disable = message.loc_disable;
|
|
321
|
+
}
|
|
322
|
+
if (message.exposure_limit !== 0) {
|
|
323
|
+
obj.exposure_limit = Math.round(message.exposure_limit);
|
|
324
|
+
}
|
|
325
|
+
if (message.sanctioned_limit !== 0) {
|
|
326
|
+
obj.sanctioned_limit = Math.round(message.sanctioned_limit);
|
|
327
|
+
}
|
|
328
|
+
if (message.remaining_senctioned_limit !== 0) {
|
|
329
|
+
obj.remaining_senctioned_limit = Math.round(message.remaining_senctioned_limit);
|
|
330
|
+
}
|
|
331
|
+
return obj;
|
|
332
|
+
},
|
|
333
|
+
create(base) {
|
|
334
|
+
return exports.loanSummaryResponse.fromPartial(base ?? {});
|
|
335
|
+
},
|
|
336
|
+
fromPartial(object) {
|
|
337
|
+
const message = createBaseloanSummaryResponse();
|
|
338
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
339
|
+
message.bill_date = object.bill_date ?? "";
|
|
340
|
+
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
341
|
+
message.request_amount_increment_step = object.request_amount_increment_step ?? 0;
|
|
342
|
+
message.used_loc = object.used_loc ?? 0;
|
|
343
|
+
message.max_tenure = object.max_tenure ?? 0;
|
|
344
|
+
message.min_tenure = object.min_tenure ?? 0;
|
|
345
|
+
message.rate_of_interest = object.rate_of_interest ?? 0;
|
|
346
|
+
message.info_popup_heading = object.info_popup_heading ?? "";
|
|
347
|
+
message.info_popup_body = object.info_popup_body ?? "";
|
|
348
|
+
message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
|
|
349
|
+
message.exposure_limit_heading = object.exposure_limit_heading ?? "";
|
|
350
|
+
message.request_max_percentage = object.request_max_percentage ?? 0;
|
|
351
|
+
message.loc_disable = object.loc_disable ?? false;
|
|
352
|
+
message.exposure_limit = object.exposure_limit ?? 0;
|
|
353
|
+
message.sanctioned_limit = object.sanctioned_limit ?? 0;
|
|
354
|
+
message.remaining_senctioned_limit = object.remaining_senctioned_limit ?? 0;
|
|
355
|
+
return message;
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
function isSet(value) {
|
|
359
|
+
return value !== null && value !== undefined;
|
|
360
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.paymentallocation";
|
|
3
|
+
export interface paymentAllocationRequest {
|
|
4
|
+
payment_id: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
}
|
|
7
|
+
export interface paymentAllocationResponse {
|
|
8
|
+
id: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const paymentAllocationRequest: {
|
|
11
|
+
encode(message: paymentAllocationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): paymentAllocationRequest;
|
|
13
|
+
fromJSON(object: any): paymentAllocationRequest;
|
|
14
|
+
toJSON(message: paymentAllocationRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<paymentAllocationRequest>, I>>(base?: I): paymentAllocationRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<paymentAllocationRequest>, I>>(object: I): paymentAllocationRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const paymentAllocationResponse: {
|
|
19
|
+
encode(message: paymentAllocationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): paymentAllocationResponse;
|
|
21
|
+
fromJSON(object: any): paymentAllocationResponse;
|
|
22
|
+
toJSON(message: paymentAllocationResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<paymentAllocationResponse>, I>>(base?: I): paymentAllocationResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<paymentAllocationResponse>, I>>(object: I): paymentAllocationResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: loans/paymentallocation.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.paymentAllocationResponse = exports.paymentAllocationRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.paymentallocation";
|
|
15
|
+
function createBasepaymentAllocationRequest() {
|
|
16
|
+
return { payment_id: 0, amount: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.paymentAllocationRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.payment_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.payment_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.amount !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.amount);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBasepaymentAllocationRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.payment_id = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 16) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.amount = reader.int32();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
58
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.payment_id !== 0) {
|
|
64
|
+
obj.payment_id = Math.round(message.payment_id);
|
|
65
|
+
}
|
|
66
|
+
if (message.amount !== 0) {
|
|
67
|
+
obj.amount = Math.round(message.amount);
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.paymentAllocationRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBasepaymentAllocationRequest();
|
|
76
|
+
message.payment_id = object.payment_id ?? 0;
|
|
77
|
+
message.amount = object.amount ?? 0;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBasepaymentAllocationResponse() {
|
|
82
|
+
return { id: 0 };
|
|
83
|
+
}
|
|
84
|
+
exports.paymentAllocationResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.id !== 0) {
|
|
87
|
+
writer.uint32(8).int32(message.id);
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBasepaymentAllocationResponse();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 8) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.id = reader.int32();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.id !== 0) {
|
|
118
|
+
obj.id = Math.round(message.id);
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.paymentAllocationResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBasepaymentAllocationResponse();
|
|
127
|
+
message.id = object.id ?? 0;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
|
3
3
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
4
4
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
5
5
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
|
+
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
7
|
+
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
6
8
|
import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
|
|
7
9
|
import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
|
|
8
10
|
import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
|
|
@@ -82,6 +84,24 @@ export declare const loansService: {
|
|
|
82
84
|
readonly responseSerialize: (value: transactionListResponse) => Buffer;
|
|
83
85
|
readonly responseDeserialize: (value: Buffer) => transactionListResponse;
|
|
84
86
|
};
|
|
87
|
+
readonly paymentAllocation: {
|
|
88
|
+
readonly path: "/service.loans/paymentAllocation";
|
|
89
|
+
readonly requestStream: false;
|
|
90
|
+
readonly responseStream: false;
|
|
91
|
+
readonly requestSerialize: (value: paymentAllocationRequest) => Buffer;
|
|
92
|
+
readonly requestDeserialize: (value: Buffer) => paymentAllocationRequest;
|
|
93
|
+
readonly responseSerialize: (value: paymentAllocationResponse) => Buffer;
|
|
94
|
+
readonly responseDeserialize: (value: Buffer) => paymentAllocationResponse;
|
|
95
|
+
};
|
|
96
|
+
readonly loanSummary: {
|
|
97
|
+
readonly path: "/service.loans/loanSummary";
|
|
98
|
+
readonly requestStream: false;
|
|
99
|
+
readonly responseStream: false;
|
|
100
|
+
readonly requestSerialize: (value: loanSummaryRequest) => Buffer;
|
|
101
|
+
readonly requestDeserialize: (value: Buffer) => loanSummaryRequest;
|
|
102
|
+
readonly responseSerialize: (value: loanSummaryResponse) => Buffer;
|
|
103
|
+
readonly responseDeserialize: (value: Buffer) => loanSummaryResponse;
|
|
104
|
+
};
|
|
85
105
|
};
|
|
86
106
|
export interface loansServer extends UntypedServiceImplementation {
|
|
87
107
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -92,6 +112,8 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
92
112
|
updateInstallments: handleUnaryCall<updateInstallmentsRequest, updateInstallmentsResponse>;
|
|
93
113
|
restructureLoan: handleUnaryCall<restructureLoanRequest, restructureLoanResponse>;
|
|
94
114
|
transactionList: handleUnaryCall<transactionListRequest, transactionListResponse>;
|
|
115
|
+
paymentAllocation: handleUnaryCall<paymentAllocationRequest, paymentAllocationResponse>;
|
|
116
|
+
loanSummary: handleUnaryCall<loanSummaryRequest, loanSummaryResponse>;
|
|
95
117
|
}
|
|
96
118
|
export interface loansClient extends Client {
|
|
97
119
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -118,6 +140,12 @@ export interface loansClient extends Client {
|
|
|
118
140
|
transactionList(request: transactionListRequest, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
119
141
|
transactionList(request: transactionListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
120
142
|
transactionList(request: transactionListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
143
|
+
paymentAllocation(request: paymentAllocationRequest, callback: (error: ServiceError | null, response: paymentAllocationResponse) => void): ClientUnaryCall;
|
|
144
|
+
paymentAllocation(request: paymentAllocationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: paymentAllocationResponse) => void): ClientUnaryCall;
|
|
145
|
+
paymentAllocation(request: paymentAllocationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: paymentAllocationResponse) => void): ClientUnaryCall;
|
|
146
|
+
loanSummary(request: loanSummaryRequest, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
147
|
+
loanSummary(request: loanSummaryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
148
|
+
loanSummary(request: loanSummaryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
121
149
|
}
|
|
122
150
|
export declare const loansClient: {
|
|
123
151
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -12,6 +12,8 @@ const approveloan_1 = require("./loans/approveloan");
|
|
|
12
12
|
const banklist_1 = require("./loans/banklist");
|
|
13
13
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
14
14
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
|
+
const loansummary_1 = require("./loans/loansummary");
|
|
16
|
+
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
15
17
|
const restructureloan_1 = require("./loans/restructureloan");
|
|
16
18
|
const transactionlist_1 = require("./loans/transactionlist");
|
|
17
19
|
const updateinstallments_1 = require("./loans/updateinstallments");
|
|
@@ -90,5 +92,23 @@ exports.loansService = {
|
|
|
90
92
|
responseSerialize: (value) => Buffer.from(transactionlist_1.transactionListResponse.encode(value).finish()),
|
|
91
93
|
responseDeserialize: (value) => transactionlist_1.transactionListResponse.decode(value),
|
|
92
94
|
},
|
|
95
|
+
paymentAllocation: {
|
|
96
|
+
path: "/service.loans/paymentAllocation",
|
|
97
|
+
requestStream: false,
|
|
98
|
+
responseStream: false,
|
|
99
|
+
requestSerialize: (value) => Buffer.from(paymentallocation_1.paymentAllocationRequest.encode(value).finish()),
|
|
100
|
+
requestDeserialize: (value) => paymentallocation_1.paymentAllocationRequest.decode(value),
|
|
101
|
+
responseSerialize: (value) => Buffer.from(paymentallocation_1.paymentAllocationResponse.encode(value).finish()),
|
|
102
|
+
responseDeserialize: (value) => paymentallocation_1.paymentAllocationResponse.decode(value),
|
|
103
|
+
},
|
|
104
|
+
loanSummary: {
|
|
105
|
+
path: "/service.loans/loanSummary",
|
|
106
|
+
requestStream: false,
|
|
107
|
+
responseStream: false,
|
|
108
|
+
requestSerialize: (value) => Buffer.from(loansummary_1.loanSummaryRequest.encode(value).finish()),
|
|
109
|
+
requestDeserialize: (value) => loansummary_1.loanSummaryRequest.decode(value),
|
|
110
|
+
responseSerialize: (value) => Buffer.from(loansummary_1.loanSummaryResponse.encode(value).finish()),
|
|
111
|
+
responseDeserialize: (value) => loansummary_1.loanSummaryResponse.decode(value),
|
|
112
|
+
},
|
|
93
113
|
};
|
|
94
114
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|