@technova-tech/olive-proto-lib 2.5.2 → 2.5.4
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/pos.v1/terminal-transactions.js +457 -2
- package/types/pos.v1/terminal-transactions.d.ts +154 -0
- package/types/users/users.d.ts +35 -0
- package/users/users.js +105 -0
package/package.json
CHANGED
|
@@ -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]];
|
|
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,18 @@ 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
|
+
}
|
|
2025
2347
|
}
|
|
2026
2348
|
if (!this.metadata)
|
|
2027
2349
|
this.metadata = new Map();
|
|
@@ -2173,6 +2495,42 @@ var com;
|
|
|
2173
2495
|
get hasErrorMessage() {
|
|
2174
2496
|
return pb_1.Message.getField(this, 21) != null;
|
|
2175
2497
|
}
|
|
2498
|
+
get isSettled() {
|
|
2499
|
+
return pb_1.Message.getFieldWithDefault(this, 22, false);
|
|
2500
|
+
}
|
|
2501
|
+
set isSettled(value) {
|
|
2502
|
+
pb_1.Message.setOneofField(this, 22, this.#one_of_decls[7], value);
|
|
2503
|
+
}
|
|
2504
|
+
get hasIsSettled() {
|
|
2505
|
+
return pb_1.Message.getField(this, 22) != null;
|
|
2506
|
+
}
|
|
2507
|
+
get settledAt() {
|
|
2508
|
+
return pb_1.Message.getFieldWithDefault(this, 23, "");
|
|
2509
|
+
}
|
|
2510
|
+
set settledAt(value) {
|
|
2511
|
+
pb_1.Message.setOneofField(this, 23, this.#one_of_decls[8], value);
|
|
2512
|
+
}
|
|
2513
|
+
get hasSettledAt() {
|
|
2514
|
+
return pb_1.Message.getField(this, 23) != null;
|
|
2515
|
+
}
|
|
2516
|
+
get settlementBatchId() {
|
|
2517
|
+
return pb_1.Message.getFieldWithDefault(this, 24, "");
|
|
2518
|
+
}
|
|
2519
|
+
set settlementBatchId(value) {
|
|
2520
|
+
pb_1.Message.setOneofField(this, 24, this.#one_of_decls[9], value);
|
|
2521
|
+
}
|
|
2522
|
+
get hasSettlementBatchId() {
|
|
2523
|
+
return pb_1.Message.getField(this, 24) != null;
|
|
2524
|
+
}
|
|
2525
|
+
get settledAmount() {
|
|
2526
|
+
return pb_1.Message.getFieldWithDefault(this, 25, 0);
|
|
2527
|
+
}
|
|
2528
|
+
set settledAmount(value) {
|
|
2529
|
+
pb_1.Message.setOneofField(this, 25, this.#one_of_decls[10], value);
|
|
2530
|
+
}
|
|
2531
|
+
get hasSettledAmount() {
|
|
2532
|
+
return pb_1.Message.getField(this, 25) != null;
|
|
2533
|
+
}
|
|
2176
2534
|
get _rrn() {
|
|
2177
2535
|
const cases = {
|
|
2178
2536
|
0: "none",
|
|
@@ -2222,6 +2580,34 @@ var com;
|
|
|
2222
2580
|
};
|
|
2223
2581
|
return cases[pb_1.Message.computeOneofCase(this, [21])];
|
|
2224
2582
|
}
|
|
2583
|
+
get _is_settled() {
|
|
2584
|
+
const cases = {
|
|
2585
|
+
0: "none",
|
|
2586
|
+
22: "isSettled"
|
|
2587
|
+
};
|
|
2588
|
+
return cases[pb_1.Message.computeOneofCase(this, [22])];
|
|
2589
|
+
}
|
|
2590
|
+
get _settled_at() {
|
|
2591
|
+
const cases = {
|
|
2592
|
+
0: "none",
|
|
2593
|
+
23: "settledAt"
|
|
2594
|
+
};
|
|
2595
|
+
return cases[pb_1.Message.computeOneofCase(this, [23])];
|
|
2596
|
+
}
|
|
2597
|
+
get _settlement_batch_id() {
|
|
2598
|
+
const cases = {
|
|
2599
|
+
0: "none",
|
|
2600
|
+
24: "settlementBatchId"
|
|
2601
|
+
};
|
|
2602
|
+
return cases[pb_1.Message.computeOneofCase(this, [24])];
|
|
2603
|
+
}
|
|
2604
|
+
get _settled_amount() {
|
|
2605
|
+
const cases = {
|
|
2606
|
+
0: "none",
|
|
2607
|
+
25: "settledAmount"
|
|
2608
|
+
};
|
|
2609
|
+
return cases[pb_1.Message.computeOneofCase(this, [25])];
|
|
2610
|
+
}
|
|
2225
2611
|
static fromObject(data) {
|
|
2226
2612
|
const message = new TransactionSession({});
|
|
2227
2613
|
if (data.id != null) {
|
|
@@ -2287,6 +2673,18 @@ var com;
|
|
|
2287
2673
|
if (data.errorMessage != null) {
|
|
2288
2674
|
message.errorMessage = data.errorMessage;
|
|
2289
2675
|
}
|
|
2676
|
+
if (data.isSettled != null) {
|
|
2677
|
+
message.isSettled = data.isSettled;
|
|
2678
|
+
}
|
|
2679
|
+
if (data.settledAt != null) {
|
|
2680
|
+
message.settledAt = data.settledAt;
|
|
2681
|
+
}
|
|
2682
|
+
if (data.settlementBatchId != null) {
|
|
2683
|
+
message.settlementBatchId = data.settlementBatchId;
|
|
2684
|
+
}
|
|
2685
|
+
if (data.settledAmount != null) {
|
|
2686
|
+
message.settledAmount = data.settledAmount;
|
|
2687
|
+
}
|
|
2290
2688
|
return message;
|
|
2291
2689
|
}
|
|
2292
2690
|
toObject() {
|
|
@@ -2354,6 +2752,18 @@ var com;
|
|
|
2354
2752
|
if (this.errorMessage != null) {
|
|
2355
2753
|
data.errorMessage = this.errorMessage;
|
|
2356
2754
|
}
|
|
2755
|
+
if (this.isSettled != null) {
|
|
2756
|
+
data.isSettled = this.isSettled;
|
|
2757
|
+
}
|
|
2758
|
+
if (this.settledAt != null) {
|
|
2759
|
+
data.settledAt = this.settledAt;
|
|
2760
|
+
}
|
|
2761
|
+
if (this.settlementBatchId != null) {
|
|
2762
|
+
data.settlementBatchId = this.settlementBatchId;
|
|
2763
|
+
}
|
|
2764
|
+
if (this.settledAmount != null) {
|
|
2765
|
+
data.settledAmount = this.settledAmount;
|
|
2766
|
+
}
|
|
2357
2767
|
return data;
|
|
2358
2768
|
}
|
|
2359
2769
|
serialize(w) {
|
|
@@ -2404,6 +2814,14 @@ var com;
|
|
|
2404
2814
|
writer.writeString(20, this.paymentReference);
|
|
2405
2815
|
if (this.hasErrorMessage)
|
|
2406
2816
|
writer.writeString(21, this.errorMessage);
|
|
2817
|
+
if (this.hasIsSettled)
|
|
2818
|
+
writer.writeBool(22, this.isSettled);
|
|
2819
|
+
if (this.hasSettledAt)
|
|
2820
|
+
writer.writeString(23, this.settledAt);
|
|
2821
|
+
if (this.hasSettlementBatchId)
|
|
2822
|
+
writer.writeString(24, this.settlementBatchId);
|
|
2823
|
+
if (this.hasSettledAmount)
|
|
2824
|
+
writer.writeDouble(25, this.settledAmount);
|
|
2407
2825
|
if (!w)
|
|
2408
2826
|
return writer.getResultBuffer();
|
|
2409
2827
|
}
|
|
@@ -2476,6 +2894,18 @@ var com;
|
|
|
2476
2894
|
case 21:
|
|
2477
2895
|
message.errorMessage = reader.readString();
|
|
2478
2896
|
break;
|
|
2897
|
+
case 22:
|
|
2898
|
+
message.isSettled = reader.readBool();
|
|
2899
|
+
break;
|
|
2900
|
+
case 23:
|
|
2901
|
+
message.settledAt = reader.readString();
|
|
2902
|
+
break;
|
|
2903
|
+
case 24:
|
|
2904
|
+
message.settlementBatchId = reader.readString();
|
|
2905
|
+
break;
|
|
2906
|
+
case 25:
|
|
2907
|
+
message.settledAmount = reader.readDouble();
|
|
2908
|
+
break;
|
|
2479
2909
|
default: reader.skipField();
|
|
2480
2910
|
}
|
|
2481
2911
|
}
|
|
@@ -3694,6 +4124,15 @@ var com;
|
|
|
3694
4124
|
requestDeserialize: (bytes) => TransactionDetailsRequest.deserialize(new Uint8Array(bytes)),
|
|
3695
4125
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3696
4126
|
responseDeserialize: (bytes) => TransactionDetailsResponse.deserialize(new Uint8Array(bytes))
|
|
4127
|
+
},
|
|
4128
|
+
GetTransactionSummary: {
|
|
4129
|
+
path: "/com.pkg.posv1.terminalTransactions.TerminalTransactionService/GetTransactionSummary",
|
|
4130
|
+
requestStream: false,
|
|
4131
|
+
responseStream: false,
|
|
4132
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
4133
|
+
requestDeserialize: (bytes) => AllTransactionsFilter.deserialize(new Uint8Array(bytes)),
|
|
4134
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
4135
|
+
responseDeserialize: (bytes) => TransactionSummaryResponse.deserialize(new Uint8Array(bytes))
|
|
3697
4136
|
}
|
|
3698
4137
|
};
|
|
3699
4138
|
}
|
|
@@ -3814,6 +4253,22 @@ var com;
|
|
|
3814
4253
|
}
|
|
3815
4254
|
}));
|
|
3816
4255
|
};
|
|
4256
|
+
GetTransactionSummary = (message, metadata, options) => {
|
|
4257
|
+
if (!metadata) {
|
|
4258
|
+
metadata = new grpc_1.Metadata;
|
|
4259
|
+
}
|
|
4260
|
+
if (!options) {
|
|
4261
|
+
options = {};
|
|
4262
|
+
}
|
|
4263
|
+
return new Promise((resolve, reject) => super.GetTransactionSummary(message, metadata, options, (error, response) => {
|
|
4264
|
+
if (error) {
|
|
4265
|
+
reject(error);
|
|
4266
|
+
}
|
|
4267
|
+
else {
|
|
4268
|
+
resolve(response);
|
|
4269
|
+
}
|
|
4270
|
+
}));
|
|
4271
|
+
};
|
|
3817
4272
|
}
|
|
3818
4273
|
terminalTransactions.TerminalTransactionServiceClient = TerminalTransactionServiceClient;
|
|
3819
4274
|
})(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,10 @@ 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;
|
|
467
562
|
} | undefined;
|
|
468
563
|
timeline?: {
|
|
469
564
|
transactionId?: string | undefined;
|
|
@@ -491,6 +586,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
491
586
|
reversedAt?: string | undefined;
|
|
492
587
|
paymentReference?: string | undefined;
|
|
493
588
|
errorMessage?: string | undefined;
|
|
589
|
+
isSettled?: boolean | undefined;
|
|
590
|
+
settledAt?: string | undefined;
|
|
591
|
+
settlementBatchId?: string | undefined;
|
|
592
|
+
settledAmount?: number | undefined;
|
|
494
593
|
} | undefined;
|
|
495
594
|
events?: {
|
|
496
595
|
id?: string | undefined;
|
|
@@ -602,6 +701,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
602
701
|
reversedAt?: string | undefined;
|
|
603
702
|
paymentReference?: string | undefined;
|
|
604
703
|
errorMessage?: string | undefined;
|
|
704
|
+
isSettled?: boolean | undefined;
|
|
705
|
+
settledAt?: string | undefined;
|
|
706
|
+
settlementBatchId?: string | undefined;
|
|
707
|
+
settledAmount?: number | undefined;
|
|
605
708
|
} | undefined;
|
|
606
709
|
errors?: {
|
|
607
710
|
field?: string | undefined;
|
|
@@ -672,6 +775,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
672
775
|
reversedAt?: string | undefined;
|
|
673
776
|
paymentReference?: string | undefined;
|
|
674
777
|
errorMessage?: string | undefined;
|
|
778
|
+
isSettled?: boolean | undefined;
|
|
779
|
+
settledAt?: string | undefined;
|
|
780
|
+
settlementBatchId?: string | undefined;
|
|
781
|
+
settledAmount?: number | undefined;
|
|
675
782
|
} | undefined;
|
|
676
783
|
events?: {
|
|
677
784
|
id?: string | undefined;
|
|
@@ -757,6 +864,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
757
864
|
reversedAt?: string | undefined;
|
|
758
865
|
paymentReference?: string | undefined;
|
|
759
866
|
errorMessage?: string | undefined;
|
|
867
|
+
isSettled?: boolean | undefined;
|
|
868
|
+
settledAt?: string | undefined;
|
|
869
|
+
settlementBatchId?: string | undefined;
|
|
870
|
+
settledAmount?: number | undefined;
|
|
760
871
|
}[] | undefined;
|
|
761
872
|
totalCount?: number | undefined;
|
|
762
873
|
pageCount?: number | undefined;
|
|
@@ -801,6 +912,14 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
801
912
|
paymentReference?: string;
|
|
802
913
|
}) | ({
|
|
803
914
|
errorMessage?: string;
|
|
915
|
+
}) | ({
|
|
916
|
+
isSettled?: boolean;
|
|
917
|
+
}) | ({
|
|
918
|
+
settledAt?: string;
|
|
919
|
+
}) | ({
|
|
920
|
+
settlementBatchId?: string;
|
|
921
|
+
}) | ({
|
|
922
|
+
settledAmount?: number;
|
|
804
923
|
}))));
|
|
805
924
|
get id(): string;
|
|
806
925
|
set id(value: string);
|
|
@@ -851,6 +970,18 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
851
970
|
get errorMessage(): string;
|
|
852
971
|
set errorMessage(value: string);
|
|
853
972
|
get hasErrorMessage(): boolean;
|
|
973
|
+
get isSettled(): boolean;
|
|
974
|
+
set isSettled(value: boolean);
|
|
975
|
+
get hasIsSettled(): boolean;
|
|
976
|
+
get settledAt(): string;
|
|
977
|
+
set settledAt(value: string);
|
|
978
|
+
get hasSettledAt(): boolean;
|
|
979
|
+
get settlementBatchId(): string;
|
|
980
|
+
set settlementBatchId(value: string);
|
|
981
|
+
get hasSettlementBatchId(): boolean;
|
|
982
|
+
get settledAmount(): number;
|
|
983
|
+
set settledAmount(value: number);
|
|
984
|
+
get hasSettledAmount(): boolean;
|
|
854
985
|
get _rrn(): "none" | "rrn";
|
|
855
986
|
get _stan(): "none" | "stan";
|
|
856
987
|
get _provider(): "provider" | "none";
|
|
@@ -858,6 +989,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
858
989
|
get _reversed_at(): "none" | "reversedAt";
|
|
859
990
|
get _payment_reference(): "none" | "paymentReference";
|
|
860
991
|
get _error_message(): "none" | "errorMessage";
|
|
992
|
+
get _is_settled(): "none" | "isSettled";
|
|
993
|
+
get _settled_at(): "none" | "settledAt";
|
|
994
|
+
get _settlement_batch_id(): "none" | "settlementBatchId";
|
|
995
|
+
get _settled_amount(): "none" | "settledAmount";
|
|
861
996
|
static fromObject(data: {
|
|
862
997
|
id?: string;
|
|
863
998
|
terminalId?: string;
|
|
@@ -882,6 +1017,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
882
1017
|
reversedAt?: string;
|
|
883
1018
|
paymentReference?: string;
|
|
884
1019
|
errorMessage?: string;
|
|
1020
|
+
isSettled?: boolean;
|
|
1021
|
+
settledAt?: string;
|
|
1022
|
+
settlementBatchId?: string;
|
|
1023
|
+
settledAmount?: number;
|
|
885
1024
|
}): TransactionSession;
|
|
886
1025
|
toObject(): {
|
|
887
1026
|
id?: string | undefined;
|
|
@@ -907,6 +1046,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
907
1046
|
reversedAt?: string | undefined;
|
|
908
1047
|
paymentReference?: string | undefined;
|
|
909
1048
|
errorMessage?: string | undefined;
|
|
1049
|
+
isSettled?: boolean | undefined;
|
|
1050
|
+
settledAt?: string | undefined;
|
|
1051
|
+
settlementBatchId?: string | undefined;
|
|
1052
|
+
settledAmount?: number | undefined;
|
|
910
1053
|
};
|
|
911
1054
|
serialize(): Uint8Array;
|
|
912
1055
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -1325,6 +1468,15 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
1325
1468
|
responseSerialize: (message: TransactionDetailsResponse) => Buffer;
|
|
1326
1469
|
responseDeserialize: (bytes: Buffer) => TransactionDetailsResponse;
|
|
1327
1470
|
};
|
|
1471
|
+
GetTransactionSummary: {
|
|
1472
|
+
path: string;
|
|
1473
|
+
requestStream: boolean;
|
|
1474
|
+
responseStream: boolean;
|
|
1475
|
+
requestSerialize: (message: AllTransactionsFilter) => Buffer;
|
|
1476
|
+
requestDeserialize: (bytes: Buffer) => AllTransactionsFilter;
|
|
1477
|
+
responseSerialize: (message: TransactionSummaryResponse) => Buffer;
|
|
1478
|
+
responseDeserialize: (bytes: Buffer) => TransactionSummaryResponse;
|
|
1479
|
+
};
|
|
1328
1480
|
};
|
|
1329
1481
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
1330
1482
|
abstract InitializeTransaction(call: grpc_1.ServerUnaryCall<TransactionInitRequest, TransactionResult>, callback: grpc_1.sendUnaryData<TransactionResult>): void;
|
|
@@ -1334,6 +1486,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
1334
1486
|
abstract GetTerminalTransactions(call: grpc_1.ServerUnaryCall<TerminalTransactionsFilter, TerminalTransactionsResponse>, callback: grpc_1.sendUnaryData<TerminalTransactionsResponse>): void;
|
|
1335
1487
|
abstract GetAllTransactions(call: grpc_1.ServerUnaryCall<AllTransactionsFilter, TerminalTransactionsResponse>, callback: grpc_1.sendUnaryData<TerminalTransactionsResponse>): void;
|
|
1336
1488
|
abstract GetTransactionDetails(call: grpc_1.ServerUnaryCall<TransactionDetailsRequest, TransactionDetailsResponse>, callback: grpc_1.sendUnaryData<TransactionDetailsResponse>): void;
|
|
1489
|
+
abstract GetTransactionSummary(call: grpc_1.ServerUnaryCall<AllTransactionsFilter, TransactionSummaryResponse>, callback: grpc_1.sendUnaryData<TransactionSummaryResponse>): void;
|
|
1337
1490
|
}
|
|
1338
1491
|
const TerminalTransactionServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
1339
1492
|
export class TerminalTransactionServiceClient extends TerminalTransactionServiceClient_base {
|
|
@@ -1345,6 +1498,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
1345
1498
|
GetTerminalTransactions: GrpcPromiseServiceInterface<TerminalTransactionsFilter, TerminalTransactionsResponse>;
|
|
1346
1499
|
GetAllTransactions: GrpcPromiseServiceInterface<AllTransactionsFilter, TerminalTransactionsResponse>;
|
|
1347
1500
|
GetTransactionDetails: GrpcPromiseServiceInterface<TransactionDetailsRequest, TransactionDetailsResponse>;
|
|
1501
|
+
GetTransactionSummary: GrpcPromiseServiceInterface<AllTransactionsFilter, TransactionSummaryResponse>;
|
|
1348
1502
|
}
|
|
1349
1503
|
export {};
|
|
1350
1504
|
}
|
package/types/users/users.d.ts
CHANGED
|
@@ -2024,6 +2024,30 @@ export declare namespace com.pkg.user {
|
|
|
2024
2024
|
serializeBinary(): Uint8Array;
|
|
2025
2025
|
static deserializeBinary(bytes: Uint8Array): UpdateDeviceInfoRequest;
|
|
2026
2026
|
}
|
|
2027
|
+
export class GetDeviceSessionRequest extends pb_1.Message {
|
|
2028
|
+
#private;
|
|
2029
|
+
constructor(data?: any[] | {
|
|
2030
|
+
user?: string;
|
|
2031
|
+
id?: string;
|
|
2032
|
+
});
|
|
2033
|
+
get user(): string;
|
|
2034
|
+
set user(value: string);
|
|
2035
|
+
get id(): string;
|
|
2036
|
+
set id(value: string);
|
|
2037
|
+
static fromObject(data: {
|
|
2038
|
+
user?: string;
|
|
2039
|
+
id?: string;
|
|
2040
|
+
}): GetDeviceSessionRequest;
|
|
2041
|
+
toObject(): {
|
|
2042
|
+
user?: string | undefined;
|
|
2043
|
+
id?: string | undefined;
|
|
2044
|
+
};
|
|
2045
|
+
serialize(): Uint8Array;
|
|
2046
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
2047
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetDeviceSessionRequest;
|
|
2048
|
+
serializeBinary(): Uint8Array;
|
|
2049
|
+
static deserializeBinary(bytes: Uint8Array): GetDeviceSessionRequest;
|
|
2050
|
+
}
|
|
2027
2051
|
export class ChangeTransactionPinRequest extends pb_1.Message {
|
|
2028
2052
|
#private;
|
|
2029
2053
|
constructor(data?: any[] | {
|
|
@@ -4195,6 +4219,15 @@ export declare namespace com.pkg.user {
|
|
|
4195
4219
|
responseSerialize: (message: MultiDeviceSessionResponse) => Buffer;
|
|
4196
4220
|
responseDeserialize: (bytes: Buffer) => MultiDeviceSessionResponse;
|
|
4197
4221
|
};
|
|
4222
|
+
GetDeviceSession: {
|
|
4223
|
+
path: string;
|
|
4224
|
+
requestStream: boolean;
|
|
4225
|
+
responseStream: boolean;
|
|
4226
|
+
requestSerialize: (message: GetDeviceSessionRequest) => Buffer;
|
|
4227
|
+
requestDeserialize: (bytes: Buffer) => GetDeviceSessionRequest;
|
|
4228
|
+
responseSerialize: (message: DeviceSessionResponse) => Buffer;
|
|
4229
|
+
responseDeserialize: (bytes: Buffer) => DeviceSessionResponse;
|
|
4230
|
+
};
|
|
4198
4231
|
RequestPasswordChange: {
|
|
4199
4232
|
path: string;
|
|
4200
4233
|
requestStream: boolean;
|
|
@@ -4413,6 +4446,7 @@ export declare namespace com.pkg.user {
|
|
|
4413
4446
|
abstract SetUserEmailAddress(call: grpc_1.ServerUnaryCall<SetUserEmailAddressRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4414
4447
|
abstract UpdateDeviceInfo(call: grpc_1.ServerUnaryCall<UpdateDeviceInfoRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4415
4448
|
abstract GetUserDeviceSessions(call: grpc_1.ServerUnaryCall<PaginatedIdRequest, MultiDeviceSessionResponse>, callback: grpc_1.sendUnaryData<MultiDeviceSessionResponse>): void;
|
|
4449
|
+
abstract GetDeviceSession(call: grpc_1.ServerUnaryCall<GetDeviceSessionRequest, DeviceSessionResponse>, callback: grpc_1.sendUnaryData<DeviceSessionResponse>): void;
|
|
4416
4450
|
abstract RequestPasswordChange(call: grpc_1.ServerUnaryCall<RequestPasswordChangeRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4417
4451
|
abstract ChangePassword(call: grpc_1.ServerUnaryCall<ChangePasswordRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
4418
4452
|
abstract SetNotificationPreference(call: grpc_1.ServerUnaryCall<NotificationPreferenceRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
@@ -4465,6 +4499,7 @@ export declare namespace com.pkg.user {
|
|
|
4465
4499
|
SetUserEmailAddress: GrpcPromiseServiceInterface<SetUserEmailAddressRequest, DefaultResponse>;
|
|
4466
4500
|
UpdateDeviceInfo: GrpcPromiseServiceInterface<UpdateDeviceInfoRequest, DefaultResponse>;
|
|
4467
4501
|
GetUserDeviceSessions: GrpcPromiseServiceInterface<PaginatedIdRequest, MultiDeviceSessionResponse>;
|
|
4502
|
+
GetDeviceSession: GrpcPromiseServiceInterface<GetDeviceSessionRequest, DeviceSessionResponse>;
|
|
4468
4503
|
RequestPasswordChange: GrpcPromiseServiceInterface<RequestPasswordChangeRequest, DefaultResponse>;
|
|
4469
4504
|
ChangePassword: GrpcPromiseServiceInterface<ChangePasswordRequest, DefaultResponse>;
|
|
4470
4505
|
SetNotificationPreference: GrpcPromiseServiceInterface<NotificationPreferenceRequest, DefaultResponse>;
|
package/users/users.js
CHANGED
|
@@ -6025,6 +6025,86 @@ var com;
|
|
|
6025
6025
|
}
|
|
6026
6026
|
}
|
|
6027
6027
|
user.UpdateDeviceInfoRequest = UpdateDeviceInfoRequest;
|
|
6028
|
+
class GetDeviceSessionRequest extends pb_1.Message {
|
|
6029
|
+
#one_of_decls = [];
|
|
6030
|
+
constructor(data) {
|
|
6031
|
+
super();
|
|
6032
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
6033
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
6034
|
+
if ("user" in data && data.user != undefined) {
|
|
6035
|
+
this.user = data.user;
|
|
6036
|
+
}
|
|
6037
|
+
if ("id" in data && data.id != undefined) {
|
|
6038
|
+
this.id = data.id;
|
|
6039
|
+
}
|
|
6040
|
+
}
|
|
6041
|
+
}
|
|
6042
|
+
get user() {
|
|
6043
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
6044
|
+
}
|
|
6045
|
+
set user(value) {
|
|
6046
|
+
pb_1.Message.setField(this, 1, value);
|
|
6047
|
+
}
|
|
6048
|
+
get id() {
|
|
6049
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
6050
|
+
}
|
|
6051
|
+
set id(value) {
|
|
6052
|
+
pb_1.Message.setField(this, 2, value);
|
|
6053
|
+
}
|
|
6054
|
+
static fromObject(data) {
|
|
6055
|
+
const message = new GetDeviceSessionRequest({});
|
|
6056
|
+
if (data.user != null) {
|
|
6057
|
+
message.user = data.user;
|
|
6058
|
+
}
|
|
6059
|
+
if (data.id != null) {
|
|
6060
|
+
message.id = data.id;
|
|
6061
|
+
}
|
|
6062
|
+
return message;
|
|
6063
|
+
}
|
|
6064
|
+
toObject() {
|
|
6065
|
+
const data = {};
|
|
6066
|
+
if (this.user != null) {
|
|
6067
|
+
data.user = this.user;
|
|
6068
|
+
}
|
|
6069
|
+
if (this.id != null) {
|
|
6070
|
+
data.id = this.id;
|
|
6071
|
+
}
|
|
6072
|
+
return data;
|
|
6073
|
+
}
|
|
6074
|
+
serialize(w) {
|
|
6075
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
6076
|
+
if (this.user.length)
|
|
6077
|
+
writer.writeString(1, this.user);
|
|
6078
|
+
if (this.id.length)
|
|
6079
|
+
writer.writeString(2, this.id);
|
|
6080
|
+
if (!w)
|
|
6081
|
+
return writer.getResultBuffer();
|
|
6082
|
+
}
|
|
6083
|
+
static deserialize(bytes) {
|
|
6084
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetDeviceSessionRequest();
|
|
6085
|
+
while (reader.nextField()) {
|
|
6086
|
+
if (reader.isEndGroup())
|
|
6087
|
+
break;
|
|
6088
|
+
switch (reader.getFieldNumber()) {
|
|
6089
|
+
case 1:
|
|
6090
|
+
message.user = reader.readString();
|
|
6091
|
+
break;
|
|
6092
|
+
case 2:
|
|
6093
|
+
message.id = reader.readString();
|
|
6094
|
+
break;
|
|
6095
|
+
default: reader.skipField();
|
|
6096
|
+
}
|
|
6097
|
+
}
|
|
6098
|
+
return message;
|
|
6099
|
+
}
|
|
6100
|
+
serializeBinary() {
|
|
6101
|
+
return this.serialize();
|
|
6102
|
+
}
|
|
6103
|
+
static deserializeBinary(bytes) {
|
|
6104
|
+
return GetDeviceSessionRequest.deserialize(bytes);
|
|
6105
|
+
}
|
|
6106
|
+
}
|
|
6107
|
+
user.GetDeviceSessionRequest = GetDeviceSessionRequest;
|
|
6028
6108
|
class ChangeTransactionPinRequest extends pb_1.Message {
|
|
6029
6109
|
#one_of_decls = [];
|
|
6030
6110
|
constructor(data) {
|
|
@@ -12227,6 +12307,15 @@ var com;
|
|
|
12227
12307
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12228
12308
|
responseDeserialize: (bytes) => MultiDeviceSessionResponse.deserialize(new Uint8Array(bytes))
|
|
12229
12309
|
},
|
|
12310
|
+
GetDeviceSession: {
|
|
12311
|
+
path: "/com.pkg.user.UserService/GetDeviceSession",
|
|
12312
|
+
requestStream: false,
|
|
12313
|
+
responseStream: false,
|
|
12314
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12315
|
+
requestDeserialize: (bytes) => GetDeviceSessionRequest.deserialize(new Uint8Array(bytes)),
|
|
12316
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12317
|
+
responseDeserialize: (bytes) => DeviceSessionResponse.deserialize(new Uint8Array(bytes))
|
|
12318
|
+
},
|
|
12230
12319
|
RequestPasswordChange: {
|
|
12231
12320
|
path: "/com.pkg.user.UserService/RequestPasswordChange",
|
|
12232
12321
|
requestStream: false,
|
|
@@ -12855,6 +12944,22 @@ var com;
|
|
|
12855
12944
|
}
|
|
12856
12945
|
}));
|
|
12857
12946
|
};
|
|
12947
|
+
GetDeviceSession = (message, metadata, options) => {
|
|
12948
|
+
if (!metadata) {
|
|
12949
|
+
metadata = new grpc_1.Metadata;
|
|
12950
|
+
}
|
|
12951
|
+
if (!options) {
|
|
12952
|
+
options = {};
|
|
12953
|
+
}
|
|
12954
|
+
return new Promise((resolve, reject) => super.GetDeviceSession(message, metadata, options, (error, response) => {
|
|
12955
|
+
if (error) {
|
|
12956
|
+
reject(error);
|
|
12957
|
+
}
|
|
12958
|
+
else {
|
|
12959
|
+
resolve(response);
|
|
12960
|
+
}
|
|
12961
|
+
}));
|
|
12962
|
+
};
|
|
12858
12963
|
RequestPasswordChange = (message, metadata, options) => {
|
|
12859
12964
|
if (!metadata) {
|
|
12860
12965
|
metadata = new grpc_1.Metadata;
|