@technova-tech/olive-proto-lib 2.5.3 → 2.5.5

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
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "2.5.3",
14
+ "version": "2.5.5",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -912,7 +912,7 @@ var com;
912
912
  }
913
913
  terminalTransactions.TerminalTransactionsFilter = TerminalTransactionsFilter;
914
914
  class AllTransactionsFilter extends pb_1.Message {
915
- #one_of_decls = [[13]];
915
+ #one_of_decls = [[13], [14], [15], [16]];
916
916
  constructor(data) {
917
917
  super();
918
918
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -956,6 +956,15 @@ var com;
956
956
  if ("returnAll" in data && data.returnAll != undefined) {
957
957
  this.returnAll = data.returnAll;
958
958
  }
959
+ if ("isSettled" in data && data.isSettled != undefined) {
960
+ this.isSettled = data.isSettled;
961
+ }
962
+ if ("settledAmountMin" in data && data.settledAmountMin != undefined) {
963
+ this.settledAmountMin = data.settledAmountMin;
964
+ }
965
+ if ("settledAmountMax" in data && data.settledAmountMax != undefined) {
966
+ this.settledAmountMax = data.settledAmountMax;
967
+ }
959
968
  }
960
969
  }
961
970
  get terminalId() {
@@ -1039,6 +1048,33 @@ var com;
1039
1048
  get hasReturnAll() {
1040
1049
  return pb_1.Message.getField(this, 13) != null;
1041
1050
  }
1051
+ get isSettled() {
1052
+ return pb_1.Message.getFieldWithDefault(this, 14, false);
1053
+ }
1054
+ set isSettled(value) {
1055
+ pb_1.Message.setOneofField(this, 14, this.#one_of_decls[1], value);
1056
+ }
1057
+ get hasIsSettled() {
1058
+ return pb_1.Message.getField(this, 14) != null;
1059
+ }
1060
+ get settledAmountMin() {
1061
+ return pb_1.Message.getFieldWithDefault(this, 15, 0);
1062
+ }
1063
+ set settledAmountMin(value) {
1064
+ pb_1.Message.setOneofField(this, 15, this.#one_of_decls[2], value);
1065
+ }
1066
+ get hasSettledAmountMin() {
1067
+ return pb_1.Message.getField(this, 15) != null;
1068
+ }
1069
+ get settledAmountMax() {
1070
+ return pb_1.Message.getFieldWithDefault(this, 16, 0);
1071
+ }
1072
+ set settledAmountMax(value) {
1073
+ pb_1.Message.setOneofField(this, 16, this.#one_of_decls[3], value);
1074
+ }
1075
+ get hasSettledAmountMax() {
1076
+ return pb_1.Message.getField(this, 16) != null;
1077
+ }
1042
1078
  get _return_all() {
1043
1079
  const cases = {
1044
1080
  0: "none",
@@ -1046,6 +1082,27 @@ var com;
1046
1082
  };
1047
1083
  return cases[pb_1.Message.computeOneofCase(this, [13])];
1048
1084
  }
1085
+ get _is_settled() {
1086
+ const cases = {
1087
+ 0: "none",
1088
+ 14: "isSettled"
1089
+ };
1090
+ return cases[pb_1.Message.computeOneofCase(this, [14])];
1091
+ }
1092
+ get _settled_amount_min() {
1093
+ const cases = {
1094
+ 0: "none",
1095
+ 15: "settledAmountMin"
1096
+ };
1097
+ return cases[pb_1.Message.computeOneofCase(this, [15])];
1098
+ }
1099
+ get _settled_amount_max() {
1100
+ const cases = {
1101
+ 0: "none",
1102
+ 16: "settledAmountMax"
1103
+ };
1104
+ return cases[pb_1.Message.computeOneofCase(this, [16])];
1105
+ }
1049
1106
  static fromObject(data) {
1050
1107
  const message = new AllTransactionsFilter({});
1051
1108
  if (data.terminalId != null) {
@@ -1087,6 +1144,15 @@ var com;
1087
1144
  if (data.returnAll != null) {
1088
1145
  message.returnAll = data.returnAll;
1089
1146
  }
1147
+ if (data.isSettled != null) {
1148
+ message.isSettled = data.isSettled;
1149
+ }
1150
+ if (data.settledAmountMin != null) {
1151
+ message.settledAmountMin = data.settledAmountMin;
1152
+ }
1153
+ if (data.settledAmountMax != null) {
1154
+ message.settledAmountMax = data.settledAmountMax;
1155
+ }
1090
1156
  return message;
1091
1157
  }
1092
1158
  toObject() {
@@ -1130,6 +1196,15 @@ var com;
1130
1196
  if (this.returnAll != null) {
1131
1197
  data.returnAll = this.returnAll;
1132
1198
  }
1199
+ if (this.isSettled != null) {
1200
+ data.isSettled = this.isSettled;
1201
+ }
1202
+ if (this.settledAmountMin != null) {
1203
+ data.settledAmountMin = this.settledAmountMin;
1204
+ }
1205
+ if (this.settledAmountMax != null) {
1206
+ data.settledAmountMax = this.settledAmountMax;
1207
+ }
1133
1208
  return data;
1134
1209
  }
1135
1210
  serialize(w) {
@@ -1160,6 +1235,12 @@ var com;
1160
1235
  writer.writeString(12, this.mfbId);
1161
1236
  if (this.hasReturnAll)
1162
1237
  writer.writeBool(13, this.returnAll);
1238
+ if (this.hasIsSettled)
1239
+ writer.writeBool(14, this.isSettled);
1240
+ if (this.hasSettledAmountMin)
1241
+ writer.writeDouble(15, this.settledAmountMin);
1242
+ if (this.hasSettledAmountMax)
1243
+ writer.writeDouble(16, this.settledAmountMax);
1163
1244
  if (!w)
1164
1245
  return writer.getResultBuffer();
1165
1246
  }
@@ -1208,6 +1289,15 @@ var com;
1208
1289
  case 13:
1209
1290
  message.returnAll = reader.readBool();
1210
1291
  break;
1292
+ case 14:
1293
+ message.isSettled = reader.readBool();
1294
+ break;
1295
+ case 15:
1296
+ message.settledAmountMin = reader.readDouble();
1297
+ break;
1298
+ case 16:
1299
+ message.settledAmountMax = reader.readDouble();
1300
+ break;
1211
1301
  default: reader.skipField();
1212
1302
  }
1213
1303
  }
@@ -1221,6 +1311,226 @@ var com;
1221
1311
  }
1222
1312
  }
1223
1313
  terminalTransactions.AllTransactionsFilter = AllTransactionsFilter;
1314
+ class TransactionTypeSummary extends pb_1.Message {
1315
+ #one_of_decls = [];
1316
+ constructor(data) {
1317
+ super();
1318
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
1319
+ if (!Array.isArray(data) && typeof data == "object") {
1320
+ if ("transactionType" in data && data.transactionType != undefined) {
1321
+ this.transactionType = data.transactionType;
1322
+ }
1323
+ if ("count" in data && data.count != undefined) {
1324
+ this.count = data.count;
1325
+ }
1326
+ if ("volume" in data && data.volume != undefined) {
1327
+ this.volume = data.volume;
1328
+ }
1329
+ }
1330
+ }
1331
+ get transactionType() {
1332
+ return pb_1.Message.getFieldWithDefault(this, 1, "");
1333
+ }
1334
+ set transactionType(value) {
1335
+ pb_1.Message.setField(this, 1, value);
1336
+ }
1337
+ get count() {
1338
+ return pb_1.Message.getFieldWithDefault(this, 2, 0);
1339
+ }
1340
+ set count(value) {
1341
+ pb_1.Message.setField(this, 2, value);
1342
+ }
1343
+ get volume() {
1344
+ return pb_1.Message.getFieldWithDefault(this, 3, 0);
1345
+ }
1346
+ set volume(value) {
1347
+ pb_1.Message.setField(this, 3, value);
1348
+ }
1349
+ static fromObject(data) {
1350
+ const message = new TransactionTypeSummary({});
1351
+ if (data.transactionType != null) {
1352
+ message.transactionType = data.transactionType;
1353
+ }
1354
+ if (data.count != null) {
1355
+ message.count = data.count;
1356
+ }
1357
+ if (data.volume != null) {
1358
+ message.volume = data.volume;
1359
+ }
1360
+ return message;
1361
+ }
1362
+ toObject() {
1363
+ const data = {};
1364
+ if (this.transactionType != null) {
1365
+ data.transactionType = this.transactionType;
1366
+ }
1367
+ if (this.count != null) {
1368
+ data.count = this.count;
1369
+ }
1370
+ if (this.volume != null) {
1371
+ data.volume = this.volume;
1372
+ }
1373
+ return data;
1374
+ }
1375
+ serialize(w) {
1376
+ const writer = w || new pb_1.BinaryWriter();
1377
+ if (this.transactionType.length)
1378
+ writer.writeString(1, this.transactionType);
1379
+ if (this.count != 0)
1380
+ writer.writeInt32(2, this.count);
1381
+ if (this.volume != 0)
1382
+ writer.writeDouble(3, this.volume);
1383
+ if (!w)
1384
+ return writer.getResultBuffer();
1385
+ }
1386
+ static deserialize(bytes) {
1387
+ const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TransactionTypeSummary();
1388
+ while (reader.nextField()) {
1389
+ if (reader.isEndGroup())
1390
+ break;
1391
+ switch (reader.getFieldNumber()) {
1392
+ case 1:
1393
+ message.transactionType = reader.readString();
1394
+ break;
1395
+ case 2:
1396
+ message.count = reader.readInt32();
1397
+ break;
1398
+ case 3:
1399
+ message.volume = reader.readDouble();
1400
+ break;
1401
+ default: reader.skipField();
1402
+ }
1403
+ }
1404
+ return message;
1405
+ }
1406
+ serializeBinary() {
1407
+ return this.serialize();
1408
+ }
1409
+ static deserializeBinary(bytes) {
1410
+ return TransactionTypeSummary.deserialize(bytes);
1411
+ }
1412
+ }
1413
+ terminalTransactions.TransactionTypeSummary = TransactionTypeSummary;
1414
+ class TransactionSummaryResponse extends pb_1.Message {
1415
+ #one_of_decls = [];
1416
+ constructor(data) {
1417
+ super();
1418
+ pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
1419
+ if (!Array.isArray(data) && typeof data == "object") {
1420
+ if ("success" in data && data.success != undefined) {
1421
+ this.success = data.success;
1422
+ }
1423
+ if ("byType" in data && data.byType != undefined) {
1424
+ this.byType = data.byType;
1425
+ }
1426
+ if ("totalCount" in data && data.totalCount != undefined) {
1427
+ this.totalCount = data.totalCount;
1428
+ }
1429
+ if ("totalVolume" in data && data.totalVolume != undefined) {
1430
+ this.totalVolume = data.totalVolume;
1431
+ }
1432
+ }
1433
+ }
1434
+ get success() {
1435
+ return pb_1.Message.getFieldWithDefault(this, 1, false);
1436
+ }
1437
+ set success(value) {
1438
+ pb_1.Message.setField(this, 1, value);
1439
+ }
1440
+ get byType() {
1441
+ return pb_1.Message.getRepeatedWrapperField(this, TransactionTypeSummary, 2);
1442
+ }
1443
+ set byType(value) {
1444
+ pb_1.Message.setRepeatedWrapperField(this, 2, value);
1445
+ }
1446
+ get totalCount() {
1447
+ return pb_1.Message.getFieldWithDefault(this, 3, 0);
1448
+ }
1449
+ set totalCount(value) {
1450
+ pb_1.Message.setField(this, 3, value);
1451
+ }
1452
+ get totalVolume() {
1453
+ return pb_1.Message.getFieldWithDefault(this, 4, 0);
1454
+ }
1455
+ set totalVolume(value) {
1456
+ pb_1.Message.setField(this, 4, value);
1457
+ }
1458
+ static fromObject(data) {
1459
+ const message = new TransactionSummaryResponse({});
1460
+ if (data.success != null) {
1461
+ message.success = data.success;
1462
+ }
1463
+ if (data.byType != null) {
1464
+ message.byType = data.byType.map(item => TransactionTypeSummary.fromObject(item));
1465
+ }
1466
+ if (data.totalCount != null) {
1467
+ message.totalCount = data.totalCount;
1468
+ }
1469
+ if (data.totalVolume != null) {
1470
+ message.totalVolume = data.totalVolume;
1471
+ }
1472
+ return message;
1473
+ }
1474
+ toObject() {
1475
+ const data = {};
1476
+ if (this.success != null) {
1477
+ data.success = this.success;
1478
+ }
1479
+ if (this.byType != null) {
1480
+ data.byType = this.byType.map((item) => item.toObject());
1481
+ }
1482
+ if (this.totalCount != null) {
1483
+ data.totalCount = this.totalCount;
1484
+ }
1485
+ if (this.totalVolume != null) {
1486
+ data.totalVolume = this.totalVolume;
1487
+ }
1488
+ return data;
1489
+ }
1490
+ serialize(w) {
1491
+ const writer = w || new pb_1.BinaryWriter();
1492
+ if (this.success != false)
1493
+ writer.writeBool(1, this.success);
1494
+ if (this.byType.length)
1495
+ writer.writeRepeatedMessage(2, this.byType, (item) => item.serialize(writer));
1496
+ if (this.totalCount != 0)
1497
+ writer.writeInt32(3, this.totalCount);
1498
+ if (this.totalVolume != 0)
1499
+ writer.writeDouble(4, this.totalVolume);
1500
+ if (!w)
1501
+ return writer.getResultBuffer();
1502
+ }
1503
+ static deserialize(bytes) {
1504
+ const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TransactionSummaryResponse();
1505
+ while (reader.nextField()) {
1506
+ if (reader.isEndGroup())
1507
+ break;
1508
+ switch (reader.getFieldNumber()) {
1509
+ case 1:
1510
+ message.success = reader.readBool();
1511
+ break;
1512
+ case 2:
1513
+ reader.readMessage(message.byType, () => pb_1.Message.addToRepeatedWrapperField(message, 2, TransactionTypeSummary.deserialize(reader), TransactionTypeSummary));
1514
+ break;
1515
+ case 3:
1516
+ message.totalCount = reader.readInt32();
1517
+ break;
1518
+ case 4:
1519
+ message.totalVolume = reader.readDouble();
1520
+ break;
1521
+ default: reader.skipField();
1522
+ }
1523
+ }
1524
+ return message;
1525
+ }
1526
+ serializeBinary() {
1527
+ return this.serialize();
1528
+ }
1529
+ static deserializeBinary(bytes) {
1530
+ return TransactionSummaryResponse.deserialize(bytes);
1531
+ }
1532
+ }
1533
+ terminalTransactions.TransactionSummaryResponse = TransactionSummaryResponse;
1224
1534
  class TransactionDetailsRequest extends pb_1.Message {
1225
1535
  #one_of_decls = [];
1226
1536
  constructor(data) {
@@ -1954,7 +2264,7 @@ var com;
1954
2264
  }
1955
2265
  terminalTransactions.TerminalTransactionsResponse = TerminalTransactionsResponse;
1956
2266
  class TransactionSession extends pb_1.Message {
1957
- #one_of_decls = [[11], [12], [13], [18], [19], [20], [21]];
2267
+ #one_of_decls = [[11], [12], [13], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28]];
1958
2268
  constructor(data) {
1959
2269
  super();
1960
2270
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -2022,6 +2332,27 @@ var com;
2022
2332
  if ("errorMessage" in data && data.errorMessage != undefined) {
2023
2333
  this.errorMessage = data.errorMessage;
2024
2334
  }
2335
+ if ("isSettled" in data && data.isSettled != undefined) {
2336
+ this.isSettled = data.isSettled;
2337
+ }
2338
+ if ("settledAt" in data && data.settledAt != undefined) {
2339
+ this.settledAt = data.settledAt;
2340
+ }
2341
+ if ("settlementBatchId" in data && data.settlementBatchId != undefined) {
2342
+ this.settlementBatchId = data.settlementBatchId;
2343
+ }
2344
+ if ("settledAmount" in data && data.settledAmount != undefined) {
2345
+ this.settledAmount = data.settledAmount;
2346
+ }
2347
+ if ("ownerType" in data && data.ownerType != undefined) {
2348
+ this.ownerType = data.ownerType;
2349
+ }
2350
+ if ("ownerId" in data && data.ownerId != undefined) {
2351
+ this.ownerId = data.ownerId;
2352
+ }
2353
+ if ("merchantId" in data && data.merchantId != undefined) {
2354
+ this.merchantId = data.merchantId;
2355
+ }
2025
2356
  }
2026
2357
  if (!this.metadata)
2027
2358
  this.metadata = new Map();
@@ -2173,6 +2504,69 @@ var com;
2173
2504
  get hasErrorMessage() {
2174
2505
  return pb_1.Message.getField(this, 21) != null;
2175
2506
  }
2507
+ get isSettled() {
2508
+ return pb_1.Message.getFieldWithDefault(this, 22, false);
2509
+ }
2510
+ set isSettled(value) {
2511
+ pb_1.Message.setOneofField(this, 22, this.#one_of_decls[7], value);
2512
+ }
2513
+ get hasIsSettled() {
2514
+ return pb_1.Message.getField(this, 22) != null;
2515
+ }
2516
+ get settledAt() {
2517
+ return pb_1.Message.getFieldWithDefault(this, 23, "");
2518
+ }
2519
+ set settledAt(value) {
2520
+ pb_1.Message.setOneofField(this, 23, this.#one_of_decls[8], value);
2521
+ }
2522
+ get hasSettledAt() {
2523
+ return pb_1.Message.getField(this, 23) != null;
2524
+ }
2525
+ get settlementBatchId() {
2526
+ return pb_1.Message.getFieldWithDefault(this, 24, "");
2527
+ }
2528
+ set settlementBatchId(value) {
2529
+ pb_1.Message.setOneofField(this, 24, this.#one_of_decls[9], value);
2530
+ }
2531
+ get hasSettlementBatchId() {
2532
+ return pb_1.Message.getField(this, 24) != null;
2533
+ }
2534
+ get settledAmount() {
2535
+ return pb_1.Message.getFieldWithDefault(this, 25, 0);
2536
+ }
2537
+ set settledAmount(value) {
2538
+ pb_1.Message.setOneofField(this, 25, this.#one_of_decls[10], value);
2539
+ }
2540
+ get hasSettledAmount() {
2541
+ return pb_1.Message.getField(this, 25) != null;
2542
+ }
2543
+ get ownerType() {
2544
+ return pb_1.Message.getFieldWithDefault(this, 26, "");
2545
+ }
2546
+ set ownerType(value) {
2547
+ pb_1.Message.setOneofField(this, 26, this.#one_of_decls[11], value);
2548
+ }
2549
+ get hasOwnerType() {
2550
+ return pb_1.Message.getField(this, 26) != null;
2551
+ }
2552
+ get ownerId() {
2553
+ return pb_1.Message.getFieldWithDefault(this, 27, "");
2554
+ }
2555
+ set ownerId(value) {
2556
+ pb_1.Message.setOneofField(this, 27, this.#one_of_decls[12], value);
2557
+ }
2558
+ get hasOwnerId() {
2559
+ return pb_1.Message.getField(this, 27) != null;
2560
+ }
2561
+ get merchantId() {
2562
+ return pb_1.Message.getFieldWithDefault(this, 28, "");
2563
+ }
2564
+ set merchantId(value) {
2565
+ pb_1.Message.setOneofField(this, 28, this.#one_of_decls[13], value);
2566
+ }
2567
+ get hasMerchantId() {
2568
+ return pb_1.Message.getField(this, 28) != null;
2569
+ }
2176
2570
  get _rrn() {
2177
2571
  const cases = {
2178
2572
  0: "none",
@@ -2222,6 +2616,55 @@ var com;
2222
2616
  };
2223
2617
  return cases[pb_1.Message.computeOneofCase(this, [21])];
2224
2618
  }
2619
+ get _is_settled() {
2620
+ const cases = {
2621
+ 0: "none",
2622
+ 22: "isSettled"
2623
+ };
2624
+ return cases[pb_1.Message.computeOneofCase(this, [22])];
2625
+ }
2626
+ get _settled_at() {
2627
+ const cases = {
2628
+ 0: "none",
2629
+ 23: "settledAt"
2630
+ };
2631
+ return cases[pb_1.Message.computeOneofCase(this, [23])];
2632
+ }
2633
+ get _settlement_batch_id() {
2634
+ const cases = {
2635
+ 0: "none",
2636
+ 24: "settlementBatchId"
2637
+ };
2638
+ return cases[pb_1.Message.computeOneofCase(this, [24])];
2639
+ }
2640
+ get _settled_amount() {
2641
+ const cases = {
2642
+ 0: "none",
2643
+ 25: "settledAmount"
2644
+ };
2645
+ return cases[pb_1.Message.computeOneofCase(this, [25])];
2646
+ }
2647
+ get _owner_type() {
2648
+ const cases = {
2649
+ 0: "none",
2650
+ 26: "ownerType"
2651
+ };
2652
+ return cases[pb_1.Message.computeOneofCase(this, [26])];
2653
+ }
2654
+ get _owner_id() {
2655
+ const cases = {
2656
+ 0: "none",
2657
+ 27: "ownerId"
2658
+ };
2659
+ return cases[pb_1.Message.computeOneofCase(this, [27])];
2660
+ }
2661
+ get _merchant_id() {
2662
+ const cases = {
2663
+ 0: "none",
2664
+ 28: "merchantId"
2665
+ };
2666
+ return cases[pb_1.Message.computeOneofCase(this, [28])];
2667
+ }
2225
2668
  static fromObject(data) {
2226
2669
  const message = new TransactionSession({});
2227
2670
  if (data.id != null) {
@@ -2287,6 +2730,27 @@ var com;
2287
2730
  if (data.errorMessage != null) {
2288
2731
  message.errorMessage = data.errorMessage;
2289
2732
  }
2733
+ if (data.isSettled != null) {
2734
+ message.isSettled = data.isSettled;
2735
+ }
2736
+ if (data.settledAt != null) {
2737
+ message.settledAt = data.settledAt;
2738
+ }
2739
+ if (data.settlementBatchId != null) {
2740
+ message.settlementBatchId = data.settlementBatchId;
2741
+ }
2742
+ if (data.settledAmount != null) {
2743
+ message.settledAmount = data.settledAmount;
2744
+ }
2745
+ if (data.ownerType != null) {
2746
+ message.ownerType = data.ownerType;
2747
+ }
2748
+ if (data.ownerId != null) {
2749
+ message.ownerId = data.ownerId;
2750
+ }
2751
+ if (data.merchantId != null) {
2752
+ message.merchantId = data.merchantId;
2753
+ }
2290
2754
  return message;
2291
2755
  }
2292
2756
  toObject() {
@@ -2354,6 +2818,27 @@ var com;
2354
2818
  if (this.errorMessage != null) {
2355
2819
  data.errorMessage = this.errorMessage;
2356
2820
  }
2821
+ if (this.isSettled != null) {
2822
+ data.isSettled = this.isSettled;
2823
+ }
2824
+ if (this.settledAt != null) {
2825
+ data.settledAt = this.settledAt;
2826
+ }
2827
+ if (this.settlementBatchId != null) {
2828
+ data.settlementBatchId = this.settlementBatchId;
2829
+ }
2830
+ if (this.settledAmount != null) {
2831
+ data.settledAmount = this.settledAmount;
2832
+ }
2833
+ if (this.ownerType != null) {
2834
+ data.ownerType = this.ownerType;
2835
+ }
2836
+ if (this.ownerId != null) {
2837
+ data.ownerId = this.ownerId;
2838
+ }
2839
+ if (this.merchantId != null) {
2840
+ data.merchantId = this.merchantId;
2841
+ }
2357
2842
  return data;
2358
2843
  }
2359
2844
  serialize(w) {
@@ -2404,6 +2889,20 @@ var com;
2404
2889
  writer.writeString(20, this.paymentReference);
2405
2890
  if (this.hasErrorMessage)
2406
2891
  writer.writeString(21, this.errorMessage);
2892
+ if (this.hasIsSettled)
2893
+ writer.writeBool(22, this.isSettled);
2894
+ if (this.hasSettledAt)
2895
+ writer.writeString(23, this.settledAt);
2896
+ if (this.hasSettlementBatchId)
2897
+ writer.writeString(24, this.settlementBatchId);
2898
+ if (this.hasSettledAmount)
2899
+ writer.writeDouble(25, this.settledAmount);
2900
+ if (this.hasOwnerType)
2901
+ writer.writeString(26, this.ownerType);
2902
+ if (this.hasOwnerId)
2903
+ writer.writeString(27, this.ownerId);
2904
+ if (this.hasMerchantId)
2905
+ writer.writeString(28, this.merchantId);
2407
2906
  if (!w)
2408
2907
  return writer.getResultBuffer();
2409
2908
  }
@@ -2476,6 +2975,27 @@ var com;
2476
2975
  case 21:
2477
2976
  message.errorMessage = reader.readString();
2478
2977
  break;
2978
+ case 22:
2979
+ message.isSettled = reader.readBool();
2980
+ break;
2981
+ case 23:
2982
+ message.settledAt = reader.readString();
2983
+ break;
2984
+ case 24:
2985
+ message.settlementBatchId = reader.readString();
2986
+ break;
2987
+ case 25:
2988
+ message.settledAmount = reader.readDouble();
2989
+ break;
2990
+ case 26:
2991
+ message.ownerType = reader.readString();
2992
+ break;
2993
+ case 27:
2994
+ message.ownerId = reader.readString();
2995
+ break;
2996
+ case 28:
2997
+ message.merchantId = reader.readString();
2998
+ break;
2479
2999
  default: reader.skipField();
2480
3000
  }
2481
3001
  }
@@ -3694,6 +4214,15 @@ var com;
3694
4214
  requestDeserialize: (bytes) => TransactionDetailsRequest.deserialize(new Uint8Array(bytes)),
3695
4215
  responseSerialize: (message) => Buffer.from(message.serialize()),
3696
4216
  responseDeserialize: (bytes) => TransactionDetailsResponse.deserialize(new Uint8Array(bytes))
4217
+ },
4218
+ GetTransactionSummary: {
4219
+ path: "/com.pkg.posv1.terminalTransactions.TerminalTransactionService/GetTransactionSummary",
4220
+ requestStream: false,
4221
+ responseStream: false,
4222
+ requestSerialize: (message) => Buffer.from(message.serialize()),
4223
+ requestDeserialize: (bytes) => AllTransactionsFilter.deserialize(new Uint8Array(bytes)),
4224
+ responseSerialize: (message) => Buffer.from(message.serialize()),
4225
+ responseDeserialize: (bytes) => TransactionSummaryResponse.deserialize(new Uint8Array(bytes))
3697
4226
  }
3698
4227
  };
3699
4228
  }
@@ -3814,6 +4343,22 @@ var com;
3814
4343
  }
3815
4344
  }));
3816
4345
  };
4346
+ GetTransactionSummary = (message, metadata, options) => {
4347
+ if (!metadata) {
4348
+ metadata = new grpc_1.Metadata;
4349
+ }
4350
+ if (!options) {
4351
+ options = {};
4352
+ }
4353
+ return new Promise((resolve, reject) => super.GetTransactionSummary(message, metadata, options, (error, response) => {
4354
+ if (error) {
4355
+ reject(error);
4356
+ }
4357
+ else {
4358
+ resolve(response);
4359
+ }
4360
+ }));
4361
+ };
3817
4362
  }
3818
4363
  terminalTransactions.TerminalTransactionServiceClient = TerminalTransactionServiceClient;
3819
4364
  })(terminalTransactions = posv1.terminalTransactions || (posv1.terminalTransactions = {}));
@@ -334,6 +334,12 @@ export declare namespace com.pkg.posv1.terminalTransactions {
334
334
  mfbId?: string;
335
335
  } & (({
336
336
  returnAll?: boolean;
337
+ }) | ({
338
+ isSettled?: boolean;
339
+ }) | ({
340
+ settledAmountMin?: number;
341
+ }) | ({
342
+ settledAmountMax?: number;
337
343
  }))));
338
344
  get terminalId(): string;
339
345
  set terminalId(value: string);
@@ -362,7 +368,19 @@ export declare namespace com.pkg.posv1.terminalTransactions {
362
368
  get returnAll(): boolean;
363
369
  set returnAll(value: boolean);
364
370
  get hasReturnAll(): boolean;
371
+ get isSettled(): boolean;
372
+ set isSettled(value: boolean);
373
+ get hasIsSettled(): boolean;
374
+ get settledAmountMin(): number;
375
+ set settledAmountMin(value: number);
376
+ get hasSettledAmountMin(): boolean;
377
+ get settledAmountMax(): number;
378
+ set settledAmountMax(value: number);
379
+ get hasSettledAmountMax(): boolean;
365
380
  get _return_all(): "none" | "returnAll";
381
+ get _is_settled(): "none" | "isSettled";
382
+ get _settled_amount_min(): "none" | "settledAmountMin";
383
+ get _settled_amount_max(): "none" | "settledAmountMax";
366
384
  static fromObject(data: {
367
385
  terminalId?: string;
368
386
  businessId?: string;
@@ -377,6 +395,9 @@ export declare namespace com.pkg.posv1.terminalTransactions {
377
395
  search?: string;
378
396
  mfbId?: string;
379
397
  returnAll?: boolean;
398
+ isSettled?: boolean;
399
+ settledAmountMin?: number;
400
+ settledAmountMax?: number;
380
401
  }): AllTransactionsFilter;
381
402
  toObject(): {
382
403
  terminalId?: string | undefined;
@@ -392,6 +413,9 @@ export declare namespace com.pkg.posv1.terminalTransactions {
392
413
  search?: string | undefined;
393
414
  mfbId?: string | undefined;
394
415
  returnAll?: boolean | undefined;
416
+ isSettled?: boolean | undefined;
417
+ settledAmountMin?: number | undefined;
418
+ settledAmountMax?: number | undefined;
395
419
  };
396
420
  serialize(): Uint8Array;
397
421
  serialize(w: pb_1.BinaryWriter): void;
@@ -399,6 +423,73 @@ export declare namespace com.pkg.posv1.terminalTransactions {
399
423
  serializeBinary(): Uint8Array;
400
424
  static deserializeBinary(bytes: Uint8Array): AllTransactionsFilter;
401
425
  }
426
+ export class TransactionTypeSummary extends pb_1.Message {
427
+ #private;
428
+ constructor(data?: any[] | {
429
+ transactionType?: string;
430
+ count?: number;
431
+ volume?: number;
432
+ });
433
+ get transactionType(): string;
434
+ set transactionType(value: string);
435
+ get count(): number;
436
+ set count(value: number);
437
+ get volume(): number;
438
+ set volume(value: number);
439
+ static fromObject(data: {
440
+ transactionType?: string;
441
+ count?: number;
442
+ volume?: number;
443
+ }): TransactionTypeSummary;
444
+ toObject(): {
445
+ transactionType?: string | undefined;
446
+ count?: number | undefined;
447
+ volume?: number | undefined;
448
+ };
449
+ serialize(): Uint8Array;
450
+ serialize(w: pb_1.BinaryWriter): void;
451
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TransactionTypeSummary;
452
+ serializeBinary(): Uint8Array;
453
+ static deserializeBinary(bytes: Uint8Array): TransactionTypeSummary;
454
+ }
455
+ export class TransactionSummaryResponse extends pb_1.Message {
456
+ #private;
457
+ constructor(data?: any[] | {
458
+ success?: boolean;
459
+ byType?: TransactionTypeSummary[];
460
+ totalCount?: number;
461
+ totalVolume?: number;
462
+ });
463
+ get success(): boolean;
464
+ set success(value: boolean);
465
+ get byType(): TransactionTypeSummary[];
466
+ set byType(value: TransactionTypeSummary[]);
467
+ get totalCount(): number;
468
+ set totalCount(value: number);
469
+ get totalVolume(): number;
470
+ set totalVolume(value: number);
471
+ static fromObject(data: {
472
+ success?: boolean;
473
+ byType?: ReturnType<typeof TransactionTypeSummary.prototype.toObject>[];
474
+ totalCount?: number;
475
+ totalVolume?: number;
476
+ }): TransactionSummaryResponse;
477
+ toObject(): {
478
+ success?: boolean | undefined;
479
+ byType?: {
480
+ transactionType?: string | undefined;
481
+ count?: number | undefined;
482
+ volume?: number | undefined;
483
+ }[] | undefined;
484
+ totalCount?: number | undefined;
485
+ totalVolume?: number | undefined;
486
+ };
487
+ serialize(): Uint8Array;
488
+ serialize(w: pb_1.BinaryWriter): void;
489
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TransactionSummaryResponse;
490
+ serializeBinary(): Uint8Array;
491
+ static deserializeBinary(bytes: Uint8Array): TransactionSummaryResponse;
492
+ }
402
493
  export class TransactionDetailsRequest extends pb_1.Message {
403
494
  #private;
404
495
  constructor(data?: any[] | {
@@ -464,6 +555,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
464
555
  reversedAt?: string | undefined;
465
556
  paymentReference?: string | undefined;
466
557
  errorMessage?: string | undefined;
558
+ isSettled?: boolean | undefined;
559
+ settledAt?: string | undefined;
560
+ settlementBatchId?: string | undefined;
561
+ settledAmount?: number | undefined;
562
+ ownerType?: string | undefined;
563
+ ownerId?: string | undefined;
564
+ merchantId?: string | undefined;
467
565
  } | undefined;
468
566
  timeline?: {
469
567
  transactionId?: string | undefined;
@@ -491,6 +589,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
491
589
  reversedAt?: string | undefined;
492
590
  paymentReference?: string | undefined;
493
591
  errorMessage?: string | undefined;
592
+ isSettled?: boolean | undefined;
593
+ settledAt?: string | undefined;
594
+ settlementBatchId?: string | undefined;
595
+ settledAmount?: number | undefined;
596
+ ownerType?: string | undefined;
597
+ ownerId?: string | undefined;
598
+ merchantId?: string | undefined;
494
599
  } | undefined;
495
600
  events?: {
496
601
  id?: string | undefined;
@@ -602,6 +707,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
602
707
  reversedAt?: string | undefined;
603
708
  paymentReference?: string | undefined;
604
709
  errorMessage?: string | undefined;
710
+ isSettled?: boolean | undefined;
711
+ settledAt?: string | undefined;
712
+ settlementBatchId?: string | undefined;
713
+ settledAmount?: number | undefined;
714
+ ownerType?: string | undefined;
715
+ ownerId?: string | undefined;
716
+ merchantId?: string | undefined;
605
717
  } | undefined;
606
718
  errors?: {
607
719
  field?: string | undefined;
@@ -672,6 +784,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
672
784
  reversedAt?: string | undefined;
673
785
  paymentReference?: string | undefined;
674
786
  errorMessage?: string | undefined;
787
+ isSettled?: boolean | undefined;
788
+ settledAt?: string | undefined;
789
+ settlementBatchId?: string | undefined;
790
+ settledAmount?: number | undefined;
791
+ ownerType?: string | undefined;
792
+ ownerId?: string | undefined;
793
+ merchantId?: string | undefined;
675
794
  } | undefined;
676
795
  events?: {
677
796
  id?: string | undefined;
@@ -757,6 +876,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
757
876
  reversedAt?: string | undefined;
758
877
  paymentReference?: string | undefined;
759
878
  errorMessage?: string | undefined;
879
+ isSettled?: boolean | undefined;
880
+ settledAt?: string | undefined;
881
+ settlementBatchId?: string | undefined;
882
+ settledAmount?: number | undefined;
883
+ ownerType?: string | undefined;
884
+ ownerId?: string | undefined;
885
+ merchantId?: string | undefined;
760
886
  }[] | undefined;
761
887
  totalCount?: number | undefined;
762
888
  pageCount?: number | undefined;
@@ -801,6 +927,20 @@ export declare namespace com.pkg.posv1.terminalTransactions {
801
927
  paymentReference?: string;
802
928
  }) | ({
803
929
  errorMessage?: string;
930
+ }) | ({
931
+ isSettled?: boolean;
932
+ }) | ({
933
+ settledAt?: string;
934
+ }) | ({
935
+ settlementBatchId?: string;
936
+ }) | ({
937
+ settledAmount?: number;
938
+ }) | ({
939
+ ownerType?: string;
940
+ }) | ({
941
+ ownerId?: string;
942
+ }) | ({
943
+ merchantId?: string;
804
944
  }))));
805
945
  get id(): string;
806
946
  set id(value: string);
@@ -851,6 +991,27 @@ export declare namespace com.pkg.posv1.terminalTransactions {
851
991
  get errorMessage(): string;
852
992
  set errorMessage(value: string);
853
993
  get hasErrorMessage(): boolean;
994
+ get isSettled(): boolean;
995
+ set isSettled(value: boolean);
996
+ get hasIsSettled(): boolean;
997
+ get settledAt(): string;
998
+ set settledAt(value: string);
999
+ get hasSettledAt(): boolean;
1000
+ get settlementBatchId(): string;
1001
+ set settlementBatchId(value: string);
1002
+ get hasSettlementBatchId(): boolean;
1003
+ get settledAmount(): number;
1004
+ set settledAmount(value: number);
1005
+ get hasSettledAmount(): boolean;
1006
+ get ownerType(): string;
1007
+ set ownerType(value: string);
1008
+ get hasOwnerType(): boolean;
1009
+ get ownerId(): string;
1010
+ set ownerId(value: string);
1011
+ get hasOwnerId(): boolean;
1012
+ get merchantId(): string;
1013
+ set merchantId(value: string);
1014
+ get hasMerchantId(): boolean;
854
1015
  get _rrn(): "none" | "rrn";
855
1016
  get _stan(): "none" | "stan";
856
1017
  get _provider(): "provider" | "none";
@@ -858,6 +1019,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
858
1019
  get _reversed_at(): "none" | "reversedAt";
859
1020
  get _payment_reference(): "none" | "paymentReference";
860
1021
  get _error_message(): "none" | "errorMessage";
1022
+ get _is_settled(): "none" | "isSettled";
1023
+ get _settled_at(): "none" | "settledAt";
1024
+ get _settlement_batch_id(): "none" | "settlementBatchId";
1025
+ get _settled_amount(): "none" | "settledAmount";
1026
+ get _owner_type(): "none" | "ownerType";
1027
+ get _owner_id(): "none" | "ownerId";
1028
+ get _merchant_id(): "merchantId" | "none";
861
1029
  static fromObject(data: {
862
1030
  id?: string;
863
1031
  terminalId?: string;
@@ -882,6 +1050,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
882
1050
  reversedAt?: string;
883
1051
  paymentReference?: string;
884
1052
  errorMessage?: string;
1053
+ isSettled?: boolean;
1054
+ settledAt?: string;
1055
+ settlementBatchId?: string;
1056
+ settledAmount?: number;
1057
+ ownerType?: string;
1058
+ ownerId?: string;
1059
+ merchantId?: string;
885
1060
  }): TransactionSession;
886
1061
  toObject(): {
887
1062
  id?: string | undefined;
@@ -907,6 +1082,13 @@ export declare namespace com.pkg.posv1.terminalTransactions {
907
1082
  reversedAt?: string | undefined;
908
1083
  paymentReference?: string | undefined;
909
1084
  errorMessage?: string | undefined;
1085
+ isSettled?: boolean | undefined;
1086
+ settledAt?: string | undefined;
1087
+ settlementBatchId?: string | undefined;
1088
+ settledAmount?: number | undefined;
1089
+ ownerType?: string | undefined;
1090
+ ownerId?: string | undefined;
1091
+ merchantId?: string | undefined;
910
1092
  };
911
1093
  serialize(): Uint8Array;
912
1094
  serialize(w: pb_1.BinaryWriter): void;
@@ -1325,6 +1507,15 @@ export declare namespace com.pkg.posv1.terminalTransactions {
1325
1507
  responseSerialize: (message: TransactionDetailsResponse) => Buffer;
1326
1508
  responseDeserialize: (bytes: Buffer) => TransactionDetailsResponse;
1327
1509
  };
1510
+ GetTransactionSummary: {
1511
+ path: string;
1512
+ requestStream: boolean;
1513
+ responseStream: boolean;
1514
+ requestSerialize: (message: AllTransactionsFilter) => Buffer;
1515
+ requestDeserialize: (bytes: Buffer) => AllTransactionsFilter;
1516
+ responseSerialize: (message: TransactionSummaryResponse) => Buffer;
1517
+ responseDeserialize: (bytes: Buffer) => TransactionSummaryResponse;
1518
+ };
1328
1519
  };
1329
1520
  [method: string]: grpc_1.UntypedHandleCall;
1330
1521
  abstract InitializeTransaction(call: grpc_1.ServerUnaryCall<TransactionInitRequest, TransactionResult>, callback: grpc_1.sendUnaryData<TransactionResult>): void;
@@ -1334,6 +1525,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
1334
1525
  abstract GetTerminalTransactions(call: grpc_1.ServerUnaryCall<TerminalTransactionsFilter, TerminalTransactionsResponse>, callback: grpc_1.sendUnaryData<TerminalTransactionsResponse>): void;
1335
1526
  abstract GetAllTransactions(call: grpc_1.ServerUnaryCall<AllTransactionsFilter, TerminalTransactionsResponse>, callback: grpc_1.sendUnaryData<TerminalTransactionsResponse>): void;
1336
1527
  abstract GetTransactionDetails(call: grpc_1.ServerUnaryCall<TransactionDetailsRequest, TransactionDetailsResponse>, callback: grpc_1.sendUnaryData<TransactionDetailsResponse>): void;
1528
+ abstract GetTransactionSummary(call: grpc_1.ServerUnaryCall<AllTransactionsFilter, TransactionSummaryResponse>, callback: grpc_1.sendUnaryData<TransactionSummaryResponse>): void;
1337
1529
  }
1338
1530
  const TerminalTransactionServiceClient_base: grpc_1.ServiceClientConstructor;
1339
1531
  export class TerminalTransactionServiceClient extends TerminalTransactionServiceClient_base {
@@ -1345,6 +1537,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
1345
1537
  GetTerminalTransactions: GrpcPromiseServiceInterface<TerminalTransactionsFilter, TerminalTransactionsResponse>;
1346
1538
  GetAllTransactions: GrpcPromiseServiceInterface<AllTransactionsFilter, TerminalTransactionsResponse>;
1347
1539
  GetTransactionDetails: GrpcPromiseServiceInterface<TransactionDetailsRequest, TransactionDetailsResponse>;
1540
+ GetTransactionSummary: GrpcPromiseServiceInterface<AllTransactionsFilter, TransactionSummaryResponse>;
1348
1541
  }
1349
1542
  export {};
1350
1543
  }