@stashfin/grpc 1.2.543 → 1.2.544
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/eqxcustomers/getnotifications.d.ts +2 -1
- package/ts/eqxcustomers/getnotifications.js +23 -8
- package/ts/upi/getmandatedetails.d.ts +1 -0
- package/ts/upi/getmandatedetails.js +15 -0
- package/ts/upi/getmandatehistory.d.ts +11 -14
- package/ts/upi/getmandatehistory.js +33 -83
package/package.json
CHANGED
|
@@ -15,9 +15,10 @@ export interface NotificationData {
|
|
|
15
15
|
created_at: string;
|
|
16
16
|
body: Body | undefined;
|
|
17
17
|
description?: string | undefined;
|
|
18
|
-
|
|
18
|
+
ext_txn_id: string;
|
|
19
19
|
redirection_url: string;
|
|
20
20
|
redirection_type: string;
|
|
21
|
+
umn?: string | undefined;
|
|
21
22
|
}
|
|
22
23
|
export interface Body {
|
|
23
24
|
notification: Notification | undefined;
|
|
@@ -153,9 +153,10 @@ function createBaseNotificationData() {
|
|
|
153
153
|
created_at: "",
|
|
154
154
|
body: undefined,
|
|
155
155
|
description: undefined,
|
|
156
|
-
|
|
156
|
+
ext_txn_id: "",
|
|
157
157
|
redirection_url: "",
|
|
158
158
|
redirection_type: "",
|
|
159
|
+
umn: undefined,
|
|
159
160
|
};
|
|
160
161
|
}
|
|
161
162
|
exports.NotificationData = {
|
|
@@ -178,8 +179,8 @@ exports.NotificationData = {
|
|
|
178
179
|
if (message.description !== undefined) {
|
|
179
180
|
writer.uint32(50).string(message.description);
|
|
180
181
|
}
|
|
181
|
-
if (message.
|
|
182
|
-
writer.uint32(58).string(message.
|
|
182
|
+
if (message.ext_txn_id !== "") {
|
|
183
|
+
writer.uint32(58).string(message.ext_txn_id);
|
|
183
184
|
}
|
|
184
185
|
if (message.redirection_url !== "") {
|
|
185
186
|
writer.uint32(66).string(message.redirection_url);
|
|
@@ -187,6 +188,9 @@ exports.NotificationData = {
|
|
|
187
188
|
if (message.redirection_type !== "") {
|
|
188
189
|
writer.uint32(74).string(message.redirection_type);
|
|
189
190
|
}
|
|
191
|
+
if (message.umn !== undefined) {
|
|
192
|
+
writer.uint32(82).string(message.umn);
|
|
193
|
+
}
|
|
190
194
|
return writer;
|
|
191
195
|
},
|
|
192
196
|
decode(input, length) {
|
|
@@ -236,7 +240,7 @@ exports.NotificationData = {
|
|
|
236
240
|
if (tag !== 58) {
|
|
237
241
|
break;
|
|
238
242
|
}
|
|
239
|
-
message.
|
|
243
|
+
message.ext_txn_id = reader.string();
|
|
240
244
|
continue;
|
|
241
245
|
case 8:
|
|
242
246
|
if (tag !== 66) {
|
|
@@ -250,6 +254,12 @@ exports.NotificationData = {
|
|
|
250
254
|
}
|
|
251
255
|
message.redirection_type = reader.string();
|
|
252
256
|
continue;
|
|
257
|
+
case 10:
|
|
258
|
+
if (tag !== 82) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.umn = reader.string();
|
|
262
|
+
continue;
|
|
253
263
|
}
|
|
254
264
|
if ((tag & 7) === 4 || tag === 0) {
|
|
255
265
|
break;
|
|
@@ -266,9 +276,10 @@ exports.NotificationData = {
|
|
|
266
276
|
created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
|
|
267
277
|
body: isSet(object.body) ? exports.Body.fromJSON(object.body) : undefined,
|
|
268
278
|
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
269
|
-
|
|
279
|
+
ext_txn_id: isSet(object.ext_txn_id) ? globalThis.String(object.ext_txn_id) : "",
|
|
270
280
|
redirection_url: isSet(object.redirection_url) ? globalThis.String(object.redirection_url) : "",
|
|
271
281
|
redirection_type: isSet(object.redirection_type) ? globalThis.String(object.redirection_type) : "",
|
|
282
|
+
umn: isSet(object.umn) ? globalThis.String(object.umn) : undefined,
|
|
272
283
|
};
|
|
273
284
|
},
|
|
274
285
|
toJSON(message) {
|
|
@@ -291,8 +302,8 @@ exports.NotificationData = {
|
|
|
291
302
|
if (message.description !== undefined) {
|
|
292
303
|
obj.description = message.description;
|
|
293
304
|
}
|
|
294
|
-
if (message.
|
|
295
|
-
obj.
|
|
305
|
+
if (message.ext_txn_id !== "") {
|
|
306
|
+
obj.ext_txn_id = message.ext_txn_id;
|
|
296
307
|
}
|
|
297
308
|
if (message.redirection_url !== "") {
|
|
298
309
|
obj.redirection_url = message.redirection_url;
|
|
@@ -300,6 +311,9 @@ exports.NotificationData = {
|
|
|
300
311
|
if (message.redirection_type !== "") {
|
|
301
312
|
obj.redirection_type = message.redirection_type;
|
|
302
313
|
}
|
|
314
|
+
if (message.umn !== undefined) {
|
|
315
|
+
obj.umn = message.umn;
|
|
316
|
+
}
|
|
303
317
|
return obj;
|
|
304
318
|
},
|
|
305
319
|
create(base) {
|
|
@@ -313,9 +327,10 @@ exports.NotificationData = {
|
|
|
313
327
|
message.created_at = object.created_at ?? "";
|
|
314
328
|
message.body = (object.body !== undefined && object.body !== null) ? exports.Body.fromPartial(object.body) : undefined;
|
|
315
329
|
message.description = object.description ?? undefined;
|
|
316
|
-
message.
|
|
330
|
+
message.ext_txn_id = object.ext_txn_id ?? "";
|
|
317
331
|
message.redirection_url = object.redirection_url ?? "";
|
|
318
332
|
message.redirection_type = object.redirection_type ?? "";
|
|
333
|
+
message.umn = object.umn ?? undefined;
|
|
319
334
|
return message;
|
|
320
335
|
},
|
|
321
336
|
};
|
|
@@ -177,6 +177,7 @@ function createBaseData() {
|
|
|
177
177
|
total_debit: undefined,
|
|
178
178
|
successful_debit: undefined,
|
|
179
179
|
unsuccessful_debit: undefined,
|
|
180
|
+
remaining_debit: undefined,
|
|
180
181
|
};
|
|
181
182
|
}
|
|
182
183
|
exports.Data = {
|
|
@@ -232,6 +233,9 @@ exports.Data = {
|
|
|
232
233
|
if (message.unsuccessful_debit !== undefined) {
|
|
233
234
|
writer.uint32(136).int32(message.unsuccessful_debit);
|
|
234
235
|
}
|
|
236
|
+
if (message.remaining_debit !== undefined) {
|
|
237
|
+
writer.uint32(144).int32(message.remaining_debit);
|
|
238
|
+
}
|
|
235
239
|
return writer;
|
|
236
240
|
},
|
|
237
241
|
decode(input, length) {
|
|
@@ -343,6 +347,12 @@ exports.Data = {
|
|
|
343
347
|
}
|
|
344
348
|
message.unsuccessful_debit = reader.int32();
|
|
345
349
|
continue;
|
|
350
|
+
case 18:
|
|
351
|
+
if (tag !== 144) {
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
message.remaining_debit = reader.int32();
|
|
355
|
+
continue;
|
|
346
356
|
}
|
|
347
357
|
if ((tag & 7) === 4 || tag === 0) {
|
|
348
358
|
break;
|
|
@@ -370,6 +380,7 @@ exports.Data = {
|
|
|
370
380
|
total_debit: isSet(object.total_debit) ? globalThis.Number(object.total_debit) : undefined,
|
|
371
381
|
successful_debit: isSet(object.successful_debit) ? globalThis.Number(object.successful_debit) : undefined,
|
|
372
382
|
unsuccessful_debit: isSet(object.unsuccessful_debit) ? globalThis.Number(object.unsuccessful_debit) : undefined,
|
|
383
|
+
remaining_debit: isSet(object.remaining_debit) ? globalThis.Number(object.remaining_debit) : undefined,
|
|
373
384
|
};
|
|
374
385
|
},
|
|
375
386
|
toJSON(message) {
|
|
@@ -425,6 +436,9 @@ exports.Data = {
|
|
|
425
436
|
if (message.unsuccessful_debit !== undefined) {
|
|
426
437
|
obj.unsuccessful_debit = Math.round(message.unsuccessful_debit);
|
|
427
438
|
}
|
|
439
|
+
if (message.remaining_debit !== undefined) {
|
|
440
|
+
obj.remaining_debit = Math.round(message.remaining_debit);
|
|
441
|
+
}
|
|
428
442
|
return obj;
|
|
429
443
|
},
|
|
430
444
|
create(base) {
|
|
@@ -455,6 +469,7 @@ exports.Data = {
|
|
|
455
469
|
message.total_debit = object.total_debit ?? undefined;
|
|
456
470
|
message.successful_debit = object.successful_debit ?? undefined;
|
|
457
471
|
message.unsuccessful_debit = object.unsuccessful_debit ?? undefined;
|
|
472
|
+
message.remaining_debit = object.remaining_debit ?? undefined;
|
|
458
473
|
return message;
|
|
459
474
|
},
|
|
460
475
|
};
|
|
@@ -3,19 +3,16 @@ export declare const protobufPackage = "upi.getmandatehistory";
|
|
|
3
3
|
export interface getMandateHistoryRequest {
|
|
4
4
|
umn: string;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface MandateTxnDetails {
|
|
7
7
|
payee_name: string;
|
|
8
8
|
payee_vpa: string;
|
|
9
9
|
umn: string;
|
|
10
10
|
amount: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
debit_frequency: string;
|
|
14
|
-
no_of_debits: number;
|
|
15
|
-
total_debits: number;
|
|
11
|
+
txn_date: string;
|
|
12
|
+
rrn: string;
|
|
16
13
|
}
|
|
17
14
|
export interface Data {
|
|
18
|
-
|
|
15
|
+
mandateTxnDetails: MandateTxnDetails | undefined;
|
|
19
16
|
}
|
|
20
17
|
export interface getMandateHistoryResponse {
|
|
21
18
|
status: string;
|
|
@@ -30,13 +27,13 @@ export declare const getMandateHistoryRequest: {
|
|
|
30
27
|
create<I extends Exact<DeepPartial<getMandateHistoryRequest>, I>>(base?: I): getMandateHistoryRequest;
|
|
31
28
|
fromPartial<I extends Exact<DeepPartial<getMandateHistoryRequest>, I>>(object: I): getMandateHistoryRequest;
|
|
32
29
|
};
|
|
33
|
-
export declare const
|
|
34
|
-
encode(message:
|
|
35
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
36
|
-
fromJSON(object: any):
|
|
37
|
-
toJSON(message:
|
|
38
|
-
create<I extends Exact<DeepPartial<
|
|
39
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
30
|
+
export declare const MandateTxnDetails: {
|
|
31
|
+
encode(message: MandateTxnDetails, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MandateTxnDetails;
|
|
33
|
+
fromJSON(object: any): MandateTxnDetails;
|
|
34
|
+
toJSON(message: MandateTxnDetails): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<MandateTxnDetails>, I>>(base?: I): MandateTxnDetails;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<MandateTxnDetails>, I>>(object: I): MandateTxnDetails;
|
|
40
37
|
};
|
|
41
38
|
export declare const Data: {
|
|
42
39
|
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -8,7 +8,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.getMandateHistoryResponse = exports.Data = exports.
|
|
11
|
+
exports.getMandateHistoryResponse = exports.Data = exports.MandateTxnDetails = exports.getMandateHistoryRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "upi.getmandatehistory";
|
|
@@ -62,20 +62,10 @@ exports.getMandateHistoryRequest = {
|
|
|
62
62
|
return message;
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
|
-
function
|
|
66
|
-
return {
|
|
67
|
-
payee_name: "",
|
|
68
|
-
payee_vpa: "",
|
|
69
|
-
umn: "",
|
|
70
|
-
amount: 0,
|
|
71
|
-
start_date: "",
|
|
72
|
-
end_date: "",
|
|
73
|
-
debit_frequency: "",
|
|
74
|
-
no_of_debits: 0,
|
|
75
|
-
total_debits: 0,
|
|
76
|
-
};
|
|
65
|
+
function createBaseMandateTxnDetails() {
|
|
66
|
+
return { payee_name: "", payee_vpa: "", umn: "", amount: 0, txn_date: "", rrn: "" };
|
|
77
67
|
}
|
|
78
|
-
exports.
|
|
68
|
+
exports.MandateTxnDetails = {
|
|
79
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
80
70
|
if (message.payee_name !== "") {
|
|
81
71
|
writer.uint32(10).string(message.payee_name);
|
|
@@ -89,27 +79,18 @@ exports.MandateDetails = {
|
|
|
89
79
|
if (message.amount !== 0) {
|
|
90
80
|
writer.uint32(37).float(message.amount);
|
|
91
81
|
}
|
|
92
|
-
if (message.
|
|
93
|
-
writer.uint32(42).string(message.
|
|
82
|
+
if (message.txn_date !== "") {
|
|
83
|
+
writer.uint32(42).string(message.txn_date);
|
|
94
84
|
}
|
|
95
|
-
if (message.
|
|
96
|
-
writer.uint32(
|
|
97
|
-
}
|
|
98
|
-
if (message.debit_frequency !== "") {
|
|
99
|
-
writer.uint32(58).string(message.debit_frequency);
|
|
100
|
-
}
|
|
101
|
-
if (message.no_of_debits !== 0) {
|
|
102
|
-
writer.uint32(64).int32(message.no_of_debits);
|
|
103
|
-
}
|
|
104
|
-
if (message.total_debits !== 0) {
|
|
105
|
-
writer.uint32(72).int32(message.total_debits);
|
|
85
|
+
if (message.rrn !== "") {
|
|
86
|
+
writer.uint32(66).string(message.rrn);
|
|
106
87
|
}
|
|
107
88
|
return writer;
|
|
108
89
|
},
|
|
109
90
|
decode(input, length) {
|
|
110
91
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
111
92
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
112
|
-
const message =
|
|
93
|
+
const message = createBaseMandateTxnDetails();
|
|
113
94
|
while (reader.pos < end) {
|
|
114
95
|
const tag = reader.uint32();
|
|
115
96
|
switch (tag >>> 3) {
|
|
@@ -141,31 +122,13 @@ exports.MandateDetails = {
|
|
|
141
122
|
if (tag !== 42) {
|
|
142
123
|
break;
|
|
143
124
|
}
|
|
144
|
-
message.
|
|
145
|
-
continue;
|
|
146
|
-
case 6:
|
|
147
|
-
if (tag !== 50) {
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
message.end_date = reader.string();
|
|
151
|
-
continue;
|
|
152
|
-
case 7:
|
|
153
|
-
if (tag !== 58) {
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
message.debit_frequency = reader.string();
|
|
125
|
+
message.txn_date = reader.string();
|
|
157
126
|
continue;
|
|
158
127
|
case 8:
|
|
159
|
-
if (tag !==
|
|
160
|
-
break;
|
|
161
|
-
}
|
|
162
|
-
message.no_of_debits = reader.int32();
|
|
163
|
-
continue;
|
|
164
|
-
case 9:
|
|
165
|
-
if (tag !== 72) {
|
|
128
|
+
if (tag !== 66) {
|
|
166
129
|
break;
|
|
167
130
|
}
|
|
168
|
-
message.
|
|
131
|
+
message.rrn = reader.string();
|
|
169
132
|
continue;
|
|
170
133
|
}
|
|
171
134
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -181,11 +144,8 @@ exports.MandateDetails = {
|
|
|
181
144
|
payee_vpa: isSet(object.payee_vpa) ? globalThis.String(object.payee_vpa) : "",
|
|
182
145
|
umn: isSet(object.umn) ? globalThis.String(object.umn) : "",
|
|
183
146
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
debit_frequency: isSet(object.debit_frequency) ? globalThis.String(object.debit_frequency) : "",
|
|
187
|
-
no_of_debits: isSet(object.no_of_debits) ? globalThis.Number(object.no_of_debits) : 0,
|
|
188
|
-
total_debits: isSet(object.total_debits) ? globalThis.Number(object.total_debits) : 0,
|
|
147
|
+
txn_date: isSet(object.txn_date) ? globalThis.String(object.txn_date) : "",
|
|
148
|
+
rrn: isSet(object.rrn) ? globalThis.String(object.rrn) : "",
|
|
189
149
|
};
|
|
190
150
|
},
|
|
191
151
|
toJSON(message) {
|
|
@@ -202,47 +162,35 @@ exports.MandateDetails = {
|
|
|
202
162
|
if (message.amount !== 0) {
|
|
203
163
|
obj.amount = message.amount;
|
|
204
164
|
}
|
|
205
|
-
if (message.
|
|
206
|
-
obj.
|
|
207
|
-
}
|
|
208
|
-
if (message.end_date !== "") {
|
|
209
|
-
obj.end_date = message.end_date;
|
|
210
|
-
}
|
|
211
|
-
if (message.debit_frequency !== "") {
|
|
212
|
-
obj.debit_frequency = message.debit_frequency;
|
|
213
|
-
}
|
|
214
|
-
if (message.no_of_debits !== 0) {
|
|
215
|
-
obj.no_of_debits = Math.round(message.no_of_debits);
|
|
165
|
+
if (message.txn_date !== "") {
|
|
166
|
+
obj.txn_date = message.txn_date;
|
|
216
167
|
}
|
|
217
|
-
if (message.
|
|
218
|
-
obj.
|
|
168
|
+
if (message.rrn !== "") {
|
|
169
|
+
obj.rrn = message.rrn;
|
|
219
170
|
}
|
|
220
171
|
return obj;
|
|
221
172
|
},
|
|
222
173
|
create(base) {
|
|
223
|
-
return exports.
|
|
174
|
+
return exports.MandateTxnDetails.fromPartial(base ?? {});
|
|
224
175
|
},
|
|
225
176
|
fromPartial(object) {
|
|
226
|
-
const message =
|
|
177
|
+
const message = createBaseMandateTxnDetails();
|
|
227
178
|
message.payee_name = object.payee_name ?? "";
|
|
228
179
|
message.payee_vpa = object.payee_vpa ?? "";
|
|
229
180
|
message.umn = object.umn ?? "";
|
|
230
181
|
message.amount = object.amount ?? 0;
|
|
231
|
-
message.
|
|
232
|
-
message.
|
|
233
|
-
message.debit_frequency = object.debit_frequency ?? "";
|
|
234
|
-
message.no_of_debits = object.no_of_debits ?? 0;
|
|
235
|
-
message.total_debits = object.total_debits ?? 0;
|
|
182
|
+
message.txn_date = object.txn_date ?? "";
|
|
183
|
+
message.rrn = object.rrn ?? "";
|
|
236
184
|
return message;
|
|
237
185
|
},
|
|
238
186
|
};
|
|
239
187
|
function createBaseData() {
|
|
240
|
-
return {
|
|
188
|
+
return { mandateTxnDetails: undefined };
|
|
241
189
|
}
|
|
242
190
|
exports.Data = {
|
|
243
191
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
244
|
-
if (message.
|
|
245
|
-
exports.
|
|
192
|
+
if (message.mandateTxnDetails !== undefined) {
|
|
193
|
+
exports.MandateTxnDetails.encode(message.mandateTxnDetails, writer.uint32(10).fork()).ldelim();
|
|
246
194
|
}
|
|
247
195
|
return writer;
|
|
248
196
|
},
|
|
@@ -257,7 +205,7 @@ exports.Data = {
|
|
|
257
205
|
if (tag !== 10) {
|
|
258
206
|
break;
|
|
259
207
|
}
|
|
260
|
-
message.
|
|
208
|
+
message.mandateTxnDetails = exports.MandateTxnDetails.decode(reader, reader.uint32());
|
|
261
209
|
continue;
|
|
262
210
|
}
|
|
263
211
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -269,13 +217,15 @@ exports.Data = {
|
|
|
269
217
|
},
|
|
270
218
|
fromJSON(object) {
|
|
271
219
|
return {
|
|
272
|
-
|
|
220
|
+
mandateTxnDetails: isSet(object.mandateTxnDetails)
|
|
221
|
+
? exports.MandateTxnDetails.fromJSON(object.mandateTxnDetails)
|
|
222
|
+
: undefined,
|
|
273
223
|
};
|
|
274
224
|
},
|
|
275
225
|
toJSON(message) {
|
|
276
226
|
const obj = {};
|
|
277
|
-
if (message.
|
|
278
|
-
obj.
|
|
227
|
+
if (message.mandateTxnDetails !== undefined) {
|
|
228
|
+
obj.mandateTxnDetails = exports.MandateTxnDetails.toJSON(message.mandateTxnDetails);
|
|
279
229
|
}
|
|
280
230
|
return obj;
|
|
281
231
|
},
|
|
@@ -284,8 +234,8 @@ exports.Data = {
|
|
|
284
234
|
},
|
|
285
235
|
fromPartial(object) {
|
|
286
236
|
const message = createBaseData();
|
|
287
|
-
message.
|
|
288
|
-
? exports.
|
|
237
|
+
message.mandateTxnDetails = (object.mandateTxnDetails !== undefined && object.mandateTxnDetails !== null)
|
|
238
|
+
? exports.MandateTxnDetails.fromPartial(object.mandateTxnDetails)
|
|
289
239
|
: undefined;
|
|
290
240
|
return message;
|
|
291
241
|
},
|