@stashfin/grpc 1.0.33 → 1.1.38
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/README.md +74 -0
- package/package.json +1 -1
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +14 -0
- package/src/proto/customers/getcustomerbyid.proto +30 -0
- package/src/proto/customers/getdashboard.proto +46 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getprofessionalinfo.proto +13 -0
- package/src/proto/customers/getprofile.proto +13 -0
- package/src/proto/customers/getstep.proto +32 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step1.proto +32 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step2.proto +28 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +57 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +15 -0
- package/src/proto/loans/calculateemi.proto +15 -0
- package/src/proto/loans/creditlimit.proto +10 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +19 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +215 -0
- package/src/ts/customers/getcustomerbyid.ts +475 -0
- package/src/ts/customers/getdashboard.ts +711 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getprofessionalinfo.ts +183 -0
- package/src/ts/customers/getprofile.ts +199 -0
- package/src/ts/customers/getstep.ts +504 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step1.ts +504 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step2.ts +472 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +745 -0
- package/src/ts/example.ts +294 -0
- package/src/ts/google/protobuf/timestamp.ts +223 -0
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +248 -0
- package/src/ts/loans/calculateemi.ts +182 -0
- package/src/ts/loans/creditlimit.ts +151 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +195 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- package/ts/customers/getprofile.d.ts +0 -38
- package/ts/customers/getprofile.js +0 -162
- package/ts/customers/getstep.d.ts +0 -78
- package/ts/customers/getstep.js +0 -420
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -304
- package/ts/customers.js +0 -220
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -56
- package/ts/stashcash/debitsc.js +0 -329
- package/ts/stashcash/getscbalance.d.ts +0 -52
- package/ts/stashcash/getscbalance.js +0 -271
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
|
@@ -0,0 +1,214 @@
|
|
|
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/approveloan.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "loans.approveloan";
|
|
11
|
+
|
|
12
|
+
export interface approveLoanRequest {
|
|
13
|
+
bank_id: number;
|
|
14
|
+
amount: number;
|
|
15
|
+
tenure: number;
|
|
16
|
+
customer_id: number;
|
|
17
|
+
ip: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface approveLoanResponse {
|
|
21
|
+
id: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function createBaseapproveLoanRequest(): approveLoanRequest {
|
|
25
|
+
return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "" };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const approveLoanRequest = {
|
|
29
|
+
encode(message: approveLoanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
30
|
+
if (message.bank_id !== 0) {
|
|
31
|
+
writer.uint32(8).int32(message.bank_id);
|
|
32
|
+
}
|
|
33
|
+
if (message.amount !== 0) {
|
|
34
|
+
writer.uint32(16).int32(message.amount);
|
|
35
|
+
}
|
|
36
|
+
if (message.tenure !== 0) {
|
|
37
|
+
writer.uint32(24).int32(message.tenure);
|
|
38
|
+
}
|
|
39
|
+
if (message.customer_id !== 0) {
|
|
40
|
+
writer.uint32(32).int32(message.customer_id);
|
|
41
|
+
}
|
|
42
|
+
if (message.ip !== "") {
|
|
43
|
+
writer.uint32(42).string(message.ip);
|
|
44
|
+
}
|
|
45
|
+
return writer;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanRequest {
|
|
49
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
50
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
+
const message = createBaseapproveLoanRequest();
|
|
52
|
+
while (reader.pos < end) {
|
|
53
|
+
const tag = reader.uint32();
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1:
|
|
56
|
+
if (tag !== 8) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message.bank_id = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 2:
|
|
63
|
+
if (tag !== 16) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message.amount = reader.int32();
|
|
68
|
+
continue;
|
|
69
|
+
case 3:
|
|
70
|
+
if (tag !== 24) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message.tenure = reader.int32();
|
|
75
|
+
continue;
|
|
76
|
+
case 4:
|
|
77
|
+
if (tag !== 32) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message.customer_id = reader.int32();
|
|
82
|
+
continue;
|
|
83
|
+
case 5:
|
|
84
|
+
if (tag !== 42) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message.ip = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
reader.skipType(tag & 7);
|
|
95
|
+
}
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
fromJSON(object: any): approveLoanRequest {
|
|
100
|
+
return {
|
|
101
|
+
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
102
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
103
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
104
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
105
|
+
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
toJSON(message: approveLoanRequest): unknown {
|
|
110
|
+
const obj: any = {};
|
|
111
|
+
if (message.bank_id !== 0) {
|
|
112
|
+
obj.bank_id = Math.round(message.bank_id);
|
|
113
|
+
}
|
|
114
|
+
if (message.amount !== 0) {
|
|
115
|
+
obj.amount = Math.round(message.amount);
|
|
116
|
+
}
|
|
117
|
+
if (message.tenure !== 0) {
|
|
118
|
+
obj.tenure = Math.round(message.tenure);
|
|
119
|
+
}
|
|
120
|
+
if (message.customer_id !== 0) {
|
|
121
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
122
|
+
}
|
|
123
|
+
if (message.ip !== "") {
|
|
124
|
+
obj.ip = message.ip;
|
|
125
|
+
}
|
|
126
|
+
return obj;
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
create<I extends Exact<DeepPartial<approveLoanRequest>, I>>(base?: I): approveLoanRequest {
|
|
130
|
+
return approveLoanRequest.fromPartial(base ?? ({} as any));
|
|
131
|
+
},
|
|
132
|
+
fromPartial<I extends Exact<DeepPartial<approveLoanRequest>, I>>(object: I): approveLoanRequest {
|
|
133
|
+
const message = createBaseapproveLoanRequest();
|
|
134
|
+
message.bank_id = object.bank_id ?? 0;
|
|
135
|
+
message.amount = object.amount ?? 0;
|
|
136
|
+
message.tenure = object.tenure ?? 0;
|
|
137
|
+
message.customer_id = object.customer_id ?? 0;
|
|
138
|
+
message.ip = object.ip ?? "";
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
function createBaseapproveLoanResponse(): approveLoanResponse {
|
|
144
|
+
return { id: 0 };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export const approveLoanResponse = {
|
|
148
|
+
encode(message: approveLoanResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
149
|
+
if (message.id !== 0) {
|
|
150
|
+
writer.uint32(8).int32(message.id);
|
|
151
|
+
}
|
|
152
|
+
return writer;
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanResponse {
|
|
156
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
157
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
158
|
+
const message = createBaseapproveLoanResponse();
|
|
159
|
+
while (reader.pos < end) {
|
|
160
|
+
const tag = reader.uint32();
|
|
161
|
+
switch (tag >>> 3) {
|
|
162
|
+
case 1:
|
|
163
|
+
if (tag !== 8) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
message.id = reader.int32();
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
reader.skipType(tag & 7);
|
|
174
|
+
}
|
|
175
|
+
return message;
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
fromJSON(object: any): approveLoanResponse {
|
|
179
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
toJSON(message: approveLoanResponse): unknown {
|
|
183
|
+
const obj: any = {};
|
|
184
|
+
if (message.id !== 0) {
|
|
185
|
+
obj.id = Math.round(message.id);
|
|
186
|
+
}
|
|
187
|
+
return obj;
|
|
188
|
+
},
|
|
189
|
+
|
|
190
|
+
create<I extends Exact<DeepPartial<approveLoanResponse>, I>>(base?: I): approveLoanResponse {
|
|
191
|
+
return approveLoanResponse.fromPartial(base ?? ({} as any));
|
|
192
|
+
},
|
|
193
|
+
fromPartial<I extends Exact<DeepPartial<approveLoanResponse>, I>>(object: I): approveLoanResponse {
|
|
194
|
+
const message = createBaseapproveLoanResponse();
|
|
195
|
+
message.id = object.id ?? 0;
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
201
|
+
|
|
202
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
203
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
204
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
205
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
206
|
+
: Partial<T>;
|
|
207
|
+
|
|
208
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
209
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
210
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
211
|
+
|
|
212
|
+
function isSet(value: any): boolean {
|
|
213
|
+
return value !== null && value !== undefined;
|
|
214
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
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/banklist.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "loans.banklist";
|
|
11
|
+
|
|
12
|
+
export interface bankListRequest {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface bankListResponse {
|
|
16
|
+
data: bankListResponse_Field[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface bankListResponse_Field {
|
|
20
|
+
id: number;
|
|
21
|
+
account_number: number;
|
|
22
|
+
bank_name: string;
|
|
23
|
+
ifsc_code: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function createBasebankListRequest(): bankListRequest {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const bankListRequest = {
|
|
31
|
+
encode(_: bankListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
32
|
+
return writer;
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bankListRequest {
|
|
36
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
+
const message = createBasebankListRequest();
|
|
39
|
+
while (reader.pos < end) {
|
|
40
|
+
const tag = reader.uint32();
|
|
41
|
+
switch (tag >>> 3) {
|
|
42
|
+
}
|
|
43
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
reader.skipType(tag & 7);
|
|
47
|
+
}
|
|
48
|
+
return message;
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
fromJSON(_: any): bankListRequest {
|
|
52
|
+
return {};
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
toJSON(_: bankListRequest): unknown {
|
|
56
|
+
const obj: any = {};
|
|
57
|
+
return obj;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
create<I extends Exact<DeepPartial<bankListRequest>, I>>(base?: I): bankListRequest {
|
|
61
|
+
return bankListRequest.fromPartial(base ?? ({} as any));
|
|
62
|
+
},
|
|
63
|
+
fromPartial<I extends Exact<DeepPartial<bankListRequest>, I>>(_: I): bankListRequest {
|
|
64
|
+
const message = createBasebankListRequest();
|
|
65
|
+
return message;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
function createBasebankListResponse(): bankListResponse {
|
|
70
|
+
return { data: [] };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const bankListResponse = {
|
|
74
|
+
encode(message: bankListResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
75
|
+
for (const v of message.data) {
|
|
76
|
+
bankListResponse_Field.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
77
|
+
}
|
|
78
|
+
return writer;
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bankListResponse {
|
|
82
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
83
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
84
|
+
const message = createBasebankListResponse();
|
|
85
|
+
while (reader.pos < end) {
|
|
86
|
+
const tag = reader.uint32();
|
|
87
|
+
switch (tag >>> 3) {
|
|
88
|
+
case 2:
|
|
89
|
+
if (tag !== 18) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message.data.push(bankListResponse_Field.decode(reader, reader.uint32()));
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
reader.skipType(tag & 7);
|
|
100
|
+
}
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
fromJSON(object: any): bankListResponse {
|
|
105
|
+
return {
|
|
106
|
+
data: globalThis.Array.isArray(object?.data)
|
|
107
|
+
? object.data.map((e: any) => bankListResponse_Field.fromJSON(e))
|
|
108
|
+
: [],
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
toJSON(message: bankListResponse): unknown {
|
|
113
|
+
const obj: any = {};
|
|
114
|
+
if (message.data?.length) {
|
|
115
|
+
obj.data = message.data.map((e) => bankListResponse_Field.toJSON(e));
|
|
116
|
+
}
|
|
117
|
+
return obj;
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
create<I extends Exact<DeepPartial<bankListResponse>, I>>(base?: I): bankListResponse {
|
|
121
|
+
return bankListResponse.fromPartial(base ?? ({} as any));
|
|
122
|
+
},
|
|
123
|
+
fromPartial<I extends Exact<DeepPartial<bankListResponse>, I>>(object: I): bankListResponse {
|
|
124
|
+
const message = createBasebankListResponse();
|
|
125
|
+
message.data = object.data?.map((e) => bankListResponse_Field.fromPartial(e)) || [];
|
|
126
|
+
return message;
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
function createBasebankListResponse_Field(): bankListResponse_Field {
|
|
131
|
+
return { id: 0, account_number: 0, bank_name: "", ifsc_code: 0 };
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export const bankListResponse_Field = {
|
|
135
|
+
encode(message: bankListResponse_Field, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
136
|
+
if (message.id !== 0) {
|
|
137
|
+
writer.uint32(8).int32(message.id);
|
|
138
|
+
}
|
|
139
|
+
if (message.account_number !== 0) {
|
|
140
|
+
writer.uint32(16).int32(message.account_number);
|
|
141
|
+
}
|
|
142
|
+
if (message.bank_name !== "") {
|
|
143
|
+
writer.uint32(26).string(message.bank_name);
|
|
144
|
+
}
|
|
145
|
+
if (message.ifsc_code !== 0) {
|
|
146
|
+
writer.uint32(32).int32(message.ifsc_code);
|
|
147
|
+
}
|
|
148
|
+
return writer;
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bankListResponse_Field {
|
|
152
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
153
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
154
|
+
const message = createBasebankListResponse_Field();
|
|
155
|
+
while (reader.pos < end) {
|
|
156
|
+
const tag = reader.uint32();
|
|
157
|
+
switch (tag >>> 3) {
|
|
158
|
+
case 1:
|
|
159
|
+
if (tag !== 8) {
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
message.id = reader.int32();
|
|
164
|
+
continue;
|
|
165
|
+
case 2:
|
|
166
|
+
if (tag !== 16) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
message.account_number = reader.int32();
|
|
171
|
+
continue;
|
|
172
|
+
case 3:
|
|
173
|
+
if (tag !== 26) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
message.bank_name = reader.string();
|
|
178
|
+
continue;
|
|
179
|
+
case 4:
|
|
180
|
+
if (tag !== 32) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
message.ifsc_code = reader.int32();
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
reader.skipType(tag & 7);
|
|
191
|
+
}
|
|
192
|
+
return message;
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
fromJSON(object: any): bankListResponse_Field {
|
|
196
|
+
return {
|
|
197
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
198
|
+
account_number: isSet(object.account_number) ? globalThis.Number(object.account_number) : 0,
|
|
199
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
200
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.Number(object.ifsc_code) : 0,
|
|
201
|
+
};
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
toJSON(message: bankListResponse_Field): unknown {
|
|
205
|
+
const obj: any = {};
|
|
206
|
+
if (message.id !== 0) {
|
|
207
|
+
obj.id = Math.round(message.id);
|
|
208
|
+
}
|
|
209
|
+
if (message.account_number !== 0) {
|
|
210
|
+
obj.account_number = Math.round(message.account_number);
|
|
211
|
+
}
|
|
212
|
+
if (message.bank_name !== "") {
|
|
213
|
+
obj.bank_name = message.bank_name;
|
|
214
|
+
}
|
|
215
|
+
if (message.ifsc_code !== 0) {
|
|
216
|
+
obj.ifsc_code = Math.round(message.ifsc_code);
|
|
217
|
+
}
|
|
218
|
+
return obj;
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
create<I extends Exact<DeepPartial<bankListResponse_Field>, I>>(base?: I): bankListResponse_Field {
|
|
222
|
+
return bankListResponse_Field.fromPartial(base ?? ({} as any));
|
|
223
|
+
},
|
|
224
|
+
fromPartial<I extends Exact<DeepPartial<bankListResponse_Field>, I>>(object: I): bankListResponse_Field {
|
|
225
|
+
const message = createBasebankListResponse_Field();
|
|
226
|
+
message.id = object.id ?? 0;
|
|
227
|
+
message.account_number = object.account_number ?? 0;
|
|
228
|
+
message.bank_name = object.bank_name ?? "";
|
|
229
|
+
message.ifsc_code = object.ifsc_code ?? 0;
|
|
230
|
+
return message;
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
235
|
+
|
|
236
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
237
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
238
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
239
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
240
|
+
: Partial<T>;
|
|
241
|
+
|
|
242
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
243
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
244
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
245
|
+
|
|
246
|
+
function isSet(value: any): boolean {
|
|
247
|
+
return value !== null && value !== undefined;
|
|
248
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
loc_limit: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface calculateEmiResponse {
|
|
17
|
+
disbursal_amount: number;
|
|
18
|
+
tenure: number;
|
|
19
|
+
thirdparty_amount: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function createBasecalculateEmiRequest(): calculateEmiRequest {
|
|
23
|
+
return { loc_limit: 0 };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const calculateEmiRequest = {
|
|
27
|
+
encode(message: calculateEmiRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
28
|
+
if (message.loc_limit !== 0) {
|
|
29
|
+
writer.uint32(8).int32(message.loc_limit);
|
|
30
|
+
}
|
|
31
|
+
return writer;
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiRequest {
|
|
35
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37
|
+
const message = createBasecalculateEmiRequest();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1:
|
|
42
|
+
if (tag !== 8) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message.loc_limit = reader.int32();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
fromJSON(object: any): calculateEmiRequest {
|
|
58
|
+
return { loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0 };
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
toJSON(message: calculateEmiRequest): unknown {
|
|
62
|
+
const obj: any = {};
|
|
63
|
+
if (message.loc_limit !== 0) {
|
|
64
|
+
obj.loc_limit = Math.round(message.loc_limit);
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
create<I extends Exact<DeepPartial<calculateEmiRequest>, I>>(base?: I): calculateEmiRequest {
|
|
70
|
+
return calculateEmiRequest.fromPartial(base ?? ({} as any));
|
|
71
|
+
},
|
|
72
|
+
fromPartial<I extends Exact<DeepPartial<calculateEmiRequest>, I>>(object: I): calculateEmiRequest {
|
|
73
|
+
const message = createBasecalculateEmiRequest();
|
|
74
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
function createBasecalculateEmiResponse(): calculateEmiResponse {
|
|
80
|
+
return { disbursal_amount: 0, tenure: 0, thirdparty_amount: 0 };
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const calculateEmiResponse = {
|
|
84
|
+
encode(message: calculateEmiResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
85
|
+
if (message.disbursal_amount !== 0) {
|
|
86
|
+
writer.uint32(8).int32(message.disbursal_amount);
|
|
87
|
+
}
|
|
88
|
+
if (message.tenure !== 0) {
|
|
89
|
+
writer.uint32(16).int32(message.tenure);
|
|
90
|
+
}
|
|
91
|
+
if (message.thirdparty_amount !== 0) {
|
|
92
|
+
writer.uint32(24).int32(message.thirdparty_amount);
|
|
93
|
+
}
|
|
94
|
+
return writer;
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): calculateEmiResponse {
|
|
98
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
99
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
100
|
+
const message = createBasecalculateEmiResponse();
|
|
101
|
+
while (reader.pos < end) {
|
|
102
|
+
const tag = reader.uint32();
|
|
103
|
+
switch (tag >>> 3) {
|
|
104
|
+
case 1:
|
|
105
|
+
if (tag !== 8) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message.disbursal_amount = reader.int32();
|
|
110
|
+
continue;
|
|
111
|
+
case 2:
|
|
112
|
+
if (tag !== 16) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message.tenure = reader.int32();
|
|
117
|
+
continue;
|
|
118
|
+
case 3:
|
|
119
|
+
if (tag !== 24) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message.thirdparty_amount = reader.int32();
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
reader.skipType(tag & 7);
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
fromJSON(object: any): calculateEmiResponse {
|
|
135
|
+
return {
|
|
136
|
+
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
137
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
138
|
+
thirdparty_amount: isSet(object.thirdparty_amount) ? globalThis.Number(object.thirdparty_amount) : 0,
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
toJSON(message: calculateEmiResponse): unknown {
|
|
143
|
+
const obj: any = {};
|
|
144
|
+
if (message.disbursal_amount !== 0) {
|
|
145
|
+
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
146
|
+
}
|
|
147
|
+
if (message.tenure !== 0) {
|
|
148
|
+
obj.tenure = Math.round(message.tenure);
|
|
149
|
+
}
|
|
150
|
+
if (message.thirdparty_amount !== 0) {
|
|
151
|
+
obj.thirdparty_amount = Math.round(message.thirdparty_amount);
|
|
152
|
+
}
|
|
153
|
+
return obj;
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
create<I extends Exact<DeepPartial<calculateEmiResponse>, I>>(base?: I): calculateEmiResponse {
|
|
157
|
+
return calculateEmiResponse.fromPartial(base ?? ({} as any));
|
|
158
|
+
},
|
|
159
|
+
fromPartial<I extends Exact<DeepPartial<calculateEmiResponse>, I>>(object: I): calculateEmiResponse {
|
|
160
|
+
const message = createBasecalculateEmiResponse();
|
|
161
|
+
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
162
|
+
message.tenure = object.tenure ?? 0;
|
|
163
|
+
message.thirdparty_amount = object.thirdparty_amount ?? 0;
|
|
164
|
+
return message;
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
169
|
+
|
|
170
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
171
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
172
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
173
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
174
|
+
: Partial<T>;
|
|
175
|
+
|
|
176
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
177
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
178
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
179
|
+
|
|
180
|
+
function isSet(value: any): boolean {
|
|
181
|
+
return value !== null && value !== undefined;
|
|
182
|
+
}
|