@technova-tech/olive-proto-lib 3.2.1 → 3.2.3
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 +1261 -419
- package/package.json +1 -1
- package/types/business/business.d.ts +315 -0
package/business/business.js
CHANGED
|
@@ -15781,7 +15781,7 @@ var com;
|
|
|
15781
15781
|
}
|
|
15782
15782
|
}
|
|
15783
15783
|
business.MerchantLookupRequest = MerchantLookupRequest;
|
|
15784
|
-
class
|
|
15784
|
+
class Role extends pb_1.Message {
|
|
15785
15785
|
#one_of_decls = [];
|
|
15786
15786
|
constructor(data) {
|
|
15787
15787
|
super();
|
|
@@ -15790,41 +15790,189 @@ var com;
|
|
|
15790
15790
|
if ("id" in data && data.id != undefined) {
|
|
15791
15791
|
this.id = data.id;
|
|
15792
15792
|
}
|
|
15793
|
-
if ("
|
|
15794
|
-
this.
|
|
15793
|
+
if ("name" in data && data.name != undefined) {
|
|
15794
|
+
this.name = data.name;
|
|
15795
15795
|
}
|
|
15796
|
-
|
|
15797
|
-
|
|
15796
|
+
}
|
|
15797
|
+
}
|
|
15798
|
+
get id() {
|
|
15799
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
15800
|
+
}
|
|
15801
|
+
set id(value) {
|
|
15802
|
+
pb_1.Message.setField(this, 1, value);
|
|
15803
|
+
}
|
|
15804
|
+
get name() {
|
|
15805
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15806
|
+
}
|
|
15807
|
+
set name(value) {
|
|
15808
|
+
pb_1.Message.setField(this, 2, value);
|
|
15809
|
+
}
|
|
15810
|
+
static fromObject(data) {
|
|
15811
|
+
const message = new Role({});
|
|
15812
|
+
if (data.id != null) {
|
|
15813
|
+
message.id = data.id;
|
|
15814
|
+
}
|
|
15815
|
+
if (data.name != null) {
|
|
15816
|
+
message.name = data.name;
|
|
15817
|
+
}
|
|
15818
|
+
return message;
|
|
15819
|
+
}
|
|
15820
|
+
toObject() {
|
|
15821
|
+
const data = {};
|
|
15822
|
+
if (this.id != null) {
|
|
15823
|
+
data.id = this.id;
|
|
15824
|
+
}
|
|
15825
|
+
if (this.name != null) {
|
|
15826
|
+
data.name = this.name;
|
|
15827
|
+
}
|
|
15828
|
+
return data;
|
|
15829
|
+
}
|
|
15830
|
+
serialize(w) {
|
|
15831
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
15832
|
+
if (this.id.length)
|
|
15833
|
+
writer.writeString(1, this.id);
|
|
15834
|
+
if (this.name.length)
|
|
15835
|
+
writer.writeString(2, this.name);
|
|
15836
|
+
if (!w)
|
|
15837
|
+
return writer.getResultBuffer();
|
|
15838
|
+
}
|
|
15839
|
+
static deserialize(bytes) {
|
|
15840
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Role();
|
|
15841
|
+
while (reader.nextField()) {
|
|
15842
|
+
if (reader.isEndGroup())
|
|
15843
|
+
break;
|
|
15844
|
+
switch (reader.getFieldNumber()) {
|
|
15845
|
+
case 1:
|
|
15846
|
+
message.id = reader.readString();
|
|
15847
|
+
break;
|
|
15848
|
+
case 2:
|
|
15849
|
+
message.name = reader.readString();
|
|
15850
|
+
break;
|
|
15851
|
+
default: reader.skipField();
|
|
15798
15852
|
}
|
|
15799
|
-
|
|
15800
|
-
|
|
15853
|
+
}
|
|
15854
|
+
return message;
|
|
15855
|
+
}
|
|
15856
|
+
serializeBinary() {
|
|
15857
|
+
return this.serialize();
|
|
15858
|
+
}
|
|
15859
|
+
static deserializeBinary(bytes) {
|
|
15860
|
+
return Role.deserialize(bytes);
|
|
15861
|
+
}
|
|
15862
|
+
}
|
|
15863
|
+
business.Role = Role;
|
|
15864
|
+
class Region extends pb_1.Message {
|
|
15865
|
+
#one_of_decls = [];
|
|
15866
|
+
constructor(data) {
|
|
15867
|
+
super();
|
|
15868
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
15869
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
15870
|
+
if ("id" in data && data.id != undefined) {
|
|
15871
|
+
this.id = data.id;
|
|
15801
15872
|
}
|
|
15802
|
-
if ("
|
|
15803
|
-
this.
|
|
15873
|
+
if ("name" in data && data.name != undefined) {
|
|
15874
|
+
this.name = data.name;
|
|
15804
15875
|
}
|
|
15805
|
-
|
|
15806
|
-
|
|
15876
|
+
}
|
|
15877
|
+
}
|
|
15878
|
+
get id() {
|
|
15879
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
15880
|
+
}
|
|
15881
|
+
set id(value) {
|
|
15882
|
+
pb_1.Message.setField(this, 1, value);
|
|
15883
|
+
}
|
|
15884
|
+
get name() {
|
|
15885
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15886
|
+
}
|
|
15887
|
+
set name(value) {
|
|
15888
|
+
pb_1.Message.setField(this, 2, value);
|
|
15889
|
+
}
|
|
15890
|
+
static fromObject(data) {
|
|
15891
|
+
const message = new Region({});
|
|
15892
|
+
if (data.id != null) {
|
|
15893
|
+
message.id = data.id;
|
|
15894
|
+
}
|
|
15895
|
+
if (data.name != null) {
|
|
15896
|
+
message.name = data.name;
|
|
15897
|
+
}
|
|
15898
|
+
return message;
|
|
15899
|
+
}
|
|
15900
|
+
toObject() {
|
|
15901
|
+
const data = {};
|
|
15902
|
+
if (this.id != null) {
|
|
15903
|
+
data.id = this.id;
|
|
15904
|
+
}
|
|
15905
|
+
if (this.name != null) {
|
|
15906
|
+
data.name = this.name;
|
|
15907
|
+
}
|
|
15908
|
+
return data;
|
|
15909
|
+
}
|
|
15910
|
+
serialize(w) {
|
|
15911
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
15912
|
+
if (this.id.length)
|
|
15913
|
+
writer.writeString(1, this.id);
|
|
15914
|
+
if (this.name.length)
|
|
15915
|
+
writer.writeString(2, this.name);
|
|
15916
|
+
if (!w)
|
|
15917
|
+
return writer.getResultBuffer();
|
|
15918
|
+
}
|
|
15919
|
+
static deserialize(bytes) {
|
|
15920
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Region();
|
|
15921
|
+
while (reader.nextField()) {
|
|
15922
|
+
if (reader.isEndGroup())
|
|
15923
|
+
break;
|
|
15924
|
+
switch (reader.getFieldNumber()) {
|
|
15925
|
+
case 1:
|
|
15926
|
+
message.id = reader.readString();
|
|
15927
|
+
break;
|
|
15928
|
+
case 2:
|
|
15929
|
+
message.name = reader.readString();
|
|
15930
|
+
break;
|
|
15931
|
+
default: reader.skipField();
|
|
15807
15932
|
}
|
|
15808
|
-
|
|
15809
|
-
|
|
15933
|
+
}
|
|
15934
|
+
return message;
|
|
15935
|
+
}
|
|
15936
|
+
serializeBinary() {
|
|
15937
|
+
return this.serialize();
|
|
15938
|
+
}
|
|
15939
|
+
static deserializeBinary(bytes) {
|
|
15940
|
+
return Region.deserialize(bytes);
|
|
15941
|
+
}
|
|
15942
|
+
}
|
|
15943
|
+
business.Region = Region;
|
|
15944
|
+
class StaffAttributionData extends pb_1.Message {
|
|
15945
|
+
#one_of_decls = [];
|
|
15946
|
+
constructor(data) {
|
|
15947
|
+
super();
|
|
15948
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
15949
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
15950
|
+
if ("id" in data && data.id != undefined) {
|
|
15951
|
+
this.id = data.id;
|
|
15810
15952
|
}
|
|
15811
|
-
if ("
|
|
15812
|
-
this.
|
|
15953
|
+
if ("firstName" in data && data.firstName != undefined) {
|
|
15954
|
+
this.firstName = data.firstName;
|
|
15813
15955
|
}
|
|
15814
|
-
if ("
|
|
15815
|
-
this.
|
|
15956
|
+
if ("lastName" in data && data.lastName != undefined) {
|
|
15957
|
+
this.lastName = data.lastName;
|
|
15816
15958
|
}
|
|
15817
|
-
if ("
|
|
15818
|
-
this.
|
|
15959
|
+
if ("email" in data && data.email != undefined) {
|
|
15960
|
+
this.email = data.email;
|
|
15819
15961
|
}
|
|
15820
|
-
if ("
|
|
15821
|
-
this.
|
|
15962
|
+
if ("phone" in data && data.phone != undefined) {
|
|
15963
|
+
this.phone = data.phone;
|
|
15822
15964
|
}
|
|
15823
|
-
if ("
|
|
15824
|
-
this.
|
|
15965
|
+
if ("active" in data && data.active != undefined) {
|
|
15966
|
+
this.active = data.active;
|
|
15825
15967
|
}
|
|
15826
|
-
if ("
|
|
15827
|
-
this.
|
|
15968
|
+
if ("role" in data && data.role != undefined) {
|
|
15969
|
+
this.role = data.role;
|
|
15970
|
+
}
|
|
15971
|
+
if ("regionId" in data && data.regionId != undefined) {
|
|
15972
|
+
this.regionId = data.regionId;
|
|
15973
|
+
}
|
|
15974
|
+
if ("region" in data && data.region != undefined) {
|
|
15975
|
+
this.region = data.region;
|
|
15828
15976
|
}
|
|
15829
15977
|
}
|
|
15830
15978
|
}
|
|
@@ -15834,91 +15982,377 @@ var com;
|
|
|
15834
15982
|
set id(value) {
|
|
15835
15983
|
pb_1.Message.setField(this, 1, value);
|
|
15836
15984
|
}
|
|
15837
|
-
get
|
|
15985
|
+
get firstName() {
|
|
15838
15986
|
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15839
15987
|
}
|
|
15840
|
-
set
|
|
15988
|
+
set firstName(value) {
|
|
15841
15989
|
pb_1.Message.setField(this, 2, value);
|
|
15842
15990
|
}
|
|
15843
|
-
get
|
|
15991
|
+
get lastName() {
|
|
15844
15992
|
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
15845
15993
|
}
|
|
15846
|
-
set
|
|
15994
|
+
set lastName(value) {
|
|
15847
15995
|
pb_1.Message.setField(this, 3, value);
|
|
15848
15996
|
}
|
|
15849
|
-
get
|
|
15997
|
+
get email() {
|
|
15850
15998
|
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
15851
15999
|
}
|
|
15852
|
-
set
|
|
16000
|
+
set email(value) {
|
|
15853
16001
|
pb_1.Message.setField(this, 4, value);
|
|
15854
16002
|
}
|
|
15855
|
-
get
|
|
16003
|
+
get phone() {
|
|
15856
16004
|
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
15857
16005
|
}
|
|
15858
|
-
set
|
|
16006
|
+
set phone(value) {
|
|
15859
16007
|
pb_1.Message.setField(this, 5, value);
|
|
15860
16008
|
}
|
|
15861
|
-
get
|
|
15862
|
-
return pb_1.Message.getFieldWithDefault(this, 6,
|
|
16009
|
+
get active() {
|
|
16010
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
15863
16011
|
}
|
|
15864
|
-
set
|
|
16012
|
+
set active(value) {
|
|
15865
16013
|
pb_1.Message.setField(this, 6, value);
|
|
15866
16014
|
}
|
|
15867
|
-
get
|
|
15868
|
-
return pb_1.Message.
|
|
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);
|
|
16015
|
+
get role() {
|
|
16016
|
+
return pb_1.Message.getWrapperField(this, Role, 7);
|
|
15887
16017
|
}
|
|
15888
|
-
set
|
|
15889
|
-
pb_1.Message.
|
|
16018
|
+
set role(value) {
|
|
16019
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
15890
16020
|
}
|
|
15891
|
-
get
|
|
15892
|
-
return pb_1.Message.
|
|
16021
|
+
get hasRole() {
|
|
16022
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
15893
16023
|
}
|
|
15894
|
-
|
|
15895
|
-
pb_1.Message.
|
|
16024
|
+
get regionId() {
|
|
16025
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
15896
16026
|
}
|
|
15897
|
-
|
|
15898
|
-
|
|
16027
|
+
set regionId(value) {
|
|
16028
|
+
pb_1.Message.setField(this, 8, value);
|
|
15899
16029
|
}
|
|
15900
|
-
|
|
15901
|
-
pb_1.Message.
|
|
16030
|
+
get region() {
|
|
16031
|
+
return pb_1.Message.getWrapperField(this, Region, 9);
|
|
15902
16032
|
}
|
|
15903
|
-
|
|
15904
|
-
|
|
16033
|
+
set region(value) {
|
|
16034
|
+
pb_1.Message.setWrapperField(this, 9, value);
|
|
15905
16035
|
}
|
|
15906
|
-
|
|
15907
|
-
pb_1.Message.
|
|
16036
|
+
get hasRegion() {
|
|
16037
|
+
return pb_1.Message.getField(this, 9) != null;
|
|
15908
16038
|
}
|
|
15909
16039
|
static fromObject(data) {
|
|
15910
|
-
const message = new
|
|
16040
|
+
const message = new StaffAttributionData({});
|
|
15911
16041
|
if (data.id != null) {
|
|
15912
16042
|
message.id = data.id;
|
|
15913
16043
|
}
|
|
16044
|
+
if (data.firstName != null) {
|
|
16045
|
+
message.firstName = data.firstName;
|
|
16046
|
+
}
|
|
16047
|
+
if (data.lastName != null) {
|
|
16048
|
+
message.lastName = data.lastName;
|
|
16049
|
+
}
|
|
15914
16050
|
if (data.email != null) {
|
|
15915
16051
|
message.email = data.email;
|
|
15916
16052
|
}
|
|
15917
|
-
if (data.
|
|
15918
|
-
message.
|
|
16053
|
+
if (data.phone != null) {
|
|
16054
|
+
message.phone = data.phone;
|
|
15919
16055
|
}
|
|
15920
|
-
if (data.
|
|
15921
|
-
message.
|
|
16056
|
+
if (data.active != null) {
|
|
16057
|
+
message.active = data.active;
|
|
16058
|
+
}
|
|
16059
|
+
if (data.role != null) {
|
|
16060
|
+
message.role = Role.fromObject(data.role);
|
|
16061
|
+
}
|
|
16062
|
+
if (data.regionId != null) {
|
|
16063
|
+
message.regionId = data.regionId;
|
|
16064
|
+
}
|
|
16065
|
+
if (data.region != null) {
|
|
16066
|
+
message.region = Region.fromObject(data.region);
|
|
16067
|
+
}
|
|
16068
|
+
return message;
|
|
16069
|
+
}
|
|
16070
|
+
toObject() {
|
|
16071
|
+
const data = {};
|
|
16072
|
+
if (this.id != null) {
|
|
16073
|
+
data.id = this.id;
|
|
16074
|
+
}
|
|
16075
|
+
if (this.firstName != null) {
|
|
16076
|
+
data.firstName = this.firstName;
|
|
16077
|
+
}
|
|
16078
|
+
if (this.lastName != null) {
|
|
16079
|
+
data.lastName = this.lastName;
|
|
16080
|
+
}
|
|
16081
|
+
if (this.email != null) {
|
|
16082
|
+
data.email = this.email;
|
|
16083
|
+
}
|
|
16084
|
+
if (this.phone != null) {
|
|
16085
|
+
data.phone = this.phone;
|
|
16086
|
+
}
|
|
16087
|
+
if (this.active != null) {
|
|
16088
|
+
data.active = this.active;
|
|
16089
|
+
}
|
|
16090
|
+
if (this.role != null) {
|
|
16091
|
+
data.role = this.role.toObject();
|
|
16092
|
+
}
|
|
16093
|
+
if (this.regionId != null) {
|
|
16094
|
+
data.regionId = this.regionId;
|
|
16095
|
+
}
|
|
16096
|
+
if (this.region != null) {
|
|
16097
|
+
data.region = this.region.toObject();
|
|
16098
|
+
}
|
|
16099
|
+
return data;
|
|
16100
|
+
}
|
|
16101
|
+
serialize(w) {
|
|
16102
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16103
|
+
if (this.id.length)
|
|
16104
|
+
writer.writeString(1, this.id);
|
|
16105
|
+
if (this.firstName.length)
|
|
16106
|
+
writer.writeString(2, this.firstName);
|
|
16107
|
+
if (this.lastName.length)
|
|
16108
|
+
writer.writeString(3, this.lastName);
|
|
16109
|
+
if (this.email.length)
|
|
16110
|
+
writer.writeString(4, this.email);
|
|
16111
|
+
if (this.phone.length)
|
|
16112
|
+
writer.writeString(5, this.phone);
|
|
16113
|
+
if (this.active != false)
|
|
16114
|
+
writer.writeBool(6, this.active);
|
|
16115
|
+
if (this.hasRole)
|
|
16116
|
+
writer.writeMessage(7, this.role, () => this.role.serialize(writer));
|
|
16117
|
+
if (this.regionId.length)
|
|
16118
|
+
writer.writeString(8, this.regionId);
|
|
16119
|
+
if (this.hasRegion)
|
|
16120
|
+
writer.writeMessage(9, this.region, () => this.region.serialize(writer));
|
|
16121
|
+
if (!w)
|
|
16122
|
+
return writer.getResultBuffer();
|
|
16123
|
+
}
|
|
16124
|
+
static deserialize(bytes) {
|
|
16125
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StaffAttributionData();
|
|
16126
|
+
while (reader.nextField()) {
|
|
16127
|
+
if (reader.isEndGroup())
|
|
16128
|
+
break;
|
|
16129
|
+
switch (reader.getFieldNumber()) {
|
|
16130
|
+
case 1:
|
|
16131
|
+
message.id = reader.readString();
|
|
16132
|
+
break;
|
|
16133
|
+
case 2:
|
|
16134
|
+
message.firstName = reader.readString();
|
|
16135
|
+
break;
|
|
16136
|
+
case 3:
|
|
16137
|
+
message.lastName = reader.readString();
|
|
16138
|
+
break;
|
|
16139
|
+
case 4:
|
|
16140
|
+
message.email = reader.readString();
|
|
16141
|
+
break;
|
|
16142
|
+
case 5:
|
|
16143
|
+
message.phone = reader.readString();
|
|
16144
|
+
break;
|
|
16145
|
+
case 6:
|
|
16146
|
+
message.active = reader.readBool();
|
|
16147
|
+
break;
|
|
16148
|
+
case 7:
|
|
16149
|
+
reader.readMessage(message.role, () => message.role = Role.deserialize(reader));
|
|
16150
|
+
break;
|
|
16151
|
+
case 8:
|
|
16152
|
+
message.regionId = reader.readString();
|
|
16153
|
+
break;
|
|
16154
|
+
case 9:
|
|
16155
|
+
reader.readMessage(message.region, () => message.region = Region.deserialize(reader));
|
|
16156
|
+
break;
|
|
16157
|
+
default: reader.skipField();
|
|
16158
|
+
}
|
|
16159
|
+
}
|
|
16160
|
+
return message;
|
|
16161
|
+
}
|
|
16162
|
+
serializeBinary() {
|
|
16163
|
+
return this.serialize();
|
|
16164
|
+
}
|
|
16165
|
+
static deserializeBinary(bytes) {
|
|
16166
|
+
return StaffAttributionData.deserialize(bytes);
|
|
16167
|
+
}
|
|
16168
|
+
}
|
|
16169
|
+
business.StaffAttributionData = StaffAttributionData;
|
|
16170
|
+
class MerchantData extends pb_1.Message {
|
|
16171
|
+
#one_of_decls = [];
|
|
16172
|
+
constructor(data) {
|
|
16173
|
+
super();
|
|
16174
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
16175
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16176
|
+
if ("id" in data && data.id != undefined) {
|
|
16177
|
+
this.id = data.id;
|
|
16178
|
+
}
|
|
16179
|
+
if ("email" in data && data.email != undefined) {
|
|
16180
|
+
this.email = data.email;
|
|
16181
|
+
}
|
|
16182
|
+
if ("phoneNumber" in data && data.phoneNumber != undefined) {
|
|
16183
|
+
this.phoneNumber = data.phoneNumber;
|
|
16184
|
+
}
|
|
16185
|
+
if ("businessName" in data && data.businessName != undefined) {
|
|
16186
|
+
this.businessName = data.businessName;
|
|
16187
|
+
}
|
|
16188
|
+
if ("accountNumber" in data && data.accountNumber != undefined) {
|
|
16189
|
+
this.accountNumber = data.accountNumber;
|
|
16190
|
+
}
|
|
16191
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
16192
|
+
this.bvn = data.bvn;
|
|
16193
|
+
}
|
|
16194
|
+
if ("nin" in data && data.nin != undefined) {
|
|
16195
|
+
this.nin = data.nin;
|
|
16196
|
+
}
|
|
16197
|
+
if ("isVerified" in data && data.isVerified != undefined) {
|
|
16198
|
+
this.isVerified = data.isVerified;
|
|
16199
|
+
}
|
|
16200
|
+
if ("isValidated" in data && data.isValidated != undefined) {
|
|
16201
|
+
this.isValidated = data.isValidated;
|
|
16202
|
+
}
|
|
16203
|
+
if ("isActive" in data && data.isActive != undefined) {
|
|
16204
|
+
this.isActive = data.isActive;
|
|
16205
|
+
}
|
|
16206
|
+
if ("hasPin" in data && data.hasPin != undefined) {
|
|
16207
|
+
this.hasPin = data.hasPin;
|
|
16208
|
+
}
|
|
16209
|
+
if ("createdAt" in data && data.createdAt != undefined) {
|
|
16210
|
+
this.createdAt = data.createdAt;
|
|
16211
|
+
}
|
|
16212
|
+
if ("updatedAt" in data && data.updatedAt != undefined) {
|
|
16213
|
+
this.updatedAt = data.updatedAt;
|
|
16214
|
+
}
|
|
16215
|
+
if ("staffAttributedId" in data && data.staffAttributedId != undefined) {
|
|
16216
|
+
this.staffAttributedId = data.staffAttributedId;
|
|
16217
|
+
}
|
|
16218
|
+
if ("staffAttributedLastUpdateDatetime" in data && data.staffAttributedLastUpdateDatetime != undefined) {
|
|
16219
|
+
this.staffAttributedLastUpdateDatetime = data.staffAttributedLastUpdateDatetime;
|
|
16220
|
+
}
|
|
16221
|
+
if ("staffAttributedStatus" in data && data.staffAttributedStatus != undefined) {
|
|
16222
|
+
this.staffAttributedStatus = data.staffAttributedStatus;
|
|
16223
|
+
}
|
|
16224
|
+
if ("staffAttributed" in data && data.staffAttributed != undefined) {
|
|
16225
|
+
this.staffAttributed = data.staffAttributed;
|
|
16226
|
+
}
|
|
16227
|
+
if ("regionId" in data && data.regionId != undefined) {
|
|
16228
|
+
this.regionId = data.regionId;
|
|
16229
|
+
}
|
|
16230
|
+
}
|
|
16231
|
+
}
|
|
16232
|
+
get id() {
|
|
16233
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
16234
|
+
}
|
|
16235
|
+
set id(value) {
|
|
16236
|
+
pb_1.Message.setField(this, 1, value);
|
|
16237
|
+
}
|
|
16238
|
+
get email() {
|
|
16239
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16240
|
+
}
|
|
16241
|
+
set email(value) {
|
|
16242
|
+
pb_1.Message.setField(this, 2, value);
|
|
16243
|
+
}
|
|
16244
|
+
get phoneNumber() {
|
|
16245
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
16246
|
+
}
|
|
16247
|
+
set phoneNumber(value) {
|
|
16248
|
+
pb_1.Message.setField(this, 3, value);
|
|
16249
|
+
}
|
|
16250
|
+
get businessName() {
|
|
16251
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16252
|
+
}
|
|
16253
|
+
set businessName(value) {
|
|
16254
|
+
pb_1.Message.setField(this, 4, value);
|
|
16255
|
+
}
|
|
16256
|
+
get accountNumber() {
|
|
16257
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
16258
|
+
}
|
|
16259
|
+
set accountNumber(value) {
|
|
16260
|
+
pb_1.Message.setField(this, 5, value);
|
|
16261
|
+
}
|
|
16262
|
+
get bvn() {
|
|
16263
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
16264
|
+
}
|
|
16265
|
+
set bvn(value) {
|
|
16266
|
+
pb_1.Message.setField(this, 6, value);
|
|
16267
|
+
}
|
|
16268
|
+
get nin() {
|
|
16269
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
16270
|
+
}
|
|
16271
|
+
set nin(value) {
|
|
16272
|
+
pb_1.Message.setField(this, 7, value);
|
|
16273
|
+
}
|
|
16274
|
+
get isVerified() {
|
|
16275
|
+
return pb_1.Message.getFieldWithDefault(this, 8, false);
|
|
16276
|
+
}
|
|
16277
|
+
set isVerified(value) {
|
|
16278
|
+
pb_1.Message.setField(this, 8, value);
|
|
16279
|
+
}
|
|
16280
|
+
get isValidated() {
|
|
16281
|
+
return pb_1.Message.getFieldWithDefault(this, 9, false);
|
|
16282
|
+
}
|
|
16283
|
+
set isValidated(value) {
|
|
16284
|
+
pb_1.Message.setField(this, 9, value);
|
|
16285
|
+
}
|
|
16286
|
+
get isActive() {
|
|
16287
|
+
return pb_1.Message.getFieldWithDefault(this, 10, false);
|
|
16288
|
+
}
|
|
16289
|
+
set isActive(value) {
|
|
16290
|
+
pb_1.Message.setField(this, 10, value);
|
|
16291
|
+
}
|
|
16292
|
+
get hasPin() {
|
|
16293
|
+
return pb_1.Message.getFieldWithDefault(this, 11, false);
|
|
16294
|
+
}
|
|
16295
|
+
set hasPin(value) {
|
|
16296
|
+
pb_1.Message.setField(this, 11, value);
|
|
16297
|
+
}
|
|
16298
|
+
get createdAt() {
|
|
16299
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
16300
|
+
}
|
|
16301
|
+
set createdAt(value) {
|
|
16302
|
+
pb_1.Message.setField(this, 12, value);
|
|
16303
|
+
}
|
|
16304
|
+
get updatedAt() {
|
|
16305
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
16306
|
+
}
|
|
16307
|
+
set updatedAt(value) {
|
|
16308
|
+
pb_1.Message.setField(this, 13, value);
|
|
16309
|
+
}
|
|
16310
|
+
get staffAttributedId() {
|
|
16311
|
+
return pb_1.Message.getFieldWithDefault(this, 14, "");
|
|
16312
|
+
}
|
|
16313
|
+
set staffAttributedId(value) {
|
|
16314
|
+
pb_1.Message.setField(this, 14, value);
|
|
16315
|
+
}
|
|
16316
|
+
get staffAttributedLastUpdateDatetime() {
|
|
16317
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
16318
|
+
}
|
|
16319
|
+
set staffAttributedLastUpdateDatetime(value) {
|
|
16320
|
+
pb_1.Message.setField(this, 15, value);
|
|
16321
|
+
}
|
|
16322
|
+
get staffAttributedStatus() {
|
|
16323
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "");
|
|
16324
|
+
}
|
|
16325
|
+
set staffAttributedStatus(value) {
|
|
16326
|
+
pb_1.Message.setField(this, 16, value);
|
|
16327
|
+
}
|
|
16328
|
+
get staffAttributed() {
|
|
16329
|
+
return pb_1.Message.getWrapperField(this, StaffAttributionData, 17);
|
|
16330
|
+
}
|
|
16331
|
+
set staffAttributed(value) {
|
|
16332
|
+
pb_1.Message.setWrapperField(this, 17, value);
|
|
16333
|
+
}
|
|
16334
|
+
get hasStaffAttributed() {
|
|
16335
|
+
return pb_1.Message.getField(this, 17) != null;
|
|
16336
|
+
}
|
|
16337
|
+
get regionId() {
|
|
16338
|
+
return pb_1.Message.getFieldWithDefault(this, 18, "");
|
|
16339
|
+
}
|
|
16340
|
+
set regionId(value) {
|
|
16341
|
+
pb_1.Message.setField(this, 18, value);
|
|
16342
|
+
}
|
|
16343
|
+
static fromObject(data) {
|
|
16344
|
+
const message = new MerchantData({});
|
|
16345
|
+
if (data.id != null) {
|
|
16346
|
+
message.id = data.id;
|
|
16347
|
+
}
|
|
16348
|
+
if (data.email != null) {
|
|
16349
|
+
message.email = data.email;
|
|
16350
|
+
}
|
|
16351
|
+
if (data.phoneNumber != null) {
|
|
16352
|
+
message.phoneNumber = data.phoneNumber;
|
|
16353
|
+
}
|
|
16354
|
+
if (data.businessName != null) {
|
|
16355
|
+
message.businessName = data.businessName;
|
|
15922
16356
|
}
|
|
15923
16357
|
if (data.accountNumber != null) {
|
|
15924
16358
|
message.accountNumber = data.accountNumber;
|
|
@@ -15947,6 +16381,21 @@ var com;
|
|
|
15947
16381
|
if (data.updatedAt != null) {
|
|
15948
16382
|
message.updatedAt = data.updatedAt;
|
|
15949
16383
|
}
|
|
16384
|
+
if (data.staffAttributedId != null) {
|
|
16385
|
+
message.staffAttributedId = data.staffAttributedId;
|
|
16386
|
+
}
|
|
16387
|
+
if (data.staffAttributedLastUpdateDatetime != null) {
|
|
16388
|
+
message.staffAttributedLastUpdateDatetime = data.staffAttributedLastUpdateDatetime;
|
|
16389
|
+
}
|
|
16390
|
+
if (data.staffAttributedStatus != null) {
|
|
16391
|
+
message.staffAttributedStatus = data.staffAttributedStatus;
|
|
16392
|
+
}
|
|
16393
|
+
if (data.staffAttributed != null) {
|
|
16394
|
+
message.staffAttributed = StaffAttributionData.fromObject(data.staffAttributed);
|
|
16395
|
+
}
|
|
16396
|
+
if (data.regionId != null) {
|
|
16397
|
+
message.regionId = data.regionId;
|
|
16398
|
+
}
|
|
15950
16399
|
return message;
|
|
15951
16400
|
}
|
|
15952
16401
|
toObject() {
|
|
@@ -15975,98 +16424,584 @@ var com;
|
|
|
15975
16424
|
if (this.isVerified != null) {
|
|
15976
16425
|
data.isVerified = this.isVerified;
|
|
15977
16426
|
}
|
|
15978
|
-
if (this.isValidated != null) {
|
|
15979
|
-
data.isValidated = this.isValidated;
|
|
16427
|
+
if (this.isValidated != null) {
|
|
16428
|
+
data.isValidated = this.isValidated;
|
|
16429
|
+
}
|
|
16430
|
+
if (this.isActive != null) {
|
|
16431
|
+
data.isActive = this.isActive;
|
|
16432
|
+
}
|
|
16433
|
+
if (this.hasPin != null) {
|
|
16434
|
+
data.hasPin = this.hasPin;
|
|
16435
|
+
}
|
|
16436
|
+
if (this.createdAt != null) {
|
|
16437
|
+
data.createdAt = this.createdAt;
|
|
16438
|
+
}
|
|
16439
|
+
if (this.updatedAt != null) {
|
|
16440
|
+
data.updatedAt = this.updatedAt;
|
|
16441
|
+
}
|
|
16442
|
+
if (this.staffAttributedId != null) {
|
|
16443
|
+
data.staffAttributedId = this.staffAttributedId;
|
|
16444
|
+
}
|
|
16445
|
+
if (this.staffAttributedLastUpdateDatetime != null) {
|
|
16446
|
+
data.staffAttributedLastUpdateDatetime = this.staffAttributedLastUpdateDatetime;
|
|
16447
|
+
}
|
|
16448
|
+
if (this.staffAttributedStatus != null) {
|
|
16449
|
+
data.staffAttributedStatus = this.staffAttributedStatus;
|
|
16450
|
+
}
|
|
16451
|
+
if (this.staffAttributed != null) {
|
|
16452
|
+
data.staffAttributed = this.staffAttributed.toObject();
|
|
16453
|
+
}
|
|
16454
|
+
if (this.regionId != null) {
|
|
16455
|
+
data.regionId = this.regionId;
|
|
16456
|
+
}
|
|
16457
|
+
return data;
|
|
16458
|
+
}
|
|
16459
|
+
serialize(w) {
|
|
16460
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16461
|
+
if (this.id.length)
|
|
16462
|
+
writer.writeString(1, this.id);
|
|
16463
|
+
if (this.email.length)
|
|
16464
|
+
writer.writeString(2, this.email);
|
|
16465
|
+
if (this.phoneNumber.length)
|
|
16466
|
+
writer.writeString(3, this.phoneNumber);
|
|
16467
|
+
if (this.businessName.length)
|
|
16468
|
+
writer.writeString(4, this.businessName);
|
|
16469
|
+
if (this.accountNumber.length)
|
|
16470
|
+
writer.writeString(5, this.accountNumber);
|
|
16471
|
+
if (this.bvn.length)
|
|
16472
|
+
writer.writeString(6, this.bvn);
|
|
16473
|
+
if (this.nin.length)
|
|
16474
|
+
writer.writeString(7, this.nin);
|
|
16475
|
+
if (this.isVerified != false)
|
|
16476
|
+
writer.writeBool(8, this.isVerified);
|
|
16477
|
+
if (this.isValidated != false)
|
|
16478
|
+
writer.writeBool(9, this.isValidated);
|
|
16479
|
+
if (this.isActive != false)
|
|
16480
|
+
writer.writeBool(10, this.isActive);
|
|
16481
|
+
if (this.hasPin != false)
|
|
16482
|
+
writer.writeBool(11, this.hasPin);
|
|
16483
|
+
if (this.createdAt.length)
|
|
16484
|
+
writer.writeString(12, this.createdAt);
|
|
16485
|
+
if (this.updatedAt.length)
|
|
16486
|
+
writer.writeString(13, this.updatedAt);
|
|
16487
|
+
if (this.staffAttributedId.length)
|
|
16488
|
+
writer.writeString(14, this.staffAttributedId);
|
|
16489
|
+
if (this.staffAttributedLastUpdateDatetime.length)
|
|
16490
|
+
writer.writeString(15, this.staffAttributedLastUpdateDatetime);
|
|
16491
|
+
if (this.staffAttributedStatus.length)
|
|
16492
|
+
writer.writeString(16, this.staffAttributedStatus);
|
|
16493
|
+
if (this.hasStaffAttributed)
|
|
16494
|
+
writer.writeMessage(17, this.staffAttributed, () => this.staffAttributed.serialize(writer));
|
|
16495
|
+
if (this.regionId.length)
|
|
16496
|
+
writer.writeString(18, this.regionId);
|
|
16497
|
+
if (!w)
|
|
16498
|
+
return writer.getResultBuffer();
|
|
16499
|
+
}
|
|
16500
|
+
static deserialize(bytes) {
|
|
16501
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantData();
|
|
16502
|
+
while (reader.nextField()) {
|
|
16503
|
+
if (reader.isEndGroup())
|
|
16504
|
+
break;
|
|
16505
|
+
switch (reader.getFieldNumber()) {
|
|
16506
|
+
case 1:
|
|
16507
|
+
message.id = reader.readString();
|
|
16508
|
+
break;
|
|
16509
|
+
case 2:
|
|
16510
|
+
message.email = reader.readString();
|
|
16511
|
+
break;
|
|
16512
|
+
case 3:
|
|
16513
|
+
message.phoneNumber = reader.readString();
|
|
16514
|
+
break;
|
|
16515
|
+
case 4:
|
|
16516
|
+
message.businessName = reader.readString();
|
|
16517
|
+
break;
|
|
16518
|
+
case 5:
|
|
16519
|
+
message.accountNumber = reader.readString();
|
|
16520
|
+
break;
|
|
16521
|
+
case 6:
|
|
16522
|
+
message.bvn = reader.readString();
|
|
16523
|
+
break;
|
|
16524
|
+
case 7:
|
|
16525
|
+
message.nin = reader.readString();
|
|
16526
|
+
break;
|
|
16527
|
+
case 8:
|
|
16528
|
+
message.isVerified = reader.readBool();
|
|
16529
|
+
break;
|
|
16530
|
+
case 9:
|
|
16531
|
+
message.isValidated = reader.readBool();
|
|
16532
|
+
break;
|
|
16533
|
+
case 10:
|
|
16534
|
+
message.isActive = reader.readBool();
|
|
16535
|
+
break;
|
|
16536
|
+
case 11:
|
|
16537
|
+
message.hasPin = reader.readBool();
|
|
16538
|
+
break;
|
|
16539
|
+
case 12:
|
|
16540
|
+
message.createdAt = reader.readString();
|
|
16541
|
+
break;
|
|
16542
|
+
case 13:
|
|
16543
|
+
message.updatedAt = reader.readString();
|
|
16544
|
+
break;
|
|
16545
|
+
case 14:
|
|
16546
|
+
message.staffAttributedId = reader.readString();
|
|
16547
|
+
break;
|
|
16548
|
+
case 15:
|
|
16549
|
+
message.staffAttributedLastUpdateDatetime = reader.readString();
|
|
16550
|
+
break;
|
|
16551
|
+
case 16:
|
|
16552
|
+
message.staffAttributedStatus = reader.readString();
|
|
16553
|
+
break;
|
|
16554
|
+
case 17:
|
|
16555
|
+
reader.readMessage(message.staffAttributed, () => message.staffAttributed = StaffAttributionData.deserialize(reader));
|
|
16556
|
+
break;
|
|
16557
|
+
case 18:
|
|
16558
|
+
message.regionId = reader.readString();
|
|
16559
|
+
break;
|
|
16560
|
+
default: reader.skipField();
|
|
16561
|
+
}
|
|
16562
|
+
}
|
|
16563
|
+
return message;
|
|
16564
|
+
}
|
|
16565
|
+
serializeBinary() {
|
|
16566
|
+
return this.serialize();
|
|
16567
|
+
}
|
|
16568
|
+
static deserializeBinary(bytes) {
|
|
16569
|
+
return MerchantData.deserialize(bytes);
|
|
16570
|
+
}
|
|
16571
|
+
}
|
|
16572
|
+
business.MerchantData = MerchantData;
|
|
16573
|
+
class MerchantDataResponse extends pb_1.Message {
|
|
16574
|
+
#one_of_decls = [];
|
|
16575
|
+
constructor(data) {
|
|
16576
|
+
super();
|
|
16577
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6], this.#one_of_decls);
|
|
16578
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16579
|
+
if ("success" in data && data.success != undefined) {
|
|
16580
|
+
this.success = data.success;
|
|
16581
|
+
}
|
|
16582
|
+
if ("status" in data && data.status != undefined) {
|
|
16583
|
+
this.status = data.status;
|
|
16584
|
+
}
|
|
16585
|
+
if ("data" in data && data.data != undefined) {
|
|
16586
|
+
this.data = data.data;
|
|
16587
|
+
}
|
|
16588
|
+
if ("error" in data && data.error != undefined) {
|
|
16589
|
+
this.error = data.error;
|
|
16590
|
+
}
|
|
16591
|
+
if ("message" in data && data.message != undefined) {
|
|
16592
|
+
this.message = data.message;
|
|
16593
|
+
}
|
|
16594
|
+
if ("errors" in data && data.errors != undefined) {
|
|
16595
|
+
this.errors = data.errors;
|
|
16596
|
+
}
|
|
16597
|
+
}
|
|
16598
|
+
}
|
|
16599
|
+
get success() {
|
|
16600
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
16601
|
+
}
|
|
16602
|
+
set success(value) {
|
|
16603
|
+
pb_1.Message.setField(this, 1, value);
|
|
16604
|
+
}
|
|
16605
|
+
get status() {
|
|
16606
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16607
|
+
}
|
|
16608
|
+
set status(value) {
|
|
16609
|
+
pb_1.Message.setField(this, 2, value);
|
|
16610
|
+
}
|
|
16611
|
+
get data() {
|
|
16612
|
+
return pb_1.Message.getWrapperField(this, MerchantData, 3);
|
|
16613
|
+
}
|
|
16614
|
+
set data(value) {
|
|
16615
|
+
pb_1.Message.setWrapperField(this, 3, value);
|
|
16616
|
+
}
|
|
16617
|
+
get hasData() {
|
|
16618
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
16619
|
+
}
|
|
16620
|
+
get error() {
|
|
16621
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16622
|
+
}
|
|
16623
|
+
set error(value) {
|
|
16624
|
+
pb_1.Message.setField(this, 4, value);
|
|
16625
|
+
}
|
|
16626
|
+
get message() {
|
|
16627
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
16628
|
+
}
|
|
16629
|
+
set message(value) {
|
|
16630
|
+
pb_1.Message.setField(this, 5, value);
|
|
16631
|
+
}
|
|
16632
|
+
get errors() {
|
|
16633
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 6);
|
|
16634
|
+
}
|
|
16635
|
+
set errors(value) {
|
|
16636
|
+
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
16637
|
+
}
|
|
16638
|
+
static fromObject(data) {
|
|
16639
|
+
const message = new MerchantDataResponse({});
|
|
16640
|
+
if (data.success != null) {
|
|
16641
|
+
message.success = data.success;
|
|
16642
|
+
}
|
|
16643
|
+
if (data.status != null) {
|
|
16644
|
+
message.status = data.status;
|
|
16645
|
+
}
|
|
16646
|
+
if (data.data != null) {
|
|
16647
|
+
message.data = MerchantData.fromObject(data.data);
|
|
16648
|
+
}
|
|
16649
|
+
if (data.error != null) {
|
|
16650
|
+
message.error = data.error;
|
|
16651
|
+
}
|
|
16652
|
+
if (data.message != null) {
|
|
16653
|
+
message.message = data.message;
|
|
16654
|
+
}
|
|
16655
|
+
if (data.errors != null) {
|
|
16656
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16657
|
+
}
|
|
16658
|
+
return message;
|
|
16659
|
+
}
|
|
16660
|
+
toObject() {
|
|
16661
|
+
const data = {};
|
|
16662
|
+
if (this.success != null) {
|
|
16663
|
+
data.success = this.success;
|
|
16664
|
+
}
|
|
16665
|
+
if (this.status != null) {
|
|
16666
|
+
data.status = this.status;
|
|
16667
|
+
}
|
|
16668
|
+
if (this.data != null) {
|
|
16669
|
+
data.data = this.data.toObject();
|
|
16670
|
+
}
|
|
16671
|
+
if (this.error != null) {
|
|
16672
|
+
data.error = this.error;
|
|
16673
|
+
}
|
|
16674
|
+
if (this.message != null) {
|
|
16675
|
+
data.message = this.message;
|
|
16676
|
+
}
|
|
16677
|
+
if (this.errors != null) {
|
|
16678
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
16679
|
+
}
|
|
16680
|
+
return data;
|
|
16681
|
+
}
|
|
16682
|
+
serialize(w) {
|
|
16683
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16684
|
+
if (this.success != false)
|
|
16685
|
+
writer.writeBool(1, this.success);
|
|
16686
|
+
if (this.status.length)
|
|
16687
|
+
writer.writeString(2, this.status);
|
|
16688
|
+
if (this.hasData)
|
|
16689
|
+
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
16690
|
+
if (this.error.length)
|
|
16691
|
+
writer.writeString(4, this.error);
|
|
16692
|
+
if (this.message.length)
|
|
16693
|
+
writer.writeString(5, this.message);
|
|
16694
|
+
if (this.errors.length)
|
|
16695
|
+
writer.writeRepeatedMessage(6, this.errors, (item) => item.serialize(writer));
|
|
16696
|
+
if (!w)
|
|
16697
|
+
return writer.getResultBuffer();
|
|
16698
|
+
}
|
|
16699
|
+
static deserialize(bytes) {
|
|
16700
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantDataResponse();
|
|
16701
|
+
while (reader.nextField()) {
|
|
16702
|
+
if (reader.isEndGroup())
|
|
16703
|
+
break;
|
|
16704
|
+
switch (reader.getFieldNumber()) {
|
|
16705
|
+
case 1:
|
|
16706
|
+
message.success = reader.readBool();
|
|
16707
|
+
break;
|
|
16708
|
+
case 2:
|
|
16709
|
+
message.status = reader.readString();
|
|
16710
|
+
break;
|
|
16711
|
+
case 3:
|
|
16712
|
+
reader.readMessage(message.data, () => message.data = MerchantData.deserialize(reader));
|
|
16713
|
+
break;
|
|
16714
|
+
case 4:
|
|
16715
|
+
message.error = reader.readString();
|
|
16716
|
+
break;
|
|
16717
|
+
case 5:
|
|
16718
|
+
message.message = reader.readString();
|
|
16719
|
+
break;
|
|
16720
|
+
case 6:
|
|
16721
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16722
|
+
break;
|
|
16723
|
+
default: reader.skipField();
|
|
16724
|
+
}
|
|
16725
|
+
}
|
|
16726
|
+
return message;
|
|
16727
|
+
}
|
|
16728
|
+
serializeBinary() {
|
|
16729
|
+
return this.serialize();
|
|
16730
|
+
}
|
|
16731
|
+
static deserializeBinary(bytes) {
|
|
16732
|
+
return MerchantDataResponse.deserialize(bytes);
|
|
16733
|
+
}
|
|
16734
|
+
}
|
|
16735
|
+
business.MerchantDataResponse = MerchantDataResponse;
|
|
16736
|
+
class MMerchantDataResponse extends pb_1.Message {
|
|
16737
|
+
#one_of_decls = [];
|
|
16738
|
+
constructor(data) {
|
|
16739
|
+
super();
|
|
16740
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7], this.#one_of_decls);
|
|
16741
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16742
|
+
if ("success" in data && data.success != undefined) {
|
|
16743
|
+
this.success = data.success;
|
|
16744
|
+
}
|
|
16745
|
+
if ("status" in data && data.status != undefined) {
|
|
16746
|
+
this.status = data.status;
|
|
16747
|
+
}
|
|
16748
|
+
if ("data" in data && data.data != undefined) {
|
|
16749
|
+
this.data = data.data;
|
|
16750
|
+
}
|
|
16751
|
+
if ("error" in data && data.error != undefined) {
|
|
16752
|
+
this.error = data.error;
|
|
16753
|
+
}
|
|
16754
|
+
if ("message" in data && data.message != undefined) {
|
|
16755
|
+
this.message = data.message;
|
|
16756
|
+
}
|
|
16757
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
16758
|
+
this.pagination = data.pagination;
|
|
16759
|
+
}
|
|
16760
|
+
if ("errors" in data && data.errors != undefined) {
|
|
16761
|
+
this.errors = data.errors;
|
|
16762
|
+
}
|
|
16763
|
+
}
|
|
16764
|
+
}
|
|
16765
|
+
get success() {
|
|
16766
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
16767
|
+
}
|
|
16768
|
+
set success(value) {
|
|
16769
|
+
pb_1.Message.setField(this, 1, value);
|
|
16770
|
+
}
|
|
16771
|
+
get status() {
|
|
16772
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16773
|
+
}
|
|
16774
|
+
set status(value) {
|
|
16775
|
+
pb_1.Message.setField(this, 2, value);
|
|
16776
|
+
}
|
|
16777
|
+
get data() {
|
|
16778
|
+
return pb_1.Message.getRepeatedWrapperField(this, MerchantData, 3);
|
|
16779
|
+
}
|
|
16780
|
+
set data(value) {
|
|
16781
|
+
pb_1.Message.setRepeatedWrapperField(this, 3, value);
|
|
16782
|
+
}
|
|
16783
|
+
get error() {
|
|
16784
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16785
|
+
}
|
|
16786
|
+
set error(value) {
|
|
16787
|
+
pb_1.Message.setField(this, 4, value);
|
|
16788
|
+
}
|
|
16789
|
+
get message() {
|
|
16790
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
16791
|
+
}
|
|
16792
|
+
set message(value) {
|
|
16793
|
+
pb_1.Message.setField(this, 5, value);
|
|
16794
|
+
}
|
|
16795
|
+
get pagination() {
|
|
16796
|
+
return pb_1.Message.getWrapperField(this, Pagination, 6);
|
|
16797
|
+
}
|
|
16798
|
+
set pagination(value) {
|
|
16799
|
+
pb_1.Message.setWrapperField(this, 6, value);
|
|
16800
|
+
}
|
|
16801
|
+
get hasPagination() {
|
|
16802
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
16803
|
+
}
|
|
16804
|
+
get errors() {
|
|
16805
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 7);
|
|
16806
|
+
}
|
|
16807
|
+
set errors(value) {
|
|
16808
|
+
pb_1.Message.setRepeatedWrapperField(this, 7, value);
|
|
16809
|
+
}
|
|
16810
|
+
static fromObject(data) {
|
|
16811
|
+
const message = new MMerchantDataResponse({});
|
|
16812
|
+
if (data.success != null) {
|
|
16813
|
+
message.success = data.success;
|
|
16814
|
+
}
|
|
16815
|
+
if (data.status != null) {
|
|
16816
|
+
message.status = data.status;
|
|
16817
|
+
}
|
|
16818
|
+
if (data.data != null) {
|
|
16819
|
+
message.data = data.data.map(item => MerchantData.fromObject(item));
|
|
16820
|
+
}
|
|
16821
|
+
if (data.error != null) {
|
|
16822
|
+
message.error = data.error;
|
|
16823
|
+
}
|
|
16824
|
+
if (data.message != null) {
|
|
16825
|
+
message.message = data.message;
|
|
16826
|
+
}
|
|
16827
|
+
if (data.pagination != null) {
|
|
16828
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
16829
|
+
}
|
|
16830
|
+
if (data.errors != null) {
|
|
16831
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16832
|
+
}
|
|
16833
|
+
return message;
|
|
16834
|
+
}
|
|
16835
|
+
toObject() {
|
|
16836
|
+
const data = {};
|
|
16837
|
+
if (this.success != null) {
|
|
16838
|
+
data.success = this.success;
|
|
16839
|
+
}
|
|
16840
|
+
if (this.status != null) {
|
|
16841
|
+
data.status = this.status;
|
|
16842
|
+
}
|
|
16843
|
+
if (this.data != null) {
|
|
16844
|
+
data.data = this.data.map((item) => item.toObject());
|
|
16845
|
+
}
|
|
16846
|
+
if (this.error != null) {
|
|
16847
|
+
data.error = this.error;
|
|
16848
|
+
}
|
|
16849
|
+
if (this.message != null) {
|
|
16850
|
+
data.message = this.message;
|
|
16851
|
+
}
|
|
16852
|
+
if (this.pagination != null) {
|
|
16853
|
+
data.pagination = this.pagination.toObject();
|
|
16854
|
+
}
|
|
16855
|
+
if (this.errors != null) {
|
|
16856
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
16857
|
+
}
|
|
16858
|
+
return data;
|
|
16859
|
+
}
|
|
16860
|
+
serialize(w) {
|
|
16861
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16862
|
+
if (this.success != false)
|
|
16863
|
+
writer.writeBool(1, this.success);
|
|
16864
|
+
if (this.status.length)
|
|
16865
|
+
writer.writeString(2, this.status);
|
|
16866
|
+
if (this.data.length)
|
|
16867
|
+
writer.writeRepeatedMessage(3, this.data, (item) => item.serialize(writer));
|
|
16868
|
+
if (this.error.length)
|
|
16869
|
+
writer.writeString(4, this.error);
|
|
16870
|
+
if (this.message.length)
|
|
16871
|
+
writer.writeString(5, this.message);
|
|
16872
|
+
if (this.hasPagination)
|
|
16873
|
+
writer.writeMessage(6, this.pagination, () => this.pagination.serialize(writer));
|
|
16874
|
+
if (this.errors.length)
|
|
16875
|
+
writer.writeRepeatedMessage(7, this.errors, (item) => item.serialize(writer));
|
|
16876
|
+
if (!w)
|
|
16877
|
+
return writer.getResultBuffer();
|
|
16878
|
+
}
|
|
16879
|
+
static deserialize(bytes) {
|
|
16880
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MMerchantDataResponse();
|
|
16881
|
+
while (reader.nextField()) {
|
|
16882
|
+
if (reader.isEndGroup())
|
|
16883
|
+
break;
|
|
16884
|
+
switch (reader.getFieldNumber()) {
|
|
16885
|
+
case 1:
|
|
16886
|
+
message.success = reader.readBool();
|
|
16887
|
+
break;
|
|
16888
|
+
case 2:
|
|
16889
|
+
message.status = reader.readString();
|
|
16890
|
+
break;
|
|
16891
|
+
case 3:
|
|
16892
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 3, MerchantData.deserialize(reader), MerchantData));
|
|
16893
|
+
break;
|
|
16894
|
+
case 4:
|
|
16895
|
+
message.error = reader.readString();
|
|
16896
|
+
break;
|
|
16897
|
+
case 5:
|
|
16898
|
+
message.message = reader.readString();
|
|
16899
|
+
break;
|
|
16900
|
+
case 6:
|
|
16901
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
16902
|
+
break;
|
|
16903
|
+
case 7:
|
|
16904
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16905
|
+
break;
|
|
16906
|
+
default: reader.skipField();
|
|
16907
|
+
}
|
|
16908
|
+
}
|
|
16909
|
+
return message;
|
|
16910
|
+
}
|
|
16911
|
+
serializeBinary() {
|
|
16912
|
+
return this.serialize();
|
|
16913
|
+
}
|
|
16914
|
+
static deserializeBinary(bytes) {
|
|
16915
|
+
return MMerchantDataResponse.deserialize(bytes);
|
|
16916
|
+
}
|
|
16917
|
+
}
|
|
16918
|
+
business.MMerchantDataResponse = MMerchantDataResponse;
|
|
16919
|
+
class AssignAttributionStaffRequest extends pb_1.Message {
|
|
16920
|
+
#one_of_decls = [];
|
|
16921
|
+
constructor(data) {
|
|
16922
|
+
super();
|
|
16923
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
16924
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16925
|
+
if ("staffId" in data && data.staffId != undefined) {
|
|
16926
|
+
this.staffId = data.staffId;
|
|
16927
|
+
}
|
|
16928
|
+
if ("merchantId" in data && data.merchantId != undefined) {
|
|
16929
|
+
this.merchantId = data.merchantId;
|
|
16930
|
+
}
|
|
16931
|
+
if ("actionBy" in data && data.actionBy != undefined) {
|
|
16932
|
+
this.actionBy = data.actionBy;
|
|
16933
|
+
}
|
|
16934
|
+
}
|
|
16935
|
+
}
|
|
16936
|
+
get staffId() {
|
|
16937
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
16938
|
+
}
|
|
16939
|
+
set staffId(value) {
|
|
16940
|
+
pb_1.Message.setField(this, 1, value);
|
|
16941
|
+
}
|
|
16942
|
+
get merchantId() {
|
|
16943
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16944
|
+
}
|
|
16945
|
+
set merchantId(value) {
|
|
16946
|
+
pb_1.Message.setField(this, 2, value);
|
|
16947
|
+
}
|
|
16948
|
+
get actionBy() {
|
|
16949
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
16950
|
+
}
|
|
16951
|
+
set actionBy(value) {
|
|
16952
|
+
pb_1.Message.setField(this, 3, value);
|
|
16953
|
+
}
|
|
16954
|
+
static fromObject(data) {
|
|
16955
|
+
const message = new AssignAttributionStaffRequest({});
|
|
16956
|
+
if (data.staffId != null) {
|
|
16957
|
+
message.staffId = data.staffId;
|
|
16958
|
+
}
|
|
16959
|
+
if (data.merchantId != null) {
|
|
16960
|
+
message.merchantId = data.merchantId;
|
|
15980
16961
|
}
|
|
15981
|
-
if (
|
|
15982
|
-
|
|
16962
|
+
if (data.actionBy != null) {
|
|
16963
|
+
message.actionBy = data.actionBy;
|
|
15983
16964
|
}
|
|
15984
|
-
|
|
15985
|
-
|
|
16965
|
+
return message;
|
|
16966
|
+
}
|
|
16967
|
+
toObject() {
|
|
16968
|
+
const data = {};
|
|
16969
|
+
if (this.staffId != null) {
|
|
16970
|
+
data.staffId = this.staffId;
|
|
15986
16971
|
}
|
|
15987
|
-
if (this.
|
|
15988
|
-
data.
|
|
16972
|
+
if (this.merchantId != null) {
|
|
16973
|
+
data.merchantId = this.merchantId;
|
|
15989
16974
|
}
|
|
15990
|
-
if (this.
|
|
15991
|
-
data.
|
|
16975
|
+
if (this.actionBy != null) {
|
|
16976
|
+
data.actionBy = this.actionBy;
|
|
15992
16977
|
}
|
|
15993
16978
|
return data;
|
|
15994
16979
|
}
|
|
15995
16980
|
serialize(w) {
|
|
15996
16981
|
const writer = w || new pb_1.BinaryWriter();
|
|
15997
|
-
if (this.
|
|
15998
|
-
writer.writeString(1, this.
|
|
15999
|
-
if (this.
|
|
16000
|
-
writer.writeString(2, this.
|
|
16001
|
-
if (this.
|
|
16002
|
-
writer.writeString(3, this.
|
|
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);
|
|
16982
|
+
if (this.staffId.length)
|
|
16983
|
+
writer.writeString(1, this.staffId);
|
|
16984
|
+
if (this.merchantId.length)
|
|
16985
|
+
writer.writeString(2, this.merchantId);
|
|
16986
|
+
if (this.actionBy.length)
|
|
16987
|
+
writer.writeString(3, this.actionBy);
|
|
16023
16988
|
if (!w)
|
|
16024
16989
|
return writer.getResultBuffer();
|
|
16025
16990
|
}
|
|
16026
16991
|
static deserialize(bytes) {
|
|
16027
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
16992
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AssignAttributionStaffRequest();
|
|
16028
16993
|
while (reader.nextField()) {
|
|
16029
16994
|
if (reader.isEndGroup())
|
|
16030
16995
|
break;
|
|
16031
16996
|
switch (reader.getFieldNumber()) {
|
|
16032
16997
|
case 1:
|
|
16033
|
-
message.
|
|
16998
|
+
message.staffId = reader.readString();
|
|
16034
16999
|
break;
|
|
16035
17000
|
case 2:
|
|
16036
|
-
message.
|
|
17001
|
+
message.merchantId = reader.readString();
|
|
16037
17002
|
break;
|
|
16038
17003
|
case 3:
|
|
16039
|
-
message.
|
|
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();
|
|
17004
|
+
message.actionBy = reader.readString();
|
|
16070
17005
|
break;
|
|
16071
17006
|
default: reader.skipField();
|
|
16072
17007
|
}
|
|
@@ -16077,15 +17012,15 @@ var com;
|
|
|
16077
17012
|
return this.serialize();
|
|
16078
17013
|
}
|
|
16079
17014
|
static deserializeBinary(bytes) {
|
|
16080
|
-
return
|
|
17015
|
+
return AssignAttributionStaffRequest.deserialize(bytes);
|
|
16081
17016
|
}
|
|
16082
17017
|
}
|
|
16083
|
-
business.
|
|
16084
|
-
class
|
|
17018
|
+
business.AssignAttributionStaffRequest = AssignAttributionStaffRequest;
|
|
17019
|
+
class DefaultResponse extends pb_1.Message {
|
|
16085
17020
|
#one_of_decls = [];
|
|
16086
17021
|
constructor(data) {
|
|
16087
17022
|
super();
|
|
16088
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
17023
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
16089
17024
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
16090
17025
|
if ("success" in data && data.success != undefined) {
|
|
16091
17026
|
this.success = data.success;
|
|
@@ -16093,9 +17028,6 @@ var com;
|
|
|
16093
17028
|
if ("status" in data && data.status != undefined) {
|
|
16094
17029
|
this.status = data.status;
|
|
16095
17030
|
}
|
|
16096
|
-
if ("data" in data && data.data != undefined) {
|
|
16097
|
-
this.data = data.data;
|
|
16098
|
-
}
|
|
16099
17031
|
if ("error" in data && data.error != undefined) {
|
|
16100
17032
|
this.error = data.error;
|
|
16101
17033
|
}
|
|
@@ -16119,44 +17051,32 @@ var com;
|
|
|
16119
17051
|
set status(value) {
|
|
16120
17052
|
pb_1.Message.setField(this, 2, value);
|
|
16121
17053
|
}
|
|
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
17054
|
get error() {
|
|
16132
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
17055
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
16133
17056
|
}
|
|
16134
17057
|
set error(value) {
|
|
16135
|
-
pb_1.Message.setField(this,
|
|
17058
|
+
pb_1.Message.setField(this, 3, value);
|
|
16136
17059
|
}
|
|
16137
17060
|
get message() {
|
|
16138
|
-
return pb_1.Message.getFieldWithDefault(this,
|
|
17061
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16139
17062
|
}
|
|
16140
17063
|
set message(value) {
|
|
16141
|
-
pb_1.Message.setField(this,
|
|
17064
|
+
pb_1.Message.setField(this, 4, value);
|
|
16142
17065
|
}
|
|
16143
17066
|
get errors() {
|
|
16144
|
-
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors,
|
|
17067
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
16145
17068
|
}
|
|
16146
17069
|
set errors(value) {
|
|
16147
|
-
pb_1.Message.setRepeatedWrapperField(this,
|
|
17070
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
16148
17071
|
}
|
|
16149
17072
|
static fromObject(data) {
|
|
16150
|
-
const message = new
|
|
17073
|
+
const message = new DefaultResponse({});
|
|
16151
17074
|
if (data.success != null) {
|
|
16152
17075
|
message.success = data.success;
|
|
16153
17076
|
}
|
|
16154
17077
|
if (data.status != null) {
|
|
16155
17078
|
message.status = data.status;
|
|
16156
17079
|
}
|
|
16157
|
-
if (data.data != null) {
|
|
16158
|
-
message.data = MerchantData.fromObject(data.data);
|
|
16159
|
-
}
|
|
16160
17080
|
if (data.error != null) {
|
|
16161
17081
|
message.error = data.error;
|
|
16162
17082
|
}
|
|
@@ -16176,9 +17096,6 @@ var com;
|
|
|
16176
17096
|
if (this.status != null) {
|
|
16177
17097
|
data.status = this.status;
|
|
16178
17098
|
}
|
|
16179
|
-
if (this.data != null) {
|
|
16180
|
-
data.data = this.data.toObject();
|
|
16181
|
-
}
|
|
16182
17099
|
if (this.error != null) {
|
|
16183
17100
|
data.error = this.error;
|
|
16184
17101
|
}
|
|
@@ -16196,19 +17113,17 @@ var com;
|
|
|
16196
17113
|
writer.writeBool(1, this.success);
|
|
16197
17114
|
if (this.status.length)
|
|
16198
17115
|
writer.writeString(2, this.status);
|
|
16199
|
-
if (this.hasData)
|
|
16200
|
-
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
16201
17116
|
if (this.error.length)
|
|
16202
|
-
writer.writeString(
|
|
17117
|
+
writer.writeString(3, this.error);
|
|
16203
17118
|
if (this.message.length)
|
|
16204
|
-
writer.writeString(
|
|
17119
|
+
writer.writeString(4, this.message);
|
|
16205
17120
|
if (this.errors.length)
|
|
16206
|
-
writer.writeRepeatedMessage(
|
|
17121
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
16207
17122
|
if (!w)
|
|
16208
17123
|
return writer.getResultBuffer();
|
|
16209
17124
|
}
|
|
16210
17125
|
static deserialize(bytes) {
|
|
16211
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
17126
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DefaultResponse();
|
|
16212
17127
|
while (reader.nextField()) {
|
|
16213
17128
|
if (reader.isEndGroup())
|
|
16214
17129
|
break;
|
|
@@ -16220,16 +17135,13 @@ var com;
|
|
|
16220
17135
|
message.status = reader.readString();
|
|
16221
17136
|
break;
|
|
16222
17137
|
case 3:
|
|
16223
|
-
reader.readMessage(message.data, () => message.data = MerchantData.deserialize(reader));
|
|
16224
|
-
break;
|
|
16225
|
-
case 4:
|
|
16226
17138
|
message.error = reader.readString();
|
|
16227
17139
|
break;
|
|
16228
|
-
case
|
|
17140
|
+
case 4:
|
|
16229
17141
|
message.message = reader.readString();
|
|
16230
17142
|
break;
|
|
16231
|
-
case
|
|
16232
|
-
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message,
|
|
17143
|
+
case 5:
|
|
17144
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16233
17145
|
break;
|
|
16234
17146
|
default: reader.skipField();
|
|
16235
17147
|
}
|
|
@@ -16240,179 +17152,56 @@ var com;
|
|
|
16240
17152
|
return this.serialize();
|
|
16241
17153
|
}
|
|
16242
17154
|
static deserializeBinary(bytes) {
|
|
16243
|
-
return
|
|
17155
|
+
return DefaultResponse.deserialize(bytes);
|
|
16244
17156
|
}
|
|
16245
17157
|
}
|
|
16246
|
-
business.
|
|
16247
|
-
class
|
|
17158
|
+
business.DefaultResponse = DefaultResponse;
|
|
17159
|
+
class GetByIdRequest extends pb_1.Message {
|
|
16248
17160
|
#one_of_decls = [];
|
|
16249
17161
|
constructor(data) {
|
|
16250
17162
|
super();
|
|
16251
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
17163
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
16252
17164
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
16253
|
-
if ("
|
|
16254
|
-
this.
|
|
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;
|
|
17165
|
+
if ("id" in data && data.id != undefined) {
|
|
17166
|
+
this.id = data.id;
|
|
16273
17167
|
}
|
|
16274
17168
|
}
|
|
16275
17169
|
}
|
|
16276
|
-
get
|
|
16277
|
-
return pb_1.Message.getFieldWithDefault(this, 1,
|
|
17170
|
+
get id() {
|
|
17171
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
16278
17172
|
}
|
|
16279
|
-
set
|
|
17173
|
+
set id(value) {
|
|
16280
17174
|
pb_1.Message.setField(this, 1, value);
|
|
16281
|
-
}
|
|
16282
|
-
|
|
16283
|
-
|
|
16284
|
-
|
|
16285
|
-
|
|
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));
|
|
17175
|
+
}
|
|
17176
|
+
static fromObject(data) {
|
|
17177
|
+
const message = new GetByIdRequest({});
|
|
17178
|
+
if (data.id != null) {
|
|
17179
|
+
message.id = data.id;
|
|
16343
17180
|
}
|
|
16344
17181
|
return message;
|
|
16345
17182
|
}
|
|
16346
17183
|
toObject() {
|
|
16347
17184
|
const data = {};
|
|
16348
|
-
if (this.
|
|
16349
|
-
data.
|
|
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());
|
|
17185
|
+
if (this.id != null) {
|
|
17186
|
+
data.id = this.id;
|
|
16368
17187
|
}
|
|
16369
17188
|
return data;
|
|
16370
17189
|
}
|
|
16371
17190
|
serialize(w) {
|
|
16372
17191
|
const writer = w || new pb_1.BinaryWriter();
|
|
16373
|
-
if (this.
|
|
16374
|
-
writer.
|
|
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));
|
|
17192
|
+
if (this.id.length)
|
|
17193
|
+
writer.writeString(1, this.id);
|
|
16387
17194
|
if (!w)
|
|
16388
17195
|
return writer.getResultBuffer();
|
|
16389
17196
|
}
|
|
16390
17197
|
static deserialize(bytes) {
|
|
16391
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
17198
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetByIdRequest();
|
|
16392
17199
|
while (reader.nextField()) {
|
|
16393
17200
|
if (reader.isEndGroup())
|
|
16394
17201
|
break;
|
|
16395
17202
|
switch (reader.getFieldNumber()) {
|
|
16396
17203
|
case 1:
|
|
16397
|
-
message.
|
|
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));
|
|
17204
|
+
message.id = reader.readString();
|
|
16416
17205
|
break;
|
|
16417
17206
|
default: reader.skipField();
|
|
16418
17207
|
}
|
|
@@ -16423,96 +17212,76 @@ var com;
|
|
|
16423
17212
|
return this.serialize();
|
|
16424
17213
|
}
|
|
16425
17214
|
static deserializeBinary(bytes) {
|
|
16426
|
-
return
|
|
17215
|
+
return GetByIdRequest.deserialize(bytes);
|
|
16427
17216
|
}
|
|
16428
17217
|
}
|
|
16429
|
-
business.
|
|
16430
|
-
class
|
|
17218
|
+
business.GetByIdRequest = GetByIdRequest;
|
|
17219
|
+
class OrphanMerchant extends pb_1.Message {
|
|
16431
17220
|
#one_of_decls = [];
|
|
16432
17221
|
constructor(data) {
|
|
16433
17222
|
super();
|
|
16434
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
17223
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
|
16435
17224
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
16436
|
-
if ("
|
|
16437
|
-
this.
|
|
16438
|
-
}
|
|
16439
|
-
if ("merchantId" in data && data.merchantId != undefined) {
|
|
16440
|
-
this.merchantId = data.merchantId;
|
|
17225
|
+
if ("total" in data && data.total != undefined) {
|
|
17226
|
+
this.total = data.total;
|
|
16441
17227
|
}
|
|
16442
|
-
if ("
|
|
16443
|
-
this.
|
|
17228
|
+
if ("merchantIds" in data && data.merchantIds != undefined) {
|
|
17229
|
+
this.merchantIds = data.merchantIds;
|
|
16444
17230
|
}
|
|
16445
17231
|
}
|
|
16446
17232
|
}
|
|
16447
|
-
get
|
|
16448
|
-
return pb_1.Message.getFieldWithDefault(this, 1,
|
|
17233
|
+
get total() {
|
|
17234
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
16449
17235
|
}
|
|
16450
|
-
set
|
|
17236
|
+
set total(value) {
|
|
16451
17237
|
pb_1.Message.setField(this, 1, value);
|
|
16452
17238
|
}
|
|
16453
|
-
get
|
|
16454
|
-
return pb_1.Message.getFieldWithDefault(this, 2,
|
|
17239
|
+
get merchantIds() {
|
|
17240
|
+
return pb_1.Message.getFieldWithDefault(this, 2, []);
|
|
16455
17241
|
}
|
|
16456
|
-
set
|
|
17242
|
+
set merchantIds(value) {
|
|
16457
17243
|
pb_1.Message.setField(this, 2, value);
|
|
16458
17244
|
}
|
|
16459
|
-
get actionBy() {
|
|
16460
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
16461
|
-
}
|
|
16462
|
-
set actionBy(value) {
|
|
16463
|
-
pb_1.Message.setField(this, 3, value);
|
|
16464
|
-
}
|
|
16465
17245
|
static fromObject(data) {
|
|
16466
|
-
const message = new
|
|
16467
|
-
if (data.
|
|
16468
|
-
message.
|
|
16469
|
-
}
|
|
16470
|
-
if (data.merchantId != null) {
|
|
16471
|
-
message.merchantId = data.merchantId;
|
|
17246
|
+
const message = new OrphanMerchant({});
|
|
17247
|
+
if (data.total != null) {
|
|
17248
|
+
message.total = data.total;
|
|
16472
17249
|
}
|
|
16473
|
-
if (data.
|
|
16474
|
-
message.
|
|
17250
|
+
if (data.merchantIds != null) {
|
|
17251
|
+
message.merchantIds = data.merchantIds;
|
|
16475
17252
|
}
|
|
16476
17253
|
return message;
|
|
16477
17254
|
}
|
|
16478
17255
|
toObject() {
|
|
16479
17256
|
const data = {};
|
|
16480
|
-
if (this.
|
|
16481
|
-
data.
|
|
16482
|
-
}
|
|
16483
|
-
if (this.merchantId != null) {
|
|
16484
|
-
data.merchantId = this.merchantId;
|
|
17257
|
+
if (this.total != null) {
|
|
17258
|
+
data.total = this.total;
|
|
16485
17259
|
}
|
|
16486
|
-
if (this.
|
|
16487
|
-
data.
|
|
17260
|
+
if (this.merchantIds != null) {
|
|
17261
|
+
data.merchantIds = this.merchantIds;
|
|
16488
17262
|
}
|
|
16489
17263
|
return data;
|
|
16490
17264
|
}
|
|
16491
17265
|
serialize(w) {
|
|
16492
17266
|
const writer = w || new pb_1.BinaryWriter();
|
|
16493
|
-
if (this.
|
|
16494
|
-
writer.
|
|
16495
|
-
if (this.
|
|
16496
|
-
writer.
|
|
16497
|
-
if (this.actionBy.length)
|
|
16498
|
-
writer.writeString(3, this.actionBy);
|
|
17267
|
+
if (this.total != 0)
|
|
17268
|
+
writer.writeUint32(1, this.total);
|
|
17269
|
+
if (this.merchantIds.length)
|
|
17270
|
+
writer.writeRepeatedString(2, this.merchantIds);
|
|
16499
17271
|
if (!w)
|
|
16500
17272
|
return writer.getResultBuffer();
|
|
16501
17273
|
}
|
|
16502
17274
|
static deserialize(bytes) {
|
|
16503
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
17275
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new OrphanMerchant();
|
|
16504
17276
|
while (reader.nextField()) {
|
|
16505
17277
|
if (reader.isEndGroup())
|
|
16506
17278
|
break;
|
|
16507
17279
|
switch (reader.getFieldNumber()) {
|
|
16508
17280
|
case 1:
|
|
16509
|
-
message.
|
|
17281
|
+
message.total = reader.readUint32();
|
|
16510
17282
|
break;
|
|
16511
17283
|
case 2:
|
|
16512
|
-
message
|
|
16513
|
-
break;
|
|
16514
|
-
case 3:
|
|
16515
|
-
message.actionBy = reader.readString();
|
|
17284
|
+
pb_1.Message.addToRepeatedField(message, 2, reader.readString());
|
|
16516
17285
|
break;
|
|
16517
17286
|
default: reader.skipField();
|
|
16518
17287
|
}
|
|
@@ -16523,77 +17292,92 @@ var com;
|
|
|
16523
17292
|
return this.serialize();
|
|
16524
17293
|
}
|
|
16525
17294
|
static deserializeBinary(bytes) {
|
|
16526
|
-
return
|
|
17295
|
+
return OrphanMerchant.deserialize(bytes);
|
|
16527
17296
|
}
|
|
16528
17297
|
}
|
|
16529
|
-
business.
|
|
16530
|
-
class
|
|
17298
|
+
business.OrphanMerchant = OrphanMerchant;
|
|
17299
|
+
class OrphanMerchantsResponse extends pb_1.Message {
|
|
16531
17300
|
#one_of_decls = [];
|
|
16532
17301
|
constructor(data) {
|
|
16533
17302
|
super();
|
|
16534
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
17303
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6], this.#one_of_decls);
|
|
16535
17304
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
16536
17305
|
if ("success" in data && data.success != undefined) {
|
|
16537
17306
|
this.success = data.success;
|
|
16538
17307
|
}
|
|
17308
|
+
if ("message" in data && data.message != undefined) {
|
|
17309
|
+
this.message = data.message;
|
|
17310
|
+
}
|
|
17311
|
+
if ("data" in data && data.data != undefined) {
|
|
17312
|
+
this.data = data.data;
|
|
17313
|
+
}
|
|
16539
17314
|
if ("status" in data && data.status != undefined) {
|
|
16540
17315
|
this.status = data.status;
|
|
16541
17316
|
}
|
|
16542
17317
|
if ("error" in data && data.error != undefined) {
|
|
16543
17318
|
this.error = data.error;
|
|
16544
17319
|
}
|
|
16545
|
-
if ("message" in data && data.message != undefined) {
|
|
16546
|
-
this.message = data.message;
|
|
16547
|
-
}
|
|
16548
17320
|
if ("errors" in data && data.errors != undefined) {
|
|
16549
17321
|
this.errors = data.errors;
|
|
16550
17322
|
}
|
|
16551
17323
|
}
|
|
16552
17324
|
}
|
|
16553
17325
|
get success() {
|
|
16554
|
-
return pb_1.Message.getFieldWithDefault(this, 1,
|
|
17326
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
16555
17327
|
}
|
|
16556
17328
|
set success(value) {
|
|
16557
17329
|
pb_1.Message.setField(this, 1, value);
|
|
16558
17330
|
}
|
|
16559
|
-
get
|
|
17331
|
+
get message() {
|
|
16560
17332
|
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16561
17333
|
}
|
|
16562
|
-
set
|
|
17334
|
+
set message(value) {
|
|
16563
17335
|
pb_1.Message.setField(this, 2, value);
|
|
16564
17336
|
}
|
|
16565
|
-
get
|
|
16566
|
-
return pb_1.Message.
|
|
17337
|
+
get data() {
|
|
17338
|
+
return pb_1.Message.getWrapperField(this, OrphanMerchant, 3);
|
|
16567
17339
|
}
|
|
16568
|
-
set
|
|
16569
|
-
pb_1.Message.
|
|
17340
|
+
set data(value) {
|
|
17341
|
+
pb_1.Message.setWrapperField(this, 3, value);
|
|
16570
17342
|
}
|
|
16571
|
-
get
|
|
17343
|
+
get hasData() {
|
|
17344
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
17345
|
+
}
|
|
17346
|
+
get status() {
|
|
16572
17347
|
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16573
17348
|
}
|
|
16574
|
-
set
|
|
17349
|
+
set status(value) {
|
|
16575
17350
|
pb_1.Message.setField(this, 4, value);
|
|
16576
17351
|
}
|
|
17352
|
+
get error() {
|
|
17353
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
17354
|
+
}
|
|
17355
|
+
set error(value) {
|
|
17356
|
+
pb_1.Message.setField(this, 5, value);
|
|
17357
|
+
}
|
|
16577
17358
|
get errors() {
|
|
16578
|
-
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors,
|
|
17359
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 6);
|
|
16579
17360
|
}
|
|
16580
17361
|
set errors(value) {
|
|
16581
|
-
pb_1.Message.setRepeatedWrapperField(this,
|
|
17362
|
+
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
16582
17363
|
}
|
|
16583
17364
|
static fromObject(data) {
|
|
16584
|
-
const message = new
|
|
17365
|
+
const message = new OrphanMerchantsResponse({});
|
|
16585
17366
|
if (data.success != null) {
|
|
16586
17367
|
message.success = data.success;
|
|
16587
17368
|
}
|
|
17369
|
+
if (data.message != null) {
|
|
17370
|
+
message.message = data.message;
|
|
17371
|
+
}
|
|
17372
|
+
if (data.data != null) {
|
|
17373
|
+
message.data = OrphanMerchant.fromObject(data.data);
|
|
17374
|
+
}
|
|
16588
17375
|
if (data.status != null) {
|
|
16589
17376
|
message.status = data.status;
|
|
16590
17377
|
}
|
|
16591
17378
|
if (data.error != null) {
|
|
16592
17379
|
message.error = data.error;
|
|
16593
17380
|
}
|
|
16594
|
-
if (data.message != null) {
|
|
16595
|
-
message.message = data.message;
|
|
16596
|
-
}
|
|
16597
17381
|
if (data.errors != null) {
|
|
16598
17382
|
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16599
17383
|
}
|
|
@@ -16604,15 +17388,18 @@ var com;
|
|
|
16604
17388
|
if (this.success != null) {
|
|
16605
17389
|
data.success = this.success;
|
|
16606
17390
|
}
|
|
17391
|
+
if (this.message != null) {
|
|
17392
|
+
data.message = this.message;
|
|
17393
|
+
}
|
|
17394
|
+
if (this.data != null) {
|
|
17395
|
+
data.data = this.data.toObject();
|
|
17396
|
+
}
|
|
16607
17397
|
if (this.status != null) {
|
|
16608
17398
|
data.status = this.status;
|
|
16609
17399
|
}
|
|
16610
17400
|
if (this.error != null) {
|
|
16611
17401
|
data.error = this.error;
|
|
16612
17402
|
}
|
|
16613
|
-
if (this.message != null) {
|
|
16614
|
-
data.message = this.message;
|
|
16615
|
-
}
|
|
16616
17403
|
if (this.errors != null) {
|
|
16617
17404
|
data.errors = this.errors.map((item) => item.toObject());
|
|
16618
17405
|
}
|
|
@@ -16620,39 +17407,44 @@ var com;
|
|
|
16620
17407
|
}
|
|
16621
17408
|
serialize(w) {
|
|
16622
17409
|
const writer = w || new pb_1.BinaryWriter();
|
|
16623
|
-
if (this.success
|
|
16624
|
-
writer.
|
|
17410
|
+
if (this.success.length)
|
|
17411
|
+
writer.writeString(1, this.success);
|
|
17412
|
+
if (this.message.length)
|
|
17413
|
+
writer.writeString(2, this.message);
|
|
17414
|
+
if (this.hasData)
|
|
17415
|
+
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
16625
17416
|
if (this.status.length)
|
|
16626
|
-
writer.writeString(
|
|
17417
|
+
writer.writeString(4, this.status);
|
|
16627
17418
|
if (this.error.length)
|
|
16628
|
-
writer.writeString(
|
|
16629
|
-
if (this.message.length)
|
|
16630
|
-
writer.writeString(4, this.message);
|
|
17419
|
+
writer.writeString(5, this.error);
|
|
16631
17420
|
if (this.errors.length)
|
|
16632
|
-
writer.writeRepeatedMessage(
|
|
17421
|
+
writer.writeRepeatedMessage(6, this.errors, (item) => item.serialize(writer));
|
|
16633
17422
|
if (!w)
|
|
16634
17423
|
return writer.getResultBuffer();
|
|
16635
17424
|
}
|
|
16636
17425
|
static deserialize(bytes) {
|
|
16637
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
17426
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new OrphanMerchantsResponse();
|
|
16638
17427
|
while (reader.nextField()) {
|
|
16639
17428
|
if (reader.isEndGroup())
|
|
16640
17429
|
break;
|
|
16641
17430
|
switch (reader.getFieldNumber()) {
|
|
16642
17431
|
case 1:
|
|
16643
|
-
message.success = reader.
|
|
17432
|
+
message.success = reader.readString();
|
|
16644
17433
|
break;
|
|
16645
17434
|
case 2:
|
|
16646
|
-
message.
|
|
17435
|
+
message.message = reader.readString();
|
|
16647
17436
|
break;
|
|
16648
17437
|
case 3:
|
|
16649
|
-
message.
|
|
17438
|
+
reader.readMessage(message.data, () => message.data = OrphanMerchant.deserialize(reader));
|
|
16650
17439
|
break;
|
|
16651
17440
|
case 4:
|
|
16652
|
-
message.
|
|
17441
|
+
message.status = reader.readString();
|
|
16653
17442
|
break;
|
|
16654
17443
|
case 5:
|
|
16655
|
-
|
|
17444
|
+
message.error = reader.readString();
|
|
17445
|
+
break;
|
|
17446
|
+
case 6:
|
|
17447
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16656
17448
|
break;
|
|
16657
17449
|
default: reader.skipField();
|
|
16658
17450
|
}
|
|
@@ -16663,10 +17455,10 @@ var com;
|
|
|
16663
17455
|
return this.serialize();
|
|
16664
17456
|
}
|
|
16665
17457
|
static deserializeBinary(bytes) {
|
|
16666
|
-
return
|
|
17458
|
+
return OrphanMerchantsResponse.deserialize(bytes);
|
|
16667
17459
|
}
|
|
16668
17460
|
}
|
|
16669
|
-
business.
|
|
17461
|
+
business.OrphanMerchantsResponse = OrphanMerchantsResponse;
|
|
16670
17462
|
class UnimplementedBusinessService {
|
|
16671
17463
|
static definition = {
|
|
16672
17464
|
CreateBusiness: {
|
|
@@ -17127,6 +17919,24 @@ var com;
|
|
|
17127
17919
|
requestDeserialize: (bytes) => AssignAttributionStaffRequest.deserialize(new Uint8Array(bytes)),
|
|
17128
17920
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
17129
17921
|
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
17922
|
+
},
|
|
17923
|
+
GetMerchantsByAttributionStaff: {
|
|
17924
|
+
path: "/com.pkg.business.Business/GetMerchantsByAttributionStaff",
|
|
17925
|
+
requestStream: false,
|
|
17926
|
+
responseStream: false,
|
|
17927
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
17928
|
+
requestDeserialize: (bytes) => GetByIdRequest.deserialize(new Uint8Array(bytes)),
|
|
17929
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
17930
|
+
responseDeserialize: (bytes) => MMerchantDataResponse.deserialize(new Uint8Array(bytes))
|
|
17931
|
+
},
|
|
17932
|
+
OrphanMerchants: {
|
|
17933
|
+
path: "/com.pkg.business.Business/OrphanMerchants",
|
|
17934
|
+
requestStream: false,
|
|
17935
|
+
responseStream: false,
|
|
17936
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
17937
|
+
requestDeserialize: (bytes) => GetByIdRequest.deserialize(new Uint8Array(bytes)),
|
|
17938
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
17939
|
+
responseDeserialize: (bytes) => OrphanMerchantsResponse.deserialize(new Uint8Array(bytes))
|
|
17130
17940
|
}
|
|
17131
17941
|
};
|
|
17132
17942
|
}
|
|
@@ -17951,6 +18761,38 @@ var com;
|
|
|
17951
18761
|
}
|
|
17952
18762
|
}));
|
|
17953
18763
|
};
|
|
18764
|
+
GetMerchantsByAttributionStaff = (message, metadata, options) => {
|
|
18765
|
+
if (!metadata) {
|
|
18766
|
+
metadata = new grpc_1.Metadata;
|
|
18767
|
+
}
|
|
18768
|
+
if (!options) {
|
|
18769
|
+
options = {};
|
|
18770
|
+
}
|
|
18771
|
+
return new Promise((resolve, reject) => super.GetMerchantsByAttributionStaff(message, metadata, options, (error, response) => {
|
|
18772
|
+
if (error) {
|
|
18773
|
+
reject(error);
|
|
18774
|
+
}
|
|
18775
|
+
else {
|
|
18776
|
+
resolve(response);
|
|
18777
|
+
}
|
|
18778
|
+
}));
|
|
18779
|
+
};
|
|
18780
|
+
OrphanMerchants = (message, metadata, options) => {
|
|
18781
|
+
if (!metadata) {
|
|
18782
|
+
metadata = new grpc_1.Metadata;
|
|
18783
|
+
}
|
|
18784
|
+
if (!options) {
|
|
18785
|
+
options = {};
|
|
18786
|
+
}
|
|
18787
|
+
return new Promise((resolve, reject) => super.OrphanMerchants(message, metadata, options, (error, response) => {
|
|
18788
|
+
if (error) {
|
|
18789
|
+
reject(error);
|
|
18790
|
+
}
|
|
18791
|
+
else {
|
|
18792
|
+
resolve(response);
|
|
18793
|
+
}
|
|
18794
|
+
}));
|
|
18795
|
+
};
|
|
17954
18796
|
}
|
|
17955
18797
|
business.BusinessClient = BusinessClient;
|
|
17956
18798
|
})(business = pkg.business || (pkg.business = {}));
|