@stashfin/grpc 1.2.340 → 1.2.341
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/freedom/updateadditionalverification.d.ts +34 -0
- package/ts/customers/freedom/updateadditionalverification.js +104 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/cbloan.d.ts +1 -32
- package/ts/loans/cbloan.js +31 -508
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.freedom.updateadditionalverification";
|
|
3
|
+
export interface updateAdditionalVerificationRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface updateAdditionalVerificationResponse {
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateAdditionalVerificationRequest: {
|
|
9
|
+
encode(_: updateAdditionalVerificationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateAdditionalVerificationRequest;
|
|
11
|
+
fromJSON(_: any): updateAdditionalVerificationRequest;
|
|
12
|
+
toJSON(_: updateAdditionalVerificationRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<updateAdditionalVerificationRequest>, I>>(base?: I): updateAdditionalVerificationRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<updateAdditionalVerificationRequest>, I>>(_: I): updateAdditionalVerificationRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const updateAdditionalVerificationResponse: {
|
|
17
|
+
encode(message: updateAdditionalVerificationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateAdditionalVerificationResponse;
|
|
19
|
+
fromJSON(object: any): updateAdditionalVerificationResponse;
|
|
20
|
+
toJSON(message: updateAdditionalVerificationResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateAdditionalVerificationResponse>, I>>(base?: I): updateAdditionalVerificationResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateAdditionalVerificationResponse>, I>>(object: I): updateAdditionalVerificationResponse;
|
|
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.28.2
|
|
6
|
+
// source: customers/freedom/updateadditionalverification.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.updateAdditionalVerificationResponse = exports.updateAdditionalVerificationRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.freedom.updateadditionalverification";
|
|
15
|
+
function createBaseupdateAdditionalVerificationRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.updateAdditionalVerificationRequest = {
|
|
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 = createBaseupdateAdditionalVerificationRequest();
|
|
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.updateAdditionalVerificationRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseupdateAdditionalVerificationRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseupdateAdditionalVerificationResponse() {
|
|
53
|
+
return { message: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.updateAdditionalVerificationResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.message !== "") {
|
|
58
|
+
writer.uint32(10).string(message.message);
|
|
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 = createBaseupdateAdditionalVerificationResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.message = reader.string();
|
|
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 { message: isSet(object.message) ? globalThis.String(object.message) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.message !== "") {
|
|
89
|
+
obj.message = message.message;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.updateAdditionalVerificationResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseupdateAdditionalVerificationResponse();
|
|
98
|
+
message.message = object.message ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/f
|
|
|
38
38
|
import { confirmAddressRequest, confirmAddressResponse } from "./customers/freedom/addressconfirmation";
|
|
39
39
|
import { freedomPayNowRequest, freedomPayNowResponse } from "./customers/freedom/freedompaynow";
|
|
40
40
|
import { getFreedomTxnStatusRequest, getFreedomTxnStatusResponse } from "./customers/freedom/getfreedomtxnstatus";
|
|
41
|
+
import { updateAdditionalVerificationRequest, updateAdditionalVerificationResponse } from "./customers/freedom/updateadditionalverification";
|
|
41
42
|
import { updateFreedomTxnStatusRequest, updateFreedomTxnStatusResponse } from "./customers/freedom/updatefreedomtxnstatus";
|
|
42
43
|
import { getAddressRequest, getAddressResponse } from "./customers/getaddresslist";
|
|
43
44
|
import { getAppSubmittedRequest, getAppSubmittedResponse } from "./customers/getappsubmittedscreen";
|
|
@@ -999,6 +1000,15 @@ export declare const customersService: {
|
|
|
999
1000
|
readonly responseSerialize: (value: getLocLimitResponse) => Buffer;
|
|
1000
1001
|
readonly responseDeserialize: (value: Buffer) => getLocLimitResponse;
|
|
1001
1002
|
};
|
|
1003
|
+
readonly updateAdditionalVerification: {
|
|
1004
|
+
readonly path: "/service.customers/updateAdditionalVerification";
|
|
1005
|
+
readonly requestStream: false;
|
|
1006
|
+
readonly responseStream: false;
|
|
1007
|
+
readonly requestSerialize: (value: updateAdditionalVerificationRequest) => Buffer;
|
|
1008
|
+
readonly requestDeserialize: (value: Buffer) => updateAdditionalVerificationRequest;
|
|
1009
|
+
readonly responseSerialize: (value: updateAdditionalVerificationResponse) => Buffer;
|
|
1010
|
+
readonly responseDeserialize: (value: Buffer) => updateAdditionalVerificationResponse;
|
|
1011
|
+
};
|
|
1002
1012
|
};
|
|
1003
1013
|
export interface customersServer extends UntypedServiceImplementation {
|
|
1004
1014
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1101,6 +1111,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1101
1111
|
updateCbStandAloneJourney: handleUnaryCall<updateCbStandAloneJourneyRequest, updateCbStandAloneJourneyResponse>;
|
|
1102
1112
|
getCustomerDetailsbyMobile: handleUnaryCall<getCustomerDetailsRequest, getCustomerDetailsResponse>;
|
|
1103
1113
|
getLocLimit: handleUnaryCall<getLocLimitRequest, getLocLimitResponse>;
|
|
1114
|
+
updateAdditionalVerification: handleUnaryCall<updateAdditionalVerificationRequest, updateAdditionalVerificationResponse>;
|
|
1104
1115
|
}
|
|
1105
1116
|
export interface customersClient extends Client {
|
|
1106
1117
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1403,6 +1414,9 @@ export interface customersClient extends Client {
|
|
|
1403
1414
|
getLocLimit(request: getLocLimitRequest, callback: (error: ServiceError | null, response: getLocLimitResponse) => void): ClientUnaryCall;
|
|
1404
1415
|
getLocLimit(request: getLocLimitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getLocLimitResponse) => void): ClientUnaryCall;
|
|
1405
1416
|
getLocLimit(request: getLocLimitRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getLocLimitResponse) => void): ClientUnaryCall;
|
|
1417
|
+
updateAdditionalVerification(request: updateAdditionalVerificationRequest, callback: (error: ServiceError | null, response: updateAdditionalVerificationResponse) => void): ClientUnaryCall;
|
|
1418
|
+
updateAdditionalVerification(request: updateAdditionalVerificationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateAdditionalVerificationResponse) => void): ClientUnaryCall;
|
|
1419
|
+
updateAdditionalVerification(request: updateAdditionalVerificationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateAdditionalVerificationResponse) => void): ClientUnaryCall;
|
|
1406
1420
|
}
|
|
1407
1421
|
export declare const customersClient: {
|
|
1408
1422
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -47,6 +47,7 @@ const forgotmpinverify_1 = require("./customers/forgotmpinverify");
|
|
|
47
47
|
const addressconfirmation_1 = require("./customers/freedom/addressconfirmation");
|
|
48
48
|
const freedompaynow_1 = require("./customers/freedom/freedompaynow");
|
|
49
49
|
const getfreedomtxnstatus_1 = require("./customers/freedom/getfreedomtxnstatus");
|
|
50
|
+
const updateadditionalverification_1 = require("./customers/freedom/updateadditionalverification");
|
|
50
51
|
const updatefreedomtxnstatus_1 = require("./customers/freedom/updatefreedomtxnstatus");
|
|
51
52
|
const getaddresslist_1 = require("./customers/getaddresslist");
|
|
52
53
|
const getappsubmittedscreen_1 = require("./customers/getappsubmittedscreen");
|
|
@@ -1007,5 +1008,14 @@ exports.customersService = {
|
|
|
1007
1008
|
responseSerialize: (value) => Buffer.from(getloclimit_1.getLocLimitResponse.encode(value).finish()),
|
|
1008
1009
|
responseDeserialize: (value) => getloclimit_1.getLocLimitResponse.decode(value),
|
|
1009
1010
|
},
|
|
1011
|
+
updateAdditionalVerification: {
|
|
1012
|
+
path: "/service.customers/updateAdditionalVerification",
|
|
1013
|
+
requestStream: false,
|
|
1014
|
+
responseStream: false,
|
|
1015
|
+
requestSerialize: (value) => Buffer.from(updateadditionalverification_1.updateAdditionalVerificationRequest.encode(value).finish()),
|
|
1016
|
+
requestDeserialize: (value) => updateadditionalverification_1.updateAdditionalVerificationRequest.decode(value),
|
|
1017
|
+
responseSerialize: (value) => Buffer.from(updateadditionalverification_1.updateAdditionalVerificationResponse.encode(value).finish()),
|
|
1018
|
+
responseDeserialize: (value) => updateadditionalverification_1.updateAdditionalVerificationResponse.decode(value),
|
|
1019
|
+
},
|
|
1010
1020
|
};
|
|
1011
1021
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/loans/cbloan.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export declare const protobufPackage = "loans.cbloan";
|
|
|
3
3
|
export interface cbLoanRequest {
|
|
4
4
|
bank_id: number;
|
|
5
5
|
amount: number;
|
|
6
|
-
tenure: number;
|
|
7
6
|
customer_id: number;
|
|
8
7
|
ip: string;
|
|
9
8
|
latitude: number;
|
|
@@ -16,37 +15,7 @@ export interface cbLoanRequest {
|
|
|
16
15
|
total_amount: number;
|
|
17
16
|
}
|
|
18
17
|
export interface cbLoanResponse {
|
|
19
|
-
|
|
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;
|
|
18
|
+
status: string;
|
|
50
19
|
}
|
|
51
20
|
export declare const cbLoanRequest: {
|
|
52
21
|
encode(message: cbLoanRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/cbloan.js
CHANGED
|
@@ -16,7 +16,6 @@ function createBasecbLoanRequest() {
|
|
|
16
16
|
return {
|
|
17
17
|
bank_id: 0,
|
|
18
18
|
amount: 0,
|
|
19
|
-
tenure: 0,
|
|
20
19
|
customer_id: 0,
|
|
21
20
|
ip: "",
|
|
22
21
|
latitude: 0,
|
|
@@ -37,38 +36,35 @@ exports.cbLoanRequest = {
|
|
|
37
36
|
if (message.amount !== 0) {
|
|
38
37
|
writer.uint32(16).int32(message.amount);
|
|
39
38
|
}
|
|
40
|
-
if (message.tenure !== 0) {
|
|
41
|
-
writer.uint32(24).int32(message.tenure);
|
|
42
|
-
}
|
|
43
39
|
if (message.customer_id !== 0) {
|
|
44
|
-
writer.uint32(
|
|
40
|
+
writer.uint32(24).int32(message.customer_id);
|
|
45
41
|
}
|
|
46
42
|
if (message.ip !== "") {
|
|
47
|
-
writer.uint32(
|
|
43
|
+
writer.uint32(34).string(message.ip);
|
|
48
44
|
}
|
|
49
45
|
if (message.latitude !== 0) {
|
|
50
|
-
writer.uint32(
|
|
46
|
+
writer.uint32(45).float(message.latitude);
|
|
51
47
|
}
|
|
52
48
|
if (message.longitude !== 0) {
|
|
53
|
-
writer.uint32(
|
|
49
|
+
writer.uint32(53).float(message.longitude);
|
|
54
50
|
}
|
|
55
51
|
if (message.builder_fee !== 0) {
|
|
56
|
-
writer.uint32(
|
|
52
|
+
writer.uint32(56).int32(message.builder_fee);
|
|
57
53
|
}
|
|
58
54
|
if (message.gst !== 0) {
|
|
59
|
-
writer.uint32(
|
|
55
|
+
writer.uint32(64).int32(message.gst);
|
|
60
56
|
}
|
|
61
57
|
if (message.first_emi !== 0) {
|
|
62
|
-
writer.uint32(
|
|
58
|
+
writer.uint32(72).int32(message.first_emi);
|
|
63
59
|
}
|
|
64
60
|
if (message.insurance_worth !== 0) {
|
|
65
|
-
writer.uint32(
|
|
61
|
+
writer.uint32(80).int32(message.insurance_worth);
|
|
66
62
|
}
|
|
67
63
|
if (message.credit_report !== 0) {
|
|
68
|
-
writer.uint32(
|
|
64
|
+
writer.uint32(88).int32(message.credit_report);
|
|
69
65
|
}
|
|
70
66
|
if (message.total_amount !== 0) {
|
|
71
|
-
writer.uint32(
|
|
67
|
+
writer.uint32(96).int32(message.total_amount);
|
|
72
68
|
}
|
|
73
69
|
return writer;
|
|
74
70
|
},
|
|
@@ -95,66 +91,60 @@ exports.cbLoanRequest = {
|
|
|
95
91
|
if (tag !== 24) {
|
|
96
92
|
break;
|
|
97
93
|
}
|
|
98
|
-
message.
|
|
94
|
+
message.customer_id = reader.int32();
|
|
99
95
|
continue;
|
|
100
96
|
case 4:
|
|
101
|
-
if (tag !==
|
|
97
|
+
if (tag !== 34) {
|
|
102
98
|
break;
|
|
103
99
|
}
|
|
104
|
-
message.
|
|
100
|
+
message.ip = reader.string();
|
|
105
101
|
continue;
|
|
106
102
|
case 5:
|
|
107
|
-
if (tag !==
|
|
103
|
+
if (tag !== 45) {
|
|
108
104
|
break;
|
|
109
105
|
}
|
|
110
|
-
message.
|
|
106
|
+
message.latitude = reader.float();
|
|
111
107
|
continue;
|
|
112
108
|
case 6:
|
|
113
109
|
if (tag !== 53) {
|
|
114
110
|
break;
|
|
115
111
|
}
|
|
116
|
-
message.
|
|
112
|
+
message.longitude = reader.float();
|
|
117
113
|
continue;
|
|
118
114
|
case 7:
|
|
119
|
-
if (tag !==
|
|
115
|
+
if (tag !== 56) {
|
|
120
116
|
break;
|
|
121
117
|
}
|
|
122
|
-
message.
|
|
118
|
+
message.builder_fee = reader.int32();
|
|
123
119
|
continue;
|
|
124
120
|
case 8:
|
|
125
121
|
if (tag !== 64) {
|
|
126
122
|
break;
|
|
127
123
|
}
|
|
128
|
-
message.
|
|
124
|
+
message.gst = reader.int32();
|
|
129
125
|
continue;
|
|
130
126
|
case 9:
|
|
131
127
|
if (tag !== 72) {
|
|
132
128
|
break;
|
|
133
129
|
}
|
|
134
|
-
message.
|
|
130
|
+
message.first_emi = reader.int32();
|
|
135
131
|
continue;
|
|
136
132
|
case 10:
|
|
137
133
|
if (tag !== 80) {
|
|
138
134
|
break;
|
|
139
135
|
}
|
|
140
|
-
message.
|
|
136
|
+
message.insurance_worth = reader.int32();
|
|
141
137
|
continue;
|
|
142
138
|
case 11:
|
|
143
139
|
if (tag !== 88) {
|
|
144
140
|
break;
|
|
145
141
|
}
|
|
146
|
-
message.
|
|
142
|
+
message.credit_report = reader.int32();
|
|
147
143
|
continue;
|
|
148
144
|
case 12:
|
|
149
145
|
if (tag !== 96) {
|
|
150
146
|
break;
|
|
151
147
|
}
|
|
152
|
-
message.credit_report = reader.int32();
|
|
153
|
-
continue;
|
|
154
|
-
case 13:
|
|
155
|
-
if (tag !== 104) {
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
148
|
message.total_amount = reader.int32();
|
|
159
149
|
continue;
|
|
160
150
|
}
|
|
@@ -169,7 +159,6 @@ exports.cbLoanRequest = {
|
|
|
169
159
|
return {
|
|
170
160
|
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
171
161
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
172
|
-
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
173
162
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
174
163
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
175
164
|
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
@@ -190,9 +179,6 @@ exports.cbLoanRequest = {
|
|
|
190
179
|
if (message.amount !== 0) {
|
|
191
180
|
obj.amount = Math.round(message.amount);
|
|
192
181
|
}
|
|
193
|
-
if (message.tenure !== 0) {
|
|
194
|
-
obj.tenure = Math.round(message.tenure);
|
|
195
|
-
}
|
|
196
182
|
if (message.customer_id !== 0) {
|
|
197
183
|
obj.customer_id = Math.round(message.customer_id);
|
|
198
184
|
}
|
|
@@ -232,7 +218,6 @@ exports.cbLoanRequest = {
|
|
|
232
218
|
const message = createBasecbLoanRequest();
|
|
233
219
|
message.bank_id = object.bank_id ?? 0;
|
|
234
220
|
message.amount = object.amount ?? 0;
|
|
235
|
-
message.tenure = object.tenure ?? 0;
|
|
236
221
|
message.customer_id = object.customer_id ?? 0;
|
|
237
222
|
message.ip = object.ip ?? "";
|
|
238
223
|
message.latitude = object.latitude ?? 0;
|
|
@@ -247,134 +232,12 @@ exports.cbLoanRequest = {
|
|
|
247
232
|
},
|
|
248
233
|
};
|
|
249
234
|
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
|
-
};
|
|
235
|
+
return { status: "" };
|
|
283
236
|
}
|
|
284
237
|
exports.cbLoanResponse = {
|
|
285
238
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
286
|
-
if (message.
|
|
287
|
-
writer.uint32(
|
|
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);
|
|
239
|
+
if (message.status !== "") {
|
|
240
|
+
writer.uint32(10).string(message.status);
|
|
378
241
|
}
|
|
379
242
|
return writer;
|
|
380
243
|
},
|
|
@@ -386,190 +249,10 @@ exports.cbLoanResponse = {
|
|
|
386
249
|
const tag = reader.uint32();
|
|
387
250
|
switch (tag >>> 3) {
|
|
388
251
|
case 1:
|
|
389
|
-
if (tag !==
|
|
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) {
|
|
252
|
+
if (tag !== 10) {
|
|
414
253
|
break;
|
|
415
254
|
}
|
|
416
|
-
message.
|
|
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();
|
|
255
|
+
message.status = reader.string();
|
|
573
256
|
continue;
|
|
574
257
|
}
|
|
575
258
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -580,142 +263,12 @@ exports.cbLoanResponse = {
|
|
|
580
263
|
return message;
|
|
581
264
|
},
|
|
582
265
|
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
|
-
};
|
|
266
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
624
267
|
},
|
|
625
268
|
toJSON(message) {
|
|
626
269
|
const obj = {};
|
|
627
|
-
if (message.
|
|
628
|
-
obj.
|
|
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);
|
|
270
|
+
if (message.status !== "") {
|
|
271
|
+
obj.status = message.status;
|
|
719
272
|
}
|
|
720
273
|
return obj;
|
|
721
274
|
},
|
|
@@ -724,37 +277,7 @@ exports.cbLoanResponse = {
|
|
|
724
277
|
},
|
|
725
278
|
fromPartial(object) {
|
|
726
279
|
const message = createBasecbLoanResponse();
|
|
727
|
-
message.
|
|
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;
|
|
280
|
+
message.status = object.status ?? "";
|
|
758
281
|
return message;
|
|
759
282
|
},
|
|
760
283
|
};
|