@stashfin/grpc 1.2.310 → 1.2.312
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/growth/notifychrpayment.d.ts +41 -0
- package/ts/growth/notifychrpayment.js +205 -0
- package/ts/growth.d.ts +9 -9
- package/ts/growth.js +5 -5
- package/ts/loans/approveloan.d.ts +1 -0
- package/ts/loans/approveloan.js +15 -1
- package/ts/loans/calculateemi.d.ts +1 -0
- package/ts/loans/calculateemi.js +15 -1
- package/ts/loans/loansummary.d.ts +1 -0
- package/ts/loans/loansummary.js +15 -1
package/package.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "growth.notifychrpayment";
|
|
3
|
+
export interface notifychrrequest {
|
|
4
|
+
status: string;
|
|
5
|
+
order_id: string;
|
|
6
|
+
customer_id: number;
|
|
7
|
+
mode: string;
|
|
8
|
+
meta_data: string;
|
|
9
|
+
}
|
|
10
|
+
export interface notifychrresponse {
|
|
11
|
+
status: string;
|
|
12
|
+
statusCode: number;
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const notifychrrequest: {
|
|
16
|
+
encode(message: notifychrrequest, writer?: _m0.Writer): _m0.Writer;
|
|
17
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): notifychrrequest;
|
|
18
|
+
fromJSON(object: any): notifychrrequest;
|
|
19
|
+
toJSON(message: notifychrrequest): unknown;
|
|
20
|
+
create<I extends Exact<DeepPartial<notifychrrequest>, I>>(base?: I): notifychrrequest;
|
|
21
|
+
fromPartial<I extends Exact<DeepPartial<notifychrrequest>, I>>(object: I): notifychrrequest;
|
|
22
|
+
};
|
|
23
|
+
export declare const notifychrresponse: {
|
|
24
|
+
encode(message: notifychrresponse, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): notifychrresponse;
|
|
26
|
+
fromJSON(object: any): notifychrresponse;
|
|
27
|
+
toJSON(message: notifychrresponse): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<notifychrresponse>, I>>(base?: I): notifychrresponse;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<notifychrresponse>, I>>(object: I): notifychrresponse;
|
|
30
|
+
};
|
|
31
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
32
|
+
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 {} ? {
|
|
33
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
34
|
+
} : Partial<T>;
|
|
35
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
36
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
37
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
38
|
+
} & {
|
|
39
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,205 @@
|
|
|
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: growth/notifychrpayment.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.notifychrresponse = exports.notifychrrequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "growth.notifychrpayment";
|
|
15
|
+
function createBasenotifychrrequest() {
|
|
16
|
+
return { status: "", order_id: "", customer_id: 0, mode: "", meta_data: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.notifychrrequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.status !== "") {
|
|
21
|
+
writer.uint32(10).string(message.status);
|
|
22
|
+
}
|
|
23
|
+
if (message.order_id !== "") {
|
|
24
|
+
writer.uint32(18).string(message.order_id);
|
|
25
|
+
}
|
|
26
|
+
if (message.customer_id !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.customer_id);
|
|
28
|
+
}
|
|
29
|
+
if (message.mode !== "") {
|
|
30
|
+
writer.uint32(34).string(message.mode);
|
|
31
|
+
}
|
|
32
|
+
if (message.meta_data !== "") {
|
|
33
|
+
writer.uint32(42).string(message.meta_data);
|
|
34
|
+
}
|
|
35
|
+
return writer;
|
|
36
|
+
},
|
|
37
|
+
decode(input, length) {
|
|
38
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
39
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
40
|
+
const message = createBasenotifychrrequest();
|
|
41
|
+
while (reader.pos < end) {
|
|
42
|
+
const tag = reader.uint32();
|
|
43
|
+
switch (tag >>> 3) {
|
|
44
|
+
case 1:
|
|
45
|
+
if (tag !== 10) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.status = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 2:
|
|
51
|
+
if (tag !== 18) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.order_id = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
case 3:
|
|
57
|
+
if (tag !== 24) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.customer_id = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 4:
|
|
63
|
+
if (tag !== 34) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.mode = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 42) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.meta_data = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
reader.skipType(tag & 7);
|
|
79
|
+
}
|
|
80
|
+
return message;
|
|
81
|
+
},
|
|
82
|
+
fromJSON(object) {
|
|
83
|
+
return {
|
|
84
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
85
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
86
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
87
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
88
|
+
meta_data: isSet(object.meta_data) ? globalThis.String(object.meta_data) : "",
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
toJSON(message) {
|
|
92
|
+
const obj = {};
|
|
93
|
+
if (message.status !== "") {
|
|
94
|
+
obj.status = message.status;
|
|
95
|
+
}
|
|
96
|
+
if (message.order_id !== "") {
|
|
97
|
+
obj.order_id = message.order_id;
|
|
98
|
+
}
|
|
99
|
+
if (message.customer_id !== 0) {
|
|
100
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
101
|
+
}
|
|
102
|
+
if (message.mode !== "") {
|
|
103
|
+
obj.mode = message.mode;
|
|
104
|
+
}
|
|
105
|
+
if (message.meta_data !== "") {
|
|
106
|
+
obj.meta_data = message.meta_data;
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
create(base) {
|
|
111
|
+
return exports.notifychrrequest.fromPartial(base ?? {});
|
|
112
|
+
},
|
|
113
|
+
fromPartial(object) {
|
|
114
|
+
const message = createBasenotifychrrequest();
|
|
115
|
+
message.status = object.status ?? "";
|
|
116
|
+
message.order_id = object.order_id ?? "";
|
|
117
|
+
message.customer_id = object.customer_id ?? 0;
|
|
118
|
+
message.mode = object.mode ?? "";
|
|
119
|
+
message.meta_data = object.meta_data ?? "";
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
function createBasenotifychrresponse() {
|
|
124
|
+
return { status: "", statusCode: 0, message: "" };
|
|
125
|
+
}
|
|
126
|
+
exports.notifychrresponse = {
|
|
127
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
128
|
+
if (message.status !== "") {
|
|
129
|
+
writer.uint32(10).string(message.status);
|
|
130
|
+
}
|
|
131
|
+
if (message.statusCode !== 0) {
|
|
132
|
+
writer.uint32(16).int32(message.statusCode);
|
|
133
|
+
}
|
|
134
|
+
if (message.message !== "") {
|
|
135
|
+
writer.uint32(26).string(message.message);
|
|
136
|
+
}
|
|
137
|
+
return writer;
|
|
138
|
+
},
|
|
139
|
+
decode(input, length) {
|
|
140
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
141
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
142
|
+
const message = createBasenotifychrresponse();
|
|
143
|
+
while (reader.pos < end) {
|
|
144
|
+
const tag = reader.uint32();
|
|
145
|
+
switch (tag >>> 3) {
|
|
146
|
+
case 1:
|
|
147
|
+
if (tag !== 10) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
message.status = reader.string();
|
|
151
|
+
continue;
|
|
152
|
+
case 2:
|
|
153
|
+
if (tag !== 16) {
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
message.statusCode = reader.int32();
|
|
157
|
+
continue;
|
|
158
|
+
case 3:
|
|
159
|
+
if (tag !== 26) {
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
message.message = reader.string();
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
reader.skipType(tag & 7);
|
|
169
|
+
}
|
|
170
|
+
return message;
|
|
171
|
+
},
|
|
172
|
+
fromJSON(object) {
|
|
173
|
+
return {
|
|
174
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
175
|
+
statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
|
|
176
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
toJSON(message) {
|
|
180
|
+
const obj = {};
|
|
181
|
+
if (message.status !== "") {
|
|
182
|
+
obj.status = message.status;
|
|
183
|
+
}
|
|
184
|
+
if (message.statusCode !== 0) {
|
|
185
|
+
obj.statusCode = Math.round(message.statusCode);
|
|
186
|
+
}
|
|
187
|
+
if (message.message !== "") {
|
|
188
|
+
obj.message = message.message;
|
|
189
|
+
}
|
|
190
|
+
return obj;
|
|
191
|
+
},
|
|
192
|
+
create(base) {
|
|
193
|
+
return exports.notifychrresponse.fromPartial(base ?? {});
|
|
194
|
+
},
|
|
195
|
+
fromPartial(object) {
|
|
196
|
+
const message = createBasenotifychrresponse();
|
|
197
|
+
message.status = object.status ?? "";
|
|
198
|
+
message.statusCode = object.statusCode ?? 0;
|
|
199
|
+
message.message = object.message ?? "";
|
|
200
|
+
return message;
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
function isSet(value) {
|
|
204
|
+
return value !== null && value !== undefined;
|
|
205
|
+
}
|
package/ts/growth.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { paymentstatusrequest, paymentstatusresponse } from "./growth/getchrpaym
|
|
|
5
5
|
import { chrplansrequest, chrplansresponse } from "./growth/getchrplans";
|
|
6
6
|
import { credithealthreportrequest, credithealthreportresponse } from "./growth/getcredithealthreport";
|
|
7
7
|
import { initiatepaymentrequest, initiatepaymentresponse } from "./growth/initiatepayment";
|
|
8
|
-
import {
|
|
8
|
+
import { notifychrrequest, notifychrresponse } from "./growth/notifychrpayment";
|
|
9
9
|
export declare const protobufPackage = "service";
|
|
10
10
|
export type growthService = typeof growthService;
|
|
11
11
|
export declare const growthService: {
|
|
@@ -13,10 +13,10 @@ export declare const growthService: {
|
|
|
13
13
|
readonly path: "/service.growth/processchrpayment";
|
|
14
14
|
readonly requestStream: false;
|
|
15
15
|
readonly responseStream: false;
|
|
16
|
-
readonly requestSerialize: (value:
|
|
17
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
18
|
-
readonly responseSerialize: (value:
|
|
19
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
16
|
+
readonly requestSerialize: (value: notifychrrequest) => Buffer;
|
|
17
|
+
readonly requestDeserialize: (value: Buffer) => notifychrrequest;
|
|
18
|
+
readonly responseSerialize: (value: notifychrresponse) => Buffer;
|
|
19
|
+
readonly responseDeserialize: (value: Buffer) => notifychrresponse;
|
|
20
20
|
};
|
|
21
21
|
readonly checkplanstatus: {
|
|
22
22
|
readonly path: "/service.growth/checkplanstatus";
|
|
@@ -74,7 +74,7 @@ export declare const growthService: {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
export interface growthServer extends UntypedServiceImplementation {
|
|
77
|
-
processchrpayment: handleUnaryCall<
|
|
77
|
+
processchrpayment: handleUnaryCall<notifychrrequest, notifychrresponse>;
|
|
78
78
|
checkplanstatus: handleUnaryCall<chrplansstatusrequest, chrplanstatusresponse>;
|
|
79
79
|
getattachplandetails: handleUnaryCall<chrattachplanrequest, chrattachplanresponse>;
|
|
80
80
|
getchrplans: handleUnaryCall<chrplansrequest, chrplansresponse>;
|
|
@@ -83,9 +83,9 @@ export interface growthServer extends UntypedServiceImplementation {
|
|
|
83
83
|
getchrpaymentstatus: handleUnaryCall<paymentstatusrequest, paymentstatusresponse>;
|
|
84
84
|
}
|
|
85
85
|
export interface growthClient extends Client {
|
|
86
|
-
processchrpayment(request:
|
|
87
|
-
processchrpayment(request:
|
|
88
|
-
processchrpayment(request:
|
|
86
|
+
processchrpayment(request: notifychrrequest, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
|
|
87
|
+
processchrpayment(request: notifychrrequest, metadata: Metadata, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
|
|
88
|
+
processchrpayment(request: notifychrrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
|
|
89
89
|
checkplanstatus(request: chrplansstatusrequest, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
|
|
90
90
|
checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
|
|
91
91
|
checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
|
package/ts/growth.js
CHANGED
|
@@ -14,17 +14,17 @@ const getchrpaymentstatus_1 = require("./growth/getchrpaymentstatus");
|
|
|
14
14
|
const getchrplans_1 = require("./growth/getchrplans");
|
|
15
15
|
const getcredithealthreport_1 = require("./growth/getcredithealthreport");
|
|
16
16
|
const initiatepayment_1 = require("./growth/initiatepayment");
|
|
17
|
-
const
|
|
17
|
+
const notifychrpayment_1 = require("./growth/notifychrpayment");
|
|
18
18
|
exports.protobufPackage = "service";
|
|
19
19
|
exports.growthService = {
|
|
20
20
|
processchrpayment: {
|
|
21
21
|
path: "/service.growth/processchrpayment",
|
|
22
22
|
requestStream: false,
|
|
23
23
|
responseStream: false,
|
|
24
|
-
requestSerialize: (value) => Buffer.from(
|
|
25
|
-
requestDeserialize: (value) =>
|
|
26
|
-
responseSerialize: (value) => Buffer.from(
|
|
27
|
-
responseDeserialize: (value) =>
|
|
24
|
+
requestSerialize: (value) => Buffer.from(notifychrpayment_1.notifychrrequest.encode(value).finish()),
|
|
25
|
+
requestDeserialize: (value) => notifychrpayment_1.notifychrrequest.decode(value),
|
|
26
|
+
responseSerialize: (value) => Buffer.from(notifychrpayment_1.notifychrresponse.encode(value).finish()),
|
|
27
|
+
responseDeserialize: (value) => notifychrpayment_1.notifychrresponse.decode(value),
|
|
28
28
|
},
|
|
29
29
|
checkplanstatus: {
|
|
30
30
|
path: "/service.growth/checkplanstatus",
|
package/ts/loans/approveloan.js
CHANGED
|
@@ -165,7 +165,7 @@ exports.approveLoanRequest = {
|
|
|
165
165
|
},
|
|
166
166
|
};
|
|
167
167
|
function createBaseapproveLoanRequest_Field() {
|
|
168
|
-
return { name: "", amount: 0 };
|
|
168
|
+
return { name: "", amount: 0, plan_id: 0 };
|
|
169
169
|
}
|
|
170
170
|
exports.approveLoanRequest_Field = {
|
|
171
171
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -175,6 +175,9 @@ exports.approveLoanRequest_Field = {
|
|
|
175
175
|
if (message.amount !== 0) {
|
|
176
176
|
writer.uint32(16).int32(message.amount);
|
|
177
177
|
}
|
|
178
|
+
if (message.plan_id !== 0) {
|
|
179
|
+
writer.uint32(24).int32(message.plan_id);
|
|
180
|
+
}
|
|
178
181
|
return writer;
|
|
179
182
|
},
|
|
180
183
|
decode(input, length) {
|
|
@@ -196,6 +199,12 @@ exports.approveLoanRequest_Field = {
|
|
|
196
199
|
}
|
|
197
200
|
message.amount = reader.int32();
|
|
198
201
|
continue;
|
|
202
|
+
case 3:
|
|
203
|
+
if (tag !== 24) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
message.plan_id = reader.int32();
|
|
207
|
+
continue;
|
|
199
208
|
}
|
|
200
209
|
if ((tag & 7) === 4 || tag === 0) {
|
|
201
210
|
break;
|
|
@@ -208,6 +217,7 @@ exports.approveLoanRequest_Field = {
|
|
|
208
217
|
return {
|
|
209
218
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
210
219
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
220
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
211
221
|
};
|
|
212
222
|
},
|
|
213
223
|
toJSON(message) {
|
|
@@ -218,6 +228,9 @@ exports.approveLoanRequest_Field = {
|
|
|
218
228
|
if (message.amount !== 0) {
|
|
219
229
|
obj.amount = Math.round(message.amount);
|
|
220
230
|
}
|
|
231
|
+
if (message.plan_id !== 0) {
|
|
232
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
233
|
+
}
|
|
221
234
|
return obj;
|
|
222
235
|
},
|
|
223
236
|
create(base) {
|
|
@@ -227,6 +240,7 @@ exports.approveLoanRequest_Field = {
|
|
|
227
240
|
const message = createBaseapproveLoanRequest_Field();
|
|
228
241
|
message.name = object.name ?? "";
|
|
229
242
|
message.amount = object.amount ?? 0;
|
|
243
|
+
message.plan_id = object.plan_id ?? 0;
|
|
230
244
|
return message;
|
|
231
245
|
},
|
|
232
246
|
};
|
package/ts/loans/calculateemi.js
CHANGED
|
@@ -81,7 +81,7 @@ exports.calculateEmiRequest = {
|
|
|
81
81
|
},
|
|
82
82
|
};
|
|
83
83
|
function createBasecalculateEmiRequest_Field() {
|
|
84
|
-
return { name: "", amount: 0 };
|
|
84
|
+
return { name: "", amount: 0, plan_id: 0 };
|
|
85
85
|
}
|
|
86
86
|
exports.calculateEmiRequest_Field = {
|
|
87
87
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -91,6 +91,9 @@ exports.calculateEmiRequest_Field = {
|
|
|
91
91
|
if (message.amount !== 0) {
|
|
92
92
|
writer.uint32(16).int32(message.amount);
|
|
93
93
|
}
|
|
94
|
+
if (message.plan_id !== 0) {
|
|
95
|
+
writer.uint32(24).int32(message.plan_id);
|
|
96
|
+
}
|
|
94
97
|
return writer;
|
|
95
98
|
},
|
|
96
99
|
decode(input, length) {
|
|
@@ -112,6 +115,12 @@ exports.calculateEmiRequest_Field = {
|
|
|
112
115
|
}
|
|
113
116
|
message.amount = reader.int32();
|
|
114
117
|
continue;
|
|
118
|
+
case 3:
|
|
119
|
+
if (tag !== 24) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
message.plan_id = reader.int32();
|
|
123
|
+
continue;
|
|
115
124
|
}
|
|
116
125
|
if ((tag & 7) === 4 || tag === 0) {
|
|
117
126
|
break;
|
|
@@ -124,6 +133,7 @@ exports.calculateEmiRequest_Field = {
|
|
|
124
133
|
return {
|
|
125
134
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
126
135
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
136
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
127
137
|
};
|
|
128
138
|
},
|
|
129
139
|
toJSON(message) {
|
|
@@ -134,6 +144,9 @@ exports.calculateEmiRequest_Field = {
|
|
|
134
144
|
if (message.amount !== 0) {
|
|
135
145
|
obj.amount = Math.round(message.amount);
|
|
136
146
|
}
|
|
147
|
+
if (message.plan_id !== 0) {
|
|
148
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
149
|
+
}
|
|
137
150
|
return obj;
|
|
138
151
|
},
|
|
139
152
|
create(base) {
|
|
@@ -143,6 +156,7 @@ exports.calculateEmiRequest_Field = {
|
|
|
143
156
|
const message = createBasecalculateEmiRequest_Field();
|
|
144
157
|
message.name = object.name ?? "";
|
|
145
158
|
message.amount = object.amount ?? 0;
|
|
159
|
+
message.plan_id = object.plan_id ?? 0;
|
|
146
160
|
return message;
|
|
147
161
|
},
|
|
148
162
|
};
|
package/ts/loans/loansummary.js
CHANGED
|
@@ -95,7 +95,7 @@ exports.loanSummaryRequest = {
|
|
|
95
95
|
},
|
|
96
96
|
};
|
|
97
97
|
function createBaseloanSummaryRequest_Field() {
|
|
98
|
-
return { name: "", amount: 0 };
|
|
98
|
+
return { name: "", amount: 0, plan_id: 0 };
|
|
99
99
|
}
|
|
100
100
|
exports.loanSummaryRequest_Field = {
|
|
101
101
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -105,6 +105,9 @@ exports.loanSummaryRequest_Field = {
|
|
|
105
105
|
if (message.amount !== 0) {
|
|
106
106
|
writer.uint32(16).int32(message.amount);
|
|
107
107
|
}
|
|
108
|
+
if (message.plan_id !== 0) {
|
|
109
|
+
writer.uint32(24).int32(message.plan_id);
|
|
110
|
+
}
|
|
108
111
|
return writer;
|
|
109
112
|
},
|
|
110
113
|
decode(input, length) {
|
|
@@ -126,6 +129,12 @@ exports.loanSummaryRequest_Field = {
|
|
|
126
129
|
}
|
|
127
130
|
message.amount = reader.int32();
|
|
128
131
|
continue;
|
|
132
|
+
case 3:
|
|
133
|
+
if (tag !== 24) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
message.plan_id = reader.int32();
|
|
137
|
+
continue;
|
|
129
138
|
}
|
|
130
139
|
if ((tag & 7) === 4 || tag === 0) {
|
|
131
140
|
break;
|
|
@@ -138,6 +147,7 @@ exports.loanSummaryRequest_Field = {
|
|
|
138
147
|
return {
|
|
139
148
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
140
149
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
150
|
+
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
141
151
|
};
|
|
142
152
|
},
|
|
143
153
|
toJSON(message) {
|
|
@@ -148,6 +158,9 @@ exports.loanSummaryRequest_Field = {
|
|
|
148
158
|
if (message.amount !== 0) {
|
|
149
159
|
obj.amount = Math.round(message.amount);
|
|
150
160
|
}
|
|
161
|
+
if (message.plan_id !== 0) {
|
|
162
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
163
|
+
}
|
|
151
164
|
return obj;
|
|
152
165
|
},
|
|
153
166
|
create(base) {
|
|
@@ -157,6 +170,7 @@ exports.loanSummaryRequest_Field = {
|
|
|
157
170
|
const message = createBaseloanSummaryRequest_Field();
|
|
158
171
|
message.name = object.name ?? "";
|
|
159
172
|
message.amount = object.amount ?? 0;
|
|
173
|
+
message.plan_id = object.plan_id ?? 0;
|
|
160
174
|
return message;
|
|
161
175
|
},
|
|
162
176
|
};
|