@stashfin/grpc 1.2.339 → 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 +1 -1
- package/ts/customers/getloclimit.d.ts +35 -0
- package/ts/customers/getloclimit.js +120 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/cbloan.d.ts +9 -18
- package/ts/loans/cbloan.js +116 -128
package/package.json
CHANGED
|
@@ -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
|
+
}
|
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/cbloan.d.ts
CHANGED
|
@@ -6,15 +6,14 @@ export interface cbLoanRequest {
|
|
|
6
6
|
tenure: number;
|
|
7
7
|
customer_id: number;
|
|
8
8
|
ip: string;
|
|
9
|
-
cbFees: cbLoanRequest_Field[];
|
|
10
9
|
latitude: number;
|
|
11
10
|
longitude: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
builder_fee: number;
|
|
12
|
+
gst: number;
|
|
13
|
+
first_emi: number;
|
|
14
|
+
insurance_worth: number;
|
|
15
|
+
credit_report: number;
|
|
16
|
+
total_amount: number;
|
|
18
17
|
}
|
|
19
18
|
export interface cbLoanResponse {
|
|
20
19
|
gateway_fees: number;
|
|
@@ -43,9 +42,9 @@ export interface cbLoanResponse {
|
|
|
43
42
|
apr_value: number;
|
|
44
43
|
apr_type: string;
|
|
45
44
|
max_amount: number;
|
|
46
|
-
credit_report_fees
|
|
47
|
-
credit_report_actual_fees
|
|
48
|
-
plan_id
|
|
45
|
+
credit_report_fees?: number | undefined;
|
|
46
|
+
credit_report_actual_fees?: number | undefined;
|
|
47
|
+
plan_id?: number | undefined;
|
|
49
48
|
approved_amount: number;
|
|
50
49
|
discount: number;
|
|
51
50
|
}
|
|
@@ -57,14 +56,6 @@ export declare const cbLoanRequest: {
|
|
|
57
56
|
create<I extends Exact<DeepPartial<cbLoanRequest>, I>>(base?: I): cbLoanRequest;
|
|
58
57
|
fromPartial<I extends Exact<DeepPartial<cbLoanRequest>, I>>(object: I): cbLoanRequest;
|
|
59
58
|
};
|
|
60
|
-
export declare const cbLoanRequest_Field: {
|
|
61
|
-
encode(message: cbLoanRequest_Field, writer?: _m0.Writer): _m0.Writer;
|
|
62
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): cbLoanRequest_Field;
|
|
63
|
-
fromJSON(object: any): cbLoanRequest_Field;
|
|
64
|
-
toJSON(message: cbLoanRequest_Field): unknown;
|
|
65
|
-
create<I extends Exact<DeepPartial<cbLoanRequest_Field>, I>>(base?: I): cbLoanRequest_Field;
|
|
66
|
-
fromPartial<I extends Exact<DeepPartial<cbLoanRequest_Field>, I>>(object: I): cbLoanRequest_Field;
|
|
67
|
-
};
|
|
68
59
|
export declare const cbLoanResponse: {
|
|
69
60
|
encode(message: cbLoanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
70
61
|
decode(input: _m0.Reader | Uint8Array, length?: number): cbLoanResponse;
|
package/ts/loans/cbloan.js
CHANGED
|
@@ -8,12 +8,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.cbLoanResponse = exports.
|
|
11
|
+
exports.cbLoanResponse = exports.cbLoanRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.cbloan";
|
|
15
15
|
function createBasecbLoanRequest() {
|
|
16
|
-
return {
|
|
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
|
+
};
|
|
17
31
|
}
|
|
18
32
|
exports.cbLoanRequest = {
|
|
19
33
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -32,14 +46,29 @@ exports.cbLoanRequest = {
|
|
|
32
46
|
if (message.ip !== "") {
|
|
33
47
|
writer.uint32(42).string(message.ip);
|
|
34
48
|
}
|
|
35
|
-
for (const v of message.cbFees) {
|
|
36
|
-
exports.cbLoanRequest_Field.encode(v, writer.uint32(50).fork()).ldelim();
|
|
37
|
-
}
|
|
38
49
|
if (message.latitude !== 0) {
|
|
39
|
-
writer.uint32(
|
|
50
|
+
writer.uint32(53).float(message.latitude);
|
|
40
51
|
}
|
|
41
52
|
if (message.longitude !== 0) {
|
|
42
|
-
writer.uint32(
|
|
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);
|
|
43
72
|
}
|
|
44
73
|
return writer;
|
|
45
74
|
},
|
|
@@ -81,22 +110,52 @@ exports.cbLoanRequest = {
|
|
|
81
110
|
message.ip = reader.string();
|
|
82
111
|
continue;
|
|
83
112
|
case 6:
|
|
84
|
-
if (tag !==
|
|
113
|
+
if (tag !== 53) {
|
|
85
114
|
break;
|
|
86
115
|
}
|
|
87
|
-
message.
|
|
116
|
+
message.latitude = reader.float();
|
|
88
117
|
continue;
|
|
89
118
|
case 7:
|
|
90
119
|
if (tag !== 61) {
|
|
91
120
|
break;
|
|
92
121
|
}
|
|
93
|
-
message.
|
|
122
|
+
message.longitude = reader.float();
|
|
94
123
|
continue;
|
|
95
124
|
case 8:
|
|
96
|
-
if (tag !==
|
|
125
|
+
if (tag !== 64) {
|
|
97
126
|
break;
|
|
98
127
|
}
|
|
99
|
-
message.
|
|
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();
|
|
100
159
|
continue;
|
|
101
160
|
}
|
|
102
161
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -113,11 +172,14 @@ exports.cbLoanRequest = {
|
|
|
113
172
|
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
114
173
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
115
174
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
116
|
-
cbFees: globalThis.Array.isArray(object?.cbFees)
|
|
117
|
-
? object.cbFees.map((e) => exports.cbLoanRequest_Field.fromJSON(e))
|
|
118
|
-
: [],
|
|
119
175
|
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
120
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,
|
|
121
183
|
};
|
|
122
184
|
},
|
|
123
185
|
toJSON(message) {
|
|
@@ -137,15 +199,30 @@ exports.cbLoanRequest = {
|
|
|
137
199
|
if (message.ip !== "") {
|
|
138
200
|
obj.ip = message.ip;
|
|
139
201
|
}
|
|
140
|
-
if (message.cbFees?.length) {
|
|
141
|
-
obj.cbFees = message.cbFees.map((e) => exports.cbLoanRequest_Field.toJSON(e));
|
|
142
|
-
}
|
|
143
202
|
if (message.latitude !== 0) {
|
|
144
203
|
obj.latitude = message.latitude;
|
|
145
204
|
}
|
|
146
205
|
if (message.longitude !== 0) {
|
|
147
206
|
obj.longitude = message.longitude;
|
|
148
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
|
+
}
|
|
149
226
|
return obj;
|
|
150
227
|
},
|
|
151
228
|
create(base) {
|
|
@@ -158,103 +235,14 @@ exports.cbLoanRequest = {
|
|
|
158
235
|
message.tenure = object.tenure ?? 0;
|
|
159
236
|
message.customer_id = object.customer_id ?? 0;
|
|
160
237
|
message.ip = object.ip ?? "";
|
|
161
|
-
message.cbFees = object.cbFees?.map((e) => exports.cbLoanRequest_Field.fromPartial(e)) || [];
|
|
162
238
|
message.latitude = object.latitude ?? 0;
|
|
163
239
|
message.longitude = object.longitude ?? 0;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
exports.cbLoanRequest_Field = {
|
|
171
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
172
|
-
if (message.name !== "") {
|
|
173
|
-
writer.uint32(10).string(message.name);
|
|
174
|
-
}
|
|
175
|
-
if (message.amount !== 0) {
|
|
176
|
-
writer.uint32(16).int32(message.amount);
|
|
177
|
-
}
|
|
178
|
-
if (message.plan_id !== 0) {
|
|
179
|
-
writer.uint32(24).int32(message.plan_id);
|
|
180
|
-
}
|
|
181
|
-
if (message.discount !== 0) {
|
|
182
|
-
writer.uint32(32).int32(message.discount);
|
|
183
|
-
}
|
|
184
|
-
return writer;
|
|
185
|
-
},
|
|
186
|
-
decode(input, length) {
|
|
187
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
188
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
189
|
-
const message = createBasecbLoanRequest_Field();
|
|
190
|
-
while (reader.pos < end) {
|
|
191
|
-
const tag = reader.uint32();
|
|
192
|
-
switch (tag >>> 3) {
|
|
193
|
-
case 1:
|
|
194
|
-
if (tag !== 10) {
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
message.name = reader.string();
|
|
198
|
-
continue;
|
|
199
|
-
case 2:
|
|
200
|
-
if (tag !== 16) {
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
message.amount = reader.int32();
|
|
204
|
-
continue;
|
|
205
|
-
case 3:
|
|
206
|
-
if (tag !== 24) {
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
message.plan_id = reader.int32();
|
|
210
|
-
continue;
|
|
211
|
-
case 4:
|
|
212
|
-
if (tag !== 32) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
message.discount = reader.int32();
|
|
216
|
-
continue;
|
|
217
|
-
}
|
|
218
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
reader.skipType(tag & 7);
|
|
222
|
-
}
|
|
223
|
-
return message;
|
|
224
|
-
},
|
|
225
|
-
fromJSON(object) {
|
|
226
|
-
return {
|
|
227
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
228
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
229
|
-
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
230
|
-
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
231
|
-
};
|
|
232
|
-
},
|
|
233
|
-
toJSON(message) {
|
|
234
|
-
const obj = {};
|
|
235
|
-
if (message.name !== "") {
|
|
236
|
-
obj.name = message.name;
|
|
237
|
-
}
|
|
238
|
-
if (message.amount !== 0) {
|
|
239
|
-
obj.amount = Math.round(message.amount);
|
|
240
|
-
}
|
|
241
|
-
if (message.plan_id !== 0) {
|
|
242
|
-
obj.plan_id = Math.round(message.plan_id);
|
|
243
|
-
}
|
|
244
|
-
if (message.discount !== 0) {
|
|
245
|
-
obj.discount = Math.round(message.discount);
|
|
246
|
-
}
|
|
247
|
-
return obj;
|
|
248
|
-
},
|
|
249
|
-
create(base) {
|
|
250
|
-
return exports.cbLoanRequest_Field.fromPartial(base ?? {});
|
|
251
|
-
},
|
|
252
|
-
fromPartial(object) {
|
|
253
|
-
const message = createBasecbLoanRequest_Field();
|
|
254
|
-
message.name = object.name ?? "";
|
|
255
|
-
message.amount = object.amount ?? 0;
|
|
256
|
-
message.plan_id = object.plan_id ?? 0;
|
|
257
|
-
message.discount = object.discount ?? 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;
|
|
258
246
|
return message;
|
|
259
247
|
},
|
|
260
248
|
};
|
|
@@ -286,9 +274,9 @@ function createBasecbLoanResponse() {
|
|
|
286
274
|
apr_value: 0,
|
|
287
275
|
apr_type: "",
|
|
288
276
|
max_amount: 0,
|
|
289
|
-
credit_report_fees:
|
|
290
|
-
credit_report_actual_fees:
|
|
291
|
-
plan_id:
|
|
277
|
+
credit_report_fees: undefined,
|
|
278
|
+
credit_report_actual_fees: undefined,
|
|
279
|
+
plan_id: undefined,
|
|
292
280
|
approved_amount: 0,
|
|
293
281
|
discount: 0,
|
|
294
282
|
};
|
|
@@ -373,13 +361,13 @@ exports.cbLoanResponse = {
|
|
|
373
361
|
if (message.max_amount !== 0) {
|
|
374
362
|
writer.uint32(208).int32(message.max_amount);
|
|
375
363
|
}
|
|
376
|
-
if (message.credit_report_fees !==
|
|
364
|
+
if (message.credit_report_fees !== undefined) {
|
|
377
365
|
writer.uint32(216).int32(message.credit_report_fees);
|
|
378
366
|
}
|
|
379
|
-
if (message.credit_report_actual_fees !==
|
|
367
|
+
if (message.credit_report_actual_fees !== undefined) {
|
|
380
368
|
writer.uint32(224).int32(message.credit_report_actual_fees);
|
|
381
369
|
}
|
|
382
|
-
if (message.plan_id !==
|
|
370
|
+
if (message.plan_id !== undefined) {
|
|
383
371
|
writer.uint32(232).int32(message.plan_id);
|
|
384
372
|
}
|
|
385
373
|
if (message.approved_amount !== 0) {
|
|
@@ -625,11 +613,11 @@ exports.cbLoanResponse = {
|
|
|
625
613
|
apr_value: isSet(object.apr_value) ? globalThis.Number(object.apr_value) : 0,
|
|
626
614
|
apr_type: isSet(object.apr_type) ? globalThis.String(object.apr_type) : "",
|
|
627
615
|
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
628
|
-
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) :
|
|
616
|
+
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : undefined,
|
|
629
617
|
credit_report_actual_fees: isSet(object.credit_report_actual_fees)
|
|
630
618
|
? globalThis.Number(object.credit_report_actual_fees)
|
|
631
|
-
:
|
|
632
|
-
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) :
|
|
619
|
+
: undefined,
|
|
620
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : undefined,
|
|
633
621
|
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
634
622
|
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
635
623
|
};
|
|
@@ -714,13 +702,13 @@ exports.cbLoanResponse = {
|
|
|
714
702
|
if (message.max_amount !== 0) {
|
|
715
703
|
obj.max_amount = Math.round(message.max_amount);
|
|
716
704
|
}
|
|
717
|
-
if (message.credit_report_fees !==
|
|
705
|
+
if (message.credit_report_fees !== undefined) {
|
|
718
706
|
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
719
707
|
}
|
|
720
|
-
if (message.credit_report_actual_fees !==
|
|
708
|
+
if (message.credit_report_actual_fees !== undefined) {
|
|
721
709
|
obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
|
|
722
710
|
}
|
|
723
|
-
if (message.plan_id !==
|
|
711
|
+
if (message.plan_id !== undefined) {
|
|
724
712
|
obj.plan_id = Math.round(message.plan_id);
|
|
725
713
|
}
|
|
726
714
|
if (message.approved_amount !== 0) {
|
|
@@ -762,9 +750,9 @@ exports.cbLoanResponse = {
|
|
|
762
750
|
message.apr_value = object.apr_value ?? 0;
|
|
763
751
|
message.apr_type = object.apr_type ?? "";
|
|
764
752
|
message.max_amount = object.max_amount ?? 0;
|
|
765
|
-
message.credit_report_fees = object.credit_report_fees ??
|
|
766
|
-
message.credit_report_actual_fees = object.credit_report_actual_fees ??
|
|
767
|
-
message.plan_id = object.plan_id ??
|
|
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;
|
|
768
756
|
message.approved_amount = object.approved_amount ?? 0;
|
|
769
757
|
message.discount = object.discount ?? 0;
|
|
770
758
|
return message;
|