@stashfin/grpc 1.2.349 → 1.2.350
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/loans/approveloan.d.ts +0 -1
- package/ts/loans/approveloan.js +10 -24
- package/ts/loans/cbloan.d.ts +0 -1
- package/ts/loans/cbloan.js +20 -35
package/package.json
CHANGED
package/ts/loans/approveloan.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.approveLoanResponse = exports.approveLoanRequest_Field = exports.approve
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.approveloan";
|
|
15
15
|
function createBaseapproveLoanRequest() {
|
|
16
|
-
return { bank_id: 0, amount: 0, tenure: 0,
|
|
16
|
+
return { bank_id: 0, amount: 0, tenure: 0, ip: "", addonsData: [], latitude: 0, longitude: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.approveLoanRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,20 +26,17 @@ exports.approveLoanRequest = {
|
|
|
26
26
|
if (message.tenure !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.tenure);
|
|
28
28
|
}
|
|
29
|
-
if (message.customer_id !== 0) {
|
|
30
|
-
writer.uint32(32).int32(message.customer_id);
|
|
31
|
-
}
|
|
32
29
|
if (message.ip !== "") {
|
|
33
|
-
writer.uint32(
|
|
30
|
+
writer.uint32(34).string(message.ip);
|
|
34
31
|
}
|
|
35
32
|
for (const v of message.addonsData) {
|
|
36
|
-
exports.approveLoanRequest_Field.encode(v, writer.uint32(
|
|
33
|
+
exports.approveLoanRequest_Field.encode(v, writer.uint32(42).fork()).ldelim();
|
|
37
34
|
}
|
|
38
35
|
if (message.latitude !== 0) {
|
|
39
|
-
writer.uint32(
|
|
36
|
+
writer.uint32(53).float(message.latitude);
|
|
40
37
|
}
|
|
41
38
|
if (message.longitude !== 0) {
|
|
42
|
-
writer.uint32(
|
|
39
|
+
writer.uint32(61).float(message.longitude);
|
|
43
40
|
}
|
|
44
41
|
return writer;
|
|
45
42
|
},
|
|
@@ -69,33 +66,27 @@ exports.approveLoanRequest = {
|
|
|
69
66
|
message.tenure = reader.int32();
|
|
70
67
|
continue;
|
|
71
68
|
case 4:
|
|
72
|
-
if (tag !==
|
|
69
|
+
if (tag !== 34) {
|
|
73
70
|
break;
|
|
74
71
|
}
|
|
75
|
-
message.
|
|
72
|
+
message.ip = reader.string();
|
|
76
73
|
continue;
|
|
77
74
|
case 5:
|
|
78
75
|
if (tag !== 42) {
|
|
79
76
|
break;
|
|
80
77
|
}
|
|
81
|
-
message.
|
|
78
|
+
message.addonsData.push(exports.approveLoanRequest_Field.decode(reader, reader.uint32()));
|
|
82
79
|
continue;
|
|
83
80
|
case 6:
|
|
84
|
-
if (tag !==
|
|
81
|
+
if (tag !== 53) {
|
|
85
82
|
break;
|
|
86
83
|
}
|
|
87
|
-
message.
|
|
84
|
+
message.latitude = reader.float();
|
|
88
85
|
continue;
|
|
89
86
|
case 7:
|
|
90
87
|
if (tag !== 61) {
|
|
91
88
|
break;
|
|
92
89
|
}
|
|
93
|
-
message.latitude = reader.float();
|
|
94
|
-
continue;
|
|
95
|
-
case 8:
|
|
96
|
-
if (tag !== 69) {
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
90
|
message.longitude = reader.float();
|
|
100
91
|
continue;
|
|
101
92
|
}
|
|
@@ -111,7 +102,6 @@ exports.approveLoanRequest = {
|
|
|
111
102
|
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
112
103
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
113
104
|
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
114
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
115
105
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
116
106
|
addonsData: globalThis.Array.isArray(object?.addonsData)
|
|
117
107
|
? object.addonsData.map((e) => exports.approveLoanRequest_Field.fromJSON(e))
|
|
@@ -131,9 +121,6 @@ exports.approveLoanRequest = {
|
|
|
131
121
|
if (message.tenure !== 0) {
|
|
132
122
|
obj.tenure = Math.round(message.tenure);
|
|
133
123
|
}
|
|
134
|
-
if (message.customer_id !== 0) {
|
|
135
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
136
|
-
}
|
|
137
124
|
if (message.ip !== "") {
|
|
138
125
|
obj.ip = message.ip;
|
|
139
126
|
}
|
|
@@ -156,7 +143,6 @@ exports.approveLoanRequest = {
|
|
|
156
143
|
message.bank_id = object.bank_id ?? 0;
|
|
157
144
|
message.amount = object.amount ?? 0;
|
|
158
145
|
message.tenure = object.tenure ?? 0;
|
|
159
|
-
message.customer_id = object.customer_id ?? 0;
|
|
160
146
|
message.ip = object.ip ?? "";
|
|
161
147
|
message.addonsData = object.addonsData?.map((e) => exports.approveLoanRequest_Field.fromPartial(e)) || [];
|
|
162
148
|
message.latitude = object.latitude ?? 0;
|
package/ts/loans/cbloan.d.ts
CHANGED
package/ts/loans/cbloan.js
CHANGED
|
@@ -16,7 +16,6 @@ function createBasecbLoanRequest() {
|
|
|
16
16
|
return {
|
|
17
17
|
bank_id: 0,
|
|
18
18
|
amount: 0,
|
|
19
|
-
customer_id: 0,
|
|
20
19
|
ip: "",
|
|
21
20
|
latitude: 0,
|
|
22
21
|
longitude: 0,
|
|
@@ -36,35 +35,32 @@ exports.cbLoanRequest = {
|
|
|
36
35
|
if (message.amount !== 0) {
|
|
37
36
|
writer.uint32(16).int32(message.amount);
|
|
38
37
|
}
|
|
39
|
-
if (message.customer_id !== 0) {
|
|
40
|
-
writer.uint32(24).int32(message.customer_id);
|
|
41
|
-
}
|
|
42
38
|
if (message.ip !== "") {
|
|
43
|
-
writer.uint32(
|
|
39
|
+
writer.uint32(26).string(message.ip);
|
|
44
40
|
}
|
|
45
41
|
if (message.latitude !== 0) {
|
|
46
|
-
writer.uint32(
|
|
42
|
+
writer.uint32(37).float(message.latitude);
|
|
47
43
|
}
|
|
48
44
|
if (message.longitude !== 0) {
|
|
49
|
-
writer.uint32(
|
|
45
|
+
writer.uint32(45).float(message.longitude);
|
|
50
46
|
}
|
|
51
47
|
if (message.builder_fee !== 0) {
|
|
52
|
-
writer.uint32(
|
|
48
|
+
writer.uint32(48).int32(message.builder_fee);
|
|
53
49
|
}
|
|
54
50
|
if (message.gst !== 0) {
|
|
55
|
-
writer.uint32(
|
|
51
|
+
writer.uint32(56).int32(message.gst);
|
|
56
52
|
}
|
|
57
53
|
if (message.first_emi !== 0) {
|
|
58
|
-
writer.uint32(
|
|
54
|
+
writer.uint32(64).int32(message.first_emi);
|
|
59
55
|
}
|
|
60
56
|
if (message.insurance_worth !== 0) {
|
|
61
|
-
writer.uint32(
|
|
57
|
+
writer.uint32(72).int32(message.insurance_worth);
|
|
62
58
|
}
|
|
63
59
|
if (message.credit_report !== 0) {
|
|
64
|
-
writer.uint32(
|
|
60
|
+
writer.uint32(80).int32(message.credit_report);
|
|
65
61
|
}
|
|
66
62
|
if (message.total_amount !== 0) {
|
|
67
|
-
writer.uint32(
|
|
63
|
+
writer.uint32(88).int32(message.total_amount);
|
|
68
64
|
}
|
|
69
65
|
return writer;
|
|
70
66
|
},
|
|
@@ -88,63 +84,57 @@ exports.cbLoanRequest = {
|
|
|
88
84
|
message.amount = reader.int32();
|
|
89
85
|
continue;
|
|
90
86
|
case 3:
|
|
91
|
-
if (tag !==
|
|
87
|
+
if (tag !== 26) {
|
|
92
88
|
break;
|
|
93
89
|
}
|
|
94
|
-
message.
|
|
90
|
+
message.ip = reader.string();
|
|
95
91
|
continue;
|
|
96
92
|
case 4:
|
|
97
|
-
if (tag !==
|
|
93
|
+
if (tag !== 37) {
|
|
98
94
|
break;
|
|
99
95
|
}
|
|
100
|
-
message.
|
|
96
|
+
message.latitude = reader.float();
|
|
101
97
|
continue;
|
|
102
98
|
case 5:
|
|
103
99
|
if (tag !== 45) {
|
|
104
100
|
break;
|
|
105
101
|
}
|
|
106
|
-
message.
|
|
102
|
+
message.longitude = reader.float();
|
|
107
103
|
continue;
|
|
108
104
|
case 6:
|
|
109
|
-
if (tag !==
|
|
105
|
+
if (tag !== 48) {
|
|
110
106
|
break;
|
|
111
107
|
}
|
|
112
|
-
message.
|
|
108
|
+
message.builder_fee = reader.int32();
|
|
113
109
|
continue;
|
|
114
110
|
case 7:
|
|
115
111
|
if (tag !== 56) {
|
|
116
112
|
break;
|
|
117
113
|
}
|
|
118
|
-
message.
|
|
114
|
+
message.gst = reader.int32();
|
|
119
115
|
continue;
|
|
120
116
|
case 8:
|
|
121
117
|
if (tag !== 64) {
|
|
122
118
|
break;
|
|
123
119
|
}
|
|
124
|
-
message.
|
|
120
|
+
message.first_emi = reader.int32();
|
|
125
121
|
continue;
|
|
126
122
|
case 9:
|
|
127
123
|
if (tag !== 72) {
|
|
128
124
|
break;
|
|
129
125
|
}
|
|
130
|
-
message.
|
|
126
|
+
message.insurance_worth = reader.int32();
|
|
131
127
|
continue;
|
|
132
128
|
case 10:
|
|
133
129
|
if (tag !== 80) {
|
|
134
130
|
break;
|
|
135
131
|
}
|
|
136
|
-
message.
|
|
132
|
+
message.credit_report = reader.int32();
|
|
137
133
|
continue;
|
|
138
134
|
case 11:
|
|
139
135
|
if (tag !== 88) {
|
|
140
136
|
break;
|
|
141
137
|
}
|
|
142
|
-
message.credit_report = reader.int32();
|
|
143
|
-
continue;
|
|
144
|
-
case 12:
|
|
145
|
-
if (tag !== 96) {
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
138
|
message.total_amount = reader.int32();
|
|
149
139
|
continue;
|
|
150
140
|
}
|
|
@@ -159,7 +149,6 @@ exports.cbLoanRequest = {
|
|
|
159
149
|
return {
|
|
160
150
|
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
161
151
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
162
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
163
152
|
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
164
153
|
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
165
154
|
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
@@ -179,9 +168,6 @@ exports.cbLoanRequest = {
|
|
|
179
168
|
if (message.amount !== 0) {
|
|
180
169
|
obj.amount = Math.round(message.amount);
|
|
181
170
|
}
|
|
182
|
-
if (message.customer_id !== 0) {
|
|
183
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
184
|
-
}
|
|
185
171
|
if (message.ip !== "") {
|
|
186
172
|
obj.ip = message.ip;
|
|
187
173
|
}
|
|
@@ -218,7 +204,6 @@ exports.cbLoanRequest = {
|
|
|
218
204
|
const message = createBasecbLoanRequest();
|
|
219
205
|
message.bank_id = object.bank_id ?? 0;
|
|
220
206
|
message.amount = object.amount ?? 0;
|
|
221
|
-
message.customer_id = object.customer_id ?? 0;
|
|
222
207
|
message.ip = object.ip ?? "";
|
|
223
208
|
message.latitude = object.latitude ?? 0;
|
|
224
209
|
message.longitude = object.longitude ?? 0;
|