@technova-tech/olive-proto-lib 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/business/business.js +1121 -132
- package/package.json +1 -1
- package/types/business/business.d.ts +348 -0
package/business/business.js
CHANGED
|
@@ -15781,6 +15781,269 @@ var com;
|
|
|
15781
15781
|
}
|
|
15782
15782
|
}
|
|
15783
15783
|
business.MerchantLookupRequest = MerchantLookupRequest;
|
|
15784
|
+
class Role extends pb_1.Message {
|
|
15785
|
+
#one_of_decls = [];
|
|
15786
|
+
constructor(data) {
|
|
15787
|
+
super();
|
|
15788
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
15789
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
15790
|
+
if ("id" in data && data.id != undefined) {
|
|
15791
|
+
this.id = data.id;
|
|
15792
|
+
}
|
|
15793
|
+
if ("name" in data && data.name != undefined) {
|
|
15794
|
+
this.name = data.name;
|
|
15795
|
+
}
|
|
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();
|
|
15852
|
+
}
|
|
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 StaffAttributionData 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;
|
|
15872
|
+
}
|
|
15873
|
+
if ("firstName" in data && data.firstName != undefined) {
|
|
15874
|
+
this.firstName = data.firstName;
|
|
15875
|
+
}
|
|
15876
|
+
if ("lastName" in data && data.lastName != undefined) {
|
|
15877
|
+
this.lastName = data.lastName;
|
|
15878
|
+
}
|
|
15879
|
+
if ("email" in data && data.email != undefined) {
|
|
15880
|
+
this.email = data.email;
|
|
15881
|
+
}
|
|
15882
|
+
if ("phone" in data && data.phone != undefined) {
|
|
15883
|
+
this.phone = data.phone;
|
|
15884
|
+
}
|
|
15885
|
+
if ("active" in data && data.active != undefined) {
|
|
15886
|
+
this.active = data.active;
|
|
15887
|
+
}
|
|
15888
|
+
if ("role" in data && data.role != undefined) {
|
|
15889
|
+
this.role = data.role;
|
|
15890
|
+
}
|
|
15891
|
+
}
|
|
15892
|
+
}
|
|
15893
|
+
get id() {
|
|
15894
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
15895
|
+
}
|
|
15896
|
+
set id(value) {
|
|
15897
|
+
pb_1.Message.setField(this, 1, value);
|
|
15898
|
+
}
|
|
15899
|
+
get firstName() {
|
|
15900
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
15901
|
+
}
|
|
15902
|
+
set firstName(value) {
|
|
15903
|
+
pb_1.Message.setField(this, 2, value);
|
|
15904
|
+
}
|
|
15905
|
+
get lastName() {
|
|
15906
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
15907
|
+
}
|
|
15908
|
+
set lastName(value) {
|
|
15909
|
+
pb_1.Message.setField(this, 3, value);
|
|
15910
|
+
}
|
|
15911
|
+
get email() {
|
|
15912
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
15913
|
+
}
|
|
15914
|
+
set email(value) {
|
|
15915
|
+
pb_1.Message.setField(this, 4, value);
|
|
15916
|
+
}
|
|
15917
|
+
get phone() {
|
|
15918
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
15919
|
+
}
|
|
15920
|
+
set phone(value) {
|
|
15921
|
+
pb_1.Message.setField(this, 5, value);
|
|
15922
|
+
}
|
|
15923
|
+
get active() {
|
|
15924
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
15925
|
+
}
|
|
15926
|
+
set active(value) {
|
|
15927
|
+
pb_1.Message.setField(this, 6, value);
|
|
15928
|
+
}
|
|
15929
|
+
get role() {
|
|
15930
|
+
return pb_1.Message.getWrapperField(this, Role, 7);
|
|
15931
|
+
}
|
|
15932
|
+
set role(value) {
|
|
15933
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
15934
|
+
}
|
|
15935
|
+
get hasRole() {
|
|
15936
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
15937
|
+
}
|
|
15938
|
+
static fromObject(data) {
|
|
15939
|
+
const message = new StaffAttributionData({});
|
|
15940
|
+
if (data.id != null) {
|
|
15941
|
+
message.id = data.id;
|
|
15942
|
+
}
|
|
15943
|
+
if (data.firstName != null) {
|
|
15944
|
+
message.firstName = data.firstName;
|
|
15945
|
+
}
|
|
15946
|
+
if (data.lastName != null) {
|
|
15947
|
+
message.lastName = data.lastName;
|
|
15948
|
+
}
|
|
15949
|
+
if (data.email != null) {
|
|
15950
|
+
message.email = data.email;
|
|
15951
|
+
}
|
|
15952
|
+
if (data.phone != null) {
|
|
15953
|
+
message.phone = data.phone;
|
|
15954
|
+
}
|
|
15955
|
+
if (data.active != null) {
|
|
15956
|
+
message.active = data.active;
|
|
15957
|
+
}
|
|
15958
|
+
if (data.role != null) {
|
|
15959
|
+
message.role = Role.fromObject(data.role);
|
|
15960
|
+
}
|
|
15961
|
+
return message;
|
|
15962
|
+
}
|
|
15963
|
+
toObject() {
|
|
15964
|
+
const data = {};
|
|
15965
|
+
if (this.id != null) {
|
|
15966
|
+
data.id = this.id;
|
|
15967
|
+
}
|
|
15968
|
+
if (this.firstName != null) {
|
|
15969
|
+
data.firstName = this.firstName;
|
|
15970
|
+
}
|
|
15971
|
+
if (this.lastName != null) {
|
|
15972
|
+
data.lastName = this.lastName;
|
|
15973
|
+
}
|
|
15974
|
+
if (this.email != null) {
|
|
15975
|
+
data.email = this.email;
|
|
15976
|
+
}
|
|
15977
|
+
if (this.phone != null) {
|
|
15978
|
+
data.phone = this.phone;
|
|
15979
|
+
}
|
|
15980
|
+
if (this.active != null) {
|
|
15981
|
+
data.active = this.active;
|
|
15982
|
+
}
|
|
15983
|
+
if (this.role != null) {
|
|
15984
|
+
data.role = this.role.toObject();
|
|
15985
|
+
}
|
|
15986
|
+
return data;
|
|
15987
|
+
}
|
|
15988
|
+
serialize(w) {
|
|
15989
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
15990
|
+
if (this.id.length)
|
|
15991
|
+
writer.writeString(1, this.id);
|
|
15992
|
+
if (this.firstName.length)
|
|
15993
|
+
writer.writeString(2, this.firstName);
|
|
15994
|
+
if (this.lastName.length)
|
|
15995
|
+
writer.writeString(3, this.lastName);
|
|
15996
|
+
if (this.email.length)
|
|
15997
|
+
writer.writeString(4, this.email);
|
|
15998
|
+
if (this.phone.length)
|
|
15999
|
+
writer.writeString(5, this.phone);
|
|
16000
|
+
if (this.active != false)
|
|
16001
|
+
writer.writeBool(6, this.active);
|
|
16002
|
+
if (this.hasRole)
|
|
16003
|
+
writer.writeMessage(7, this.role, () => this.role.serialize(writer));
|
|
16004
|
+
if (!w)
|
|
16005
|
+
return writer.getResultBuffer();
|
|
16006
|
+
}
|
|
16007
|
+
static deserialize(bytes) {
|
|
16008
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StaffAttributionData();
|
|
16009
|
+
while (reader.nextField()) {
|
|
16010
|
+
if (reader.isEndGroup())
|
|
16011
|
+
break;
|
|
16012
|
+
switch (reader.getFieldNumber()) {
|
|
16013
|
+
case 1:
|
|
16014
|
+
message.id = reader.readString();
|
|
16015
|
+
break;
|
|
16016
|
+
case 2:
|
|
16017
|
+
message.firstName = reader.readString();
|
|
16018
|
+
break;
|
|
16019
|
+
case 3:
|
|
16020
|
+
message.lastName = reader.readString();
|
|
16021
|
+
break;
|
|
16022
|
+
case 4:
|
|
16023
|
+
message.email = reader.readString();
|
|
16024
|
+
break;
|
|
16025
|
+
case 5:
|
|
16026
|
+
message.phone = reader.readString();
|
|
16027
|
+
break;
|
|
16028
|
+
case 6:
|
|
16029
|
+
message.active = reader.readBool();
|
|
16030
|
+
break;
|
|
16031
|
+
case 7:
|
|
16032
|
+
reader.readMessage(message.role, () => message.role = Role.deserialize(reader));
|
|
16033
|
+
break;
|
|
16034
|
+
default: reader.skipField();
|
|
16035
|
+
}
|
|
16036
|
+
}
|
|
16037
|
+
return message;
|
|
16038
|
+
}
|
|
16039
|
+
serializeBinary() {
|
|
16040
|
+
return this.serialize();
|
|
16041
|
+
}
|
|
16042
|
+
static deserializeBinary(bytes) {
|
|
16043
|
+
return StaffAttributionData.deserialize(bytes);
|
|
16044
|
+
}
|
|
16045
|
+
}
|
|
16046
|
+
business.StaffAttributionData = StaffAttributionData;
|
|
15784
16047
|
class MerchantData extends pb_1.Message {
|
|
15785
16048
|
#one_of_decls = [];
|
|
15786
16049
|
constructor(data) {
|
|
@@ -15826,6 +16089,18 @@ var com;
|
|
|
15826
16089
|
if ("updatedAt" in data && data.updatedAt != undefined) {
|
|
15827
16090
|
this.updatedAt = data.updatedAt;
|
|
15828
16091
|
}
|
|
16092
|
+
if ("staffAttributedId" in data && data.staffAttributedId != undefined) {
|
|
16093
|
+
this.staffAttributedId = data.staffAttributedId;
|
|
16094
|
+
}
|
|
16095
|
+
if ("staffAttributedLastUpdateDatetime" in data && data.staffAttributedLastUpdateDatetime != undefined) {
|
|
16096
|
+
this.staffAttributedLastUpdateDatetime = data.staffAttributedLastUpdateDatetime;
|
|
16097
|
+
}
|
|
16098
|
+
if ("staffAttributedStatus" in data && data.staffAttributedStatus != undefined) {
|
|
16099
|
+
this.staffAttributedStatus = data.staffAttributedStatus;
|
|
16100
|
+
}
|
|
16101
|
+
if ("staffAttributed" in data && data.staffAttributed != undefined) {
|
|
16102
|
+
this.staffAttributed = data.staffAttributed;
|
|
16103
|
+
}
|
|
15829
16104
|
}
|
|
15830
16105
|
}
|
|
15831
16106
|
get id() {
|
|
@@ -15906,19 +16181,46 @@ var com;
|
|
|
15906
16181
|
set updatedAt(value) {
|
|
15907
16182
|
pb_1.Message.setField(this, 13, value);
|
|
15908
16183
|
}
|
|
15909
|
-
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
16184
|
+
get staffAttributedId() {
|
|
16185
|
+
return pb_1.Message.getFieldWithDefault(this, 14, "");
|
|
16186
|
+
}
|
|
16187
|
+
set staffAttributedId(value) {
|
|
16188
|
+
pb_1.Message.setField(this, 14, value);
|
|
16189
|
+
}
|
|
16190
|
+
get staffAttributedLastUpdateDatetime() {
|
|
16191
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
16192
|
+
}
|
|
16193
|
+
set staffAttributedLastUpdateDatetime(value) {
|
|
16194
|
+
pb_1.Message.setField(this, 15, value);
|
|
16195
|
+
}
|
|
16196
|
+
get staffAttributedStatus() {
|
|
16197
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "");
|
|
16198
|
+
}
|
|
16199
|
+
set staffAttributedStatus(value) {
|
|
16200
|
+
pb_1.Message.setField(this, 16, value);
|
|
16201
|
+
}
|
|
16202
|
+
get staffAttributed() {
|
|
16203
|
+
return pb_1.Message.getWrapperField(this, StaffAttributionData, 17);
|
|
16204
|
+
}
|
|
16205
|
+
set staffAttributed(value) {
|
|
16206
|
+
pb_1.Message.setWrapperField(this, 17, value);
|
|
16207
|
+
}
|
|
16208
|
+
get hasStaffAttributed() {
|
|
16209
|
+
return pb_1.Message.getField(this, 17) != null;
|
|
16210
|
+
}
|
|
16211
|
+
static fromObject(data) {
|
|
16212
|
+
const message = new MerchantData({});
|
|
16213
|
+
if (data.id != null) {
|
|
16214
|
+
message.id = data.id;
|
|
16215
|
+
}
|
|
16216
|
+
if (data.email != null) {
|
|
16217
|
+
message.email = data.email;
|
|
16218
|
+
}
|
|
16219
|
+
if (data.phoneNumber != null) {
|
|
16220
|
+
message.phoneNumber = data.phoneNumber;
|
|
16221
|
+
}
|
|
16222
|
+
if (data.businessName != null) {
|
|
16223
|
+
message.businessName = data.businessName;
|
|
15922
16224
|
}
|
|
15923
16225
|
if (data.accountNumber != null) {
|
|
15924
16226
|
message.accountNumber = data.accountNumber;
|
|
@@ -15947,6 +16249,18 @@ var com;
|
|
|
15947
16249
|
if (data.updatedAt != null) {
|
|
15948
16250
|
message.updatedAt = data.updatedAt;
|
|
15949
16251
|
}
|
|
16252
|
+
if (data.staffAttributedId != null) {
|
|
16253
|
+
message.staffAttributedId = data.staffAttributedId;
|
|
16254
|
+
}
|
|
16255
|
+
if (data.staffAttributedLastUpdateDatetime != null) {
|
|
16256
|
+
message.staffAttributedLastUpdateDatetime = data.staffAttributedLastUpdateDatetime;
|
|
16257
|
+
}
|
|
16258
|
+
if (data.staffAttributedStatus != null) {
|
|
16259
|
+
message.staffAttributedStatus = data.staffAttributedStatus;
|
|
16260
|
+
}
|
|
16261
|
+
if (data.staffAttributed != null) {
|
|
16262
|
+
message.staffAttributed = StaffAttributionData.fromObject(data.staffAttributed);
|
|
16263
|
+
}
|
|
15950
16264
|
return message;
|
|
15951
16265
|
}
|
|
15952
16266
|
toObject() {
|
|
@@ -15990,6 +16304,18 @@ var com;
|
|
|
15990
16304
|
if (this.updatedAt != null) {
|
|
15991
16305
|
data.updatedAt = this.updatedAt;
|
|
15992
16306
|
}
|
|
16307
|
+
if (this.staffAttributedId != null) {
|
|
16308
|
+
data.staffAttributedId = this.staffAttributedId;
|
|
16309
|
+
}
|
|
16310
|
+
if (this.staffAttributedLastUpdateDatetime != null) {
|
|
16311
|
+
data.staffAttributedLastUpdateDatetime = this.staffAttributedLastUpdateDatetime;
|
|
16312
|
+
}
|
|
16313
|
+
if (this.staffAttributedStatus != null) {
|
|
16314
|
+
data.staffAttributedStatus = this.staffAttributedStatus;
|
|
16315
|
+
}
|
|
16316
|
+
if (this.staffAttributed != null) {
|
|
16317
|
+
data.staffAttributed = this.staffAttributed.toObject();
|
|
16318
|
+
}
|
|
15993
16319
|
return data;
|
|
15994
16320
|
}
|
|
15995
16321
|
serialize(w) {
|
|
@@ -16020,6 +16346,14 @@ var com;
|
|
|
16020
16346
|
writer.writeString(12, this.createdAt);
|
|
16021
16347
|
if (this.updatedAt.length)
|
|
16022
16348
|
writer.writeString(13, this.updatedAt);
|
|
16349
|
+
if (this.staffAttributedId.length)
|
|
16350
|
+
writer.writeString(14, this.staffAttributedId);
|
|
16351
|
+
if (this.staffAttributedLastUpdateDatetime.length)
|
|
16352
|
+
writer.writeString(15, this.staffAttributedLastUpdateDatetime);
|
|
16353
|
+
if (this.staffAttributedStatus.length)
|
|
16354
|
+
writer.writeString(16, this.staffAttributedStatus);
|
|
16355
|
+
if (this.hasStaffAttributed)
|
|
16356
|
+
writer.writeMessage(17, this.staffAttributed, () => this.staffAttributed.serialize(writer));
|
|
16023
16357
|
if (!w)
|
|
16024
16358
|
return writer.getResultBuffer();
|
|
16025
16359
|
}
|
|
@@ -16068,6 +16402,18 @@ var com;
|
|
|
16068
16402
|
case 13:
|
|
16069
16403
|
message.updatedAt = reader.readString();
|
|
16070
16404
|
break;
|
|
16405
|
+
case 14:
|
|
16406
|
+
message.staffAttributedId = reader.readString();
|
|
16407
|
+
break;
|
|
16408
|
+
case 15:
|
|
16409
|
+
message.staffAttributedLastUpdateDatetime = reader.readString();
|
|
16410
|
+
break;
|
|
16411
|
+
case 16:
|
|
16412
|
+
message.staffAttributedStatus = reader.readString();
|
|
16413
|
+
break;
|
|
16414
|
+
case 17:
|
|
16415
|
+
reader.readMessage(message.staffAttributed, () => message.staffAttributed = StaffAttributionData.deserialize(reader));
|
|
16416
|
+
break;
|
|
16071
16417
|
default: reader.skipField();
|
|
16072
16418
|
}
|
|
16073
16419
|
}
|
|
@@ -16163,73 +16509,636 @@ var com;
|
|
|
16163
16509
|
if (data.message != null) {
|
|
16164
16510
|
message.message = data.message;
|
|
16165
16511
|
}
|
|
16166
|
-
if (data.errors != null) {
|
|
16167
|
-
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16512
|
+
if (data.errors != null) {
|
|
16513
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16514
|
+
}
|
|
16515
|
+
return message;
|
|
16516
|
+
}
|
|
16517
|
+
toObject() {
|
|
16518
|
+
const data = {};
|
|
16519
|
+
if (this.success != null) {
|
|
16520
|
+
data.success = this.success;
|
|
16521
|
+
}
|
|
16522
|
+
if (this.status != null) {
|
|
16523
|
+
data.status = this.status;
|
|
16524
|
+
}
|
|
16525
|
+
if (this.data != null) {
|
|
16526
|
+
data.data = this.data.toObject();
|
|
16527
|
+
}
|
|
16528
|
+
if (this.error != null) {
|
|
16529
|
+
data.error = this.error;
|
|
16530
|
+
}
|
|
16531
|
+
if (this.message != null) {
|
|
16532
|
+
data.message = this.message;
|
|
16533
|
+
}
|
|
16534
|
+
if (this.errors != null) {
|
|
16535
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
16536
|
+
}
|
|
16537
|
+
return data;
|
|
16538
|
+
}
|
|
16539
|
+
serialize(w) {
|
|
16540
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16541
|
+
if (this.success != false)
|
|
16542
|
+
writer.writeBool(1, this.success);
|
|
16543
|
+
if (this.status.length)
|
|
16544
|
+
writer.writeString(2, this.status);
|
|
16545
|
+
if (this.hasData)
|
|
16546
|
+
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
16547
|
+
if (this.error.length)
|
|
16548
|
+
writer.writeString(4, this.error);
|
|
16549
|
+
if (this.message.length)
|
|
16550
|
+
writer.writeString(5, this.message);
|
|
16551
|
+
if (this.errors.length)
|
|
16552
|
+
writer.writeRepeatedMessage(6, this.errors, (item) => item.serialize(writer));
|
|
16553
|
+
if (!w)
|
|
16554
|
+
return writer.getResultBuffer();
|
|
16555
|
+
}
|
|
16556
|
+
static deserialize(bytes) {
|
|
16557
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MerchantDataResponse();
|
|
16558
|
+
while (reader.nextField()) {
|
|
16559
|
+
if (reader.isEndGroup())
|
|
16560
|
+
break;
|
|
16561
|
+
switch (reader.getFieldNumber()) {
|
|
16562
|
+
case 1:
|
|
16563
|
+
message.success = reader.readBool();
|
|
16564
|
+
break;
|
|
16565
|
+
case 2:
|
|
16566
|
+
message.status = reader.readString();
|
|
16567
|
+
break;
|
|
16568
|
+
case 3:
|
|
16569
|
+
reader.readMessage(message.data, () => message.data = MerchantData.deserialize(reader));
|
|
16570
|
+
break;
|
|
16571
|
+
case 4:
|
|
16572
|
+
message.error = reader.readString();
|
|
16573
|
+
break;
|
|
16574
|
+
case 5:
|
|
16575
|
+
message.message = reader.readString();
|
|
16576
|
+
break;
|
|
16577
|
+
case 6:
|
|
16578
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16579
|
+
break;
|
|
16580
|
+
default: reader.skipField();
|
|
16581
|
+
}
|
|
16582
|
+
}
|
|
16583
|
+
return message;
|
|
16584
|
+
}
|
|
16585
|
+
serializeBinary() {
|
|
16586
|
+
return this.serialize();
|
|
16587
|
+
}
|
|
16588
|
+
static deserializeBinary(bytes) {
|
|
16589
|
+
return MerchantDataResponse.deserialize(bytes);
|
|
16590
|
+
}
|
|
16591
|
+
}
|
|
16592
|
+
business.MerchantDataResponse = MerchantDataResponse;
|
|
16593
|
+
class MMerchantDataResponse extends pb_1.Message {
|
|
16594
|
+
#one_of_decls = [];
|
|
16595
|
+
constructor(data) {
|
|
16596
|
+
super();
|
|
16597
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 7], this.#one_of_decls);
|
|
16598
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16599
|
+
if ("success" in data && data.success != undefined) {
|
|
16600
|
+
this.success = data.success;
|
|
16601
|
+
}
|
|
16602
|
+
if ("status" in data && data.status != undefined) {
|
|
16603
|
+
this.status = data.status;
|
|
16604
|
+
}
|
|
16605
|
+
if ("data" in data && data.data != undefined) {
|
|
16606
|
+
this.data = data.data;
|
|
16607
|
+
}
|
|
16608
|
+
if ("error" in data && data.error != undefined) {
|
|
16609
|
+
this.error = data.error;
|
|
16610
|
+
}
|
|
16611
|
+
if ("message" in data && data.message != undefined) {
|
|
16612
|
+
this.message = data.message;
|
|
16613
|
+
}
|
|
16614
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
16615
|
+
this.pagination = data.pagination;
|
|
16616
|
+
}
|
|
16617
|
+
if ("errors" in data && data.errors != undefined) {
|
|
16618
|
+
this.errors = data.errors;
|
|
16619
|
+
}
|
|
16620
|
+
}
|
|
16621
|
+
}
|
|
16622
|
+
get success() {
|
|
16623
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
16624
|
+
}
|
|
16625
|
+
set success(value) {
|
|
16626
|
+
pb_1.Message.setField(this, 1, value);
|
|
16627
|
+
}
|
|
16628
|
+
get status() {
|
|
16629
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16630
|
+
}
|
|
16631
|
+
set status(value) {
|
|
16632
|
+
pb_1.Message.setField(this, 2, value);
|
|
16633
|
+
}
|
|
16634
|
+
get data() {
|
|
16635
|
+
return pb_1.Message.getRepeatedWrapperField(this, MerchantData, 3);
|
|
16636
|
+
}
|
|
16637
|
+
set data(value) {
|
|
16638
|
+
pb_1.Message.setRepeatedWrapperField(this, 3, value);
|
|
16639
|
+
}
|
|
16640
|
+
get error() {
|
|
16641
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16642
|
+
}
|
|
16643
|
+
set error(value) {
|
|
16644
|
+
pb_1.Message.setField(this, 4, value);
|
|
16645
|
+
}
|
|
16646
|
+
get message() {
|
|
16647
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
16648
|
+
}
|
|
16649
|
+
set message(value) {
|
|
16650
|
+
pb_1.Message.setField(this, 5, value);
|
|
16651
|
+
}
|
|
16652
|
+
get pagination() {
|
|
16653
|
+
return pb_1.Message.getWrapperField(this, Pagination, 6);
|
|
16654
|
+
}
|
|
16655
|
+
set pagination(value) {
|
|
16656
|
+
pb_1.Message.setWrapperField(this, 6, value);
|
|
16657
|
+
}
|
|
16658
|
+
get hasPagination() {
|
|
16659
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
16660
|
+
}
|
|
16661
|
+
get errors() {
|
|
16662
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 7);
|
|
16663
|
+
}
|
|
16664
|
+
set errors(value) {
|
|
16665
|
+
pb_1.Message.setRepeatedWrapperField(this, 7, value);
|
|
16666
|
+
}
|
|
16667
|
+
static fromObject(data) {
|
|
16668
|
+
const message = new MMerchantDataResponse({});
|
|
16669
|
+
if (data.success != null) {
|
|
16670
|
+
message.success = data.success;
|
|
16671
|
+
}
|
|
16672
|
+
if (data.status != null) {
|
|
16673
|
+
message.status = data.status;
|
|
16674
|
+
}
|
|
16675
|
+
if (data.data != null) {
|
|
16676
|
+
message.data = data.data.map(item => MerchantData.fromObject(item));
|
|
16677
|
+
}
|
|
16678
|
+
if (data.error != null) {
|
|
16679
|
+
message.error = data.error;
|
|
16680
|
+
}
|
|
16681
|
+
if (data.message != null) {
|
|
16682
|
+
message.message = data.message;
|
|
16683
|
+
}
|
|
16684
|
+
if (data.pagination != null) {
|
|
16685
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
16686
|
+
}
|
|
16687
|
+
if (data.errors != null) {
|
|
16688
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16689
|
+
}
|
|
16690
|
+
return message;
|
|
16691
|
+
}
|
|
16692
|
+
toObject() {
|
|
16693
|
+
const data = {};
|
|
16694
|
+
if (this.success != null) {
|
|
16695
|
+
data.success = this.success;
|
|
16696
|
+
}
|
|
16697
|
+
if (this.status != null) {
|
|
16698
|
+
data.status = this.status;
|
|
16699
|
+
}
|
|
16700
|
+
if (this.data != null) {
|
|
16701
|
+
data.data = this.data.map((item) => item.toObject());
|
|
16702
|
+
}
|
|
16703
|
+
if (this.error != null) {
|
|
16704
|
+
data.error = this.error;
|
|
16705
|
+
}
|
|
16706
|
+
if (this.message != null) {
|
|
16707
|
+
data.message = this.message;
|
|
16708
|
+
}
|
|
16709
|
+
if (this.pagination != null) {
|
|
16710
|
+
data.pagination = this.pagination.toObject();
|
|
16711
|
+
}
|
|
16712
|
+
if (this.errors != null) {
|
|
16713
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
16714
|
+
}
|
|
16715
|
+
return data;
|
|
16716
|
+
}
|
|
16717
|
+
serialize(w) {
|
|
16718
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16719
|
+
if (this.success != false)
|
|
16720
|
+
writer.writeBool(1, this.success);
|
|
16721
|
+
if (this.status.length)
|
|
16722
|
+
writer.writeString(2, this.status);
|
|
16723
|
+
if (this.data.length)
|
|
16724
|
+
writer.writeRepeatedMessage(3, this.data, (item) => item.serialize(writer));
|
|
16725
|
+
if (this.error.length)
|
|
16726
|
+
writer.writeString(4, this.error);
|
|
16727
|
+
if (this.message.length)
|
|
16728
|
+
writer.writeString(5, this.message);
|
|
16729
|
+
if (this.hasPagination)
|
|
16730
|
+
writer.writeMessage(6, this.pagination, () => this.pagination.serialize(writer));
|
|
16731
|
+
if (this.errors.length)
|
|
16732
|
+
writer.writeRepeatedMessage(7, this.errors, (item) => item.serialize(writer));
|
|
16733
|
+
if (!w)
|
|
16734
|
+
return writer.getResultBuffer();
|
|
16735
|
+
}
|
|
16736
|
+
static deserialize(bytes) {
|
|
16737
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MMerchantDataResponse();
|
|
16738
|
+
while (reader.nextField()) {
|
|
16739
|
+
if (reader.isEndGroup())
|
|
16740
|
+
break;
|
|
16741
|
+
switch (reader.getFieldNumber()) {
|
|
16742
|
+
case 1:
|
|
16743
|
+
message.success = reader.readBool();
|
|
16744
|
+
break;
|
|
16745
|
+
case 2:
|
|
16746
|
+
message.status = reader.readString();
|
|
16747
|
+
break;
|
|
16748
|
+
case 3:
|
|
16749
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 3, MerchantData.deserialize(reader), MerchantData));
|
|
16750
|
+
break;
|
|
16751
|
+
case 4:
|
|
16752
|
+
message.error = reader.readString();
|
|
16753
|
+
break;
|
|
16754
|
+
case 5:
|
|
16755
|
+
message.message = reader.readString();
|
|
16756
|
+
break;
|
|
16757
|
+
case 6:
|
|
16758
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
16759
|
+
break;
|
|
16760
|
+
case 7:
|
|
16761
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16762
|
+
break;
|
|
16763
|
+
default: reader.skipField();
|
|
16764
|
+
}
|
|
16765
|
+
}
|
|
16766
|
+
return message;
|
|
16767
|
+
}
|
|
16768
|
+
serializeBinary() {
|
|
16769
|
+
return this.serialize();
|
|
16770
|
+
}
|
|
16771
|
+
static deserializeBinary(bytes) {
|
|
16772
|
+
return MMerchantDataResponse.deserialize(bytes);
|
|
16773
|
+
}
|
|
16774
|
+
}
|
|
16775
|
+
business.MMerchantDataResponse = MMerchantDataResponse;
|
|
16776
|
+
class AssignAttributionStaffRequest extends pb_1.Message {
|
|
16777
|
+
#one_of_decls = [];
|
|
16778
|
+
constructor(data) {
|
|
16779
|
+
super();
|
|
16780
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
16781
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16782
|
+
if ("staffId" in data && data.staffId != undefined) {
|
|
16783
|
+
this.staffId = data.staffId;
|
|
16784
|
+
}
|
|
16785
|
+
if ("merchantId" in data && data.merchantId != undefined) {
|
|
16786
|
+
this.merchantId = data.merchantId;
|
|
16787
|
+
}
|
|
16788
|
+
if ("actionBy" in data && data.actionBy != undefined) {
|
|
16789
|
+
this.actionBy = data.actionBy;
|
|
16790
|
+
}
|
|
16791
|
+
}
|
|
16792
|
+
}
|
|
16793
|
+
get staffId() {
|
|
16794
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
16795
|
+
}
|
|
16796
|
+
set staffId(value) {
|
|
16797
|
+
pb_1.Message.setField(this, 1, value);
|
|
16798
|
+
}
|
|
16799
|
+
get merchantId() {
|
|
16800
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16801
|
+
}
|
|
16802
|
+
set merchantId(value) {
|
|
16803
|
+
pb_1.Message.setField(this, 2, value);
|
|
16804
|
+
}
|
|
16805
|
+
get actionBy() {
|
|
16806
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
16807
|
+
}
|
|
16808
|
+
set actionBy(value) {
|
|
16809
|
+
pb_1.Message.setField(this, 3, value);
|
|
16810
|
+
}
|
|
16811
|
+
static fromObject(data) {
|
|
16812
|
+
const message = new AssignAttributionStaffRequest({});
|
|
16813
|
+
if (data.staffId != null) {
|
|
16814
|
+
message.staffId = data.staffId;
|
|
16815
|
+
}
|
|
16816
|
+
if (data.merchantId != null) {
|
|
16817
|
+
message.merchantId = data.merchantId;
|
|
16818
|
+
}
|
|
16819
|
+
if (data.actionBy != null) {
|
|
16820
|
+
message.actionBy = data.actionBy;
|
|
16821
|
+
}
|
|
16822
|
+
return message;
|
|
16823
|
+
}
|
|
16824
|
+
toObject() {
|
|
16825
|
+
const data = {};
|
|
16826
|
+
if (this.staffId != null) {
|
|
16827
|
+
data.staffId = this.staffId;
|
|
16828
|
+
}
|
|
16829
|
+
if (this.merchantId != null) {
|
|
16830
|
+
data.merchantId = this.merchantId;
|
|
16831
|
+
}
|
|
16832
|
+
if (this.actionBy != null) {
|
|
16833
|
+
data.actionBy = this.actionBy;
|
|
16834
|
+
}
|
|
16835
|
+
return data;
|
|
16836
|
+
}
|
|
16837
|
+
serialize(w) {
|
|
16838
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16839
|
+
if (this.staffId.length)
|
|
16840
|
+
writer.writeString(1, this.staffId);
|
|
16841
|
+
if (this.merchantId.length)
|
|
16842
|
+
writer.writeString(2, this.merchantId);
|
|
16843
|
+
if (this.actionBy.length)
|
|
16844
|
+
writer.writeString(3, this.actionBy);
|
|
16845
|
+
if (!w)
|
|
16846
|
+
return writer.getResultBuffer();
|
|
16847
|
+
}
|
|
16848
|
+
static deserialize(bytes) {
|
|
16849
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AssignAttributionStaffRequest();
|
|
16850
|
+
while (reader.nextField()) {
|
|
16851
|
+
if (reader.isEndGroup())
|
|
16852
|
+
break;
|
|
16853
|
+
switch (reader.getFieldNumber()) {
|
|
16854
|
+
case 1:
|
|
16855
|
+
message.staffId = reader.readString();
|
|
16856
|
+
break;
|
|
16857
|
+
case 2:
|
|
16858
|
+
message.merchantId = reader.readString();
|
|
16859
|
+
break;
|
|
16860
|
+
case 3:
|
|
16861
|
+
message.actionBy = reader.readString();
|
|
16862
|
+
break;
|
|
16863
|
+
default: reader.skipField();
|
|
16864
|
+
}
|
|
16865
|
+
}
|
|
16866
|
+
return message;
|
|
16867
|
+
}
|
|
16868
|
+
serializeBinary() {
|
|
16869
|
+
return this.serialize();
|
|
16870
|
+
}
|
|
16871
|
+
static deserializeBinary(bytes) {
|
|
16872
|
+
return AssignAttributionStaffRequest.deserialize(bytes);
|
|
16873
|
+
}
|
|
16874
|
+
}
|
|
16875
|
+
business.AssignAttributionStaffRequest = AssignAttributionStaffRequest;
|
|
16876
|
+
class DefaultResponse extends pb_1.Message {
|
|
16877
|
+
#one_of_decls = [];
|
|
16878
|
+
constructor(data) {
|
|
16879
|
+
super();
|
|
16880
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
16881
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
16882
|
+
if ("success" in data && data.success != undefined) {
|
|
16883
|
+
this.success = data.success;
|
|
16884
|
+
}
|
|
16885
|
+
if ("status" in data && data.status != undefined) {
|
|
16886
|
+
this.status = data.status;
|
|
16887
|
+
}
|
|
16888
|
+
if ("error" in data && data.error != undefined) {
|
|
16889
|
+
this.error = data.error;
|
|
16890
|
+
}
|
|
16891
|
+
if ("message" in data && data.message != undefined) {
|
|
16892
|
+
this.message = data.message;
|
|
16893
|
+
}
|
|
16894
|
+
if ("errors" in data && data.errors != undefined) {
|
|
16895
|
+
this.errors = data.errors;
|
|
16896
|
+
}
|
|
16897
|
+
}
|
|
16898
|
+
}
|
|
16899
|
+
get success() {
|
|
16900
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
16901
|
+
}
|
|
16902
|
+
set success(value) {
|
|
16903
|
+
pb_1.Message.setField(this, 1, value);
|
|
16904
|
+
}
|
|
16905
|
+
get status() {
|
|
16906
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16907
|
+
}
|
|
16908
|
+
set status(value) {
|
|
16909
|
+
pb_1.Message.setField(this, 2, value);
|
|
16910
|
+
}
|
|
16911
|
+
get error() {
|
|
16912
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
16913
|
+
}
|
|
16914
|
+
set error(value) {
|
|
16915
|
+
pb_1.Message.setField(this, 3, value);
|
|
16916
|
+
}
|
|
16917
|
+
get message() {
|
|
16918
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16919
|
+
}
|
|
16920
|
+
set message(value) {
|
|
16921
|
+
pb_1.Message.setField(this, 4, value);
|
|
16922
|
+
}
|
|
16923
|
+
get errors() {
|
|
16924
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
16925
|
+
}
|
|
16926
|
+
set errors(value) {
|
|
16927
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
16928
|
+
}
|
|
16929
|
+
static fromObject(data) {
|
|
16930
|
+
const message = new DefaultResponse({});
|
|
16931
|
+
if (data.success != null) {
|
|
16932
|
+
message.success = data.success;
|
|
16933
|
+
}
|
|
16934
|
+
if (data.status != null) {
|
|
16935
|
+
message.status = data.status;
|
|
16936
|
+
}
|
|
16937
|
+
if (data.error != null) {
|
|
16938
|
+
message.error = data.error;
|
|
16939
|
+
}
|
|
16940
|
+
if (data.message != null) {
|
|
16941
|
+
message.message = data.message;
|
|
16942
|
+
}
|
|
16943
|
+
if (data.errors != null) {
|
|
16944
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16945
|
+
}
|
|
16946
|
+
return message;
|
|
16947
|
+
}
|
|
16948
|
+
toObject() {
|
|
16949
|
+
const data = {};
|
|
16950
|
+
if (this.success != null) {
|
|
16951
|
+
data.success = this.success;
|
|
16952
|
+
}
|
|
16953
|
+
if (this.status != null) {
|
|
16954
|
+
data.status = this.status;
|
|
16955
|
+
}
|
|
16956
|
+
if (this.error != null) {
|
|
16957
|
+
data.error = this.error;
|
|
16958
|
+
}
|
|
16959
|
+
if (this.message != null) {
|
|
16960
|
+
data.message = this.message;
|
|
16961
|
+
}
|
|
16962
|
+
if (this.errors != null) {
|
|
16963
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
16964
|
+
}
|
|
16965
|
+
return data;
|
|
16966
|
+
}
|
|
16967
|
+
serialize(w) {
|
|
16968
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
16969
|
+
if (this.success != false)
|
|
16970
|
+
writer.writeBool(1, this.success);
|
|
16971
|
+
if (this.status.length)
|
|
16972
|
+
writer.writeString(2, this.status);
|
|
16973
|
+
if (this.error.length)
|
|
16974
|
+
writer.writeString(3, this.error);
|
|
16975
|
+
if (this.message.length)
|
|
16976
|
+
writer.writeString(4, this.message);
|
|
16977
|
+
if (this.errors.length)
|
|
16978
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
16979
|
+
if (!w)
|
|
16980
|
+
return writer.getResultBuffer();
|
|
16981
|
+
}
|
|
16982
|
+
static deserialize(bytes) {
|
|
16983
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DefaultResponse();
|
|
16984
|
+
while (reader.nextField()) {
|
|
16985
|
+
if (reader.isEndGroup())
|
|
16986
|
+
break;
|
|
16987
|
+
switch (reader.getFieldNumber()) {
|
|
16988
|
+
case 1:
|
|
16989
|
+
message.success = reader.readBool();
|
|
16990
|
+
break;
|
|
16991
|
+
case 2:
|
|
16992
|
+
message.status = reader.readString();
|
|
16993
|
+
break;
|
|
16994
|
+
case 3:
|
|
16995
|
+
message.error = reader.readString();
|
|
16996
|
+
break;
|
|
16997
|
+
case 4:
|
|
16998
|
+
message.message = reader.readString();
|
|
16999
|
+
break;
|
|
17000
|
+
case 5:
|
|
17001
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
17002
|
+
break;
|
|
17003
|
+
default: reader.skipField();
|
|
17004
|
+
}
|
|
17005
|
+
}
|
|
17006
|
+
return message;
|
|
17007
|
+
}
|
|
17008
|
+
serializeBinary() {
|
|
17009
|
+
return this.serialize();
|
|
17010
|
+
}
|
|
17011
|
+
static deserializeBinary(bytes) {
|
|
17012
|
+
return DefaultResponse.deserialize(bytes);
|
|
17013
|
+
}
|
|
17014
|
+
}
|
|
17015
|
+
business.DefaultResponse = DefaultResponse;
|
|
17016
|
+
class GetByIdRequest extends pb_1.Message {
|
|
17017
|
+
#one_of_decls = [];
|
|
17018
|
+
constructor(data) {
|
|
17019
|
+
super();
|
|
17020
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
17021
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
17022
|
+
if ("id" in data && data.id != undefined) {
|
|
17023
|
+
this.id = data.id;
|
|
17024
|
+
}
|
|
17025
|
+
}
|
|
17026
|
+
}
|
|
17027
|
+
get id() {
|
|
17028
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
17029
|
+
}
|
|
17030
|
+
set id(value) {
|
|
17031
|
+
pb_1.Message.setField(this, 1, value);
|
|
17032
|
+
}
|
|
17033
|
+
static fromObject(data) {
|
|
17034
|
+
const message = new GetByIdRequest({});
|
|
17035
|
+
if (data.id != null) {
|
|
17036
|
+
message.id = data.id;
|
|
17037
|
+
}
|
|
17038
|
+
return message;
|
|
17039
|
+
}
|
|
17040
|
+
toObject() {
|
|
17041
|
+
const data = {};
|
|
17042
|
+
if (this.id != null) {
|
|
17043
|
+
data.id = this.id;
|
|
17044
|
+
}
|
|
17045
|
+
return data;
|
|
17046
|
+
}
|
|
17047
|
+
serialize(w) {
|
|
17048
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
17049
|
+
if (this.id.length)
|
|
17050
|
+
writer.writeString(1, this.id);
|
|
17051
|
+
if (!w)
|
|
17052
|
+
return writer.getResultBuffer();
|
|
17053
|
+
}
|
|
17054
|
+
static deserialize(bytes) {
|
|
17055
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetByIdRequest();
|
|
17056
|
+
while (reader.nextField()) {
|
|
17057
|
+
if (reader.isEndGroup())
|
|
17058
|
+
break;
|
|
17059
|
+
switch (reader.getFieldNumber()) {
|
|
17060
|
+
case 1:
|
|
17061
|
+
message.id = reader.readString();
|
|
17062
|
+
break;
|
|
17063
|
+
default: reader.skipField();
|
|
17064
|
+
}
|
|
17065
|
+
}
|
|
17066
|
+
return message;
|
|
17067
|
+
}
|
|
17068
|
+
serializeBinary() {
|
|
17069
|
+
return this.serialize();
|
|
17070
|
+
}
|
|
17071
|
+
static deserializeBinary(bytes) {
|
|
17072
|
+
return GetByIdRequest.deserialize(bytes);
|
|
17073
|
+
}
|
|
17074
|
+
}
|
|
17075
|
+
business.GetByIdRequest = GetByIdRequest;
|
|
17076
|
+
class OrphanMerchant extends pb_1.Message {
|
|
17077
|
+
#one_of_decls = [];
|
|
17078
|
+
constructor(data) {
|
|
17079
|
+
super();
|
|
17080
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
|
17081
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
17082
|
+
if ("total" in data && data.total != undefined) {
|
|
17083
|
+
this.total = data.total;
|
|
17084
|
+
}
|
|
17085
|
+
if ("merchantIds" in data && data.merchantIds != undefined) {
|
|
17086
|
+
this.merchantIds = data.merchantIds;
|
|
17087
|
+
}
|
|
17088
|
+
}
|
|
17089
|
+
}
|
|
17090
|
+
get total() {
|
|
17091
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
17092
|
+
}
|
|
17093
|
+
set total(value) {
|
|
17094
|
+
pb_1.Message.setField(this, 1, value);
|
|
17095
|
+
}
|
|
17096
|
+
get merchantIds() {
|
|
17097
|
+
return pb_1.Message.getFieldWithDefault(this, 2, []);
|
|
17098
|
+
}
|
|
17099
|
+
set merchantIds(value) {
|
|
17100
|
+
pb_1.Message.setField(this, 2, value);
|
|
17101
|
+
}
|
|
17102
|
+
static fromObject(data) {
|
|
17103
|
+
const message = new OrphanMerchant({});
|
|
17104
|
+
if (data.total != null) {
|
|
17105
|
+
message.total = data.total;
|
|
17106
|
+
}
|
|
17107
|
+
if (data.merchantIds != null) {
|
|
17108
|
+
message.merchantIds = data.merchantIds;
|
|
16168
17109
|
}
|
|
16169
17110
|
return message;
|
|
16170
17111
|
}
|
|
16171
17112
|
toObject() {
|
|
16172
17113
|
const data = {};
|
|
16173
|
-
if (this.
|
|
16174
|
-
data.
|
|
16175
|
-
}
|
|
16176
|
-
if (this.status != null) {
|
|
16177
|
-
data.status = this.status;
|
|
16178
|
-
}
|
|
16179
|
-
if (this.data != null) {
|
|
16180
|
-
data.data = this.data.toObject();
|
|
16181
|
-
}
|
|
16182
|
-
if (this.error != null) {
|
|
16183
|
-
data.error = this.error;
|
|
16184
|
-
}
|
|
16185
|
-
if (this.message != null) {
|
|
16186
|
-
data.message = this.message;
|
|
17114
|
+
if (this.total != null) {
|
|
17115
|
+
data.total = this.total;
|
|
16187
17116
|
}
|
|
16188
|
-
if (this.
|
|
16189
|
-
data.
|
|
17117
|
+
if (this.merchantIds != null) {
|
|
17118
|
+
data.merchantIds = this.merchantIds;
|
|
16190
17119
|
}
|
|
16191
17120
|
return data;
|
|
16192
17121
|
}
|
|
16193
17122
|
serialize(w) {
|
|
16194
17123
|
const writer = w || new pb_1.BinaryWriter();
|
|
16195
|
-
if (this.
|
|
16196
|
-
writer.
|
|
16197
|
-
if (this.
|
|
16198
|
-
writer.
|
|
16199
|
-
if (this.hasData)
|
|
16200
|
-
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
16201
|
-
if (this.error.length)
|
|
16202
|
-
writer.writeString(4, this.error);
|
|
16203
|
-
if (this.message.length)
|
|
16204
|
-
writer.writeString(5, this.message);
|
|
16205
|
-
if (this.errors.length)
|
|
16206
|
-
writer.writeRepeatedMessage(6, this.errors, (item) => item.serialize(writer));
|
|
17124
|
+
if (this.total != 0)
|
|
17125
|
+
writer.writeUint32(1, this.total);
|
|
17126
|
+
if (this.merchantIds.length)
|
|
17127
|
+
writer.writeRepeatedString(2, this.merchantIds);
|
|
16207
17128
|
if (!w)
|
|
16208
17129
|
return writer.getResultBuffer();
|
|
16209
17130
|
}
|
|
16210
17131
|
static deserialize(bytes) {
|
|
16211
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
17132
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new OrphanMerchant();
|
|
16212
17133
|
while (reader.nextField()) {
|
|
16213
17134
|
if (reader.isEndGroup())
|
|
16214
17135
|
break;
|
|
16215
17136
|
switch (reader.getFieldNumber()) {
|
|
16216
17137
|
case 1:
|
|
16217
|
-
message.
|
|
17138
|
+
message.total = reader.readUint32();
|
|
16218
17139
|
break;
|
|
16219
17140
|
case 2:
|
|
16220
|
-
message
|
|
16221
|
-
break;
|
|
16222
|
-
case 3:
|
|
16223
|
-
reader.readMessage(message.data, () => message.data = MerchantData.deserialize(reader));
|
|
16224
|
-
break;
|
|
16225
|
-
case 4:
|
|
16226
|
-
message.error = reader.readString();
|
|
16227
|
-
break;
|
|
16228
|
-
case 5:
|
|
16229
|
-
message.message = reader.readString();
|
|
16230
|
-
break;
|
|
16231
|
-
case 6:
|
|
16232
|
-
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
17141
|
+
pb_1.Message.addToRepeatedField(message, 2, reader.readString());
|
|
16233
17142
|
break;
|
|
16234
17143
|
default: reader.skipField();
|
|
16235
17144
|
}
|
|
@@ -16240,104 +17149,92 @@ var com;
|
|
|
16240
17149
|
return this.serialize();
|
|
16241
17150
|
}
|
|
16242
17151
|
static deserializeBinary(bytes) {
|
|
16243
|
-
return
|
|
17152
|
+
return OrphanMerchant.deserialize(bytes);
|
|
16244
17153
|
}
|
|
16245
17154
|
}
|
|
16246
|
-
business.
|
|
16247
|
-
class
|
|
17155
|
+
business.OrphanMerchant = OrphanMerchant;
|
|
17156
|
+
class OrphanMerchantsResponse extends pb_1.Message {
|
|
16248
17157
|
#one_of_decls = [];
|
|
16249
17158
|
constructor(data) {
|
|
16250
17159
|
super();
|
|
16251
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [
|
|
17160
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6], this.#one_of_decls);
|
|
16252
17161
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
16253
17162
|
if ("success" in data && data.success != undefined) {
|
|
16254
17163
|
this.success = data.success;
|
|
16255
17164
|
}
|
|
16256
|
-
if ("
|
|
16257
|
-
this.
|
|
17165
|
+
if ("message" in data && data.message != undefined) {
|
|
17166
|
+
this.message = data.message;
|
|
16258
17167
|
}
|
|
16259
17168
|
if ("data" in data && data.data != undefined) {
|
|
16260
17169
|
this.data = data.data;
|
|
16261
17170
|
}
|
|
17171
|
+
if ("status" in data && data.status != undefined) {
|
|
17172
|
+
this.status = data.status;
|
|
17173
|
+
}
|
|
16262
17174
|
if ("error" in data && data.error != undefined) {
|
|
16263
17175
|
this.error = data.error;
|
|
16264
17176
|
}
|
|
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
17177
|
if ("errors" in data && data.errors != undefined) {
|
|
16272
17178
|
this.errors = data.errors;
|
|
16273
17179
|
}
|
|
16274
17180
|
}
|
|
16275
17181
|
}
|
|
16276
17182
|
get success() {
|
|
16277
|
-
return pb_1.Message.getFieldWithDefault(this, 1,
|
|
17183
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
16278
17184
|
}
|
|
16279
17185
|
set success(value) {
|
|
16280
17186
|
pb_1.Message.setField(this, 1, value);
|
|
16281
17187
|
}
|
|
16282
|
-
get
|
|
17188
|
+
get message() {
|
|
16283
17189
|
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
16284
17190
|
}
|
|
16285
|
-
set
|
|
17191
|
+
set message(value) {
|
|
16286
17192
|
pb_1.Message.setField(this, 2, value);
|
|
16287
17193
|
}
|
|
16288
17194
|
get data() {
|
|
16289
|
-
return pb_1.Message.
|
|
17195
|
+
return pb_1.Message.getWrapperField(this, OrphanMerchant, 3);
|
|
16290
17196
|
}
|
|
16291
17197
|
set data(value) {
|
|
16292
|
-
pb_1.Message.
|
|
17198
|
+
pb_1.Message.setWrapperField(this, 3, value);
|
|
16293
17199
|
}
|
|
16294
|
-
get
|
|
17200
|
+
get hasData() {
|
|
17201
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
17202
|
+
}
|
|
17203
|
+
get status() {
|
|
16295
17204
|
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
16296
17205
|
}
|
|
16297
|
-
set
|
|
17206
|
+
set status(value) {
|
|
16298
17207
|
pb_1.Message.setField(this, 4, value);
|
|
16299
17208
|
}
|
|
16300
|
-
get
|
|
17209
|
+
get error() {
|
|
16301
17210
|
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
16302
17211
|
}
|
|
16303
|
-
set
|
|
17212
|
+
set error(value) {
|
|
16304
17213
|
pb_1.Message.setField(this, 5, value);
|
|
16305
17214
|
}
|
|
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
17215
|
get errors() {
|
|
16316
|
-
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors,
|
|
17216
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 6);
|
|
16317
17217
|
}
|
|
16318
17218
|
set errors(value) {
|
|
16319
|
-
pb_1.Message.setRepeatedWrapperField(this,
|
|
17219
|
+
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
16320
17220
|
}
|
|
16321
17221
|
static fromObject(data) {
|
|
16322
|
-
const message = new
|
|
17222
|
+
const message = new OrphanMerchantsResponse({});
|
|
16323
17223
|
if (data.success != null) {
|
|
16324
17224
|
message.success = data.success;
|
|
16325
17225
|
}
|
|
16326
|
-
if (data.
|
|
16327
|
-
message.
|
|
17226
|
+
if (data.message != null) {
|
|
17227
|
+
message.message = data.message;
|
|
16328
17228
|
}
|
|
16329
17229
|
if (data.data != null) {
|
|
16330
|
-
message.data = data.data
|
|
17230
|
+
message.data = OrphanMerchant.fromObject(data.data);
|
|
17231
|
+
}
|
|
17232
|
+
if (data.status != null) {
|
|
17233
|
+
message.status = data.status;
|
|
16331
17234
|
}
|
|
16332
17235
|
if (data.error != null) {
|
|
16333
17236
|
message.error = data.error;
|
|
16334
17237
|
}
|
|
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
17238
|
if (data.errors != null) {
|
|
16342
17239
|
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
16343
17240
|
}
|
|
@@ -16348,21 +17245,18 @@ var com;
|
|
|
16348
17245
|
if (this.success != null) {
|
|
16349
17246
|
data.success = this.success;
|
|
16350
17247
|
}
|
|
16351
|
-
if (this.
|
|
16352
|
-
data.
|
|
17248
|
+
if (this.message != null) {
|
|
17249
|
+
data.message = this.message;
|
|
16353
17250
|
}
|
|
16354
17251
|
if (this.data != null) {
|
|
16355
|
-
data.data = this.data.
|
|
17252
|
+
data.data = this.data.toObject();
|
|
17253
|
+
}
|
|
17254
|
+
if (this.status != null) {
|
|
17255
|
+
data.status = this.status;
|
|
16356
17256
|
}
|
|
16357
17257
|
if (this.error != null) {
|
|
16358
17258
|
data.error = this.error;
|
|
16359
17259
|
}
|
|
16360
|
-
if (this.message != null) {
|
|
16361
|
-
data.message = this.message;
|
|
16362
|
-
}
|
|
16363
|
-
if (this.pagination != null) {
|
|
16364
|
-
data.pagination = this.pagination.toObject();
|
|
16365
|
-
}
|
|
16366
17260
|
if (this.errors != null) {
|
|
16367
17261
|
data.errors = this.errors.map((item) => item.toObject());
|
|
16368
17262
|
}
|
|
@@ -16370,49 +17264,44 @@ var com;
|
|
|
16370
17264
|
}
|
|
16371
17265
|
serialize(w) {
|
|
16372
17266
|
const writer = w || new pb_1.BinaryWriter();
|
|
16373
|
-
if (this.success
|
|
16374
|
-
writer.
|
|
17267
|
+
if (this.success.length)
|
|
17268
|
+
writer.writeString(1, this.success);
|
|
17269
|
+
if (this.message.length)
|
|
17270
|
+
writer.writeString(2, this.message);
|
|
17271
|
+
if (this.hasData)
|
|
17272
|
+
writer.writeMessage(3, this.data, () => this.data.serialize(writer));
|
|
16375
17273
|
if (this.status.length)
|
|
16376
|
-
writer.writeString(
|
|
16377
|
-
if (this.data.length)
|
|
16378
|
-
writer.writeRepeatedMessage(3, this.data, (item) => item.serialize(writer));
|
|
17274
|
+
writer.writeString(4, this.status);
|
|
16379
17275
|
if (this.error.length)
|
|
16380
|
-
writer.writeString(
|
|
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));
|
|
17276
|
+
writer.writeString(5, this.error);
|
|
16385
17277
|
if (this.errors.length)
|
|
16386
|
-
writer.writeRepeatedMessage(
|
|
17278
|
+
writer.writeRepeatedMessage(6, this.errors, (item) => item.serialize(writer));
|
|
16387
17279
|
if (!w)
|
|
16388
17280
|
return writer.getResultBuffer();
|
|
16389
17281
|
}
|
|
16390
17282
|
static deserialize(bytes) {
|
|
16391
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new
|
|
17283
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new OrphanMerchantsResponse();
|
|
16392
17284
|
while (reader.nextField()) {
|
|
16393
17285
|
if (reader.isEndGroup())
|
|
16394
17286
|
break;
|
|
16395
17287
|
switch (reader.getFieldNumber()) {
|
|
16396
17288
|
case 1:
|
|
16397
|
-
message.success = reader.
|
|
17289
|
+
message.success = reader.readString();
|
|
16398
17290
|
break;
|
|
16399
17291
|
case 2:
|
|
16400
|
-
message.
|
|
17292
|
+
message.message = reader.readString();
|
|
16401
17293
|
break;
|
|
16402
17294
|
case 3:
|
|
16403
|
-
reader.readMessage(message.data, () =>
|
|
17295
|
+
reader.readMessage(message.data, () => message.data = OrphanMerchant.deserialize(reader));
|
|
16404
17296
|
break;
|
|
16405
17297
|
case 4:
|
|
16406
|
-
message.
|
|
17298
|
+
message.status = reader.readString();
|
|
16407
17299
|
break;
|
|
16408
17300
|
case 5:
|
|
16409
|
-
message.
|
|
17301
|
+
message.error = reader.readString();
|
|
16410
17302
|
break;
|
|
16411
17303
|
case 6:
|
|
16412
|
-
reader.readMessage(message.
|
|
16413
|
-
break;
|
|
16414
|
-
case 7:
|
|
16415
|
-
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 7, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
17304
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 6, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
16416
17305
|
break;
|
|
16417
17306
|
default: reader.skipField();
|
|
16418
17307
|
}
|
|
@@ -16423,10 +17312,10 @@ var com;
|
|
|
16423
17312
|
return this.serialize();
|
|
16424
17313
|
}
|
|
16425
17314
|
static deserializeBinary(bytes) {
|
|
16426
|
-
return
|
|
17315
|
+
return OrphanMerchantsResponse.deserialize(bytes);
|
|
16427
17316
|
}
|
|
16428
17317
|
}
|
|
16429
|
-
business.
|
|
17318
|
+
business.OrphanMerchantsResponse = OrphanMerchantsResponse;
|
|
16430
17319
|
class UnimplementedBusinessService {
|
|
16431
17320
|
static definition = {
|
|
16432
17321
|
CreateBusiness: {
|
|
@@ -16869,6 +17758,42 @@ var com;
|
|
|
16869
17758
|
requestDeserialize: (bytes) => MerchantLookupRequest.deserialize(new Uint8Array(bytes)),
|
|
16870
17759
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
16871
17760
|
responseDeserialize: (bytes) => MerchantDataResponse.deserialize(new Uint8Array(bytes))
|
|
17761
|
+
},
|
|
17762
|
+
AssignAttributionStaff: {
|
|
17763
|
+
path: "/com.pkg.business.Business/AssignAttributionStaff",
|
|
17764
|
+
requestStream: false,
|
|
17765
|
+
responseStream: false,
|
|
17766
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
17767
|
+
requestDeserialize: (bytes) => AssignAttributionStaffRequest.deserialize(new Uint8Array(bytes)),
|
|
17768
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
17769
|
+
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
17770
|
+
},
|
|
17771
|
+
ReassignAttributionStaff: {
|
|
17772
|
+
path: "/com.pkg.business.Business/ReassignAttributionStaff",
|
|
17773
|
+
requestStream: false,
|
|
17774
|
+
responseStream: false,
|
|
17775
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
17776
|
+
requestDeserialize: (bytes) => AssignAttributionStaffRequest.deserialize(new Uint8Array(bytes)),
|
|
17777
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
17778
|
+
responseDeserialize: (bytes) => DefaultResponse.deserialize(new Uint8Array(bytes))
|
|
17779
|
+
},
|
|
17780
|
+
GetMerchantsByAttributionStaff: {
|
|
17781
|
+
path: "/com.pkg.business.Business/GetMerchantsByAttributionStaff",
|
|
17782
|
+
requestStream: false,
|
|
17783
|
+
responseStream: false,
|
|
17784
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
17785
|
+
requestDeserialize: (bytes) => GetByIdRequest.deserialize(new Uint8Array(bytes)),
|
|
17786
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
17787
|
+
responseDeserialize: (bytes) => MMerchantDataResponse.deserialize(new Uint8Array(bytes))
|
|
17788
|
+
},
|
|
17789
|
+
OrphanMerchants: {
|
|
17790
|
+
path: "/com.pkg.business.Business/OrphanMerchants",
|
|
17791
|
+
requestStream: false,
|
|
17792
|
+
responseStream: false,
|
|
17793
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
17794
|
+
requestDeserialize: (bytes) => GetByIdRequest.deserialize(new Uint8Array(bytes)),
|
|
17795
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
17796
|
+
responseDeserialize: (bytes) => OrphanMerchantsResponse.deserialize(new Uint8Array(bytes))
|
|
16872
17797
|
}
|
|
16873
17798
|
};
|
|
16874
17799
|
}
|
|
@@ -17661,6 +18586,70 @@ var com;
|
|
|
17661
18586
|
}
|
|
17662
18587
|
}));
|
|
17663
18588
|
};
|
|
18589
|
+
AssignAttributionStaff = (message, metadata, options) => {
|
|
18590
|
+
if (!metadata) {
|
|
18591
|
+
metadata = new grpc_1.Metadata;
|
|
18592
|
+
}
|
|
18593
|
+
if (!options) {
|
|
18594
|
+
options = {};
|
|
18595
|
+
}
|
|
18596
|
+
return new Promise((resolve, reject) => super.AssignAttributionStaff(message, metadata, options, (error, response) => {
|
|
18597
|
+
if (error) {
|
|
18598
|
+
reject(error);
|
|
18599
|
+
}
|
|
18600
|
+
else {
|
|
18601
|
+
resolve(response);
|
|
18602
|
+
}
|
|
18603
|
+
}));
|
|
18604
|
+
};
|
|
18605
|
+
ReassignAttributionStaff = (message, metadata, options) => {
|
|
18606
|
+
if (!metadata) {
|
|
18607
|
+
metadata = new grpc_1.Metadata;
|
|
18608
|
+
}
|
|
18609
|
+
if (!options) {
|
|
18610
|
+
options = {};
|
|
18611
|
+
}
|
|
18612
|
+
return new Promise((resolve, reject) => super.ReassignAttributionStaff(message, metadata, options, (error, response) => {
|
|
18613
|
+
if (error) {
|
|
18614
|
+
reject(error);
|
|
18615
|
+
}
|
|
18616
|
+
else {
|
|
18617
|
+
resolve(response);
|
|
18618
|
+
}
|
|
18619
|
+
}));
|
|
18620
|
+
};
|
|
18621
|
+
GetMerchantsByAttributionStaff = (message, metadata, options) => {
|
|
18622
|
+
if (!metadata) {
|
|
18623
|
+
metadata = new grpc_1.Metadata;
|
|
18624
|
+
}
|
|
18625
|
+
if (!options) {
|
|
18626
|
+
options = {};
|
|
18627
|
+
}
|
|
18628
|
+
return new Promise((resolve, reject) => super.GetMerchantsByAttributionStaff(message, metadata, options, (error, response) => {
|
|
18629
|
+
if (error) {
|
|
18630
|
+
reject(error);
|
|
18631
|
+
}
|
|
18632
|
+
else {
|
|
18633
|
+
resolve(response);
|
|
18634
|
+
}
|
|
18635
|
+
}));
|
|
18636
|
+
};
|
|
18637
|
+
OrphanMerchants = (message, metadata, options) => {
|
|
18638
|
+
if (!metadata) {
|
|
18639
|
+
metadata = new grpc_1.Metadata;
|
|
18640
|
+
}
|
|
18641
|
+
if (!options) {
|
|
18642
|
+
options = {};
|
|
18643
|
+
}
|
|
18644
|
+
return new Promise((resolve, reject) => super.OrphanMerchants(message, metadata, options, (error, response) => {
|
|
18645
|
+
if (error) {
|
|
18646
|
+
reject(error);
|
|
18647
|
+
}
|
|
18648
|
+
else {
|
|
18649
|
+
resolve(response);
|
|
18650
|
+
}
|
|
18651
|
+
}));
|
|
18652
|
+
};
|
|
17664
18653
|
}
|
|
17665
18654
|
business.BusinessClient = BusinessClient;
|
|
17666
18655
|
})(business = pkg.business || (pkg.business = {}));
|