@stashfin/grpc 1.2.51 → 1.2.52
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/customer/getprofile.d.ts +38 -0
- package/ts/customer/getprofile.js +162 -0
- package/ts/customer/getstep.d.ts +78 -0
- package/ts/customer/getstep.js +420 -0
- package/ts/customer/profileupdatetnc.d.ts +35 -0
- package/ts/{customers/saveunlocklimit.js → customer/profileupdatetnc.js} +33 -20
- package/ts/customer/sendotp.d.ts +36 -0
- package/ts/{customers/resetmpin.js → customer/sendotp.js} +47 -47
- package/ts/customer/setmpin.d.ts +36 -0
- package/ts/{customers/updatehypervergetxn.js → customer/setmpin.js} +30 -30
- package/ts/customer/step1.d.ts +69 -0
- package/ts/customer/step1.js +395 -0
- package/ts/customer/step10.d.ts +73 -0
- package/ts/customer/step10.js +459 -0
- package/ts/customer/step2.d.ts +68 -0
- package/ts/customer/step2.js +381 -0
- package/ts/customer/step7.d.ts +68 -0
- package/ts/customer/step7.js +381 -0
- package/ts/customer/step8.d.ts +69 -0
- package/ts/customer/step8.js +395 -0
- package/ts/customer/step9.d.ts +75 -0
- package/ts/customer/step9.js +489 -0
- package/ts/customer/stepstatic.d.ts +66 -0
- package/ts/customer/stepstatic.js +352 -0
- package/ts/customer/verifympin.d.ts +37 -0
- package/ts/{customers/updatedigilockertxn.js → customer/verifympin.js} +48 -46
- package/ts/customer/verifyotp.d.ts +39 -0
- package/ts/customer/verifyotp.js +177 -0
- package/ts/customer.d.ts +262 -0
- package/ts/customer.js +190 -0
- package/ts/customers/getbankaccountdetails.js +1 -1
- package/ts/customers/getbasicinfo.d.ts +3 -20
- package/ts/customers/getbasicinfo.js +24 -171
- package/ts/customers/getcustomerbyid.d.ts +0 -5
- package/ts/customers/getcustomerbyid.js +1 -76
- package/ts/customers/getdashboard.d.ts +0 -1
- package/ts/customers/getdashboard.js +34 -49
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getprofessionalinfo.d.ts +1 -18
- package/ts/customers/getprofessionalinfo.js +10 -148
- package/ts/customers/getprofile.d.ts +2 -17
- package/ts/customers/getprofile.js +26 -146
- package/ts/customers/getstep.d.ts +28 -19
- package/ts/customers/getstep.js +173 -159
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/sendemailtoken.js +1 -1
- package/ts/customers/sendotp.js +1 -1
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/step1.d.ts +0 -2
- package/ts/customers/step1.js +4 -32
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.d.ts +6 -5
- package/ts/customers/step2.js +37 -22
- package/ts/customers/step7.js +1 -1
- package/ts/customers/step8.js +1 -1
- package/ts/customers/step9.js +1 -1
- package/ts/customers/stepstatic.js +1 -1
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers.d.ts +28 -180
- package/ts/customers.js +17 -125
- package/ts/example.js +1 -1
- package/ts/google/protobuf/any.d.ts +138 -0
- package/ts/google/protobuf/any.js +108 -0
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.d.ts +11 -0
- package/ts/loans/banklist.js +60 -6
- package/ts/loans/calculateemi.d.ts +2 -16
- package/ts/loans/calculateemi.js +19 -115
- package/ts/loans/creditlimit.d.ts +0 -8
- package/ts/loans/creditlimit.js +2 -129
- package/ts/loans/updateinstallments.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.d.ts +0 -14
- package/ts/loans.js +1 -11
- package/ts/payments/checkpaymentstatus.d.ts +51 -0
- package/ts/payments/checkpaymentstatus.js +259 -0
- package/ts/payments/createorder.d.ts +39 -0
- package/ts/payments/createorder.js +191 -0
- package/ts/payments/getpaymentdetails.d.ts +58 -0
- package/ts/payments/getpaymentdetails.js +367 -0
- package/ts/payments/getpaymentoptions.d.ts +50 -0
- package/ts/payments/getpaymentoptions.js +231 -0
- package/ts/payments/initiatepayment.d.ts +54 -0
- package/ts/payments/initiatepayment.js +299 -0
- package/ts/payments.d.ts +70 -0
- package/ts/payments.js +54 -0
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.js +1 -1
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
- package/ts/customers/addaddress.d.ts +0 -50
- package/ts/customers/addaddress.js +0 -265
- package/ts/customers/addbankaccountdetails.d.ts +0 -37
- package/ts/customers/addbankaccountdetails.js +0 -147
- package/ts/customers/createcustomerreference.d.ts +0 -43
- package/ts/customers/createcustomerreference.js +0 -226
- package/ts/customers/getcities.d.ts +0 -47
- package/ts/customers/getcities.js +0 -183
- package/ts/customers/getkycweburl.d.ts +0 -34
- package/ts/customers/getkycweburl.js +0 -104
- package/ts/customers/getstates.d.ts +0 -46
- package/ts/customers/getstates.js +0 -170
- package/ts/customers/resetmpin.d.ts +0 -36
- package/ts/customers/savebasicdetails.d.ts +0 -47
- package/ts/customers/savebasicdetails.js +0 -185
- package/ts/customers/saveunlocklimit.d.ts +0 -34
- package/ts/customers/updatedigilockertxn.d.ts +0 -37
- package/ts/customers/updatehypervergetxn.d.ts +0 -36
- package/ts/loans/restructureloan.d.ts +0 -36
- package/ts/loans/restructureloan.js +0 -133
- package/ts/loans/transactionlist.d.ts +0 -50
- package/ts/loans/transactionlist.js +0 -229
package/ts/loans/calculateemi.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/calculateemi.proto
|
|
7
7
|
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.
|
|
11
|
+
exports.calculateEmiResponse = exports.calculateEmiRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.calculateemi";
|
|
15
15
|
function createBasecalculateEmiRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return { loc_limit: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.calculateEmiRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(8).int32(message.
|
|
20
|
+
if (message.loc_limit !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loc_limit);
|
|
22
22
|
}
|
|
23
23
|
return writer;
|
|
24
24
|
},
|
|
@@ -33,7 +33,7 @@ exports.calculateEmiRequest = {
|
|
|
33
33
|
if (tag !== 8) {
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
|
-
message.
|
|
36
|
+
message.loc_limit = reader.int32();
|
|
37
37
|
continue;
|
|
38
38
|
}
|
|
39
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -44,12 +44,12 @@ exports.calculateEmiRequest = {
|
|
|
44
44
|
return message;
|
|
45
45
|
},
|
|
46
46
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
47
|
+
return { loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0 };
|
|
48
48
|
},
|
|
49
49
|
toJSON(message) {
|
|
50
50
|
const obj = {};
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
51
|
+
if (message.loc_limit !== 0) {
|
|
52
|
+
obj.loc_limit = Math.round(message.loc_limit);
|
|
53
53
|
}
|
|
54
54
|
return obj;
|
|
55
55
|
},
|
|
@@ -58,12 +58,12 @@ exports.calculateEmiRequest = {
|
|
|
58
58
|
},
|
|
59
59
|
fromPartial(object) {
|
|
60
60
|
const message = createBasecalculateEmiRequest();
|
|
61
|
-
message.
|
|
61
|
+
message.loc_limit = object.loc_limit ?? 0;
|
|
62
62
|
return message;
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
function createBasecalculateEmiResponse() {
|
|
66
|
-
return { disbursal_amount: 0, tenure: 0,
|
|
66
|
+
return { disbursal_amount: 0, tenure: 0, thirdparty_amount: 0 };
|
|
67
67
|
}
|
|
68
68
|
exports.calculateEmiResponse = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -73,14 +73,8 @@ exports.calculateEmiResponse = {
|
|
|
73
73
|
if (message.tenure !== 0) {
|
|
74
74
|
writer.uint32(16).int32(message.tenure);
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
if (message.min_tenure !== 0) {
|
|
80
|
-
writer.uint32(32).int32(message.min_tenure);
|
|
81
|
-
}
|
|
82
|
-
if (message.max_tenure !== 0) {
|
|
83
|
-
writer.uint32(40).int32(message.max_tenure);
|
|
76
|
+
if (message.thirdparty_amount !== 0) {
|
|
77
|
+
writer.uint32(24).int32(message.thirdparty_amount);
|
|
84
78
|
}
|
|
85
79
|
return writer;
|
|
86
80
|
},
|
|
@@ -104,22 +98,10 @@ exports.calculateEmiResponse = {
|
|
|
104
98
|
message.tenure = reader.int32();
|
|
105
99
|
continue;
|
|
106
100
|
case 3:
|
|
107
|
-
if (tag !==
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
message.expected_emi.push(exports.calculateEmiResponse_Field.decode(reader, reader.uint32()));
|
|
111
|
-
continue;
|
|
112
|
-
case 4:
|
|
113
|
-
if (tag !== 32) {
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
message.min_tenure = reader.int32();
|
|
117
|
-
continue;
|
|
118
|
-
case 5:
|
|
119
|
-
if (tag !== 40) {
|
|
101
|
+
if (tag !== 24) {
|
|
120
102
|
break;
|
|
121
103
|
}
|
|
122
|
-
message.
|
|
104
|
+
message.thirdparty_amount = reader.int32();
|
|
123
105
|
continue;
|
|
124
106
|
}
|
|
125
107
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -133,11 +115,7 @@ exports.calculateEmiResponse = {
|
|
|
133
115
|
return {
|
|
134
116
|
disbursal_amount: isSet(object.disbursal_amount) ? globalThis.Number(object.disbursal_amount) : 0,
|
|
135
117
|
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
136
|
-
|
|
137
|
-
? object.expected_emi.map((e) => exports.calculateEmiResponse_Field.fromJSON(e))
|
|
138
|
-
: [],
|
|
139
|
-
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
140
|
-
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
118
|
+
thirdparty_amount: isSet(object.thirdparty_amount) ? globalThis.Number(object.thirdparty_amount) : 0,
|
|
141
119
|
};
|
|
142
120
|
},
|
|
143
121
|
toJSON(message) {
|
|
@@ -148,14 +126,8 @@ exports.calculateEmiResponse = {
|
|
|
148
126
|
if (message.tenure !== 0) {
|
|
149
127
|
obj.tenure = Math.round(message.tenure);
|
|
150
128
|
}
|
|
151
|
-
if (message.
|
|
152
|
-
obj.
|
|
153
|
-
}
|
|
154
|
-
if (message.min_tenure !== 0) {
|
|
155
|
-
obj.min_tenure = Math.round(message.min_tenure);
|
|
156
|
-
}
|
|
157
|
-
if (message.max_tenure !== 0) {
|
|
158
|
-
obj.max_tenure = Math.round(message.max_tenure);
|
|
129
|
+
if (message.thirdparty_amount !== 0) {
|
|
130
|
+
obj.thirdparty_amount = Math.round(message.thirdparty_amount);
|
|
159
131
|
}
|
|
160
132
|
return obj;
|
|
161
133
|
},
|
|
@@ -166,75 +138,7 @@ exports.calculateEmiResponse = {
|
|
|
166
138
|
const message = createBasecalculateEmiResponse();
|
|
167
139
|
message.disbursal_amount = object.disbursal_amount ?? 0;
|
|
168
140
|
message.tenure = object.tenure ?? 0;
|
|
169
|
-
message.
|
|
170
|
-
message.min_tenure = object.min_tenure ?? 0;
|
|
171
|
-
message.max_tenure = object.max_tenure ?? 0;
|
|
172
|
-
return message;
|
|
173
|
-
},
|
|
174
|
-
};
|
|
175
|
-
function createBasecalculateEmiResponse_Field() {
|
|
176
|
-
return { tenure: 0, emi_amount: 0 };
|
|
177
|
-
}
|
|
178
|
-
exports.calculateEmiResponse_Field = {
|
|
179
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
180
|
-
if (message.tenure !== 0) {
|
|
181
|
-
writer.uint32(8).int32(message.tenure);
|
|
182
|
-
}
|
|
183
|
-
if (message.emi_amount !== 0) {
|
|
184
|
-
writer.uint32(16).int32(message.emi_amount);
|
|
185
|
-
}
|
|
186
|
-
return writer;
|
|
187
|
-
},
|
|
188
|
-
decode(input, length) {
|
|
189
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
190
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
191
|
-
const message = createBasecalculateEmiResponse_Field();
|
|
192
|
-
while (reader.pos < end) {
|
|
193
|
-
const tag = reader.uint32();
|
|
194
|
-
switch (tag >>> 3) {
|
|
195
|
-
case 1:
|
|
196
|
-
if (tag !== 8) {
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
message.tenure = reader.int32();
|
|
200
|
-
continue;
|
|
201
|
-
case 2:
|
|
202
|
-
if (tag !== 16) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
message.emi_amount = reader.int32();
|
|
206
|
-
continue;
|
|
207
|
-
}
|
|
208
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
reader.skipType(tag & 7);
|
|
212
|
-
}
|
|
213
|
-
return message;
|
|
214
|
-
},
|
|
215
|
-
fromJSON(object) {
|
|
216
|
-
return {
|
|
217
|
-
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
218
|
-
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
219
|
-
};
|
|
220
|
-
},
|
|
221
|
-
toJSON(message) {
|
|
222
|
-
const obj = {};
|
|
223
|
-
if (message.tenure !== 0) {
|
|
224
|
-
obj.tenure = Math.round(message.tenure);
|
|
225
|
-
}
|
|
226
|
-
if (message.emi_amount !== 0) {
|
|
227
|
-
obj.emi_amount = Math.round(message.emi_amount);
|
|
228
|
-
}
|
|
229
|
-
return obj;
|
|
230
|
-
},
|
|
231
|
-
create(base) {
|
|
232
|
-
return exports.calculateEmiResponse_Field.fromPartial(base ?? {});
|
|
233
|
-
},
|
|
234
|
-
fromPartial(object) {
|
|
235
|
-
const message = createBasecalculateEmiResponse_Field();
|
|
236
|
-
message.tenure = object.tenure ?? 0;
|
|
237
|
-
message.emi_amount = object.emi_amount ?? 0;
|
|
141
|
+
message.thirdparty_amount = object.thirdparty_amount ?? 0;
|
|
238
142
|
return message;
|
|
239
143
|
},
|
|
240
144
|
};
|
|
@@ -5,14 +5,6 @@ export interface creditLimitRequest {
|
|
|
5
5
|
export interface creditLimitResponse {
|
|
6
6
|
loc_limit: number;
|
|
7
7
|
used_limit: number;
|
|
8
|
-
min_tenure: number;
|
|
9
|
-
max_tenure: number;
|
|
10
|
-
rate_of_interest: number;
|
|
11
|
-
increment_step: number;
|
|
12
|
-
loc_disable: boolean;
|
|
13
|
-
request_max_percentage: number;
|
|
14
|
-
bill_date: string;
|
|
15
|
-
minimum_request_amount: number;
|
|
16
8
|
}
|
|
17
9
|
export declare const creditLimitRequest: {
|
|
18
10
|
encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/creditlimit.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -50,18 +50,7 @@ exports.creditLimitRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasecreditLimitResponse() {
|
|
53
|
-
return {
|
|
54
|
-
loc_limit: 0,
|
|
55
|
-
used_limit: 0,
|
|
56
|
-
min_tenure: 0,
|
|
57
|
-
max_tenure: 0,
|
|
58
|
-
rate_of_interest: 0,
|
|
59
|
-
increment_step: 0,
|
|
60
|
-
loc_disable: false,
|
|
61
|
-
request_max_percentage: 0,
|
|
62
|
-
bill_date: "",
|
|
63
|
-
minimum_request_amount: 0,
|
|
64
|
-
};
|
|
53
|
+
return { loc_limit: 0, used_limit: 0 };
|
|
65
54
|
}
|
|
66
55
|
exports.creditLimitResponse = {
|
|
67
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -71,30 +60,6 @@ exports.creditLimitResponse = {
|
|
|
71
60
|
if (message.used_limit !== 0) {
|
|
72
61
|
writer.uint32(16).int32(message.used_limit);
|
|
73
62
|
}
|
|
74
|
-
if (message.min_tenure !== 0) {
|
|
75
|
-
writer.uint32(24).int32(message.min_tenure);
|
|
76
|
-
}
|
|
77
|
-
if (message.max_tenure !== 0) {
|
|
78
|
-
writer.uint32(32).int32(message.max_tenure);
|
|
79
|
-
}
|
|
80
|
-
if (message.rate_of_interest !== 0) {
|
|
81
|
-
writer.uint32(40).int32(message.rate_of_interest);
|
|
82
|
-
}
|
|
83
|
-
if (message.increment_step !== 0) {
|
|
84
|
-
writer.uint32(48).int32(message.increment_step);
|
|
85
|
-
}
|
|
86
|
-
if (message.loc_disable !== false) {
|
|
87
|
-
writer.uint32(56).bool(message.loc_disable);
|
|
88
|
-
}
|
|
89
|
-
if (message.request_max_percentage !== 0) {
|
|
90
|
-
writer.uint32(64).int32(message.request_max_percentage);
|
|
91
|
-
}
|
|
92
|
-
if (message.bill_date !== "") {
|
|
93
|
-
writer.uint32(74).string(message.bill_date);
|
|
94
|
-
}
|
|
95
|
-
if (message.minimum_request_amount !== 0) {
|
|
96
|
-
writer.uint32(80).int32(message.minimum_request_amount);
|
|
97
|
-
}
|
|
98
63
|
return writer;
|
|
99
64
|
},
|
|
100
65
|
decode(input, length) {
|
|
@@ -116,54 +81,6 @@ exports.creditLimitResponse = {
|
|
|
116
81
|
}
|
|
117
82
|
message.used_limit = reader.int32();
|
|
118
83
|
continue;
|
|
119
|
-
case 3:
|
|
120
|
-
if (tag !== 24) {
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
message.min_tenure = reader.int32();
|
|
124
|
-
continue;
|
|
125
|
-
case 4:
|
|
126
|
-
if (tag !== 32) {
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
message.max_tenure = reader.int32();
|
|
130
|
-
continue;
|
|
131
|
-
case 5:
|
|
132
|
-
if (tag !== 40) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
message.rate_of_interest = reader.int32();
|
|
136
|
-
continue;
|
|
137
|
-
case 6:
|
|
138
|
-
if (tag !== 48) {
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
message.increment_step = reader.int32();
|
|
142
|
-
continue;
|
|
143
|
-
case 7:
|
|
144
|
-
if (tag !== 56) {
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
message.loc_disable = reader.bool();
|
|
148
|
-
continue;
|
|
149
|
-
case 8:
|
|
150
|
-
if (tag !== 64) {
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
message.request_max_percentage = reader.int32();
|
|
154
|
-
continue;
|
|
155
|
-
case 9:
|
|
156
|
-
if (tag !== 74) {
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
message.bill_date = reader.string();
|
|
160
|
-
continue;
|
|
161
|
-
case 10:
|
|
162
|
-
if (tag !== 80) {
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
message.minimum_request_amount = reader.int32();
|
|
166
|
-
continue;
|
|
167
84
|
}
|
|
168
85
|
if ((tag & 7) === 4 || tag === 0) {
|
|
169
86
|
break;
|
|
@@ -176,18 +93,6 @@ exports.creditLimitResponse = {
|
|
|
176
93
|
return {
|
|
177
94
|
loc_limit: isSet(object.loc_limit) ? globalThis.Number(object.loc_limit) : 0,
|
|
178
95
|
used_limit: isSet(object.used_limit) ? globalThis.Number(object.used_limit) : 0,
|
|
179
|
-
min_tenure: isSet(object.min_tenure) ? globalThis.Number(object.min_tenure) : 0,
|
|
180
|
-
max_tenure: isSet(object.max_tenure) ? globalThis.Number(object.max_tenure) : 0,
|
|
181
|
-
rate_of_interest: isSet(object.rate_of_interest) ? globalThis.Number(object.rate_of_interest) : 0,
|
|
182
|
-
increment_step: isSet(object.increment_step) ? globalThis.Number(object.increment_step) : 0,
|
|
183
|
-
loc_disable: isSet(object.loc_disable) ? globalThis.Boolean(object.loc_disable) : false,
|
|
184
|
-
request_max_percentage: isSet(object.request_max_percentage)
|
|
185
|
-
? globalThis.Number(object.request_max_percentage)
|
|
186
|
-
: 0,
|
|
187
|
-
bill_date: isSet(object.bill_date) ? globalThis.String(object.bill_date) : "",
|
|
188
|
-
minimum_request_amount: isSet(object.minimum_request_amount)
|
|
189
|
-
? globalThis.Number(object.minimum_request_amount)
|
|
190
|
-
: 0,
|
|
191
96
|
};
|
|
192
97
|
},
|
|
193
98
|
toJSON(message) {
|
|
@@ -198,30 +103,6 @@ exports.creditLimitResponse = {
|
|
|
198
103
|
if (message.used_limit !== 0) {
|
|
199
104
|
obj.used_limit = Math.round(message.used_limit);
|
|
200
105
|
}
|
|
201
|
-
if (message.min_tenure !== 0) {
|
|
202
|
-
obj.min_tenure = Math.round(message.min_tenure);
|
|
203
|
-
}
|
|
204
|
-
if (message.max_tenure !== 0) {
|
|
205
|
-
obj.max_tenure = Math.round(message.max_tenure);
|
|
206
|
-
}
|
|
207
|
-
if (message.rate_of_interest !== 0) {
|
|
208
|
-
obj.rate_of_interest = Math.round(message.rate_of_interest);
|
|
209
|
-
}
|
|
210
|
-
if (message.increment_step !== 0) {
|
|
211
|
-
obj.increment_step = Math.round(message.increment_step);
|
|
212
|
-
}
|
|
213
|
-
if (message.loc_disable !== false) {
|
|
214
|
-
obj.loc_disable = message.loc_disable;
|
|
215
|
-
}
|
|
216
|
-
if (message.request_max_percentage !== 0) {
|
|
217
|
-
obj.request_max_percentage = Math.round(message.request_max_percentage);
|
|
218
|
-
}
|
|
219
|
-
if (message.bill_date !== "") {
|
|
220
|
-
obj.bill_date = message.bill_date;
|
|
221
|
-
}
|
|
222
|
-
if (message.minimum_request_amount !== 0) {
|
|
223
|
-
obj.minimum_request_amount = Math.round(message.minimum_request_amount);
|
|
224
|
-
}
|
|
225
106
|
return obj;
|
|
226
107
|
},
|
|
227
108
|
create(base) {
|
|
@@ -231,14 +112,6 @@ exports.creditLimitResponse = {
|
|
|
231
112
|
const message = createBasecreditLimitResponse();
|
|
232
113
|
message.loc_limit = object.loc_limit ?? 0;
|
|
233
114
|
message.used_limit = object.used_limit ?? 0;
|
|
234
|
-
message.min_tenure = object.min_tenure ?? 0;
|
|
235
|
-
message.max_tenure = object.max_tenure ?? 0;
|
|
236
|
-
message.rate_of_interest = object.rate_of_interest ?? 0;
|
|
237
|
-
message.increment_step = object.increment_step ?? 0;
|
|
238
|
-
message.loc_disable = object.loc_disable ?? false;
|
|
239
|
-
message.request_max_percentage = object.request_max_percentage ?? 0;
|
|
240
|
-
message.bill_date = object.bill_date ?? "";
|
|
241
|
-
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
242
115
|
return message;
|
|
243
116
|
},
|
|
244
117
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/updateinstallments.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/updateloan.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/updateloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
|
3
3
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
4
4
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
5
5
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
|
-
import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
|
|
7
6
|
import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
|
|
8
7
|
import { updateLoanRequest, updateLoanResponse } from "./loans/updateloan";
|
|
9
8
|
export declare const protobufPackage = "service";
|
|
@@ -63,15 +62,6 @@ export declare const loansService: {
|
|
|
63
62
|
readonly responseSerialize: (value: updateInstallmentsResponse) => Buffer;
|
|
64
63
|
readonly responseDeserialize: (value: Buffer) => updateInstallmentsResponse;
|
|
65
64
|
};
|
|
66
|
-
readonly transactionList: {
|
|
67
|
-
readonly path: "/service.loans/transactionList";
|
|
68
|
-
readonly requestStream: false;
|
|
69
|
-
readonly responseStream: false;
|
|
70
|
-
readonly requestSerialize: (value: transactionListRequest) => Buffer;
|
|
71
|
-
readonly requestDeserialize: (value: Buffer) => transactionListRequest;
|
|
72
|
-
readonly responseSerialize: (value: transactionListResponse) => Buffer;
|
|
73
|
-
readonly responseDeserialize: (value: Buffer) => transactionListResponse;
|
|
74
|
-
};
|
|
75
65
|
};
|
|
76
66
|
export interface loansServer extends UntypedServiceImplementation {
|
|
77
67
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -80,7 +70,6 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
80
70
|
approveLoan: handleUnaryCall<approveLoanRequest, approveLoanResponse>;
|
|
81
71
|
updateloan: handleUnaryCall<updateLoanRequest, updateLoanResponse>;
|
|
82
72
|
updateInstallments: handleUnaryCall<updateInstallmentsRequest, updateInstallmentsResponse>;
|
|
83
|
-
transactionList: handleUnaryCall<transactionListRequest, transactionListResponse>;
|
|
84
73
|
}
|
|
85
74
|
export interface loansClient extends Client {
|
|
86
75
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -101,9 +90,6 @@ export interface loansClient extends Client {
|
|
|
101
90
|
updateInstallments(request: updateInstallmentsRequest, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
102
91
|
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
103
92
|
updateInstallments(request: updateInstallmentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateInstallmentsResponse) => void): ClientUnaryCall;
|
|
104
|
-
transactionList(request: transactionListRequest, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
105
|
-
transactionList(request: transactionListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
106
|
-
transactionList(request: transactionListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: transactionListResponse) => void): ClientUnaryCall;
|
|
107
93
|
}
|
|
108
94
|
export declare const loansClient: {
|
|
109
95
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -12,7 +12,6 @@ const approveloan_1 = require("./loans/approveloan");
|
|
|
12
12
|
const banklist_1 = require("./loans/banklist");
|
|
13
13
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
14
14
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
|
-
const transactionlist_1 = require("./loans/transactionlist");
|
|
16
15
|
const updateinstallments_1 = require("./loans/updateinstallments");
|
|
17
16
|
const updateloan_1 = require("./loans/updateloan");
|
|
18
17
|
exports.protobufPackage = "service";
|
|
@@ -71,14 +70,5 @@ exports.loansService = {
|
|
|
71
70
|
responseSerialize: (value) => Buffer.from(updateinstallments_1.updateInstallmentsResponse.encode(value).finish()),
|
|
72
71
|
responseDeserialize: (value) => updateinstallments_1.updateInstallmentsResponse.decode(value),
|
|
73
72
|
},
|
|
74
|
-
transactionList: {
|
|
75
|
-
path: "/service.loans/transactionList",
|
|
76
|
-
requestStream: false,
|
|
77
|
-
responseStream: false,
|
|
78
|
-
requestSerialize: (value) => Buffer.from(transactionlist_1.transactionListRequest.encode(value).finish()),
|
|
79
|
-
requestDeserialize: (value) => transactionlist_1.transactionListRequest.decode(value),
|
|
80
|
-
responseSerialize: (value) => Buffer.from(transactionlist_1.transactionListResponse.encode(value).finish()),
|
|
81
|
-
responseDeserialize: (value) => transactionlist_1.transactionListResponse.decode(value),
|
|
82
|
-
},
|
|
83
73
|
};
|
|
84
74
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "payments.checkpaymentstatus";
|
|
3
|
+
export interface request {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
client: string;
|
|
6
|
+
external_order_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface response {
|
|
9
|
+
status: string;
|
|
10
|
+
statusCode: number;
|
|
11
|
+
data: response_Data | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface response_Data {
|
|
14
|
+
payment_status: string;
|
|
15
|
+
external_order_id: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const request: {
|
|
18
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
20
|
+
fromJSON(object: any): request;
|
|
21
|
+
toJSON(message: request): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
24
|
+
};
|
|
25
|
+
export declare const response: {
|
|
26
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
28
|
+
fromJSON(object: any): response;
|
|
29
|
+
toJSON(message: response): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
32
|
+
};
|
|
33
|
+
export declare const response_Data: {
|
|
34
|
+
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
36
|
+
fromJSON(object: any): response_Data;
|
|
37
|
+
toJSON(message: response_Data): unknown;
|
|
38
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
39
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
40
|
+
};
|
|
41
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
42
|
+
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 {} ? {
|
|
43
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
|
+
} : Partial<T>;
|
|
45
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
46
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
47
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
48
|
+
} & {
|
|
49
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
50
|
+
};
|
|
51
|
+
export {};
|