@technova-tech/olive-proto-lib 1.7.1 → 1.7.2
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/accounts/accounts.js +20 -0
- package/business/business.js +168 -5
- package/package.json +1 -1
- package/pos.v1/terminals.js +308 -0
- package/types/accounts/accounts.d.ts +5 -0
- package/types/business/business.d.ts +51 -0
- package/types/index.d.ts +36 -18
- package/types/pos.v1/terminals.d.ts +104 -0
package/accounts/accounts.js
CHANGED
|
@@ -2950,6 +2950,9 @@ var com;
|
|
|
2950
2950
|
if ("phoneNumber" in data && data.phoneNumber != undefined) {
|
|
2951
2951
|
this.phoneNumber = data.phoneNumber;
|
|
2952
2952
|
}
|
|
2953
|
+
if ("terminal" in data && data.terminal != undefined) {
|
|
2954
|
+
this.terminal = data.terminal;
|
|
2955
|
+
}
|
|
2953
2956
|
}
|
|
2954
2957
|
}
|
|
2955
2958
|
get user() {
|
|
@@ -3012,6 +3015,12 @@ var com;
|
|
|
3012
3015
|
set phoneNumber(value) {
|
|
3013
3016
|
pb_1.Message.setField(this, 10, value);
|
|
3014
3017
|
}
|
|
3018
|
+
get terminal() {
|
|
3019
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
3020
|
+
}
|
|
3021
|
+
set terminal(value) {
|
|
3022
|
+
pb_1.Message.setField(this, 11, value);
|
|
3023
|
+
}
|
|
3015
3024
|
static fromObject(data) {
|
|
3016
3025
|
const message = new AssignOrCreateTerminalVirtualAccountRequest({});
|
|
3017
3026
|
if (data.user != null) {
|
|
@@ -3044,6 +3053,9 @@ var com;
|
|
|
3044
3053
|
if (data.phoneNumber != null) {
|
|
3045
3054
|
message.phoneNumber = data.phoneNumber;
|
|
3046
3055
|
}
|
|
3056
|
+
if (data.terminal != null) {
|
|
3057
|
+
message.terminal = data.terminal;
|
|
3058
|
+
}
|
|
3047
3059
|
return message;
|
|
3048
3060
|
}
|
|
3049
3061
|
toObject() {
|
|
@@ -3078,6 +3090,9 @@ var com;
|
|
|
3078
3090
|
if (this.phoneNumber != null) {
|
|
3079
3091
|
data.phoneNumber = this.phoneNumber;
|
|
3080
3092
|
}
|
|
3093
|
+
if (this.terminal != null) {
|
|
3094
|
+
data.terminal = this.terminal;
|
|
3095
|
+
}
|
|
3081
3096
|
return data;
|
|
3082
3097
|
}
|
|
3083
3098
|
serialize(w) {
|
|
@@ -3102,6 +3117,8 @@ var com;
|
|
|
3102
3117
|
writer.writeString(9, this.nin);
|
|
3103
3118
|
if (this.phoneNumber.length)
|
|
3104
3119
|
writer.writeString(10, this.phoneNumber);
|
|
3120
|
+
if (this.terminal.length)
|
|
3121
|
+
writer.writeString(11, this.terminal);
|
|
3105
3122
|
if (!w)
|
|
3106
3123
|
return writer.getResultBuffer();
|
|
3107
3124
|
}
|
|
@@ -3141,6 +3158,9 @@ var com;
|
|
|
3141
3158
|
case 10:
|
|
3142
3159
|
message.phoneNumber = reader.readString();
|
|
3143
3160
|
break;
|
|
3161
|
+
case 11:
|
|
3162
|
+
message.terminal = reader.readString();
|
|
3163
|
+
break;
|
|
3144
3164
|
default: reader.skipField();
|
|
3145
3165
|
}
|
|
3146
3166
|
}
|
package/business/business.js
CHANGED
|
@@ -231,6 +231,146 @@ var com;
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
business.PaginatedRequest = PaginatedRequest;
|
|
234
|
+
class Pagination extends pb_1.Message {
|
|
235
|
+
#one_of_decls = [];
|
|
236
|
+
constructor(data) {
|
|
237
|
+
super();
|
|
238
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
239
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
240
|
+
if ("page" in data && data.page != undefined) {
|
|
241
|
+
this.page = data.page;
|
|
242
|
+
}
|
|
243
|
+
if ("limit" in data && data.limit != undefined) {
|
|
244
|
+
this.limit = data.limit;
|
|
245
|
+
}
|
|
246
|
+
if ("total" in data && data.total != undefined) {
|
|
247
|
+
this.total = data.total;
|
|
248
|
+
}
|
|
249
|
+
if ("hasNext" in data && data.hasNext != undefined) {
|
|
250
|
+
this.hasNext = data.hasNext;
|
|
251
|
+
}
|
|
252
|
+
if ("hasPrev" in data && data.hasPrev != undefined) {
|
|
253
|
+
this.hasPrev = data.hasPrev;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
get page() {
|
|
258
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
259
|
+
}
|
|
260
|
+
set page(value) {
|
|
261
|
+
pb_1.Message.setField(this, 1, value);
|
|
262
|
+
}
|
|
263
|
+
get limit() {
|
|
264
|
+
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
265
|
+
}
|
|
266
|
+
set limit(value) {
|
|
267
|
+
pb_1.Message.setField(this, 2, value);
|
|
268
|
+
}
|
|
269
|
+
get total() {
|
|
270
|
+
return pb_1.Message.getFieldWithDefault(this, 3, 0);
|
|
271
|
+
}
|
|
272
|
+
set total(value) {
|
|
273
|
+
pb_1.Message.setField(this, 3, value);
|
|
274
|
+
}
|
|
275
|
+
get hasNext() {
|
|
276
|
+
return pb_1.Message.getFieldWithDefault(this, 4, false);
|
|
277
|
+
}
|
|
278
|
+
set hasNext(value) {
|
|
279
|
+
pb_1.Message.setField(this, 4, value);
|
|
280
|
+
}
|
|
281
|
+
get hasPrev() {
|
|
282
|
+
return pb_1.Message.getFieldWithDefault(this, 5, false);
|
|
283
|
+
}
|
|
284
|
+
set hasPrev(value) {
|
|
285
|
+
pb_1.Message.setField(this, 5, value);
|
|
286
|
+
}
|
|
287
|
+
static fromObject(data) {
|
|
288
|
+
const message = new Pagination({});
|
|
289
|
+
if (data.page != null) {
|
|
290
|
+
message.page = data.page;
|
|
291
|
+
}
|
|
292
|
+
if (data.limit != null) {
|
|
293
|
+
message.limit = data.limit;
|
|
294
|
+
}
|
|
295
|
+
if (data.total != null) {
|
|
296
|
+
message.total = data.total;
|
|
297
|
+
}
|
|
298
|
+
if (data.hasNext != null) {
|
|
299
|
+
message.hasNext = data.hasNext;
|
|
300
|
+
}
|
|
301
|
+
if (data.hasPrev != null) {
|
|
302
|
+
message.hasPrev = data.hasPrev;
|
|
303
|
+
}
|
|
304
|
+
return message;
|
|
305
|
+
}
|
|
306
|
+
toObject() {
|
|
307
|
+
const data = {};
|
|
308
|
+
if (this.page != null) {
|
|
309
|
+
data.page = this.page;
|
|
310
|
+
}
|
|
311
|
+
if (this.limit != null) {
|
|
312
|
+
data.limit = this.limit;
|
|
313
|
+
}
|
|
314
|
+
if (this.total != null) {
|
|
315
|
+
data.total = this.total;
|
|
316
|
+
}
|
|
317
|
+
if (this.hasNext != null) {
|
|
318
|
+
data.hasNext = this.hasNext;
|
|
319
|
+
}
|
|
320
|
+
if (this.hasPrev != null) {
|
|
321
|
+
data.hasPrev = this.hasPrev;
|
|
322
|
+
}
|
|
323
|
+
return data;
|
|
324
|
+
}
|
|
325
|
+
serialize(w) {
|
|
326
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
327
|
+
if (this.page != 0)
|
|
328
|
+
writer.writeUint32(1, this.page);
|
|
329
|
+
if (this.limit != 0)
|
|
330
|
+
writer.writeUint32(2, this.limit);
|
|
331
|
+
if (this.total != 0)
|
|
332
|
+
writer.writeUint32(3, this.total);
|
|
333
|
+
if (this.hasNext != false)
|
|
334
|
+
writer.writeBool(4, this.hasNext);
|
|
335
|
+
if (this.hasPrev != false)
|
|
336
|
+
writer.writeBool(5, this.hasPrev);
|
|
337
|
+
if (!w)
|
|
338
|
+
return writer.getResultBuffer();
|
|
339
|
+
}
|
|
340
|
+
static deserialize(bytes) {
|
|
341
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Pagination();
|
|
342
|
+
while (reader.nextField()) {
|
|
343
|
+
if (reader.isEndGroup())
|
|
344
|
+
break;
|
|
345
|
+
switch (reader.getFieldNumber()) {
|
|
346
|
+
case 1:
|
|
347
|
+
message.page = reader.readUint32();
|
|
348
|
+
break;
|
|
349
|
+
case 2:
|
|
350
|
+
message.limit = reader.readUint32();
|
|
351
|
+
break;
|
|
352
|
+
case 3:
|
|
353
|
+
message.total = reader.readUint32();
|
|
354
|
+
break;
|
|
355
|
+
case 4:
|
|
356
|
+
message.hasNext = reader.readBool();
|
|
357
|
+
break;
|
|
358
|
+
case 5:
|
|
359
|
+
message.hasPrev = reader.readBool();
|
|
360
|
+
break;
|
|
361
|
+
default: reader.skipField();
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return message;
|
|
365
|
+
}
|
|
366
|
+
serializeBinary() {
|
|
367
|
+
return this.serialize();
|
|
368
|
+
}
|
|
369
|
+
static deserializeBinary(bytes) {
|
|
370
|
+
return Pagination.deserialize(bytes);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
business.Pagination = Pagination;
|
|
234
374
|
class PaginationInfo extends pb_1.Message {
|
|
235
375
|
#one_of_decls = [];
|
|
236
376
|
constructor(data) {
|
|
@@ -3420,7 +3560,7 @@ var com;
|
|
|
3420
3560
|
#one_of_decls = [];
|
|
3421
3561
|
constructor(data) {
|
|
3422
3562
|
super();
|
|
3423
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3,
|
|
3563
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7], this.#one_of_decls);
|
|
3424
3564
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
3425
3565
|
if ("success" in data && data.success != undefined) {
|
|
3426
3566
|
this.success = data.success;
|
|
@@ -3437,6 +3577,9 @@ var com;
|
|
|
3437
3577
|
if ("message" in data && data.message != undefined) {
|
|
3438
3578
|
this.message = data.message;
|
|
3439
3579
|
}
|
|
3580
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
3581
|
+
this.pagination = data.pagination;
|
|
3582
|
+
}
|
|
3440
3583
|
if ("errors" in data && data.errors != undefined) {
|
|
3441
3584
|
this.errors = data.errors;
|
|
3442
3585
|
}
|
|
@@ -3472,11 +3615,20 @@ var com;
|
|
|
3472
3615
|
set message(value) {
|
|
3473
3616
|
pb_1.Message.setField(this, 5, value);
|
|
3474
3617
|
}
|
|
3618
|
+
get pagination() {
|
|
3619
|
+
return pb_1.Message.getWrapperField(this, Pagination, 6);
|
|
3620
|
+
}
|
|
3621
|
+
set pagination(value) {
|
|
3622
|
+
pb_1.Message.setWrapperField(this, 6, value);
|
|
3623
|
+
}
|
|
3624
|
+
get hasPagination() {
|
|
3625
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
3626
|
+
}
|
|
3475
3627
|
get errors() {
|
|
3476
|
-
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors,
|
|
3628
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 7);
|
|
3477
3629
|
}
|
|
3478
3630
|
set errors(value) {
|
|
3479
|
-
pb_1.Message.setRepeatedWrapperField(this,
|
|
3631
|
+
pb_1.Message.setRepeatedWrapperField(this, 7, value);
|
|
3480
3632
|
}
|
|
3481
3633
|
static fromObject(data) {
|
|
3482
3634
|
const message = new MBusinessDataResponse({});
|
|
@@ -3495,6 +3647,9 @@ var com;
|
|
|
3495
3647
|
if (data.message != null) {
|
|
3496
3648
|
message.message = data.message;
|
|
3497
3649
|
}
|
|
3650
|
+
if (data.pagination != null) {
|
|
3651
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
3652
|
+
}
|
|
3498
3653
|
if (data.errors != null) {
|
|
3499
3654
|
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
3500
3655
|
}
|
|
@@ -3517,6 +3672,9 @@ var com;
|
|
|
3517
3672
|
if (this.message != null) {
|
|
3518
3673
|
data.message = this.message;
|
|
3519
3674
|
}
|
|
3675
|
+
if (this.pagination != null) {
|
|
3676
|
+
data.pagination = this.pagination.toObject();
|
|
3677
|
+
}
|
|
3520
3678
|
if (this.errors != null) {
|
|
3521
3679
|
data.errors = this.errors.map((item) => item.toObject());
|
|
3522
3680
|
}
|
|
@@ -3534,8 +3692,10 @@ var com;
|
|
|
3534
3692
|
writer.writeString(4, this.error);
|
|
3535
3693
|
if (this.message.length)
|
|
3536
3694
|
writer.writeString(5, this.message);
|
|
3695
|
+
if (this.hasPagination)
|
|
3696
|
+
writer.writeMessage(6, this.pagination, () => this.pagination.serialize(writer));
|
|
3537
3697
|
if (this.errors.length)
|
|
3538
|
-
writer.writeRepeatedMessage(
|
|
3698
|
+
writer.writeRepeatedMessage(7, this.errors, (item) => item.serialize(writer));
|
|
3539
3699
|
if (!w)
|
|
3540
3700
|
return writer.getResultBuffer();
|
|
3541
3701
|
}
|
|
@@ -3561,7 +3721,10 @@ var com;
|
|
|
3561
3721
|
message.message = reader.readString();
|
|
3562
3722
|
break;
|
|
3563
3723
|
case 6:
|
|
3564
|
-
reader.readMessage(message.
|
|
3724
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
3725
|
+
break;
|
|
3726
|
+
case 7:
|
|
3727
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
3565
3728
|
break;
|
|
3566
3729
|
default: reader.skipField();
|
|
3567
3730
|
}
|
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -3327,6 +3327,9 @@ var com;
|
|
|
3327
3327
|
if ("limit" in data && data.limit != undefined) {
|
|
3328
3328
|
this.limit = data.limit;
|
|
3329
3329
|
}
|
|
3330
|
+
if ("search" in data && data.search != undefined) {
|
|
3331
|
+
this.search = data.search;
|
|
3332
|
+
}
|
|
3330
3333
|
}
|
|
3331
3334
|
}
|
|
3332
3335
|
get terminalTypeId() {
|
|
@@ -3353,6 +3356,12 @@ var com;
|
|
|
3353
3356
|
set limit(value) {
|
|
3354
3357
|
pb_1.Message.setField(this, 4, value);
|
|
3355
3358
|
}
|
|
3359
|
+
get search() {
|
|
3360
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
3361
|
+
}
|
|
3362
|
+
set search(value) {
|
|
3363
|
+
pb_1.Message.setField(this, 5, value);
|
|
3364
|
+
}
|
|
3356
3365
|
static fromObject(data) {
|
|
3357
3366
|
const message = new GetAvailableTerminalsRequest({});
|
|
3358
3367
|
if (data.terminalTypeId != null) {
|
|
@@ -3367,6 +3376,9 @@ var com;
|
|
|
3367
3376
|
if (data.limit != null) {
|
|
3368
3377
|
message.limit = data.limit;
|
|
3369
3378
|
}
|
|
3379
|
+
if (data.search != null) {
|
|
3380
|
+
message.search = data.search;
|
|
3381
|
+
}
|
|
3370
3382
|
return message;
|
|
3371
3383
|
}
|
|
3372
3384
|
toObject() {
|
|
@@ -3383,6 +3395,9 @@ var com;
|
|
|
3383
3395
|
if (this.limit != null) {
|
|
3384
3396
|
data.limit = this.limit;
|
|
3385
3397
|
}
|
|
3398
|
+
if (this.search != null) {
|
|
3399
|
+
data.search = this.search;
|
|
3400
|
+
}
|
|
3386
3401
|
return data;
|
|
3387
3402
|
}
|
|
3388
3403
|
serialize(w) {
|
|
@@ -3395,6 +3410,8 @@ var com;
|
|
|
3395
3410
|
writer.writeInt32(3, this.page);
|
|
3396
3411
|
if (this.limit != 0)
|
|
3397
3412
|
writer.writeInt32(4, this.limit);
|
|
3413
|
+
if (this.search.length)
|
|
3414
|
+
writer.writeString(5, this.search);
|
|
3398
3415
|
if (!w)
|
|
3399
3416
|
return writer.getResultBuffer();
|
|
3400
3417
|
}
|
|
@@ -3416,6 +3433,9 @@ var com;
|
|
|
3416
3433
|
case 4:
|
|
3417
3434
|
message.limit = reader.readInt32();
|
|
3418
3435
|
break;
|
|
3436
|
+
case 5:
|
|
3437
|
+
message.search = reader.readString();
|
|
3438
|
+
break;
|
|
3419
3439
|
default: reader.skipField();
|
|
3420
3440
|
}
|
|
3421
3441
|
}
|
|
@@ -22598,6 +22618,12 @@ var com;
|
|
|
22598
22618
|
if ("limit" in data && data.limit != undefined) {
|
|
22599
22619
|
this.limit = data.limit;
|
|
22600
22620
|
}
|
|
22621
|
+
if ("from" in data && data.from != undefined) {
|
|
22622
|
+
this.from = data.from;
|
|
22623
|
+
}
|
|
22624
|
+
if ("to" in data && data.to != undefined) {
|
|
22625
|
+
this.to = data.to;
|
|
22626
|
+
}
|
|
22601
22627
|
}
|
|
22602
22628
|
}
|
|
22603
22629
|
get terminalInstanceId() {
|
|
@@ -22636,6 +22662,18 @@ var com;
|
|
|
22636
22662
|
set limit(value) {
|
|
22637
22663
|
pb_1.Message.setField(this, 6, value);
|
|
22638
22664
|
}
|
|
22665
|
+
get from() {
|
|
22666
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
22667
|
+
}
|
|
22668
|
+
set from(value) {
|
|
22669
|
+
pb_1.Message.setField(this, 7, value);
|
|
22670
|
+
}
|
|
22671
|
+
get to() {
|
|
22672
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
22673
|
+
}
|
|
22674
|
+
set to(value) {
|
|
22675
|
+
pb_1.Message.setField(this, 8, value);
|
|
22676
|
+
}
|
|
22639
22677
|
static fromObject(data) {
|
|
22640
22678
|
const message = new TerminalFilterRequest({});
|
|
22641
22679
|
if (data.terminalInstanceId != null) {
|
|
@@ -22656,6 +22694,12 @@ var com;
|
|
|
22656
22694
|
if (data.limit != null) {
|
|
22657
22695
|
message.limit = data.limit;
|
|
22658
22696
|
}
|
|
22697
|
+
if (data.from != null) {
|
|
22698
|
+
message.from = data.from;
|
|
22699
|
+
}
|
|
22700
|
+
if (data.to != null) {
|
|
22701
|
+
message.to = data.to;
|
|
22702
|
+
}
|
|
22659
22703
|
return message;
|
|
22660
22704
|
}
|
|
22661
22705
|
toObject() {
|
|
@@ -22678,6 +22722,12 @@ var com;
|
|
|
22678
22722
|
if (this.limit != null) {
|
|
22679
22723
|
data.limit = this.limit;
|
|
22680
22724
|
}
|
|
22725
|
+
if (this.from != null) {
|
|
22726
|
+
data.from = this.from;
|
|
22727
|
+
}
|
|
22728
|
+
if (this.to != null) {
|
|
22729
|
+
data.to = this.to;
|
|
22730
|
+
}
|
|
22681
22731
|
return data;
|
|
22682
22732
|
}
|
|
22683
22733
|
serialize(w) {
|
|
@@ -22694,6 +22744,10 @@ var com;
|
|
|
22694
22744
|
writer.writeString(5, this.page);
|
|
22695
22745
|
if (this.limit.length)
|
|
22696
22746
|
writer.writeString(6, this.limit);
|
|
22747
|
+
if (this.from.length)
|
|
22748
|
+
writer.writeString(7, this.from);
|
|
22749
|
+
if (this.to.length)
|
|
22750
|
+
writer.writeString(8, this.to);
|
|
22697
22751
|
if (!w)
|
|
22698
22752
|
return writer.getResultBuffer();
|
|
22699
22753
|
}
|
|
@@ -22721,6 +22775,12 @@ var com;
|
|
|
22721
22775
|
case 6:
|
|
22722
22776
|
message.limit = reader.readString();
|
|
22723
22777
|
break;
|
|
22778
|
+
case 7:
|
|
22779
|
+
message.from = reader.readString();
|
|
22780
|
+
break;
|
|
22781
|
+
case 8:
|
|
22782
|
+
message.to = reader.readString();
|
|
22783
|
+
break;
|
|
22724
22784
|
default: reader.skipField();
|
|
22725
22785
|
}
|
|
22726
22786
|
}
|
|
@@ -29040,6 +29100,229 @@ var com;
|
|
|
29040
29100
|
}
|
|
29041
29101
|
}
|
|
29042
29102
|
terminals.POSAppliedCharge = POSAppliedCharge;
|
|
29103
|
+
class CalculatePOSEntityChargesRequest extends pb_1.Message {
|
|
29104
|
+
#one_of_decls = [];
|
|
29105
|
+
constructor(data) {
|
|
29106
|
+
super();
|
|
29107
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
29108
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
29109
|
+
if ("entityType" in data && data.entityType != undefined) {
|
|
29110
|
+
this.entityType = data.entityType;
|
|
29111
|
+
}
|
|
29112
|
+
if ("entityId" in data && data.entityId != undefined) {
|
|
29113
|
+
this.entityId = data.entityId;
|
|
29114
|
+
}
|
|
29115
|
+
if ("amount" in data && data.amount != undefined) {
|
|
29116
|
+
this.amount = data.amount;
|
|
29117
|
+
}
|
|
29118
|
+
if ("transactionType" in data && data.transactionType != undefined) {
|
|
29119
|
+
this.transactionType = data.transactionType;
|
|
29120
|
+
}
|
|
29121
|
+
}
|
|
29122
|
+
}
|
|
29123
|
+
get entityType() {
|
|
29124
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
29125
|
+
}
|
|
29126
|
+
set entityType(value) {
|
|
29127
|
+
pb_1.Message.setField(this, 1, value);
|
|
29128
|
+
}
|
|
29129
|
+
get entityId() {
|
|
29130
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
29131
|
+
}
|
|
29132
|
+
set entityId(value) {
|
|
29133
|
+
pb_1.Message.setField(this, 2, value);
|
|
29134
|
+
}
|
|
29135
|
+
get amount() {
|
|
29136
|
+
return pb_1.Message.getFieldWithDefault(this, 3, 0);
|
|
29137
|
+
}
|
|
29138
|
+
set amount(value) {
|
|
29139
|
+
pb_1.Message.setField(this, 3, value);
|
|
29140
|
+
}
|
|
29141
|
+
get transactionType() {
|
|
29142
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
29143
|
+
}
|
|
29144
|
+
set transactionType(value) {
|
|
29145
|
+
pb_1.Message.setField(this, 4, value);
|
|
29146
|
+
}
|
|
29147
|
+
static fromObject(data) {
|
|
29148
|
+
const message = new CalculatePOSEntityChargesRequest({});
|
|
29149
|
+
if (data.entityType != null) {
|
|
29150
|
+
message.entityType = data.entityType;
|
|
29151
|
+
}
|
|
29152
|
+
if (data.entityId != null) {
|
|
29153
|
+
message.entityId = data.entityId;
|
|
29154
|
+
}
|
|
29155
|
+
if (data.amount != null) {
|
|
29156
|
+
message.amount = data.amount;
|
|
29157
|
+
}
|
|
29158
|
+
if (data.transactionType != null) {
|
|
29159
|
+
message.transactionType = data.transactionType;
|
|
29160
|
+
}
|
|
29161
|
+
return message;
|
|
29162
|
+
}
|
|
29163
|
+
toObject() {
|
|
29164
|
+
const data = {};
|
|
29165
|
+
if (this.entityType != null) {
|
|
29166
|
+
data.entityType = this.entityType;
|
|
29167
|
+
}
|
|
29168
|
+
if (this.entityId != null) {
|
|
29169
|
+
data.entityId = this.entityId;
|
|
29170
|
+
}
|
|
29171
|
+
if (this.amount != null) {
|
|
29172
|
+
data.amount = this.amount;
|
|
29173
|
+
}
|
|
29174
|
+
if (this.transactionType != null) {
|
|
29175
|
+
data.transactionType = this.transactionType;
|
|
29176
|
+
}
|
|
29177
|
+
return data;
|
|
29178
|
+
}
|
|
29179
|
+
serialize(w) {
|
|
29180
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
29181
|
+
if (this.entityType.length)
|
|
29182
|
+
writer.writeString(1, this.entityType);
|
|
29183
|
+
if (this.entityId.length)
|
|
29184
|
+
writer.writeString(2, this.entityId);
|
|
29185
|
+
if (this.amount != 0)
|
|
29186
|
+
writer.writeInt64(3, this.amount);
|
|
29187
|
+
if (this.transactionType.length)
|
|
29188
|
+
writer.writeString(4, this.transactionType);
|
|
29189
|
+
if (!w)
|
|
29190
|
+
return writer.getResultBuffer();
|
|
29191
|
+
}
|
|
29192
|
+
static deserialize(bytes) {
|
|
29193
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CalculatePOSEntityChargesRequest();
|
|
29194
|
+
while (reader.nextField()) {
|
|
29195
|
+
if (reader.isEndGroup())
|
|
29196
|
+
break;
|
|
29197
|
+
switch (reader.getFieldNumber()) {
|
|
29198
|
+
case 1:
|
|
29199
|
+
message.entityType = reader.readString();
|
|
29200
|
+
break;
|
|
29201
|
+
case 2:
|
|
29202
|
+
message.entityId = reader.readString();
|
|
29203
|
+
break;
|
|
29204
|
+
case 3:
|
|
29205
|
+
message.amount = reader.readInt64();
|
|
29206
|
+
break;
|
|
29207
|
+
case 4:
|
|
29208
|
+
message.transactionType = reader.readString();
|
|
29209
|
+
break;
|
|
29210
|
+
default: reader.skipField();
|
|
29211
|
+
}
|
|
29212
|
+
}
|
|
29213
|
+
return message;
|
|
29214
|
+
}
|
|
29215
|
+
serializeBinary() {
|
|
29216
|
+
return this.serialize();
|
|
29217
|
+
}
|
|
29218
|
+
static deserializeBinary(bytes) {
|
|
29219
|
+
return CalculatePOSEntityChargesRequest.deserialize(bytes);
|
|
29220
|
+
}
|
|
29221
|
+
}
|
|
29222
|
+
terminals.CalculatePOSEntityChargesRequest = CalculatePOSEntityChargesRequest;
|
|
29223
|
+
class CalculatePOSEntityChargesResponse extends pb_1.Message {
|
|
29224
|
+
#one_of_decls = [];
|
|
29225
|
+
constructor(data) {
|
|
29226
|
+
super();
|
|
29227
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
29228
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
29229
|
+
if ("success" in data && data.success != undefined) {
|
|
29230
|
+
this.success = data.success;
|
|
29231
|
+
}
|
|
29232
|
+
if ("message" in data && data.message != undefined) {
|
|
29233
|
+
this.message = data.message;
|
|
29234
|
+
}
|
|
29235
|
+
if ("data" in data && data.data != undefined) {
|
|
29236
|
+
this.data = data.data;
|
|
29237
|
+
}
|
|
29238
|
+
}
|
|
29239
|
+
}
|
|
29240
|
+
get success() {
|
|
29241
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
29242
|
+
}
|
|
29243
|
+
set success(value) {
|
|
29244
|
+
pb_1.Message.setField(this, 1, value);
|
|
29245
|
+
}
|
|
29246
|
+
get message() {
|
|
29247
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
29248
|
+
}
|
|
29249
|
+
set message(value) {
|
|
29250
|
+
pb_1.Message.setField(this, 2, value);
|
|
29251
|
+
}
|
|
29252
|
+
get data() {
|
|
29253
|
+
return pb_1.Message.getWrapperField(this, POSChargeCalculationResult, 3);
|
|
29254
|
+
}
|
|
29255
|
+
set data(value) {
|
|
29256
|
+
pb_1.Message.setWrapperField(this, 3, value);
|
|
29257
|
+
}
|
|
29258
|
+
get hasData() {
|
|
29259
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
29260
|
+
}
|
|
29261
|
+
static fromObject(data) {
|
|
29262
|
+
const message = new CalculatePOSEntityChargesResponse({});
|
|
29263
|
+
if (data.success != null) {
|
|
29264
|
+
message.success = data.success;
|
|
29265
|
+
}
|
|
29266
|
+
if (data.message != null) {
|
|
29267
|
+
message.message = data.message;
|
|
29268
|
+
}
|
|
29269
|
+
if (data.data != null) {
|
|
29270
|
+
message.data = POSChargeCalculationResult.fromObject(data.data);
|
|
29271
|
+
}
|
|
29272
|
+
return message;
|
|
29273
|
+
}
|
|
29274
|
+
toObject() {
|
|
29275
|
+
const data = {};
|
|
29276
|
+
if (this.success != null) {
|
|
29277
|
+
data.success = this.success;
|
|
29278
|
+
}
|
|
29279
|
+
if (this.message != null) {
|
|
29280
|
+
data.message = this.message;
|
|
29281
|
+
}
|
|
29282
|
+
if (this.data != null) {
|
|
29283
|
+
data.data = this.data.toObject();
|
|
29284
|
+
}
|
|
29285
|
+
return data;
|
|
29286
|
+
}
|
|
29287
|
+
serialize(w) {
|
|
29288
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
29289
|
+
if (this.success != false)
|
|
29290
|
+
writer.writeBool(1, this.success);
|
|
29291
|
+
if (this.message.length)
|
|
29292
|
+
writer.writeString(2, this.message);
|
|
29293
|
+
if (this.hasData)
|
|
29294
|
+
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
29295
|
+
if (!w)
|
|
29296
|
+
return writer.getResultBuffer();
|
|
29297
|
+
}
|
|
29298
|
+
static deserialize(bytes) {
|
|
29299
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CalculatePOSEntityChargesResponse();
|
|
29300
|
+
while (reader.nextField()) {
|
|
29301
|
+
if (reader.isEndGroup())
|
|
29302
|
+
break;
|
|
29303
|
+
switch (reader.getFieldNumber()) {
|
|
29304
|
+
case 1:
|
|
29305
|
+
message.success = reader.readBool();
|
|
29306
|
+
break;
|
|
29307
|
+
case 2:
|
|
29308
|
+
message.message = reader.readString();
|
|
29309
|
+
break;
|
|
29310
|
+
case 3:
|
|
29311
|
+
reader.readMessage(message.data, () => message.data = POSChargeCalculationResult.deserialize(reader));
|
|
29312
|
+
break;
|
|
29313
|
+
default: reader.skipField();
|
|
29314
|
+
}
|
|
29315
|
+
}
|
|
29316
|
+
return message;
|
|
29317
|
+
}
|
|
29318
|
+
serializeBinary() {
|
|
29319
|
+
return this.serialize();
|
|
29320
|
+
}
|
|
29321
|
+
static deserializeBinary(bytes) {
|
|
29322
|
+
return CalculatePOSEntityChargesResponse.deserialize(bytes);
|
|
29323
|
+
}
|
|
29324
|
+
}
|
|
29325
|
+
terminals.CalculatePOSEntityChargesResponse = CalculatePOSEntityChargesResponse;
|
|
29043
29326
|
class UnimplementedTerminalServiceService {
|
|
29044
29327
|
static definition = {
|
|
29045
29328
|
AddTerminalInstance: {
|
|
@@ -29599,6 +29882,15 @@ var com;
|
|
|
29599
29882
|
requestDeserialize: (bytes) => GetDefaultPOSEntityChargesRequest.deserialize(new Uint8Array(bytes)),
|
|
29600
29883
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
29601
29884
|
responseDeserialize: (bytes) => GetDefaultPOSEntityChargesResponse.deserialize(new Uint8Array(bytes))
|
|
29885
|
+
},
|
|
29886
|
+
CalculatePOSEntityCharges: {
|
|
29887
|
+
path: "/com.pkg.posv1.terminals.TerminalService/CalculatePOSEntityCharges",
|
|
29888
|
+
requestStream: false,
|
|
29889
|
+
responseStream: false,
|
|
29890
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
29891
|
+
requestDeserialize: (bytes) => CalculatePOSEntityChargesRequest.deserialize(new Uint8Array(bytes)),
|
|
29892
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
29893
|
+
responseDeserialize: (bytes) => CalculatePOSEntityChargesResponse.deserialize(new Uint8Array(bytes))
|
|
29602
29894
|
}
|
|
29603
29895
|
};
|
|
29604
29896
|
}
|
|
@@ -30599,6 +30891,22 @@ var com;
|
|
|
30599
30891
|
}
|
|
30600
30892
|
}));
|
|
30601
30893
|
};
|
|
30894
|
+
CalculatePOSEntityCharges = (message, metadata, options) => {
|
|
30895
|
+
if (!metadata) {
|
|
30896
|
+
metadata = new grpc_1.Metadata;
|
|
30897
|
+
}
|
|
30898
|
+
if (!options) {
|
|
30899
|
+
options = {};
|
|
30900
|
+
}
|
|
30901
|
+
return new Promise((resolve, reject) => super.CalculatePOSEntityCharges(message, metadata, options, (error, response) => {
|
|
30902
|
+
if (error) {
|
|
30903
|
+
reject(error);
|
|
30904
|
+
}
|
|
30905
|
+
else {
|
|
30906
|
+
resolve(response);
|
|
30907
|
+
}
|
|
30908
|
+
}));
|
|
30909
|
+
};
|
|
30602
30910
|
}
|
|
30603
30911
|
terminals.TerminalServiceClient = TerminalServiceClient;
|
|
30604
30912
|
class UnimplementedBusinessContextServiceService {
|
|
@@ -908,6 +908,7 @@ export declare namespace com.pkg.account {
|
|
|
908
908
|
bvn?: string;
|
|
909
909
|
nin?: string;
|
|
910
910
|
phoneNumber?: string;
|
|
911
|
+
terminal?: string;
|
|
911
912
|
});
|
|
912
913
|
get user(): string;
|
|
913
914
|
set user(value: string);
|
|
@@ -929,6 +930,8 @@ export declare namespace com.pkg.account {
|
|
|
929
930
|
set nin(value: string);
|
|
930
931
|
get phoneNumber(): string;
|
|
931
932
|
set phoneNumber(value: string);
|
|
933
|
+
get terminal(): string;
|
|
934
|
+
set terminal(value: string);
|
|
932
935
|
static fromObject(data: {
|
|
933
936
|
user?: string;
|
|
934
937
|
terminalId?: string;
|
|
@@ -940,6 +943,7 @@ export declare namespace com.pkg.account {
|
|
|
940
943
|
bvn?: string;
|
|
941
944
|
nin?: string;
|
|
942
945
|
phoneNumber?: string;
|
|
946
|
+
terminal?: string;
|
|
943
947
|
}): AssignOrCreateTerminalVirtualAccountRequest;
|
|
944
948
|
toObject(): {
|
|
945
949
|
user?: string | undefined;
|
|
@@ -952,6 +956,7 @@ export declare namespace com.pkg.account {
|
|
|
952
956
|
bvn?: string | undefined;
|
|
953
957
|
nin?: string | undefined;
|
|
954
958
|
phoneNumber?: string | undefined;
|
|
959
|
+
terminal?: string | undefined;
|
|
955
960
|
};
|
|
956
961
|
serialize(): Uint8Array;
|
|
957
962
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -61,6 +61,45 @@ export declare namespace com.pkg.business {
|
|
|
61
61
|
serializeBinary(): Uint8Array;
|
|
62
62
|
static deserializeBinary(bytes: Uint8Array): PaginatedRequest;
|
|
63
63
|
}
|
|
64
|
+
export class Pagination extends pb_1.Message {
|
|
65
|
+
#private;
|
|
66
|
+
constructor(data?: any[] | {
|
|
67
|
+
page?: number;
|
|
68
|
+
limit?: number;
|
|
69
|
+
total?: number;
|
|
70
|
+
hasNext?: boolean;
|
|
71
|
+
hasPrev?: boolean;
|
|
72
|
+
});
|
|
73
|
+
get page(): number;
|
|
74
|
+
set page(value: number);
|
|
75
|
+
get limit(): number;
|
|
76
|
+
set limit(value: number);
|
|
77
|
+
get total(): number;
|
|
78
|
+
set total(value: number);
|
|
79
|
+
get hasNext(): boolean;
|
|
80
|
+
set hasNext(value: boolean);
|
|
81
|
+
get hasPrev(): boolean;
|
|
82
|
+
set hasPrev(value: boolean);
|
|
83
|
+
static fromObject(data: {
|
|
84
|
+
page?: number;
|
|
85
|
+
limit?: number;
|
|
86
|
+
total?: number;
|
|
87
|
+
hasNext?: boolean;
|
|
88
|
+
hasPrev?: boolean;
|
|
89
|
+
}): Pagination;
|
|
90
|
+
toObject(): {
|
|
91
|
+
page?: number | undefined;
|
|
92
|
+
limit?: number | undefined;
|
|
93
|
+
total?: number | undefined;
|
|
94
|
+
hasNext?: boolean | undefined;
|
|
95
|
+
hasPrev?: boolean | undefined;
|
|
96
|
+
};
|
|
97
|
+
serialize(): Uint8Array;
|
|
98
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
99
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Pagination;
|
|
100
|
+
serializeBinary(): Uint8Array;
|
|
101
|
+
static deserializeBinary(bytes: Uint8Array): Pagination;
|
|
102
|
+
}
|
|
64
103
|
export class PaginationInfo extends pb_1.Message {
|
|
65
104
|
#private;
|
|
66
105
|
constructor(data?: any[] | {
|
|
@@ -1158,6 +1197,7 @@ export declare namespace com.pkg.business {
|
|
|
1158
1197
|
data?: BusinessData[];
|
|
1159
1198
|
error?: string;
|
|
1160
1199
|
message?: string;
|
|
1200
|
+
pagination?: Pagination;
|
|
1161
1201
|
errors?: ValidationErrors[];
|
|
1162
1202
|
});
|
|
1163
1203
|
get success(): boolean;
|
|
@@ -1170,6 +1210,9 @@ export declare namespace com.pkg.business {
|
|
|
1170
1210
|
set error(value: string);
|
|
1171
1211
|
get message(): string;
|
|
1172
1212
|
set message(value: string);
|
|
1213
|
+
get pagination(): Pagination;
|
|
1214
|
+
set pagination(value: Pagination);
|
|
1215
|
+
get hasPagination(): boolean;
|
|
1173
1216
|
get errors(): ValidationErrors[];
|
|
1174
1217
|
set errors(value: ValidationErrors[]);
|
|
1175
1218
|
static fromObject(data: {
|
|
@@ -1178,6 +1221,7 @@ export declare namespace com.pkg.business {
|
|
|
1178
1221
|
data?: ReturnType<typeof BusinessData.prototype.toObject>[];
|
|
1179
1222
|
error?: string;
|
|
1180
1223
|
message?: string;
|
|
1224
|
+
pagination?: ReturnType<typeof Pagination.prototype.toObject>;
|
|
1181
1225
|
errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
|
|
1182
1226
|
}): MBusinessDataResponse;
|
|
1183
1227
|
toObject(): {
|
|
@@ -1219,6 +1263,13 @@ export declare namespace com.pkg.business {
|
|
|
1219
1263
|
}[] | undefined;
|
|
1220
1264
|
error?: string | undefined;
|
|
1221
1265
|
message?: string | undefined;
|
|
1266
|
+
pagination?: {
|
|
1267
|
+
page?: number | undefined;
|
|
1268
|
+
limit?: number | undefined;
|
|
1269
|
+
total?: number | undefined;
|
|
1270
|
+
hasNext?: boolean | undefined;
|
|
1271
|
+
hasPrev?: boolean | undefined;
|
|
1272
|
+
} | undefined;
|
|
1222
1273
|
errors?: {
|
|
1223
1274
|
field?: string | undefined;
|
|
1224
1275
|
message?: string | undefined;
|
package/types/index.d.ts
CHANGED
|
@@ -1,23 +1,41 @@
|
|
|
1
|
+
import { com as account } from './accounts/accounts';
|
|
2
|
+
import { com as admin } from './admin/admin';
|
|
3
|
+
import { com as user } from './users/users';
|
|
4
|
+
import { com as verification } from './verifications/verifications';
|
|
5
|
+
import { com as bills } from './bills/bills';
|
|
6
|
+
import { com as image } from './image/recognition';
|
|
7
|
+
import { com as storage } from './storage/storage';
|
|
8
|
+
import { com as transfer } from './transfer/transfer';
|
|
9
|
+
import { com as business } from './business/business';
|
|
10
|
+
import { com as pos_transactions } from './pos/transactions';
|
|
11
|
+
import { com as pov1Transaction } from './pos.v1/transactions';
|
|
12
|
+
import { com as pov1Auth } from './pos.v1/auth';
|
|
13
|
+
import { com as pov1Merchants } from './pos.v1/merchants';
|
|
14
|
+
import { com as pov1Eod } from './pos.v1/eod';
|
|
15
|
+
import { com as pov1TerminalTypes } from './pos.v1/terminal-types';
|
|
16
|
+
import { com as pov1TerminalTransactions } from './pos.v1/terminal-transactions';
|
|
17
|
+
import { com as pov1TerminalCardTransactions } from './pos.v1/card-transactions';
|
|
18
|
+
import { com as pov1Terminals } from './pos.v1/terminals';
|
|
1
19
|
declare const proto: {
|
|
2
20
|
import: {
|
|
3
|
-
admin:
|
|
4
|
-
account:
|
|
5
|
-
user:
|
|
6
|
-
verification:
|
|
7
|
-
bills:
|
|
8
|
-
image:
|
|
9
|
-
storage:
|
|
10
|
-
transfer:
|
|
11
|
-
business:
|
|
12
|
-
pos_transactions:
|
|
13
|
-
pov1Transaction:
|
|
14
|
-
pov1Auth:
|
|
15
|
-
pov1Merchants:
|
|
16
|
-
pov1Eod:
|
|
17
|
-
pov1TerminalTypes:
|
|
18
|
-
pov1Terminals:
|
|
19
|
-
pov1TerminalTransactions:
|
|
20
|
-
pov1TerminalCardTransactions:
|
|
21
|
+
admin: typeof admin;
|
|
22
|
+
account: typeof account;
|
|
23
|
+
user: typeof user;
|
|
24
|
+
verification: typeof verification;
|
|
25
|
+
bills: typeof bills;
|
|
26
|
+
image: typeof image;
|
|
27
|
+
storage: typeof storage;
|
|
28
|
+
transfer: typeof transfer;
|
|
29
|
+
business: typeof business;
|
|
30
|
+
pos_transactions: typeof pos_transactions;
|
|
31
|
+
pov1Transaction: typeof pov1Transaction;
|
|
32
|
+
pov1Auth: typeof pov1Auth;
|
|
33
|
+
pov1Merchants: typeof pov1Merchants;
|
|
34
|
+
pov1Eod: typeof pov1Eod;
|
|
35
|
+
pov1TerminalTypes: typeof pov1TerminalTypes;
|
|
36
|
+
pov1Terminals: typeof pov1Terminals;
|
|
37
|
+
pov1TerminalTransactions: typeof pov1TerminalTransactions;
|
|
38
|
+
pov1TerminalCardTransactions: typeof pov1TerminalCardTransactions;
|
|
21
39
|
};
|
|
22
40
|
};
|
|
23
41
|
export { proto };
|
|
@@ -1224,6 +1224,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1224
1224
|
location?: string;
|
|
1225
1225
|
page?: number;
|
|
1226
1226
|
limit?: number;
|
|
1227
|
+
search?: string;
|
|
1227
1228
|
});
|
|
1228
1229
|
get terminalTypeId(): string;
|
|
1229
1230
|
set terminalTypeId(value: string);
|
|
@@ -1233,17 +1234,21 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1233
1234
|
set page(value: number);
|
|
1234
1235
|
get limit(): number;
|
|
1235
1236
|
set limit(value: number);
|
|
1237
|
+
get search(): string;
|
|
1238
|
+
set search(value: string);
|
|
1236
1239
|
static fromObject(data: {
|
|
1237
1240
|
terminalTypeId?: string;
|
|
1238
1241
|
location?: string;
|
|
1239
1242
|
page?: number;
|
|
1240
1243
|
limit?: number;
|
|
1244
|
+
search?: string;
|
|
1241
1245
|
}): GetAvailableTerminalsRequest;
|
|
1242
1246
|
toObject(): {
|
|
1243
1247
|
terminalTypeId?: string | undefined;
|
|
1244
1248
|
location?: string | undefined;
|
|
1245
1249
|
page?: number | undefined;
|
|
1246
1250
|
limit?: number | undefined;
|
|
1251
|
+
search?: string | undefined;
|
|
1247
1252
|
};
|
|
1248
1253
|
serialize(): Uint8Array;
|
|
1249
1254
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -7653,6 +7658,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7653
7658
|
status?: string;
|
|
7654
7659
|
page?: string;
|
|
7655
7660
|
limit?: string;
|
|
7661
|
+
from?: string;
|
|
7662
|
+
to?: string;
|
|
7656
7663
|
});
|
|
7657
7664
|
get terminalInstanceId(): string;
|
|
7658
7665
|
set terminalInstanceId(value: string);
|
|
@@ -7666,6 +7673,10 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7666
7673
|
set page(value: string);
|
|
7667
7674
|
get limit(): string;
|
|
7668
7675
|
set limit(value: string);
|
|
7676
|
+
get from(): string;
|
|
7677
|
+
set from(value: string);
|
|
7678
|
+
get to(): string;
|
|
7679
|
+
set to(value: string);
|
|
7669
7680
|
static fromObject(data: {
|
|
7670
7681
|
terminalInstanceId?: string;
|
|
7671
7682
|
outlet?: string;
|
|
@@ -7673,6 +7684,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7673
7684
|
status?: string;
|
|
7674
7685
|
page?: string;
|
|
7675
7686
|
limit?: string;
|
|
7687
|
+
from?: string;
|
|
7688
|
+
to?: string;
|
|
7676
7689
|
}): TerminalFilterRequest;
|
|
7677
7690
|
toObject(): {
|
|
7678
7691
|
terminalInstanceId?: string | undefined;
|
|
@@ -7681,6 +7694,8 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
7681
7694
|
status?: string | undefined;
|
|
7682
7695
|
page?: string | undefined;
|
|
7683
7696
|
limit?: string | undefined;
|
|
7697
|
+
from?: string | undefined;
|
|
7698
|
+
to?: string | undefined;
|
|
7684
7699
|
};
|
|
7685
7700
|
serialize(): Uint8Array;
|
|
7686
7701
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -9816,6 +9831,84 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
9816
9831
|
serializeBinary(): Uint8Array;
|
|
9817
9832
|
static deserializeBinary(bytes: Uint8Array): POSAppliedCharge;
|
|
9818
9833
|
}
|
|
9834
|
+
export class CalculatePOSEntityChargesRequest extends pb_1.Message {
|
|
9835
|
+
#private;
|
|
9836
|
+
constructor(data?: any[] | {
|
|
9837
|
+
entityType?: string;
|
|
9838
|
+
entityId?: string;
|
|
9839
|
+
amount?: number;
|
|
9840
|
+
transactionType?: string;
|
|
9841
|
+
});
|
|
9842
|
+
get entityType(): string;
|
|
9843
|
+
set entityType(value: string);
|
|
9844
|
+
get entityId(): string;
|
|
9845
|
+
set entityId(value: string);
|
|
9846
|
+
get amount(): number;
|
|
9847
|
+
set amount(value: number);
|
|
9848
|
+
get transactionType(): string;
|
|
9849
|
+
set transactionType(value: string);
|
|
9850
|
+
static fromObject(data: {
|
|
9851
|
+
entityType?: string;
|
|
9852
|
+
entityId?: string;
|
|
9853
|
+
amount?: number;
|
|
9854
|
+
transactionType?: string;
|
|
9855
|
+
}): CalculatePOSEntityChargesRequest;
|
|
9856
|
+
toObject(): {
|
|
9857
|
+
entityType?: string | undefined;
|
|
9858
|
+
entityId?: string | undefined;
|
|
9859
|
+
amount?: number | undefined;
|
|
9860
|
+
transactionType?: string | undefined;
|
|
9861
|
+
};
|
|
9862
|
+
serialize(): Uint8Array;
|
|
9863
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
9864
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CalculatePOSEntityChargesRequest;
|
|
9865
|
+
serializeBinary(): Uint8Array;
|
|
9866
|
+
static deserializeBinary(bytes: Uint8Array): CalculatePOSEntityChargesRequest;
|
|
9867
|
+
}
|
|
9868
|
+
export class CalculatePOSEntityChargesResponse extends pb_1.Message {
|
|
9869
|
+
#private;
|
|
9870
|
+
constructor(data?: any[] | {
|
|
9871
|
+
success?: boolean;
|
|
9872
|
+
message?: string;
|
|
9873
|
+
data?: POSChargeCalculationResult;
|
|
9874
|
+
});
|
|
9875
|
+
get success(): boolean;
|
|
9876
|
+
set success(value: boolean);
|
|
9877
|
+
get message(): string;
|
|
9878
|
+
set message(value: string);
|
|
9879
|
+
get data(): POSChargeCalculationResult;
|
|
9880
|
+
set data(value: POSChargeCalculationResult);
|
|
9881
|
+
get hasData(): boolean;
|
|
9882
|
+
static fromObject(data: {
|
|
9883
|
+
success?: boolean;
|
|
9884
|
+
message?: string;
|
|
9885
|
+
data?: ReturnType<typeof POSChargeCalculationResult.prototype.toObject>;
|
|
9886
|
+
}): CalculatePOSEntityChargesResponse;
|
|
9887
|
+
toObject(): {
|
|
9888
|
+
success?: boolean | undefined;
|
|
9889
|
+
message?: string | undefined;
|
|
9890
|
+
data?: {
|
|
9891
|
+
entityType?: string | undefined;
|
|
9892
|
+
entityId?: string | undefined;
|
|
9893
|
+
transactionAmount?: number | undefined;
|
|
9894
|
+
totalCharge?: number | undefined;
|
|
9895
|
+
charges?: {
|
|
9896
|
+
chargeId?: string | undefined;
|
|
9897
|
+
chargeName?: string | undefined;
|
|
9898
|
+
chargeType?: string | undefined;
|
|
9899
|
+
calculationMethod?: string | undefined;
|
|
9900
|
+
chargeAmount?: number | undefined;
|
|
9901
|
+
description?: string | undefined;
|
|
9902
|
+
}[] | undefined;
|
|
9903
|
+
currency?: string | undefined;
|
|
9904
|
+
} | undefined;
|
|
9905
|
+
};
|
|
9906
|
+
serialize(): Uint8Array;
|
|
9907
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
9908
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CalculatePOSEntityChargesResponse;
|
|
9909
|
+
serializeBinary(): Uint8Array;
|
|
9910
|
+
static deserializeBinary(bytes: Uint8Array): CalculatePOSEntityChargesResponse;
|
|
9911
|
+
}
|
|
9819
9912
|
interface GrpcPromiseServiceInterface<P, R> {
|
|
9820
9913
|
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
9821
9914
|
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
@@ -10380,6 +10473,15 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10380
10473
|
responseSerialize: (message: GetDefaultPOSEntityChargesResponse) => Buffer;
|
|
10381
10474
|
responseDeserialize: (bytes: Buffer) => GetDefaultPOSEntityChargesResponse;
|
|
10382
10475
|
};
|
|
10476
|
+
CalculatePOSEntityCharges: {
|
|
10477
|
+
path: string;
|
|
10478
|
+
requestStream: boolean;
|
|
10479
|
+
responseStream: boolean;
|
|
10480
|
+
requestSerialize: (message: CalculatePOSEntityChargesRequest) => Buffer;
|
|
10481
|
+
requestDeserialize: (bytes: Buffer) => CalculatePOSEntityChargesRequest;
|
|
10482
|
+
responseSerialize: (message: CalculatePOSEntityChargesResponse) => Buffer;
|
|
10483
|
+
responseDeserialize: (bytes: Buffer) => CalculatePOSEntityChargesResponse;
|
|
10484
|
+
};
|
|
10383
10485
|
};
|
|
10384
10486
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
10385
10487
|
abstract AddTerminalInstance(call: grpc_1.ServerUnaryCall<AddTerminalInstanceRequest, AddTerminalInstanceResponse>, callback: grpc_1.sendUnaryData<AddTerminalInstanceResponse>): void;
|
|
@@ -10444,6 +10546,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10444
10546
|
abstract UpdatePOSEntityCharge(call: grpc_1.ServerUnaryCall<UpdatePOSEntityChargeRequest, UpdatePOSEntityChargeResponse>, callback: grpc_1.sendUnaryData<UpdatePOSEntityChargeResponse>): void;
|
|
10445
10547
|
abstract GetPOSEntityCharges(call: grpc_1.ServerUnaryCall<GetPOSEntityChargesRequest, GetPOSEntityChargesResponse>, callback: grpc_1.sendUnaryData<GetPOSEntityChargesResponse>): void;
|
|
10446
10548
|
abstract GetDefaultPOSEntityCharges(call: grpc_1.ServerUnaryCall<GetDefaultPOSEntityChargesRequest, GetDefaultPOSEntityChargesResponse>, callback: grpc_1.sendUnaryData<GetDefaultPOSEntityChargesResponse>): void;
|
|
10549
|
+
abstract CalculatePOSEntityCharges(call: grpc_1.ServerUnaryCall<CalculatePOSEntityChargesRequest, CalculatePOSEntityChargesResponse>, callback: grpc_1.sendUnaryData<CalculatePOSEntityChargesResponse>): void;
|
|
10447
10550
|
}
|
|
10448
10551
|
const TerminalServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
10449
10552
|
export class TerminalServiceClient extends TerminalServiceClient_base {
|
|
@@ -10510,6 +10613,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
10510
10613
|
UpdatePOSEntityCharge: GrpcPromiseServiceInterface<UpdatePOSEntityChargeRequest, UpdatePOSEntityChargeResponse>;
|
|
10511
10614
|
GetPOSEntityCharges: GrpcPromiseServiceInterface<GetPOSEntityChargesRequest, GetPOSEntityChargesResponse>;
|
|
10512
10615
|
GetDefaultPOSEntityCharges: GrpcPromiseServiceInterface<GetDefaultPOSEntityChargesRequest, GetDefaultPOSEntityChargesResponse>;
|
|
10616
|
+
CalculatePOSEntityCharges: GrpcPromiseServiceInterface<CalculatePOSEntityChargesRequest, CalculatePOSEntityChargesResponse>;
|
|
10513
10617
|
}
|
|
10514
10618
|
export abstract class UnimplementedBusinessContextServiceService {
|
|
10515
10619
|
static definition: {
|