@stashfin/grpc 1.2.338 → 1.2.340
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 +2 -2
- package/ts/customers/getloclimit.d.ts +35 -0
- package/ts/customers/getloclimit.js +120 -0
- package/ts/customers/getprofile.d.ts +2 -0
- package/ts/customers/getprofile.js +32 -2
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/approveloan.d.ts +1 -0
- package/ts/loans/approveloan.js +25 -1
- package/ts/loans/cbloan.d.ts +77 -0
- package/ts/loans/cbloan.js +763 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stashfin/grpc",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.340",
|
|
4
4
|
"description": "Grpc proto manger",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@grpc/grpc-js": "^1.10.9",
|
|
17
17
|
"@protobuf-ts/protoc": "^2.9.4",
|
|
18
|
-
"@stashfin/grpc": "^1.2.
|
|
18
|
+
"@stashfin/grpc": "^1.2.338",
|
|
19
19
|
"@types/long": "^5.0.0",
|
|
20
20
|
"long": "^5.2.3"
|
|
21
21
|
},
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getloclimit";
|
|
3
|
+
export interface getLocLimitRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getLocLimitResponse {
|
|
6
|
+
loc_limit: number;
|
|
7
|
+
max_loc_limit: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const getLocLimitRequest: {
|
|
10
|
+
encode(_: getLocLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getLocLimitRequest;
|
|
12
|
+
fromJSON(_: any): getLocLimitRequest;
|
|
13
|
+
toJSON(_: getLocLimitRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getLocLimitRequest>, I>>(base?: I): getLocLimitRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getLocLimitRequest>, I>>(_: I): getLocLimitRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getLocLimitResponse: {
|
|
18
|
+
encode(message: getLocLimitResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getLocLimitResponse;
|
|
20
|
+
fromJSON(object: any): getLocLimitResponse;
|
|
21
|
+
toJSON(message: getLocLimitResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getLocLimitResponse>, I>>(base?: I): getLocLimitResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getLocLimitResponse>, I>>(object: I): getLocLimitResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,120 @@
|
|
|
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.28.2
|
|
6
|
+
// source: customers/getloclimit.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.getLocLimitResponse = exports.getLocLimitRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getloclimit";
|
|
15
|
+
function createBasegetLocLimitRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getLocLimitRequest = {
|
|
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 = createBasegetLocLimitRequest();
|
|
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.getLocLimitRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetLocLimitRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetLocLimitResponse() {
|
|
53
|
+
return { loc_limit: 0, max_loc_limit: 0 };
|
|
54
|
+
}
|
|
55
|
+
exports.getLocLimitResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.loc_limit !== 0) {
|
|
58
|
+
writer.uint32(13).float(message.loc_limit);
|
|
59
|
+
}
|
|
60
|
+
if (message.max_loc_limit !== 0) {
|
|
61
|
+
writer.uint32(21).float(message.max_loc_limit);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBasegetLocLimitResponse();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
if (tag !== 13) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.loc_limit = reader.float();
|
|
77
|
+
continue;
|
|
78
|
+
case 2:
|
|
79
|
+
if (tag !== 21) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.max_loc_limit = reader.float();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
reader.skipType(tag & 7);
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromJSON(object) {
|
|
93
|
+
return {
|
|
94
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
95
|
+
max_loc_limit: isSet(object.max_loc_limit) ? globalThis.Number(object.max_loc_limit) : 0,
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
if (message.loc_limit !== 0) {
|
|
101
|
+
obj.loc_limit = message.loc_limit;
|
|
102
|
+
}
|
|
103
|
+
if (message.max_loc_limit !== 0) {
|
|
104
|
+
obj.max_loc_limit = message.max_loc_limit;
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.getLocLimitResponse.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBasegetLocLimitResponse();
|
|
113
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
114
|
+
message.max_loc_limit = object.max_loc_limit ?? 0;
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
function isSet(value) {
|
|
119
|
+
return value !== null && value !== undefined;
|
|
120
|
+
}
|
|
@@ -59,6 +59,8 @@ function createBasegetCustomerProfileResponse() {
|
|
|
59
59
|
profile_completion_status: 0,
|
|
60
60
|
category: "",
|
|
61
61
|
pincode: "",
|
|
62
|
+
loc_limit: 0,
|
|
63
|
+
max_loc_limit: 0,
|
|
62
64
|
details: [],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
@@ -88,8 +90,14 @@ exports.getCustomerProfileResponse = {
|
|
|
88
90
|
if (message.pincode !== "") {
|
|
89
91
|
writer.uint32(66).string(message.pincode);
|
|
90
92
|
}
|
|
93
|
+
if (message.loc_limit !== 0) {
|
|
94
|
+
writer.uint32(77).float(message.loc_limit);
|
|
95
|
+
}
|
|
96
|
+
if (message.max_loc_limit !== 0) {
|
|
97
|
+
writer.uint32(85).float(message.max_loc_limit);
|
|
98
|
+
}
|
|
91
99
|
for (const v of message.details) {
|
|
92
|
-
exports.ProfileDetail.encode(v, writer.uint32(
|
|
100
|
+
exports.ProfileDetail.encode(v, writer.uint32(90).fork()).ldelim();
|
|
93
101
|
}
|
|
94
102
|
return writer;
|
|
95
103
|
},
|
|
@@ -149,7 +157,19 @@ exports.getCustomerProfileResponse = {
|
|
|
149
157
|
message.pincode = reader.string();
|
|
150
158
|
continue;
|
|
151
159
|
case 9:
|
|
152
|
-
if (tag !==
|
|
160
|
+
if (tag !== 77) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.loc_limit = reader.float();
|
|
164
|
+
continue;
|
|
165
|
+
case 10:
|
|
166
|
+
if (tag !== 85) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
message.max_loc_limit = reader.float();
|
|
170
|
+
continue;
|
|
171
|
+
case 11:
|
|
172
|
+
if (tag !== 90) {
|
|
153
173
|
break;
|
|
154
174
|
}
|
|
155
175
|
message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
|
|
@@ -174,6 +194,8 @@ exports.getCustomerProfileResponse = {
|
|
|
174
194
|
: 0,
|
|
175
195
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
176
196
|
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
197
|
+
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
198
|
+
max_loc_limit: isSet(object.max_loc_limit) ? globalThis.Number(object.max_loc_limit) : 0,
|
|
177
199
|
details: globalThis.Array.isArray(object?.details)
|
|
178
200
|
? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
|
|
179
201
|
: [],
|
|
@@ -205,6 +227,12 @@ exports.getCustomerProfileResponse = {
|
|
|
205
227
|
if (message.pincode !== "") {
|
|
206
228
|
obj.pincode = message.pincode;
|
|
207
229
|
}
|
|
230
|
+
if (message.loc_limit !== 0) {
|
|
231
|
+
obj.loc_limit = message.loc_limit;
|
|
232
|
+
}
|
|
233
|
+
if (message.max_loc_limit !== 0) {
|
|
234
|
+
obj.max_loc_limit = message.max_loc_limit;
|
|
235
|
+
}
|
|
208
236
|
if (message.details?.length) {
|
|
209
237
|
obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
|
|
210
238
|
}
|
|
@@ -223,6 +251,8 @@ exports.getCustomerProfileResponse = {
|
|
|
223
251
|
message.profile_completion_status = object.profile_completion_status ?? 0;
|
|
224
252
|
message.category = object.category ?? "";
|
|
225
253
|
message.pincode = object.pincode ?? "";
|
|
254
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
255
|
+
message.max_loc_limit = object.max_loc_limit ?? 0;
|
|
226
256
|
message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
|
|
227
257
|
return message;
|
|
228
258
|
},
|
package/ts/customers.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ import { getDashboardRequest, getDashboardResponse } from "./customers/getdashbo
|
|
|
51
51
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
|
|
52
52
|
import { getDocumentsRequest, getDocumentsResponse } from "./customers/getdocuments";
|
|
53
53
|
import { getLimitRequest, getLimitResponse } from "./customers/getlimit";
|
|
54
|
+
import { getLocLimitRequest, getLocLimitResponse } from "./customers/getloclimit";
|
|
54
55
|
import { getOccupationListRequest, getOccupationListResponse } from "./customers/getoccupationlist";
|
|
55
56
|
import { paymentOptionRequest, paymentOptionResponse } from "./customers/getpaymentoptions";
|
|
56
57
|
import { getProfessionalInfoRequest, getProfessionalInfoResponse } from "./customers/getprofessionalinfo";
|
|
@@ -989,6 +990,15 @@ export declare const customersService: {
|
|
|
989
990
|
readonly responseSerialize: (value: getCustomerDetailsResponse) => Buffer;
|
|
990
991
|
readonly responseDeserialize: (value: Buffer) => getCustomerDetailsResponse;
|
|
991
992
|
};
|
|
993
|
+
readonly getLocLimit: {
|
|
994
|
+
readonly path: "/service.customers/getLocLimit";
|
|
995
|
+
readonly requestStream: false;
|
|
996
|
+
readonly responseStream: false;
|
|
997
|
+
readonly requestSerialize: (value: getLocLimitRequest) => Buffer;
|
|
998
|
+
readonly requestDeserialize: (value: Buffer) => getLocLimitRequest;
|
|
999
|
+
readonly responseSerialize: (value: getLocLimitResponse) => Buffer;
|
|
1000
|
+
readonly responseDeserialize: (value: Buffer) => getLocLimitResponse;
|
|
1001
|
+
};
|
|
992
1002
|
};
|
|
993
1003
|
export interface customersServer extends UntypedServiceImplementation {
|
|
994
1004
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1090,6 +1100,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1090
1100
|
syncDecisionEngine: handleUnaryCall<syncDecisionEngineRequest, syncDecisionEngineResponse>;
|
|
1091
1101
|
updateCbStandAloneJourney: handleUnaryCall<updateCbStandAloneJourneyRequest, updateCbStandAloneJourneyResponse>;
|
|
1092
1102
|
getCustomerDetailsbyMobile: handleUnaryCall<getCustomerDetailsRequest, getCustomerDetailsResponse>;
|
|
1103
|
+
getLocLimit: handleUnaryCall<getLocLimitRequest, getLocLimitResponse>;
|
|
1093
1104
|
}
|
|
1094
1105
|
export interface customersClient extends Client {
|
|
1095
1106
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1389,6 +1400,9 @@ export interface customersClient extends Client {
|
|
|
1389
1400
|
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1390
1401
|
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1391
1402
|
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1403
|
+
getLocLimit(request: getLocLimitRequest, callback: (error: ServiceError | null, response: getLocLimitResponse) => void): ClientUnaryCall;
|
|
1404
|
+
getLocLimit(request: getLocLimitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getLocLimitResponse) => void): ClientUnaryCall;
|
|
1405
|
+
getLocLimit(request: getLocLimitRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getLocLimitResponse) => void): ClientUnaryCall;
|
|
1392
1406
|
}
|
|
1393
1407
|
export declare const customersClient: {
|
|
1394
1408
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -60,6 +60,7 @@ const getdashboard_1 = require("./customers/getdashboard");
|
|
|
60
60
|
const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
61
61
|
const getdocuments_1 = require("./customers/getdocuments");
|
|
62
62
|
const getlimit_1 = require("./customers/getlimit");
|
|
63
|
+
const getloclimit_1 = require("./customers/getloclimit");
|
|
63
64
|
const getoccupationlist_1 = require("./customers/getoccupationlist");
|
|
64
65
|
const getpaymentoptions_1 = require("./customers/getpaymentoptions");
|
|
65
66
|
const getprofessionalinfo_1 = require("./customers/getprofessionalinfo");
|
|
@@ -997,5 +998,14 @@ exports.customersService = {
|
|
|
997
998
|
responseSerialize: (value) => Buffer.from(getcustomerdetailsbymobile_1.getCustomerDetailsResponse.encode(value).finish()),
|
|
998
999
|
responseDeserialize: (value) => getcustomerdetailsbymobile_1.getCustomerDetailsResponse.decode(value),
|
|
999
1000
|
},
|
|
1001
|
+
getLocLimit: {
|
|
1002
|
+
path: "/service.customers/getLocLimit",
|
|
1003
|
+
requestStream: false,
|
|
1004
|
+
responseStream: false,
|
|
1005
|
+
requestSerialize: (value) => Buffer.from(getloclimit_1.getLocLimitRequest.encode(value).finish()),
|
|
1006
|
+
requestDeserialize: (value) => getloclimit_1.getLocLimitRequest.decode(value),
|
|
1007
|
+
responseSerialize: (value) => Buffer.from(getloclimit_1.getLocLimitResponse.encode(value).finish()),
|
|
1008
|
+
responseDeserialize: (value) => getloclimit_1.getLocLimitResponse.decode(value),
|
|
1009
|
+
},
|
|
1000
1010
|
};
|
|
1001
1011
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/loans/approveloan.js
CHANGED
|
@@ -13,7 +13,17 @@ exports.approveLoanResponse = exports.approveLoanRequest_Field = exports.approve
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.approveloan";
|
|
15
15
|
function createBaseapproveLoanRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {
|
|
17
|
+
bank_id: 0,
|
|
18
|
+
amount: 0,
|
|
19
|
+
tenure: 0,
|
|
20
|
+
customer_id: 0,
|
|
21
|
+
ip: "",
|
|
22
|
+
addonsData: [],
|
|
23
|
+
latitude: 0,
|
|
24
|
+
longitude: 0,
|
|
25
|
+
is_freedom: undefined,
|
|
26
|
+
};
|
|
17
27
|
}
|
|
18
28
|
exports.approveLoanRequest = {
|
|
19
29
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -41,6 +51,9 @@ exports.approveLoanRequest = {
|
|
|
41
51
|
if (message.longitude !== 0) {
|
|
42
52
|
writer.uint32(69).float(message.longitude);
|
|
43
53
|
}
|
|
54
|
+
if (message.is_freedom !== undefined) {
|
|
55
|
+
writer.uint32(72).bool(message.is_freedom);
|
|
56
|
+
}
|
|
44
57
|
return writer;
|
|
45
58
|
},
|
|
46
59
|
decode(input, length) {
|
|
@@ -98,6 +111,12 @@ exports.approveLoanRequest = {
|
|
|
98
111
|
}
|
|
99
112
|
message.longitude = reader.float();
|
|
100
113
|
continue;
|
|
114
|
+
case 9:
|
|
115
|
+
if (tag !== 72) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.is_freedom = reader.bool();
|
|
119
|
+
continue;
|
|
101
120
|
}
|
|
102
121
|
if ((tag & 7) === 4 || tag === 0) {
|
|
103
122
|
break;
|
|
@@ -118,6 +137,7 @@ exports.approveLoanRequest = {
|
|
|
118
137
|
: [],
|
|
119
138
|
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
120
139
|
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
140
|
+
is_freedom: isSet(object.is_freedom) ? globalThis.Boolean(object.is_freedom) : undefined,
|
|
121
141
|
};
|
|
122
142
|
},
|
|
123
143
|
toJSON(message) {
|
|
@@ -146,6 +166,9 @@ exports.approveLoanRequest = {
|
|
|
146
166
|
if (message.longitude !== 0) {
|
|
147
167
|
obj.longitude = message.longitude;
|
|
148
168
|
}
|
|
169
|
+
if (message.is_freedom !== undefined) {
|
|
170
|
+
obj.is_freedom = message.is_freedom;
|
|
171
|
+
}
|
|
149
172
|
return obj;
|
|
150
173
|
},
|
|
151
174
|
create(base) {
|
|
@@ -161,6 +184,7 @@ exports.approveLoanRequest = {
|
|
|
161
184
|
message.addonsData = object.addonsData?.map((e) => exports.approveLoanRequest_Field.fromPartial(e)) || [];
|
|
162
185
|
message.latitude = object.latitude ?? 0;
|
|
163
186
|
message.longitude = object.longitude ?? 0;
|
|
187
|
+
message.is_freedom = object.is_freedom ?? undefined;
|
|
164
188
|
return message;
|
|
165
189
|
},
|
|
166
190
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.cbloan";
|
|
3
|
+
export interface cbLoanRequest {
|
|
4
|
+
bank_id: number;
|
|
5
|
+
amount: number;
|
|
6
|
+
tenure: number;
|
|
7
|
+
customer_id: number;
|
|
8
|
+
ip: string;
|
|
9
|
+
latitude: number;
|
|
10
|
+
longitude: number;
|
|
11
|
+
builder_fee: number;
|
|
12
|
+
gst: number;
|
|
13
|
+
first_emi: number;
|
|
14
|
+
insurance_worth: number;
|
|
15
|
+
credit_report: number;
|
|
16
|
+
total_amount: number;
|
|
17
|
+
}
|
|
18
|
+
export interface cbLoanResponse {
|
|
19
|
+
gateway_fees: number;
|
|
20
|
+
striked_gateway_fees: number;
|
|
21
|
+
bill_date: string;
|
|
22
|
+
requested_amount: number;
|
|
23
|
+
tenure: number;
|
|
24
|
+
emi_amount: number;
|
|
25
|
+
net_amount_payable: number;
|
|
26
|
+
first_emi_date: string;
|
|
27
|
+
final_disbursal_amount: number;
|
|
28
|
+
upfront_interest: number;
|
|
29
|
+
rate_of_interest: number;
|
|
30
|
+
bill_amount: number;
|
|
31
|
+
total_interest_pay: number;
|
|
32
|
+
effective_annual_rate: number;
|
|
33
|
+
transaction_fee_bill_amount: number;
|
|
34
|
+
processing_fee_plus_gst: number;
|
|
35
|
+
trans_fee_plus_gst: number;
|
|
36
|
+
fee_and_charges: number;
|
|
37
|
+
fee_and_charges_bill: number;
|
|
38
|
+
effective_roi: number;
|
|
39
|
+
effective_annual_roi: number;
|
|
40
|
+
emi_card_description: string;
|
|
41
|
+
bill_card_description: string;
|
|
42
|
+
apr_value: number;
|
|
43
|
+
apr_type: string;
|
|
44
|
+
max_amount: number;
|
|
45
|
+
credit_report_fees?: number | undefined;
|
|
46
|
+
credit_report_actual_fees?: number | undefined;
|
|
47
|
+
plan_id?: number | undefined;
|
|
48
|
+
approved_amount: number;
|
|
49
|
+
discount: number;
|
|
50
|
+
}
|
|
51
|
+
export declare const cbLoanRequest: {
|
|
52
|
+
encode(message: cbLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): cbLoanRequest;
|
|
54
|
+
fromJSON(object: any): cbLoanRequest;
|
|
55
|
+
toJSON(message: cbLoanRequest): unknown;
|
|
56
|
+
create<I extends Exact<DeepPartial<cbLoanRequest>, I>>(base?: I): cbLoanRequest;
|
|
57
|
+
fromPartial<I extends Exact<DeepPartial<cbLoanRequest>, I>>(object: I): cbLoanRequest;
|
|
58
|
+
};
|
|
59
|
+
export declare const cbLoanResponse: {
|
|
60
|
+
encode(message: cbLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
61
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): cbLoanResponse;
|
|
62
|
+
fromJSON(object: any): cbLoanResponse;
|
|
63
|
+
toJSON(message: cbLoanResponse): unknown;
|
|
64
|
+
create<I extends Exact<DeepPartial<cbLoanResponse>, I>>(base?: I): cbLoanResponse;
|
|
65
|
+
fromPartial<I extends Exact<DeepPartial<cbLoanResponse>, I>>(object: I): cbLoanResponse;
|
|
66
|
+
};
|
|
67
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
68
|
+
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 {} ? {
|
|
69
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
70
|
+
} : Partial<T>;
|
|
71
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
72
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
73
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
74
|
+
} & {
|
|
75
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
76
|
+
};
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,763 @@
|
|
|
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.28.2
|
|
6
|
+
// source: loans/cbloan.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.cbLoanResponse = exports.cbLoanRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.cbloan";
|
|
15
|
+
function createBasecbLoanRequest() {
|
|
16
|
+
return {
|
|
17
|
+
bank_id: 0,
|
|
18
|
+
amount: 0,
|
|
19
|
+
tenure: 0,
|
|
20
|
+
customer_id: 0,
|
|
21
|
+
ip: "",
|
|
22
|
+
latitude: 0,
|
|
23
|
+
longitude: 0,
|
|
24
|
+
builder_fee: 0,
|
|
25
|
+
gst: 0,
|
|
26
|
+
first_emi: 0,
|
|
27
|
+
insurance_worth: 0,
|
|
28
|
+
credit_report: 0,
|
|
29
|
+
total_amount: 0,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.cbLoanRequest = {
|
|
33
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
34
|
+
if (message.bank_id !== 0) {
|
|
35
|
+
writer.uint32(8).int32(message.bank_id);
|
|
36
|
+
}
|
|
37
|
+
if (message.amount !== 0) {
|
|
38
|
+
writer.uint32(16).int32(message.amount);
|
|
39
|
+
}
|
|
40
|
+
if (message.tenure !== 0) {
|
|
41
|
+
writer.uint32(24).int32(message.tenure);
|
|
42
|
+
}
|
|
43
|
+
if (message.customer_id !== 0) {
|
|
44
|
+
writer.uint32(32).int32(message.customer_id);
|
|
45
|
+
}
|
|
46
|
+
if (message.ip !== "") {
|
|
47
|
+
writer.uint32(42).string(message.ip);
|
|
48
|
+
}
|
|
49
|
+
if (message.latitude !== 0) {
|
|
50
|
+
writer.uint32(53).float(message.latitude);
|
|
51
|
+
}
|
|
52
|
+
if (message.longitude !== 0) {
|
|
53
|
+
writer.uint32(61).float(message.longitude);
|
|
54
|
+
}
|
|
55
|
+
if (message.builder_fee !== 0) {
|
|
56
|
+
writer.uint32(64).int32(message.builder_fee);
|
|
57
|
+
}
|
|
58
|
+
if (message.gst !== 0) {
|
|
59
|
+
writer.uint32(72).int32(message.gst);
|
|
60
|
+
}
|
|
61
|
+
if (message.first_emi !== 0) {
|
|
62
|
+
writer.uint32(80).int32(message.first_emi);
|
|
63
|
+
}
|
|
64
|
+
if (message.insurance_worth !== 0) {
|
|
65
|
+
writer.uint32(88).int32(message.insurance_worth);
|
|
66
|
+
}
|
|
67
|
+
if (message.credit_report !== 0) {
|
|
68
|
+
writer.uint32(96).int32(message.credit_report);
|
|
69
|
+
}
|
|
70
|
+
if (message.total_amount !== 0) {
|
|
71
|
+
writer.uint32(104).int32(message.total_amount);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasecbLoanRequest();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 8) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.bank_id = reader.int32();
|
|
87
|
+
continue;
|
|
88
|
+
case 2:
|
|
89
|
+
if (tag !== 16) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.amount = reader.int32();
|
|
93
|
+
continue;
|
|
94
|
+
case 3:
|
|
95
|
+
if (tag !== 24) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.tenure = reader.int32();
|
|
99
|
+
continue;
|
|
100
|
+
case 4:
|
|
101
|
+
if (tag !== 32) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.customer_id = reader.int32();
|
|
105
|
+
continue;
|
|
106
|
+
case 5:
|
|
107
|
+
if (tag !== 42) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
message.ip = reader.string();
|
|
111
|
+
continue;
|
|
112
|
+
case 6:
|
|
113
|
+
if (tag !== 53) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.latitude = reader.float();
|
|
117
|
+
continue;
|
|
118
|
+
case 7:
|
|
119
|
+
if (tag !== 61) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
message.longitude = reader.float();
|
|
123
|
+
continue;
|
|
124
|
+
case 8:
|
|
125
|
+
if (tag !== 64) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
message.builder_fee = reader.int32();
|
|
129
|
+
continue;
|
|
130
|
+
case 9:
|
|
131
|
+
if (tag !== 72) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
message.gst = reader.int32();
|
|
135
|
+
continue;
|
|
136
|
+
case 10:
|
|
137
|
+
if (tag !== 80) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
message.first_emi = reader.int32();
|
|
141
|
+
continue;
|
|
142
|
+
case 11:
|
|
143
|
+
if (tag !== 88) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
message.insurance_worth = reader.int32();
|
|
147
|
+
continue;
|
|
148
|
+
case 12:
|
|
149
|
+
if (tag !== 96) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.credit_report = reader.int32();
|
|
153
|
+
continue;
|
|
154
|
+
case 13:
|
|
155
|
+
if (tag !== 104) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.total_amount = reader.int32();
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
reader.skipType(tag & 7);
|
|
165
|
+
}
|
|
166
|
+
return message;
|
|
167
|
+
},
|
|
168
|
+
fromJSON(object) {
|
|
169
|
+
return {
|
|
170
|
+
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
171
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
172
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
173
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
174
|
+
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
175
|
+
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
176
|
+
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
177
|
+
builder_fee: isSet(object.builder_fee) ? globalThis.Number(object.builder_fee) : 0,
|
|
178
|
+
gst: isSet(object.gst) ? globalThis.Number(object.gst) : 0,
|
|
179
|
+
first_emi: isSet(object.first_emi) ? globalThis.Number(object.first_emi) : 0,
|
|
180
|
+
insurance_worth: isSet(object.insurance_worth) ? globalThis.Number(object.insurance_worth) : 0,
|
|
181
|
+
credit_report: isSet(object.credit_report) ? globalThis.Number(object.credit_report) : 0,
|
|
182
|
+
total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
toJSON(message) {
|
|
186
|
+
const obj = {};
|
|
187
|
+
if (message.bank_id !== 0) {
|
|
188
|
+
obj.bank_id = Math.round(message.bank_id);
|
|
189
|
+
}
|
|
190
|
+
if (message.amount !== 0) {
|
|
191
|
+
obj.amount = Math.round(message.amount);
|
|
192
|
+
}
|
|
193
|
+
if (message.tenure !== 0) {
|
|
194
|
+
obj.tenure = Math.round(message.tenure);
|
|
195
|
+
}
|
|
196
|
+
if (message.customer_id !== 0) {
|
|
197
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
198
|
+
}
|
|
199
|
+
if (message.ip !== "") {
|
|
200
|
+
obj.ip = message.ip;
|
|
201
|
+
}
|
|
202
|
+
if (message.latitude !== 0) {
|
|
203
|
+
obj.latitude = message.latitude;
|
|
204
|
+
}
|
|
205
|
+
if (message.longitude !== 0) {
|
|
206
|
+
obj.longitude = message.longitude;
|
|
207
|
+
}
|
|
208
|
+
if (message.builder_fee !== 0) {
|
|
209
|
+
obj.builder_fee = Math.round(message.builder_fee);
|
|
210
|
+
}
|
|
211
|
+
if (message.gst !== 0) {
|
|
212
|
+
obj.gst = Math.round(message.gst);
|
|
213
|
+
}
|
|
214
|
+
if (message.first_emi !== 0) {
|
|
215
|
+
obj.first_emi = Math.round(message.first_emi);
|
|
216
|
+
}
|
|
217
|
+
if (message.insurance_worth !== 0) {
|
|
218
|
+
obj.insurance_worth = Math.round(message.insurance_worth);
|
|
219
|
+
}
|
|
220
|
+
if (message.credit_report !== 0) {
|
|
221
|
+
obj.credit_report = Math.round(message.credit_report);
|
|
222
|
+
}
|
|
223
|
+
if (message.total_amount !== 0) {
|
|
224
|
+
obj.total_amount = Math.round(message.total_amount);
|
|
225
|
+
}
|
|
226
|
+
return obj;
|
|
227
|
+
},
|
|
228
|
+
create(base) {
|
|
229
|
+
return exports.cbLoanRequest.fromPartial(base ?? {});
|
|
230
|
+
},
|
|
231
|
+
fromPartial(object) {
|
|
232
|
+
const message = createBasecbLoanRequest();
|
|
233
|
+
message.bank_id = object.bank_id ?? 0;
|
|
234
|
+
message.amount = object.amount ?? 0;
|
|
235
|
+
message.tenure = object.tenure ?? 0;
|
|
236
|
+
message.customer_id = object.customer_id ?? 0;
|
|
237
|
+
message.ip = object.ip ?? "";
|
|
238
|
+
message.latitude = object.latitude ?? 0;
|
|
239
|
+
message.longitude = object.longitude ?? 0;
|
|
240
|
+
message.builder_fee = object.builder_fee ?? 0;
|
|
241
|
+
message.gst = object.gst ?? 0;
|
|
242
|
+
message.first_emi = object.first_emi ?? 0;
|
|
243
|
+
message.insurance_worth = object.insurance_worth ?? 0;
|
|
244
|
+
message.credit_report = object.credit_report ?? 0;
|
|
245
|
+
message.total_amount = object.total_amount ?? 0;
|
|
246
|
+
return message;
|
|
247
|
+
},
|
|
248
|
+
};
|
|
249
|
+
function createBasecbLoanResponse() {
|
|
250
|
+
return {
|
|
251
|
+
gateway_fees: 0,
|
|
252
|
+
striked_gateway_fees: 0,
|
|
253
|
+
bill_date: "",
|
|
254
|
+
requested_amount: 0,
|
|
255
|
+
tenure: 0,
|
|
256
|
+
emi_amount: 0,
|
|
257
|
+
net_amount_payable: 0,
|
|
258
|
+
first_emi_date: "",
|
|
259
|
+
final_disbursal_amount: 0,
|
|
260
|
+
upfront_interest: 0,
|
|
261
|
+
rate_of_interest: 0,
|
|
262
|
+
bill_amount: 0,
|
|
263
|
+
total_interest_pay: 0,
|
|
264
|
+
effective_annual_rate: 0,
|
|
265
|
+
transaction_fee_bill_amount: 0,
|
|
266
|
+
processing_fee_plus_gst: 0,
|
|
267
|
+
trans_fee_plus_gst: 0,
|
|
268
|
+
fee_and_charges: 0,
|
|
269
|
+
fee_and_charges_bill: 0,
|
|
270
|
+
effective_roi: 0,
|
|
271
|
+
effective_annual_roi: 0,
|
|
272
|
+
emi_card_description: "",
|
|
273
|
+
bill_card_description: "",
|
|
274
|
+
apr_value: 0,
|
|
275
|
+
apr_type: "",
|
|
276
|
+
max_amount: 0,
|
|
277
|
+
credit_report_fees: undefined,
|
|
278
|
+
credit_report_actual_fees: undefined,
|
|
279
|
+
plan_id: undefined,
|
|
280
|
+
approved_amount: 0,
|
|
281
|
+
discount: 0,
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
exports.cbLoanResponse = {
|
|
285
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
286
|
+
if (message.gateway_fees !== 0) {
|
|
287
|
+
writer.uint32(8).int32(message.gateway_fees);
|
|
288
|
+
}
|
|
289
|
+
if (message.striked_gateway_fees !== 0) {
|
|
290
|
+
writer.uint32(16).int32(message.striked_gateway_fees);
|
|
291
|
+
}
|
|
292
|
+
if (message.bill_date !== "") {
|
|
293
|
+
writer.uint32(26).string(message.bill_date);
|
|
294
|
+
}
|
|
295
|
+
if (message.requested_amount !== 0) {
|
|
296
|
+
writer.uint32(32).int32(message.requested_amount);
|
|
297
|
+
}
|
|
298
|
+
if (message.tenure !== 0) {
|
|
299
|
+
writer.uint32(40).int32(message.tenure);
|
|
300
|
+
}
|
|
301
|
+
if (message.emi_amount !== 0) {
|
|
302
|
+
writer.uint32(48).int32(message.emi_amount);
|
|
303
|
+
}
|
|
304
|
+
if (message.net_amount_payable !== 0) {
|
|
305
|
+
writer.uint32(56).int32(message.net_amount_payable);
|
|
306
|
+
}
|
|
307
|
+
if (message.first_emi_date !== "") {
|
|
308
|
+
writer.uint32(66).string(message.first_emi_date);
|
|
309
|
+
}
|
|
310
|
+
if (message.final_disbursal_amount !== 0) {
|
|
311
|
+
writer.uint32(72).int32(message.final_disbursal_amount);
|
|
312
|
+
}
|
|
313
|
+
if (message.upfront_interest !== 0) {
|
|
314
|
+
writer.uint32(85).float(message.upfront_interest);
|
|
315
|
+
}
|
|
316
|
+
if (message.rate_of_interest !== 0) {
|
|
317
|
+
writer.uint32(88).int32(message.rate_of_interest);
|
|
318
|
+
}
|
|
319
|
+
if (message.bill_amount !== 0) {
|
|
320
|
+
writer.uint32(96).int32(message.bill_amount);
|
|
321
|
+
}
|
|
322
|
+
if (message.total_interest_pay !== 0) {
|
|
323
|
+
writer.uint32(104).int32(message.total_interest_pay);
|
|
324
|
+
}
|
|
325
|
+
if (message.effective_annual_rate !== 0) {
|
|
326
|
+
writer.uint32(112).int32(message.effective_annual_rate);
|
|
327
|
+
}
|
|
328
|
+
if (message.transaction_fee_bill_amount !== 0) {
|
|
329
|
+
writer.uint32(120).int32(message.transaction_fee_bill_amount);
|
|
330
|
+
}
|
|
331
|
+
if (message.processing_fee_plus_gst !== 0) {
|
|
332
|
+
writer.uint32(128).int32(message.processing_fee_plus_gst);
|
|
333
|
+
}
|
|
334
|
+
if (message.trans_fee_plus_gst !== 0) {
|
|
335
|
+
writer.uint32(136).int32(message.trans_fee_plus_gst);
|
|
336
|
+
}
|
|
337
|
+
if (message.fee_and_charges !== 0) {
|
|
338
|
+
writer.uint32(144).int32(message.fee_and_charges);
|
|
339
|
+
}
|
|
340
|
+
if (message.fee_and_charges_bill !== 0) {
|
|
341
|
+
writer.uint32(152).int32(message.fee_and_charges_bill);
|
|
342
|
+
}
|
|
343
|
+
if (message.effective_roi !== 0) {
|
|
344
|
+
writer.uint32(160).int32(message.effective_roi);
|
|
345
|
+
}
|
|
346
|
+
if (message.effective_annual_roi !== 0) {
|
|
347
|
+
writer.uint32(168).int32(message.effective_annual_roi);
|
|
348
|
+
}
|
|
349
|
+
if (message.emi_card_description !== "") {
|
|
350
|
+
writer.uint32(178).string(message.emi_card_description);
|
|
351
|
+
}
|
|
352
|
+
if (message.bill_card_description !== "") {
|
|
353
|
+
writer.uint32(186).string(message.bill_card_description);
|
|
354
|
+
}
|
|
355
|
+
if (message.apr_value !== 0) {
|
|
356
|
+
writer.uint32(197).float(message.apr_value);
|
|
357
|
+
}
|
|
358
|
+
if (message.apr_type !== "") {
|
|
359
|
+
writer.uint32(202).string(message.apr_type);
|
|
360
|
+
}
|
|
361
|
+
if (message.max_amount !== 0) {
|
|
362
|
+
writer.uint32(208).int32(message.max_amount);
|
|
363
|
+
}
|
|
364
|
+
if (message.credit_report_fees !== undefined) {
|
|
365
|
+
writer.uint32(216).int32(message.credit_report_fees);
|
|
366
|
+
}
|
|
367
|
+
if (message.credit_report_actual_fees !== undefined) {
|
|
368
|
+
writer.uint32(224).int32(message.credit_report_actual_fees);
|
|
369
|
+
}
|
|
370
|
+
if (message.plan_id !== undefined) {
|
|
371
|
+
writer.uint32(232).int32(message.plan_id);
|
|
372
|
+
}
|
|
373
|
+
if (message.approved_amount !== 0) {
|
|
374
|
+
writer.uint32(240).int32(message.approved_amount);
|
|
375
|
+
}
|
|
376
|
+
if (message.discount !== 0) {
|
|
377
|
+
writer.uint32(248).int32(message.discount);
|
|
378
|
+
}
|
|
379
|
+
return writer;
|
|
380
|
+
},
|
|
381
|
+
decode(input, length) {
|
|
382
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
383
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
384
|
+
const message = createBasecbLoanResponse();
|
|
385
|
+
while (reader.pos < end) {
|
|
386
|
+
const tag = reader.uint32();
|
|
387
|
+
switch (tag >>> 3) {
|
|
388
|
+
case 1:
|
|
389
|
+
if (tag !== 8) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
message.gateway_fees = reader.int32();
|
|
393
|
+
continue;
|
|
394
|
+
case 2:
|
|
395
|
+
if (tag !== 16) {
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
message.striked_gateway_fees = reader.int32();
|
|
399
|
+
continue;
|
|
400
|
+
case 3:
|
|
401
|
+
if (tag !== 26) {
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
message.bill_date = reader.string();
|
|
405
|
+
continue;
|
|
406
|
+
case 4:
|
|
407
|
+
if (tag !== 32) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
message.requested_amount = reader.int32();
|
|
411
|
+
continue;
|
|
412
|
+
case 5:
|
|
413
|
+
if (tag !== 40) {
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
message.tenure = reader.int32();
|
|
417
|
+
continue;
|
|
418
|
+
case 6:
|
|
419
|
+
if (tag !== 48) {
|
|
420
|
+
break;
|
|
421
|
+
}
|
|
422
|
+
message.emi_amount = reader.int32();
|
|
423
|
+
continue;
|
|
424
|
+
case 7:
|
|
425
|
+
if (tag !== 56) {
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
message.net_amount_payable = reader.int32();
|
|
429
|
+
continue;
|
|
430
|
+
case 8:
|
|
431
|
+
if (tag !== 66) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
message.first_emi_date = reader.string();
|
|
435
|
+
continue;
|
|
436
|
+
case 9:
|
|
437
|
+
if (tag !== 72) {
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
message.final_disbursal_amount = reader.int32();
|
|
441
|
+
continue;
|
|
442
|
+
case 10:
|
|
443
|
+
if (tag !== 85) {
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
message.upfront_interest = reader.float();
|
|
447
|
+
continue;
|
|
448
|
+
case 11:
|
|
449
|
+
if (tag !== 88) {
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
message.rate_of_interest = reader.int32();
|
|
453
|
+
continue;
|
|
454
|
+
case 12:
|
|
455
|
+
if (tag !== 96) {
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
message.bill_amount = reader.int32();
|
|
459
|
+
continue;
|
|
460
|
+
case 13:
|
|
461
|
+
if (tag !== 104) {
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
message.total_interest_pay = reader.int32();
|
|
465
|
+
continue;
|
|
466
|
+
case 14:
|
|
467
|
+
if (tag !== 112) {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
message.effective_annual_rate = reader.int32();
|
|
471
|
+
continue;
|
|
472
|
+
case 15:
|
|
473
|
+
if (tag !== 120) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
message.transaction_fee_bill_amount = reader.int32();
|
|
477
|
+
continue;
|
|
478
|
+
case 16:
|
|
479
|
+
if (tag !== 128) {
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
message.processing_fee_plus_gst = reader.int32();
|
|
483
|
+
continue;
|
|
484
|
+
case 17:
|
|
485
|
+
if (tag !== 136) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
message.trans_fee_plus_gst = reader.int32();
|
|
489
|
+
continue;
|
|
490
|
+
case 18:
|
|
491
|
+
if (tag !== 144) {
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
message.fee_and_charges = reader.int32();
|
|
495
|
+
continue;
|
|
496
|
+
case 19:
|
|
497
|
+
if (tag !== 152) {
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
message.fee_and_charges_bill = reader.int32();
|
|
501
|
+
continue;
|
|
502
|
+
case 20:
|
|
503
|
+
if (tag !== 160) {
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
message.effective_roi = reader.int32();
|
|
507
|
+
continue;
|
|
508
|
+
case 21:
|
|
509
|
+
if (tag !== 168) {
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
message.effective_annual_roi = reader.int32();
|
|
513
|
+
continue;
|
|
514
|
+
case 22:
|
|
515
|
+
if (tag !== 178) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
message.emi_card_description = reader.string();
|
|
519
|
+
continue;
|
|
520
|
+
case 23:
|
|
521
|
+
if (tag !== 186) {
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
message.bill_card_description = reader.string();
|
|
525
|
+
continue;
|
|
526
|
+
case 24:
|
|
527
|
+
if (tag !== 197) {
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
message.apr_value = reader.float();
|
|
531
|
+
continue;
|
|
532
|
+
case 25:
|
|
533
|
+
if (tag !== 202) {
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
message.apr_type = reader.string();
|
|
537
|
+
continue;
|
|
538
|
+
case 26:
|
|
539
|
+
if (tag !== 208) {
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
message.max_amount = reader.int32();
|
|
543
|
+
continue;
|
|
544
|
+
case 27:
|
|
545
|
+
if (tag !== 216) {
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
message.credit_report_fees = reader.int32();
|
|
549
|
+
continue;
|
|
550
|
+
case 28:
|
|
551
|
+
if (tag !== 224) {
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
message.credit_report_actual_fees = reader.int32();
|
|
555
|
+
continue;
|
|
556
|
+
case 29:
|
|
557
|
+
if (tag !== 232) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
message.plan_id = reader.int32();
|
|
561
|
+
continue;
|
|
562
|
+
case 30:
|
|
563
|
+
if (tag !== 240) {
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
message.approved_amount = reader.int32();
|
|
567
|
+
continue;
|
|
568
|
+
case 31:
|
|
569
|
+
if (tag !== 248) {
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
message.discount = reader.int32();
|
|
573
|
+
continue;
|
|
574
|
+
}
|
|
575
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
reader.skipType(tag & 7);
|
|
579
|
+
}
|
|
580
|
+
return message;
|
|
581
|
+
},
|
|
582
|
+
fromJSON(object) {
|
|
583
|
+
return {
|
|
584
|
+
gateway_fees: isSet(object.gateway_fees) ? globalThis.Number(object.gateway_fees) : 0,
|
|
585
|
+
striked_gateway_fees: isSet(object.striked_gateway_fees) ? globalThis.Number(object.striked_gateway_fees) : 0,
|
|
586
|
+
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
587
|
+
requested_amount: isSet(object.requested_amount) ? globalThis.Number(object.requested_amount) : 0,
|
|
588
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
589
|
+
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
590
|
+
net_amount_payable: isSet(object.net_amount_payable) ? globalThis.Number(object.net_amount_payable) : 0,
|
|
591
|
+
first_emi_date: isSet(object.first_emi_date) ? globalThis.String(object.first_emi_date) : "",
|
|
592
|
+
final_disbursal_amount: isSet(object.final_disbursal_amount)
|
|
593
|
+
? globalThis.Number(object.final_disbursal_amount)
|
|
594
|
+
: 0,
|
|
595
|
+
upfront_interest: isSet(object.upfront_interest) ? globalThis.Number(object.upfront_interest) : 0,
|
|
596
|
+
rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
|
|
597
|
+
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
598
|
+
total_interest_pay: isSet(object.total_interest_pay) ? globalThis.Number(object.total_interest_pay) : 0,
|
|
599
|
+
effective_annual_rate: isSet(object.effective_annual_rate) ? globalThis.Number(object.effective_annual_rate) : 0,
|
|
600
|
+
transaction_fee_bill_amount: isSet(object.transaction_fee_bill_amount)
|
|
601
|
+
? globalThis.Number(object.transaction_fee_bill_amount)
|
|
602
|
+
: 0,
|
|
603
|
+
processing_fee_plus_gst: isSet(object.processing_fee_plus_gst)
|
|
604
|
+
? globalThis.Number(object.processing_fee_plus_gst)
|
|
605
|
+
: 0,
|
|
606
|
+
trans_fee_plus_gst: isSet(object.trans_fee_plus_gst) ? globalThis.Number(object.trans_fee_plus_gst) : 0,
|
|
607
|
+
fee_and_charges: isSet(object.fee_and_charges) ? globalThis.Number(object.fee_and_charges) : 0,
|
|
608
|
+
fee_and_charges_bill: isSet(object.fee_and_charges_bill) ? globalThis.Number(object.fee_and_charges_bill) : 0,
|
|
609
|
+
effective_roi: isSet(object.effective_roi) ? globalThis.Number(object.effective_roi) : 0,
|
|
610
|
+
effective_annual_roi: isSet(object.effective_annual_roi) ? globalThis.Number(object.effective_annual_roi) : 0,
|
|
611
|
+
emi_card_description: isSet(object.emi_card_description) ? globalThis.String(object.emi_card_description) : "",
|
|
612
|
+
bill_card_description: isSet(object.bill_card_description) ? globalThis.String(object.bill_card_description) : "",
|
|
613
|
+
apr_value: isSet(object.apr_value) ? globalThis.Number(object.apr_value) : 0,
|
|
614
|
+
apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
|
|
615
|
+
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
616
|
+
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : undefined,
|
|
617
|
+
credit_report_actual_fees: isSet(object.credit_report_actual_fees)
|
|
618
|
+
? globalThis.Number(object.credit_report_actual_fees)
|
|
619
|
+
: undefined,
|
|
620
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : undefined,
|
|
621
|
+
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
622
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
623
|
+
};
|
|
624
|
+
},
|
|
625
|
+
toJSON(message) {
|
|
626
|
+
const obj = {};
|
|
627
|
+
if (message.gateway_fees !== 0) {
|
|
628
|
+
obj.gateway_fees = Math.round(message.gateway_fees);
|
|
629
|
+
}
|
|
630
|
+
if (message.striked_gateway_fees !== 0) {
|
|
631
|
+
obj.striked_gateway_fees = Math.round(message.striked_gateway_fees);
|
|
632
|
+
}
|
|
633
|
+
if (message.bill_date !== "") {
|
|
634
|
+
obj.bill_date = message.bill_date;
|
|
635
|
+
}
|
|
636
|
+
if (message.requested_amount !== 0) {
|
|
637
|
+
obj.requested_amount = Math.round(message.requested_amount);
|
|
638
|
+
}
|
|
639
|
+
if (message.tenure !== 0) {
|
|
640
|
+
obj.tenure = Math.round(message.tenure);
|
|
641
|
+
}
|
|
642
|
+
if (message.emi_amount !== 0) {
|
|
643
|
+
obj.emi_amount = Math.round(message.emi_amount);
|
|
644
|
+
}
|
|
645
|
+
if (message.net_amount_payable !== 0) {
|
|
646
|
+
obj.net_amount_payable = Math.round(message.net_amount_payable);
|
|
647
|
+
}
|
|
648
|
+
if (message.first_emi_date !== "") {
|
|
649
|
+
obj.first_emi_date = message.first_emi_date;
|
|
650
|
+
}
|
|
651
|
+
if (message.final_disbursal_amount !== 0) {
|
|
652
|
+
obj.final_disbursal_amount = Math.round(message.final_disbursal_amount);
|
|
653
|
+
}
|
|
654
|
+
if (message.upfront_interest !== 0) {
|
|
655
|
+
obj.upfront_interest = message.upfront_interest;
|
|
656
|
+
}
|
|
657
|
+
if (message.rate_of_interest !== 0) {
|
|
658
|
+
obj.rate_of_interest = Math.round(message.rate_of_interest);
|
|
659
|
+
}
|
|
660
|
+
if (message.bill_amount !== 0) {
|
|
661
|
+
obj.bill_amount = Math.round(message.bill_amount);
|
|
662
|
+
}
|
|
663
|
+
if (message.total_interest_pay !== 0) {
|
|
664
|
+
obj.total_interest_pay = Math.round(message.total_interest_pay);
|
|
665
|
+
}
|
|
666
|
+
if (message.effective_annual_rate !== 0) {
|
|
667
|
+
obj.effective_annual_rate = Math.round(message.effective_annual_rate);
|
|
668
|
+
}
|
|
669
|
+
if (message.transaction_fee_bill_amount !== 0) {
|
|
670
|
+
obj.transaction_fee_bill_amount = Math.round(message.transaction_fee_bill_amount);
|
|
671
|
+
}
|
|
672
|
+
if (message.processing_fee_plus_gst !== 0) {
|
|
673
|
+
obj.processing_fee_plus_gst = Math.round(message.processing_fee_plus_gst);
|
|
674
|
+
}
|
|
675
|
+
if (message.trans_fee_plus_gst !== 0) {
|
|
676
|
+
obj.trans_fee_plus_gst = Math.round(message.trans_fee_plus_gst);
|
|
677
|
+
}
|
|
678
|
+
if (message.fee_and_charges !== 0) {
|
|
679
|
+
obj.fee_and_charges = Math.round(message.fee_and_charges);
|
|
680
|
+
}
|
|
681
|
+
if (message.fee_and_charges_bill !== 0) {
|
|
682
|
+
obj.fee_and_charges_bill = Math.round(message.fee_and_charges_bill);
|
|
683
|
+
}
|
|
684
|
+
if (message.effective_roi !== 0) {
|
|
685
|
+
obj.effective_roi = Math.round(message.effective_roi);
|
|
686
|
+
}
|
|
687
|
+
if (message.effective_annual_roi !== 0) {
|
|
688
|
+
obj.effective_annual_roi = Math.round(message.effective_annual_roi);
|
|
689
|
+
}
|
|
690
|
+
if (message.emi_card_description !== "") {
|
|
691
|
+
obj.emi_card_description = message.emi_card_description;
|
|
692
|
+
}
|
|
693
|
+
if (message.bill_card_description !== "") {
|
|
694
|
+
obj.bill_card_description = message.bill_card_description;
|
|
695
|
+
}
|
|
696
|
+
if (message.apr_value !== 0) {
|
|
697
|
+
obj.apr_value = message.apr_value;
|
|
698
|
+
}
|
|
699
|
+
if (message.apr_type !== "") {
|
|
700
|
+
obj.apr_type = message.apr_type;
|
|
701
|
+
}
|
|
702
|
+
if (message.max_amount !== 0) {
|
|
703
|
+
obj.max_amount = Math.round(message.max_amount);
|
|
704
|
+
}
|
|
705
|
+
if (message.credit_report_fees !== undefined) {
|
|
706
|
+
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
707
|
+
}
|
|
708
|
+
if (message.credit_report_actual_fees !== undefined) {
|
|
709
|
+
obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
|
|
710
|
+
}
|
|
711
|
+
if (message.plan_id !== undefined) {
|
|
712
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
713
|
+
}
|
|
714
|
+
if (message.approved_amount !== 0) {
|
|
715
|
+
obj.approved_amount = Math.round(message.approved_amount);
|
|
716
|
+
}
|
|
717
|
+
if (message.discount !== 0) {
|
|
718
|
+
obj.discount = Math.round(message.discount);
|
|
719
|
+
}
|
|
720
|
+
return obj;
|
|
721
|
+
},
|
|
722
|
+
create(base) {
|
|
723
|
+
return exports.cbLoanResponse.fromPartial(base ?? {});
|
|
724
|
+
},
|
|
725
|
+
fromPartial(object) {
|
|
726
|
+
const message = createBasecbLoanResponse();
|
|
727
|
+
message.gateway_fees = object.gateway_fees ?? 0;
|
|
728
|
+
message.striked_gateway_fees = object.striked_gateway_fees ?? 0;
|
|
729
|
+
message.bill_date = object.bill_date ?? "";
|
|
730
|
+
message.requested_amount = object.requested_amount ?? 0;
|
|
731
|
+
message.tenure = object.tenure ?? 0;
|
|
732
|
+
message.emi_amount = object.emi_amount ?? 0;
|
|
733
|
+
message.net_amount_payable = object.net_amount_payable ?? 0;
|
|
734
|
+
message.first_emi_date = object.first_emi_date ?? "";
|
|
735
|
+
message.final_disbursal_amount = object.final_disbursal_amount ?? 0;
|
|
736
|
+
message.upfront_interest = object.upfront_interest ?? 0;
|
|
737
|
+
message.rate_of_interest = object.rate_of_interest ?? 0;
|
|
738
|
+
message.bill_amount = object.bill_amount ?? 0;
|
|
739
|
+
message.total_interest_pay = object.total_interest_pay ?? 0;
|
|
740
|
+
message.effective_annual_rate = object.effective_annual_rate ?? 0;
|
|
741
|
+
message.transaction_fee_bill_amount = object.transaction_fee_bill_amount ?? 0;
|
|
742
|
+
message.processing_fee_plus_gst = object.processing_fee_plus_gst ?? 0;
|
|
743
|
+
message.trans_fee_plus_gst = object.trans_fee_plus_gst ?? 0;
|
|
744
|
+
message.fee_and_charges = object.fee_and_charges ?? 0;
|
|
745
|
+
message.fee_and_charges_bill = object.fee_and_charges_bill ?? 0;
|
|
746
|
+
message.effective_roi = object.effective_roi ?? 0;
|
|
747
|
+
message.effective_annual_roi = object.effective_annual_roi ?? 0;
|
|
748
|
+
message.emi_card_description = object.emi_card_description ?? "";
|
|
749
|
+
message.bill_card_description = object.bill_card_description ?? "";
|
|
750
|
+
message.apr_value = object.apr_value ?? 0;
|
|
751
|
+
message.apr_type = object.apr_type ?? "";
|
|
752
|
+
message.max_amount = object.max_amount ?? 0;
|
|
753
|
+
message.credit_report_fees = object.credit_report_fees ?? undefined;
|
|
754
|
+
message.credit_report_actual_fees = object.credit_report_actual_fees ?? undefined;
|
|
755
|
+
message.plan_id = object.plan_id ?? undefined;
|
|
756
|
+
message.approved_amount = object.approved_amount ?? 0;
|
|
757
|
+
message.discount = object.discount ?? 0;
|
|
758
|
+
return message;
|
|
759
|
+
},
|
|
760
|
+
};
|
|
761
|
+
function isSet(value) {
|
|
762
|
+
return value !== null && value !== undefined;
|
|
763
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { amortizationRequest, amortizationResponse } from "./loans/amortization"
|
|
|
3
3
|
import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
4
4
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
5
5
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
6
|
+
import { cbLoanRequest, cbLoanResponse } from "./loans/cbloan";
|
|
6
7
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
7
8
|
import { fcpPaymentRequest, fcpPaymentResponse } from "./loans/fcppayment";
|
|
8
9
|
import { foreclosePaymentRequest, foreclosePaymentResponse } from "./loans/foreclosepayment";
|
|
@@ -342,6 +343,15 @@ export declare const loansService: {
|
|
|
342
343
|
readonly responseSerialize: (value: getPaymentOptionsResponse) => Buffer;
|
|
343
344
|
readonly responseDeserialize: (value: Buffer) => getPaymentOptionsResponse;
|
|
344
345
|
};
|
|
346
|
+
readonly cbLoan: {
|
|
347
|
+
readonly path: "/service.loans/cbLoan";
|
|
348
|
+
readonly requestStream: false;
|
|
349
|
+
readonly responseStream: false;
|
|
350
|
+
readonly requestSerialize: (value: cbLoanRequest) => Buffer;
|
|
351
|
+
readonly requestDeserialize: (value: Buffer) => cbLoanRequest;
|
|
352
|
+
readonly responseSerialize: (value: cbLoanResponse) => Buffer;
|
|
353
|
+
readonly responseDeserialize: (value: Buffer) => cbLoanResponse;
|
|
354
|
+
};
|
|
345
355
|
};
|
|
346
356
|
export interface loansServer extends UntypedServiceImplementation {
|
|
347
357
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -378,6 +388,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
378
388
|
getChrDetails: handleUnaryCall<getChrDetailsRequest, getChrDetailsResponse>;
|
|
379
389
|
getSetuBillDetails: handleUnaryCall<getSetuBillDetailsRequest, getSetuBillDetailsResponse>;
|
|
380
390
|
getpaymentoptions: handleUnaryCall<getPaymentOptionsRequest, getPaymentOptionsResponse>;
|
|
391
|
+
cbLoan: handleUnaryCall<cbLoanRequest, cbLoanResponse>;
|
|
381
392
|
}
|
|
382
393
|
export interface loansClient extends Client {
|
|
383
394
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -482,6 +493,9 @@ export interface loansClient extends Client {
|
|
|
482
493
|
getpaymentoptions(request: getPaymentOptionsRequest, callback: (error: ServiceError | null, response: getPaymentOptionsResponse) => void): ClientUnaryCall;
|
|
483
494
|
getpaymentoptions(request: getPaymentOptionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getPaymentOptionsResponse) => void): ClientUnaryCall;
|
|
484
495
|
getpaymentoptions(request: getPaymentOptionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getPaymentOptionsResponse) => void): ClientUnaryCall;
|
|
496
|
+
cbLoan(request: cbLoanRequest, callback: (error: ServiceError | null, response: cbLoanResponse) => void): ClientUnaryCall;
|
|
497
|
+
cbLoan(request: cbLoanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: cbLoanResponse) => void): ClientUnaryCall;
|
|
498
|
+
cbLoan(request: cbLoanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: cbLoanResponse) => void): ClientUnaryCall;
|
|
485
499
|
}
|
|
486
500
|
export declare const loansClient: {
|
|
487
501
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -12,6 +12,7 @@ const amortization_1 = require("./loans/amortization");
|
|
|
12
12
|
const approveloan_1 = require("./loans/approveloan");
|
|
13
13
|
const banklist_1 = require("./loans/banklist");
|
|
14
14
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
15
|
+
const cbloan_1 = require("./loans/cbloan");
|
|
15
16
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
16
17
|
const fcppayment_1 = require("./loans/fcppayment");
|
|
17
18
|
const foreclosepayment_1 = require("./loans/foreclosepayment");
|
|
@@ -350,5 +351,14 @@ exports.loansService = {
|
|
|
350
351
|
responseSerialize: (value) => Buffer.from(getpaymentoptions_1.getPaymentOptionsResponse.encode(value).finish()),
|
|
351
352
|
responseDeserialize: (value) => getpaymentoptions_1.getPaymentOptionsResponse.decode(value),
|
|
352
353
|
},
|
|
354
|
+
cbLoan: {
|
|
355
|
+
path: "/service.loans/cbLoan",
|
|
356
|
+
requestStream: false,
|
|
357
|
+
responseStream: false,
|
|
358
|
+
requestSerialize: (value) => Buffer.from(cbloan_1.cbLoanRequest.encode(value).finish()),
|
|
359
|
+
requestDeserialize: (value) => cbloan_1.cbLoanRequest.decode(value),
|
|
360
|
+
responseSerialize: (value) => Buffer.from(cbloan_1.cbLoanResponse.encode(value).finish()),
|
|
361
|
+
responseDeserialize: (value) => cbloan_1.cbLoanResponse.decode(value),
|
|
362
|
+
},
|
|
353
363
|
};
|
|
354
364
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|