@stashfin/grpc 1.2.325 → 1.2.327
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/customers/getcustomerbyid.d.ts +1 -0
- package/ts/customers/getcustomerbyid.js +15 -0
- package/ts/customers/updatecategory.d.ts +1 -0
- package/ts/customers/updatecategory.js +15 -1
- package/ts/customers/updatecustomerbyid.d.ts +1 -0
- package/ts/customers/updatecustomerbyid.js +15 -1
- package/ts/loans/creditlimit.d.ts +1 -0
- package/ts/loans/creditlimit.js +15 -0
- package/ts/loans/getnextdueamount.d.ts +3 -1
- package/ts/loans/getnextdueamount.js +38 -8
- package/ts/loans/updateloan.d.ts +1 -0
- package/ts/loans/updateloan.js +15 -1
package/package.json
CHANGED
|
@@ -148,6 +148,7 @@ function createBasegetCustomerByIdResponse() {
|
|
|
148
148
|
journey_status: "",
|
|
149
149
|
journey_sequence: "",
|
|
150
150
|
va_number: "",
|
|
151
|
+
sanctioned_amount: 0,
|
|
151
152
|
};
|
|
152
153
|
}
|
|
153
154
|
exports.getCustomerByIdResponse = {
|
|
@@ -401,6 +402,9 @@ exports.getCustomerByIdResponse = {
|
|
|
401
402
|
if (message.va_number !== "") {
|
|
402
403
|
writer.uint32(674).string(message.va_number);
|
|
403
404
|
}
|
|
405
|
+
if (message.sanctioned_amount !== 0) {
|
|
406
|
+
writer.uint32(685).float(message.sanctioned_amount);
|
|
407
|
+
}
|
|
404
408
|
return writer;
|
|
405
409
|
},
|
|
406
410
|
decode(input, length) {
|
|
@@ -908,6 +912,12 @@ exports.getCustomerByIdResponse = {
|
|
|
908
912
|
}
|
|
909
913
|
message.va_number = reader.string();
|
|
910
914
|
continue;
|
|
915
|
+
case 85:
|
|
916
|
+
if (tag !== 685) {
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
message.sanctioned_amount = reader.float();
|
|
920
|
+
continue;
|
|
911
921
|
}
|
|
912
922
|
if ((tag & 7) === 4 || tag === 0) {
|
|
913
923
|
break;
|
|
@@ -1001,6 +1011,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1001
1011
|
journey_status: isSet(object.journey_status) ? globalThis.String(object.journey_status) : "",
|
|
1002
1012
|
journey_sequence: isSet(object.journey_sequence) ? globalThis.String(object.journey_sequence) : "",
|
|
1003
1013
|
va_number: isSet(object.va_number) ? globalThis.String(object.va_number) : "",
|
|
1014
|
+
sanctioned_amount: isSet(object.sanctioned_amount) ? globalThis.Number(object.sanctioned_amount) : 0,
|
|
1004
1015
|
};
|
|
1005
1016
|
},
|
|
1006
1017
|
toJSON(message) {
|
|
@@ -1254,6 +1265,9 @@ exports.getCustomerByIdResponse = {
|
|
|
1254
1265
|
if (message.va_number !== "") {
|
|
1255
1266
|
obj.va_number = message.va_number;
|
|
1256
1267
|
}
|
|
1268
|
+
if (message.sanctioned_amount !== 0) {
|
|
1269
|
+
obj.sanctioned_amount = message.sanctioned_amount;
|
|
1270
|
+
}
|
|
1257
1271
|
return obj;
|
|
1258
1272
|
},
|
|
1259
1273
|
create(base) {
|
|
@@ -1352,6 +1366,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1352
1366
|
message.journey_status = object.journey_status ?? "";
|
|
1353
1367
|
message.journey_sequence = object.journey_sequence ?? "";
|
|
1354
1368
|
message.va_number = object.va_number ?? "";
|
|
1369
|
+
message.sanctioned_amount = object.sanctioned_amount ?? 0;
|
|
1355
1370
|
return message;
|
|
1356
1371
|
},
|
|
1357
1372
|
};
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "customers.updatecategory";
|
|
16
16
|
function createBaseupdateCategoryRequest() {
|
|
17
|
-
return { customer_id: 0, category: "", product_code: "" };
|
|
17
|
+
return { customer_id: 0, category: "", product_code: "", comments: [] };
|
|
18
18
|
}
|
|
19
19
|
exports.updateCategoryRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -27,6 +27,9 @@ exports.updateCategoryRequest = {
|
|
|
27
27
|
if (message.product_code !== "") {
|
|
28
28
|
writer.uint32(26).string(message.product_code);
|
|
29
29
|
}
|
|
30
|
+
for (const v of message.comments) {
|
|
31
|
+
writer.uint32(34).string(v);
|
|
32
|
+
}
|
|
30
33
|
return writer;
|
|
31
34
|
},
|
|
32
35
|
decode(input, length) {
|
|
@@ -54,6 +57,12 @@ exports.updateCategoryRequest = {
|
|
|
54
57
|
}
|
|
55
58
|
message.product_code = reader.string();
|
|
56
59
|
continue;
|
|
60
|
+
case 4:
|
|
61
|
+
if (tag !== 34) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
message.comments.push(reader.string());
|
|
65
|
+
continue;
|
|
57
66
|
}
|
|
58
67
|
if ((tag & 7) === 4 || tag === 0) {
|
|
59
68
|
break;
|
|
@@ -67,6 +76,7 @@ exports.updateCategoryRequest = {
|
|
|
67
76
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
68
77
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
69
78
|
product_code: isSet(object.product_code) ? globalThis.String(object.product_code) : "",
|
|
79
|
+
comments: globalThis.Array.isArray(object?.comments) ? object.comments.map((e) => globalThis.String(e)) : [],
|
|
70
80
|
};
|
|
71
81
|
},
|
|
72
82
|
toJSON(message) {
|
|
@@ -80,6 +90,9 @@ exports.updateCategoryRequest = {
|
|
|
80
90
|
if (message.product_code !== "") {
|
|
81
91
|
obj.product_code = message.product_code;
|
|
82
92
|
}
|
|
93
|
+
if (message.comments?.length) {
|
|
94
|
+
obj.comments = message.comments;
|
|
95
|
+
}
|
|
83
96
|
return obj;
|
|
84
97
|
},
|
|
85
98
|
create(base) {
|
|
@@ -90,6 +103,7 @@ exports.updateCategoryRequest = {
|
|
|
90
103
|
message.customer_id = object.customer_id ?? 0;
|
|
91
104
|
message.category = object.category ?? "";
|
|
92
105
|
message.product_code = object.product_code ?? "";
|
|
106
|
+
message.comments = object.comments?.map((e) => e) || [];
|
|
93
107
|
return message;
|
|
94
108
|
},
|
|
95
109
|
};
|
|
@@ -13,7 +13,7 @@ exports.updateCustomerByIdResponse = exports.UpdateField = exports.updateCustome
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.updatecustomerbyid";
|
|
15
15
|
function createBaseupdateCustomerByIdRequest() {
|
|
16
|
-
return { customer_id: 0, updatedata: [] };
|
|
16
|
+
return { customer_id: 0, updatedata: [], comments: [] };
|
|
17
17
|
}
|
|
18
18
|
exports.updateCustomerByIdRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -23,6 +23,9 @@ exports.updateCustomerByIdRequest = {
|
|
|
23
23
|
for (const v of message.updatedata) {
|
|
24
24
|
exports.UpdateField.encode(v, writer.uint32(18).fork()).ldelim();
|
|
25
25
|
}
|
|
26
|
+
for (const v of message.comments) {
|
|
27
|
+
writer.uint32(26).string(v);
|
|
28
|
+
}
|
|
26
29
|
return writer;
|
|
27
30
|
},
|
|
28
31
|
decode(input, length) {
|
|
@@ -44,6 +47,12 @@ exports.updateCustomerByIdRequest = {
|
|
|
44
47
|
}
|
|
45
48
|
message.updatedata.push(exports.UpdateField.decode(reader, reader.uint32()));
|
|
46
49
|
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.comments.push(reader.string());
|
|
55
|
+
continue;
|
|
47
56
|
}
|
|
48
57
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
58
|
break;
|
|
@@ -58,6 +67,7 @@ exports.updateCustomerByIdRequest = {
|
|
|
58
67
|
updatedata: globalThis.Array.isArray(object?.updatedata)
|
|
59
68
|
? object.updatedata.map((e) => exports.UpdateField.fromJSON(e))
|
|
60
69
|
: [],
|
|
70
|
+
comments: globalThis.Array.isArray(object?.comments) ? object.comments.map((e) => globalThis.String(e)) : [],
|
|
61
71
|
};
|
|
62
72
|
},
|
|
63
73
|
toJSON(message) {
|
|
@@ -68,6 +78,9 @@ exports.updateCustomerByIdRequest = {
|
|
|
68
78
|
if (message.updatedata?.length) {
|
|
69
79
|
obj.updatedata = message.updatedata.map((e) => exports.UpdateField.toJSON(e));
|
|
70
80
|
}
|
|
81
|
+
if (message.comments?.length) {
|
|
82
|
+
obj.comments = message.comments;
|
|
83
|
+
}
|
|
71
84
|
return obj;
|
|
72
85
|
},
|
|
73
86
|
create(base) {
|
|
@@ -77,6 +90,7 @@ exports.updateCustomerByIdRequest = {
|
|
|
77
90
|
const message = createBaseupdateCustomerByIdRequest();
|
|
78
91
|
message.customer_id = object.customer_id ?? 0;
|
|
79
92
|
message.updatedata = object.updatedata?.map((e) => exports.UpdateField.fromPartial(e)) || [];
|
|
93
|
+
message.comments = object.comments?.map((e) => e) || [];
|
|
80
94
|
return message;
|
|
81
95
|
},
|
|
82
96
|
};
|
|
@@ -21,6 +21,7 @@ export interface creditLimitResponse {
|
|
|
21
21
|
exposure_limit_info_popup_body: string;
|
|
22
22
|
sanctioned_limit_heading: string;
|
|
23
23
|
exposure_limit_heading: string;
|
|
24
|
+
sanction_upgrade: boolean;
|
|
24
25
|
}
|
|
25
26
|
export declare const creditLimitRequest: {
|
|
26
27
|
encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -69,6 +69,7 @@ function createBasecreditLimitResponse() {
|
|
|
69
69
|
exposure_limit_info_popup_body: "",
|
|
70
70
|
sanctioned_limit_heading: "",
|
|
71
71
|
exposure_limit_heading: "",
|
|
72
|
+
sanction_upgrade: false,
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
exports.creditLimitResponse = {
|
|
@@ -127,6 +128,9 @@ exports.creditLimitResponse = {
|
|
|
127
128
|
if (message.exposure_limit_heading !== "") {
|
|
128
129
|
writer.uint32(146).string(message.exposure_limit_heading);
|
|
129
130
|
}
|
|
131
|
+
if (message.sanction_upgrade !== false) {
|
|
132
|
+
writer.uint32(152).bool(message.sanction_upgrade);
|
|
133
|
+
}
|
|
130
134
|
return writer;
|
|
131
135
|
},
|
|
132
136
|
decode(input, length) {
|
|
@@ -244,6 +248,12 @@ exports.creditLimitResponse = {
|
|
|
244
248
|
}
|
|
245
249
|
message.exposure_limit_heading = reader.string();
|
|
246
250
|
continue;
|
|
251
|
+
case 19:
|
|
252
|
+
if (tag !== 152) {
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
message.sanction_upgrade = reader.bool();
|
|
256
|
+
continue;
|
|
247
257
|
}
|
|
248
258
|
if ((tag & 7) === 4 || tag === 0) {
|
|
249
259
|
break;
|
|
@@ -290,6 +300,7 @@ exports.creditLimitResponse = {
|
|
|
290
300
|
exposure_limit_heading: isSet(object.exposure_limit_heading)
|
|
291
301
|
? globalThis.String(object.exposure_limit_heading)
|
|
292
302
|
: "",
|
|
303
|
+
sanction_upgrade: isSet(object.sanction_upgrade) ? globalThis.Boolean(object.sanction_upgrade) : false,
|
|
293
304
|
};
|
|
294
305
|
},
|
|
295
306
|
toJSON(message) {
|
|
@@ -348,6 +359,9 @@ exports.creditLimitResponse = {
|
|
|
348
359
|
if (message.exposure_limit_heading !== "") {
|
|
349
360
|
obj.exposure_limit_heading = message.exposure_limit_heading;
|
|
350
361
|
}
|
|
362
|
+
if (message.sanction_upgrade !== false) {
|
|
363
|
+
obj.sanction_upgrade = message.sanction_upgrade;
|
|
364
|
+
}
|
|
351
365
|
return obj;
|
|
352
366
|
},
|
|
353
367
|
create(base) {
|
|
@@ -373,6 +387,7 @@ exports.creditLimitResponse = {
|
|
|
373
387
|
message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
|
|
374
388
|
message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
|
|
375
389
|
message.exposure_limit_heading = object.exposure_limit_heading ?? "";
|
|
390
|
+
message.sanction_upgrade = object.sanction_upgrade ?? false;
|
|
376
391
|
return message;
|
|
377
392
|
},
|
|
378
393
|
};
|
|
@@ -3,7 +3,9 @@ export declare const protobufPackage = "loans.getnextdueamount";
|
|
|
3
3
|
export interface getNextdueAmountRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getNextdueAmountResponse {
|
|
6
|
-
|
|
6
|
+
overdue_amount: number;
|
|
7
|
+
current_due: number;
|
|
8
|
+
advance_payment: number;
|
|
7
9
|
}
|
|
8
10
|
export declare const getNextdueAmountRequest: {
|
|
9
11
|
encode(_: getNextdueAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -50,12 +50,18 @@ exports.getNextdueAmountRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetNextdueAmountResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { overdue_amount: 0, current_due: 0, advance_payment: 0 };
|
|
54
54
|
}
|
|
55
55
|
exports.getNextdueAmountResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.
|
|
58
|
-
writer.uint32(8).int32(message.
|
|
57
|
+
if (message.overdue_amount !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.overdue_amount);
|
|
59
|
+
}
|
|
60
|
+
if (message.current_due !== 0) {
|
|
61
|
+
writer.uint32(16).int32(message.current_due);
|
|
62
|
+
}
|
|
63
|
+
if (message.advance_payment !== 0) {
|
|
64
|
+
writer.uint32(24).int32(message.advance_payment);
|
|
59
65
|
}
|
|
60
66
|
return writer;
|
|
61
67
|
},
|
|
@@ -70,7 +76,19 @@ exports.getNextdueAmountResponse = {
|
|
|
70
76
|
if (tag !== 8) {
|
|
71
77
|
break;
|
|
72
78
|
}
|
|
73
|
-
message.
|
|
79
|
+
message.overdue_amount = reader.int32();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 16) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.current_due = reader.int32();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 24) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.advance_payment = reader.int32();
|
|
74
92
|
continue;
|
|
75
93
|
}
|
|
76
94
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -81,12 +99,22 @@ exports.getNextdueAmountResponse = {
|
|
|
81
99
|
return message;
|
|
82
100
|
},
|
|
83
101
|
fromJSON(object) {
|
|
84
|
-
return {
|
|
102
|
+
return {
|
|
103
|
+
overdue_amount: isSet(object.overdue_amount) ? globalThis.Number(object.overdue_amount) : 0,
|
|
104
|
+
current_due: isSet(object.current_due) ? globalThis.Number(object.current_due) : 0,
|
|
105
|
+
advance_payment: isSet(object.advance_payment) ? globalThis.Number(object.advance_payment) : 0,
|
|
106
|
+
};
|
|
85
107
|
},
|
|
86
108
|
toJSON(message) {
|
|
87
109
|
const obj = {};
|
|
88
|
-
if (message.
|
|
89
|
-
obj.
|
|
110
|
+
if (message.overdue_amount !== 0) {
|
|
111
|
+
obj.overdue_amount = Math.round(message.overdue_amount);
|
|
112
|
+
}
|
|
113
|
+
if (message.current_due !== 0) {
|
|
114
|
+
obj.current_due = Math.round(message.current_due);
|
|
115
|
+
}
|
|
116
|
+
if (message.advance_payment !== 0) {
|
|
117
|
+
obj.advance_payment = Math.round(message.advance_payment);
|
|
90
118
|
}
|
|
91
119
|
return obj;
|
|
92
120
|
},
|
|
@@ -95,7 +123,9 @@ exports.getNextdueAmountResponse = {
|
|
|
95
123
|
},
|
|
96
124
|
fromPartial(object) {
|
|
97
125
|
const message = createBasegetNextdueAmountResponse();
|
|
98
|
-
message.
|
|
126
|
+
message.overdue_amount = object.overdue_amount ?? 0;
|
|
127
|
+
message.current_due = object.current_due ?? 0;
|
|
128
|
+
message.advance_payment = object.advance_payment ?? 0;
|
|
99
129
|
return message;
|
|
100
130
|
},
|
|
101
131
|
};
|
package/ts/loans/updateloan.d.ts
CHANGED
package/ts/loans/updateloan.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.updateLoanResponse = exports.updateLoanRequest = exports.protobufPackage
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.updateloan";
|
|
15
15
|
function createBaseupdateLoanRequest() {
|
|
16
|
-
return { loan_id: 0, status: "" };
|
|
16
|
+
return { loan_id: 0, status: "", customer_id: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.updateLoanRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -23,6 +23,9 @@ exports.updateLoanRequest = {
|
|
|
23
23
|
if (message.status !== "") {
|
|
24
24
|
writer.uint32(18).string(message.status);
|
|
25
25
|
}
|
|
26
|
+
if (message.customer_id !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.customer_id);
|
|
28
|
+
}
|
|
26
29
|
return writer;
|
|
27
30
|
},
|
|
28
31
|
decode(input, length) {
|
|
@@ -44,6 +47,12 @@ exports.updateLoanRequest = {
|
|
|
44
47
|
}
|
|
45
48
|
message.status = reader.string();
|
|
46
49
|
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 24) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.customer_id = reader.int32();
|
|
55
|
+
continue;
|
|
47
56
|
}
|
|
48
57
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
58
|
break;
|
|
@@ -56,6 +65,7 @@ exports.updateLoanRequest = {
|
|
|
56
65
|
return {
|
|
57
66
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
58
67
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
68
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
59
69
|
};
|
|
60
70
|
},
|
|
61
71
|
toJSON(message) {
|
|
@@ -66,6 +76,9 @@ exports.updateLoanRequest = {
|
|
|
66
76
|
if (message.status !== "") {
|
|
67
77
|
obj.status = message.status;
|
|
68
78
|
}
|
|
79
|
+
if (message.customer_id !== 0) {
|
|
80
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
81
|
+
}
|
|
69
82
|
return obj;
|
|
70
83
|
},
|
|
71
84
|
create(base) {
|
|
@@ -75,6 +88,7 @@ exports.updateLoanRequest = {
|
|
|
75
88
|
const message = createBaseupdateLoanRequest();
|
|
76
89
|
message.loan_id = object.loan_id ?? 0;
|
|
77
90
|
message.status = object.status ?? "";
|
|
91
|
+
message.customer_id = object.customer_id ?? 0;
|
|
78
92
|
return message;
|
|
79
93
|
},
|
|
80
94
|
};
|