@stashfin/grpc 1.2.86 → 1.2.88
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/bureau/getbureau.d.ts +9 -9
- package/ts/bureau/getbureau.js +64 -74
- package/ts/customers/deleteprofile.d.ts +1 -1
- package/ts/customers/deleteprofile.js +8 -8
- package/ts/customers/updatelocstatus.d.ts +1 -1
- package/ts/customers/updatelocstatus.js +8 -8
- package/ts/loans/getpendingemiamount.d.ts +34 -0
- package/ts/loans/getpendingemiamount.js +104 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
package/ts/bureau/getbureau.d.ts
CHANGED
|
@@ -78,15 +78,15 @@ export interface Enquiries {
|
|
|
78
78
|
month24: number;
|
|
79
79
|
}
|
|
80
80
|
export interface dpdChar {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
month1: number;
|
|
82
|
+
month3: number;
|
|
83
|
+
month6: number;
|
|
84
|
+
month9: number;
|
|
85
|
+
month12: number;
|
|
86
|
+
month15: number;
|
|
87
|
+
month18: number;
|
|
88
|
+
month21: number;
|
|
89
|
+
month24: number;
|
|
90
90
|
}
|
|
91
91
|
export declare const bureauRequest: {
|
|
92
92
|
encode(message: bureauRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/bureau/getbureau.js
CHANGED
|
@@ -1195,46 +1195,36 @@ exports.Enquiries = {
|
|
|
1195
1195
|
},
|
|
1196
1196
|
};
|
|
1197
1197
|
function createBasedpdChar() {
|
|
1198
|
-
return {
|
|
1199
|
-
onemonth: 0,
|
|
1200
|
-
threemonth: 0,
|
|
1201
|
-
sixmonth: 0,
|
|
1202
|
-
ninemonth: 0,
|
|
1203
|
-
twelvemonth: 0,
|
|
1204
|
-
fifteenmonth: 0,
|
|
1205
|
-
eighteenmonth: 0,
|
|
1206
|
-
twentyOnemonth: 0,
|
|
1207
|
-
twentyFourmonth: 0,
|
|
1208
|
-
};
|
|
1198
|
+
return { month1: 0, month3: 0, month6: 0, month9: 0, month12: 0, month15: 0, month18: 0, month21: 0, month24: 0 };
|
|
1209
1199
|
}
|
|
1210
1200
|
exports.dpdChar = {
|
|
1211
1201
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1212
|
-
if (message.
|
|
1213
|
-
writer.uint32(8).int32(message.
|
|
1202
|
+
if (message.month1 !== 0) {
|
|
1203
|
+
writer.uint32(8).int32(message.month1);
|
|
1214
1204
|
}
|
|
1215
|
-
if (message.
|
|
1216
|
-
writer.uint32(16).int32(message.
|
|
1205
|
+
if (message.month3 !== 0) {
|
|
1206
|
+
writer.uint32(16).int32(message.month3);
|
|
1217
1207
|
}
|
|
1218
|
-
if (message.
|
|
1219
|
-
writer.uint32(24).int32(message.
|
|
1208
|
+
if (message.month6 !== 0) {
|
|
1209
|
+
writer.uint32(24).int32(message.month6);
|
|
1220
1210
|
}
|
|
1221
|
-
if (message.
|
|
1222
|
-
writer.uint32(32).int32(message.
|
|
1211
|
+
if (message.month9 !== 0) {
|
|
1212
|
+
writer.uint32(32).int32(message.month9);
|
|
1223
1213
|
}
|
|
1224
|
-
if (message.
|
|
1225
|
-
writer.uint32(40).int32(message.
|
|
1214
|
+
if (message.month12 !== 0) {
|
|
1215
|
+
writer.uint32(40).int32(message.month12);
|
|
1226
1216
|
}
|
|
1227
|
-
if (message.
|
|
1228
|
-
writer.uint32(48).int32(message.
|
|
1217
|
+
if (message.month15 !== 0) {
|
|
1218
|
+
writer.uint32(48).int32(message.month15);
|
|
1229
1219
|
}
|
|
1230
|
-
if (message.
|
|
1231
|
-
writer.uint32(56).int32(message.
|
|
1220
|
+
if (message.month18 !== 0) {
|
|
1221
|
+
writer.uint32(56).int32(message.month18);
|
|
1232
1222
|
}
|
|
1233
|
-
if (message.
|
|
1234
|
-
writer.uint32(64).int32(message.
|
|
1223
|
+
if (message.month21 !== 0) {
|
|
1224
|
+
writer.uint32(64).int32(message.month21);
|
|
1235
1225
|
}
|
|
1236
|
-
if (message.
|
|
1237
|
-
writer.uint32(72).int32(message.
|
|
1226
|
+
if (message.month24 !== 0) {
|
|
1227
|
+
writer.uint32(72).int32(message.month24);
|
|
1238
1228
|
}
|
|
1239
1229
|
return writer;
|
|
1240
1230
|
},
|
|
@@ -1249,55 +1239,55 @@ exports.dpdChar = {
|
|
|
1249
1239
|
if (tag !== 8) {
|
|
1250
1240
|
break;
|
|
1251
1241
|
}
|
|
1252
|
-
message.
|
|
1242
|
+
message.month1 = reader.int32();
|
|
1253
1243
|
continue;
|
|
1254
1244
|
case 2:
|
|
1255
1245
|
if (tag !== 16) {
|
|
1256
1246
|
break;
|
|
1257
1247
|
}
|
|
1258
|
-
message.
|
|
1248
|
+
message.month3 = reader.int32();
|
|
1259
1249
|
continue;
|
|
1260
1250
|
case 3:
|
|
1261
1251
|
if (tag !== 24) {
|
|
1262
1252
|
break;
|
|
1263
1253
|
}
|
|
1264
|
-
message.
|
|
1254
|
+
message.month6 = reader.int32();
|
|
1265
1255
|
continue;
|
|
1266
1256
|
case 4:
|
|
1267
1257
|
if (tag !== 32) {
|
|
1268
1258
|
break;
|
|
1269
1259
|
}
|
|
1270
|
-
message.
|
|
1260
|
+
message.month9 = reader.int32();
|
|
1271
1261
|
continue;
|
|
1272
1262
|
case 5:
|
|
1273
1263
|
if (tag !== 40) {
|
|
1274
1264
|
break;
|
|
1275
1265
|
}
|
|
1276
|
-
message.
|
|
1266
|
+
message.month12 = reader.int32();
|
|
1277
1267
|
continue;
|
|
1278
1268
|
case 6:
|
|
1279
1269
|
if (tag !== 48) {
|
|
1280
1270
|
break;
|
|
1281
1271
|
}
|
|
1282
|
-
message.
|
|
1272
|
+
message.month15 = reader.int32();
|
|
1283
1273
|
continue;
|
|
1284
1274
|
case 7:
|
|
1285
1275
|
if (tag !== 56) {
|
|
1286
1276
|
break;
|
|
1287
1277
|
}
|
|
1288
|
-
message.
|
|
1278
|
+
message.month18 = reader.int32();
|
|
1289
1279
|
continue;
|
|
1290
1280
|
case 8:
|
|
1291
1281
|
if (tag !== 64) {
|
|
1292
1282
|
break;
|
|
1293
1283
|
}
|
|
1294
|
-
message.
|
|
1284
|
+
message.month21 = reader.int32();
|
|
1295
1285
|
continue;
|
|
1296
1286
|
case 9:
|
|
1297
1287
|
if (tag !== 72) {
|
|
1298
1288
|
break;
|
|
1299
1289
|
}
|
|
1300
|
-
message.
|
|
1290
|
+
message.month24 = reader.int32();
|
|
1301
1291
|
continue;
|
|
1302
1292
|
}
|
|
1303
1293
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1309,45 +1299,45 @@ exports.dpdChar = {
|
|
|
1309
1299
|
},
|
|
1310
1300
|
fromJSON(object) {
|
|
1311
1301
|
return {
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1302
|
+
month1: isSet(object.month1) ? globalThis.Number(object.month1) : 0,
|
|
1303
|
+
month3: isSet(object.month3) ? globalThis.Number(object.month3) : 0,
|
|
1304
|
+
month6: isSet(object.month6) ? globalThis.Number(object.month6) : 0,
|
|
1305
|
+
month9: isSet(object.month9) ? globalThis.Number(object.month9) : 0,
|
|
1306
|
+
month12: isSet(object.month12) ? globalThis.Number(object.month12) : 0,
|
|
1307
|
+
month15: isSet(object.month15) ? globalThis.Number(object.month15) : 0,
|
|
1308
|
+
month18: isSet(object.month18) ? globalThis.Number(object.month18) : 0,
|
|
1309
|
+
month21: isSet(object.month21) ? globalThis.Number(object.month21) : 0,
|
|
1310
|
+
month24: isSet(object.month24) ? globalThis.Number(object.month24) : 0,
|
|
1321
1311
|
};
|
|
1322
1312
|
},
|
|
1323
1313
|
toJSON(message) {
|
|
1324
1314
|
const obj = {};
|
|
1325
|
-
if (message.
|
|
1326
|
-
obj.
|
|
1315
|
+
if (message.month1 !== 0) {
|
|
1316
|
+
obj.month1 = Math.round(message.month1);
|
|
1327
1317
|
}
|
|
1328
|
-
if (message.
|
|
1329
|
-
obj.
|
|
1318
|
+
if (message.month3 !== 0) {
|
|
1319
|
+
obj.month3 = Math.round(message.month3);
|
|
1330
1320
|
}
|
|
1331
|
-
if (message.
|
|
1332
|
-
obj.
|
|
1321
|
+
if (message.month6 !== 0) {
|
|
1322
|
+
obj.month6 = Math.round(message.month6);
|
|
1333
1323
|
}
|
|
1334
|
-
if (message.
|
|
1335
|
-
obj.
|
|
1324
|
+
if (message.month9 !== 0) {
|
|
1325
|
+
obj.month9 = Math.round(message.month9);
|
|
1336
1326
|
}
|
|
1337
|
-
if (message.
|
|
1338
|
-
obj.
|
|
1327
|
+
if (message.month12 !== 0) {
|
|
1328
|
+
obj.month12 = Math.round(message.month12);
|
|
1339
1329
|
}
|
|
1340
|
-
if (message.
|
|
1341
|
-
obj.
|
|
1330
|
+
if (message.month15 !== 0) {
|
|
1331
|
+
obj.month15 = Math.round(message.month15);
|
|
1342
1332
|
}
|
|
1343
|
-
if (message.
|
|
1344
|
-
obj.
|
|
1333
|
+
if (message.month18 !== 0) {
|
|
1334
|
+
obj.month18 = Math.round(message.month18);
|
|
1345
1335
|
}
|
|
1346
|
-
if (message.
|
|
1347
|
-
obj.
|
|
1336
|
+
if (message.month21 !== 0) {
|
|
1337
|
+
obj.month21 = Math.round(message.month21);
|
|
1348
1338
|
}
|
|
1349
|
-
if (message.
|
|
1350
|
-
obj.
|
|
1339
|
+
if (message.month24 !== 0) {
|
|
1340
|
+
obj.month24 = Math.round(message.month24);
|
|
1351
1341
|
}
|
|
1352
1342
|
return obj;
|
|
1353
1343
|
},
|
|
@@ -1356,15 +1346,15 @@ exports.dpdChar = {
|
|
|
1356
1346
|
},
|
|
1357
1347
|
fromPartial(object) {
|
|
1358
1348
|
const message = createBasedpdChar();
|
|
1359
|
-
message.
|
|
1360
|
-
message.
|
|
1361
|
-
message.
|
|
1362
|
-
message.
|
|
1363
|
-
message.
|
|
1364
|
-
message.
|
|
1365
|
-
message.
|
|
1366
|
-
message.
|
|
1367
|
-
message.
|
|
1349
|
+
message.month1 = object.month1 ?? 0;
|
|
1350
|
+
message.month3 = object.month3 ?? 0;
|
|
1351
|
+
message.month6 = object.month6 ?? 0;
|
|
1352
|
+
message.month9 = object.month9 ?? 0;
|
|
1353
|
+
message.month12 = object.month12 ?? 0;
|
|
1354
|
+
message.month15 = object.month15 ?? 0;
|
|
1355
|
+
message.month18 = object.month18 ?? 0;
|
|
1356
|
+
message.month21 = object.month21 ?? 0;
|
|
1357
|
+
message.month24 = object.month24 ?? 0;
|
|
1368
1358
|
return message;
|
|
1369
1359
|
},
|
|
1370
1360
|
};
|
|
@@ -3,7 +3,7 @@ export declare const protobufPackage = "customers.deleteprofile";
|
|
|
3
3
|
export interface deleteProfileRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface deleteProfileResponse {
|
|
6
|
-
status:
|
|
6
|
+
status: string;
|
|
7
7
|
pending_loan_amount: number;
|
|
8
8
|
}
|
|
9
9
|
export declare const deleteProfileRequest: {
|
|
@@ -50,12 +50,12 @@ exports.deleteProfileRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasedeleteProfileResponse() {
|
|
53
|
-
return { status:
|
|
53
|
+
return { status: "", pending_loan_amount: 0 };
|
|
54
54
|
}
|
|
55
55
|
exports.deleteProfileResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.status !==
|
|
58
|
-
writer.uint32(
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
59
59
|
}
|
|
60
60
|
if (message.pending_loan_amount !== 0) {
|
|
61
61
|
writer.uint32(21).float(message.pending_loan_amount);
|
|
@@ -70,10 +70,10 @@ exports.deleteProfileResponse = {
|
|
|
70
70
|
const tag = reader.uint32();
|
|
71
71
|
switch (tag >>> 3) {
|
|
72
72
|
case 1:
|
|
73
|
-
if (tag !==
|
|
73
|
+
if (tag !== 10) {
|
|
74
74
|
break;
|
|
75
75
|
}
|
|
76
|
-
message.status = reader.
|
|
76
|
+
message.status = reader.string();
|
|
77
77
|
continue;
|
|
78
78
|
case 2:
|
|
79
79
|
if (tag !== 21) {
|
|
@@ -91,13 +91,13 @@ exports.deleteProfileResponse = {
|
|
|
91
91
|
},
|
|
92
92
|
fromJSON(object) {
|
|
93
93
|
return {
|
|
94
|
-
status: isSet(object.status) ? globalThis.
|
|
94
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
95
95
|
pending_loan_amount: isSet(object.pending_loan_amount) ? globalThis.Number(object.pending_loan_amount) : 0,
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
98
|
toJSON(message) {
|
|
99
99
|
const obj = {};
|
|
100
|
-
if (message.status !==
|
|
100
|
+
if (message.status !== "") {
|
|
101
101
|
obj.status = message.status;
|
|
102
102
|
}
|
|
103
103
|
if (message.pending_loan_amount !== 0) {
|
|
@@ -110,7 +110,7 @@ exports.deleteProfileResponse = {
|
|
|
110
110
|
},
|
|
111
111
|
fromPartial(object) {
|
|
112
112
|
const message = createBasedeleteProfileResponse();
|
|
113
|
-
message.status = object.status ??
|
|
113
|
+
message.status = object.status ?? "";
|
|
114
114
|
message.pending_loan_amount = object.pending_loan_amount ?? 0;
|
|
115
115
|
return message;
|
|
116
116
|
},
|
|
@@ -63,12 +63,12 @@ exports.locStatusRequest = {
|
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
function createBaselocStatusResponse() {
|
|
66
|
-
return { status:
|
|
66
|
+
return { status: "", pending_loan_amount: 0 };
|
|
67
67
|
}
|
|
68
68
|
exports.locStatusResponse = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.status !==
|
|
71
|
-
writer.uint32(
|
|
70
|
+
if (message.status !== "") {
|
|
71
|
+
writer.uint32(10).string(message.status);
|
|
72
72
|
}
|
|
73
73
|
if (message.pending_loan_amount !== 0) {
|
|
74
74
|
writer.uint32(21).float(message.pending_loan_amount);
|
|
@@ -83,10 +83,10 @@ exports.locStatusResponse = {
|
|
|
83
83
|
const tag = reader.uint32();
|
|
84
84
|
switch (tag >>> 3) {
|
|
85
85
|
case 1:
|
|
86
|
-
if (tag !==
|
|
86
|
+
if (tag !== 10) {
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
|
-
message.status = reader.
|
|
89
|
+
message.status = reader.string();
|
|
90
90
|
continue;
|
|
91
91
|
case 2:
|
|
92
92
|
if (tag !== 21) {
|
|
@@ -104,13 +104,13 @@ exports.locStatusResponse = {
|
|
|
104
104
|
},
|
|
105
105
|
fromJSON(object) {
|
|
106
106
|
return {
|
|
107
|
-
status: isSet(object.status) ? globalThis.
|
|
107
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
108
108
|
pending_loan_amount: isSet(object.pending_loan_amount) ? globalThis.Number(object.pending_loan_amount) : 0,
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
toJSON(message) {
|
|
112
112
|
const obj = {};
|
|
113
|
-
if (message.status !==
|
|
113
|
+
if (message.status !== "") {
|
|
114
114
|
obj.status = message.status;
|
|
115
115
|
}
|
|
116
116
|
if (message.pending_loan_amount !== 0) {
|
|
@@ -123,7 +123,7 @@ exports.locStatusResponse = {
|
|
|
123
123
|
},
|
|
124
124
|
fromPartial(object) {
|
|
125
125
|
const message = createBaselocStatusResponse();
|
|
126
|
-
message.status = object.status ??
|
|
126
|
+
message.status = object.status ?? "";
|
|
127
127
|
message.pending_loan_amount = object.pending_loan_amount ?? 0;
|
|
128
128
|
return message;
|
|
129
129
|
},
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getpendingemiamount";
|
|
3
|
+
export interface getPendingEmiAmountRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getPendingEmiAmountResponse {
|
|
6
|
+
pending_amount: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const getPendingEmiAmountRequest: {
|
|
9
|
+
encode(_: getPendingEmiAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPendingEmiAmountRequest;
|
|
11
|
+
fromJSON(_: any): getPendingEmiAmountRequest;
|
|
12
|
+
toJSON(_: getPendingEmiAmountRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<getPendingEmiAmountRequest>, I>>(base?: I): getPendingEmiAmountRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<getPendingEmiAmountRequest>, I>>(_: I): getPendingEmiAmountRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const getPendingEmiAmountResponse: {
|
|
17
|
+
encode(message: getPendingEmiAmountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPendingEmiAmountResponse;
|
|
19
|
+
fromJSON(object: any): getPendingEmiAmountResponse;
|
|
20
|
+
toJSON(message: getPendingEmiAmountResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getPendingEmiAmountResponse>, I>>(base?: I): getPendingEmiAmountResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getPendingEmiAmountResponse>, I>>(object: I): getPendingEmiAmountResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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/getpendingemiamount.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.getPendingEmiAmountResponse = exports.getPendingEmiAmountRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getpendingemiamount";
|
|
15
|
+
function createBasegetPendingEmiAmountRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getPendingEmiAmountRequest = {
|
|
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 = createBasegetPendingEmiAmountRequest();
|
|
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.getPendingEmiAmountRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetPendingEmiAmountRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetPendingEmiAmountResponse() {
|
|
53
|
+
return { pending_amount: 0 };
|
|
54
|
+
}
|
|
55
|
+
exports.getPendingEmiAmountResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.pending_amount !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.pending_amount);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBasegetPendingEmiAmountResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 8) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.pending_amount = reader.int32();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { pending_amount: isSet(object.pending_amount) ? globalThis.Number(object.pending_amount) : 0 };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.pending_amount !== 0) {
|
|
89
|
+
obj.pending_amount = Math.round(message.pending_amount);
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.getPendingEmiAmountResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasegetPendingEmiAmountResponse();
|
|
98
|
+
message.pending_amount = object.pending_amount ?? 0;
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
|
4
4
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
5
5
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
6
|
import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
|
|
7
|
+
import { getPendingEmiAmountRequest, getPendingEmiAmountResponse } from "./loans/getpendingemiamount";
|
|
7
8
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
8
9
|
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
9
10
|
import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
|
|
@@ -132,6 +133,15 @@ export declare const loansService: {
|
|
|
132
133
|
readonly responseSerialize: (value: sendNocEmailResponse) => Buffer;
|
|
133
134
|
readonly responseDeserialize: (value: Buffer) => sendNocEmailResponse;
|
|
134
135
|
};
|
|
136
|
+
readonly getPendingEmiAmount: {
|
|
137
|
+
readonly path: "/service.loans/getPendingEmiAmount";
|
|
138
|
+
readonly requestStream: false;
|
|
139
|
+
readonly responseStream: false;
|
|
140
|
+
readonly requestSerialize: (value: getPendingEmiAmountRequest) => Buffer;
|
|
141
|
+
readonly requestDeserialize: (value: Buffer) => getPendingEmiAmountRequest;
|
|
142
|
+
readonly responseSerialize: (value: getPendingEmiAmountResponse) => Buffer;
|
|
143
|
+
readonly responseDeserialize: (value: Buffer) => getPendingEmiAmountResponse;
|
|
144
|
+
};
|
|
135
145
|
};
|
|
136
146
|
export interface loansServer extends UntypedServiceImplementation {
|
|
137
147
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -147,6 +157,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
147
157
|
getCustomerLoanStatus: handleUnaryCall<getCustomerLoanStatusRequest, getCustomerLoanStatusResponse>;
|
|
148
158
|
sendEmail: handleUnaryCall<sendEmailRequest, sendEmailResponse>;
|
|
149
159
|
sendNocEmail: handleUnaryCall<sendNocEmailRequest, sendNocEmailResponse>;
|
|
160
|
+
getPendingEmiAmount: handleUnaryCall<getPendingEmiAmountRequest, getPendingEmiAmountResponse>;
|
|
150
161
|
}
|
|
151
162
|
export interface loansClient extends Client {
|
|
152
163
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -188,6 +199,9 @@ export interface loansClient extends Client {
|
|
|
188
199
|
sendNocEmail(request: sendNocEmailRequest, callback: (error: ServiceError | null, response: sendNocEmailResponse) => void): ClientUnaryCall;
|
|
189
200
|
sendNocEmail(request: sendNocEmailRequest, metadata: Metadata, callback: (error: ServiceError | null, response: sendNocEmailResponse) => void): ClientUnaryCall;
|
|
190
201
|
sendNocEmail(request: sendNocEmailRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: sendNocEmailResponse) => void): ClientUnaryCall;
|
|
202
|
+
getPendingEmiAmount(request: getPendingEmiAmountRequest, callback: (error: ServiceError | null, response: getPendingEmiAmountResponse) => void): ClientUnaryCall;
|
|
203
|
+
getPendingEmiAmount(request: getPendingEmiAmountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getPendingEmiAmountResponse) => void): ClientUnaryCall;
|
|
204
|
+
getPendingEmiAmount(request: getPendingEmiAmountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getPendingEmiAmountResponse) => void): ClientUnaryCall;
|
|
191
205
|
}
|
|
192
206
|
export declare const loansClient: {
|
|
193
207
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -13,6 +13,7 @@ const banklist_1 = require("./loans/banklist");
|
|
|
13
13
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
14
14
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
15
|
const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
16
|
+
const getpendingemiamount_1 = require("./loans/getpendingemiamount");
|
|
16
17
|
const loansummary_1 = require("./loans/loansummary");
|
|
17
18
|
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
18
19
|
const restructureloan_1 = require("./loans/restructureloan");
|
|
@@ -140,5 +141,14 @@ exports.loansService = {
|
|
|
140
141
|
responseSerialize: (value) => Buffer.from(sendnocemail_1.sendNocEmailResponse.encode(value).finish()),
|
|
141
142
|
responseDeserialize: (value) => sendnocemail_1.sendNocEmailResponse.decode(value),
|
|
142
143
|
},
|
|
144
|
+
getPendingEmiAmount: {
|
|
145
|
+
path: "/service.loans/getPendingEmiAmount",
|
|
146
|
+
requestStream: false,
|
|
147
|
+
responseStream: false,
|
|
148
|
+
requestSerialize: (value) => Buffer.from(getpendingemiamount_1.getPendingEmiAmountRequest.encode(value).finish()),
|
|
149
|
+
requestDeserialize: (value) => getpendingemiamount_1.getPendingEmiAmountRequest.decode(value),
|
|
150
|
+
responseSerialize: (value) => Buffer.from(getpendingemiamount_1.getPendingEmiAmountResponse.encode(value).finish()),
|
|
151
|
+
responseDeserialize: (value) => getpendingemiamount_1.getPendingEmiAmountResponse.decode(value),
|
|
152
|
+
},
|
|
143
153
|
};
|
|
144
154
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|