@stashfin/grpc 1.2.831 → 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.831",
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",
@@ -15,7 +15,7 @@ export interface getAllBbpsTnxRequest {
15
15
  customer_id?: string | undefined;
16
16
  }
17
17
  export interface BBPSTransactions {
18
- transaction_id?: string | undefined;
18
+ transaction_id?: number | undefined;
19
19
  bbps_ref_no?: string | undefined;
20
20
  name?: string | undefined;
21
21
  mobile?: string | undefined;
@@ -25,8 +25,10 @@ export interface BBPSTransactions {
25
25
  mode?: string | undefined;
26
26
  status?: string | undefined;
27
27
  transaction_date?: string | undefined;
28
- order_id: string;
29
- customer_id?: string | undefined;
28
+ customer_id?: number | undefined;
29
+ customer_account_no?: string | undefined;
30
+ biller_id?: string | undefined;
31
+ pg_txn_ref_id?: string | undefined;
30
32
  }
31
33
  export interface getAllBbpsTnxResponse {
32
34
  transactions: BBPSTransactions[];
@@ -228,14 +228,16 @@ function createBaseBBPSTransactions() {
228
228
  mode: undefined,
229
229
  status: undefined,
230
230
  transaction_date: undefined,
231
- order_id: "",
232
231
  customer_id: undefined,
232
+ customer_account_no: undefined,
233
+ biller_id: undefined,
234
+ pg_txn_ref_id: undefined,
233
235
  };
234
236
  }
235
237
  exports.BBPSTransactions = {
236
238
  encode(message, writer = minimal_1.default.Writer.create()) {
237
239
  if (message.transaction_id !== undefined) {
238
- writer.uint32(10).string(message.transaction_id);
240
+ writer.uint32(8).int32(message.transaction_id);
239
241
  }
240
242
  if (message.bbps_ref_no !== undefined) {
241
243
  writer.uint32(18).string(message.bbps_ref_no);
@@ -264,11 +266,17 @@ exports.BBPSTransactions = {
264
266
  if (message.transaction_date !== undefined) {
265
267
  writer.uint32(82).string(message.transaction_date);
266
268
  }
267
- if (message.order_id !== "") {
268
- writer.uint32(90).string(message.order_id);
269
- }
270
269
  if (message.customer_id !== undefined) {
271
- writer.uint32(98).string(message.customer_id);
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);
272
280
  }
273
281
  return writer;
274
282
  },
@@ -280,10 +288,10 @@ exports.BBPSTransactions = {
280
288
  const tag = reader.uint32();
281
289
  switch (tag >>> 3) {
282
290
  case 1:
283
- if (tag !== 10) {
291
+ if (tag !== 8) {
284
292
  break;
285
293
  }
286
- message.transaction_id = reader.string();
294
+ message.transaction_id = reader.int32();
287
295
  continue;
288
296
  case 2:
289
297
  if (tag !== 18) {
@@ -340,16 +348,28 @@ exports.BBPSTransactions = {
340
348
  message.transaction_date = reader.string();
341
349
  continue;
342
350
  case 11:
343
- if (tag !== 90) {
351
+ if (tag !== 88) {
344
352
  break;
345
353
  }
346
- message.order_id = reader.string();
354
+ message.customer_id = reader.int32();
347
355
  continue;
348
356
  case 12:
349
357
  if (tag !== 98) {
350
358
  break;
351
359
  }
352
- message.customer_id = reader.string();
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();
353
373
  continue;
354
374
  }
355
375
  if ((tag & 7) === 4 || tag === 0) {
@@ -361,7 +381,7 @@ exports.BBPSTransactions = {
361
381
  },
362
382
  fromJSON(object) {
363
383
  return {
364
- 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,
365
385
  bbps_ref_no: isSet(object.bbps_ref_no) ? globalThis.String(object.bbps_ref_no) : undefined,
366
386
  name: isSet(object.name) ? globalThis.String(object.name) : undefined,
367
387
  mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
@@ -371,14 +391,18 @@ exports.BBPSTransactions = {
371
391
  mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
372
392
  status: isSet(object.status) ? globalThis.String(object.status) : undefined,
373
393
  transaction_date: isSet(object.transaction_date) ? globalThis.String(object.transaction_date) : undefined,
374
- order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
375
- customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : undefined,
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,
376
400
  };
377
401
  },
378
402
  toJSON(message) {
379
403
  const obj = {};
380
404
  if (message.transaction_id !== undefined) {
381
- obj.transaction_id = message.transaction_id;
405
+ obj.transaction_id = Math.round(message.transaction_id);
382
406
  }
383
407
  if (message.bbps_ref_no !== undefined) {
384
408
  obj.bbps_ref_no = message.bbps_ref_no;
@@ -407,11 +431,17 @@ exports.BBPSTransactions = {
407
431
  if (message.transaction_date !== undefined) {
408
432
  obj.transaction_date = message.transaction_date;
409
433
  }
410
- if (message.order_id !== "") {
411
- obj.order_id = message.order_id;
412
- }
413
434
  if (message.customer_id !== undefined) {
414
- obj.customer_id = message.customer_id;
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;
415
445
  }
416
446
  return obj;
417
447
  },
@@ -430,8 +460,10 @@ exports.BBPSTransactions = {
430
460
  message.mode = object.mode ?? undefined;
431
461
  message.status = object.status ?? undefined;
432
462
  message.transaction_date = object.transaction_date ?? undefined;
433
- message.order_id = object.order_id ?? "";
434
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;
435
467
  return message;
436
468
  },
437
469
  };