@technova-tech/olive-proto-lib 3.2.5 → 3.2.6
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/business/business.js +545 -0
- package/package.json +1 -1
- package/types/business/business.d.ts +147 -0
package/business/business.js
CHANGED
|
@@ -15681,6 +15681,526 @@ var com;
|
|
|
15681
15681
|
}
|
|
15682
15682
|
}
|
|
15683
15683
|
business.MerchantFilterRequest = MerchantFilterRequest;
|
|
15684
|
+
class MerchantFilterRequestV2 extends pb_1.Message {
|
|
15685
|
+
#one_of_decls = [[8], [9], [10], [11]];
|
|
15686
|
+
constructor(data) {
|
|
15687
|
+
super();
|
|
15688
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [19], 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 ("phoneNumber" in data && data.phoneNumber != undefined) {
|
|
15697
|
+
this.phoneNumber = data.phoneNumber;
|
|
15698
|
+
}
|
|
15699
|
+
if ("accountNumber" in data && data.accountNumber != undefined) {
|
|
15700
|
+
this.accountNumber = data.accountNumber;
|
|
15701
|
+
}
|
|
15702
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
15703
|
+
this.bvn = data.bvn;
|
|
15704
|
+
}
|
|
15705
|
+
if ("nin" in data && data.nin != undefined) {
|
|
15706
|
+
this.nin = data.nin;
|
|
15707
|
+
}
|
|
15708
|
+
if ("businessName" in data && data.businessName != undefined) {
|
|
15709
|
+
this.businessName = data.businessName;
|
|
15710
|
+
}
|
|
15711
|
+
if ("isVerified" in data && data.isVerified != undefined) {
|
|
15712
|
+
this.isVerified = data.isVerified;
|
|
15713
|
+
}
|
|
15714
|
+
if ("isValidated" in data && data.isValidated != undefined) {
|
|
15715
|
+
this.isValidated = data.isValidated;
|
|
15716
|
+
}
|
|
15717
|
+
if ("isActive" in data && data.isActive != undefined) {
|
|
15718
|
+
this.isActive = data.isActive;
|
|
15719
|
+
}
|
|
15720
|
+
if ("hasPin" in data && data.hasPin != undefined) {
|
|
15721
|
+
this.hasPin = data.hasPin;
|
|
15722
|
+
}
|
|
15723
|
+
if ("search" in data && data.search != undefined) {
|
|
15724
|
+
this.search = data.search;
|
|
15725
|
+
}
|
|
15726
|
+
if ("from" in data && data.from != undefined) {
|
|
15727
|
+
this.from = data.from;
|
|
15728
|
+
}
|
|
15729
|
+
if ("to" in data && data.to != undefined) {
|
|
15730
|
+
this.to = data.to;
|
|
15731
|
+
}
|
|
15732
|
+
if ("page" in data && data.page != undefined) {
|
|
15733
|
+
this.page = data.page;
|
|
15734
|
+
}
|
|
15735
|
+
if ("limit" in data && data.limit != undefined) {
|
|
15736
|
+
this.limit = data.limit;
|
|
15737
|
+
}
|
|
15738
|
+
if ("sortBy" in data && data.sortBy != undefined) {
|
|
15739
|
+
this.sortBy = data.sortBy;
|
|
15740
|
+
}
|
|
15741
|
+
if ("sortOrder" in data && data.sortOrder != undefined) {
|
|
15742
|
+
this.sortOrder = data.sortOrder;
|
|
15743
|
+
}
|
|
15744
|
+
if ("merchantIds" in data && data.merchantIds != undefined) {
|
|
15745
|
+
this.merchantIds = data.merchantIds;
|
|
15746
|
+
}
|
|
15747
|
+
if ("adminId" in data && data.adminId != undefined) {
|
|
15748
|
+
this.adminId = data.adminId;
|
|
15749
|
+
}
|
|
15750
|
+
if ("dataScope" in data && data.dataScope != undefined) {
|
|
15751
|
+
this.dataScope = data.dataScope;
|
|
15752
|
+
}
|
|
15753
|
+
if ("regionId" in data && data.regionId != undefined) {
|
|
15754
|
+
this.regionId = data.regionId;
|
|
15755
|
+
}
|
|
15756
|
+
}
|
|
15757
|
+
}
|
|
15758
|
+
get id() {
|
|
15759
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
15760
|
+
}
|
|
15761
|
+
set id(value) {
|
|
15762
|
+
pb_1.Message.setField(this, 1, value);
|
|
15763
|
+
}
|
|
15764
|
+
get email() {
|
|
15765
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15766
|
+
}
|
|
15767
|
+
set email(value) {
|
|
15768
|
+
pb_1.Message.setField(this, 2, value);
|
|
15769
|
+
}
|
|
15770
|
+
get phoneNumber() {
|
|
15771
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
15772
|
+
}
|
|
15773
|
+
set phoneNumber(value) {
|
|
15774
|
+
pb_1.Message.setField(this, 3, value);
|
|
15775
|
+
}
|
|
15776
|
+
get accountNumber() {
|
|
15777
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
15778
|
+
}
|
|
15779
|
+
set accountNumber(value) {
|
|
15780
|
+
pb_1.Message.setField(this, 4, value);
|
|
15781
|
+
}
|
|
15782
|
+
get bvn() {
|
|
15783
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
15784
|
+
}
|
|
15785
|
+
set bvn(value) {
|
|
15786
|
+
pb_1.Message.setField(this, 5, value);
|
|
15787
|
+
}
|
|
15788
|
+
get nin() {
|
|
15789
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
15790
|
+
}
|
|
15791
|
+
set nin(value) {
|
|
15792
|
+
pb_1.Message.setField(this, 6, value);
|
|
15793
|
+
}
|
|
15794
|
+
get businessName() {
|
|
15795
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
15796
|
+
}
|
|
15797
|
+
set businessName(value) {
|
|
15798
|
+
pb_1.Message.setField(this, 7, value);
|
|
15799
|
+
}
|
|
15800
|
+
get isVerified() {
|
|
15801
|
+
return pb_1.Message.getFieldWithDefault(this, 8, false);
|
|
15802
|
+
}
|
|
15803
|
+
set isVerified(value) {
|
|
15804
|
+
pb_1.Message.setOneofField(this, 8, this.#one_of_decls[0], value);
|
|
15805
|
+
}
|
|
15806
|
+
get hasIsVerified() {
|
|
15807
|
+
return pb_1.Message.getField(this, 8) != null;
|
|
15808
|
+
}
|
|
15809
|
+
get isValidated() {
|
|
15810
|
+
return pb_1.Message.getFieldWithDefault(this, 9, false);
|
|
15811
|
+
}
|
|
15812
|
+
set isValidated(value) {
|
|
15813
|
+
pb_1.Message.setOneofField(this, 9, this.#one_of_decls[1], value);
|
|
15814
|
+
}
|
|
15815
|
+
get hasIsValidated() {
|
|
15816
|
+
return pb_1.Message.getField(this, 9) != null;
|
|
15817
|
+
}
|
|
15818
|
+
get isActive() {
|
|
15819
|
+
return pb_1.Message.getFieldWithDefault(this, 10, false);
|
|
15820
|
+
}
|
|
15821
|
+
set isActive(value) {
|
|
15822
|
+
pb_1.Message.setOneofField(this, 10, this.#one_of_decls[2], value);
|
|
15823
|
+
}
|
|
15824
|
+
get hasIsActive() {
|
|
15825
|
+
return pb_1.Message.getField(this, 10) != null;
|
|
15826
|
+
}
|
|
15827
|
+
get hasPin() {
|
|
15828
|
+
return pb_1.Message.getFieldWithDefault(this, 11, false);
|
|
15829
|
+
}
|
|
15830
|
+
set hasPin(value) {
|
|
15831
|
+
pb_1.Message.setOneofField(this, 11, this.#one_of_decls[3], value);
|
|
15832
|
+
}
|
|
15833
|
+
get hasHasPin() {
|
|
15834
|
+
return pb_1.Message.getField(this, 11) != null;
|
|
15835
|
+
}
|
|
15836
|
+
get search() {
|
|
15837
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
15838
|
+
}
|
|
15839
|
+
set search(value) {
|
|
15840
|
+
pb_1.Message.setField(this, 12, value);
|
|
15841
|
+
}
|
|
15842
|
+
get from() {
|
|
15843
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
15844
|
+
}
|
|
15845
|
+
set from(value) {
|
|
15846
|
+
pb_1.Message.setField(this, 13, value);
|
|
15847
|
+
}
|
|
15848
|
+
get to() {
|
|
15849
|
+
return pb_1.Message.getFieldWithDefault(this, 14, "");
|
|
15850
|
+
}
|
|
15851
|
+
set to(value) {
|
|
15852
|
+
pb_1.Message.setField(this, 14, value);
|
|
15853
|
+
}
|
|
15854
|
+
get page() {
|
|
15855
|
+
return pb_1.Message.getFieldWithDefault(this, 15, 0);
|
|
15856
|
+
}
|
|
15857
|
+
set page(value) {
|
|
15858
|
+
pb_1.Message.setField(this, 15, value);
|
|
15859
|
+
}
|
|
15860
|
+
get limit() {
|
|
15861
|
+
return pb_1.Message.getFieldWithDefault(this, 16, 0);
|
|
15862
|
+
}
|
|
15863
|
+
set limit(value) {
|
|
15864
|
+
pb_1.Message.setField(this, 16, value);
|
|
15865
|
+
}
|
|
15866
|
+
get sortBy() {
|
|
15867
|
+
return pb_1.Message.getFieldWithDefault(this, 17, "");
|
|
15868
|
+
}
|
|
15869
|
+
set sortBy(value) {
|
|
15870
|
+
pb_1.Message.setField(this, 17, value);
|
|
15871
|
+
}
|
|
15872
|
+
get sortOrder() {
|
|
15873
|
+
return pb_1.Message.getFieldWithDefault(this, 18, "");
|
|
15874
|
+
}
|
|
15875
|
+
set sortOrder(value) {
|
|
15876
|
+
pb_1.Message.setField(this, 18, value);
|
|
15877
|
+
}
|
|
15878
|
+
get merchantIds() {
|
|
15879
|
+
return pb_1.Message.getFieldWithDefault(this, 19, []);
|
|
15880
|
+
}
|
|
15881
|
+
set merchantIds(value) {
|
|
15882
|
+
pb_1.Message.setField(this, 19, value);
|
|
15883
|
+
}
|
|
15884
|
+
get adminId() {
|
|
15885
|
+
return pb_1.Message.getFieldWithDefault(this, 20, "");
|
|
15886
|
+
}
|
|
15887
|
+
set adminId(value) {
|
|
15888
|
+
pb_1.Message.setField(this, 20, value);
|
|
15889
|
+
}
|
|
15890
|
+
get dataScope() {
|
|
15891
|
+
return pb_1.Message.getFieldWithDefault(this, 21, "");
|
|
15892
|
+
}
|
|
15893
|
+
set dataScope(value) {
|
|
15894
|
+
pb_1.Message.setField(this, 21, value);
|
|
15895
|
+
}
|
|
15896
|
+
get regionId() {
|
|
15897
|
+
return pb_1.Message.getFieldWithDefault(this, 22, "");
|
|
15898
|
+
}
|
|
15899
|
+
set regionId(value) {
|
|
15900
|
+
pb_1.Message.setField(this, 22, value);
|
|
15901
|
+
}
|
|
15902
|
+
get _is_verified() {
|
|
15903
|
+
const cases = {
|
|
15904
|
+
0: "none",
|
|
15905
|
+
8: "isVerified"
|
|
15906
|
+
};
|
|
15907
|
+
return cases[pb_1.Message.computeOneofCase(this, [8])];
|
|
15908
|
+
}
|
|
15909
|
+
get _is_validated() {
|
|
15910
|
+
const cases = {
|
|
15911
|
+
0: "none",
|
|
15912
|
+
9: "isValidated"
|
|
15913
|
+
};
|
|
15914
|
+
return cases[pb_1.Message.computeOneofCase(this, [9])];
|
|
15915
|
+
}
|
|
15916
|
+
get _is_active() {
|
|
15917
|
+
const cases = {
|
|
15918
|
+
0: "none",
|
|
15919
|
+
10: "isActive"
|
|
15920
|
+
};
|
|
15921
|
+
return cases[pb_1.Message.computeOneofCase(this, [10])];
|
|
15922
|
+
}
|
|
15923
|
+
get _has_pin() {
|
|
15924
|
+
const cases = {
|
|
15925
|
+
0: "none",
|
|
15926
|
+
11: "hasPin"
|
|
15927
|
+
};
|
|
15928
|
+
return cases[pb_1.Message.computeOneofCase(this, [11])];
|
|
15929
|
+
}
|
|
15930
|
+
static fromObject(data) {
|
|
15931
|
+
const message = new MerchantFilterRequestV2({});
|
|
15932
|
+
if (data.id != null) {
|
|
15933
|
+
message.id = data.id;
|
|
15934
|
+
}
|
|
15935
|
+
if (data.email != null) {
|
|
15936
|
+
message.email = data.email;
|
|
15937
|
+
}
|
|
15938
|
+
if (data.phoneNumber != null) {
|
|
15939
|
+
message.phoneNumber = data.phoneNumber;
|
|
15940
|
+
}
|
|
15941
|
+
if (data.accountNumber != null) {
|
|
15942
|
+
message.accountNumber = data.accountNumber;
|
|
15943
|
+
}
|
|
15944
|
+
if (data.bvn != null) {
|
|
15945
|
+
message.bvn = data.bvn;
|
|
15946
|
+
}
|
|
15947
|
+
if (data.nin != null) {
|
|
15948
|
+
message.nin = data.nin;
|
|
15949
|
+
}
|
|
15950
|
+
if (data.businessName != null) {
|
|
15951
|
+
message.businessName = data.businessName;
|
|
15952
|
+
}
|
|
15953
|
+
if (data.isVerified != null) {
|
|
15954
|
+
message.isVerified = data.isVerified;
|
|
15955
|
+
}
|
|
15956
|
+
if (data.isValidated != null) {
|
|
15957
|
+
message.isValidated = data.isValidated;
|
|
15958
|
+
}
|
|
15959
|
+
if (data.isActive != null) {
|
|
15960
|
+
message.isActive = data.isActive;
|
|
15961
|
+
}
|
|
15962
|
+
if (data.hasPin != null) {
|
|
15963
|
+
message.hasPin = data.hasPin;
|
|
15964
|
+
}
|
|
15965
|
+
if (data.search != null) {
|
|
15966
|
+
message.search = data.search;
|
|
15967
|
+
}
|
|
15968
|
+
if (data.from != null) {
|
|
15969
|
+
message.from = data.from;
|
|
15970
|
+
}
|
|
15971
|
+
if (data.to != null) {
|
|
15972
|
+
message.to = data.to;
|
|
15973
|
+
}
|
|
15974
|
+
if (data.page != null) {
|
|
15975
|
+
message.page = data.page;
|
|
15976
|
+
}
|
|
15977
|
+
if (data.limit != null) {
|
|
15978
|
+
message.limit = data.limit;
|
|
15979
|
+
}
|
|
15980
|
+
if (data.sortBy != null) {
|
|
15981
|
+
message.sortBy = data.sortBy;
|
|
15982
|
+
}
|
|
15983
|
+
if (data.sortOrder != null) {
|
|
15984
|
+
message.sortOrder = data.sortOrder;
|
|
15985
|
+
}
|
|
15986
|
+
if (data.merchantIds != null) {
|
|
15987
|
+
message.merchantIds = data.merchantIds;
|
|
15988
|
+
}
|
|
15989
|
+
if (data.adminId != null) {
|
|
15990
|
+
message.adminId = data.adminId;
|
|
15991
|
+
}
|
|
15992
|
+
if (data.dataScope != null) {
|
|
15993
|
+
message.dataScope = data.dataScope;
|
|
15994
|
+
}
|
|
15995
|
+
if (data.regionId != null) {
|
|
15996
|
+
message.regionId = data.regionId;
|
|
15997
|
+
}
|
|
15998
|
+
return message;
|
|
15999
|
+
}
|
|
16000
|
+
toObject() {
|
|
16001
|
+
const data = {};
|
|
16002
|
+
if (this.id != null) {
|
|
16003
|
+
data.id = this.id;
|
|
16004
|
+
}
|
|
16005
|
+
if (this.email != null) {
|
|
16006
|
+
data.email = this.email;
|
|
16007
|
+
}
|
|
16008
|
+
if (this.phoneNumber != null) {
|
|
16009
|
+
data.phoneNumber = this.phoneNumber;
|
|
16010
|
+
}
|
|
16011
|
+
if (this.accountNumber != null) {
|
|
16012
|
+
data.accountNumber = this.accountNumber;
|
|
16013
|
+
}
|
|
16014
|
+
if (this.bvn != null) {
|
|
16015
|
+
data.bvn = this.bvn;
|
|
16016
|
+
}
|
|
16017
|
+
if (this.nin != null) {
|
|
16018
|
+
data.nin = this.nin;
|
|
16019
|
+
}
|
|
16020
|
+
if (this.businessName != null) {
|
|
16021
|
+
data.businessName = this.businessName;
|
|
16022
|
+
}
|
|
16023
|
+
if (this.isVerified != null) {
|
|
16024
|
+
data.isVerified = this.isVerified;
|
|
16025
|
+
}
|
|
16026
|
+
if (this.isValidated != null) {
|
|
16027
|
+
data.isValidated = this.isValidated;
|
|
16028
|
+
}
|
|
16029
|
+
if (this.isActive != null) {
|
|
16030
|
+
data.isActive = this.isActive;
|
|
16031
|
+
}
|
|
16032
|
+
if (this.hasPin != null) {
|
|
16033
|
+
data.hasPin = this.hasPin;
|
|
16034
|
+
}
|
|
16035
|
+
if (this.search != null) {
|
|
16036
|
+
data.search = this.search;
|
|
16037
|
+
}
|
|
16038
|
+
if (this.from != null) {
|
|
16039
|
+
data.from = this.from;
|
|
16040
|
+
}
|
|
16041
|
+
if (this.to != null) {
|
|
16042
|
+
data.to = this.to;
|
|
16043
|
+
}
|
|
16044
|
+
if (this.page != null) {
|
|
16045
|
+
data.page = this.page;
|
|
16046
|
+
}
|
|
16047
|
+
if (this.limit != null) {
|
|
16048
|
+
data.limit = this.limit;
|
|
16049
|
+
}
|
|
16050
|
+
if (this.sortBy != null) {
|
|
16051
|
+
data.sortBy = this.sortBy;
|
|
16052
|
+
}
|
|
16053
|
+
if (this.sortOrder != null) {
|
|
16054
|
+
data.sortOrder = this.sortOrder;
|
|
16055
|
+
}
|
|
16056
|
+
if (this.merchantIds != null) {
|
|
16057
|
+
data.merchantIds = this.merchantIds;
|
|
16058
|
+
}
|
|
16059
|
+
if (this.adminId != null) {
|
|
16060
|
+
data.adminId = this.adminId;
|
|
16061
|
+
}
|
|
16062
|
+
if (this.dataScope != null) {
|
|
16063
|
+
data.dataScope = this.dataScope;
|
|
16064
|
+
}
|
|
16065
|
+
if (this.regionId != null) {
|
|
16066
|
+
data.regionId = this.regionId;
|
|
16067
|
+
}
|
|
16068
|
+
return data;
|
|
16069
|
+
}
|
|
16070
|
+
serialize(w) {
|
|
16071
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16072
|
+
if (this.id.length)
|
|
16073
|
+
writer.writeString(1, this.id);
|
|
16074
|
+
if (this.email.length)
|
|
16075
|
+
writer.writeString(2, this.email);
|
|
16076
|
+
if (this.phoneNumber.length)
|
|
16077
|
+
writer.writeString(3, this.phoneNumber);
|
|
16078
|
+
if (this.accountNumber.length)
|
|
16079
|
+
writer.writeString(4, this.accountNumber);
|
|
16080
|
+
if (this.bvn.length)
|
|
16081
|
+
writer.writeString(5, this.bvn);
|
|
16082
|
+
if (this.nin.length)
|
|
16083
|
+
writer.writeString(6, this.nin);
|
|
16084
|
+
if (this.businessName.length)
|
|
16085
|
+
writer.writeString(7, this.businessName);
|
|
16086
|
+
if (this.hasIsVerified)
|
|
16087
|
+
writer.writeBool(8, this.isVerified);
|
|
16088
|
+
if (this.hasIsValidated)
|
|
16089
|
+
writer.writeBool(9, this.isValidated);
|
|
16090
|
+
if (this.hasIsActive)
|
|
16091
|
+
writer.writeBool(10, this.isActive);
|
|
16092
|
+
if (this.hasHasPin)
|
|
16093
|
+
writer.writeBool(11, this.hasPin);
|
|
16094
|
+
if (this.search.length)
|
|
16095
|
+
writer.writeString(12, this.search);
|
|
16096
|
+
if (this.from.length)
|
|
16097
|
+
writer.writeString(13, this.from);
|
|
16098
|
+
if (this.to.length)
|
|
16099
|
+
writer.writeString(14, this.to);
|
|
16100
|
+
if (this.page != 0)
|
|
16101
|
+
writer.writeUint32(15, this.page);
|
|
16102
|
+
if (this.limit != 0)
|
|
16103
|
+
writer.writeUint32(16, this.limit);
|
|
16104
|
+
if (this.sortBy.length)
|
|
16105
|
+
writer.writeString(17, this.sortBy);
|
|
16106
|
+
if (this.sortOrder.length)
|
|
16107
|
+
writer.writeString(18, this.sortOrder);
|
|
16108
|
+
if (this.merchantIds.length)
|
|
16109
|
+
writer.writeRepeatedString(19, this.merchantIds);
|
|
16110
|
+
if (this.adminId.length)
|
|
16111
|
+
writer.writeString(20, this.adminId);
|
|
16112
|
+
if (this.dataScope.length)
|
|
16113
|
+
writer.writeString(21, this.dataScope);
|
|
16114
|
+
if (this.regionId.length)
|
|
16115
|
+
writer.writeString(22, this.regionId);
|
|
16116
|
+
if (!w)
|
|
16117
|
+
return writer.getResultBuffer();
|
|
16118
|
+
}
|
|
16119
|
+
static deserialize(bytes) {
|
|
16120
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantFilterRequestV2();
|
|
16121
|
+
while (reader.nextField()) {
|
|
16122
|
+
if (reader.isEndGroup())
|
|
16123
|
+
break;
|
|
16124
|
+
switch (reader.getFieldNumber()) {
|
|
16125
|
+
case 1:
|
|
16126
|
+
message.id = reader.readString();
|
|
16127
|
+
break;
|
|
16128
|
+
case 2:
|
|
16129
|
+
message.email = reader.readString();
|
|
16130
|
+
break;
|
|
16131
|
+
case 3:
|
|
16132
|
+
message.phoneNumber = reader.readString();
|
|
16133
|
+
break;
|
|
16134
|
+
case 4:
|
|
16135
|
+
message.accountNumber = reader.readString();
|
|
16136
|
+
break;
|
|
16137
|
+
case 5:
|
|
16138
|
+
message.bvn = reader.readString();
|
|
16139
|
+
break;
|
|
16140
|
+
case 6:
|
|
16141
|
+
message.nin = reader.readString();
|
|
16142
|
+
break;
|
|
16143
|
+
case 7:
|
|
16144
|
+
message.businessName = reader.readString();
|
|
16145
|
+
break;
|
|
16146
|
+
case 8:
|
|
16147
|
+
message.isVerified = reader.readBool();
|
|
16148
|
+
break;
|
|
16149
|
+
case 9:
|
|
16150
|
+
message.isValidated = reader.readBool();
|
|
16151
|
+
break;
|
|
16152
|
+
case 10:
|
|
16153
|
+
message.isActive = reader.readBool();
|
|
16154
|
+
break;
|
|
16155
|
+
case 11:
|
|
16156
|
+
message.hasPin = reader.readBool();
|
|
16157
|
+
break;
|
|
16158
|
+
case 12:
|
|
16159
|
+
message.search = reader.readString();
|
|
16160
|
+
break;
|
|
16161
|
+
case 13:
|
|
16162
|
+
message.from = reader.readString();
|
|
16163
|
+
break;
|
|
16164
|
+
case 14:
|
|
16165
|
+
message.to = reader.readString();
|
|
16166
|
+
break;
|
|
16167
|
+
case 15:
|
|
16168
|
+
message.page = reader.readUint32();
|
|
16169
|
+
break;
|
|
16170
|
+
case 16:
|
|
16171
|
+
message.limit = reader.readUint32();
|
|
16172
|
+
break;
|
|
16173
|
+
case 17:
|
|
16174
|
+
message.sortBy = reader.readString();
|
|
16175
|
+
break;
|
|
16176
|
+
case 18:
|
|
16177
|
+
message.sortOrder = reader.readString();
|
|
16178
|
+
break;
|
|
16179
|
+
case 19:
|
|
16180
|
+
pb_1.Message.addToRepeatedField(message, 19, reader.readString());
|
|
16181
|
+
break;
|
|
16182
|
+
case 20:
|
|
16183
|
+
message.adminId = reader.readString();
|
|
16184
|
+
break;
|
|
16185
|
+
case 21:
|
|
16186
|
+
message.dataScope = reader.readString();
|
|
16187
|
+
break;
|
|
16188
|
+
case 22:
|
|
16189
|
+
message.regionId = reader.readString();
|
|
16190
|
+
break;
|
|
16191
|
+
default: reader.skipField();
|
|
16192
|
+
}
|
|
16193
|
+
}
|
|
16194
|
+
return message;
|
|
16195
|
+
}
|
|
16196
|
+
serializeBinary() {
|
|
16197
|
+
return this.serialize();
|
|
16198
|
+
}
|
|
16199
|
+
static deserializeBinary(bytes) {
|
|
16200
|
+
return MerchantFilterRequestV2.deserialize(bytes);
|
|
16201
|
+
}
|
|
16202
|
+
}
|
|
16203
|
+
business.MerchantFilterRequestV2 = MerchantFilterRequestV2;
|
|
15684
16204
|
class MerchantLookupRequest extends pb_1.Message {
|
|
15685
16205
|
#one_of_decls = [];
|
|
15686
16206
|
constructor(data) {
|
|
@@ -18216,6 +18736,15 @@ var com;
|
|
|
18216
18736
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
18217
18737
|
responseDeserialize: (bytes) => MMerchantDataResponse.deserialize(new Uint8Array(bytes))
|
|
18218
18738
|
},
|
|
18739
|
+
GetMerchantsV2: {
|
|
18740
|
+
path: "/com.pkg.business.Business/GetMerchantsV2",
|
|
18741
|
+
requestStream: false,
|
|
18742
|
+
responseStream: false,
|
|
18743
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
18744
|
+
requestDeserialize: (bytes) => MerchantFilterRequestV2.deserialize(new Uint8Array(bytes)),
|
|
18745
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
18746
|
+
responseDeserialize: (bytes) => MMerchantDataResponse.deserialize(new Uint8Array(bytes))
|
|
18747
|
+
},
|
|
18219
18748
|
GetMerchant: {
|
|
18220
18749
|
path: "/com.pkg.business.Business/GetMerchant",
|
|
18221
18750
|
requestStream: false,
|
|
@@ -19045,6 +19574,22 @@ var com;
|
|
|
19045
19574
|
}
|
|
19046
19575
|
}));
|
|
19047
19576
|
};
|
|
19577
|
+
GetMerchantsV2 = (message, metadata, options) => {
|
|
19578
|
+
if (!metadata) {
|
|
19579
|
+
metadata = new grpc_1.Metadata;
|
|
19580
|
+
}
|
|
19581
|
+
if (!options) {
|
|
19582
|
+
options = {};
|
|
19583
|
+
}
|
|
19584
|
+
return new Promise((resolve, reject) => super.GetMerchantsV2(message, metadata, options, (error, response) => {
|
|
19585
|
+
if (error) {
|
|
19586
|
+
reject(error);
|
|
19587
|
+
}
|
|
19588
|
+
else {
|
|
19589
|
+
resolve(response);
|
|
19590
|
+
}
|
|
19591
|
+
}));
|
|
19592
|
+
};
|
|
19048
19593
|
GetMerchant = (message, metadata, options) => {
|
|
19049
19594
|
if (!metadata) {
|
|
19050
19595
|
metadata = new grpc_1.Metadata;
|
package/package.json
CHANGED
|
@@ -7212,6 +7212,142 @@ export declare namespace com.pkg.business {
|
|
|
7212
7212
|
serializeBinary(): Uint8Array;
|
|
7213
7213
|
static deserializeBinary(bytes: Uint8Array): MerchantFilterRequest;
|
|
7214
7214
|
}
|
|
7215
|
+
export class MerchantFilterRequestV2 extends pb_1.Message {
|
|
7216
|
+
#private;
|
|
7217
|
+
constructor(data?: any[] | ({
|
|
7218
|
+
id?: string;
|
|
7219
|
+
email?: string;
|
|
7220
|
+
phoneNumber?: string;
|
|
7221
|
+
accountNumber?: string;
|
|
7222
|
+
bvn?: string;
|
|
7223
|
+
nin?: string;
|
|
7224
|
+
businessName?: string;
|
|
7225
|
+
search?: string;
|
|
7226
|
+
from?: string;
|
|
7227
|
+
to?: string;
|
|
7228
|
+
page?: number;
|
|
7229
|
+
limit?: number;
|
|
7230
|
+
sortBy?: string;
|
|
7231
|
+
sortOrder?: string;
|
|
7232
|
+
merchantIds?: string[];
|
|
7233
|
+
adminId?: string;
|
|
7234
|
+
dataScope?: string;
|
|
7235
|
+
regionId?: string;
|
|
7236
|
+
} & (({
|
|
7237
|
+
isVerified?: boolean;
|
|
7238
|
+
}) | ({
|
|
7239
|
+
isValidated?: boolean;
|
|
7240
|
+
}) | ({
|
|
7241
|
+
isActive?: boolean;
|
|
7242
|
+
}) | ({
|
|
7243
|
+
hasPin?: boolean;
|
|
7244
|
+
}))));
|
|
7245
|
+
get id(): string;
|
|
7246
|
+
set id(value: string);
|
|
7247
|
+
get email(): string;
|
|
7248
|
+
set email(value: string);
|
|
7249
|
+
get phoneNumber(): string;
|
|
7250
|
+
set phoneNumber(value: string);
|
|
7251
|
+
get accountNumber(): string;
|
|
7252
|
+
set accountNumber(value: string);
|
|
7253
|
+
get bvn(): string;
|
|
7254
|
+
set bvn(value: string);
|
|
7255
|
+
get nin(): string;
|
|
7256
|
+
set nin(value: string);
|
|
7257
|
+
get businessName(): string;
|
|
7258
|
+
set businessName(value: string);
|
|
7259
|
+
get isVerified(): boolean;
|
|
7260
|
+
set isVerified(value: boolean);
|
|
7261
|
+
get hasIsVerified(): boolean;
|
|
7262
|
+
get isValidated(): boolean;
|
|
7263
|
+
set isValidated(value: boolean);
|
|
7264
|
+
get hasIsValidated(): boolean;
|
|
7265
|
+
get isActive(): boolean;
|
|
7266
|
+
set isActive(value: boolean);
|
|
7267
|
+
get hasIsActive(): boolean;
|
|
7268
|
+
get hasPin(): boolean;
|
|
7269
|
+
set hasPin(value: boolean);
|
|
7270
|
+
get hasHasPin(): boolean;
|
|
7271
|
+
get search(): string;
|
|
7272
|
+
set search(value: string);
|
|
7273
|
+
get from(): string;
|
|
7274
|
+
set from(value: string);
|
|
7275
|
+
get to(): string;
|
|
7276
|
+
set to(value: string);
|
|
7277
|
+
get page(): number;
|
|
7278
|
+
set page(value: number);
|
|
7279
|
+
get limit(): number;
|
|
7280
|
+
set limit(value: number);
|
|
7281
|
+
get sortBy(): string;
|
|
7282
|
+
set sortBy(value: string);
|
|
7283
|
+
get sortOrder(): string;
|
|
7284
|
+
set sortOrder(value: string);
|
|
7285
|
+
get merchantIds(): string[];
|
|
7286
|
+
set merchantIds(value: string[]);
|
|
7287
|
+
get adminId(): string;
|
|
7288
|
+
set adminId(value: string);
|
|
7289
|
+
get dataScope(): string;
|
|
7290
|
+
set dataScope(value: string);
|
|
7291
|
+
get regionId(): string;
|
|
7292
|
+
set regionId(value: string);
|
|
7293
|
+
get _is_verified(): "none" | "isVerified";
|
|
7294
|
+
get _is_validated(): "none" | "isValidated";
|
|
7295
|
+
get _is_active(): "none" | "isActive";
|
|
7296
|
+
get _has_pin(): "none" | "hasPin";
|
|
7297
|
+
static fromObject(data: {
|
|
7298
|
+
id?: string;
|
|
7299
|
+
email?: string;
|
|
7300
|
+
phoneNumber?: string;
|
|
7301
|
+
accountNumber?: string;
|
|
7302
|
+
bvn?: string;
|
|
7303
|
+
nin?: string;
|
|
7304
|
+
businessName?: string;
|
|
7305
|
+
isVerified?: boolean;
|
|
7306
|
+
isValidated?: boolean;
|
|
7307
|
+
isActive?: boolean;
|
|
7308
|
+
hasPin?: boolean;
|
|
7309
|
+
search?: string;
|
|
7310
|
+
from?: string;
|
|
7311
|
+
to?: string;
|
|
7312
|
+
page?: number;
|
|
7313
|
+
limit?: number;
|
|
7314
|
+
sortBy?: string;
|
|
7315
|
+
sortOrder?: string;
|
|
7316
|
+
merchantIds?: string[];
|
|
7317
|
+
adminId?: string;
|
|
7318
|
+
dataScope?: string;
|
|
7319
|
+
regionId?: string;
|
|
7320
|
+
}): MerchantFilterRequestV2;
|
|
7321
|
+
toObject(): {
|
|
7322
|
+
id?: string | undefined;
|
|
7323
|
+
email?: string | undefined;
|
|
7324
|
+
phoneNumber?: string | undefined;
|
|
7325
|
+
accountNumber?: string | undefined;
|
|
7326
|
+
bvn?: string | undefined;
|
|
7327
|
+
nin?: string | undefined;
|
|
7328
|
+
businessName?: string | undefined;
|
|
7329
|
+
isVerified?: boolean | undefined;
|
|
7330
|
+
isValidated?: boolean | undefined;
|
|
7331
|
+
isActive?: boolean | undefined;
|
|
7332
|
+
hasPin?: boolean | undefined;
|
|
7333
|
+
search?: string | undefined;
|
|
7334
|
+
from?: string | undefined;
|
|
7335
|
+
to?: string | undefined;
|
|
7336
|
+
page?: number | undefined;
|
|
7337
|
+
limit?: number | undefined;
|
|
7338
|
+
sortBy?: string | undefined;
|
|
7339
|
+
sortOrder?: string | undefined;
|
|
7340
|
+
merchantIds?: string[] | undefined;
|
|
7341
|
+
adminId?: string | undefined;
|
|
7342
|
+
dataScope?: string | undefined;
|
|
7343
|
+
regionId?: string | undefined;
|
|
7344
|
+
};
|
|
7345
|
+
serialize(): Uint8Array;
|
|
7346
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
7347
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MerchantFilterRequestV2;
|
|
7348
|
+
serializeBinary(): Uint8Array;
|
|
7349
|
+
static deserializeBinary(bytes: Uint8Array): MerchantFilterRequestV2;
|
|
7350
|
+
}
|
|
7215
7351
|
export class MerchantLookupRequest extends pb_1.Message {
|
|
7216
7352
|
#private;
|
|
7217
7353
|
constructor(data?: any[] | {
|
|
@@ -8390,6 +8526,15 @@ export declare namespace com.pkg.business {
|
|
|
8390
8526
|
responseSerialize: (message: MMerchantDataResponse) => Buffer;
|
|
8391
8527
|
responseDeserialize: (bytes: Buffer) => MMerchantDataResponse;
|
|
8392
8528
|
};
|
|
8529
|
+
GetMerchantsV2: {
|
|
8530
|
+
path: string;
|
|
8531
|
+
requestStream: boolean;
|
|
8532
|
+
responseStream: boolean;
|
|
8533
|
+
requestSerialize: (message: MerchantFilterRequestV2) => Buffer;
|
|
8534
|
+
requestDeserialize: (bytes: Buffer) => MerchantFilterRequestV2;
|
|
8535
|
+
responseSerialize: (message: MMerchantDataResponse) => Buffer;
|
|
8536
|
+
responseDeserialize: (bytes: Buffer) => MMerchantDataResponse;
|
|
8537
|
+
};
|
|
8393
8538
|
GetMerchant: {
|
|
8394
8539
|
path: string;
|
|
8395
8540
|
requestStream: boolean;
|
|
@@ -8494,6 +8639,7 @@ export declare namespace com.pkg.business {
|
|
|
8494
8639
|
abstract DeleteTerminalType(call: grpc_1.ServerUnaryCall<AddTerminalTypeRequest, TerminalTypeDataResponse>, callback: grpc_1.sendUnaryData<TerminalTypeDataResponse>): void;
|
|
8495
8640
|
abstract GetBusinessIndustries(call: grpc_1.ServerUnaryCall<PaginatedRequest, BusinessIndustryDataResponse>, callback: grpc_1.sendUnaryData<BusinessIndustryDataResponse>): void;
|
|
8496
8641
|
abstract GetMerchants(call: grpc_1.ServerUnaryCall<MerchantFilterRequest, MMerchantDataResponse>, callback: grpc_1.sendUnaryData<MMerchantDataResponse>): void;
|
|
8642
|
+
abstract GetMerchantsV2(call: grpc_1.ServerUnaryCall<MerchantFilterRequestV2, MMerchantDataResponse>, callback: grpc_1.sendUnaryData<MMerchantDataResponse>): void;
|
|
8497
8643
|
abstract GetMerchant(call: grpc_1.ServerUnaryCall<MerchantLookupRequest, MerchantDataResponse>, callback: grpc_1.sendUnaryData<MerchantDataResponse>): void;
|
|
8498
8644
|
abstract AssignAttributionStaff(call: grpc_1.ServerUnaryCall<AssignAttributionStaffRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
8499
8645
|
abstract ReassignAttributionStaff(call: grpc_1.ServerUnaryCall<AssignAttributionStaffRequest, DefaultResponse>, callback: grpc_1.sendUnaryData<DefaultResponse>): void;
|
|
@@ -8552,6 +8698,7 @@ export declare namespace com.pkg.business {
|
|
|
8552
8698
|
DeleteTerminalType: GrpcPromiseServiceInterface<AddTerminalTypeRequest, TerminalTypeDataResponse>;
|
|
8553
8699
|
GetBusinessIndustries: GrpcPromiseServiceInterface<PaginatedRequest, BusinessIndustryDataResponse>;
|
|
8554
8700
|
GetMerchants: GrpcPromiseServiceInterface<MerchantFilterRequest, MMerchantDataResponse>;
|
|
8701
|
+
GetMerchantsV2: GrpcPromiseServiceInterface<MerchantFilterRequestV2, MMerchantDataResponse>;
|
|
8555
8702
|
GetMerchant: GrpcPromiseServiceInterface<MerchantLookupRequest, MerchantDataResponse>;
|
|
8556
8703
|
AssignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
|
|
8557
8704
|
ReassignAttributionStaff: GrpcPromiseServiceInterface<AssignAttributionStaffRequest, DefaultResponse>;
|