@stashfin/grpc 1.2.830 → 1.2.832

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.830",
3
+ "version": "1.2.832",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -11,9 +11,11 @@ export interface getAllBbpsTnxRequest {
11
11
  end_date?: string | undefined;
12
12
  category?: string | undefined;
13
13
  isDownload?: boolean | undefined;
14
+ status?: string | undefined;
15
+ customer_id?: string | undefined;
14
16
  }
15
17
  export interface BBPSTransactions {
16
- transaction_id?: string | undefined;
18
+ transaction_id?: number | undefined;
17
19
  bbps_ref_no?: string | undefined;
18
20
  name?: string | undefined;
19
21
  mobile?: string | undefined;
@@ -23,7 +25,10 @@ export interface BBPSTransactions {
23
25
  mode?: string | undefined;
24
26
  status?: string | undefined;
25
27
  transaction_date?: string | undefined;
26
- order_id: string;
28
+ customer_id?: number | undefined;
29
+ customer_account_no?: string | undefined;
30
+ biller_id?: string | undefined;
31
+ pg_txn_ref_id?: string | undefined;
27
32
  }
28
33
  export interface getAllBbpsTnxResponse {
29
34
  transactions: BBPSTransactions[];
@@ -23,6 +23,8 @@ function createBasegetAllBbpsTnxRequest() {
23
23
  end_date: undefined,
24
24
  category: undefined,
25
25
  isDownload: undefined,
26
+ status: undefined,
27
+ customer_id: undefined,
26
28
  };
27
29
  }
28
30
  exports.getAllBbpsTnxRequest = {
@@ -54,6 +56,12 @@ exports.getAllBbpsTnxRequest = {
54
56
  if (message.isDownload !== undefined) {
55
57
  writer.uint32(72).bool(message.isDownload);
56
58
  }
59
+ if (message.status !== undefined) {
60
+ writer.uint32(82).string(message.status);
61
+ }
62
+ if (message.customer_id !== undefined) {
63
+ writer.uint32(90).string(message.customer_id);
64
+ }
57
65
  return writer;
58
66
  },
59
67
  decode(input, length) {
@@ -117,6 +125,18 @@ exports.getAllBbpsTnxRequest = {
117
125
  }
118
126
  message.isDownload = reader.bool();
119
127
  continue;
128
+ case 10:
129
+ if (tag !== 82) {
130
+ break;
131
+ }
132
+ message.status = reader.string();
133
+ continue;
134
+ case 11:
135
+ if (tag !== 90) {
136
+ break;
137
+ }
138
+ message.customer_id = reader.string();
139
+ continue;
120
140
  }
121
141
  if ((tag & 7) === 4 || tag === 0) {
122
142
  break;
@@ -136,6 +156,8 @@ exports.getAllBbpsTnxRequest = {
136
156
  end_date: isSet(object.end_date) ? globalThis.String(object.end_date) : undefined,
137
157
  category: isSet(object.category) ? globalThis.String(object.category) : undefined,
138
158
  isDownload: isSet(object.isDownload) ? globalThis.Boolean(object.isDownload) : undefined,
159
+ status: isSet(object.status) ? globalThis.String(object.status) : undefined,
160
+ customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : undefined,
139
161
  };
140
162
  },
141
163
  toJSON(message) {
@@ -167,6 +189,12 @@ exports.getAllBbpsTnxRequest = {
167
189
  if (message.isDownload !== undefined) {
168
190
  obj.isDownload = message.isDownload;
169
191
  }
192
+ if (message.status !== undefined) {
193
+ obj.status = message.status;
194
+ }
195
+ if (message.customer_id !== undefined) {
196
+ obj.customer_id = message.customer_id;
197
+ }
170
198
  return obj;
171
199
  },
172
200
  create(base) {
@@ -183,6 +211,8 @@ exports.getAllBbpsTnxRequest = {
183
211
  message.end_date = object.end_date ?? undefined;
184
212
  message.category = object.category ?? undefined;
185
213
  message.isDownload = object.isDownload ?? undefined;
214
+ message.status = object.status ?? undefined;
215
+ message.customer_id = object.customer_id ?? undefined;
186
216
  return message;
187
217
  },
188
218
  };
@@ -198,13 +228,16 @@ function createBaseBBPSTransactions() {
198
228
  mode: undefined,
199
229
  status: undefined,
200
230
  transaction_date: undefined,
201
- order_id: "",
231
+ customer_id: undefined,
232
+ customer_account_no: undefined,
233
+ biller_id: undefined,
234
+ pg_txn_ref_id: undefined,
202
235
  };
203
236
  }
204
237
  exports.BBPSTransactions = {
205
238
  encode(message, writer = minimal_1.default.Writer.create()) {
206
239
  if (message.transaction_id !== undefined) {
207
- writer.uint32(10).string(message.transaction_id);
240
+ writer.uint32(8).int32(message.transaction_id);
208
241
  }
209
242
  if (message.bbps_ref_no !== undefined) {
210
243
  writer.uint32(18).string(message.bbps_ref_no);
@@ -233,8 +266,17 @@ exports.BBPSTransactions = {
233
266
  if (message.transaction_date !== undefined) {
234
267
  writer.uint32(82).string(message.transaction_date);
235
268
  }
236
- if (message.order_id !== "") {
237
- writer.uint32(90).string(message.order_id);
269
+ if (message.customer_id !== undefined) {
270
+ writer.uint32(88).int32(message.customer_id);
271
+ }
272
+ if (message.customer_account_no !== undefined) {
273
+ writer.uint32(98).string(message.customer_account_no);
274
+ }
275
+ if (message.biller_id !== undefined) {
276
+ writer.uint32(106).string(message.biller_id);
277
+ }
278
+ if (message.pg_txn_ref_id !== undefined) {
279
+ writer.uint32(114).string(message.pg_txn_ref_id);
238
280
  }
239
281
  return writer;
240
282
  },
@@ -246,10 +288,10 @@ exports.BBPSTransactions = {
246
288
  const tag = reader.uint32();
247
289
  switch (tag >>> 3) {
248
290
  case 1:
249
- if (tag !== 10) {
291
+ if (tag !== 8) {
250
292
  break;
251
293
  }
252
- message.transaction_id = reader.string();
294
+ message.transaction_id = reader.int32();
253
295
  continue;
254
296
  case 2:
255
297
  if (tag !== 18) {
@@ -306,10 +348,28 @@ exports.BBPSTransactions = {
306
348
  message.transaction_date = reader.string();
307
349
  continue;
308
350
  case 11:
309
- if (tag !== 90) {
351
+ if (tag !== 88) {
310
352
  break;
311
353
  }
312
- message.order_id = reader.string();
354
+ message.customer_id = reader.int32();
355
+ continue;
356
+ case 12:
357
+ if (tag !== 98) {
358
+ break;
359
+ }
360
+ message.customer_account_no = reader.string();
361
+ continue;
362
+ case 13:
363
+ if (tag !== 106) {
364
+ break;
365
+ }
366
+ message.biller_id = reader.string();
367
+ continue;
368
+ case 14:
369
+ if (tag !== 114) {
370
+ break;
371
+ }
372
+ message.pg_txn_ref_id = reader.string();
313
373
  continue;
314
374
  }
315
375
  if ((tag & 7) === 4 || tag === 0) {
@@ -321,7 +381,7 @@ exports.BBPSTransactions = {
321
381
  },
322
382
  fromJSON(object) {
323
383
  return {
324
- transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : undefined,
384
+ transaction_id: isSet(object.transaction_id) ? globalThis.Number(object.transaction_id) : undefined,
325
385
  bbps_ref_no: isSet(object.bbps_ref_no) ? globalThis.String(object.bbps_ref_no) : undefined,
326
386
  name: isSet(object.name) ? globalThis.String(object.name) : undefined,
327
387
  mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
@@ -331,13 +391,18 @@ exports.BBPSTransactions = {
331
391
  mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
332
392
  status: isSet(object.status) ? globalThis.String(object.status) : undefined,
333
393
  transaction_date: isSet(object.transaction_date) ? globalThis.String(object.transaction_date) : undefined,
334
- order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
394
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
395
+ customer_account_no: isSet(object.customer_account_no)
396
+ ? globalThis.String(object.customer_account_no)
397
+ : undefined,
398
+ biller_id: isSet(object.biller_id) ? globalThis.String(object.biller_id) : undefined,
399
+ pg_txn_ref_id: isSet(object.pg_txn_ref_id) ? globalThis.String(object.pg_txn_ref_id) : undefined,
335
400
  };
336
401
  },
337
402
  toJSON(message) {
338
403
  const obj = {};
339
404
  if (message.transaction_id !== undefined) {
340
- obj.transaction_id = message.transaction_id;
405
+ obj.transaction_id = Math.round(message.transaction_id);
341
406
  }
342
407
  if (message.bbps_ref_no !== undefined) {
343
408
  obj.bbps_ref_no = message.bbps_ref_no;
@@ -366,8 +431,17 @@ exports.BBPSTransactions = {
366
431
  if (message.transaction_date !== undefined) {
367
432
  obj.transaction_date = message.transaction_date;
368
433
  }
369
- if (message.order_id !== "") {
370
- obj.order_id = message.order_id;
434
+ if (message.customer_id !== undefined) {
435
+ obj.customer_id = Math.round(message.customer_id);
436
+ }
437
+ if (message.customer_account_no !== undefined) {
438
+ obj.customer_account_no = message.customer_account_no;
439
+ }
440
+ if (message.biller_id !== undefined) {
441
+ obj.biller_id = message.biller_id;
442
+ }
443
+ if (message.pg_txn_ref_id !== undefined) {
444
+ obj.pg_txn_ref_id = message.pg_txn_ref_id;
371
445
  }
372
446
  return obj;
373
447
  },
@@ -386,7 +460,10 @@ exports.BBPSTransactions = {
386
460
  message.mode = object.mode ?? undefined;
387
461
  message.status = object.status ?? undefined;
388
462
  message.transaction_date = object.transaction_date ?? undefined;
389
- message.order_id = object.order_id ?? "";
463
+ message.customer_id = object.customer_id ?? undefined;
464
+ message.customer_account_no = object.customer_account_no ?? undefined;
465
+ message.biller_id = object.biller_id ?? undefined;
466
+ message.pg_txn_ref_id = object.pg_txn_ref_id ?? undefined;
390
467
  return message;
391
468
  },
392
469
  };