@stashfin/grpc 1.2.169 → 1.2.171
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.d.ts +57 -0
- package/ts/bureau/getbasicdetails.js +341 -0
- package/ts/bureau/getdemogs.d.ts +113 -0
- package/ts/bureau/getdemogs.js +611 -0
- package/ts/bureau/getreport.d.ts +188 -0
- package/ts/bureau/getreport.js +1640 -0
- package/ts/bureau.d.ts +56 -0
- package/ts/bureau.js +44 -0
- package/ts/colender/disburseLoan.d.ts +44 -0
- package/ts/colender/disburseLoan.js +256 -0
- package/ts/colender/forecloseLoan.d.ts +41 -0
- package/ts/colender/forecloseLoan.js +205 -0
- package/ts/colender/repayLoan.d.ts +48 -0
- package/ts/colender/repayLoan.js +313 -0
- package/ts/colender.d.ts +56 -0
- package/ts/colender.js +44 -0
- package/ts/customers/aa/getbanklist.d.ts +48 -0
- package/ts/customers/aa/getbanklist.js +198 -0
- package/ts/customers/aa/initiate.d.ts +40 -0
- package/ts/customers/aa/initiate.js +209 -0
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/addfathersname.d.ts +35 -0
- package/ts/customers/addfathersname.js +117 -0
- package/ts/customers/addgstnumber.d.ts +35 -0
- package/ts/customers/addgstnumber.js +117 -0
- package/ts/customers/addmoredetails.d.ts +47 -0
- package/ts/customers/addmoredetails.js +185 -0
- package/ts/customers/addsuspendedcustomer.d.ts +36 -0
- package/ts/customers/addsuspendedcustomer.js +133 -0
- package/ts/customers/adduserapps.d.ts +74 -0
- package/ts/customers/adduserapps.js +210 -0
- package/ts/customers/bulksms.d.ts +48 -0
- package/ts/customers/bulksms.js +201 -0
- package/ts/customers/changempin.d.ts +36 -0
- package/ts/customers/changempin.js +133 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/deleteprofile.d.ts +35 -0
- package/ts/customers/deleteprofile.js +120 -0
- package/ts/customers/disablempin.d.ts +34 -0
- package/ts/customers/disablempin.js +104 -0
- package/ts/customers/fetchrcprofile.d.ts +45 -0
- package/ts/customers/fetchrcprofile.js +271 -0
- package/ts/customers/forgotmpin.d.ts +35 -0
- package/ts/customers/forgotmpin.js +117 -0
- package/ts/customers/forgotmpinverify.d.ts +36 -0
- package/ts/customers/forgotmpinverify.js +133 -0
- package/ts/customers/getbankaccountdetails.d.ts +37 -0
- package/ts/customers/getbankaccountdetails.js +148 -0
- package/ts/customers/getbasicinfo.d.ts +56 -0
- package/ts/customers/getbasicinfo.js +323 -0
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcompanyaccdetails.d.ts +37 -0
- package/ts/customers/getcompanyaccdetails.js +148 -0
- package/ts/customers/getcustomerbyid.d.ts +142 -0
- package/ts/customers/getcustomerbyid.js +1521 -0
- package/ts/customers/getdashboard.d.ts +88 -0
- package/ts/customers/getdashboard.js +574 -0
- package/ts/customers/getdashboardmaincard.d.ts +70 -0
- package/ts/customers/getdashboardmaincard.js +534 -0
- package/ts/customers/getdocuments.d.ts +46 -0
- package/ts/customers/getdocuments.js +174 -0
- package/ts/customers/getlimit.d.ts +37 -0
- package/ts/customers/getlimit.js +148 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +54 -0
- package/ts/customers/getprofile.js +296 -0
- package/ts/customers/getselfieetxnid.d.ts +34 -0
- package/ts/customers/getselfieetxnid.js +104 -0
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +69 -0
- package/ts/customers/getstep.js +406 -0
- package/ts/customers/logout.d.ts +34 -0
- package/ts/customers/logout.js +104 -0
- package/ts/customers/profilebasic.d.ts +40 -0
- package/ts/customers/profilebasic.js +189 -0
- package/ts/customers/profileupdatetnc.d.ts +35 -0
- package/ts/customers/profileupdatetnc.js +117 -0
- package/ts/customers/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/customers/saveunlocklimit.js +104 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/sendotptoemail.d.ts +35 -0
- package/ts/customers/sendotptoemail.js +117 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/skipscreen.d.ts +44 -0
- package/ts/customers/skipscreen.js +162 -0
- package/ts/customers/updatecustomerbyid.d.ts +48 -0
- package/ts/customers/updatecustomerbyid.js +201 -0
- package/ts/customers/updatedlnumber.d.ts +35 -0
- package/ts/customers/updatedlnumber.js +119 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatelocstatus.d.ts +36 -0
- package/ts/customers/updatelocstatus.js +133 -0
- package/ts/customers/updatemobilesendotp.d.ts +35 -0
- package/ts/customers/updatemobilesendotp.js +117 -0
- package/ts/customers/updatemobileverifyotp.d.ts +36 -0
- package/ts/customers/updatemobileverifyotp.js +133 -0
- package/ts/customers/updateokyctxn.d.ts +37 -0
- package/ts/customers/updateokyctxn.js +147 -0
- package/ts/customers/updateselfieetxn.d.ts +36 -0
- package/ts/customers/updateselfieetxn.js +133 -0
- package/ts/customers/updatevehiclenumber.d.ts +35 -0
- package/ts/customers/updatevehiclenumber.js +117 -0
- package/ts/customers/uploaddocuments.d.ts +37 -0
- package/ts/customers/uploaddocuments.js +172 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifympin.d.ts +37 -0
- package/ts/customers/verifympin.js +149 -0
- package/ts/customers/verifyotp.d.ts +41 -0
- package/ts/customers/verifyotp.js +205 -0
- package/ts/customers/verifyotptoemail.d.ts +35 -0
- package/ts/customers/verifyotptoemail.js +117 -0
- package/ts/customers.d.ts +796 -0
- package/ts/customers.js +572 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/ts/growth/processchrpayment.d.ts +40 -0
- package/ts/growth/processchrpayment.js +205 -0
- package/ts/growth.d.ts +28 -0
- package/ts/growth.js +24 -0
- package/ts/loans/approveloan.d.ts +81 -0
- package/ts/loans/approveloan.js +703 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +57 -0
- package/ts/loans/calculateemi.js +340 -0
- package/ts/loans/creditlimit.d.ts +51 -0
- package/ts/loans/creditlimit.js +381 -0
- package/ts/loans/futurepaymentmoredetails.d.ts +50 -0
- package/ts/loans/futurepaymentmoredetails.js +230 -0
- package/ts/loans/getbilldetails.d.ts +38 -0
- package/ts/loans/getbilldetails.js +161 -0
- package/ts/loans/getcustomerloanstatus.d.ts +34 -0
- package/ts/loans/getcustomerloanstatus.js +104 -0
- package/ts/loans/getloanbyid.d.ts +48 -0
- package/ts/loans/getloanbyid.js +318 -0
- package/ts/loans/getnextdueamount.d.ts +34 -0
- package/ts/loans/getnextdueamount.js +104 -0
- package/ts/loans/getpendingemiamount.d.ts +34 -0
- package/ts/loans/getpendingemiamount.js +104 -0
- package/ts/loans/getsummarystaticfields.d.ts +80 -0
- package/ts/loans/getsummarystaticfields.js +700 -0
- package/ts/loans/loansummary.d.ts +66 -0
- package/ts/loans/loansummary.js +593 -0
- package/ts/loans/paymentallocation.d.ts +38 -0
- package/ts/loans/paymentallocation.js +161 -0
- package/ts/loans/paymenthistory.d.ts +47 -0
- package/ts/loans/paymenthistory.js +188 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/sendemail.d.ts +35 -0
- package/ts/loans/sendemail.js +117 -0
- package/ts/loans/sendnocemail.d.ts +35 -0
- package/ts/loans/sendnocemail.js +117 -0
- package/ts/loans/transactionlist.d.ts +52 -0
- package/ts/loans/transactionlist.js +257 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +37 -0
- package/ts/loans/updateloan.js +147 -0
- package/ts/loans.d.ts +294 -0
- package/ts/loans.js +214 -0
- package/ts/payments.d.ts +239 -0
- package/ts/payments.js +1117 -0
- package/ts/stashcash/creditsc.d.ts +54 -0
- package/ts/stashcash/creditsc.js +301 -0
- package/ts/stashcash/debitsc.d.ts +59 -0
- package/ts/stashcash/debitsc.js +380 -0
- package/ts/stashcash/getscbalance.d.ts +53 -0
- package/ts/stashcash/getscbalance.js +293 -0
- package/ts/stashcash/getschistory.d.ts +73 -0
- package/ts/stashcash/getschistory.js +479 -0
- package/ts/stashcash/reversesc.d.ts +52 -0
- package/ts/stashcash/reversesc.js +273 -0
- package/ts/stashcash.d.ts +84 -0
- package/ts/stashcash.js +64 -0
|
@@ -0,0 +1,226 @@
|
|
|
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.4
|
|
6
|
+
// source: loans/updateinstallments.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.updateInstallmentsResponse = exports.updateInstallmentsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.updateinstallments";
|
|
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
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.updateInstallmentsRequest = {
|
|
28
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
29
|
+
if (message.installment_id !== 0) {
|
|
30
|
+
writer.uint32(8).int32(message.installment_id);
|
|
31
|
+
}
|
|
32
|
+
if (message.r_principal !== 0) {
|
|
33
|
+
writer.uint32(16).int32(message.r_principal);
|
|
34
|
+
}
|
|
35
|
+
if (message.r_interest !== 0) {
|
|
36
|
+
writer.uint32(24).int32(message.r_interest);
|
|
37
|
+
}
|
|
38
|
+
if (message.r_penalty !== 0) {
|
|
39
|
+
writer.uint32(32).int32(message.r_penalty);
|
|
40
|
+
}
|
|
41
|
+
if (message.r_pif_principal !== 0) {
|
|
42
|
+
writer.uint32(40).int32(message.r_pif_principal);
|
|
43
|
+
}
|
|
44
|
+
if (message.r_pif_interest !== 0) {
|
|
45
|
+
writer.uint32(48).int32(message.r_pif_interest);
|
|
46
|
+
}
|
|
47
|
+
if (message.r_pif_penalty !== 0) {
|
|
48
|
+
writer.uint32(56).int32(message.r_pif_penalty);
|
|
49
|
+
}
|
|
50
|
+
if (message.amount !== 0) {
|
|
51
|
+
writer.uint32(64).int32(message.amount);
|
|
52
|
+
}
|
|
53
|
+
return writer;
|
|
54
|
+
},
|
|
55
|
+
decode(input, length) {
|
|
56
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
57
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
+
const message = createBaseupdateInstallmentsRequest();
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
const tag = reader.uint32();
|
|
61
|
+
switch (tag >>> 3) {
|
|
62
|
+
case 1:
|
|
63
|
+
if (tag !== 8) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.installment_id = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 2:
|
|
69
|
+
if (tag !== 16) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.r_principal = reader.int32();
|
|
73
|
+
continue;
|
|
74
|
+
case 3:
|
|
75
|
+
if (tag !== 24) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.r_interest = reader.int32();
|
|
79
|
+
continue;
|
|
80
|
+
case 4:
|
|
81
|
+
if (tag !== 32) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.r_penalty = reader.int32();
|
|
85
|
+
continue;
|
|
86
|
+
case 5:
|
|
87
|
+
if (tag !== 40) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.r_pif_principal = reader.int32();
|
|
91
|
+
continue;
|
|
92
|
+
case 6:
|
|
93
|
+
if (tag !== 48) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
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
|
+
message.amount = reader.int32();
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
reader.skipType(tag & 7);
|
|
115
|
+
}
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
fromJSON(object) {
|
|
119
|
+
return {
|
|
120
|
+
installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
|
|
121
|
+
r_principal: isSet(object.r_principal) ? globalThis.Number(object.r_principal) : 0,
|
|
122
|
+
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
|
+
r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
|
|
125
|
+
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
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
toJSON(message) {
|
|
131
|
+
const obj = {};
|
|
132
|
+
if (message.installment_id !== 0) {
|
|
133
|
+
obj.installment_id = Math.round(message.installment_id);
|
|
134
|
+
}
|
|
135
|
+
if (message.r_principal !== 0) {
|
|
136
|
+
obj.r_principal = Math.round(message.r_principal);
|
|
137
|
+
}
|
|
138
|
+
if (message.r_interest !== 0) {
|
|
139
|
+
obj.r_interest = Math.round(message.r_interest);
|
|
140
|
+
}
|
|
141
|
+
if (message.r_penalty !== 0) {
|
|
142
|
+
obj.r_penalty = Math.round(message.r_penalty);
|
|
143
|
+
}
|
|
144
|
+
if (message.r_pif_principal !== 0) {
|
|
145
|
+
obj.r_pif_principal = Math.round(message.r_pif_principal);
|
|
146
|
+
}
|
|
147
|
+
if (message.r_pif_interest !== 0) {
|
|
148
|
+
obj.r_pif_interest = Math.round(message.r_pif_interest);
|
|
149
|
+
}
|
|
150
|
+
if (message.r_pif_penalty !== 0) {
|
|
151
|
+
obj.r_pif_penalty = Math.round(message.r_pif_penalty);
|
|
152
|
+
}
|
|
153
|
+
if (message.amount !== 0) {
|
|
154
|
+
obj.amount = Math.round(message.amount);
|
|
155
|
+
}
|
|
156
|
+
return obj;
|
|
157
|
+
},
|
|
158
|
+
create(base) {
|
|
159
|
+
return exports.updateInstallmentsRequest.fromPartial(base ?? {});
|
|
160
|
+
},
|
|
161
|
+
fromPartial(object) {
|
|
162
|
+
const message = createBaseupdateInstallmentsRequest();
|
|
163
|
+
message.installment_id = object.installment_id ?? 0;
|
|
164
|
+
message.r_principal = object.r_principal ?? 0;
|
|
165
|
+
message.r_interest = object.r_interest ?? 0;
|
|
166
|
+
message.r_penalty = object.r_penalty ?? 0;
|
|
167
|
+
message.r_pif_principal = object.r_pif_principal ?? 0;
|
|
168
|
+
message.r_pif_interest = object.r_pif_interest ?? 0;
|
|
169
|
+
message.r_pif_penalty = object.r_pif_penalty ?? 0;
|
|
170
|
+
message.amount = object.amount ?? 0;
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
function createBaseupdateInstallmentsResponse() {
|
|
175
|
+
return { id: 0 };
|
|
176
|
+
}
|
|
177
|
+
exports.updateInstallmentsResponse = {
|
|
178
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
179
|
+
if (message.id !== 0) {
|
|
180
|
+
writer.uint32(8).int32(message.id);
|
|
181
|
+
}
|
|
182
|
+
return writer;
|
|
183
|
+
},
|
|
184
|
+
decode(input, length) {
|
|
185
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
186
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
187
|
+
const message = createBaseupdateInstallmentsResponse();
|
|
188
|
+
while (reader.pos < end) {
|
|
189
|
+
const tag = reader.uint32();
|
|
190
|
+
switch (tag >>> 3) {
|
|
191
|
+
case 1:
|
|
192
|
+
if (tag !== 8) {
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
message.id = reader.int32();
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
reader.skipType(tag & 7);
|
|
202
|
+
}
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
fromJSON(object) {
|
|
206
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
207
|
+
},
|
|
208
|
+
toJSON(message) {
|
|
209
|
+
const obj = {};
|
|
210
|
+
if (message.id !== 0) {
|
|
211
|
+
obj.id = Math.round(message.id);
|
|
212
|
+
}
|
|
213
|
+
return obj;
|
|
214
|
+
},
|
|
215
|
+
create(base) {
|
|
216
|
+
return exports.updateInstallmentsResponse.fromPartial(base ?? {});
|
|
217
|
+
},
|
|
218
|
+
fromPartial(object) {
|
|
219
|
+
const message = createBaseupdateInstallmentsResponse();
|
|
220
|
+
message.id = object.id ?? 0;
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
function isSet(value) {
|
|
225
|
+
return value !== null && value !== undefined;
|
|
226
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.updateloan";
|
|
3
|
+
export interface updateLoanRequest {
|
|
4
|
+
loan_id: number;
|
|
5
|
+
status: string;
|
|
6
|
+
is_auto_processing: number;
|
|
7
|
+
}
|
|
8
|
+
export interface updateLoanResponse {
|
|
9
|
+
id: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const updateLoanRequest: {
|
|
12
|
+
encode(message: updateLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateLoanRequest;
|
|
14
|
+
fromJSON(object: any): updateLoanRequest;
|
|
15
|
+
toJSON(message: updateLoanRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<updateLoanRequest>, I>>(base?: I): updateLoanRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<updateLoanRequest>, I>>(object: I): updateLoanRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const updateLoanResponse: {
|
|
20
|
+
encode(message: updateLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateLoanResponse;
|
|
22
|
+
fromJSON(object: any): updateLoanResponse;
|
|
23
|
+
toJSON(message: updateLoanResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<updateLoanResponse>, I>>(base?: I): updateLoanResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<updateLoanResponse>, I>>(object: I): updateLoanResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,147 @@
|
|
|
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.4
|
|
6
|
+
// source: loans/updateloan.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.updateLoanResponse = exports.updateLoanRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.updateloan";
|
|
15
|
+
function createBaseupdateLoanRequest() {
|
|
16
|
+
return { loan_id: 0, status: "", is_auto_processing: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.updateLoanRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loan_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loan_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.status !== "") {
|
|
24
|
+
writer.uint32(18).string(message.status);
|
|
25
|
+
}
|
|
26
|
+
if (message.is_auto_processing !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.is_auto_processing);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseupdateLoanRequest();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 8) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.loan_id = reader.int32();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.status = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 24) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.is_auto_processing = reader.int32();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
67
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
68
|
+
is_auto_processing: isSet(object.is_auto_processing) ? globalThis.Number(object.is_auto_processing) : 0,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.loan_id !== 0) {
|
|
74
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
75
|
+
}
|
|
76
|
+
if (message.status !== "") {
|
|
77
|
+
obj.status = message.status;
|
|
78
|
+
}
|
|
79
|
+
if (message.is_auto_processing !== 0) {
|
|
80
|
+
obj.is_auto_processing = Math.round(message.is_auto_processing);
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.updateLoanRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseupdateLoanRequest();
|
|
89
|
+
message.loan_id = object.loan_id ?? 0;
|
|
90
|
+
message.status = object.status ?? "";
|
|
91
|
+
message.is_auto_processing = object.is_auto_processing ?? 0;
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBaseupdateLoanResponse() {
|
|
96
|
+
return { id: 0 };
|
|
97
|
+
}
|
|
98
|
+
exports.updateLoanResponse = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.id !== 0) {
|
|
101
|
+
writer.uint32(8).int32(message.id);
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBaseupdateLoanResponse();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
if (tag !== 8) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.id = reader.int32();
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
},
|
|
126
|
+
fromJSON(object) {
|
|
127
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.id !== 0) {
|
|
132
|
+
obj.id = Math.round(message.id);
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.updateLoanResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBaseupdateLoanResponse();
|
|
141
|
+
message.id = object.id ?? 0;
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
function isSet(value) {
|
|
146
|
+
return value !== null && value !== undefined;
|
|
147
|
+
}
|