@stashfin/grpc 1.2.139 → 1.2.140
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 +4 -1
- package/ts/bureau/getbasicdetails.d.ts +57 -0
- package/ts/bureau/getbasicdetails.js +341 -0
- package/ts/bureau/getdemogs.d.ts +113 -0
- package/ts/bureau/getdemogs.js +611 -0
- package/ts/bureau/getreport.d.ts +184 -0
- package/ts/bureau/getreport.js +1581 -0
- package/ts/bureau.d.ts +56 -0
- package/ts/bureau.js +44 -0
- package/ts/colender/disburseLoan.d.ts +44 -0
- package/ts/colender/disburseLoan.js +256 -0
- package/ts/colender/forecloseLoan.d.ts +41 -0
- package/ts/colender/forecloseLoan.js +205 -0
- package/ts/colender/repayLoan.d.ts +48 -0
- package/ts/colender/repayLoan.js +313 -0
- package/ts/colender.d.ts +56 -0
- package/ts/colender.js +44 -0
- package/ts/customers/aa/getbanklist.d.ts +48 -0
- package/ts/customers/aa/getbanklist.js +198 -0
- package/ts/customers/aa/initiate.d.ts +40 -0
- package/ts/customers/aa/initiate.js +209 -0
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/addgstnumber.d.ts +35 -0
- package/ts/customers/addgstnumber.js +117 -0
- package/ts/customers/addsuspendedcustomer.d.ts +36 -0
- package/ts/customers/addsuspendedcustomer.js +133 -0
- package/ts/customers/adduserapps.d.ts +74 -0
- package/ts/customers/adduserapps.js +210 -0
- package/ts/customers/changempin.d.ts +36 -0
- package/ts/customers/changempin.js +133 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/deleteprofile.d.ts +35 -0
- package/ts/customers/deleteprofile.js +120 -0
- package/ts/customers/disablempin.d.ts +34 -0
- package/ts/customers/disablempin.js +104 -0
- package/ts/customers/fetchrcprofile.d.ts +45 -0
- package/ts/customers/fetchrcprofile.js +271 -0
- package/ts/customers/forgotmpin.d.ts +35 -0
- package/ts/customers/forgotmpin.js +117 -0
- package/ts/customers/forgotmpinverify.d.ts +36 -0
- package/ts/customers/forgotmpinverify.js +133 -0
- package/ts/customers/getbankaccountdetails.d.ts +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 +128 -0
- package/ts/customers/getcustomerbyid.js +1411 -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/getdocuments.d.ts +36 -0
- package/ts/customers/getdocuments.js +134 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +54 -0
- package/ts/customers/getprofile.js +296 -0
- package/ts/customers/getselfieetxnid.d.ts +34 -0
- package/ts/customers/getselfieetxnid.js +104 -0
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +69 -0
- package/ts/customers/getstep.js +406 -0
- package/ts/customers/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/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/customers/saveunlocklimit.js +104 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/sendotptoemail.d.ts +35 -0
- package/ts/customers/sendotptoemail.js +117 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -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/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatelocstatus.d.ts +36 -0
- package/ts/customers/updatelocstatus.js +133 -0
- package/ts/customers/updatemobilesendotp.d.ts +35 -0
- package/ts/customers/updatemobilesendotp.js +117 -0
- package/ts/customers/updatemobileverifyotp.d.ts +36 -0
- package/ts/customers/updatemobileverifyotp.js +133 -0
- package/ts/customers/updateokyctxn.d.ts +37 -0
- package/ts/customers/updateokyctxn.js +147 -0
- package/ts/customers/updateselfieetxn.d.ts +36 -0
- package/ts/customers/updateselfieetxn.js +133 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifympin.d.ts +37 -0
- package/ts/customers/verifympin.js +149 -0
- package/ts/customers/verifyotp.d.ts +41 -0
- package/ts/customers/verifyotp.js +205 -0
- package/ts/customers/verifyotptoemail.d.ts +35 -0
- package/ts/customers/verifyotptoemail.js +117 -0
- package/ts/customers.d.ts +764 -0
- package/ts/customers.js +548 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/ts/loans/approveloan.d.ts +40 -0
- package/ts/loans/approveloan.js +189 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +57 -0
- package/ts/loans/calculateemi.js +340 -0
- package/ts/loans/creditlimit.d.ts +51 -0
- package/ts/loans/creditlimit.js +381 -0
- package/ts/loans/futurepaymentmoredetails.d.ts +50 -0
- package/ts/loans/futurepaymentmoredetails.js +230 -0
- package/ts/loans/getcustomerloanstatus.d.ts +34 -0
- package/ts/loans/getcustomerloanstatus.js +104 -0
- package/ts/loans/getloanbyid.d.ts +53 -0
- package/ts/loans/getloanbyid.js +393 -0
- package/ts/loans/getpendingemiamount.d.ts +34 -0
- package/ts/loans/getpendingemiamount.js +104 -0
- package/ts/loans/getsummarystaticfields.d.ts +80 -0
- package/ts/loans/getsummarystaticfields.js +700 -0
- package/ts/loans/loansummary.d.ts +66 -0
- package/ts/loans/loansummary.js +593 -0
- package/ts/loans/paymentallocation.d.ts +37 -0
- package/ts/loans/paymentallocation.js +147 -0
- package/ts/loans/paymenthistory.d.ts +47 -0
- package/ts/loans/paymenthistory.js +188 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/sendemail.d.ts +35 -0
- package/ts/loans/sendemail.js +117 -0
- package/ts/loans/sendnocemail.d.ts +35 -0
- package/ts/loans/sendnocemail.js +117 -0
- package/ts/loans/transactionlist.d.ts +52 -0
- package/ts/loans/transactionlist.js +257 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +39 -0
- package/ts/loans/updateloan.js +175 -0
- package/ts/loans.d.ts +266 -0
- package/ts/loans.js +194 -0
- package/ts/payments.d.ts +239 -0
- package/ts/payments.js +1117 -0
- package/ts/stashcash/creditsc.d.ts +54 -0
- package/ts/stashcash/creditsc.js +301 -0
- package/ts/stashcash/debitsc.d.ts +59 -0
- package/ts/stashcash/debitsc.js +380 -0
- package/ts/stashcash/getscbalance.d.ts +53 -0
- package/ts/stashcash/getscbalance.js +293 -0
- package/ts/stashcash/getschistory.d.ts +73 -0
- package/ts/stashcash/getschistory.js +479 -0
- package/ts/stashcash/reversesc.d.ts +52 -0
- package/ts/stashcash/reversesc.js +273 -0
- package/ts/stashcash.d.ts +84 -0
- package/ts/stashcash.js +64 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getcustomerloanstatus";
|
|
3
|
+
export interface getCustomerLoanStatusRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getCustomerLoanStatusResponse {
|
|
6
|
+
is_loc: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCustomerLoanStatusRequest: {
|
|
9
|
+
encode(_: getCustomerLoanStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerLoanStatusRequest;
|
|
11
|
+
fromJSON(_: any): getCustomerLoanStatusRequest;
|
|
12
|
+
toJSON(_: getCustomerLoanStatusRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<getCustomerLoanStatusRequest>, I>>(base?: I): getCustomerLoanStatusRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerLoanStatusRequest>, I>>(_: I): getCustomerLoanStatusRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const getCustomerLoanStatusResponse: {
|
|
17
|
+
encode(message: getCustomerLoanStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerLoanStatusResponse;
|
|
19
|
+
fromJSON(object: any): getCustomerLoanStatusResponse;
|
|
20
|
+
toJSON(message: getCustomerLoanStatusResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getCustomerLoanStatusResponse>, I>>(base?: I): getCustomerLoanStatusResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerLoanStatusResponse>, I>>(object: I): getCustomerLoanStatusResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.27.3
|
|
6
|
+
// source: loans/getcustomerloanstatus.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.getCustomerLoanStatusResponse = exports.getCustomerLoanStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getcustomerloanstatus";
|
|
15
|
+
function createBasegetCustomerLoanStatusRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getCustomerLoanStatusRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetCustomerLoanStatusRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getCustomerLoanStatusRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetCustomerLoanStatusRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetCustomerLoanStatusResponse() {
|
|
53
|
+
return { is_loc: false };
|
|
54
|
+
}
|
|
55
|
+
exports.getCustomerLoanStatusResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.is_loc !== false) {
|
|
58
|
+
writer.uint32(8).bool(message.is_loc);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBasegetCustomerLoanStatusResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 8) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.is_loc = reader.bool();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { is_loc: isSet(object.is_loc) ? globalThis.Boolean(object.is_loc) : false };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.is_loc !== false) {
|
|
89
|
+
obj.is_loc = message.is_loc;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.getCustomerLoanStatusResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasegetCustomerLoanStatusResponse();
|
|
98
|
+
message.is_loc = object.is_loc ?? false;
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getloanbyid";
|
|
3
|
+
export interface getLoanByIdRequest {
|
|
4
|
+
loan_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getLoanByIdResponse {
|
|
7
|
+
category: string;
|
|
8
|
+
disbursal_amount: number;
|
|
9
|
+
roi: number;
|
|
10
|
+
Loan_disbursal_date: string;
|
|
11
|
+
approved_disbursal_date: string;
|
|
12
|
+
approved_amount: number;
|
|
13
|
+
loan_status: string;
|
|
14
|
+
upfront_interest: number;
|
|
15
|
+
inst_amount: number;
|
|
16
|
+
inst_date: string;
|
|
17
|
+
tenure: number;
|
|
18
|
+
daily_roi: number;
|
|
19
|
+
approval_date: string;
|
|
20
|
+
loan_type: string;
|
|
21
|
+
sub_scheme: string;
|
|
22
|
+
loan_scheme: string;
|
|
23
|
+
program_type: string;
|
|
24
|
+
debt_burden_ratio: number;
|
|
25
|
+
processing_fee: number;
|
|
26
|
+
}
|
|
27
|
+
export declare const getLoanByIdRequest: {
|
|
28
|
+
encode(message: getLoanByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
29
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getLoanByIdRequest;
|
|
30
|
+
fromJSON(object: any): getLoanByIdRequest;
|
|
31
|
+
toJSON(message: getLoanByIdRequest): unknown;
|
|
32
|
+
create<I extends Exact<DeepPartial<getLoanByIdRequest>, I>>(base?: I): getLoanByIdRequest;
|
|
33
|
+
fromPartial<I extends Exact<DeepPartial<getLoanByIdRequest>, I>>(object: I): getLoanByIdRequest;
|
|
34
|
+
};
|
|
35
|
+
export declare const getLoanByIdResponse: {
|
|
36
|
+
encode(message: getLoanByIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getLoanByIdResponse;
|
|
38
|
+
fromJSON(object: any): getLoanByIdResponse;
|
|
39
|
+
toJSON(message: getLoanByIdResponse): unknown;
|
|
40
|
+
create<I extends Exact<DeepPartial<getLoanByIdResponse>, I>>(base?: I): getLoanByIdResponse;
|
|
41
|
+
fromPartial<I extends Exact<DeepPartial<getLoanByIdResponse>, I>>(object: I): getLoanByIdResponse;
|
|
42
|
+
};
|
|
43
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
44
|
+
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 {} ? {
|
|
45
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
46
|
+
} : Partial<T>;
|
|
47
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
48
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
49
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
50
|
+
} & {
|
|
51
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.27.3
|
|
6
|
+
// source: loans/getloanbyid.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.getLoanByIdResponse = exports.getLoanByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.getloanbyid";
|
|
15
|
+
function createBasegetLoanByIdRequest() {
|
|
16
|
+
return { loan_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.getLoanByIdRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loan_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loan_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasegetLoanByIdRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.loan_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.loan_id !== 0) {
|
|
52
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.getLoanByIdRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasegetLoanByIdRequest();
|
|
61
|
+
message.loan_id = object.loan_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasegetLoanByIdResponse() {
|
|
66
|
+
return {
|
|
67
|
+
category: "",
|
|
68
|
+
disbursal_amount: 0,
|
|
69
|
+
roi: 0,
|
|
70
|
+
Loan_disbursal_date: "",
|
|
71
|
+
approved_disbursal_date: "",
|
|
72
|
+
approved_amount: 0,
|
|
73
|
+
loan_status: "",
|
|
74
|
+
upfront_interest: 0,
|
|
75
|
+
inst_amount: 0,
|
|
76
|
+
inst_date: "",
|
|
77
|
+
tenure: 0,
|
|
78
|
+
daily_roi: 0,
|
|
79
|
+
approval_date: "",
|
|
80
|
+
loan_type: "",
|
|
81
|
+
sub_scheme: "",
|
|
82
|
+
loan_scheme: "",
|
|
83
|
+
program_type: "",
|
|
84
|
+
debt_burden_ratio: 0,
|
|
85
|
+
processing_fee: 0,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
exports.getLoanByIdResponse = {
|
|
89
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
90
|
+
if (message.category !== "") {
|
|
91
|
+
writer.uint32(10).string(message.category);
|
|
92
|
+
}
|
|
93
|
+
if (message.disbursal_amount !== 0) {
|
|
94
|
+
writer.uint32(16).int32(message.disbursal_amount);
|
|
95
|
+
}
|
|
96
|
+
if (message.roi !== 0) {
|
|
97
|
+
writer.uint32(29).float(message.roi);
|
|
98
|
+
}
|
|
99
|
+
if (message.Loan_disbursal_date !== "") {
|
|
100
|
+
writer.uint32(34).string(message.Loan_disbursal_date);
|
|
101
|
+
}
|
|
102
|
+
if (message.approved_disbursal_date !== "") {
|
|
103
|
+
writer.uint32(42).string(message.approved_disbursal_date);
|
|
104
|
+
}
|
|
105
|
+
if (message.approved_amount !== 0) {
|
|
106
|
+
writer.uint32(48).int32(message.approved_amount);
|
|
107
|
+
}
|
|
108
|
+
if (message.loan_status !== "") {
|
|
109
|
+
writer.uint32(58).string(message.loan_status);
|
|
110
|
+
}
|
|
111
|
+
if (message.upfront_interest !== 0) {
|
|
112
|
+
writer.uint32(69).float(message.upfront_interest);
|
|
113
|
+
}
|
|
114
|
+
if (message.inst_amount !== 0) {
|
|
115
|
+
writer.uint32(72).int32(message.inst_amount);
|
|
116
|
+
}
|
|
117
|
+
if (message.inst_date !== "") {
|
|
118
|
+
writer.uint32(82).string(message.inst_date);
|
|
119
|
+
}
|
|
120
|
+
if (message.tenure !== 0) {
|
|
121
|
+
writer.uint32(88).int32(message.tenure);
|
|
122
|
+
}
|
|
123
|
+
if (message.daily_roi !== 0) {
|
|
124
|
+
writer.uint32(101).float(message.daily_roi);
|
|
125
|
+
}
|
|
126
|
+
if (message.approval_date !== "") {
|
|
127
|
+
writer.uint32(106).string(message.approval_date);
|
|
128
|
+
}
|
|
129
|
+
if (message.loan_type !== "") {
|
|
130
|
+
writer.uint32(114).string(message.loan_type);
|
|
131
|
+
}
|
|
132
|
+
if (message.sub_scheme !== "") {
|
|
133
|
+
writer.uint32(122).string(message.sub_scheme);
|
|
134
|
+
}
|
|
135
|
+
if (message.loan_scheme !== "") {
|
|
136
|
+
writer.uint32(130).string(message.loan_scheme);
|
|
137
|
+
}
|
|
138
|
+
if (message.program_type !== "") {
|
|
139
|
+
writer.uint32(138).string(message.program_type);
|
|
140
|
+
}
|
|
141
|
+
if (message.debt_burden_ratio !== 0) {
|
|
142
|
+
writer.uint32(149).float(message.debt_burden_ratio);
|
|
143
|
+
}
|
|
144
|
+
if (message.processing_fee !== 0) {
|
|
145
|
+
writer.uint32(152).int32(message.processing_fee);
|
|
146
|
+
}
|
|
147
|
+
return writer;
|
|
148
|
+
},
|
|
149
|
+
decode(input, length) {
|
|
150
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
151
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
|
+
const message = createBasegetLoanByIdResponse();
|
|
153
|
+
while (reader.pos < end) {
|
|
154
|
+
const tag = reader.uint32();
|
|
155
|
+
switch (tag >>> 3) {
|
|
156
|
+
case 1:
|
|
157
|
+
if (tag !== 10) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
message.category = reader.string();
|
|
161
|
+
continue;
|
|
162
|
+
case 2:
|
|
163
|
+
if (tag !== 16) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
message.disbursal_amount = reader.int32();
|
|
167
|
+
continue;
|
|
168
|
+
case 3:
|
|
169
|
+
if (tag !== 29) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
message.roi = reader.float();
|
|
173
|
+
continue;
|
|
174
|
+
case 4:
|
|
175
|
+
if (tag !== 34) {
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
message.Loan_disbursal_date = reader.string();
|
|
179
|
+
continue;
|
|
180
|
+
case 5:
|
|
181
|
+
if (tag !== 42) {
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
message.approved_disbursal_date = reader.string();
|
|
185
|
+
continue;
|
|
186
|
+
case 6:
|
|
187
|
+
if (tag !== 48) {
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
message.approved_amount = reader.int32();
|
|
191
|
+
continue;
|
|
192
|
+
case 7:
|
|
193
|
+
if (tag !== 58) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.loan_status = reader.string();
|
|
197
|
+
continue;
|
|
198
|
+
case 8:
|
|
199
|
+
if (tag !== 69) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
message.upfront_interest = reader.float();
|
|
203
|
+
continue;
|
|
204
|
+
case 9:
|
|
205
|
+
if (tag !== 72) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
message.inst_amount = reader.int32();
|
|
209
|
+
continue;
|
|
210
|
+
case 10:
|
|
211
|
+
if (tag !== 82) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
message.inst_date = reader.string();
|
|
215
|
+
continue;
|
|
216
|
+
case 11:
|
|
217
|
+
if (tag !== 88) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
message.tenure = reader.int32();
|
|
221
|
+
continue;
|
|
222
|
+
case 12:
|
|
223
|
+
if (tag !== 101) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
message.daily_roi = reader.float();
|
|
227
|
+
continue;
|
|
228
|
+
case 13:
|
|
229
|
+
if (tag !== 106) {
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
message.approval_date = reader.string();
|
|
233
|
+
continue;
|
|
234
|
+
case 14:
|
|
235
|
+
if (tag !== 114) {
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
message.loan_type = reader.string();
|
|
239
|
+
continue;
|
|
240
|
+
case 15:
|
|
241
|
+
if (tag !== 122) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
message.sub_scheme = reader.string();
|
|
245
|
+
continue;
|
|
246
|
+
case 16:
|
|
247
|
+
if (tag !== 130) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.loan_scheme = reader.string();
|
|
251
|
+
continue;
|
|
252
|
+
case 17:
|
|
253
|
+
if (tag !== 138) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
message.program_type = reader.string();
|
|
257
|
+
continue;
|
|
258
|
+
case 18:
|
|
259
|
+
if (tag !== 149) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
message.debt_burden_ratio = reader.float();
|
|
263
|
+
continue;
|
|
264
|
+
case 19:
|
|
265
|
+
if (tag !== 152) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.processing_fee = reader.int32();
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
reader.skipType(tag & 7);
|
|
275
|
+
}
|
|
276
|
+
return message;
|
|
277
|
+
},
|
|
278
|
+
fromJSON(object) {
|
|
279
|
+
return {
|
|
280
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
281
|
+
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
282
|
+
roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
|
|
283
|
+
Loan_disbursal_date: isSet(object.Loan_disbursal_date) ? globalThis.String(object.Loan_disbursal_date) : "",
|
|
284
|
+
approved_disbursal_date: isSet(object.approved_disbursal_date)
|
|
285
|
+
? globalThis.String(object.approved_disbursal_date)
|
|
286
|
+
: "",
|
|
287
|
+
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
288
|
+
loan_status: isSet(object.loan_status) ? globalThis.String(object.loan_status) : "",
|
|
289
|
+
upfront_interest: isSet(object.upfront_interest) ? globalThis.Number(object.upfront_interest) : 0,
|
|
290
|
+
inst_amount: isSet(object.inst_amount) ? globalThis.Number(object.inst_amount) : 0,
|
|
291
|
+
inst_date: isSet(object.inst_date) ? globalThis.String(object.inst_date) : "",
|
|
292
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
293
|
+
daily_roi: isSet(object.daily_roi) ? globalThis.Number(object.daily_roi) : 0,
|
|
294
|
+
approval_date: isSet(object.approval_date) ? globalThis.String(object.approval_date) : "",
|
|
295
|
+
loan_type: isSet(object.loan_type) ? globalThis.String(object.loan_type) : "",
|
|
296
|
+
sub_scheme: isSet(object.sub_scheme) ? globalThis.String(object.sub_scheme) : "",
|
|
297
|
+
loan_scheme: isSet(object.loan_scheme) ? globalThis.String(object.loan_scheme) : "",
|
|
298
|
+
program_type: isSet(object.program_type) ? globalThis.String(object.program_type) : "",
|
|
299
|
+
debt_burden_ratio: isSet(object.debt_burden_ratio) ? globalThis.Number(object.debt_burden_ratio) : 0,
|
|
300
|
+
processing_fee: isSet(object.processing_fee) ? globalThis.Number(object.processing_fee) : 0,
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
toJSON(message) {
|
|
304
|
+
const obj = {};
|
|
305
|
+
if (message.category !== "") {
|
|
306
|
+
obj.category = message.category;
|
|
307
|
+
}
|
|
308
|
+
if (message.disbursal_amount !== 0) {
|
|
309
|
+
obj.disbursal_amount = Math.round(message.disbursal_amount);
|
|
310
|
+
}
|
|
311
|
+
if (message.roi !== 0) {
|
|
312
|
+
obj.roi = message.roi;
|
|
313
|
+
}
|
|
314
|
+
if (message.Loan_disbursal_date !== "") {
|
|
315
|
+
obj.Loan_disbursal_date = message.Loan_disbursal_date;
|
|
316
|
+
}
|
|
317
|
+
if (message.approved_disbursal_date !== "") {
|
|
318
|
+
obj.approved_disbursal_date = message.approved_disbursal_date;
|
|
319
|
+
}
|
|
320
|
+
if (message.approved_amount !== 0) {
|
|
321
|
+
obj.approved_amount = Math.round(message.approved_amount);
|
|
322
|
+
}
|
|
323
|
+
if (message.loan_status !== "") {
|
|
324
|
+
obj.loan_status = message.loan_status;
|
|
325
|
+
}
|
|
326
|
+
if (message.upfront_interest !== 0) {
|
|
327
|
+
obj.upfront_interest = message.upfront_interest;
|
|
328
|
+
}
|
|
329
|
+
if (message.inst_amount !== 0) {
|
|
330
|
+
obj.inst_amount = Math.round(message.inst_amount);
|
|
331
|
+
}
|
|
332
|
+
if (message.inst_date !== "") {
|
|
333
|
+
obj.inst_date = message.inst_date;
|
|
334
|
+
}
|
|
335
|
+
if (message.tenure !== 0) {
|
|
336
|
+
obj.tenure = Math.round(message.tenure);
|
|
337
|
+
}
|
|
338
|
+
if (message.daily_roi !== 0) {
|
|
339
|
+
obj.daily_roi = message.daily_roi;
|
|
340
|
+
}
|
|
341
|
+
if (message.approval_date !== "") {
|
|
342
|
+
obj.approval_date = message.approval_date;
|
|
343
|
+
}
|
|
344
|
+
if (message.loan_type !== "") {
|
|
345
|
+
obj.loan_type = message.loan_type;
|
|
346
|
+
}
|
|
347
|
+
if (message.sub_scheme !== "") {
|
|
348
|
+
obj.sub_scheme = message.sub_scheme;
|
|
349
|
+
}
|
|
350
|
+
if (message.loan_scheme !== "") {
|
|
351
|
+
obj.loan_scheme = message.loan_scheme;
|
|
352
|
+
}
|
|
353
|
+
if (message.program_type !== "") {
|
|
354
|
+
obj.program_type = message.program_type;
|
|
355
|
+
}
|
|
356
|
+
if (message.debt_burden_ratio !== 0) {
|
|
357
|
+
obj.debt_burden_ratio = message.debt_burden_ratio;
|
|
358
|
+
}
|
|
359
|
+
if (message.processing_fee !== 0) {
|
|
360
|
+
obj.processing_fee = Math.round(message.processing_fee);
|
|
361
|
+
}
|
|
362
|
+
return obj;
|
|
363
|
+
},
|
|
364
|
+
create(base) {
|
|
365
|
+
return exports.getLoanByIdResponse.fromPartial(base ?? {});
|
|
366
|
+
},
|
|
367
|
+
fromPartial(object) {
|
|
368
|
+
const message = createBasegetLoanByIdResponse();
|
|
369
|
+
message.category = object.category ?? "";
|
|
370
|
+
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
371
|
+
message.roi = object.roi ?? 0;
|
|
372
|
+
message.Loan_disbursal_date = object.Loan_disbursal_date ?? "";
|
|
373
|
+
message.approved_disbursal_date = object.approved_disbursal_date ?? "";
|
|
374
|
+
message.approved_amount = object.approved_amount ?? 0;
|
|
375
|
+
message.loan_status = object.loan_status ?? "";
|
|
376
|
+
message.upfront_interest = object.upfront_interest ?? 0;
|
|
377
|
+
message.inst_amount = object.inst_amount ?? 0;
|
|
378
|
+
message.inst_date = object.inst_date ?? "";
|
|
379
|
+
message.tenure = object.tenure ?? 0;
|
|
380
|
+
message.daily_roi = object.daily_roi ?? 0;
|
|
381
|
+
message.approval_date = object.approval_date ?? "";
|
|
382
|
+
message.loan_type = object.loan_type ?? "";
|
|
383
|
+
message.sub_scheme = object.sub_scheme ?? "";
|
|
384
|
+
message.loan_scheme = object.loan_scheme ?? "";
|
|
385
|
+
message.program_type = object.program_type ?? "";
|
|
386
|
+
message.debt_burden_ratio = object.debt_burden_ratio ?? 0;
|
|
387
|
+
message.processing_fee = object.processing_fee ?? 0;
|
|
388
|
+
return message;
|
|
389
|
+
},
|
|
390
|
+
};
|
|
391
|
+
function isSet(value) {
|
|
392
|
+
return value !== null && value !== undefined;
|
|
393
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getpendingemiamount";
|
|
3
|
+
export interface getPendingEmiAmountRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getPendingEmiAmountResponse {
|
|
6
|
+
pending_amount: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const getPendingEmiAmountRequest: {
|
|
9
|
+
encode(_: getPendingEmiAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPendingEmiAmountRequest;
|
|
11
|
+
fromJSON(_: any): getPendingEmiAmountRequest;
|
|
12
|
+
toJSON(_: getPendingEmiAmountRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<getPendingEmiAmountRequest>, I>>(base?: I): getPendingEmiAmountRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<getPendingEmiAmountRequest>, I>>(_: I): getPendingEmiAmountRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const getPendingEmiAmountResponse: {
|
|
17
|
+
encode(message: getPendingEmiAmountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPendingEmiAmountResponse;
|
|
19
|
+
fromJSON(object: any): getPendingEmiAmountResponse;
|
|
20
|
+
toJSON(message: getPendingEmiAmountResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getPendingEmiAmountResponse>, I>>(base?: I): getPendingEmiAmountResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getPendingEmiAmountResponse>, I>>(object: I): getPendingEmiAmountResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|