@technova-tech/olive-proto-lib 1.6.5 → 1.7.0
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 +60 -0
- package/types/accounts/accounts.d.ts +5 -0
- package/types/business/business.d.ts +51 -0
- package/types/pos.v1/terminals.d.ts +15 -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
|
}
|
|
@@ -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;
|
|
@@ -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;
|