@stashfin/grpc 1.2.313 → 1.2.315
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/getattachplandetails.d.ts +1 -0
- package/ts/growth/getattachplandetails.js +15 -1
- 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/getchrdetails.d.ts +0 -1
- package/ts/loans/getchrdetails.js +5 -19
- package/ts/loans/loansummary.d.ts +1 -0
- package/ts/loans/loansummary.js +15 -1
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ exports.chrattachplanrequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBaseplandata() {
|
|
53
|
-
return { planId: 0, amount: 0, type: "", duration: 0, discount: 0 };
|
|
53
|
+
return { planId: 0, amount: 0, type: "", duration: 0, discount: 0, discounted_price: 0 };
|
|
54
54
|
}
|
|
55
55
|
exports.plandata = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -69,6 +69,9 @@ exports.plandata = {
|
|
|
69
69
|
if (message.discount !== 0) {
|
|
70
70
|
writer.uint32(45).float(message.discount);
|
|
71
71
|
}
|
|
72
|
+
if (message.discounted_price !== 0) {
|
|
73
|
+
writer.uint32(49).double(message.discounted_price);
|
|
74
|
+
}
|
|
72
75
|
return writer;
|
|
73
76
|
},
|
|
74
77
|
decode(input, length) {
|
|
@@ -108,6 +111,12 @@ exports.plandata = {
|
|
|
108
111
|
}
|
|
109
112
|
message.discount = reader.float();
|
|
110
113
|
continue;
|
|
114
|
+
case 6:
|
|
115
|
+
if (tag !== 49) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.discounted_price = reader.double();
|
|
119
|
+
continue;
|
|
111
120
|
}
|
|
112
121
|
if ((tag & 7) === 4 || tag === 0) {
|
|
113
122
|
break;
|
|
@@ -123,6 +132,7 @@ exports.plandata = {
|
|
|
123
132
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
124
133
|
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0,
|
|
125
134
|
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
135
|
+
discounted_price: isSet(object.discounted_price) ? globalThis.Number(object.discounted_price) : 0,
|
|
126
136
|
};
|
|
127
137
|
},
|
|
128
138
|
toJSON(message) {
|
|
@@ -142,6 +152,9 @@ exports.plandata = {
|
|
|
142
152
|
if (message.discount !== 0) {
|
|
143
153
|
obj.discount = message.discount;
|
|
144
154
|
}
|
|
155
|
+
if (message.discounted_price !== 0) {
|
|
156
|
+
obj.discounted_price = message.discounted_price;
|
|
157
|
+
}
|
|
145
158
|
return obj;
|
|
146
159
|
},
|
|
147
160
|
create(base) {
|
|
@@ -154,6 +167,7 @@ exports.plandata = {
|
|
|
154
167
|
message.type = object.type ?? "";
|
|
155
168
|
message.duration = object.duration ?? 0;
|
|
156
169
|
message.discount = object.discount ?? 0;
|
|
170
|
+
message.discounted_price = object.discounted_price ?? 0;
|
|
157
171
|
return message;
|
|
158
172
|
},
|
|
159
173
|
};
|
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, plan_id: 0 };
|
|
168
|
+
return { name: "", amount: 0, plan_id: 0, discount: 0 };
|
|
169
169
|
}
|
|
170
170
|
exports.approveLoanRequest_Field = {
|
|
171
171
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -178,6 +178,9 @@ exports.approveLoanRequest_Field = {
|
|
|
178
178
|
if (message.plan_id !== 0) {
|
|
179
179
|
writer.uint32(24).int32(message.plan_id);
|
|
180
180
|
}
|
|
181
|
+
if (message.discount !== 0) {
|
|
182
|
+
writer.uint32(32).int32(message.discount);
|
|
183
|
+
}
|
|
181
184
|
return writer;
|
|
182
185
|
},
|
|
183
186
|
decode(input, length) {
|
|
@@ -205,6 +208,12 @@ exports.approveLoanRequest_Field = {
|
|
|
205
208
|
}
|
|
206
209
|
message.plan_id = reader.int32();
|
|
207
210
|
continue;
|
|
211
|
+
case 4:
|
|
212
|
+
if (tag !== 32) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.discount = reader.int32();
|
|
216
|
+
continue;
|
|
208
217
|
}
|
|
209
218
|
if ((tag & 7) === 4 || tag === 0) {
|
|
210
219
|
break;
|
|
@@ -218,6 +227,7 @@ exports.approveLoanRequest_Field = {
|
|
|
218
227
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
219
228
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
220
229
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
230
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
221
231
|
};
|
|
222
232
|
},
|
|
223
233
|
toJSON(message) {
|
|
@@ -231,6 +241,9 @@ exports.approveLoanRequest_Field = {
|
|
|
231
241
|
if (message.plan_id !== 0) {
|
|
232
242
|
obj.plan_id = Math.round(message.plan_id);
|
|
233
243
|
}
|
|
244
|
+
if (message.discount !== 0) {
|
|
245
|
+
obj.discount = Math.round(message.discount);
|
|
246
|
+
}
|
|
234
247
|
return obj;
|
|
235
248
|
},
|
|
236
249
|
create(base) {
|
|
@@ -241,6 +254,7 @@ exports.approveLoanRequest_Field = {
|
|
|
241
254
|
message.name = object.name ?? "";
|
|
242
255
|
message.amount = object.amount ?? 0;
|
|
243
256
|
message.plan_id = object.plan_id ?? 0;
|
|
257
|
+
message.discount = object.discount ?? 0;
|
|
244
258
|
return message;
|
|
245
259
|
},
|
|
246
260
|
};
|
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, plan_id: 0 };
|
|
84
|
+
return { name: "", amount: 0, plan_id: 0, discount: 0 };
|
|
85
85
|
}
|
|
86
86
|
exports.calculateEmiRequest_Field = {
|
|
87
87
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -94,6 +94,9 @@ exports.calculateEmiRequest_Field = {
|
|
|
94
94
|
if (message.plan_id !== 0) {
|
|
95
95
|
writer.uint32(24).int32(message.plan_id);
|
|
96
96
|
}
|
|
97
|
+
if (message.discount !== 0) {
|
|
98
|
+
writer.uint32(32).int32(message.discount);
|
|
99
|
+
}
|
|
97
100
|
return writer;
|
|
98
101
|
},
|
|
99
102
|
decode(input, length) {
|
|
@@ -121,6 +124,12 @@ exports.calculateEmiRequest_Field = {
|
|
|
121
124
|
}
|
|
122
125
|
message.plan_id = reader.int32();
|
|
123
126
|
continue;
|
|
127
|
+
case 4:
|
|
128
|
+
if (tag !== 32) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
message.discount = reader.int32();
|
|
132
|
+
continue;
|
|
124
133
|
}
|
|
125
134
|
if ((tag & 7) === 4 || tag === 0) {
|
|
126
135
|
break;
|
|
@@ -134,6 +143,7 @@ exports.calculateEmiRequest_Field = {
|
|
|
134
143
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
135
144
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
136
145
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
146
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
137
147
|
};
|
|
138
148
|
},
|
|
139
149
|
toJSON(message) {
|
|
@@ -147,6 +157,9 @@ exports.calculateEmiRequest_Field = {
|
|
|
147
157
|
if (message.plan_id !== 0) {
|
|
148
158
|
obj.plan_id = Math.round(message.plan_id);
|
|
149
159
|
}
|
|
160
|
+
if (message.discount !== 0) {
|
|
161
|
+
obj.discount = Math.round(message.discount);
|
|
162
|
+
}
|
|
150
163
|
return obj;
|
|
151
164
|
},
|
|
152
165
|
create(base) {
|
|
@@ -157,6 +170,7 @@ exports.calculateEmiRequest_Field = {
|
|
|
157
170
|
message.name = object.name ?? "";
|
|
158
171
|
message.amount = object.amount ?? 0;
|
|
159
172
|
message.plan_id = object.plan_id ?? 0;
|
|
173
|
+
message.discount = object.discount ?? 0;
|
|
160
174
|
return message;
|
|
161
175
|
},
|
|
162
176
|
};
|
|
@@ -158,21 +158,18 @@ exports.plandata = {
|
|
|
158
158
|
},
|
|
159
159
|
};
|
|
160
160
|
function createBasegetChrDetailsResponse() {
|
|
161
|
-
return { status: "",
|
|
161
|
+
return { status: "", data: undefined, message: "" };
|
|
162
162
|
}
|
|
163
163
|
exports.getChrDetailsResponse = {
|
|
164
164
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
165
165
|
if (message.status !== "") {
|
|
166
166
|
writer.uint32(10).string(message.status);
|
|
167
167
|
}
|
|
168
|
-
if (message.statusCode !== 0) {
|
|
169
|
-
writer.uint32(16).int32(message.statusCode);
|
|
170
|
-
}
|
|
171
168
|
if (message.data !== undefined) {
|
|
172
|
-
exports.plandata.encode(message.data, writer.uint32(
|
|
169
|
+
exports.plandata.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
173
170
|
}
|
|
174
171
|
if (message.message !== "") {
|
|
175
|
-
writer.uint32(
|
|
172
|
+
writer.uint32(26).string(message.message);
|
|
176
173
|
}
|
|
177
174
|
return writer;
|
|
178
175
|
},
|
|
@@ -190,21 +187,15 @@ exports.getChrDetailsResponse = {
|
|
|
190
187
|
message.status = reader.string();
|
|
191
188
|
continue;
|
|
192
189
|
case 2:
|
|
193
|
-
if (tag !==
|
|
190
|
+
if (tag !== 18) {
|
|
194
191
|
break;
|
|
195
192
|
}
|
|
196
|
-
message.
|
|
193
|
+
message.data = exports.plandata.decode(reader, reader.uint32());
|
|
197
194
|
continue;
|
|
198
195
|
case 3:
|
|
199
196
|
if (tag !== 26) {
|
|
200
197
|
break;
|
|
201
198
|
}
|
|
202
|
-
message.data = exports.plandata.decode(reader, reader.uint32());
|
|
203
|
-
continue;
|
|
204
|
-
case 4:
|
|
205
|
-
if (tag !== 34) {
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
199
|
message.message = reader.string();
|
|
209
200
|
continue;
|
|
210
201
|
}
|
|
@@ -218,7 +209,6 @@ exports.getChrDetailsResponse = {
|
|
|
218
209
|
fromJSON(object) {
|
|
219
210
|
return {
|
|
220
211
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
221
|
-
statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
|
|
222
212
|
data: isSet(object.data) ? exports.plandata.fromJSON(object.data) : undefined,
|
|
223
213
|
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
224
214
|
};
|
|
@@ -228,9 +218,6 @@ exports.getChrDetailsResponse = {
|
|
|
228
218
|
if (message.status !== "") {
|
|
229
219
|
obj.status = message.status;
|
|
230
220
|
}
|
|
231
|
-
if (message.statusCode !== 0) {
|
|
232
|
-
obj.statusCode = Math.round(message.statusCode);
|
|
233
|
-
}
|
|
234
221
|
if (message.data !== undefined) {
|
|
235
222
|
obj.data = exports.plandata.toJSON(message.data);
|
|
236
223
|
}
|
|
@@ -245,7 +232,6 @@ exports.getChrDetailsResponse = {
|
|
|
245
232
|
fromPartial(object) {
|
|
246
233
|
const message = createBasegetChrDetailsResponse();
|
|
247
234
|
message.status = object.status ?? "";
|
|
248
|
-
message.statusCode = object.statusCode ?? 0;
|
|
249
235
|
message.data = (object.data !== undefined && object.data !== null) ? exports.plandata.fromPartial(object.data) : undefined;
|
|
250
236
|
message.message = object.message ?? "";
|
|
251
237
|
return message;
|
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, plan_id: 0 };
|
|
98
|
+
return { name: "", amount: 0, plan_id: 0, discount: 0 };
|
|
99
99
|
}
|
|
100
100
|
exports.loanSummaryRequest_Field = {
|
|
101
101
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -108,6 +108,9 @@ exports.loanSummaryRequest_Field = {
|
|
|
108
108
|
if (message.plan_id !== 0) {
|
|
109
109
|
writer.uint32(24).int32(message.plan_id);
|
|
110
110
|
}
|
|
111
|
+
if (message.discount !== 0) {
|
|
112
|
+
writer.uint32(32).int32(message.discount);
|
|
113
|
+
}
|
|
111
114
|
return writer;
|
|
112
115
|
},
|
|
113
116
|
decode(input, length) {
|
|
@@ -135,6 +138,12 @@ exports.loanSummaryRequest_Field = {
|
|
|
135
138
|
}
|
|
136
139
|
message.plan_id = reader.int32();
|
|
137
140
|
continue;
|
|
141
|
+
case 4:
|
|
142
|
+
if (tag !== 32) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.discount = reader.int32();
|
|
146
|
+
continue;
|
|
138
147
|
}
|
|
139
148
|
if ((tag & 7) === 4 || tag === 0) {
|
|
140
149
|
break;
|
|
@@ -148,6 +157,7 @@ exports.loanSummaryRequest_Field = {
|
|
|
148
157
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
149
158
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
150
159
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
160
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
151
161
|
};
|
|
152
162
|
},
|
|
153
163
|
toJSON(message) {
|
|
@@ -161,6 +171,9 @@ exports.loanSummaryRequest_Field = {
|
|
|
161
171
|
if (message.plan_id !== 0) {
|
|
162
172
|
obj.plan_id = Math.round(message.plan_id);
|
|
163
173
|
}
|
|
174
|
+
if (message.discount !== 0) {
|
|
175
|
+
obj.discount = Math.round(message.discount);
|
|
176
|
+
}
|
|
164
177
|
return obj;
|
|
165
178
|
},
|
|
166
179
|
create(base) {
|
|
@@ -171,6 +184,7 @@ exports.loanSummaryRequest_Field = {
|
|
|
171
184
|
message.name = object.name ?? "";
|
|
172
185
|
message.amount = object.amount ?? 0;
|
|
173
186
|
message.plan_id = object.plan_id ?? 0;
|
|
187
|
+
message.discount = object.discount ?? 0;
|
|
174
188
|
return message;
|
|
175
189
|
},
|
|
176
190
|
};
|