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