@stashfin/grpc 1.2.171 → 1.2.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts/bureau/getbasicdetails.js +1 -1
- package/ts/bureau/getdemogs.js +1 -1
- package/ts/bureau/getreport.js +1 -1
- package/ts/bureau.js +1 -1
- package/ts/colender/disburseLoan.d.ts +8 -3
- package/ts/colender/disburseLoan.js +105 -24
- package/ts/colender/forecloseLoan.d.ts +16 -0
- package/ts/colender/forecloseLoan.js +137 -9
- package/ts/colender/repayLoan.d.ts +16 -7
- package/ts/colender/repayLoan.js +117 -95
- package/ts/colender.js +1 -1
- package/ts/customers/aa/getbanklist.js +1 -1
- package/ts/customers/aa/initiate.js +1 -1
- package/ts/customers/addaddress.js +1 -1
- package/ts/customers/addbankaccountdetails.js +1 -1
- package/ts/customers/addfathersname.js +1 -1
- package/ts/customers/addgstnumber.js +1 -1
- package/ts/customers/addmoredetails.d.ts +17 -12
- package/ts/customers/addmoredetails.js +189 -70
- package/ts/customers/addsuspendedcustomer.js +1 -1
- package/ts/customers/adduserapps.js +1 -1
- package/ts/customers/bulksms.js +1 -1
- package/ts/customers/changempin.js +1 -1
- package/ts/customers/createcustomerreference.js +1 -1
- package/ts/customers/deleteprofile.js +1 -1
- package/ts/customers/disablempin.js +1 -1
- package/ts/customers/fetchrcprofile.js +1 -1
- package/ts/customers/forgotmpin.js +1 -1
- package/ts/customers/forgotmpinverify.js +1 -1
- package/ts/customers/getbankaccountdetails.js +1 -1
- package/ts/customers/getbasicinfo.js +1 -1
- package/ts/customers/getcities.js +1 -1
- package/ts/customers/getcompanyaccdetails.js +1 -1
- package/ts/customers/getcustomerbyid.js +1 -1
- package/ts/customers/getdashboard.js +1 -1
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getdocuments.js +1 -1
- package/ts/customers/getlimit.js +1 -1
- package/ts/customers/getoccupationlist.d.ts +34 -0
- package/ts/customers/getoccupationlist.js +105 -0
- package/ts/customers/getprofessionalinfo.js +1 -1
- package/ts/customers/getprofile.js +1 -1
- package/ts/customers/getselfieetxnid.js +1 -1
- package/ts/customers/getstates.js +1 -1
- package/ts/customers/getstep.js +1 -1
- package/ts/customers/logout.js +1 -1
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/savebasicdetails.js +1 -1
- package/ts/customers/saveunlocklimit.js +1 -1
- package/ts/customers/sendotp.js +1 -1
- package/ts/customers/sendotptoemail.js +1 -1
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/skipscreen.js +1 -1
- package/ts/customers/updatecustomerbyid.js +1 -1
- package/ts/customers/updatedlnumber.js +1 -1
- package/ts/customers/updatedob.js +1 -1
- package/ts/customers/updatelocstatus.js +1 -1
- package/ts/customers/updatemobilesendotp.js +1 -1
- package/ts/customers/updatemobileverifyotp.js +1 -1
- package/ts/customers/updateokyctxn.js +1 -1
- package/ts/customers/updateselfieetxn.js +1 -1
- package/ts/customers/updatevehiclenumber.js +1 -1
- package/ts/customers/uploaddocuments.js +1 -1
- package/ts/customers/validatepan.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers/verifyotptoemail.js +1 -1
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +11 -1
- package/ts/example.js +1 -1
- package/ts/growth/processchrpayment.js +1 -1
- package/ts/growth.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.js +1 -1
- package/ts/loans/calculateemi.js +1 -1
- package/ts/loans/creditlimit.js +1 -1
- package/ts/loans/futurepaymentmoredetails.js +1 -1
- package/ts/loans/getbilldetails.js +1 -1
- package/ts/loans/getcustomerloanstatus.js +1 -1
- package/ts/loans/getloanbyid.js +1 -1
- package/ts/loans/getnextdueamount.js +1 -1
- package/ts/loans/getpendingemiamount.js +1 -1
- package/ts/loans/getsummarystaticfields.js +1 -1
- package/ts/loans/loansummary.js +1 -1
- package/ts/loans/paymentallocation.js +1 -1
- package/ts/loans/paymenthistory.js +1 -1
- package/ts/loans/restructureloan.js +1 -1
- package/ts/loans/sendemail.js +1 -1
- package/ts/loans/sendnocemail.js +1 -1
- package/ts/loans/transactionlist.js +1 -1
- package/ts/loans/updateinstallments.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.js +1 -1
- package/ts/payments.js +1 -1
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.js +1 -1
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.28.0
|
|
6
6
|
// source: bureau/getbasicdetails.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/bureau/getdemogs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.28.0
|
|
6
6
|
// source: bureau/getdemogs.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/bureau/getreport.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.28.0
|
|
6
6
|
// source: bureau/getreport.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/bureau.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.28.0
|
|
6
6
|
// source: bureau.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.bureauClient = exports.bureauService = exports.protobufPackage = void 0;
|
|
@@ -3,9 +3,14 @@ export declare const protobufPackage = "colender.disburseLoan";
|
|
|
3
3
|
export interface disburalRequest {
|
|
4
4
|
customer_id: number;
|
|
5
5
|
loan_id: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
disbursal_amount: number;
|
|
7
|
+
approval_amount: number;
|
|
8
|
+
disbursal_date: string;
|
|
9
|
+
disbursal_mode: string;
|
|
10
|
+
tenure: number;
|
|
11
|
+
roi: number;
|
|
12
|
+
daily_roi: number;
|
|
13
|
+
first_emi_date: string;
|
|
9
14
|
}
|
|
10
15
|
export interface disburalResponse {
|
|
11
16
|
status: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.28.0
|
|
6
6
|
// source: colender/disburseLoan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -13,7 +13,18 @@ exports.disburalResponse = exports.disburalRequest = exports.protobufPackage = v
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "colender.disburseLoan";
|
|
15
15
|
function createBasedisburalRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {
|
|
17
|
+
customer_id: 0,
|
|
18
|
+
loan_id: 0,
|
|
19
|
+
disbursal_amount: 0,
|
|
20
|
+
approval_amount: 0,
|
|
21
|
+
disbursal_date: "",
|
|
22
|
+
disbursal_mode: "",
|
|
23
|
+
tenure: 0,
|
|
24
|
+
roi: 0,
|
|
25
|
+
daily_roi: 0,
|
|
26
|
+
first_emi_date: "",
|
|
27
|
+
};
|
|
17
28
|
}
|
|
18
29
|
exports.disburalRequest = {
|
|
19
30
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -23,14 +34,29 @@ exports.disburalRequest = {
|
|
|
23
34
|
if (message.loan_id !== 0) {
|
|
24
35
|
writer.uint32(16).int32(message.loan_id);
|
|
25
36
|
}
|
|
26
|
-
if (message.
|
|
27
|
-
writer.uint32(24).int32(message.
|
|
37
|
+
if (message.disbursal_amount !== 0) {
|
|
38
|
+
writer.uint32(24).int32(message.disbursal_amount);
|
|
39
|
+
}
|
|
40
|
+
if (message.approval_amount !== 0) {
|
|
41
|
+
writer.uint32(32).int32(message.approval_amount);
|
|
42
|
+
}
|
|
43
|
+
if (message.disbursal_date !== "") {
|
|
44
|
+
writer.uint32(42).string(message.disbursal_date);
|
|
45
|
+
}
|
|
46
|
+
if (message.disbursal_mode !== "") {
|
|
47
|
+
writer.uint32(50).string(message.disbursal_mode);
|
|
48
|
+
}
|
|
49
|
+
if (message.tenure !== 0) {
|
|
50
|
+
writer.uint32(56).int32(message.tenure);
|
|
51
|
+
}
|
|
52
|
+
if (message.roi !== 0) {
|
|
53
|
+
writer.uint32(64).int32(message.roi);
|
|
28
54
|
}
|
|
29
|
-
if (message.
|
|
30
|
-
writer.uint32(
|
|
55
|
+
if (message.daily_roi !== 0) {
|
|
56
|
+
writer.uint32(72).int32(message.daily_roi);
|
|
31
57
|
}
|
|
32
|
-
if (message.
|
|
33
|
-
writer.uint32(
|
|
58
|
+
if (message.first_emi_date !== "") {
|
|
59
|
+
writer.uint32(82).string(message.first_emi_date);
|
|
34
60
|
}
|
|
35
61
|
return writer;
|
|
36
62
|
},
|
|
@@ -57,19 +83,49 @@ exports.disburalRequest = {
|
|
|
57
83
|
if (tag !== 24) {
|
|
58
84
|
break;
|
|
59
85
|
}
|
|
60
|
-
message.
|
|
86
|
+
message.disbursal_amount = reader.int32();
|
|
61
87
|
continue;
|
|
62
88
|
case 4:
|
|
63
|
-
if (tag !==
|
|
89
|
+
if (tag !== 32) {
|
|
64
90
|
break;
|
|
65
91
|
}
|
|
66
|
-
message.
|
|
92
|
+
message.approval_amount = reader.int32();
|
|
67
93
|
continue;
|
|
68
94
|
case 5:
|
|
69
95
|
if (tag !== 42) {
|
|
70
96
|
break;
|
|
71
97
|
}
|
|
72
|
-
message.
|
|
98
|
+
message.disbursal_date = reader.string();
|
|
99
|
+
continue;
|
|
100
|
+
case 6:
|
|
101
|
+
if (tag !== 50) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.disbursal_mode = reader.string();
|
|
105
|
+
continue;
|
|
106
|
+
case 7:
|
|
107
|
+
if (tag !== 56) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
message.tenure = reader.int32();
|
|
111
|
+
continue;
|
|
112
|
+
case 8:
|
|
113
|
+
if (tag !== 64) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.roi = reader.int32();
|
|
117
|
+
continue;
|
|
118
|
+
case 9:
|
|
119
|
+
if (tag !== 72) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
message.daily_roi = reader.int32();
|
|
123
|
+
continue;
|
|
124
|
+
case 10:
|
|
125
|
+
if (tag !== 82) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
message.first_emi_date = reader.string();
|
|
73
129
|
continue;
|
|
74
130
|
}
|
|
75
131
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -83,9 +139,14 @@ exports.disburalRequest = {
|
|
|
83
139
|
return {
|
|
84
140
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
85
141
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
142
|
+
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
143
|
+
approval_amount: isSet(object.approval_amount) ? globalThis.Number(object.approval_amount) : 0,
|
|
144
|
+
disbursal_date: isSet(object.disbursal_date) ? globalThis.String(object.disbursal_date) : "",
|
|
145
|
+
disbursal_mode: isSet(object.disbursal_mode) ? globalThis.String(object.disbursal_mode) : "",
|
|
146
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
147
|
+
roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
|
|
148
|
+
daily_roi: isSet(object.daily_roi) ? globalThis.Number(object.daily_roi) : 0,
|
|
149
|
+
first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
|
|
89
150
|
};
|
|
90
151
|
},
|
|
91
152
|
toJSON(message) {
|
|
@@ -96,14 +157,29 @@ exports.disburalRequest = {
|
|
|
96
157
|
if (message.loan_id !== 0) {
|
|
97
158
|
obj.loan_id = Math.round(message.loan_id);
|
|
98
159
|
}
|
|
99
|
-
if (message.
|
|
100
|
-
obj.
|
|
160
|
+
if (message.disbursal_amount !== 0) {
|
|
161
|
+
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
162
|
+
}
|
|
163
|
+
if (message.approval_amount !== 0) {
|
|
164
|
+
obj.approval_amount = Math.round(message.approval_amount);
|
|
165
|
+
}
|
|
166
|
+
if (message.disbursal_date !== "") {
|
|
167
|
+
obj.disbursal_date = message.disbursal_date;
|
|
101
168
|
}
|
|
102
|
-
if (message.
|
|
103
|
-
obj.
|
|
169
|
+
if (message.disbursal_mode !== "") {
|
|
170
|
+
obj.disbursal_mode = message.disbursal_mode;
|
|
104
171
|
}
|
|
105
|
-
if (message.
|
|
106
|
-
obj.
|
|
172
|
+
if (message.tenure !== 0) {
|
|
173
|
+
obj.tenure = Math.round(message.tenure);
|
|
174
|
+
}
|
|
175
|
+
if (message.roi !== 0) {
|
|
176
|
+
obj.roi = Math.round(message.roi);
|
|
177
|
+
}
|
|
178
|
+
if (message.daily_roi !== 0) {
|
|
179
|
+
obj.daily_roi = Math.round(message.daily_roi);
|
|
180
|
+
}
|
|
181
|
+
if (message.first_emi_date !== "") {
|
|
182
|
+
obj.first_emi_date = message.first_emi_date;
|
|
107
183
|
}
|
|
108
184
|
return obj;
|
|
109
185
|
},
|
|
@@ -114,9 +190,14 @@ exports.disburalRequest = {
|
|
|
114
190
|
const message = createBasedisburalRequest();
|
|
115
191
|
message.customer_id = object.customer_id ?? 0;
|
|
116
192
|
message.loan_id = object.loan_id ?? 0;
|
|
117
|
-
message.
|
|
118
|
-
message.
|
|
119
|
-
message.
|
|
193
|
+
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
194
|
+
message.approval_amount = object.approval_amount ?? 0;
|
|
195
|
+
message.disbursal_date = object.disbursal_date ?? "";
|
|
196
|
+
message.disbursal_mode = object.disbursal_mode ?? "";
|
|
197
|
+
message.tenure = object.tenure ?? 0;
|
|
198
|
+
message.roi = object.roi ?? 0;
|
|
199
|
+
message.daily_roi = object.daily_roi ?? 0;
|
|
200
|
+
message.first_emi_date = object.first_emi_date ?? "";
|
|
120
201
|
return message;
|
|
121
202
|
},
|
|
122
203
|
};
|
|
@@ -10,7 +10,15 @@ export interface forecloseRequest {
|
|
|
10
10
|
}
|
|
11
11
|
export interface forecloseResponse {
|
|
12
12
|
query?: string | undefined;
|
|
13
|
+
actionStatus: status | undefined;
|
|
14
|
+
installmentQuery: string[];
|
|
15
|
+
paymentsQuery: string[];
|
|
16
|
+
forecloseQuery: string;
|
|
17
|
+
}
|
|
18
|
+
export interface status {
|
|
13
19
|
status: string;
|
|
20
|
+
error?: string | undefined;
|
|
21
|
+
message: string;
|
|
14
22
|
}
|
|
15
23
|
export declare const forecloseRequest: {
|
|
16
24
|
encode(message: forecloseRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -28,6 +36,14 @@ export declare const forecloseResponse: {
|
|
|
28
36
|
create<I extends Exact<DeepPartial<forecloseResponse>, I>>(base?: I): forecloseResponse;
|
|
29
37
|
fromPartial<I extends Exact<DeepPartial<forecloseResponse>, I>>(object: I): forecloseResponse;
|
|
30
38
|
};
|
|
39
|
+
export declare const status: {
|
|
40
|
+
encode(message: status, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): status;
|
|
42
|
+
fromJSON(object: any): status;
|
|
43
|
+
toJSON(message: status): unknown;
|
|
44
|
+
create<I extends Exact<DeepPartial<status>, I>>(base?: I): status;
|
|
45
|
+
fromPartial<I extends Exact<DeepPartial<status>, I>>(object: I): status;
|
|
46
|
+
};
|
|
31
47
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
32
48
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
33
49
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.28.0
|
|
6
6
|
// source: colender/forecloseLoan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.forecloseResponse = exports.forecloseRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.status = exports.forecloseResponse = exports.forecloseRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "colender.forecloseLoan";
|
|
@@ -135,15 +135,24 @@ exports.forecloseRequest = {
|
|
|
135
135
|
},
|
|
136
136
|
};
|
|
137
137
|
function createBaseforecloseResponse() {
|
|
138
|
-
return { query: undefined,
|
|
138
|
+
return { query: undefined, actionStatus: undefined, installmentQuery: [], paymentsQuery: [], forecloseQuery: "" };
|
|
139
139
|
}
|
|
140
140
|
exports.forecloseResponse = {
|
|
141
141
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
142
142
|
if (message.query !== undefined) {
|
|
143
143
|
writer.uint32(10).string(message.query);
|
|
144
144
|
}
|
|
145
|
-
if (message.
|
|
146
|
-
writer.uint32(18).
|
|
145
|
+
if (message.actionStatus !== undefined) {
|
|
146
|
+
exports.status.encode(message.actionStatus, writer.uint32(18).fork()).ldelim();
|
|
147
|
+
}
|
|
148
|
+
for (const v of message.installmentQuery) {
|
|
149
|
+
writer.uint32(26).string(v);
|
|
150
|
+
}
|
|
151
|
+
for (const v of message.paymentsQuery) {
|
|
152
|
+
writer.uint32(34).string(v);
|
|
153
|
+
}
|
|
154
|
+
if (message.forecloseQuery !== "") {
|
|
155
|
+
writer.uint32(42).string(message.forecloseQuery);
|
|
147
156
|
}
|
|
148
157
|
return writer;
|
|
149
158
|
},
|
|
@@ -164,7 +173,25 @@ exports.forecloseResponse = {
|
|
|
164
173
|
if (tag !== 18) {
|
|
165
174
|
break;
|
|
166
175
|
}
|
|
167
|
-
message.
|
|
176
|
+
message.actionStatus = exports.status.decode(reader, reader.uint32());
|
|
177
|
+
continue;
|
|
178
|
+
case 3:
|
|
179
|
+
if (tag !== 26) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
message.installmentQuery.push(reader.string());
|
|
183
|
+
continue;
|
|
184
|
+
case 4:
|
|
185
|
+
if (tag !== 34) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
message.paymentsQuery.push(reader.string());
|
|
189
|
+
continue;
|
|
190
|
+
case 5:
|
|
191
|
+
if (tag !== 42) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.forecloseQuery = reader.string();
|
|
168
195
|
continue;
|
|
169
196
|
}
|
|
170
197
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -177,7 +204,14 @@ exports.forecloseResponse = {
|
|
|
177
204
|
fromJSON(object) {
|
|
178
205
|
return {
|
|
179
206
|
query: isSet(object.query) ? globalThis.String(object.query) : undefined,
|
|
180
|
-
|
|
207
|
+
actionStatus: isSet(object.actionStatus) ? exports.status.fromJSON(object.actionStatus) : undefined,
|
|
208
|
+
installmentQuery: globalThis.Array.isArray(object?.installmentQuery)
|
|
209
|
+
? object.installmentQuery.map((e) => globalThis.String(e))
|
|
210
|
+
: [],
|
|
211
|
+
paymentsQuery: globalThis.Array.isArray(object?.paymentsQuery)
|
|
212
|
+
? object.paymentsQuery.map((e) => globalThis.String(e))
|
|
213
|
+
: [],
|
|
214
|
+
forecloseQuery: isSet(object.forecloseQuery) ? globalThis.String(object.forecloseQuery) : "",
|
|
181
215
|
};
|
|
182
216
|
},
|
|
183
217
|
toJSON(message) {
|
|
@@ -185,8 +219,17 @@ exports.forecloseResponse = {
|
|
|
185
219
|
if (message.query !== undefined) {
|
|
186
220
|
obj.query = message.query;
|
|
187
221
|
}
|
|
188
|
-
if (message.
|
|
189
|
-
obj.
|
|
222
|
+
if (message.actionStatus !== undefined) {
|
|
223
|
+
obj.actionStatus = exports.status.toJSON(message.actionStatus);
|
|
224
|
+
}
|
|
225
|
+
if (message.installmentQuery?.length) {
|
|
226
|
+
obj.installmentQuery = message.installmentQuery;
|
|
227
|
+
}
|
|
228
|
+
if (message.paymentsQuery?.length) {
|
|
229
|
+
obj.paymentsQuery = message.paymentsQuery;
|
|
230
|
+
}
|
|
231
|
+
if (message.forecloseQuery !== "") {
|
|
232
|
+
obj.forecloseQuery = message.forecloseQuery;
|
|
190
233
|
}
|
|
191
234
|
return obj;
|
|
192
235
|
},
|
|
@@ -196,7 +239,92 @@ exports.forecloseResponse = {
|
|
|
196
239
|
fromPartial(object) {
|
|
197
240
|
const message = createBaseforecloseResponse();
|
|
198
241
|
message.query = object.query ?? undefined;
|
|
242
|
+
message.actionStatus = (object.actionStatus !== undefined && object.actionStatus !== null)
|
|
243
|
+
? exports.status.fromPartial(object.actionStatus)
|
|
244
|
+
: undefined;
|
|
245
|
+
message.installmentQuery = object.installmentQuery?.map((e) => e) || [];
|
|
246
|
+
message.paymentsQuery = object.paymentsQuery?.map((e) => e) || [];
|
|
247
|
+
message.forecloseQuery = object.forecloseQuery ?? "";
|
|
248
|
+
return message;
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
function createBasestatus() {
|
|
252
|
+
return { status: "", error: undefined, message: "" };
|
|
253
|
+
}
|
|
254
|
+
exports.status = {
|
|
255
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
256
|
+
if (message.status !== "") {
|
|
257
|
+
writer.uint32(10).string(message.status);
|
|
258
|
+
}
|
|
259
|
+
if (message.error !== undefined) {
|
|
260
|
+
writer.uint32(18).string(message.error);
|
|
261
|
+
}
|
|
262
|
+
if (message.message !== "") {
|
|
263
|
+
writer.uint32(26).string(message.message);
|
|
264
|
+
}
|
|
265
|
+
return writer;
|
|
266
|
+
},
|
|
267
|
+
decode(input, length) {
|
|
268
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
269
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
270
|
+
const message = createBasestatus();
|
|
271
|
+
while (reader.pos < end) {
|
|
272
|
+
const tag = reader.uint32();
|
|
273
|
+
switch (tag >>> 3) {
|
|
274
|
+
case 1:
|
|
275
|
+
if (tag !== 10) {
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
message.status = reader.string();
|
|
279
|
+
continue;
|
|
280
|
+
case 2:
|
|
281
|
+
if (tag !== 18) {
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
message.error = reader.string();
|
|
285
|
+
continue;
|
|
286
|
+
case 3:
|
|
287
|
+
if (tag !== 26) {
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
message.message = reader.string();
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
reader.skipType(tag & 7);
|
|
297
|
+
}
|
|
298
|
+
return message;
|
|
299
|
+
},
|
|
300
|
+
fromJSON(object) {
|
|
301
|
+
return {
|
|
302
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
303
|
+
error: isSet(object.error) ? globalThis.String(object.error) : undefined,
|
|
304
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
toJSON(message) {
|
|
308
|
+
const obj = {};
|
|
309
|
+
if (message.status !== "") {
|
|
310
|
+
obj.status = message.status;
|
|
311
|
+
}
|
|
312
|
+
if (message.error !== undefined) {
|
|
313
|
+
obj.error = message.error;
|
|
314
|
+
}
|
|
315
|
+
if (message.message !== "") {
|
|
316
|
+
obj.message = message.message;
|
|
317
|
+
}
|
|
318
|
+
return obj;
|
|
319
|
+
},
|
|
320
|
+
create(base) {
|
|
321
|
+
return exports.status.fromPartial(base ?? {});
|
|
322
|
+
},
|
|
323
|
+
fromPartial(object) {
|
|
324
|
+
const message = createBasestatus();
|
|
199
325
|
message.status = object.status ?? "";
|
|
326
|
+
message.error = object.error ?? undefined;
|
|
327
|
+
message.message = object.message ?? "";
|
|
200
328
|
return message;
|
|
201
329
|
},
|
|
202
330
|
};
|
|
@@ -9,15 +9,16 @@ export interface repayRequest {
|
|
|
9
9
|
payment_date: string;
|
|
10
10
|
}
|
|
11
11
|
export interface repayResponse {
|
|
12
|
-
query
|
|
12
|
+
query?: string | undefined;
|
|
13
|
+
actionStatus: status | undefined;
|
|
14
|
+
installmentQuery: string;
|
|
15
|
+
paymentsQuery: string;
|
|
13
16
|
closeLoanQuery?: string | undefined;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r_pif_principal: number;
|
|
17
|
-
r_pif_interest: number;
|
|
18
|
-
r_penalty: number;
|
|
19
|
-
r_pif_penalty: number;
|
|
17
|
+
}
|
|
18
|
+
export interface status {
|
|
20
19
|
status: string;
|
|
20
|
+
error?: string | undefined;
|
|
21
|
+
message: string;
|
|
21
22
|
}
|
|
22
23
|
export declare const repayRequest: {
|
|
23
24
|
encode(message: repayRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -35,6 +36,14 @@ export declare const repayResponse: {
|
|
|
35
36
|
create<I extends Exact<DeepPartial<repayResponse>, I>>(base?: I): repayResponse;
|
|
36
37
|
fromPartial<I extends Exact<DeepPartial<repayResponse>, I>>(object: I): repayResponse;
|
|
37
38
|
};
|
|
39
|
+
export declare const status: {
|
|
40
|
+
encode(message: status, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): status;
|
|
42
|
+
fromJSON(object: any): status;
|
|
43
|
+
toJSON(message: status): unknown;
|
|
44
|
+
create<I extends Exact<DeepPartial<status>, I>>(base?: I): status;
|
|
45
|
+
fromPartial<I extends Exact<DeepPartial<status>, I>>(object: I): status;
|
|
46
|
+
};
|
|
38
47
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
48
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
40
49
|
[K in keyof T]?: DeepPartial<T[K]>;
|