@stashfin/grpc 1.2.4 → 1.2.6
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/customers/getcustomerbyid.d.ts +50 -0
- package/ts/customers/getcustomerbyid.js +346 -0
- package/ts/customers/getdashboard.d.ts +90 -0
- package/ts/customers/getdashboard.js +603 -0
- package/ts/customers/getdashboardmaincard.d.ts +69 -0
- package/ts/customers/getdashboardmaincard.js +520 -0
- package/ts/customers.d.ts +42 -0
- package/ts/customers.js +30 -0
- package/ts/google/protobuf/timestamp.d.ts +127 -0
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/approveloan.d.ts +39 -0
- package/ts/loans/approveloan.js +175 -0
- package/ts/loans/banklist.d.ts +13 -1
- package/ts/loans/banklist.js +88 -20
- package/ts/loans/calculateemi.d.ts +0 -11
- package/ts/loans/calculateemi.js +17 -71
- package/ts/loans/updateinstallments.d.ts +38 -0
- package/ts/loans/updateinstallments.js +161 -0
- package/ts/loans/updateloan.d.ts +39 -0
- package/ts/loans/updateloan.js +175 -0
- package/ts/loans.d.ts +42 -0
- package/ts/loans.js +30 -0
- package/ts/stashcash/debitsc.d.ts +8 -7
- package/ts/stashcash/debitsc.js +57 -34
|
@@ -4,7 +4,7 @@ export interface request {
|
|
|
4
4
|
customer_id: number;
|
|
5
5
|
flag: number;
|
|
6
6
|
campaign_id: number;
|
|
7
|
-
amount
|
|
7
|
+
amount?: number | undefined;
|
|
8
8
|
sc_type?: string | undefined;
|
|
9
9
|
txn_id?: string | undefined;
|
|
10
10
|
}
|
|
@@ -13,13 +13,14 @@ export interface response {
|
|
|
13
13
|
data?: response_Data | undefined;
|
|
14
14
|
}
|
|
15
15
|
export interface response_Data {
|
|
16
|
-
locked
|
|
17
|
-
unlocked
|
|
18
|
-
balance
|
|
19
|
-
rupee_balance
|
|
20
|
-
txn_id:
|
|
21
|
-
conversion_factor
|
|
16
|
+
locked?: number | undefined;
|
|
17
|
+
unlocked?: number | undefined;
|
|
18
|
+
balance?: number | undefined;
|
|
19
|
+
rupee_balance?: number | undefined;
|
|
20
|
+
txn_id: string;
|
|
21
|
+
conversion_factor?: number | undefined;
|
|
22
22
|
txn_status: string;
|
|
23
|
+
txn_sc?: number | undefined;
|
|
23
24
|
}
|
|
24
25
|
export declare const request: {
|
|
25
26
|
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
package/ts/stashcash/debitsc.js
CHANGED
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "stashcash.debitsc";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, flag: 0, campaign_id: 0, amount:
|
|
17
|
+
return { customer_id: 0, flag: 0, campaign_id: 0, amount: undefined, sc_type: undefined, txn_id: undefined };
|
|
18
18
|
}
|
|
19
19
|
exports.request = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -27,7 +27,7 @@ exports.request = {
|
|
|
27
27
|
if (message.campaign_id !== 0) {
|
|
28
28
|
writer.uint32(24).int64(message.campaign_id);
|
|
29
29
|
}
|
|
30
|
-
if (message.amount !==
|
|
30
|
+
if (message.amount !== undefined) {
|
|
31
31
|
writer.uint32(37).float(message.amount);
|
|
32
32
|
}
|
|
33
33
|
if (message.sc_type !== undefined) {
|
|
@@ -94,7 +94,7 @@ exports.request = {
|
|
|
94
94
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
95
95
|
flag: isSet(object.flag) ? globalThis.Number(object.flag) : 0,
|
|
96
96
|
campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : 0,
|
|
97
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) :
|
|
97
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : undefined,
|
|
98
98
|
sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : undefined,
|
|
99
99
|
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : undefined,
|
|
100
100
|
};
|
|
@@ -110,7 +110,7 @@ exports.request = {
|
|
|
110
110
|
if (message.campaign_id !== 0) {
|
|
111
111
|
obj.campaign_id = Math.round(message.campaign_id);
|
|
112
112
|
}
|
|
113
|
-
if (message.amount !==
|
|
113
|
+
if (message.amount !== undefined) {
|
|
114
114
|
obj.amount = message.amount;
|
|
115
115
|
}
|
|
116
116
|
if (message.sc_type !== undefined) {
|
|
@@ -129,7 +129,7 @@ exports.request = {
|
|
|
129
129
|
message.customer_id = object.customer_id ?? 0;
|
|
130
130
|
message.flag = object.flag ?? 0;
|
|
131
131
|
message.campaign_id = object.campaign_id ?? 0;
|
|
132
|
-
message.amount = object.amount ??
|
|
132
|
+
message.amount = object.amount ?? undefined;
|
|
133
133
|
message.sc_type = object.sc_type ?? undefined;
|
|
134
134
|
message.txn_id = object.txn_id ?? undefined;
|
|
135
135
|
return message;
|
|
@@ -204,31 +204,43 @@ exports.response = {
|
|
|
204
204
|
},
|
|
205
205
|
};
|
|
206
206
|
function createBaseresponse_Data() {
|
|
207
|
-
return {
|
|
207
|
+
return {
|
|
208
|
+
locked: undefined,
|
|
209
|
+
unlocked: undefined,
|
|
210
|
+
balance: undefined,
|
|
211
|
+
rupee_balance: undefined,
|
|
212
|
+
txn_id: "",
|
|
213
|
+
conversion_factor: undefined,
|
|
214
|
+
txn_status: "",
|
|
215
|
+
txn_sc: undefined,
|
|
216
|
+
};
|
|
208
217
|
}
|
|
209
218
|
exports.response_Data = {
|
|
210
219
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
211
|
-
if (message.locked !==
|
|
220
|
+
if (message.locked !== undefined) {
|
|
212
221
|
writer.uint32(13).float(message.locked);
|
|
213
222
|
}
|
|
214
|
-
if (message.unlocked !==
|
|
223
|
+
if (message.unlocked !== undefined) {
|
|
215
224
|
writer.uint32(21).float(message.unlocked);
|
|
216
225
|
}
|
|
217
|
-
if (message.balance !==
|
|
226
|
+
if (message.balance !== undefined) {
|
|
218
227
|
writer.uint32(29).float(message.balance);
|
|
219
228
|
}
|
|
220
|
-
if (message.rupee_balance !==
|
|
229
|
+
if (message.rupee_balance !== undefined) {
|
|
221
230
|
writer.uint32(37).float(message.rupee_balance);
|
|
222
231
|
}
|
|
223
|
-
if (message.txn_id !==
|
|
224
|
-
writer.uint32(
|
|
232
|
+
if (message.txn_id !== "") {
|
|
233
|
+
writer.uint32(42).string(message.txn_id);
|
|
225
234
|
}
|
|
226
|
-
if (message.conversion_factor !==
|
|
235
|
+
if (message.conversion_factor !== undefined) {
|
|
227
236
|
writer.uint32(48).int32(message.conversion_factor);
|
|
228
237
|
}
|
|
229
238
|
if (message.txn_status !== "") {
|
|
230
239
|
writer.uint32(58).string(message.txn_status);
|
|
231
240
|
}
|
|
241
|
+
if (message.txn_sc !== undefined) {
|
|
242
|
+
writer.uint32(69).float(message.txn_sc);
|
|
243
|
+
}
|
|
232
244
|
return writer;
|
|
233
245
|
},
|
|
234
246
|
decode(input, length) {
|
|
@@ -263,10 +275,10 @@ exports.response_Data = {
|
|
|
263
275
|
message.rupee_balance = reader.float();
|
|
264
276
|
continue;
|
|
265
277
|
case 5:
|
|
266
|
-
if (tag !==
|
|
278
|
+
if (tag !== 42) {
|
|
267
279
|
break;
|
|
268
280
|
}
|
|
269
|
-
message.txn_id =
|
|
281
|
+
message.txn_id = reader.string();
|
|
270
282
|
continue;
|
|
271
283
|
case 6:
|
|
272
284
|
if (tag !== 48) {
|
|
@@ -280,6 +292,12 @@ exports.response_Data = {
|
|
|
280
292
|
}
|
|
281
293
|
message.txn_status = reader.string();
|
|
282
294
|
continue;
|
|
295
|
+
case 8:
|
|
296
|
+
if (tag !== 69) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
message.txn_sc = reader.float();
|
|
300
|
+
continue;
|
|
283
301
|
}
|
|
284
302
|
if ((tag & 7) === 4 || tag === 0) {
|
|
285
303
|
break;
|
|
@@ -290,38 +308,42 @@ exports.response_Data = {
|
|
|
290
308
|
},
|
|
291
309
|
fromJSON(object) {
|
|
292
310
|
return {
|
|
293
|
-
locked: isSet(object.locked) ? globalThis.Number(object.locked) :
|
|
294
|
-
unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) :
|
|
295
|
-
balance: isSet(object.balance) ? globalThis.Number(object.balance) :
|
|
296
|
-
rupee_balance: isSet(object.rupee_balance) ? globalThis.Number(object.rupee_balance) :
|
|
297
|
-
txn_id: isSet(object.txn_id) ? globalThis.
|
|
298
|
-
conversion_factor: isSet(object.conversion_factor) ? globalThis.Number(object.conversion_factor) :
|
|
311
|
+
locked: isSet(object.locked) ? globalThis.Number(object.locked) : undefined,
|
|
312
|
+
unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : undefined,
|
|
313
|
+
balance: isSet(object.balance) ? globalThis.Number(object.balance) : undefined,
|
|
314
|
+
rupee_balance: isSet(object.rupee_balance) ? globalThis.Number(object.rupee_balance) : undefined,
|
|
315
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
316
|
+
conversion_factor: isSet(object.conversion_factor) ? globalThis.Number(object.conversion_factor) : undefined,
|
|
299
317
|
txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
|
|
318
|
+
txn_sc: isSet(object.txn_sc) ? globalThis.Number(object.txn_sc) : undefined,
|
|
300
319
|
};
|
|
301
320
|
},
|
|
302
321
|
toJSON(message) {
|
|
303
322
|
const obj = {};
|
|
304
|
-
if (message.locked !==
|
|
323
|
+
if (message.locked !== undefined) {
|
|
305
324
|
obj.locked = message.locked;
|
|
306
325
|
}
|
|
307
|
-
if (message.unlocked !==
|
|
326
|
+
if (message.unlocked !== undefined) {
|
|
308
327
|
obj.unlocked = message.unlocked;
|
|
309
328
|
}
|
|
310
|
-
if (message.balance !==
|
|
329
|
+
if (message.balance !== undefined) {
|
|
311
330
|
obj.balance = message.balance;
|
|
312
331
|
}
|
|
313
|
-
if (message.rupee_balance !==
|
|
332
|
+
if (message.rupee_balance !== undefined) {
|
|
314
333
|
obj.rupee_balance = message.rupee_balance;
|
|
315
334
|
}
|
|
316
|
-
if (message.txn_id !==
|
|
317
|
-
obj.txn_id =
|
|
335
|
+
if (message.txn_id !== "") {
|
|
336
|
+
obj.txn_id = message.txn_id;
|
|
318
337
|
}
|
|
319
|
-
if (message.conversion_factor !==
|
|
338
|
+
if (message.conversion_factor !== undefined) {
|
|
320
339
|
obj.conversion_factor = Math.round(message.conversion_factor);
|
|
321
340
|
}
|
|
322
341
|
if (message.txn_status !== "") {
|
|
323
342
|
obj.txn_status = message.txn_status;
|
|
324
343
|
}
|
|
344
|
+
if (message.txn_sc !== undefined) {
|
|
345
|
+
obj.txn_sc = message.txn_sc;
|
|
346
|
+
}
|
|
325
347
|
return obj;
|
|
326
348
|
},
|
|
327
349
|
create(base) {
|
|
@@ -329,13 +351,14 @@ exports.response_Data = {
|
|
|
329
351
|
},
|
|
330
352
|
fromPartial(object) {
|
|
331
353
|
const message = createBaseresponse_Data();
|
|
332
|
-
message.locked = object.locked ??
|
|
333
|
-
message.unlocked = object.unlocked ??
|
|
334
|
-
message.balance = object.balance ??
|
|
335
|
-
message.rupee_balance = object.rupee_balance ??
|
|
336
|
-
message.txn_id = object.txn_id ??
|
|
337
|
-
message.conversion_factor = object.conversion_factor ??
|
|
354
|
+
message.locked = object.locked ?? undefined;
|
|
355
|
+
message.unlocked = object.unlocked ?? undefined;
|
|
356
|
+
message.balance = object.balance ?? undefined;
|
|
357
|
+
message.rupee_balance = object.rupee_balance ?? undefined;
|
|
358
|
+
message.txn_id = object.txn_id ?? "";
|
|
359
|
+
message.conversion_factor = object.conversion_factor ?? undefined;
|
|
338
360
|
message.txn_status = object.txn_status ?? "";
|
|
361
|
+
message.txn_sc = object.txn_sc ?? undefined;
|
|
339
362
|
return message;
|
|
340
363
|
},
|
|
341
364
|
};
|