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