@stashfin/grpc 1.2.264 → 1.2.266
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/getbasicdetails.js +2 -2
- package/ts/bureau/getbureaulist.d.ts +52 -0
- package/ts/bureau/getbureaulist.js +276 -0
- package/ts/bureau/getdbrcolending.js +2 -2
- package/ts/bureau/getdemogs.js +2 -2
- package/ts/bureau/getobligation.js +2 -2
- package/ts/bureau/getreport.d.ts +3 -3
- package/ts/bureau/getreport.js +2 -2
- package/ts/bureau.js +2 -2
- package/ts/colender/disburseLoan.js +2 -2
- package/ts/colender/forecloseLoan.js +2 -2
- package/ts/colender/repayLoan.js +2 -2
- package/ts/colender.js +2 -2
- package/ts/customers/aa/getbanklist.js +2 -2
- package/ts/customers/aa/initiate.js +2 -2
- package/ts/customers/addaddress.js +2 -2
- package/ts/customers/addbankaccountdetails.js +2 -2
- package/ts/customers/addfathersname.js +2 -2
- package/ts/customers/addgstnumber.js +2 -2
- package/ts/customers/addmoredetails.js +2 -2
- package/ts/customers/addsuspendedcustomer.js +2 -2
- package/ts/customers/adduserapps.js +2 -2
- package/ts/customers/bulksms.js +2 -2
- package/ts/customers/cb/cbsignup.js +2 -2
- package/ts/customers/cb/getcbtxnstatus.js +2 -2
- package/ts/customers/cb/getcreditbuilder.js +2 -2
- package/ts/customers/cb/paynow.js +2 -2
- package/ts/customers/cb/savecreditbuilder.js +2 -2
- package/ts/customers/cb/updatecbtxnstatus.js +2 -2
- package/ts/customers/changempin.js +2 -2
- package/ts/customers/createcustomerreference.js +2 -2
- package/ts/customers/deleteprofile.js +2 -2
- package/ts/customers/disablempin.js +2 -2
- package/ts/customers/enach/gettxnstatus.js +2 -2
- package/ts/customers/enach/getweburl.js +2 -2
- package/ts/customers/enach/updatetxnstatus.js +2 -2
- package/ts/customers/fetchrcprofile.js +2 -2
- package/ts/customers/floatingvideos.js +2 -2
- package/ts/customers/forgotmpin.js +2 -2
- package/ts/customers/forgotmpinverify.js +2 -2
- package/ts/customers/freedom/addressconfirmation.js +2 -2
- package/ts/customers/freedom/freedompaynow.js +2 -2
- package/ts/customers/freedom/getfreedomtxnstatus.js +2 -2
- package/ts/customers/freedom/updatefreedomtxnstatus.js +2 -2
- package/ts/customers/getaddresslist.js +2 -2
- package/ts/customers/getappsubmittedscreen.js +2 -2
- package/ts/customers/getbankaccountdetails.js +2 -2
- package/ts/customers/getbasicinfo.js +2 -2
- package/ts/customers/getcities.js +2 -2
- package/ts/customers/getcompanyaccdetails.js +2 -2
- package/ts/customers/getcustomerbyid.js +2 -2
- package/ts/customers/getdashboard.js +2 -2
- package/ts/customers/getdashboardmaincard.js +2 -2
- package/ts/customers/getdocuments.js +2 -2
- package/ts/customers/getlimit.js +2 -2
- package/ts/customers/getoccupationlist.js +2 -2
- package/ts/customers/getpaymentoptions.d.ts +51 -0
- package/ts/customers/getpaymentoptions.js +243 -0
- package/ts/customers/getprofessionalinfo.js +2 -2
- package/ts/customers/getprofile.js +2 -2
- package/ts/customers/getrpdlink.d.ts +40 -0
- package/ts/customers/getrpdlink.js +190 -0
- package/ts/customers/getselfieetxnid.js +2 -2
- package/ts/customers/getstates.js +2 -2
- package/ts/customers/getstep.js +2 -2
- package/ts/customers/logout.js +2 -2
- package/ts/customers/pd/getbanklist.js +2 -2
- package/ts/customers/pd/validatebankaccount.js +2 -2
- package/ts/customers/profilebasic.js +2 -2
- package/ts/customers/profileupdatetnc.js +2 -2
- package/ts/customers/rpd/getrpdlink.js +2 -2
- package/ts/customers/rpd/getrpdtransactionstatus.js +2 -2
- package/ts/customers/rpd/mockpayment.js +2 -2
- package/ts/customers/savebasicdetails.js +2 -2
- package/ts/customers/savelimit.js +2 -2
- package/ts/customers/saveunlocklimit.js +2 -2
- package/ts/customers/sendotp.js +2 -2
- package/ts/customers/sendotptoemail.js +2 -2
- package/ts/customers/setmpin.js +2 -2
- package/ts/customers/skipscreen.js +2 -2
- package/ts/customers/updatecategory.d.ts +36 -0
- package/ts/customers/updatecategory.js +147 -0
- package/ts/customers/updatecustomerbyid.js +2 -2
- package/ts/customers/updatedlnumber.js +2 -2
- package/ts/customers/updatedob.js +2 -2
- package/ts/customers/updatelocstatus.js +2 -2
- package/ts/customers/updatemobilesendotp.js +2 -2
- package/ts/customers/updatemobileverifyotp.js +2 -2
- package/ts/customers/updateokyctxn.js +2 -2
- package/ts/customers/updateselfieetxn.js +2 -2
- package/ts/customers/updatevehiclenumber.js +2 -2
- package/ts/customers/uploaddocuments.js +2 -2
- package/ts/customers/validatepan.js +2 -2
- package/ts/customers/verifympin.js +2 -2
- package/ts/customers/verifyotp.js +2 -2
- package/ts/customers/verifyotptoemail.js +2 -2
- package/ts/customers.d.ts +28 -0
- package/ts/customers.js +22 -2
- package/ts/decisionengine/decisionengine.d.ts +1 -0
- package/ts/decisionengine/decisionengine.js +20 -6
- package/ts/decisionengine.js +2 -2
- package/ts/example.js +2 -2
- package/ts/growth/checkplanstatus.js +2 -2
- package/ts/growth/getattachplandetails.js +2 -2
- package/ts/growth/getchrplans.js +2 -2
- package/ts/growth/getcredithealthreport.js +2 -2
- package/ts/growth/initiatepayment.js +2 -2
- package/ts/growth/processchrpayment.js +2 -2
- package/ts/growth.js +2 -2
- package/ts/loans/amortization.js +2 -2
- package/ts/loans/approveloan.d.ts +1 -1
- package/ts/loans/approveloan.js +29 -38
- package/ts/loans/banklist.js +2 -2
- package/ts/loans/calculateemi.js +2 -2
- package/ts/loans/creditlimit.js +2 -2
- package/ts/loans/fcppayment.d.ts +0 -1
- package/ts/loans/fcppayment.js +5 -19
- package/ts/loans/forecloseamount.js +2 -2
- package/ts/loans/foreclosepayment.d.ts +0 -1
- package/ts/loans/foreclosepayment.js +5 -19
- package/ts/loans/futurepaymentmoredetails.js +2 -2
- package/ts/loans/getbilldetails.js +2 -2
- package/ts/loans/getcustomerloanstatus.js +2 -2
- package/ts/loans/getloanbyid.d.ts +1 -0
- package/ts/loans/getloanbyid.js +17 -2
- package/ts/loans/getnextdueamount.js +2 -2
- package/ts/loans/getpendingemiamount.js +2 -2
- package/ts/loans/getsummarystaticfields.js +2 -2
- package/ts/loans/gettransactionstatus.js +2 -2
- package/ts/loans/getusedlimit.d.ts +35 -0
- package/ts/loans/getusedlimit.js +117 -0
- package/ts/loans/getvirtualbankinfo.js +2 -2
- package/ts/loans/loansummary.d.ts +1 -0
- package/ts/loans/loansummary.js +21 -6
- package/ts/loans/paymentallocation.js +2 -2
- package/ts/loans/paymenthistory.js +2 -2
- package/ts/loans/paynow.js +2 -2
- package/ts/loans/refund.d.ts +0 -1
- package/ts/loans/refund.js +5 -19
- package/ts/loans/restructureloan.js +2 -2
- package/ts/loans/rollback.d.ts +0 -1
- package/ts/loans/rollback.js +5 -19
- package/ts/loans/sendemail.js +2 -2
- package/ts/loans/sendnocemail.js +2 -2
- package/ts/loans/transactionlist.js +2 -2
- package/ts/loans/updateinstallments.d.ts +0 -2
- package/ts/loans/updateinstallments.js +8 -45
- package/ts/loans/updateloan.js +2 -2
- package/ts/loans/updatetransactionstatus.js +2 -2
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +12 -2
- package/ts/payments/checkpaymentstatus.js +2 -2
- package/ts/payments/getpaymentoptions.js +2 -2
- package/ts/payments/initiatepayment.js +2 -2
- package/ts/payments/nachpresentation.js +2 -2
- package/ts/payments/nachregistration.js +2 -2
- package/ts/payments.js +2 -2
- package/ts/stashcash/creditsc.js +2 -2
- package/ts/stashcash/debitsc.js +2 -2
- package/ts/stashcash/getscbalance.js +2 -2
- package/ts/stashcash/getschistory.js +2 -2
- package/ts/stashcash/reversesc.js +2 -2
- package/ts/stashcash.js +2 -2
|
@@ -0,0 +1,117 @@
|
|
|
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.28.2
|
|
6
|
+
// source: loans/getusedlimit.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.getUsedLimitfoResponse = exports.getUsedLimitfoRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getusedlimit";
|
|
15
|
+
function createBasegetUsedLimitfoRequest() {
|
|
16
|
+
return { customer_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.getUsedLimitfoRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasegetUsedLimitfoRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.customer_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.customer_id !== 0) {
|
|
52
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.getUsedLimitfoRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasegetUsedLimitfoRequest();
|
|
61
|
+
message.customer_id = object.customer_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasegetUsedLimitfoResponse() {
|
|
66
|
+
return { used_limit: 0 };
|
|
67
|
+
}
|
|
68
|
+
exports.getUsedLimitfoResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.used_limit !== 0) {
|
|
71
|
+
writer.uint32(8).int32(message.used_limit);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasegetUsedLimitfoResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 8) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.used_limit = reader.int32();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return { used_limit: isSet(object.used_limit) ? globalThis.Number(object.used_limit) : 0 };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.used_limit !== 0) {
|
|
102
|
+
obj.used_limit = Math.round(message.used_limit);
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.getUsedLimitfoResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBasegetUsedLimitfoResponse();
|
|
111
|
+
message.used_limit = object.used_limit ?? 0;
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/getvirtualbankinfo.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -36,6 +36,7 @@ export interface loanSummaryResponse {
|
|
|
36
36
|
credit_report_actual_fees: number;
|
|
37
37
|
plan_id: number;
|
|
38
38
|
approved_amount: number;
|
|
39
|
+
discount: number;
|
|
39
40
|
}
|
|
40
41
|
export declare const loanSummaryRequest: {
|
|
41
42
|
encode(message: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/loansummary.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/loansummary.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -124,6 +124,7 @@ function createBaseloanSummaryResponse() {
|
|
|
124
124
|
credit_report_actual_fees: 0,
|
|
125
125
|
plan_id: 0,
|
|
126
126
|
approved_amount: 0,
|
|
127
|
+
discount: 0,
|
|
127
128
|
};
|
|
128
129
|
}
|
|
129
130
|
exports.loanSummaryResponse = {
|
|
@@ -198,7 +199,7 @@ exports.loanSummaryResponse = {
|
|
|
198
199
|
writer.uint32(186).string(message.bill_card_description);
|
|
199
200
|
}
|
|
200
201
|
if (message.apr_value !== 0) {
|
|
201
|
-
writer.uint32(
|
|
202
|
+
writer.uint32(197).float(message.apr_value);
|
|
202
203
|
}
|
|
203
204
|
if (message.apr_type !== "") {
|
|
204
205
|
writer.uint32(202).string(message.apr_type);
|
|
@@ -218,6 +219,9 @@ exports.loanSummaryResponse = {
|
|
|
218
219
|
if (message.approved_amount !== 0) {
|
|
219
220
|
writer.uint32(240).int32(message.approved_amount);
|
|
220
221
|
}
|
|
222
|
+
if (message.discount !== 0) {
|
|
223
|
+
writer.uint32(248).int32(message.discount);
|
|
224
|
+
}
|
|
221
225
|
return writer;
|
|
222
226
|
},
|
|
223
227
|
decode(input, length) {
|
|
@@ -366,10 +370,10 @@ exports.loanSummaryResponse = {
|
|
|
366
370
|
message.bill_card_description = reader.string();
|
|
367
371
|
continue;
|
|
368
372
|
case 24:
|
|
369
|
-
if (tag !==
|
|
373
|
+
if (tag !== 197) {
|
|
370
374
|
break;
|
|
371
375
|
}
|
|
372
|
-
message.apr_value = reader.
|
|
376
|
+
message.apr_value = reader.float();
|
|
373
377
|
continue;
|
|
374
378
|
case 25:
|
|
375
379
|
if (tag !== 202) {
|
|
@@ -407,6 +411,12 @@ exports.loanSummaryResponse = {
|
|
|
407
411
|
}
|
|
408
412
|
message.approved_amount = reader.int32();
|
|
409
413
|
continue;
|
|
414
|
+
case 31:
|
|
415
|
+
if (tag !== 248) {
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
message.discount = reader.int32();
|
|
419
|
+
continue;
|
|
410
420
|
}
|
|
411
421
|
if ((tag & 7) === 4 || tag === 0) {
|
|
412
422
|
break;
|
|
@@ -455,6 +465,7 @@ exports.loanSummaryResponse = {
|
|
|
455
465
|
: 0,
|
|
456
466
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
457
467
|
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
468
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
458
469
|
};
|
|
459
470
|
},
|
|
460
471
|
toJSON(message) {
|
|
@@ -529,7 +540,7 @@ exports.loanSummaryResponse = {
|
|
|
529
540
|
obj.bill_card_description = message.bill_card_description;
|
|
530
541
|
}
|
|
531
542
|
if (message.apr_value !== 0) {
|
|
532
|
-
obj.apr_value =
|
|
543
|
+
obj.apr_value = message.apr_value;
|
|
533
544
|
}
|
|
534
545
|
if (message.apr_type !== "") {
|
|
535
546
|
obj.apr_type = message.apr_type;
|
|
@@ -549,6 +560,9 @@ exports.loanSummaryResponse = {
|
|
|
549
560
|
if (message.approved_amount !== 0) {
|
|
550
561
|
obj.approved_amount = Math.round(message.approved_amount);
|
|
551
562
|
}
|
|
563
|
+
if (message.discount !== 0) {
|
|
564
|
+
obj.discount = Math.round(message.discount);
|
|
565
|
+
}
|
|
552
566
|
return obj;
|
|
553
567
|
},
|
|
554
568
|
create(base) {
|
|
@@ -586,6 +600,7 @@ exports.loanSummaryResponse = {
|
|
|
586
600
|
message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
|
|
587
601
|
message.plan_id = object.plan_id ?? 0;
|
|
588
602
|
message.approved_amount = object.approved_amount ?? 0;
|
|
603
|
+
message.discount = object.discount ?? 0;
|
|
589
604
|
return message;
|
|
590
605
|
},
|
|
591
606
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/paymentallocation.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/paymenthistory.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/loans/paynow.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/paynow.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/loans/refund.d.ts
CHANGED
package/ts/loans/refund.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/refund.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -13,7 +13,7 @@ exports.refundResponse = exports.refundRequest = exports.protobufPackage = void
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.refund";
|
|
15
15
|
function createBaserefundRequest() {
|
|
16
|
-
return { amount: 0, customerid: 0, loan_id: 0,
|
|
16
|
+
return { amount: 0, customerid: 0, loan_id: 0, mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.refundRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,11 +26,8 @@ exports.refundRequest = {
|
|
|
26
26
|
if (message.loan_id !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.loan_id);
|
|
28
28
|
}
|
|
29
|
-
if (message.payment_id !== 0) {
|
|
30
|
-
writer.uint32(32).int32(message.payment_id);
|
|
31
|
-
}
|
|
32
29
|
if (message.mode !== "") {
|
|
33
|
-
writer.uint32(
|
|
30
|
+
writer.uint32(34).string(message.mode);
|
|
34
31
|
}
|
|
35
32
|
return writer;
|
|
36
33
|
},
|
|
@@ -60,13 +57,7 @@ exports.refundRequest = {
|
|
|
60
57
|
message.loan_id = reader.int32();
|
|
61
58
|
continue;
|
|
62
59
|
case 4:
|
|
63
|
-
if (tag !==
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
message.payment_id = reader.int32();
|
|
67
|
-
continue;
|
|
68
|
-
case 5:
|
|
69
|
-
if (tag !== 42) {
|
|
60
|
+
if (tag !== 34) {
|
|
70
61
|
break;
|
|
71
62
|
}
|
|
72
63
|
message.mode = reader.string();
|
|
@@ -84,7 +75,6 @@ exports.refundRequest = {
|
|
|
84
75
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
85
76
|
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
86
77
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
87
|
-
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
88
78
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
89
79
|
};
|
|
90
80
|
},
|
|
@@ -99,9 +89,6 @@ exports.refundRequest = {
|
|
|
99
89
|
if (message.loan_id !== 0) {
|
|
100
90
|
obj.loan_id = Math.round(message.loan_id);
|
|
101
91
|
}
|
|
102
|
-
if (message.payment_id !== 0) {
|
|
103
|
-
obj.payment_id = Math.round(message.payment_id);
|
|
104
|
-
}
|
|
105
92
|
if (message.mode !== "") {
|
|
106
93
|
obj.mode = message.mode;
|
|
107
94
|
}
|
|
@@ -115,7 +102,6 @@ exports.refundRequest = {
|
|
|
115
102
|
message.amount = object.amount ?? 0;
|
|
116
103
|
message.customerid = object.customerid ?? 0;
|
|
117
104
|
message.loan_id = object.loan_id ?? 0;
|
|
118
|
-
message.payment_id = object.payment_id ?? 0;
|
|
119
105
|
message.mode = object.mode ?? "";
|
|
120
106
|
return message;
|
|
121
107
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/restructureloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/loans/rollback.d.ts
CHANGED
package/ts/loans/rollback.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/rollback.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -13,7 +13,7 @@ exports.rollbackResponse = exports.rollbackRequest = exports.protobufPackage = v
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.rollback";
|
|
15
15
|
function createBaserollbackRequest() {
|
|
16
|
-
return { amount: 0, customerid: 0, loan_id: 0,
|
|
16
|
+
return { amount: 0, customerid: 0, loan_id: 0, mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.rollbackRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,11 +26,8 @@ exports.rollbackRequest = {
|
|
|
26
26
|
if (message.loan_id !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.loan_id);
|
|
28
28
|
}
|
|
29
|
-
if (message.payment_id !== 0) {
|
|
30
|
-
writer.uint32(32).int32(message.payment_id);
|
|
31
|
-
}
|
|
32
29
|
if (message.mode !== "") {
|
|
33
|
-
writer.uint32(
|
|
30
|
+
writer.uint32(34).string(message.mode);
|
|
34
31
|
}
|
|
35
32
|
return writer;
|
|
36
33
|
},
|
|
@@ -60,13 +57,7 @@ exports.rollbackRequest = {
|
|
|
60
57
|
message.loan_id = reader.int32();
|
|
61
58
|
continue;
|
|
62
59
|
case 4:
|
|
63
|
-
if (tag !==
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
message.payment_id = reader.int32();
|
|
67
|
-
continue;
|
|
68
|
-
case 5:
|
|
69
|
-
if (tag !== 42) {
|
|
60
|
+
if (tag !== 34) {
|
|
70
61
|
break;
|
|
71
62
|
}
|
|
72
63
|
message.mode = reader.string();
|
|
@@ -84,7 +75,6 @@ exports.rollbackRequest = {
|
|
|
84
75
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
85
76
|
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
86
77
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
87
|
-
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
88
78
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
89
79
|
};
|
|
90
80
|
},
|
|
@@ -99,9 +89,6 @@ exports.rollbackRequest = {
|
|
|
99
89
|
if (message.loan_id !== 0) {
|
|
100
90
|
obj.loan_id = Math.round(message.loan_id);
|
|
101
91
|
}
|
|
102
|
-
if (message.payment_id !== 0) {
|
|
103
|
-
obj.payment_id = Math.round(message.payment_id);
|
|
104
|
-
}
|
|
105
92
|
if (message.mode !== "") {
|
|
106
93
|
obj.mode = message.mode;
|
|
107
94
|
}
|
|
@@ -115,7 +102,6 @@ exports.rollbackRequest = {
|
|
|
115
102
|
message.amount = object.amount ?? 0;
|
|
116
103
|
message.customerid = object.customerid ?? 0;
|
|
117
104
|
message.loan_id = object.loan_id ?? 0;
|
|
118
|
-
message.payment_id = object.payment_id ?? 0;
|
|
119
105
|
message.mode = object.mode ?? "";
|
|
120
106
|
return message;
|
|
121
107
|
},
|
package/ts/loans/sendemail.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/sendemail.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/loans/sendnocemail.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/sendnocemail.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/transactionlist.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -4,10 +4,8 @@ export interface updateInstallmentsRequest {
|
|
|
4
4
|
installment_id: number;
|
|
5
5
|
r_principal: number;
|
|
6
6
|
r_interest: number;
|
|
7
|
-
r_penalty: number;
|
|
8
7
|
r_pif_principal: number;
|
|
9
8
|
r_pif_interest: number;
|
|
10
|
-
r_pif_penalty: number;
|
|
11
9
|
amount: number;
|
|
12
10
|
}
|
|
13
11
|
export interface updateInstallmentsResponse {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/updateinstallments.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -13,16 +13,7 @@ exports.updateInstallmentsResponse = exports.updateInstallmentsRequest = exports
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.updateinstallments";
|
|
15
15
|
function createBaseupdateInstallmentsRequest() {
|
|
16
|
-
return {
|
|
17
|
-
installment_id: 0,
|
|
18
|
-
r_principal: 0,
|
|
19
|
-
r_interest: 0,
|
|
20
|
-
r_penalty: 0,
|
|
21
|
-
r_pif_principal: 0,
|
|
22
|
-
r_pif_interest: 0,
|
|
23
|
-
r_pif_penalty: 0,
|
|
24
|
-
amount: 0,
|
|
25
|
-
};
|
|
16
|
+
return { installment_id: 0, r_principal: 0, r_interest: 0, r_pif_principal: 0, r_pif_interest: 0, amount: 0 };
|
|
26
17
|
}
|
|
27
18
|
exports.updateInstallmentsRequest = {
|
|
28
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -35,20 +26,14 @@ exports.updateInstallmentsRequest = {
|
|
|
35
26
|
if (message.r_interest !== 0) {
|
|
36
27
|
writer.uint32(24).int32(message.r_interest);
|
|
37
28
|
}
|
|
38
|
-
if (message.r_penalty !== 0) {
|
|
39
|
-
writer.uint32(32).int32(message.r_penalty);
|
|
40
|
-
}
|
|
41
29
|
if (message.r_pif_principal !== 0) {
|
|
42
|
-
writer.uint32(
|
|
30
|
+
writer.uint32(32).int32(message.r_pif_principal);
|
|
43
31
|
}
|
|
44
32
|
if (message.r_pif_interest !== 0) {
|
|
45
|
-
writer.uint32(
|
|
46
|
-
}
|
|
47
|
-
if (message.r_pif_penalty !== 0) {
|
|
48
|
-
writer.uint32(56).int32(message.r_pif_penalty);
|
|
33
|
+
writer.uint32(40).int32(message.r_pif_interest);
|
|
49
34
|
}
|
|
50
35
|
if (message.amount !== 0) {
|
|
51
|
-
writer.uint32(
|
|
36
|
+
writer.uint32(48).int32(message.amount);
|
|
52
37
|
}
|
|
53
38
|
return writer;
|
|
54
39
|
},
|
|
@@ -81,30 +66,18 @@ exports.updateInstallmentsRequest = {
|
|
|
81
66
|
if (tag !== 32) {
|
|
82
67
|
break;
|
|
83
68
|
}
|
|
84
|
-
message.
|
|
69
|
+
message.r_pif_principal = reader.int32();
|
|
85
70
|
continue;
|
|
86
71
|
case 5:
|
|
87
72
|
if (tag !== 40) {
|
|
88
73
|
break;
|
|
89
74
|
}
|
|
90
|
-
message.
|
|
75
|
+
message.r_pif_interest = reader.int32();
|
|
91
76
|
continue;
|
|
92
77
|
case 6:
|
|
93
78
|
if (tag !== 48) {
|
|
94
79
|
break;
|
|
95
80
|
}
|
|
96
|
-
message.r_pif_interest = reader.int32();
|
|
97
|
-
continue;
|
|
98
|
-
case 7:
|
|
99
|
-
if (tag !== 56) {
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
message.r_pif_penalty = reader.int32();
|
|
103
|
-
continue;
|
|
104
|
-
case 8:
|
|
105
|
-
if (tag !== 64) {
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
81
|
message.amount = reader.int32();
|
|
109
82
|
continue;
|
|
110
83
|
}
|
|
@@ -120,10 +93,8 @@ exports.updateInstallmentsRequest = {
|
|
|
120
93
|
installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
|
|
121
94
|
r_principal: isSet(object.r_principal) ? globalThis.Number(object.r_principal) : 0,
|
|
122
95
|
r_interest: isSet(object.r_interest) ? globalThis.Number(object.r_interest) : 0,
|
|
123
|
-
r_penalty: isSet(object.r_penalty) ? globalThis.Number(object.r_penalty) : 0,
|
|
124
96
|
r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
|
|
125
97
|
r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
|
|
126
|
-
r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
|
|
127
98
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
128
99
|
};
|
|
129
100
|
},
|
|
@@ -138,18 +109,12 @@ exports.updateInstallmentsRequest = {
|
|
|
138
109
|
if (message.r_interest !== 0) {
|
|
139
110
|
obj.r_interest = Math.round(message.r_interest);
|
|
140
111
|
}
|
|
141
|
-
if (message.r_penalty !== 0) {
|
|
142
|
-
obj.r_penalty = Math.round(message.r_penalty);
|
|
143
|
-
}
|
|
144
112
|
if (message.r_pif_principal !== 0) {
|
|
145
113
|
obj.r_pif_principal = Math.round(message.r_pif_principal);
|
|
146
114
|
}
|
|
147
115
|
if (message.r_pif_interest !== 0) {
|
|
148
116
|
obj.r_pif_interest = Math.round(message.r_pif_interest);
|
|
149
117
|
}
|
|
150
|
-
if (message.r_pif_penalty !== 0) {
|
|
151
|
-
obj.r_pif_penalty = Math.round(message.r_pif_penalty);
|
|
152
|
-
}
|
|
153
118
|
if (message.amount !== 0) {
|
|
154
119
|
obj.amount = Math.round(message.amount);
|
|
155
120
|
}
|
|
@@ -163,10 +128,8 @@ exports.updateInstallmentsRequest = {
|
|
|
163
128
|
message.installment_id = object.installment_id ?? 0;
|
|
164
129
|
message.r_principal = object.r_principal ?? 0;
|
|
165
130
|
message.r_interest = object.r_interest ?? 0;
|
|
166
|
-
message.r_penalty = object.r_penalty ?? 0;
|
|
167
131
|
message.r_pif_principal = object.r_pif_principal ?? 0;
|
|
168
132
|
message.r_pif_interest = object.r_pif_interest ?? 0;
|
|
169
|
-
message.r_pif_penalty = object.r_pif_penalty ?? 0;
|
|
170
133
|
message.amount = object.amount ?? 0;
|
|
171
134
|
return message;
|
|
172
135
|
},
|
package/ts/loans/updateloan.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/updateloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
6
|
// source: loans/updatetransactionstatus.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|