@stashfin/grpc 1.2.54 → 1.2.59
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 +3 -3
- 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/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/forgotmpin.d.ts +36 -0
- package/ts/customers/forgotmpin.js +133 -0
- package/ts/customers/forgotmpinotp.d.ts +34 -0
- package/ts/customers/forgotmpinotp.js +104 -0
- package/ts/customers/getbankaccountdetails.d.ts +36 -0
- package/ts/customers/getbankaccountdetails.js +134 -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/getcustomerbyid.d.ts +55 -0
- package/ts/customers/getcustomerbyid.js +421 -0
- package/ts/customers/getdashboard.d.ts +91 -0
- package/ts/customers/getdashboard.js +618 -0
- package/ts/customers/getdashboardmaincard.d.ts +69 -0
- package/ts/customers/getdashboardmaincard.js +520 -0
- package/ts/customers/getkycweburl.d.ts +34 -0
- package/ts/customers/getkycweburl.js +104 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +53 -0
- package/ts/customers/getprofile.js +282 -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/profilebasic.d.ts +38 -0
- package/ts/customers/profilebasic.js +161 -0
- package/ts/customers/profileupdatetnc.d.ts +35 -0
- package/ts/customers/profileupdatetnc.js +117 -0
- package/ts/customers/resetmpin.d.ts +36 -0
- package/ts/customers/resetmpin.js +133 -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/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/step1.d.ts +71 -0
- package/ts/customers/step1.js +423 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +67 -0
- package/ts/customers/step2.js +366 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/updatedigilockertxn.d.ts +37 -0
- package/ts/customers/updatedigilockertxn.js +147 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatehypervergetxn.d.ts +36 -0
- package/ts/customers/updatehypervergetxn.js +133 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -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.d.ts +596 -0
- package/ts/customers.js +428 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/approveloan.d.ts +39 -0
- package/ts/loans/approveloan.js +175 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +51 -0
- package/ts/loans/calculateemi.js +243 -0
- package/ts/loans/creditlimit.d.ts +43 -0
- package/ts/loans/creditlimit.js +247 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/transactionlist.d.ts +50 -0
- package/ts/loans/transactionlist.js +229 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +39 -0
- package/ts/loans/updateloan.js +175 -0
- package/ts/loans.d.ts +126 -0
- package/ts/loans.js +94 -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
- package/README.md +0 -74
- package/src/proto/customers/addaddress.proto +0 -25
- package/src/proto/customers/addbankaccountdetails.proto +0 -13
- package/src/proto/customers/createcustomerreference.proto +0 -21
- package/src/proto/customers/forgotmpin.proto +0 -12
- package/src/proto/customers/forgotmpinotp.proto +0 -10
- package/src/proto/customers/getbankaccountdetails.proto +0 -11
- package/src/proto/customers/getbasicinfo.proto +0 -24
- package/src/proto/customers/getcities.proto +0 -16
- package/src/proto/customers/getcustomerbyid.proto +0 -31
- package/src/proto/customers/getdashboard.proto +0 -47
- package/src/proto/customers/getdashboardmaincard.proto +0 -37
- package/src/proto/customers/getkycweburl.proto +0 -10
- package/src/proto/customers/getprofessionalinfo.proto +0 -22
- package/src/proto/customers/getprofile.proto +0 -22
- package/src/proto/customers/getstates.proto +0 -15
- package/src/proto/customers/getstep.proto +0 -30
- package/src/proto/customers/profilebasic.proto +0 -14
- package/src/proto/customers/profileupdatetnc.proto +0 -11
- package/src/proto/customers/resetmpin.proto +0 -13
- package/src/proto/customers/savebasicdetails.proto +0 -16
- package/src/proto/customers/saveunlocklimit.proto +0 -10
- package/src/proto/customers/sendemailtoken.proto +0 -11
- package/src/proto/customers/sendotp.proto +0 -14
- package/src/proto/customers/setmpin.proto +0 -12
- package/src/proto/customers/step10.proto +0 -34
- package/src/proto/customers/step7.proto +0 -29
- package/src/proto/customers/step8.proto +0 -30
- package/src/proto/customers/step9.proto +0 -36
- package/src/proto/customers/stepstatic.proto +0 -27
- package/src/proto/customers/updatedigilockertxn.proto +0 -13
- package/src/proto/customers/updatedob.proto +0 -13
- package/src/proto/customers/updatehypervergetxn.proto +0 -12
- package/src/proto/customers/verifyemail.proto +0 -11
- package/src/proto/customers/verifympin.proto +0 -13
- package/src/proto/customers/verifyotp.proto +0 -17
- package/src/proto/customers.proto +0 -83
- package/src/proto/example.proto +0 -20
- package/src/proto/loans/approveloan.proto +0 -15
- package/src/proto/loans/banklist.proto +0 -12
- package/src/proto/loans/calculateemi.proto +0 -20
- package/src/proto/loans/creditlimit.proto +0 -18
- package/src/proto/loans/restructureloan.proto +0 -12
- package/src/proto/loans/transactionlist.proto +0 -18
- package/src/proto/loans/updateinstallments.proto +0 -19
- package/src/proto/loans/updateloan.proto +0 -15
- package/src/proto/loans.proto +0 -23
- package/src/proto/stashcash/creditsc.proto +0 -22
- package/src/proto/stashcash/debitsc.proto +0 -27
- package/src/proto/stashcash/getscbalance.proto +0 -21
- package/src/proto/stashcash/getschistory.proto +0 -35
- package/src/proto/stashcash/reversesc.proto +0 -20
- package/src/proto/stashcash.proto +0 -17
- package/src/ts/customers/addaddress.ts +0 -310
- package/src/ts/customers/addbankaccountdetails.ts +0 -184
- package/src/ts/customers/createcustomerreference.ts +0 -276
- package/src/ts/customers/getbankaccountdetails.ts +0 -169
- package/src/ts/customers/getbasicinfo.ts +0 -385
- package/src/ts/customers/getcities.ts +0 -227
- package/src/ts/customers/getcustomerbyid.ts +0 -492
- package/src/ts/customers/getdashboard.ts +0 -728
- package/src/ts/customers/getdashboardmaincard.ts +0 -608
- package/src/ts/customers/getkycweburl.ts +0 -133
- package/src/ts/customers/getprofessionalinfo.ts +0 -344
- package/src/ts/customers/getprofile.ts +0 -338
- package/src/ts/customers/getstates.ts +0 -212
- package/src/ts/customers/getstep.ts +0 -483
- package/src/ts/customers/profilebasic.ts +0 -198
- package/src/ts/customers/profileupdatetnc.ts +0 -148
- package/src/ts/customers/resetmpin.ts +0 -166
- package/src/ts/customers/savebasicdetails.ts +0 -229
- package/src/ts/customers/saveunlocklimit.ts +0 -133
- package/src/ts/customers/sendemailtoken.ts +0 -148
- package/src/ts/customers/sendotp.ts +0 -202
- package/src/ts/customers/setmpin.ts +0 -166
- package/src/ts/customers/step10.ts +0 -544
- package/src/ts/customers/step7.ts +0 -456
- package/src/ts/customers/step8.ts +0 -472
- package/src/ts/customers/step9.ts +0 -578
- package/src/ts/customers/stepstatic.ts +0 -425
- package/src/ts/customers/updatedigilockertxn.ts +0 -182
- package/src/ts/customers/updatehypervergetxn.ts +0 -166
- package/src/ts/customers/verifyemail.ts +0 -148
- package/src/ts/customers/verifympin.ts +0 -184
- package/src/ts/customers/verifyotp.ts +0 -232
- package/src/ts/customers.ts +0 -1038
- package/src/ts/example.ts +0 -294
- package/src/ts/loans/approveloan.ts +0 -214
- package/src/ts/loans/banklist.ts +0 -183
- package/src/ts/loans/calculateemi.ts +0 -295
- package/src/ts/loans/creditlimit.ts +0 -294
- package/src/ts/loans/restructureloan.ts +0 -166
- package/src/ts/loans/transactionlist.ts +0 -281
- package/src/ts/loans/updateinstallments.ts +0 -271
- package/src/ts/loans/updateloan.ts +0 -214
- package/src/ts/loans.ts +0 -221
- package/src/ts/stashcash/creditsc.ts +0 -361
- package/src/ts/stashcash/debitsc.ts +0 -450
- package/src/ts/stashcash/getscbalance.ts +0 -351
- package/src/ts/stashcash/getschistory.ts +0 -566
- package/src/ts/stashcash/reversesc.ts +0 -329
- package/src/ts/stashcash.ts +0 -152
- package/tsconfig.json +0 -18
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.0
|
|
4
|
-
// protoc v3.20.3
|
|
5
|
-
// source: loans/calculateemi.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import _m0 from "protobufjs/minimal";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "loans.calculateemi";
|
|
11
|
-
|
|
12
|
-
export interface calculateEmiRequest {
|
|
13
|
-
amount: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface calculateEmiResponse {
|
|
17
|
-
disbursal_amount: number;
|
|
18
|
-
tenure: number;
|
|
19
|
-
expected_emi: calculateEmiResponse_Field[];
|
|
20
|
-
min_tenure: number;
|
|
21
|
-
max_tenure: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface calculateEmiResponse_Field {
|
|
25
|
-
tenure: number;
|
|
26
|
-
emi_amount: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function createBasecalculateEmiRequest(): calculateEmiRequest {
|
|
30
|
-
return { amount: 0 };
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const calculateEmiRequest = {
|
|
34
|
-
encode(message: calculateEmiRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
35
|
-
if (message.amount !== 0) {
|
|
36
|
-
writer.uint32(8).int32(message.amount);
|
|
37
|
-
}
|
|
38
|
-
return writer;
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiRequest {
|
|
42
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
43
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
|
-
const message = createBasecalculateEmiRequest();
|
|
45
|
-
while (reader.pos < end) {
|
|
46
|
-
const tag = reader.uint32();
|
|
47
|
-
switch (tag >>> 3) {
|
|
48
|
-
case 1:
|
|
49
|
-
if (tag !== 8) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
message.amount = reader.int32();
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
reader.skipType(tag & 7);
|
|
60
|
-
}
|
|
61
|
-
return message;
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
fromJSON(object: any): calculateEmiRequest {
|
|
65
|
-
return { amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0 };
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
toJSON(message: calculateEmiRequest): unknown {
|
|
69
|
-
const obj: any = {};
|
|
70
|
-
if (message.amount !== 0) {
|
|
71
|
-
obj.amount = Math.round(message.amount);
|
|
72
|
-
}
|
|
73
|
-
return obj;
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
create<I extends Exact<DeepPartial<calculateEmiRequest>, I>>(base?: I): calculateEmiRequest {
|
|
77
|
-
return calculateEmiRequest.fromPartial(base ?? ({} as any));
|
|
78
|
-
},
|
|
79
|
-
fromPartial<I extends Exact<DeepPartial<calculateEmiRequest>, I>>(object: I): calculateEmiRequest {
|
|
80
|
-
const message = createBasecalculateEmiRequest();
|
|
81
|
-
message.amount = object.amount ?? 0;
|
|
82
|
-
return message;
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
function createBasecalculateEmiResponse(): calculateEmiResponse {
|
|
87
|
-
return { disbursal_amount: 0, tenure: 0, expected_emi: [], min_tenure: 0, max_tenure: 0 };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export const calculateEmiResponse = {
|
|
91
|
-
encode(message: calculateEmiResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
92
|
-
if (message.disbursal_amount !== 0) {
|
|
93
|
-
writer.uint32(8).int32(message.disbursal_amount);
|
|
94
|
-
}
|
|
95
|
-
if (message.tenure !== 0) {
|
|
96
|
-
writer.uint32(16).int32(message.tenure);
|
|
97
|
-
}
|
|
98
|
-
for (const v of message.expected_emi) {
|
|
99
|
-
calculateEmiResponse_Field.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
100
|
-
}
|
|
101
|
-
if (message.min_tenure !== 0) {
|
|
102
|
-
writer.uint32(32).int32(message.min_tenure);
|
|
103
|
-
}
|
|
104
|
-
if (message.max_tenure !== 0) {
|
|
105
|
-
writer.uint32(40).int32(message.max_tenure);
|
|
106
|
-
}
|
|
107
|
-
return writer;
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiResponse {
|
|
111
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
112
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
|
-
const message = createBasecalculateEmiResponse();
|
|
114
|
-
while (reader.pos < end) {
|
|
115
|
-
const tag = reader.uint32();
|
|
116
|
-
switch (tag >>> 3) {
|
|
117
|
-
case 1:
|
|
118
|
-
if (tag !== 8) {
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
message.disbursal_amount = reader.int32();
|
|
123
|
-
continue;
|
|
124
|
-
case 2:
|
|
125
|
-
if (tag !== 16) {
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
message.tenure = reader.int32();
|
|
130
|
-
continue;
|
|
131
|
-
case 3:
|
|
132
|
-
if (tag !== 26) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
message.expected_emi.push(calculateEmiResponse_Field.decode(reader, reader.uint32()));
|
|
137
|
-
continue;
|
|
138
|
-
case 4:
|
|
139
|
-
if (tag !== 32) {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
message.min_tenure = reader.int32();
|
|
144
|
-
continue;
|
|
145
|
-
case 5:
|
|
146
|
-
if (tag !== 40) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
message.max_tenure = reader.int32();
|
|
151
|
-
continue;
|
|
152
|
-
}
|
|
153
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
reader.skipType(tag & 7);
|
|
157
|
-
}
|
|
158
|
-
return message;
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
fromJSON(object: any): calculateEmiResponse {
|
|
162
|
-
return {
|
|
163
|
-
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
164
|
-
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
165
|
-
expected_emi: globalThis.Array.isArray(object?.expected_emi)
|
|
166
|
-
? object.expected_emi.map((e: any) => calculateEmiResponse_Field.fromJSON(e))
|
|
167
|
-
: [],
|
|
168
|
-
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
169
|
-
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
170
|
-
};
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
toJSON(message: calculateEmiResponse): unknown {
|
|
174
|
-
const obj: any = {};
|
|
175
|
-
if (message.disbursal_amount !== 0) {
|
|
176
|
-
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
177
|
-
}
|
|
178
|
-
if (message.tenure !== 0) {
|
|
179
|
-
obj.tenure = Math.round(message.tenure);
|
|
180
|
-
}
|
|
181
|
-
if (message.expected_emi?.length) {
|
|
182
|
-
obj.expected_emi = message.expected_emi.map((e) => calculateEmiResponse_Field.toJSON(e));
|
|
183
|
-
}
|
|
184
|
-
if (message.min_tenure !== 0) {
|
|
185
|
-
obj.min_tenure = Math.round(message.min_tenure);
|
|
186
|
-
}
|
|
187
|
-
if (message.max_tenure !== 0) {
|
|
188
|
-
obj.max_tenure = Math.round(message.max_tenure);
|
|
189
|
-
}
|
|
190
|
-
return obj;
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
create<I extends Exact<DeepPartial<calculateEmiResponse>, I>>(base?: I): calculateEmiResponse {
|
|
194
|
-
return calculateEmiResponse.fromPartial(base ?? ({} as any));
|
|
195
|
-
},
|
|
196
|
-
fromPartial<I extends Exact<DeepPartial<calculateEmiResponse>, I>>(object: I): calculateEmiResponse {
|
|
197
|
-
const message = createBasecalculateEmiResponse();
|
|
198
|
-
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
199
|
-
message.tenure = object.tenure ?? 0;
|
|
200
|
-
message.expected_emi = object.expected_emi?.map((e) => calculateEmiResponse_Field.fromPartial(e)) || [];
|
|
201
|
-
message.min_tenure = object.min_tenure ?? 0;
|
|
202
|
-
message.max_tenure = object.max_tenure ?? 0;
|
|
203
|
-
return message;
|
|
204
|
-
},
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
function createBasecalculateEmiResponse_Field(): calculateEmiResponse_Field {
|
|
208
|
-
return { tenure: 0, emi_amount: 0 };
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export const calculateEmiResponse_Field = {
|
|
212
|
-
encode(message: calculateEmiResponse_Field, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
213
|
-
if (message.tenure !== 0) {
|
|
214
|
-
writer.uint32(8).int32(message.tenure);
|
|
215
|
-
}
|
|
216
|
-
if (message.emi_amount !== 0) {
|
|
217
|
-
writer.uint32(16).int32(message.emi_amount);
|
|
218
|
-
}
|
|
219
|
-
return writer;
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiResponse_Field {
|
|
223
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
224
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
225
|
-
const message = createBasecalculateEmiResponse_Field();
|
|
226
|
-
while (reader.pos < end) {
|
|
227
|
-
const tag = reader.uint32();
|
|
228
|
-
switch (tag >>> 3) {
|
|
229
|
-
case 1:
|
|
230
|
-
if (tag !== 8) {
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
message.tenure = reader.int32();
|
|
235
|
-
continue;
|
|
236
|
-
case 2:
|
|
237
|
-
if (tag !== 16) {
|
|
238
|
-
break;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
message.emi_amount = reader.int32();
|
|
242
|
-
continue;
|
|
243
|
-
}
|
|
244
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
reader.skipType(tag & 7);
|
|
248
|
-
}
|
|
249
|
-
return message;
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
fromJSON(object: any): calculateEmiResponse_Field {
|
|
253
|
-
return {
|
|
254
|
-
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
255
|
-
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
256
|
-
};
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
toJSON(message: calculateEmiResponse_Field): unknown {
|
|
260
|
-
const obj: any = {};
|
|
261
|
-
if (message.tenure !== 0) {
|
|
262
|
-
obj.tenure = Math.round(message.tenure);
|
|
263
|
-
}
|
|
264
|
-
if (message.emi_amount !== 0) {
|
|
265
|
-
obj.emi_amount = Math.round(message.emi_amount);
|
|
266
|
-
}
|
|
267
|
-
return obj;
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
create<I extends Exact<DeepPartial<calculateEmiResponse_Field>, I>>(base?: I): calculateEmiResponse_Field {
|
|
271
|
-
return calculateEmiResponse_Field.fromPartial(base ?? ({} as any));
|
|
272
|
-
},
|
|
273
|
-
fromPartial<I extends Exact<DeepPartial<calculateEmiResponse_Field>, I>>(object: I): calculateEmiResponse_Field {
|
|
274
|
-
const message = createBasecalculateEmiResponse_Field();
|
|
275
|
-
message.tenure = object.tenure ?? 0;
|
|
276
|
-
message.emi_amount = object.emi_amount ?? 0;
|
|
277
|
-
return message;
|
|
278
|
-
},
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
282
|
-
|
|
283
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
284
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
285
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
286
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
287
|
-
: Partial<T>;
|
|
288
|
-
|
|
289
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
290
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
291
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
292
|
-
|
|
293
|
-
function isSet(value: any): boolean {
|
|
294
|
-
return value !== null && value !== undefined;
|
|
295
|
-
}
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.0
|
|
4
|
-
// protoc v3.20.3
|
|
5
|
-
// source: loans/creditlimit.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import _m0 from "protobufjs/minimal";
|
|
9
|
-
|
|
10
|
-
export const protobufPackage = "loans.creditlimit";
|
|
11
|
-
|
|
12
|
-
export interface creditLimitRequest {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface creditLimitResponse {
|
|
16
|
-
loc_limit: number;
|
|
17
|
-
used_limit: number;
|
|
18
|
-
min_tenure: number;
|
|
19
|
-
max_tenure: number;
|
|
20
|
-
rate_of_interest: number;
|
|
21
|
-
increment_step: number;
|
|
22
|
-
loc_disable: boolean;
|
|
23
|
-
request_max_percentage: number;
|
|
24
|
-
bill_date: string;
|
|
25
|
-
minimum_request_amount: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function createBasecreditLimitRequest(): creditLimitRequest {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const creditLimitRequest = {
|
|
33
|
-
encode(_: creditLimitRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
34
|
-
return writer;
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): creditLimitRequest {
|
|
38
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
39
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
-
const message = createBasecreditLimitRequest();
|
|
41
|
-
while (reader.pos < end) {
|
|
42
|
-
const tag = reader.uint32();
|
|
43
|
-
switch (tag >>> 3) {
|
|
44
|
-
}
|
|
45
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
reader.skipType(tag & 7);
|
|
49
|
-
}
|
|
50
|
-
return message;
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
fromJSON(_: any): creditLimitRequest {
|
|
54
|
-
return {};
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
toJSON(_: creditLimitRequest): unknown {
|
|
58
|
-
const obj: any = {};
|
|
59
|
-
return obj;
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
create<I extends Exact<DeepPartial<creditLimitRequest>, I>>(base?: I): creditLimitRequest {
|
|
63
|
-
return creditLimitRequest.fromPartial(base ?? ({} as any));
|
|
64
|
-
},
|
|
65
|
-
fromPartial<I extends Exact<DeepPartial<creditLimitRequest>, I>>(_: I): creditLimitRequest {
|
|
66
|
-
const message = createBasecreditLimitRequest();
|
|
67
|
-
return message;
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
function createBasecreditLimitResponse(): creditLimitResponse {
|
|
72
|
-
return {
|
|
73
|
-
loc_limit: 0,
|
|
74
|
-
used_limit: 0,
|
|
75
|
-
min_tenure: 0,
|
|
76
|
-
max_tenure: 0,
|
|
77
|
-
rate_of_interest: 0,
|
|
78
|
-
increment_step: 0,
|
|
79
|
-
loc_disable: false,
|
|
80
|
-
request_max_percentage: 0,
|
|
81
|
-
bill_date: "",
|
|
82
|
-
minimum_request_amount: 0,
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export const creditLimitResponse = {
|
|
87
|
-
encode(message: creditLimitResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
88
|
-
if (message.loc_limit !== 0) {
|
|
89
|
-
writer.uint32(8).int32(message.loc_limit);
|
|
90
|
-
}
|
|
91
|
-
if (message.used_limit !== 0) {
|
|
92
|
-
writer.uint32(16).int32(message.used_limit);
|
|
93
|
-
}
|
|
94
|
-
if (message.min_tenure !== 0) {
|
|
95
|
-
writer.uint32(24).int32(message.min_tenure);
|
|
96
|
-
}
|
|
97
|
-
if (message.max_tenure !== 0) {
|
|
98
|
-
writer.uint32(32).int32(message.max_tenure);
|
|
99
|
-
}
|
|
100
|
-
if (message.rate_of_interest !== 0) {
|
|
101
|
-
writer.uint32(40).int32(message.rate_of_interest);
|
|
102
|
-
}
|
|
103
|
-
if (message.increment_step !== 0) {
|
|
104
|
-
writer.uint32(48).int32(message.increment_step);
|
|
105
|
-
}
|
|
106
|
-
if (message.loc_disable !== false) {
|
|
107
|
-
writer.uint32(56).bool(message.loc_disable);
|
|
108
|
-
}
|
|
109
|
-
if (message.request_max_percentage !== 0) {
|
|
110
|
-
writer.uint32(64).int32(message.request_max_percentage);
|
|
111
|
-
}
|
|
112
|
-
if (message.bill_date !== "") {
|
|
113
|
-
writer.uint32(74).string(message.bill_date);
|
|
114
|
-
}
|
|
115
|
-
if (message.minimum_request_amount !== 0) {
|
|
116
|
-
writer.uint32(80).int32(message.minimum_request_amount);
|
|
117
|
-
}
|
|
118
|
-
return writer;
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): creditLimitResponse {
|
|
122
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
123
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
124
|
-
const message = createBasecreditLimitResponse();
|
|
125
|
-
while (reader.pos < end) {
|
|
126
|
-
const tag = reader.uint32();
|
|
127
|
-
switch (tag >>> 3) {
|
|
128
|
-
case 1:
|
|
129
|
-
if (tag !== 8) {
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
message.loc_limit = reader.int32();
|
|
134
|
-
continue;
|
|
135
|
-
case 2:
|
|
136
|
-
if (tag !== 16) {
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
message.used_limit = reader.int32();
|
|
141
|
-
continue;
|
|
142
|
-
case 3:
|
|
143
|
-
if (tag !== 24) {
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
message.min_tenure = reader.int32();
|
|
148
|
-
continue;
|
|
149
|
-
case 4:
|
|
150
|
-
if (tag !== 32) {
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
message.max_tenure = reader.int32();
|
|
155
|
-
continue;
|
|
156
|
-
case 5:
|
|
157
|
-
if (tag !== 40) {
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
message.rate_of_interest = reader.int32();
|
|
162
|
-
continue;
|
|
163
|
-
case 6:
|
|
164
|
-
if (tag !== 48) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
message.increment_step = reader.int32();
|
|
169
|
-
continue;
|
|
170
|
-
case 7:
|
|
171
|
-
if (tag !== 56) {
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
message.loc_disable = reader.bool();
|
|
176
|
-
continue;
|
|
177
|
-
case 8:
|
|
178
|
-
if (tag !== 64) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
message.request_max_percentage = reader.int32();
|
|
183
|
-
continue;
|
|
184
|
-
case 9:
|
|
185
|
-
if (tag !== 74) {
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
message.bill_date = reader.string();
|
|
190
|
-
continue;
|
|
191
|
-
case 10:
|
|
192
|
-
if (tag !== 80) {
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
message.minimum_request_amount = reader.int32();
|
|
197
|
-
continue;
|
|
198
|
-
}
|
|
199
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
200
|
-
break;
|
|
201
|
-
}
|
|
202
|
-
reader.skipType(tag & 7);
|
|
203
|
-
}
|
|
204
|
-
return message;
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
fromJSON(object: any): creditLimitResponse {
|
|
208
|
-
return {
|
|
209
|
-
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
210
|
-
used_limit: isSet(object.used_limit) ? globalThis.Number(object.used_limit) : 0,
|
|
211
|
-
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
212
|
-
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
213
|
-
rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
|
|
214
|
-
increment_step: isSet(object.increment_step) ? globalThis.Number(object.increment_step) : 0,
|
|
215
|
-
loc_disable: isSet(object.loc_disable) ? globalThis.Boolean(object.loc_disable) : false,
|
|
216
|
-
request_max_percentage: isSet(object.request_max_percentage)
|
|
217
|
-
? globalThis.Number(object.request_max_percentage)
|
|
218
|
-
: 0,
|
|
219
|
-
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
220
|
-
minimum_request_amount: isSet(object.minimum_request_amount)
|
|
221
|
-
? globalThis.Number(object.minimum_request_amount)
|
|
222
|
-
: 0,
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
toJSON(message: creditLimitResponse): unknown {
|
|
227
|
-
const obj: any = {};
|
|
228
|
-
if (message.loc_limit !== 0) {
|
|
229
|
-
obj.loc_limit = Math.round(message.loc_limit);
|
|
230
|
-
}
|
|
231
|
-
if (message.used_limit !== 0) {
|
|
232
|
-
obj.used_limit = Math.round(message.used_limit);
|
|
233
|
-
}
|
|
234
|
-
if (message.min_tenure !== 0) {
|
|
235
|
-
obj.min_tenure = Math.round(message.min_tenure);
|
|
236
|
-
}
|
|
237
|
-
if (message.max_tenure !== 0) {
|
|
238
|
-
obj.max_tenure = Math.round(message.max_tenure);
|
|
239
|
-
}
|
|
240
|
-
if (message.rate_of_interest !== 0) {
|
|
241
|
-
obj.rate_of_interest = Math.round(message.rate_of_interest);
|
|
242
|
-
}
|
|
243
|
-
if (message.increment_step !== 0) {
|
|
244
|
-
obj.increment_step = Math.round(message.increment_step);
|
|
245
|
-
}
|
|
246
|
-
if (message.loc_disable !== false) {
|
|
247
|
-
obj.loc_disable = message.loc_disable;
|
|
248
|
-
}
|
|
249
|
-
if (message.request_max_percentage !== 0) {
|
|
250
|
-
obj.request_max_percentage = Math.round(message.request_max_percentage);
|
|
251
|
-
}
|
|
252
|
-
if (message.bill_date !== "") {
|
|
253
|
-
obj.bill_date = message.bill_date;
|
|
254
|
-
}
|
|
255
|
-
if (message.minimum_request_amount !== 0) {
|
|
256
|
-
obj.minimum_request_amount = Math.round(message.minimum_request_amount);
|
|
257
|
-
}
|
|
258
|
-
return obj;
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
create<I extends Exact<DeepPartial<creditLimitResponse>, I>>(base?: I): creditLimitResponse {
|
|
262
|
-
return creditLimitResponse.fromPartial(base ?? ({} as any));
|
|
263
|
-
},
|
|
264
|
-
fromPartial<I extends Exact<DeepPartial<creditLimitResponse>, I>>(object: I): creditLimitResponse {
|
|
265
|
-
const message = createBasecreditLimitResponse();
|
|
266
|
-
message.loc_limit = object.loc_limit ?? 0;
|
|
267
|
-
message.used_limit = object.used_limit ?? 0;
|
|
268
|
-
message.min_tenure = object.min_tenure ?? 0;
|
|
269
|
-
message.max_tenure = object.max_tenure ?? 0;
|
|
270
|
-
message.rate_of_interest = object.rate_of_interest ?? 0;
|
|
271
|
-
message.increment_step = object.increment_step ?? 0;
|
|
272
|
-
message.loc_disable = object.loc_disable ?? false;
|
|
273
|
-
message.request_max_percentage = object.request_max_percentage ?? 0;
|
|
274
|
-
message.bill_date = object.bill_date ?? "";
|
|
275
|
-
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
276
|
-
return message;
|
|
277
|
-
},
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
281
|
-
|
|
282
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
283
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
284
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
285
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
286
|
-
: Partial<T>;
|
|
287
|
-
|
|
288
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
289
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
290
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
291
|
-
|
|
292
|
-
function isSet(value: any): boolean {
|
|
293
|
-
return value !== null && value !== undefined;
|
|
294
|
-
}
|