@technova-tech/olive-proto-lib 2.0.9 → 2.2.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 +2 -2
- package/business/business.js +1236 -0
- package/package.json +1 -1
- package/types/business/business.d.ts +381 -0
package/business/business.js
CHANGED
|
@@ -15241,6 +15241,1192 @@ var com;
|
|
|
15241
15241
|
}
|
|
15242
15242
|
}
|
|
15243
15243
|
business.BusinessIndustryDataResponse = BusinessIndustryDataResponse;
|
|
15244
|
+
class MerchantFilterRequest extends pb_1.Message {
|
|
15245
|
+
#one_of_decls = [[8], [9], [10], [11]];
|
|
15246
|
+
constructor(data) {
|
|
15247
|
+
super();
|
|
15248
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
15249
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
15250
|
+
if ("id" in data && data.id != undefined) {
|
|
15251
|
+
this.id = data.id;
|
|
15252
|
+
}
|
|
15253
|
+
if ("email" in data && data.email != undefined) {
|
|
15254
|
+
this.email = data.email;
|
|
15255
|
+
}
|
|
15256
|
+
if ("phoneNumber" in data && data.phoneNumber != undefined) {
|
|
15257
|
+
this.phoneNumber = data.phoneNumber;
|
|
15258
|
+
}
|
|
15259
|
+
if ("accountNumber" in data && data.accountNumber != undefined) {
|
|
15260
|
+
this.accountNumber = data.accountNumber;
|
|
15261
|
+
}
|
|
15262
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
15263
|
+
this.bvn = data.bvn;
|
|
15264
|
+
}
|
|
15265
|
+
if ("nin" in data && data.nin != undefined) {
|
|
15266
|
+
this.nin = data.nin;
|
|
15267
|
+
}
|
|
15268
|
+
if ("businessName" in data && data.businessName != undefined) {
|
|
15269
|
+
this.businessName = data.businessName;
|
|
15270
|
+
}
|
|
15271
|
+
if ("isVerified" in data && data.isVerified != undefined) {
|
|
15272
|
+
this.isVerified = data.isVerified;
|
|
15273
|
+
}
|
|
15274
|
+
if ("isValidated" in data && data.isValidated != undefined) {
|
|
15275
|
+
this.isValidated = data.isValidated;
|
|
15276
|
+
}
|
|
15277
|
+
if ("isActive" in data && data.isActive != undefined) {
|
|
15278
|
+
this.isActive = data.isActive;
|
|
15279
|
+
}
|
|
15280
|
+
if ("hasPin" in data && data.hasPin != undefined) {
|
|
15281
|
+
this.hasPin = data.hasPin;
|
|
15282
|
+
}
|
|
15283
|
+
if ("search" in data && data.search != undefined) {
|
|
15284
|
+
this.search = data.search;
|
|
15285
|
+
}
|
|
15286
|
+
if ("from" in data && data.from != undefined) {
|
|
15287
|
+
this.from = data.from;
|
|
15288
|
+
}
|
|
15289
|
+
if ("to" in data && data.to != undefined) {
|
|
15290
|
+
this.to = data.to;
|
|
15291
|
+
}
|
|
15292
|
+
if ("page" in data && data.page != undefined) {
|
|
15293
|
+
this.page = data.page;
|
|
15294
|
+
}
|
|
15295
|
+
if ("limit" in data && data.limit != undefined) {
|
|
15296
|
+
this.limit = data.limit;
|
|
15297
|
+
}
|
|
15298
|
+
if ("sortBy" in data && data.sortBy != undefined) {
|
|
15299
|
+
this.sortBy = data.sortBy;
|
|
15300
|
+
}
|
|
15301
|
+
if ("sortOrder" in data && data.sortOrder != undefined) {
|
|
15302
|
+
this.sortOrder = data.sortOrder;
|
|
15303
|
+
}
|
|
15304
|
+
}
|
|
15305
|
+
}
|
|
15306
|
+
get id() {
|
|
15307
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
15308
|
+
}
|
|
15309
|
+
set id(value) {
|
|
15310
|
+
pb_1.Message.setField(this, 1, value);
|
|
15311
|
+
}
|
|
15312
|
+
get email() {
|
|
15313
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15314
|
+
}
|
|
15315
|
+
set email(value) {
|
|
15316
|
+
pb_1.Message.setField(this, 2, value);
|
|
15317
|
+
}
|
|
15318
|
+
get phoneNumber() {
|
|
15319
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
15320
|
+
}
|
|
15321
|
+
set phoneNumber(value) {
|
|
15322
|
+
pb_1.Message.setField(this, 3, value);
|
|
15323
|
+
}
|
|
15324
|
+
get accountNumber() {
|
|
15325
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
15326
|
+
}
|
|
15327
|
+
set accountNumber(value) {
|
|
15328
|
+
pb_1.Message.setField(this, 4, value);
|
|
15329
|
+
}
|
|
15330
|
+
get bvn() {
|
|
15331
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
15332
|
+
}
|
|
15333
|
+
set bvn(value) {
|
|
15334
|
+
pb_1.Message.setField(this, 5, value);
|
|
15335
|
+
}
|
|
15336
|
+
get nin() {
|
|
15337
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
15338
|
+
}
|
|
15339
|
+
set nin(value) {
|
|
15340
|
+
pb_1.Message.setField(this, 6, value);
|
|
15341
|
+
}
|
|
15342
|
+
get businessName() {
|
|
15343
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
15344
|
+
}
|
|
15345
|
+
set businessName(value) {
|
|
15346
|
+
pb_1.Message.setField(this, 7, value);
|
|
15347
|
+
}
|
|
15348
|
+
get isVerified() {
|
|
15349
|
+
return pb_1.Message.getFieldWithDefault(this, 8, false);
|
|
15350
|
+
}
|
|
15351
|
+
set isVerified(value) {
|
|
15352
|
+
pb_1.Message.setOneofField(this, 8, this.#one_of_decls[0], value);
|
|
15353
|
+
}
|
|
15354
|
+
get hasIsVerified() {
|
|
15355
|
+
return pb_1.Message.getField(this, 8) != null;
|
|
15356
|
+
}
|
|
15357
|
+
get isValidated() {
|
|
15358
|
+
return pb_1.Message.getFieldWithDefault(this, 9, false);
|
|
15359
|
+
}
|
|
15360
|
+
set isValidated(value) {
|
|
15361
|
+
pb_1.Message.setOneofField(this, 9, this.#one_of_decls[1], value);
|
|
15362
|
+
}
|
|
15363
|
+
get hasIsValidated() {
|
|
15364
|
+
return pb_1.Message.getField(this, 9) != null;
|
|
15365
|
+
}
|
|
15366
|
+
get isActive() {
|
|
15367
|
+
return pb_1.Message.getFieldWithDefault(this, 10, false);
|
|
15368
|
+
}
|
|
15369
|
+
set isActive(value) {
|
|
15370
|
+
pb_1.Message.setOneofField(this, 10, this.#one_of_decls[2], value);
|
|
15371
|
+
}
|
|
15372
|
+
get hasIsActive() {
|
|
15373
|
+
return pb_1.Message.getField(this, 10) != null;
|
|
15374
|
+
}
|
|
15375
|
+
get hasPin() {
|
|
15376
|
+
return pb_1.Message.getFieldWithDefault(this, 11, false);
|
|
15377
|
+
}
|
|
15378
|
+
set hasPin(value) {
|
|
15379
|
+
pb_1.Message.setOneofField(this, 11, this.#one_of_decls[3], value);
|
|
15380
|
+
}
|
|
15381
|
+
get hasHasPin() {
|
|
15382
|
+
return pb_1.Message.getField(this, 11) != null;
|
|
15383
|
+
}
|
|
15384
|
+
get search() {
|
|
15385
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
15386
|
+
}
|
|
15387
|
+
set search(value) {
|
|
15388
|
+
pb_1.Message.setField(this, 12, value);
|
|
15389
|
+
}
|
|
15390
|
+
get from() {
|
|
15391
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
15392
|
+
}
|
|
15393
|
+
set from(value) {
|
|
15394
|
+
pb_1.Message.setField(this, 13, value);
|
|
15395
|
+
}
|
|
15396
|
+
get to() {
|
|
15397
|
+
return pb_1.Message.getFieldWithDefault(this, 14, "");
|
|
15398
|
+
}
|
|
15399
|
+
set to(value) {
|
|
15400
|
+
pb_1.Message.setField(this, 14, value);
|
|
15401
|
+
}
|
|
15402
|
+
get page() {
|
|
15403
|
+
return pb_1.Message.getFieldWithDefault(this, 15, 0);
|
|
15404
|
+
}
|
|
15405
|
+
set page(value) {
|
|
15406
|
+
pb_1.Message.setField(this, 15, value);
|
|
15407
|
+
}
|
|
15408
|
+
get limit() {
|
|
15409
|
+
return pb_1.Message.getFieldWithDefault(this, 16, 0);
|
|
15410
|
+
}
|
|
15411
|
+
set limit(value) {
|
|
15412
|
+
pb_1.Message.setField(this, 16, value);
|
|
15413
|
+
}
|
|
15414
|
+
get sortBy() {
|
|
15415
|
+
return pb_1.Message.getFieldWithDefault(this, 17, "");
|
|
15416
|
+
}
|
|
15417
|
+
set sortBy(value) {
|
|
15418
|
+
pb_1.Message.setField(this, 17, value);
|
|
15419
|
+
}
|
|
15420
|
+
get sortOrder() {
|
|
15421
|
+
return pb_1.Message.getFieldWithDefault(this, 18, "");
|
|
15422
|
+
}
|
|
15423
|
+
set sortOrder(value) {
|
|
15424
|
+
pb_1.Message.setField(this, 18, value);
|
|
15425
|
+
}
|
|
15426
|
+
get _is_verified() {
|
|
15427
|
+
const cases = {
|
|
15428
|
+
0: "none",
|
|
15429
|
+
8: "isVerified"
|
|
15430
|
+
};
|
|
15431
|
+
return cases[pb_1.Message.computeOneofCase(this, [8])];
|
|
15432
|
+
}
|
|
15433
|
+
get _is_validated() {
|
|
15434
|
+
const cases = {
|
|
15435
|
+
0: "none",
|
|
15436
|
+
9: "isValidated"
|
|
15437
|
+
};
|
|
15438
|
+
return cases[pb_1.Message.computeOneofCase(this, [9])];
|
|
15439
|
+
}
|
|
15440
|
+
get _is_active() {
|
|
15441
|
+
const cases = {
|
|
15442
|
+
0: "none",
|
|
15443
|
+
10: "isActive"
|
|
15444
|
+
};
|
|
15445
|
+
return cases[pb_1.Message.computeOneofCase(this, [10])];
|
|
15446
|
+
}
|
|
15447
|
+
get _has_pin() {
|
|
15448
|
+
const cases = {
|
|
15449
|
+
0: "none",
|
|
15450
|
+
11: "hasPin"
|
|
15451
|
+
};
|
|
15452
|
+
return cases[pb_1.Message.computeOneofCase(this, [11])];
|
|
15453
|
+
}
|
|
15454
|
+
static fromObject(data) {
|
|
15455
|
+
const message = new MerchantFilterRequest({});
|
|
15456
|
+
if (data.id != null) {
|
|
15457
|
+
message.id = data.id;
|
|
15458
|
+
}
|
|
15459
|
+
if (data.email != null) {
|
|
15460
|
+
message.email = data.email;
|
|
15461
|
+
}
|
|
15462
|
+
if (data.phoneNumber != null) {
|
|
15463
|
+
message.phoneNumber = data.phoneNumber;
|
|
15464
|
+
}
|
|
15465
|
+
if (data.accountNumber != null) {
|
|
15466
|
+
message.accountNumber = data.accountNumber;
|
|
15467
|
+
}
|
|
15468
|
+
if (data.bvn != null) {
|
|
15469
|
+
message.bvn = data.bvn;
|
|
15470
|
+
}
|
|
15471
|
+
if (data.nin != null) {
|
|
15472
|
+
message.nin = data.nin;
|
|
15473
|
+
}
|
|
15474
|
+
if (data.businessName != null) {
|
|
15475
|
+
message.businessName = data.businessName;
|
|
15476
|
+
}
|
|
15477
|
+
if (data.isVerified != null) {
|
|
15478
|
+
message.isVerified = data.isVerified;
|
|
15479
|
+
}
|
|
15480
|
+
if (data.isValidated != null) {
|
|
15481
|
+
message.isValidated = data.isValidated;
|
|
15482
|
+
}
|
|
15483
|
+
if (data.isActive != null) {
|
|
15484
|
+
message.isActive = data.isActive;
|
|
15485
|
+
}
|
|
15486
|
+
if (data.hasPin != null) {
|
|
15487
|
+
message.hasPin = data.hasPin;
|
|
15488
|
+
}
|
|
15489
|
+
if (data.search != null) {
|
|
15490
|
+
message.search = data.search;
|
|
15491
|
+
}
|
|
15492
|
+
if (data.from != null) {
|
|
15493
|
+
message.from = data.from;
|
|
15494
|
+
}
|
|
15495
|
+
if (data.to != null) {
|
|
15496
|
+
message.to = data.to;
|
|
15497
|
+
}
|
|
15498
|
+
if (data.page != null) {
|
|
15499
|
+
message.page = data.page;
|
|
15500
|
+
}
|
|
15501
|
+
if (data.limit != null) {
|
|
15502
|
+
message.limit = data.limit;
|
|
15503
|
+
}
|
|
15504
|
+
if (data.sortBy != null) {
|
|
15505
|
+
message.sortBy = data.sortBy;
|
|
15506
|
+
}
|
|
15507
|
+
if (data.sortOrder != null) {
|
|
15508
|
+
message.sortOrder = data.sortOrder;
|
|
15509
|
+
}
|
|
15510
|
+
return message;
|
|
15511
|
+
}
|
|
15512
|
+
toObject() {
|
|
15513
|
+
const data = {};
|
|
15514
|
+
if (this.id != null) {
|
|
15515
|
+
data.id = this.id;
|
|
15516
|
+
}
|
|
15517
|
+
if (this.email != null) {
|
|
15518
|
+
data.email = this.email;
|
|
15519
|
+
}
|
|
15520
|
+
if (this.phoneNumber != null) {
|
|
15521
|
+
data.phoneNumber = this.phoneNumber;
|
|
15522
|
+
}
|
|
15523
|
+
if (this.accountNumber != null) {
|
|
15524
|
+
data.accountNumber = this.accountNumber;
|
|
15525
|
+
}
|
|
15526
|
+
if (this.bvn != null) {
|
|
15527
|
+
data.bvn = this.bvn;
|
|
15528
|
+
}
|
|
15529
|
+
if (this.nin != null) {
|
|
15530
|
+
data.nin = this.nin;
|
|
15531
|
+
}
|
|
15532
|
+
if (this.businessName != null) {
|
|
15533
|
+
data.businessName = this.businessName;
|
|
15534
|
+
}
|
|
15535
|
+
if (this.isVerified != null) {
|
|
15536
|
+
data.isVerified = this.isVerified;
|
|
15537
|
+
}
|
|
15538
|
+
if (this.isValidated != null) {
|
|
15539
|
+
data.isValidated = this.isValidated;
|
|
15540
|
+
}
|
|
15541
|
+
if (this.isActive != null) {
|
|
15542
|
+
data.isActive = this.isActive;
|
|
15543
|
+
}
|
|
15544
|
+
if (this.hasPin != null) {
|
|
15545
|
+
data.hasPin = this.hasPin;
|
|
15546
|
+
}
|
|
15547
|
+
if (this.search != null) {
|
|
15548
|
+
data.search = this.search;
|
|
15549
|
+
}
|
|
15550
|
+
if (this.from != null) {
|
|
15551
|
+
data.from = this.from;
|
|
15552
|
+
}
|
|
15553
|
+
if (this.to != null) {
|
|
15554
|
+
data.to = this.to;
|
|
15555
|
+
}
|
|
15556
|
+
if (this.page != null) {
|
|
15557
|
+
data.page = this.page;
|
|
15558
|
+
}
|
|
15559
|
+
if (this.limit != null) {
|
|
15560
|
+
data.limit = this.limit;
|
|
15561
|
+
}
|
|
15562
|
+
if (this.sortBy != null) {
|
|
15563
|
+
data.sortBy = this.sortBy;
|
|
15564
|
+
}
|
|
15565
|
+
if (this.sortOrder != null) {
|
|
15566
|
+
data.sortOrder = this.sortOrder;
|
|
15567
|
+
}
|
|
15568
|
+
return data;
|
|
15569
|
+
}
|
|
15570
|
+
serialize(w) {
|
|
15571
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
15572
|
+
if (this.id.length)
|
|
15573
|
+
writer.writeString(1, this.id);
|
|
15574
|
+
if (this.email.length)
|
|
15575
|
+
writer.writeString(2, this.email);
|
|
15576
|
+
if (this.phoneNumber.length)
|
|
15577
|
+
writer.writeString(3, this.phoneNumber);
|
|
15578
|
+
if (this.accountNumber.length)
|
|
15579
|
+
writer.writeString(4, this.accountNumber);
|
|
15580
|
+
if (this.bvn.length)
|
|
15581
|
+
writer.writeString(5, this.bvn);
|
|
15582
|
+
if (this.nin.length)
|
|
15583
|
+
writer.writeString(6, this.nin);
|
|
15584
|
+
if (this.businessName.length)
|
|
15585
|
+
writer.writeString(7, this.businessName);
|
|
15586
|
+
if (this.hasIsVerified)
|
|
15587
|
+
writer.writeBool(8, this.isVerified);
|
|
15588
|
+
if (this.hasIsValidated)
|
|
15589
|
+
writer.writeBool(9, this.isValidated);
|
|
15590
|
+
if (this.hasIsActive)
|
|
15591
|
+
writer.writeBool(10, this.isActive);
|
|
15592
|
+
if (this.hasHasPin)
|
|
15593
|
+
writer.writeBool(11, this.hasPin);
|
|
15594
|
+
if (this.search.length)
|
|
15595
|
+
writer.writeString(12, this.search);
|
|
15596
|
+
if (this.from.length)
|
|
15597
|
+
writer.writeString(13, this.from);
|
|
15598
|
+
if (this.to.length)
|
|
15599
|
+
writer.writeString(14, this.to);
|
|
15600
|
+
if (this.page != 0)
|
|
15601
|
+
writer.writeUint32(15, this.page);
|
|
15602
|
+
if (this.limit != 0)
|
|
15603
|
+
writer.writeUint32(16, this.limit);
|
|
15604
|
+
if (this.sortBy.length)
|
|
15605
|
+
writer.writeString(17, this.sortBy);
|
|
15606
|
+
if (this.sortOrder.length)
|
|
15607
|
+
writer.writeString(18, this.sortOrder);
|
|
15608
|
+
if (!w)
|
|
15609
|
+
return writer.getResultBuffer();
|
|
15610
|
+
}
|
|
15611
|
+
static deserialize(bytes) {
|
|
15612
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantFilterRequest();
|
|
15613
|
+
while (reader.nextField()) {
|
|
15614
|
+
if (reader.isEndGroup())
|
|
15615
|
+
break;
|
|
15616
|
+
switch (reader.getFieldNumber()) {
|
|
15617
|
+
case 1:
|
|
15618
|
+
message.id = reader.readString();
|
|
15619
|
+
break;
|
|
15620
|
+
case 2:
|
|
15621
|
+
message.email = reader.readString();
|
|
15622
|
+
break;
|
|
15623
|
+
case 3:
|
|
15624
|
+
message.phoneNumber = reader.readString();
|
|
15625
|
+
break;
|
|
15626
|
+
case 4:
|
|
15627
|
+
message.accountNumber = reader.readString();
|
|
15628
|
+
break;
|
|
15629
|
+
case 5:
|
|
15630
|
+
message.bvn = reader.readString();
|
|
15631
|
+
break;
|
|
15632
|
+
case 6:
|
|
15633
|
+
message.nin = reader.readString();
|
|
15634
|
+
break;
|
|
15635
|
+
case 7:
|
|
15636
|
+
message.businessName = reader.readString();
|
|
15637
|
+
break;
|
|
15638
|
+
case 8:
|
|
15639
|
+
message.isVerified = reader.readBool();
|
|
15640
|
+
break;
|
|
15641
|
+
case 9:
|
|
15642
|
+
message.isValidated = reader.readBool();
|
|
15643
|
+
break;
|
|
15644
|
+
case 10:
|
|
15645
|
+
message.isActive = reader.readBool();
|
|
15646
|
+
break;
|
|
15647
|
+
case 11:
|
|
15648
|
+
message.hasPin = reader.readBool();
|
|
15649
|
+
break;
|
|
15650
|
+
case 12:
|
|
15651
|
+
message.search = reader.readString();
|
|
15652
|
+
break;
|
|
15653
|
+
case 13:
|
|
15654
|
+
message.from = reader.readString();
|
|
15655
|
+
break;
|
|
15656
|
+
case 14:
|
|
15657
|
+
message.to = reader.readString();
|
|
15658
|
+
break;
|
|
15659
|
+
case 15:
|
|
15660
|
+
message.page = reader.readUint32();
|
|
15661
|
+
break;
|
|
15662
|
+
case 16:
|
|
15663
|
+
message.limit = reader.readUint32();
|
|
15664
|
+
break;
|
|
15665
|
+
case 17:
|
|
15666
|
+
message.sortBy = reader.readString();
|
|
15667
|
+
break;
|
|
15668
|
+
case 18:
|
|
15669
|
+
message.sortOrder = reader.readString();
|
|
15670
|
+
break;
|
|
15671
|
+
default: reader.skipField();
|
|
15672
|
+
}
|
|
15673
|
+
}
|
|
15674
|
+
return message;
|
|
15675
|
+
}
|
|
15676
|
+
serializeBinary() {
|
|
15677
|
+
return this.serialize();
|
|
15678
|
+
}
|
|
15679
|
+
static deserializeBinary(bytes) {
|
|
15680
|
+
return MerchantFilterRequest.deserialize(bytes);
|
|
15681
|
+
}
|
|
15682
|
+
}
|
|
15683
|
+
business.MerchantFilterRequest = MerchantFilterRequest;
|
|
15684
|
+
class MerchantLookupRequest extends pb_1.Message {
|
|
15685
|
+
#one_of_decls = [];
|
|
15686
|
+
constructor(data) {
|
|
15687
|
+
super();
|
|
15688
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
15689
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
15690
|
+
if ("id" in data && data.id != undefined) {
|
|
15691
|
+
this.id = data.id;
|
|
15692
|
+
}
|
|
15693
|
+
if ("email" in data && data.email != undefined) {
|
|
15694
|
+
this.email = data.email;
|
|
15695
|
+
}
|
|
15696
|
+
if ("accountNumber" in data && data.accountNumber != undefined) {
|
|
15697
|
+
this.accountNumber = data.accountNumber;
|
|
15698
|
+
}
|
|
15699
|
+
}
|
|
15700
|
+
}
|
|
15701
|
+
get id() {
|
|
15702
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
15703
|
+
}
|
|
15704
|
+
set id(value) {
|
|
15705
|
+
pb_1.Message.setField(this, 1, value);
|
|
15706
|
+
}
|
|
15707
|
+
get email() {
|
|
15708
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15709
|
+
}
|
|
15710
|
+
set email(value) {
|
|
15711
|
+
pb_1.Message.setField(this, 2, value);
|
|
15712
|
+
}
|
|
15713
|
+
get accountNumber() {
|
|
15714
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
15715
|
+
}
|
|
15716
|
+
set accountNumber(value) {
|
|
15717
|
+
pb_1.Message.setField(this, 3, value);
|
|
15718
|
+
}
|
|
15719
|
+
static fromObject(data) {
|
|
15720
|
+
const message = new MerchantLookupRequest({});
|
|
15721
|
+
if (data.id != null) {
|
|
15722
|
+
message.id = data.id;
|
|
15723
|
+
}
|
|
15724
|
+
if (data.email != null) {
|
|
15725
|
+
message.email = data.email;
|
|
15726
|
+
}
|
|
15727
|
+
if (data.accountNumber != null) {
|
|
15728
|
+
message.accountNumber = data.accountNumber;
|
|
15729
|
+
}
|
|
15730
|
+
return message;
|
|
15731
|
+
}
|
|
15732
|
+
toObject() {
|
|
15733
|
+
const data = {};
|
|
15734
|
+
if (this.id != null) {
|
|
15735
|
+
data.id = this.id;
|
|
15736
|
+
}
|
|
15737
|
+
if (this.email != null) {
|
|
15738
|
+
data.email = this.email;
|
|
15739
|
+
}
|
|
15740
|
+
if (this.accountNumber != null) {
|
|
15741
|
+
data.accountNumber = this.accountNumber;
|
|
15742
|
+
}
|
|
15743
|
+
return data;
|
|
15744
|
+
}
|
|
15745
|
+
serialize(w) {
|
|
15746
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
15747
|
+
if (this.id.length)
|
|
15748
|
+
writer.writeString(1, this.id);
|
|
15749
|
+
if (this.email.length)
|
|
15750
|
+
writer.writeString(2, this.email);
|
|
15751
|
+
if (this.accountNumber.length)
|
|
15752
|
+
writer.writeString(3, this.accountNumber);
|
|
15753
|
+
if (!w)
|
|
15754
|
+
return writer.getResultBuffer();
|
|
15755
|
+
}
|
|
15756
|
+
static deserialize(bytes) {
|
|
15757
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantLookupRequest();
|
|
15758
|
+
while (reader.nextField()) {
|
|
15759
|
+
if (reader.isEndGroup())
|
|
15760
|
+
break;
|
|
15761
|
+
switch (reader.getFieldNumber()) {
|
|
15762
|
+
case 1:
|
|
15763
|
+
message.id = reader.readString();
|
|
15764
|
+
break;
|
|
15765
|
+
case 2:
|
|
15766
|
+
message.email = reader.readString();
|
|
15767
|
+
break;
|
|
15768
|
+
case 3:
|
|
15769
|
+
message.accountNumber = reader.readString();
|
|
15770
|
+
break;
|
|
15771
|
+
default: reader.skipField();
|
|
15772
|
+
}
|
|
15773
|
+
}
|
|
15774
|
+
return message;
|
|
15775
|
+
}
|
|
15776
|
+
serializeBinary() {
|
|
15777
|
+
return this.serialize();
|
|
15778
|
+
}
|
|
15779
|
+
static deserializeBinary(bytes) {
|
|
15780
|
+
return MerchantLookupRequest.deserialize(bytes);
|
|
15781
|
+
}
|
|
15782
|
+
}
|
|
15783
|
+
business.MerchantLookupRequest = MerchantLookupRequest;
|
|
15784
|
+
class MerchantData extends pb_1.Message {
|
|
15785
|
+
#one_of_decls = [];
|
|
15786
|
+
constructor(data) {
|
|
15787
|
+
super();
|
|
15788
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
15789
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
15790
|
+
if ("id" in data && data.id != undefined) {
|
|
15791
|
+
this.id = data.id;
|
|
15792
|
+
}
|
|
15793
|
+
if ("email" in data && data.email != undefined) {
|
|
15794
|
+
this.email = data.email;
|
|
15795
|
+
}
|
|
15796
|
+
if ("phoneNumber" in data && data.phoneNumber != undefined) {
|
|
15797
|
+
this.phoneNumber = data.phoneNumber;
|
|
15798
|
+
}
|
|
15799
|
+
if ("businessName" in data && data.businessName != undefined) {
|
|
15800
|
+
this.businessName = data.businessName;
|
|
15801
|
+
}
|
|
15802
|
+
if ("accountNumber" in data && data.accountNumber != undefined) {
|
|
15803
|
+
this.accountNumber = data.accountNumber;
|
|
15804
|
+
}
|
|
15805
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
15806
|
+
this.bvn = data.bvn;
|
|
15807
|
+
}
|
|
15808
|
+
if ("nin" in data && data.nin != undefined) {
|
|
15809
|
+
this.nin = data.nin;
|
|
15810
|
+
}
|
|
15811
|
+
if ("isVerified" in data && data.isVerified != undefined) {
|
|
15812
|
+
this.isVerified = data.isVerified;
|
|
15813
|
+
}
|
|
15814
|
+
if ("isValidated" in data && data.isValidated != undefined) {
|
|
15815
|
+
this.isValidated = data.isValidated;
|
|
15816
|
+
}
|
|
15817
|
+
if ("isActive" in data && data.isActive != undefined) {
|
|
15818
|
+
this.isActive = data.isActive;
|
|
15819
|
+
}
|
|
15820
|
+
if ("hasPin" in data && data.hasPin != undefined) {
|
|
15821
|
+
this.hasPin = data.hasPin;
|
|
15822
|
+
}
|
|
15823
|
+
if ("createdAt" in data && data.createdAt != undefined) {
|
|
15824
|
+
this.createdAt = data.createdAt;
|
|
15825
|
+
}
|
|
15826
|
+
if ("updatedAt" in data && data.updatedAt != undefined) {
|
|
15827
|
+
this.updatedAt = data.updatedAt;
|
|
15828
|
+
}
|
|
15829
|
+
}
|
|
15830
|
+
}
|
|
15831
|
+
get id() {
|
|
15832
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
15833
|
+
}
|
|
15834
|
+
set id(value) {
|
|
15835
|
+
pb_1.Message.setField(this, 1, value);
|
|
15836
|
+
}
|
|
15837
|
+
get email() {
|
|
15838
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15839
|
+
}
|
|
15840
|
+
set email(value) {
|
|
15841
|
+
pb_1.Message.setField(this, 2, value);
|
|
15842
|
+
}
|
|
15843
|
+
get phoneNumber() {
|
|
15844
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
15845
|
+
}
|
|
15846
|
+
set phoneNumber(value) {
|
|
15847
|
+
pb_1.Message.setField(this, 3, value);
|
|
15848
|
+
}
|
|
15849
|
+
get businessName() {
|
|
15850
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
15851
|
+
}
|
|
15852
|
+
set businessName(value) {
|
|
15853
|
+
pb_1.Message.setField(this, 4, value);
|
|
15854
|
+
}
|
|
15855
|
+
get accountNumber() {
|
|
15856
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
15857
|
+
}
|
|
15858
|
+
set accountNumber(value) {
|
|
15859
|
+
pb_1.Message.setField(this, 5, value);
|
|
15860
|
+
}
|
|
15861
|
+
get bvn() {
|
|
15862
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
15863
|
+
}
|
|
15864
|
+
set bvn(value) {
|
|
15865
|
+
pb_1.Message.setField(this, 6, value);
|
|
15866
|
+
}
|
|
15867
|
+
get nin() {
|
|
15868
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
15869
|
+
}
|
|
15870
|
+
set nin(value) {
|
|
15871
|
+
pb_1.Message.setField(this, 7, value);
|
|
15872
|
+
}
|
|
15873
|
+
get isVerified() {
|
|
15874
|
+
return pb_1.Message.getFieldWithDefault(this, 8, false);
|
|
15875
|
+
}
|
|
15876
|
+
set isVerified(value) {
|
|
15877
|
+
pb_1.Message.setField(this, 8, value);
|
|
15878
|
+
}
|
|
15879
|
+
get isValidated() {
|
|
15880
|
+
return pb_1.Message.getFieldWithDefault(this, 9, false);
|
|
15881
|
+
}
|
|
15882
|
+
set isValidated(value) {
|
|
15883
|
+
pb_1.Message.setField(this, 9, value);
|
|
15884
|
+
}
|
|
15885
|
+
get isActive() {
|
|
15886
|
+
return pb_1.Message.getFieldWithDefault(this, 10, false);
|
|
15887
|
+
}
|
|
15888
|
+
set isActive(value) {
|
|
15889
|
+
pb_1.Message.setField(this, 10, value);
|
|
15890
|
+
}
|
|
15891
|
+
get hasPin() {
|
|
15892
|
+
return pb_1.Message.getFieldWithDefault(this, 11, false);
|
|
15893
|
+
}
|
|
15894
|
+
set hasPin(value) {
|
|
15895
|
+
pb_1.Message.setField(this, 11, value);
|
|
15896
|
+
}
|
|
15897
|
+
get createdAt() {
|
|
15898
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
15899
|
+
}
|
|
15900
|
+
set createdAt(value) {
|
|
15901
|
+
pb_1.Message.setField(this, 12, value);
|
|
15902
|
+
}
|
|
15903
|
+
get updatedAt() {
|
|
15904
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
15905
|
+
}
|
|
15906
|
+
set updatedAt(value) {
|
|
15907
|
+
pb_1.Message.setField(this, 13, value);
|
|
15908
|
+
}
|
|
15909
|
+
static fromObject(data) {
|
|
15910
|
+
const message = new MerchantData({});
|
|
15911
|
+
if (data.id != null) {
|
|
15912
|
+
message.id = data.id;
|
|
15913
|
+
}
|
|
15914
|
+
if (data.email != null) {
|
|
15915
|
+
message.email = data.email;
|
|
15916
|
+
}
|
|
15917
|
+
if (data.phoneNumber != null) {
|
|
15918
|
+
message.phoneNumber = data.phoneNumber;
|
|
15919
|
+
}
|
|
15920
|
+
if (data.businessName != null) {
|
|
15921
|
+
message.businessName = data.businessName;
|
|
15922
|
+
}
|
|
15923
|
+
if (data.accountNumber != null) {
|
|
15924
|
+
message.accountNumber = data.accountNumber;
|
|
15925
|
+
}
|
|
15926
|
+
if (data.bvn != null) {
|
|
15927
|
+
message.bvn = data.bvn;
|
|
15928
|
+
}
|
|
15929
|
+
if (data.nin != null) {
|
|
15930
|
+
message.nin = data.nin;
|
|
15931
|
+
}
|
|
15932
|
+
if (data.isVerified != null) {
|
|
15933
|
+
message.isVerified = data.isVerified;
|
|
15934
|
+
}
|
|
15935
|
+
if (data.isValidated != null) {
|
|
15936
|
+
message.isValidated = data.isValidated;
|
|
15937
|
+
}
|
|
15938
|
+
if (data.isActive != null) {
|
|
15939
|
+
message.isActive = data.isActive;
|
|
15940
|
+
}
|
|
15941
|
+
if (data.hasPin != null) {
|
|
15942
|
+
message.hasPin = data.hasPin;
|
|
15943
|
+
}
|
|
15944
|
+
if (data.createdAt != null) {
|
|
15945
|
+
message.createdAt = data.createdAt;
|
|
15946
|
+
}
|
|
15947
|
+
if (data.updatedAt != null) {
|
|
15948
|
+
message.updatedAt = data.updatedAt;
|
|
15949
|
+
}
|
|
15950
|
+
return message;
|
|
15951
|
+
}
|
|
15952
|
+
toObject() {
|
|
15953
|
+
const data = {};
|
|
15954
|
+
if (this.id != null) {
|
|
15955
|
+
data.id = this.id;
|
|
15956
|
+
}
|
|
15957
|
+
if (this.email != null) {
|
|
15958
|
+
data.email = this.email;
|
|
15959
|
+
}
|
|
15960
|
+
if (this.phoneNumber != null) {
|
|
15961
|
+
data.phoneNumber = this.phoneNumber;
|
|
15962
|
+
}
|
|
15963
|
+
if (this.businessName != null) {
|
|
15964
|
+
data.businessName = this.businessName;
|
|
15965
|
+
}
|
|
15966
|
+
if (this.accountNumber != null) {
|
|
15967
|
+
data.accountNumber = this.accountNumber;
|
|
15968
|
+
}
|
|
15969
|
+
if (this.bvn != null) {
|
|
15970
|
+
data.bvn = this.bvn;
|
|
15971
|
+
}
|
|
15972
|
+
if (this.nin != null) {
|
|
15973
|
+
data.nin = this.nin;
|
|
15974
|
+
}
|
|
15975
|
+
if (this.isVerified != null) {
|
|
15976
|
+
data.isVerified = this.isVerified;
|
|
15977
|
+
}
|
|
15978
|
+
if (this.isValidated != null) {
|
|
15979
|
+
data.isValidated = this.isValidated;
|
|
15980
|
+
}
|
|
15981
|
+
if (this.isActive != null) {
|
|
15982
|
+
data.isActive = this.isActive;
|
|
15983
|
+
}
|
|
15984
|
+
if (this.hasPin != null) {
|
|
15985
|
+
data.hasPin = this.hasPin;
|
|
15986
|
+
}
|
|
15987
|
+
if (this.createdAt != null) {
|
|
15988
|
+
data.createdAt = this.createdAt;
|
|
15989
|
+
}
|
|
15990
|
+
if (this.updatedAt != null) {
|
|
15991
|
+
data.updatedAt = this.updatedAt;
|
|
15992
|
+
}
|
|
15993
|
+
return data;
|
|
15994
|
+
}
|
|
15995
|
+
serialize(w) {
|
|
15996
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
15997
|
+
if (this.id.length)
|
|
15998
|
+
writer.writeString(1, this.id);
|
|
15999
|
+
if (this.email.length)
|
|
16000
|
+
writer.writeString(2, this.email);
|
|
16001
|
+
if (this.phoneNumber.length)
|
|
16002
|
+
writer.writeString(3, this.phoneNumber);
|
|
16003
|
+
if (this.businessName.length)
|
|
16004
|
+
writer.writeString(4, this.businessName);
|
|
16005
|
+
if (this.accountNumber.length)
|
|
16006
|
+
writer.writeString(5, this.accountNumber);
|
|
16007
|
+
if (this.bvn.length)
|
|
16008
|
+
writer.writeString(6, this.bvn);
|
|
16009
|
+
if (this.nin.length)
|
|
16010
|
+
writer.writeString(7, this.nin);
|
|
16011
|
+
if (this.isVerified != false)
|
|
16012
|
+
writer.writeBool(8, this.isVerified);
|
|
16013
|
+
if (this.isValidated != false)
|
|
16014
|
+
writer.writeBool(9, this.isValidated);
|
|
16015
|
+
if (this.isActive != false)
|
|
16016
|
+
writer.writeBool(10, this.isActive);
|
|
16017
|
+
if (this.hasPin != false)
|
|
16018
|
+
writer.writeBool(11, this.hasPin);
|
|
16019
|
+
if (this.createdAt.length)
|
|
16020
|
+
writer.writeString(12, this.createdAt);
|
|
16021
|
+
if (this.updatedAt.length)
|
|
16022
|
+
writer.writeString(13, this.updatedAt);
|
|
16023
|
+
if (!w)
|
|
16024
|
+
return writer.getResultBuffer();
|
|
16025
|
+
}
|
|
16026
|
+
static deserialize(bytes) {
|
|
16027
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantData();
|
|
16028
|
+
while (reader.nextField()) {
|
|
16029
|
+
if (reader.isEndGroup())
|
|
16030
|
+
break;
|
|
16031
|
+
switch (reader.getFieldNumber()) {
|
|
16032
|
+
case 1:
|
|
16033
|
+
message.id = reader.readString();
|
|
16034
|
+
break;
|
|
16035
|
+
case 2:
|
|
16036
|
+
message.email = reader.readString();
|
|
16037
|
+
break;
|
|
16038
|
+
case 3:
|
|
16039
|
+
message.phoneNumber = reader.readString();
|
|
16040
|
+
break;
|
|
16041
|
+
case 4:
|
|
16042
|
+
message.businessName = reader.readString();
|
|
16043
|
+
break;
|
|
16044
|
+
case 5:
|
|
16045
|
+
message.accountNumber = reader.readString();
|
|
16046
|
+
break;
|
|
16047
|
+
case 6:
|
|
16048
|
+
message.bvn = reader.readString();
|
|
16049
|
+
break;
|
|
16050
|
+
case 7:
|
|
16051
|
+
message.nin = reader.readString();
|
|
16052
|
+
break;
|
|
16053
|
+
case 8:
|
|
16054
|
+
message.isVerified = reader.readBool();
|
|
16055
|
+
break;
|
|
16056
|
+
case 9:
|
|
16057
|
+
message.isValidated = reader.readBool();
|
|
16058
|
+
break;
|
|
16059
|
+
case 10:
|
|
16060
|
+
message.isActive = reader.readBool();
|
|
16061
|
+
break;
|
|
16062
|
+
case 11:
|
|
16063
|
+
message.hasPin = reader.readBool();
|
|
16064
|
+
break;
|
|
16065
|
+
case 12:
|
|
16066
|
+
message.createdAt = reader.readString();
|
|
16067
|
+
break;
|
|
16068
|
+
case 13:
|
|
16069
|
+
message.updatedAt = reader.readString();
|
|
16070
|
+
break;
|
|
16071
|
+
default: reader.skipField();
|
|
16072
|
+
}
|
|
16073
|
+
}
|
|
16074
|
+
return message;
|
|
16075
|
+
}
|
|
16076
|
+
serializeBinary() {
|
|
16077
|
+
return this.serialize();
|
|
16078
|
+
}
|
|
16079
|
+
static deserializeBinary(bytes) {
|
|
16080
|
+
return MerchantData.deserialize(bytes);
|
|
16081
|
+
}
|
|
16082
|
+
}
|
|
16083
|
+
business.MerchantData = MerchantData;
|
|
16084
|
+
class MerchantDataResponse extends pb_1.Message {
|
|
16085
|
+
#one_of_decls = [];
|
|
16086
|
+
constructor(data) {
|
|
16087
|
+
super();
|
|
16088
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6], this.#one_of_decls);
|
|
16089
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16090
|
+
if ("success" in data && data.success != undefined) {
|
|
16091
|
+
this.success = data.success;
|
|
16092
|
+
}
|
|
16093
|
+
if ("status" in data && data.status != undefined) {
|
|
16094
|
+
this.status = data.status;
|
|
16095
|
+
}
|
|
16096
|
+
if ("data" in data && data.data != undefined) {
|
|
16097
|
+
this.data = data.data;
|
|
16098
|
+
}
|
|
16099
|
+
if ("error" in data && data.error != undefined) {
|
|
16100
|
+
this.error = data.error;
|
|
16101
|
+
}
|
|
16102
|
+
if ("message" in data && data.message != undefined) {
|
|
16103
|
+
this.message = data.message;
|
|
16104
|
+
}
|
|
16105
|
+
if ("errors" in data && data.errors != undefined) {
|
|
16106
|
+
this.errors = data.errors;
|
|
16107
|
+
}
|
|
16108
|
+
}
|
|
16109
|
+
}
|
|
16110
|
+
get success() {
|
|
16111
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
16112
|
+
}
|
|
16113
|
+
set success(value) {
|
|
16114
|
+
pb_1.Message.setField(this, 1, value);
|
|
16115
|
+
}
|
|
16116
|
+
get status() {
|
|
16117
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16118
|
+
}
|
|
16119
|
+
set status(value) {
|
|
16120
|
+
pb_1.Message.setField(this, 2, value);
|
|
16121
|
+
}
|
|
16122
|
+
get data() {
|
|
16123
|
+
return pb_1.Message.getWrapperField(this, MerchantData, 3);
|
|
16124
|
+
}
|
|
16125
|
+
set data(value) {
|
|
16126
|
+
pb_1.Message.setWrapperField(this, 3, value);
|
|
16127
|
+
}
|
|
16128
|
+
get hasData() {
|
|
16129
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
16130
|
+
}
|
|
16131
|
+
get error() {
|
|
16132
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16133
|
+
}
|
|
16134
|
+
set error(value) {
|
|
16135
|
+
pb_1.Message.setField(this, 4, value);
|
|
16136
|
+
}
|
|
16137
|
+
get message() {
|
|
16138
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
16139
|
+
}
|
|
16140
|
+
set message(value) {
|
|
16141
|
+
pb_1.Message.setField(this, 5, value);
|
|
16142
|
+
}
|
|
16143
|
+
get errors() {
|
|
16144
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 6);
|
|
16145
|
+
}
|
|
16146
|
+
set errors(value) {
|
|
16147
|
+
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
16148
|
+
}
|
|
16149
|
+
static fromObject(data) {
|
|
16150
|
+
const message = new MerchantDataResponse({});
|
|
16151
|
+
if (data.success != null) {
|
|
16152
|
+
message.success = data.success;
|
|
16153
|
+
}
|
|
16154
|
+
if (data.status != null) {
|
|
16155
|
+
message.status = data.status;
|
|
16156
|
+
}
|
|
16157
|
+
if (data.data != null) {
|
|
16158
|
+
message.data = MerchantData.fromObject(data.data);
|
|
16159
|
+
}
|
|
16160
|
+
if (data.error != null) {
|
|
16161
|
+
message.error = data.error;
|
|
16162
|
+
}
|
|
16163
|
+
if (data.message != null) {
|
|
16164
|
+
message.message = data.message;
|
|
16165
|
+
}
|
|
16166
|
+
if (data.errors != null) {
|
|
16167
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16168
|
+
}
|
|
16169
|
+
return message;
|
|
16170
|
+
}
|
|
16171
|
+
toObject() {
|
|
16172
|
+
const data = {};
|
|
16173
|
+
if (this.success != null) {
|
|
16174
|
+
data.success = this.success;
|
|
16175
|
+
}
|
|
16176
|
+
if (this.status != null) {
|
|
16177
|
+
data.status = this.status;
|
|
16178
|
+
}
|
|
16179
|
+
if (this.data != null) {
|
|
16180
|
+
data.data = this.data.toObject();
|
|
16181
|
+
}
|
|
16182
|
+
if (this.error != null) {
|
|
16183
|
+
data.error = this.error;
|
|
16184
|
+
}
|
|
16185
|
+
if (this.message != null) {
|
|
16186
|
+
data.message = this.message;
|
|
16187
|
+
}
|
|
16188
|
+
if (this.errors != null) {
|
|
16189
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
16190
|
+
}
|
|
16191
|
+
return data;
|
|
16192
|
+
}
|
|
16193
|
+
serialize(w) {
|
|
16194
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16195
|
+
if (this.success != false)
|
|
16196
|
+
writer.writeBool(1, this.success);
|
|
16197
|
+
if (this.status.length)
|
|
16198
|
+
writer.writeString(2, this.status);
|
|
16199
|
+
if (this.hasData)
|
|
16200
|
+
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
16201
|
+
if (this.error.length)
|
|
16202
|
+
writer.writeString(4, this.error);
|
|
16203
|
+
if (this.message.length)
|
|
16204
|
+
writer.writeString(5, this.message);
|
|
16205
|
+
if (this.errors.length)
|
|
16206
|
+
writer.writeRepeatedMessage(6, this.errors, (item) => item.serialize(writer));
|
|
16207
|
+
if (!w)
|
|
16208
|
+
return writer.getResultBuffer();
|
|
16209
|
+
}
|
|
16210
|
+
static deserialize(bytes) {
|
|
16211
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantDataResponse();
|
|
16212
|
+
while (reader.nextField()) {
|
|
16213
|
+
if (reader.isEndGroup())
|
|
16214
|
+
break;
|
|
16215
|
+
switch (reader.getFieldNumber()) {
|
|
16216
|
+
case 1:
|
|
16217
|
+
message.success = reader.readBool();
|
|
16218
|
+
break;
|
|
16219
|
+
case 2:
|
|
16220
|
+
message.status = reader.readString();
|
|
16221
|
+
break;
|
|
16222
|
+
case 3:
|
|
16223
|
+
reader.readMessage(message.data, () => message.data = MerchantData.deserialize(reader));
|
|
16224
|
+
break;
|
|
16225
|
+
case 4:
|
|
16226
|
+
message.error = reader.readString();
|
|
16227
|
+
break;
|
|
16228
|
+
case 5:
|
|
16229
|
+
message.message = reader.readString();
|
|
16230
|
+
break;
|
|
16231
|
+
case 6:
|
|
16232
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16233
|
+
break;
|
|
16234
|
+
default: reader.skipField();
|
|
16235
|
+
}
|
|
16236
|
+
}
|
|
16237
|
+
return message;
|
|
16238
|
+
}
|
|
16239
|
+
serializeBinary() {
|
|
16240
|
+
return this.serialize();
|
|
16241
|
+
}
|
|
16242
|
+
static deserializeBinary(bytes) {
|
|
16243
|
+
return MerchantDataResponse.deserialize(bytes);
|
|
16244
|
+
}
|
|
16245
|
+
}
|
|
16246
|
+
business.MerchantDataResponse = MerchantDataResponse;
|
|
16247
|
+
class MMerchantDataResponse extends pb_1.Message {
|
|
16248
|
+
#one_of_decls = [];
|
|
16249
|
+
constructor(data) {
|
|
16250
|
+
super();
|
|
16251
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7], this.#one_of_decls);
|
|
16252
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16253
|
+
if ("success" in data && data.success != undefined) {
|
|
16254
|
+
this.success = data.success;
|
|
16255
|
+
}
|
|
16256
|
+
if ("status" in data && data.status != undefined) {
|
|
16257
|
+
this.status = data.status;
|
|
16258
|
+
}
|
|
16259
|
+
if ("data" in data && data.data != undefined) {
|
|
16260
|
+
this.data = data.data;
|
|
16261
|
+
}
|
|
16262
|
+
if ("error" in data && data.error != undefined) {
|
|
16263
|
+
this.error = data.error;
|
|
16264
|
+
}
|
|
16265
|
+
if ("message" in data && data.message != undefined) {
|
|
16266
|
+
this.message = data.message;
|
|
16267
|
+
}
|
|
16268
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
16269
|
+
this.pagination = data.pagination;
|
|
16270
|
+
}
|
|
16271
|
+
if ("errors" in data && data.errors != undefined) {
|
|
16272
|
+
this.errors = data.errors;
|
|
16273
|
+
}
|
|
16274
|
+
}
|
|
16275
|
+
}
|
|
16276
|
+
get success() {
|
|
16277
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
16278
|
+
}
|
|
16279
|
+
set success(value) {
|
|
16280
|
+
pb_1.Message.setField(this, 1, value);
|
|
16281
|
+
}
|
|
16282
|
+
get status() {
|
|
16283
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16284
|
+
}
|
|
16285
|
+
set status(value) {
|
|
16286
|
+
pb_1.Message.setField(this, 2, value);
|
|
16287
|
+
}
|
|
16288
|
+
get data() {
|
|
16289
|
+
return pb_1.Message.getRepeatedWrapperField(this, MerchantData, 3);
|
|
16290
|
+
}
|
|
16291
|
+
set data(value) {
|
|
16292
|
+
pb_1.Message.setRepeatedWrapperField(this, 3, value);
|
|
16293
|
+
}
|
|
16294
|
+
get error() {
|
|
16295
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16296
|
+
}
|
|
16297
|
+
set error(value) {
|
|
16298
|
+
pb_1.Message.setField(this, 4, value);
|
|
16299
|
+
}
|
|
16300
|
+
get message() {
|
|
16301
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
16302
|
+
}
|
|
16303
|
+
set message(value) {
|
|
16304
|
+
pb_1.Message.setField(this, 5, value);
|
|
16305
|
+
}
|
|
16306
|
+
get pagination() {
|
|
16307
|
+
return pb_1.Message.getWrapperField(this, Pagination, 6);
|
|
16308
|
+
}
|
|
16309
|
+
set pagination(value) {
|
|
16310
|
+
pb_1.Message.setWrapperField(this, 6, value);
|
|
16311
|
+
}
|
|
16312
|
+
get hasPagination() {
|
|
16313
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
16314
|
+
}
|
|
16315
|
+
get errors() {
|
|
16316
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 7);
|
|
16317
|
+
}
|
|
16318
|
+
set errors(value) {
|
|
16319
|
+
pb_1.Message.setRepeatedWrapperField(this, 7, value);
|
|
16320
|
+
}
|
|
16321
|
+
static fromObject(data) {
|
|
16322
|
+
const message = new MMerchantDataResponse({});
|
|
16323
|
+
if (data.success != null) {
|
|
16324
|
+
message.success = data.success;
|
|
16325
|
+
}
|
|
16326
|
+
if (data.status != null) {
|
|
16327
|
+
message.status = data.status;
|
|
16328
|
+
}
|
|
16329
|
+
if (data.data != null) {
|
|
16330
|
+
message.data = data.data.map(item => MerchantData.fromObject(item));
|
|
16331
|
+
}
|
|
16332
|
+
if (data.error != null) {
|
|
16333
|
+
message.error = data.error;
|
|
16334
|
+
}
|
|
16335
|
+
if (data.message != null) {
|
|
16336
|
+
message.message = data.message;
|
|
16337
|
+
}
|
|
16338
|
+
if (data.pagination != null) {
|
|
16339
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
16340
|
+
}
|
|
16341
|
+
if (data.errors != null) {
|
|
16342
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16343
|
+
}
|
|
16344
|
+
return message;
|
|
16345
|
+
}
|
|
16346
|
+
toObject() {
|
|
16347
|
+
const data = {};
|
|
16348
|
+
if (this.success != null) {
|
|
16349
|
+
data.success = this.success;
|
|
16350
|
+
}
|
|
16351
|
+
if (this.status != null) {
|
|
16352
|
+
data.status = this.status;
|
|
16353
|
+
}
|
|
16354
|
+
if (this.data != null) {
|
|
16355
|
+
data.data = this.data.map((item) => item.toObject());
|
|
16356
|
+
}
|
|
16357
|
+
if (this.error != null) {
|
|
16358
|
+
data.error = this.error;
|
|
16359
|
+
}
|
|
16360
|
+
if (this.message != null) {
|
|
16361
|
+
data.message = this.message;
|
|
16362
|
+
}
|
|
16363
|
+
if (this.pagination != null) {
|
|
16364
|
+
data.pagination = this.pagination.toObject();
|
|
16365
|
+
}
|
|
16366
|
+
if (this.errors != null) {
|
|
16367
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
16368
|
+
}
|
|
16369
|
+
return data;
|
|
16370
|
+
}
|
|
16371
|
+
serialize(w) {
|
|
16372
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16373
|
+
if (this.success != false)
|
|
16374
|
+
writer.writeBool(1, this.success);
|
|
16375
|
+
if (this.status.length)
|
|
16376
|
+
writer.writeString(2, this.status);
|
|
16377
|
+
if (this.data.length)
|
|
16378
|
+
writer.writeRepeatedMessage(3, this.data, (item) => item.serialize(writer));
|
|
16379
|
+
if (this.error.length)
|
|
16380
|
+
writer.writeString(4, this.error);
|
|
16381
|
+
if (this.message.length)
|
|
16382
|
+
writer.writeString(5, this.message);
|
|
16383
|
+
if (this.hasPagination)
|
|
16384
|
+
writer.writeMessage(6, this.pagination, () => this.pagination.serialize(writer));
|
|
16385
|
+
if (this.errors.length)
|
|
16386
|
+
writer.writeRepeatedMessage(7, this.errors, (item) => item.serialize(writer));
|
|
16387
|
+
if (!w)
|
|
16388
|
+
return writer.getResultBuffer();
|
|
16389
|
+
}
|
|
16390
|
+
static deserialize(bytes) {
|
|
16391
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MMerchantDataResponse();
|
|
16392
|
+
while (reader.nextField()) {
|
|
16393
|
+
if (reader.isEndGroup())
|
|
16394
|
+
break;
|
|
16395
|
+
switch (reader.getFieldNumber()) {
|
|
16396
|
+
case 1:
|
|
16397
|
+
message.success = reader.readBool();
|
|
16398
|
+
break;
|
|
16399
|
+
case 2:
|
|
16400
|
+
message.status = reader.readString();
|
|
16401
|
+
break;
|
|
16402
|
+
case 3:
|
|
16403
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 3, MerchantData.deserialize(reader), MerchantData));
|
|
16404
|
+
break;
|
|
16405
|
+
case 4:
|
|
16406
|
+
message.error = reader.readString();
|
|
16407
|
+
break;
|
|
16408
|
+
case 5:
|
|
16409
|
+
message.message = reader.readString();
|
|
16410
|
+
break;
|
|
16411
|
+
case 6:
|
|
16412
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
16413
|
+
break;
|
|
16414
|
+
case 7:
|
|
16415
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16416
|
+
break;
|
|
16417
|
+
default: reader.skipField();
|
|
16418
|
+
}
|
|
16419
|
+
}
|
|
16420
|
+
return message;
|
|
16421
|
+
}
|
|
16422
|
+
serializeBinary() {
|
|
16423
|
+
return this.serialize();
|
|
16424
|
+
}
|
|
16425
|
+
static deserializeBinary(bytes) {
|
|
16426
|
+
return MMerchantDataResponse.deserialize(bytes);
|
|
16427
|
+
}
|
|
16428
|
+
}
|
|
16429
|
+
business.MMerchantDataResponse = MMerchantDataResponse;
|
|
15244
16430
|
class UnimplementedBusinessService {
|
|
15245
16431
|
static definition = {
|
|
15246
16432
|
CreateBusiness: {
|
|
@@ -15665,6 +16851,24 @@ var com;
|
|
|
15665
16851
|
requestDeserialize: (bytes) => PaginatedRequest.deserialize(new Uint8Array(bytes)),
|
|
15666
16852
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
15667
16853
|
responseDeserialize: (bytes) => BusinessIndustryDataResponse.deserialize(new Uint8Array(bytes))
|
|
16854
|
+
},
|
|
16855
|
+
GetMerchants: {
|
|
16856
|
+
path: "/com.pkg.business.Business/GetMerchants",
|
|
16857
|
+
requestStream: false,
|
|
16858
|
+
responseStream: false,
|
|
16859
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
16860
|
+
requestDeserialize: (bytes) => MerchantFilterRequest.deserialize(new Uint8Array(bytes)),
|
|
16861
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
16862
|
+
responseDeserialize: (bytes) => MMerchantDataResponse.deserialize(new Uint8Array(bytes))
|
|
16863
|
+
},
|
|
16864
|
+
GetMerchant: {
|
|
16865
|
+
path: "/com.pkg.business.Business/GetMerchant",
|
|
16866
|
+
requestStream: false,
|
|
16867
|
+
responseStream: false,
|
|
16868
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
16869
|
+
requestDeserialize: (bytes) => MerchantLookupRequest.deserialize(new Uint8Array(bytes)),
|
|
16870
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
16871
|
+
responseDeserialize: (bytes) => MerchantDataResponse.deserialize(new Uint8Array(bytes))
|
|
15668
16872
|
}
|
|
15669
16873
|
};
|
|
15670
16874
|
}
|
|
@@ -16425,6 +17629,38 @@ var com;
|
|
|
16425
17629
|
}
|
|
16426
17630
|
}));
|
|
16427
17631
|
};
|
|
17632
|
+
GetMerchants = (message, metadata, options) => {
|
|
17633
|
+
if (!metadata) {
|
|
17634
|
+
metadata = new grpc_1.Metadata;
|
|
17635
|
+
}
|
|
17636
|
+
if (!options) {
|
|
17637
|
+
options = {};
|
|
17638
|
+
}
|
|
17639
|
+
return new Promise((resolve, reject) => super.GetMerchants(message, metadata, options, (error, response) => {
|
|
17640
|
+
if (error) {
|
|
17641
|
+
reject(error);
|
|
17642
|
+
}
|
|
17643
|
+
else {
|
|
17644
|
+
resolve(response);
|
|
17645
|
+
}
|
|
17646
|
+
}));
|
|
17647
|
+
};
|
|
17648
|
+
GetMerchant = (message, metadata, options) => {
|
|
17649
|
+
if (!metadata) {
|
|
17650
|
+
metadata = new grpc_1.Metadata;
|
|
17651
|
+
}
|
|
17652
|
+
if (!options) {
|
|
17653
|
+
options = {};
|
|
17654
|
+
}
|
|
17655
|
+
return new Promise((resolve, reject) => super.GetMerchant(message, metadata, options, (error, response) => {
|
|
17656
|
+
if (error) {
|
|
17657
|
+
reject(error);
|
|
17658
|
+
}
|
|
17659
|
+
else {
|
|
17660
|
+
resolve(response);
|
|
17661
|
+
}
|
|
17662
|
+
}));
|
|
17663
|
+
};
|
|
16428
17664
|
}
|
|
16429
17665
|
business.BusinessClient = BusinessClient;
|
|
16430
17666
|
})(business = pkg.business || (pkg.business = {}));
|