@technova-tech/olive-proto-lib 2.3.3 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accounts/accounts.js +1241 -0
- package/package.json +1 -1
- package/types/accounts/accounts.d.ts +397 -0
package/accounts/accounts.js
CHANGED
|
@@ -10885,6 +10885,1172 @@ var com;
|
|
|
10885
10885
|
}
|
|
10886
10886
|
}
|
|
10887
10887
|
account.MultiChargesResponse = MultiChargesResponse;
|
|
10888
|
+
class PayoutLogData extends pb_1.Message {
|
|
10889
|
+
#one_of_decls = [];
|
|
10890
|
+
constructor(data) {
|
|
10891
|
+
super();
|
|
10892
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
10893
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
10894
|
+
if ("id" in data && data.id != undefined) {
|
|
10895
|
+
this.id = data.id;
|
|
10896
|
+
}
|
|
10897
|
+
if ("transactionId" in data && data.transactionId != undefined) {
|
|
10898
|
+
this.transactionId = data.transactionId;
|
|
10899
|
+
}
|
|
10900
|
+
if ("terminalId" in data && data.terminalId != undefined) {
|
|
10901
|
+
this.terminalId = data.terminalId;
|
|
10902
|
+
}
|
|
10903
|
+
if ("ownerType" in data && data.ownerType != undefined) {
|
|
10904
|
+
this.ownerType = data.ownerType;
|
|
10905
|
+
}
|
|
10906
|
+
if ("ownerId" in data && data.ownerId != undefined) {
|
|
10907
|
+
this.ownerId = data.ownerId;
|
|
10908
|
+
}
|
|
10909
|
+
if ("merchantId" in data && data.merchantId != undefined) {
|
|
10910
|
+
this.merchantId = data.merchantId;
|
|
10911
|
+
}
|
|
10912
|
+
if ("branchId" in data && data.branchId != undefined) {
|
|
10913
|
+
this.branchId = data.branchId;
|
|
10914
|
+
}
|
|
10915
|
+
if ("amount" in data && data.amount != undefined) {
|
|
10916
|
+
this.amount = data.amount;
|
|
10917
|
+
}
|
|
10918
|
+
if ("netAmount" in data && data.netAmount != undefined) {
|
|
10919
|
+
this.netAmount = data.netAmount;
|
|
10920
|
+
}
|
|
10921
|
+
if ("destinationBankCode" in data && data.destinationBankCode != undefined) {
|
|
10922
|
+
this.destinationBankCode = data.destinationBankCode;
|
|
10923
|
+
}
|
|
10924
|
+
if ("destinationAccountNumber" in data && data.destinationAccountNumber != undefined) {
|
|
10925
|
+
this.destinationAccountNumber = data.destinationAccountNumber;
|
|
10926
|
+
}
|
|
10927
|
+
if ("status" in data && data.status != undefined) {
|
|
10928
|
+
this.status = data.status;
|
|
10929
|
+
}
|
|
10930
|
+
if ("payoutReference" in data && data.payoutReference != undefined) {
|
|
10931
|
+
this.payoutReference = data.payoutReference;
|
|
10932
|
+
}
|
|
10933
|
+
if ("responseCode" in data && data.responseCode != undefined) {
|
|
10934
|
+
this.responseCode = data.responseCode;
|
|
10935
|
+
}
|
|
10936
|
+
if ("responseMessage" in data && data.responseMessage != undefined) {
|
|
10937
|
+
this.responseMessage = data.responseMessage;
|
|
10938
|
+
}
|
|
10939
|
+
if ("failureReason" in data && data.failureReason != undefined) {
|
|
10940
|
+
this.failureReason = data.failureReason;
|
|
10941
|
+
}
|
|
10942
|
+
if ("attempts" in data && data.attempts != undefined) {
|
|
10943
|
+
this.attempts = data.attempts;
|
|
10944
|
+
}
|
|
10945
|
+
if ("createdAt" in data && data.createdAt != undefined) {
|
|
10946
|
+
this.createdAt = data.createdAt;
|
|
10947
|
+
}
|
|
10948
|
+
if ("updatedAt" in data && data.updatedAt != undefined) {
|
|
10949
|
+
this.updatedAt = data.updatedAt;
|
|
10950
|
+
}
|
|
10951
|
+
}
|
|
10952
|
+
}
|
|
10953
|
+
get id() {
|
|
10954
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
10955
|
+
}
|
|
10956
|
+
set id(value) {
|
|
10957
|
+
pb_1.Message.setField(this, 1, value);
|
|
10958
|
+
}
|
|
10959
|
+
get transactionId() {
|
|
10960
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
10961
|
+
}
|
|
10962
|
+
set transactionId(value) {
|
|
10963
|
+
pb_1.Message.setField(this, 2, value);
|
|
10964
|
+
}
|
|
10965
|
+
get terminalId() {
|
|
10966
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
10967
|
+
}
|
|
10968
|
+
set terminalId(value) {
|
|
10969
|
+
pb_1.Message.setField(this, 3, value);
|
|
10970
|
+
}
|
|
10971
|
+
get ownerType() {
|
|
10972
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
10973
|
+
}
|
|
10974
|
+
set ownerType(value) {
|
|
10975
|
+
pb_1.Message.setField(this, 4, value);
|
|
10976
|
+
}
|
|
10977
|
+
get ownerId() {
|
|
10978
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
10979
|
+
}
|
|
10980
|
+
set ownerId(value) {
|
|
10981
|
+
pb_1.Message.setField(this, 5, value);
|
|
10982
|
+
}
|
|
10983
|
+
get merchantId() {
|
|
10984
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
10985
|
+
}
|
|
10986
|
+
set merchantId(value) {
|
|
10987
|
+
pb_1.Message.setField(this, 6, value);
|
|
10988
|
+
}
|
|
10989
|
+
get branchId() {
|
|
10990
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
10991
|
+
}
|
|
10992
|
+
set branchId(value) {
|
|
10993
|
+
pb_1.Message.setField(this, 7, value);
|
|
10994
|
+
}
|
|
10995
|
+
get amount() {
|
|
10996
|
+
return pb_1.Message.getFieldWithDefault(this, 8, 0);
|
|
10997
|
+
}
|
|
10998
|
+
set amount(value) {
|
|
10999
|
+
pb_1.Message.setField(this, 8, value);
|
|
11000
|
+
}
|
|
11001
|
+
get netAmount() {
|
|
11002
|
+
return pb_1.Message.getFieldWithDefault(this, 9, 0);
|
|
11003
|
+
}
|
|
11004
|
+
set netAmount(value) {
|
|
11005
|
+
pb_1.Message.setField(this, 9, value);
|
|
11006
|
+
}
|
|
11007
|
+
get destinationBankCode() {
|
|
11008
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
11009
|
+
}
|
|
11010
|
+
set destinationBankCode(value) {
|
|
11011
|
+
pb_1.Message.setField(this, 10, value);
|
|
11012
|
+
}
|
|
11013
|
+
get destinationAccountNumber() {
|
|
11014
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
11015
|
+
}
|
|
11016
|
+
set destinationAccountNumber(value) {
|
|
11017
|
+
pb_1.Message.setField(this, 11, value);
|
|
11018
|
+
}
|
|
11019
|
+
get status() {
|
|
11020
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
11021
|
+
}
|
|
11022
|
+
set status(value) {
|
|
11023
|
+
pb_1.Message.setField(this, 12, value);
|
|
11024
|
+
}
|
|
11025
|
+
get payoutReference() {
|
|
11026
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
11027
|
+
}
|
|
11028
|
+
set payoutReference(value) {
|
|
11029
|
+
pb_1.Message.setField(this, 13, value);
|
|
11030
|
+
}
|
|
11031
|
+
get responseCode() {
|
|
11032
|
+
return pb_1.Message.getFieldWithDefault(this, 14, "");
|
|
11033
|
+
}
|
|
11034
|
+
set responseCode(value) {
|
|
11035
|
+
pb_1.Message.setField(this, 14, value);
|
|
11036
|
+
}
|
|
11037
|
+
get responseMessage() {
|
|
11038
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
11039
|
+
}
|
|
11040
|
+
set responseMessage(value) {
|
|
11041
|
+
pb_1.Message.setField(this, 15, value);
|
|
11042
|
+
}
|
|
11043
|
+
get failureReason() {
|
|
11044
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "");
|
|
11045
|
+
}
|
|
11046
|
+
set failureReason(value) {
|
|
11047
|
+
pb_1.Message.setField(this, 16, value);
|
|
11048
|
+
}
|
|
11049
|
+
get attempts() {
|
|
11050
|
+
return pb_1.Message.getFieldWithDefault(this, 17, 0);
|
|
11051
|
+
}
|
|
11052
|
+
set attempts(value) {
|
|
11053
|
+
pb_1.Message.setField(this, 17, value);
|
|
11054
|
+
}
|
|
11055
|
+
get createdAt() {
|
|
11056
|
+
return pb_1.Message.getFieldWithDefault(this, 18, "");
|
|
11057
|
+
}
|
|
11058
|
+
set createdAt(value) {
|
|
11059
|
+
pb_1.Message.setField(this, 18, value);
|
|
11060
|
+
}
|
|
11061
|
+
get updatedAt() {
|
|
11062
|
+
return pb_1.Message.getFieldWithDefault(this, 19, "");
|
|
11063
|
+
}
|
|
11064
|
+
set updatedAt(value) {
|
|
11065
|
+
pb_1.Message.setField(this, 19, value);
|
|
11066
|
+
}
|
|
11067
|
+
static fromObject(data) {
|
|
11068
|
+
const message = new PayoutLogData({});
|
|
11069
|
+
if (data.id != null) {
|
|
11070
|
+
message.id = data.id;
|
|
11071
|
+
}
|
|
11072
|
+
if (data.transactionId != null) {
|
|
11073
|
+
message.transactionId = data.transactionId;
|
|
11074
|
+
}
|
|
11075
|
+
if (data.terminalId != null) {
|
|
11076
|
+
message.terminalId = data.terminalId;
|
|
11077
|
+
}
|
|
11078
|
+
if (data.ownerType != null) {
|
|
11079
|
+
message.ownerType = data.ownerType;
|
|
11080
|
+
}
|
|
11081
|
+
if (data.ownerId != null) {
|
|
11082
|
+
message.ownerId = data.ownerId;
|
|
11083
|
+
}
|
|
11084
|
+
if (data.merchantId != null) {
|
|
11085
|
+
message.merchantId = data.merchantId;
|
|
11086
|
+
}
|
|
11087
|
+
if (data.branchId != null) {
|
|
11088
|
+
message.branchId = data.branchId;
|
|
11089
|
+
}
|
|
11090
|
+
if (data.amount != null) {
|
|
11091
|
+
message.amount = data.amount;
|
|
11092
|
+
}
|
|
11093
|
+
if (data.netAmount != null) {
|
|
11094
|
+
message.netAmount = data.netAmount;
|
|
11095
|
+
}
|
|
11096
|
+
if (data.destinationBankCode != null) {
|
|
11097
|
+
message.destinationBankCode = data.destinationBankCode;
|
|
11098
|
+
}
|
|
11099
|
+
if (data.destinationAccountNumber != null) {
|
|
11100
|
+
message.destinationAccountNumber = data.destinationAccountNumber;
|
|
11101
|
+
}
|
|
11102
|
+
if (data.status != null) {
|
|
11103
|
+
message.status = data.status;
|
|
11104
|
+
}
|
|
11105
|
+
if (data.payoutReference != null) {
|
|
11106
|
+
message.payoutReference = data.payoutReference;
|
|
11107
|
+
}
|
|
11108
|
+
if (data.responseCode != null) {
|
|
11109
|
+
message.responseCode = data.responseCode;
|
|
11110
|
+
}
|
|
11111
|
+
if (data.responseMessage != null) {
|
|
11112
|
+
message.responseMessage = data.responseMessage;
|
|
11113
|
+
}
|
|
11114
|
+
if (data.failureReason != null) {
|
|
11115
|
+
message.failureReason = data.failureReason;
|
|
11116
|
+
}
|
|
11117
|
+
if (data.attempts != null) {
|
|
11118
|
+
message.attempts = data.attempts;
|
|
11119
|
+
}
|
|
11120
|
+
if (data.createdAt != null) {
|
|
11121
|
+
message.createdAt = data.createdAt;
|
|
11122
|
+
}
|
|
11123
|
+
if (data.updatedAt != null) {
|
|
11124
|
+
message.updatedAt = data.updatedAt;
|
|
11125
|
+
}
|
|
11126
|
+
return message;
|
|
11127
|
+
}
|
|
11128
|
+
toObject() {
|
|
11129
|
+
const data = {};
|
|
11130
|
+
if (this.id != null) {
|
|
11131
|
+
data.id = this.id;
|
|
11132
|
+
}
|
|
11133
|
+
if (this.transactionId != null) {
|
|
11134
|
+
data.transactionId = this.transactionId;
|
|
11135
|
+
}
|
|
11136
|
+
if (this.terminalId != null) {
|
|
11137
|
+
data.terminalId = this.terminalId;
|
|
11138
|
+
}
|
|
11139
|
+
if (this.ownerType != null) {
|
|
11140
|
+
data.ownerType = this.ownerType;
|
|
11141
|
+
}
|
|
11142
|
+
if (this.ownerId != null) {
|
|
11143
|
+
data.ownerId = this.ownerId;
|
|
11144
|
+
}
|
|
11145
|
+
if (this.merchantId != null) {
|
|
11146
|
+
data.merchantId = this.merchantId;
|
|
11147
|
+
}
|
|
11148
|
+
if (this.branchId != null) {
|
|
11149
|
+
data.branchId = this.branchId;
|
|
11150
|
+
}
|
|
11151
|
+
if (this.amount != null) {
|
|
11152
|
+
data.amount = this.amount;
|
|
11153
|
+
}
|
|
11154
|
+
if (this.netAmount != null) {
|
|
11155
|
+
data.netAmount = this.netAmount;
|
|
11156
|
+
}
|
|
11157
|
+
if (this.destinationBankCode != null) {
|
|
11158
|
+
data.destinationBankCode = this.destinationBankCode;
|
|
11159
|
+
}
|
|
11160
|
+
if (this.destinationAccountNumber != null) {
|
|
11161
|
+
data.destinationAccountNumber = this.destinationAccountNumber;
|
|
11162
|
+
}
|
|
11163
|
+
if (this.status != null) {
|
|
11164
|
+
data.status = this.status;
|
|
11165
|
+
}
|
|
11166
|
+
if (this.payoutReference != null) {
|
|
11167
|
+
data.payoutReference = this.payoutReference;
|
|
11168
|
+
}
|
|
11169
|
+
if (this.responseCode != null) {
|
|
11170
|
+
data.responseCode = this.responseCode;
|
|
11171
|
+
}
|
|
11172
|
+
if (this.responseMessage != null) {
|
|
11173
|
+
data.responseMessage = this.responseMessage;
|
|
11174
|
+
}
|
|
11175
|
+
if (this.failureReason != null) {
|
|
11176
|
+
data.failureReason = this.failureReason;
|
|
11177
|
+
}
|
|
11178
|
+
if (this.attempts != null) {
|
|
11179
|
+
data.attempts = this.attempts;
|
|
11180
|
+
}
|
|
11181
|
+
if (this.createdAt != null) {
|
|
11182
|
+
data.createdAt = this.createdAt;
|
|
11183
|
+
}
|
|
11184
|
+
if (this.updatedAt != null) {
|
|
11185
|
+
data.updatedAt = this.updatedAt;
|
|
11186
|
+
}
|
|
11187
|
+
return data;
|
|
11188
|
+
}
|
|
11189
|
+
serialize(w) {
|
|
11190
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
11191
|
+
if (this.id.length)
|
|
11192
|
+
writer.writeString(1, this.id);
|
|
11193
|
+
if (this.transactionId.length)
|
|
11194
|
+
writer.writeString(2, this.transactionId);
|
|
11195
|
+
if (this.terminalId.length)
|
|
11196
|
+
writer.writeString(3, this.terminalId);
|
|
11197
|
+
if (this.ownerType.length)
|
|
11198
|
+
writer.writeString(4, this.ownerType);
|
|
11199
|
+
if (this.ownerId.length)
|
|
11200
|
+
writer.writeString(5, this.ownerId);
|
|
11201
|
+
if (this.merchantId.length)
|
|
11202
|
+
writer.writeString(6, this.merchantId);
|
|
11203
|
+
if (this.branchId.length)
|
|
11204
|
+
writer.writeString(7, this.branchId);
|
|
11205
|
+
if (this.amount != 0)
|
|
11206
|
+
writer.writeDouble(8, this.amount);
|
|
11207
|
+
if (this.netAmount != 0)
|
|
11208
|
+
writer.writeDouble(9, this.netAmount);
|
|
11209
|
+
if (this.destinationBankCode.length)
|
|
11210
|
+
writer.writeString(10, this.destinationBankCode);
|
|
11211
|
+
if (this.destinationAccountNumber.length)
|
|
11212
|
+
writer.writeString(11, this.destinationAccountNumber);
|
|
11213
|
+
if (this.status.length)
|
|
11214
|
+
writer.writeString(12, this.status);
|
|
11215
|
+
if (this.payoutReference.length)
|
|
11216
|
+
writer.writeString(13, this.payoutReference);
|
|
11217
|
+
if (this.responseCode.length)
|
|
11218
|
+
writer.writeString(14, this.responseCode);
|
|
11219
|
+
if (this.responseMessage.length)
|
|
11220
|
+
writer.writeString(15, this.responseMessage);
|
|
11221
|
+
if (this.failureReason.length)
|
|
11222
|
+
writer.writeString(16, this.failureReason);
|
|
11223
|
+
if (this.attempts != 0)
|
|
11224
|
+
writer.writeUint32(17, this.attempts);
|
|
11225
|
+
if (this.createdAt.length)
|
|
11226
|
+
writer.writeString(18, this.createdAt);
|
|
11227
|
+
if (this.updatedAt.length)
|
|
11228
|
+
writer.writeString(19, this.updatedAt);
|
|
11229
|
+
if (!w)
|
|
11230
|
+
return writer.getResultBuffer();
|
|
11231
|
+
}
|
|
11232
|
+
static deserialize(bytes) {
|
|
11233
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PayoutLogData();
|
|
11234
|
+
while (reader.nextField()) {
|
|
11235
|
+
if (reader.isEndGroup())
|
|
11236
|
+
break;
|
|
11237
|
+
switch (reader.getFieldNumber()) {
|
|
11238
|
+
case 1:
|
|
11239
|
+
message.id = reader.readString();
|
|
11240
|
+
break;
|
|
11241
|
+
case 2:
|
|
11242
|
+
message.transactionId = reader.readString();
|
|
11243
|
+
break;
|
|
11244
|
+
case 3:
|
|
11245
|
+
message.terminalId = reader.readString();
|
|
11246
|
+
break;
|
|
11247
|
+
case 4:
|
|
11248
|
+
message.ownerType = reader.readString();
|
|
11249
|
+
break;
|
|
11250
|
+
case 5:
|
|
11251
|
+
message.ownerId = reader.readString();
|
|
11252
|
+
break;
|
|
11253
|
+
case 6:
|
|
11254
|
+
message.merchantId = reader.readString();
|
|
11255
|
+
break;
|
|
11256
|
+
case 7:
|
|
11257
|
+
message.branchId = reader.readString();
|
|
11258
|
+
break;
|
|
11259
|
+
case 8:
|
|
11260
|
+
message.amount = reader.readDouble();
|
|
11261
|
+
break;
|
|
11262
|
+
case 9:
|
|
11263
|
+
message.netAmount = reader.readDouble();
|
|
11264
|
+
break;
|
|
11265
|
+
case 10:
|
|
11266
|
+
message.destinationBankCode = reader.readString();
|
|
11267
|
+
break;
|
|
11268
|
+
case 11:
|
|
11269
|
+
message.destinationAccountNumber = reader.readString();
|
|
11270
|
+
break;
|
|
11271
|
+
case 12:
|
|
11272
|
+
message.status = reader.readString();
|
|
11273
|
+
break;
|
|
11274
|
+
case 13:
|
|
11275
|
+
message.payoutReference = reader.readString();
|
|
11276
|
+
break;
|
|
11277
|
+
case 14:
|
|
11278
|
+
message.responseCode = reader.readString();
|
|
11279
|
+
break;
|
|
11280
|
+
case 15:
|
|
11281
|
+
message.responseMessage = reader.readString();
|
|
11282
|
+
break;
|
|
11283
|
+
case 16:
|
|
11284
|
+
message.failureReason = reader.readString();
|
|
11285
|
+
break;
|
|
11286
|
+
case 17:
|
|
11287
|
+
message.attempts = reader.readUint32();
|
|
11288
|
+
break;
|
|
11289
|
+
case 18:
|
|
11290
|
+
message.createdAt = reader.readString();
|
|
11291
|
+
break;
|
|
11292
|
+
case 19:
|
|
11293
|
+
message.updatedAt = reader.readString();
|
|
11294
|
+
break;
|
|
11295
|
+
default: reader.skipField();
|
|
11296
|
+
}
|
|
11297
|
+
}
|
|
11298
|
+
return message;
|
|
11299
|
+
}
|
|
11300
|
+
serializeBinary() {
|
|
11301
|
+
return this.serialize();
|
|
11302
|
+
}
|
|
11303
|
+
static deserializeBinary(bytes) {
|
|
11304
|
+
return PayoutLogData.deserialize(bytes);
|
|
11305
|
+
}
|
|
11306
|
+
}
|
|
11307
|
+
account.PayoutLogData = PayoutLogData;
|
|
11308
|
+
class FetchPayoutLogsRequest extends pb_1.Message {
|
|
11309
|
+
#one_of_decls = [];
|
|
11310
|
+
constructor(data) {
|
|
11311
|
+
super();
|
|
11312
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
|
|
11313
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
11314
|
+
if ("searchQuery" in data && data.searchQuery != undefined) {
|
|
11315
|
+
this.searchQuery = data.searchQuery;
|
|
11316
|
+
}
|
|
11317
|
+
if ("status" in data && data.status != undefined) {
|
|
11318
|
+
this.status = data.status;
|
|
11319
|
+
}
|
|
11320
|
+
if ("terminalId" in data && data.terminalId != undefined) {
|
|
11321
|
+
this.terminalId = data.terminalId;
|
|
11322
|
+
}
|
|
11323
|
+
if ("ownerId" in data && data.ownerId != undefined) {
|
|
11324
|
+
this.ownerId = data.ownerId;
|
|
11325
|
+
}
|
|
11326
|
+
if ("merchantId" in data && data.merchantId != undefined) {
|
|
11327
|
+
this.merchantId = data.merchantId;
|
|
11328
|
+
}
|
|
11329
|
+
if ("from" in data && data.from != undefined) {
|
|
11330
|
+
this.from = data.from;
|
|
11331
|
+
}
|
|
11332
|
+
if ("to" in data && data.to != undefined) {
|
|
11333
|
+
this.to = data.to;
|
|
11334
|
+
}
|
|
11335
|
+
if ("limit" in data && data.limit != undefined) {
|
|
11336
|
+
this.limit = data.limit;
|
|
11337
|
+
}
|
|
11338
|
+
if ("page" in data && data.page != undefined) {
|
|
11339
|
+
this.page = data.page;
|
|
11340
|
+
}
|
|
11341
|
+
}
|
|
11342
|
+
}
|
|
11343
|
+
get searchQuery() {
|
|
11344
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
11345
|
+
}
|
|
11346
|
+
set searchQuery(value) {
|
|
11347
|
+
pb_1.Message.setField(this, 1, value);
|
|
11348
|
+
}
|
|
11349
|
+
get status() {
|
|
11350
|
+
return pb_1.Message.getFieldWithDefault(this, 2, []);
|
|
11351
|
+
}
|
|
11352
|
+
set status(value) {
|
|
11353
|
+
pb_1.Message.setField(this, 2, value);
|
|
11354
|
+
}
|
|
11355
|
+
get terminalId() {
|
|
11356
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
11357
|
+
}
|
|
11358
|
+
set terminalId(value) {
|
|
11359
|
+
pb_1.Message.setField(this, 3, value);
|
|
11360
|
+
}
|
|
11361
|
+
get ownerId() {
|
|
11362
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
11363
|
+
}
|
|
11364
|
+
set ownerId(value) {
|
|
11365
|
+
pb_1.Message.setField(this, 4, value);
|
|
11366
|
+
}
|
|
11367
|
+
get merchantId() {
|
|
11368
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
11369
|
+
}
|
|
11370
|
+
set merchantId(value) {
|
|
11371
|
+
pb_1.Message.setField(this, 5, value);
|
|
11372
|
+
}
|
|
11373
|
+
get from() {
|
|
11374
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
11375
|
+
}
|
|
11376
|
+
set from(value) {
|
|
11377
|
+
pb_1.Message.setField(this, 6, value);
|
|
11378
|
+
}
|
|
11379
|
+
get to() {
|
|
11380
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
11381
|
+
}
|
|
11382
|
+
set to(value) {
|
|
11383
|
+
pb_1.Message.setField(this, 7, value);
|
|
11384
|
+
}
|
|
11385
|
+
get limit() {
|
|
11386
|
+
return pb_1.Message.getFieldWithDefault(this, 8, 0);
|
|
11387
|
+
}
|
|
11388
|
+
set limit(value) {
|
|
11389
|
+
pb_1.Message.setField(this, 8, value);
|
|
11390
|
+
}
|
|
11391
|
+
get page() {
|
|
11392
|
+
return pb_1.Message.getFieldWithDefault(this, 9, 0);
|
|
11393
|
+
}
|
|
11394
|
+
set page(value) {
|
|
11395
|
+
pb_1.Message.setField(this, 9, value);
|
|
11396
|
+
}
|
|
11397
|
+
static fromObject(data) {
|
|
11398
|
+
const message = new FetchPayoutLogsRequest({});
|
|
11399
|
+
if (data.searchQuery != null) {
|
|
11400
|
+
message.searchQuery = data.searchQuery;
|
|
11401
|
+
}
|
|
11402
|
+
if (data.status != null) {
|
|
11403
|
+
message.status = data.status;
|
|
11404
|
+
}
|
|
11405
|
+
if (data.terminalId != null) {
|
|
11406
|
+
message.terminalId = data.terminalId;
|
|
11407
|
+
}
|
|
11408
|
+
if (data.ownerId != null) {
|
|
11409
|
+
message.ownerId = data.ownerId;
|
|
11410
|
+
}
|
|
11411
|
+
if (data.merchantId != null) {
|
|
11412
|
+
message.merchantId = data.merchantId;
|
|
11413
|
+
}
|
|
11414
|
+
if (data.from != null) {
|
|
11415
|
+
message.from = data.from;
|
|
11416
|
+
}
|
|
11417
|
+
if (data.to != null) {
|
|
11418
|
+
message.to = data.to;
|
|
11419
|
+
}
|
|
11420
|
+
if (data.limit != null) {
|
|
11421
|
+
message.limit = data.limit;
|
|
11422
|
+
}
|
|
11423
|
+
if (data.page != null) {
|
|
11424
|
+
message.page = data.page;
|
|
11425
|
+
}
|
|
11426
|
+
return message;
|
|
11427
|
+
}
|
|
11428
|
+
toObject() {
|
|
11429
|
+
const data = {};
|
|
11430
|
+
if (this.searchQuery != null) {
|
|
11431
|
+
data.searchQuery = this.searchQuery;
|
|
11432
|
+
}
|
|
11433
|
+
if (this.status != null) {
|
|
11434
|
+
data.status = this.status;
|
|
11435
|
+
}
|
|
11436
|
+
if (this.terminalId != null) {
|
|
11437
|
+
data.terminalId = this.terminalId;
|
|
11438
|
+
}
|
|
11439
|
+
if (this.ownerId != null) {
|
|
11440
|
+
data.ownerId = this.ownerId;
|
|
11441
|
+
}
|
|
11442
|
+
if (this.merchantId != null) {
|
|
11443
|
+
data.merchantId = this.merchantId;
|
|
11444
|
+
}
|
|
11445
|
+
if (this.from != null) {
|
|
11446
|
+
data.from = this.from;
|
|
11447
|
+
}
|
|
11448
|
+
if (this.to != null) {
|
|
11449
|
+
data.to = this.to;
|
|
11450
|
+
}
|
|
11451
|
+
if (this.limit != null) {
|
|
11452
|
+
data.limit = this.limit;
|
|
11453
|
+
}
|
|
11454
|
+
if (this.page != null) {
|
|
11455
|
+
data.page = this.page;
|
|
11456
|
+
}
|
|
11457
|
+
return data;
|
|
11458
|
+
}
|
|
11459
|
+
serialize(w) {
|
|
11460
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
11461
|
+
if (this.searchQuery.length)
|
|
11462
|
+
writer.writeString(1, this.searchQuery);
|
|
11463
|
+
if (this.status.length)
|
|
11464
|
+
writer.writeRepeatedString(2, this.status);
|
|
11465
|
+
if (this.terminalId.length)
|
|
11466
|
+
writer.writeString(3, this.terminalId);
|
|
11467
|
+
if (this.ownerId.length)
|
|
11468
|
+
writer.writeString(4, this.ownerId);
|
|
11469
|
+
if (this.merchantId.length)
|
|
11470
|
+
writer.writeString(5, this.merchantId);
|
|
11471
|
+
if (this.from.length)
|
|
11472
|
+
writer.writeString(6, this.from);
|
|
11473
|
+
if (this.to.length)
|
|
11474
|
+
writer.writeString(7, this.to);
|
|
11475
|
+
if (this.limit != 0)
|
|
11476
|
+
writer.writeUint32(8, this.limit);
|
|
11477
|
+
if (this.page != 0)
|
|
11478
|
+
writer.writeUint32(9, this.page);
|
|
11479
|
+
if (!w)
|
|
11480
|
+
return writer.getResultBuffer();
|
|
11481
|
+
}
|
|
11482
|
+
static deserialize(bytes) {
|
|
11483
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FetchPayoutLogsRequest();
|
|
11484
|
+
while (reader.nextField()) {
|
|
11485
|
+
if (reader.isEndGroup())
|
|
11486
|
+
break;
|
|
11487
|
+
switch (reader.getFieldNumber()) {
|
|
11488
|
+
case 1:
|
|
11489
|
+
message.searchQuery = reader.readString();
|
|
11490
|
+
break;
|
|
11491
|
+
case 2:
|
|
11492
|
+
pb_1.Message.addToRepeatedField(message, 2, reader.readString());
|
|
11493
|
+
break;
|
|
11494
|
+
case 3:
|
|
11495
|
+
message.terminalId = reader.readString();
|
|
11496
|
+
break;
|
|
11497
|
+
case 4:
|
|
11498
|
+
message.ownerId = reader.readString();
|
|
11499
|
+
break;
|
|
11500
|
+
case 5:
|
|
11501
|
+
message.merchantId = reader.readString();
|
|
11502
|
+
break;
|
|
11503
|
+
case 6:
|
|
11504
|
+
message.from = reader.readString();
|
|
11505
|
+
break;
|
|
11506
|
+
case 7:
|
|
11507
|
+
message.to = reader.readString();
|
|
11508
|
+
break;
|
|
11509
|
+
case 8:
|
|
11510
|
+
message.limit = reader.readUint32();
|
|
11511
|
+
break;
|
|
11512
|
+
case 9:
|
|
11513
|
+
message.page = reader.readUint32();
|
|
11514
|
+
break;
|
|
11515
|
+
default: reader.skipField();
|
|
11516
|
+
}
|
|
11517
|
+
}
|
|
11518
|
+
return message;
|
|
11519
|
+
}
|
|
11520
|
+
serializeBinary() {
|
|
11521
|
+
return this.serialize();
|
|
11522
|
+
}
|
|
11523
|
+
static deserializeBinary(bytes) {
|
|
11524
|
+
return FetchPayoutLogsRequest.deserialize(bytes);
|
|
11525
|
+
}
|
|
11526
|
+
}
|
|
11527
|
+
account.FetchPayoutLogsRequest = FetchPayoutLogsRequest;
|
|
11528
|
+
class UpdatePayoutLogRequest extends pb_1.Message {
|
|
11529
|
+
#one_of_decls = [];
|
|
11530
|
+
constructor(data) {
|
|
11531
|
+
super();
|
|
11532
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
11533
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
11534
|
+
if ("id" in data && data.id != undefined) {
|
|
11535
|
+
this.id = data.id;
|
|
11536
|
+
}
|
|
11537
|
+
if ("status" in data && data.status != undefined) {
|
|
11538
|
+
this.status = data.status;
|
|
11539
|
+
}
|
|
11540
|
+
if ("failureReason" in data && data.failureReason != undefined) {
|
|
11541
|
+
this.failureReason = data.failureReason;
|
|
11542
|
+
}
|
|
11543
|
+
if ("responseCode" in data && data.responseCode != undefined) {
|
|
11544
|
+
this.responseCode = data.responseCode;
|
|
11545
|
+
}
|
|
11546
|
+
if ("responseMessage" in data && data.responseMessage != undefined) {
|
|
11547
|
+
this.responseMessage = data.responseMessage;
|
|
11548
|
+
}
|
|
11549
|
+
if ("destinationBankCode" in data && data.destinationBankCode != undefined) {
|
|
11550
|
+
this.destinationBankCode = data.destinationBankCode;
|
|
11551
|
+
}
|
|
11552
|
+
if ("destinationAccountNumber" in data && data.destinationAccountNumber != undefined) {
|
|
11553
|
+
this.destinationAccountNumber = data.destinationAccountNumber;
|
|
11554
|
+
}
|
|
11555
|
+
}
|
|
11556
|
+
}
|
|
11557
|
+
get id() {
|
|
11558
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
11559
|
+
}
|
|
11560
|
+
set id(value) {
|
|
11561
|
+
pb_1.Message.setField(this, 1, value);
|
|
11562
|
+
}
|
|
11563
|
+
get status() {
|
|
11564
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
11565
|
+
}
|
|
11566
|
+
set status(value) {
|
|
11567
|
+
pb_1.Message.setField(this, 2, value);
|
|
11568
|
+
}
|
|
11569
|
+
get failureReason() {
|
|
11570
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
11571
|
+
}
|
|
11572
|
+
set failureReason(value) {
|
|
11573
|
+
pb_1.Message.setField(this, 3, value);
|
|
11574
|
+
}
|
|
11575
|
+
get responseCode() {
|
|
11576
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
11577
|
+
}
|
|
11578
|
+
set responseCode(value) {
|
|
11579
|
+
pb_1.Message.setField(this, 4, value);
|
|
11580
|
+
}
|
|
11581
|
+
get responseMessage() {
|
|
11582
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
11583
|
+
}
|
|
11584
|
+
set responseMessage(value) {
|
|
11585
|
+
pb_1.Message.setField(this, 5, value);
|
|
11586
|
+
}
|
|
11587
|
+
get destinationBankCode() {
|
|
11588
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
11589
|
+
}
|
|
11590
|
+
set destinationBankCode(value) {
|
|
11591
|
+
pb_1.Message.setField(this, 6, value);
|
|
11592
|
+
}
|
|
11593
|
+
get destinationAccountNumber() {
|
|
11594
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
11595
|
+
}
|
|
11596
|
+
set destinationAccountNumber(value) {
|
|
11597
|
+
pb_1.Message.setField(this, 7, value);
|
|
11598
|
+
}
|
|
11599
|
+
static fromObject(data) {
|
|
11600
|
+
const message = new UpdatePayoutLogRequest({});
|
|
11601
|
+
if (data.id != null) {
|
|
11602
|
+
message.id = data.id;
|
|
11603
|
+
}
|
|
11604
|
+
if (data.status != null) {
|
|
11605
|
+
message.status = data.status;
|
|
11606
|
+
}
|
|
11607
|
+
if (data.failureReason != null) {
|
|
11608
|
+
message.failureReason = data.failureReason;
|
|
11609
|
+
}
|
|
11610
|
+
if (data.responseCode != null) {
|
|
11611
|
+
message.responseCode = data.responseCode;
|
|
11612
|
+
}
|
|
11613
|
+
if (data.responseMessage != null) {
|
|
11614
|
+
message.responseMessage = data.responseMessage;
|
|
11615
|
+
}
|
|
11616
|
+
if (data.destinationBankCode != null) {
|
|
11617
|
+
message.destinationBankCode = data.destinationBankCode;
|
|
11618
|
+
}
|
|
11619
|
+
if (data.destinationAccountNumber != null) {
|
|
11620
|
+
message.destinationAccountNumber = data.destinationAccountNumber;
|
|
11621
|
+
}
|
|
11622
|
+
return message;
|
|
11623
|
+
}
|
|
11624
|
+
toObject() {
|
|
11625
|
+
const data = {};
|
|
11626
|
+
if (this.id != null) {
|
|
11627
|
+
data.id = this.id;
|
|
11628
|
+
}
|
|
11629
|
+
if (this.status != null) {
|
|
11630
|
+
data.status = this.status;
|
|
11631
|
+
}
|
|
11632
|
+
if (this.failureReason != null) {
|
|
11633
|
+
data.failureReason = this.failureReason;
|
|
11634
|
+
}
|
|
11635
|
+
if (this.responseCode != null) {
|
|
11636
|
+
data.responseCode = this.responseCode;
|
|
11637
|
+
}
|
|
11638
|
+
if (this.responseMessage != null) {
|
|
11639
|
+
data.responseMessage = this.responseMessage;
|
|
11640
|
+
}
|
|
11641
|
+
if (this.destinationBankCode != null) {
|
|
11642
|
+
data.destinationBankCode = this.destinationBankCode;
|
|
11643
|
+
}
|
|
11644
|
+
if (this.destinationAccountNumber != null) {
|
|
11645
|
+
data.destinationAccountNumber = this.destinationAccountNumber;
|
|
11646
|
+
}
|
|
11647
|
+
return data;
|
|
11648
|
+
}
|
|
11649
|
+
serialize(w) {
|
|
11650
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
11651
|
+
if (this.id.length)
|
|
11652
|
+
writer.writeString(1, this.id);
|
|
11653
|
+
if (this.status.length)
|
|
11654
|
+
writer.writeString(2, this.status);
|
|
11655
|
+
if (this.failureReason.length)
|
|
11656
|
+
writer.writeString(3, this.failureReason);
|
|
11657
|
+
if (this.responseCode.length)
|
|
11658
|
+
writer.writeString(4, this.responseCode);
|
|
11659
|
+
if (this.responseMessage.length)
|
|
11660
|
+
writer.writeString(5, this.responseMessage);
|
|
11661
|
+
if (this.destinationBankCode.length)
|
|
11662
|
+
writer.writeString(6, this.destinationBankCode);
|
|
11663
|
+
if (this.destinationAccountNumber.length)
|
|
11664
|
+
writer.writeString(7, this.destinationAccountNumber);
|
|
11665
|
+
if (!w)
|
|
11666
|
+
return writer.getResultBuffer();
|
|
11667
|
+
}
|
|
11668
|
+
static deserialize(bytes) {
|
|
11669
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdatePayoutLogRequest();
|
|
11670
|
+
while (reader.nextField()) {
|
|
11671
|
+
if (reader.isEndGroup())
|
|
11672
|
+
break;
|
|
11673
|
+
switch (reader.getFieldNumber()) {
|
|
11674
|
+
case 1:
|
|
11675
|
+
message.id = reader.readString();
|
|
11676
|
+
break;
|
|
11677
|
+
case 2:
|
|
11678
|
+
message.status = reader.readString();
|
|
11679
|
+
break;
|
|
11680
|
+
case 3:
|
|
11681
|
+
message.failureReason = reader.readString();
|
|
11682
|
+
break;
|
|
11683
|
+
case 4:
|
|
11684
|
+
message.responseCode = reader.readString();
|
|
11685
|
+
break;
|
|
11686
|
+
case 5:
|
|
11687
|
+
message.responseMessage = reader.readString();
|
|
11688
|
+
break;
|
|
11689
|
+
case 6:
|
|
11690
|
+
message.destinationBankCode = reader.readString();
|
|
11691
|
+
break;
|
|
11692
|
+
case 7:
|
|
11693
|
+
message.destinationAccountNumber = reader.readString();
|
|
11694
|
+
break;
|
|
11695
|
+
default: reader.skipField();
|
|
11696
|
+
}
|
|
11697
|
+
}
|
|
11698
|
+
return message;
|
|
11699
|
+
}
|
|
11700
|
+
serializeBinary() {
|
|
11701
|
+
return this.serialize();
|
|
11702
|
+
}
|
|
11703
|
+
static deserializeBinary(bytes) {
|
|
11704
|
+
return UpdatePayoutLogRequest.deserialize(bytes);
|
|
11705
|
+
}
|
|
11706
|
+
}
|
|
11707
|
+
account.UpdatePayoutLogRequest = UpdatePayoutLogRequest;
|
|
11708
|
+
class PayoutLogResponse extends pb_1.Message {
|
|
11709
|
+
#one_of_decls = [];
|
|
11710
|
+
constructor(data) {
|
|
11711
|
+
super();
|
|
11712
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
11713
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
11714
|
+
if ("status" in data && data.status != undefined) {
|
|
11715
|
+
this.status = data.status;
|
|
11716
|
+
}
|
|
11717
|
+
if ("data" in data && data.data != undefined) {
|
|
11718
|
+
this.data = data.data;
|
|
11719
|
+
}
|
|
11720
|
+
if ("error" in data && data.error != undefined) {
|
|
11721
|
+
this.error = data.error;
|
|
11722
|
+
}
|
|
11723
|
+
if ("message" in data && data.message != undefined) {
|
|
11724
|
+
this.message = data.message;
|
|
11725
|
+
}
|
|
11726
|
+
if ("errors" in data && data.errors != undefined) {
|
|
11727
|
+
this.errors = data.errors;
|
|
11728
|
+
}
|
|
11729
|
+
if ("success" in data && data.success != undefined) {
|
|
11730
|
+
this.success = data.success;
|
|
11731
|
+
}
|
|
11732
|
+
}
|
|
11733
|
+
}
|
|
11734
|
+
get status() {
|
|
11735
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
11736
|
+
}
|
|
11737
|
+
set status(value) {
|
|
11738
|
+
pb_1.Message.setField(this, 1, value);
|
|
11739
|
+
}
|
|
11740
|
+
get data() {
|
|
11741
|
+
return pb_1.Message.getWrapperField(this, PayoutLogData, 2);
|
|
11742
|
+
}
|
|
11743
|
+
set data(value) {
|
|
11744
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
11745
|
+
}
|
|
11746
|
+
get hasData() {
|
|
11747
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
11748
|
+
}
|
|
11749
|
+
get error() {
|
|
11750
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
11751
|
+
}
|
|
11752
|
+
set error(value) {
|
|
11753
|
+
pb_1.Message.setField(this, 3, value);
|
|
11754
|
+
}
|
|
11755
|
+
get message() {
|
|
11756
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
11757
|
+
}
|
|
11758
|
+
set message(value) {
|
|
11759
|
+
pb_1.Message.setField(this, 4, value);
|
|
11760
|
+
}
|
|
11761
|
+
get errors() {
|
|
11762
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
11763
|
+
}
|
|
11764
|
+
set errors(value) {
|
|
11765
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
11766
|
+
}
|
|
11767
|
+
get success() {
|
|
11768
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
11769
|
+
}
|
|
11770
|
+
set success(value) {
|
|
11771
|
+
pb_1.Message.setField(this, 6, value);
|
|
11772
|
+
}
|
|
11773
|
+
static fromObject(data) {
|
|
11774
|
+
const message = new PayoutLogResponse({});
|
|
11775
|
+
if (data.status != null) {
|
|
11776
|
+
message.status = data.status;
|
|
11777
|
+
}
|
|
11778
|
+
if (data.data != null) {
|
|
11779
|
+
message.data = PayoutLogData.fromObject(data.data);
|
|
11780
|
+
}
|
|
11781
|
+
if (data.error != null) {
|
|
11782
|
+
message.error = data.error;
|
|
11783
|
+
}
|
|
11784
|
+
if (data.message != null) {
|
|
11785
|
+
message.message = data.message;
|
|
11786
|
+
}
|
|
11787
|
+
if (data.errors != null) {
|
|
11788
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
11789
|
+
}
|
|
11790
|
+
if (data.success != null) {
|
|
11791
|
+
message.success = data.success;
|
|
11792
|
+
}
|
|
11793
|
+
return message;
|
|
11794
|
+
}
|
|
11795
|
+
toObject() {
|
|
11796
|
+
const data = {};
|
|
11797
|
+
if (this.status != null) {
|
|
11798
|
+
data.status = this.status;
|
|
11799
|
+
}
|
|
11800
|
+
if (this.data != null) {
|
|
11801
|
+
data.data = this.data.toObject();
|
|
11802
|
+
}
|
|
11803
|
+
if (this.error != null) {
|
|
11804
|
+
data.error = this.error;
|
|
11805
|
+
}
|
|
11806
|
+
if (this.message != null) {
|
|
11807
|
+
data.message = this.message;
|
|
11808
|
+
}
|
|
11809
|
+
if (this.errors != null) {
|
|
11810
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
11811
|
+
}
|
|
11812
|
+
if (this.success != null) {
|
|
11813
|
+
data.success = this.success;
|
|
11814
|
+
}
|
|
11815
|
+
return data;
|
|
11816
|
+
}
|
|
11817
|
+
serialize(w) {
|
|
11818
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
11819
|
+
if (this.status.length)
|
|
11820
|
+
writer.writeString(1, this.status);
|
|
11821
|
+
if (this.hasData)
|
|
11822
|
+
writer.writeMessage(2, this.data, () => this.data.serialize(writer));
|
|
11823
|
+
if (this.error.length)
|
|
11824
|
+
writer.writeString(3, this.error);
|
|
11825
|
+
if (this.message.length)
|
|
11826
|
+
writer.writeString(4, this.message);
|
|
11827
|
+
if (this.errors.length)
|
|
11828
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
11829
|
+
if (this.success != false)
|
|
11830
|
+
writer.writeBool(6, this.success);
|
|
11831
|
+
if (!w)
|
|
11832
|
+
return writer.getResultBuffer();
|
|
11833
|
+
}
|
|
11834
|
+
static deserialize(bytes) {
|
|
11835
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PayoutLogResponse();
|
|
11836
|
+
while (reader.nextField()) {
|
|
11837
|
+
if (reader.isEndGroup())
|
|
11838
|
+
break;
|
|
11839
|
+
switch (reader.getFieldNumber()) {
|
|
11840
|
+
case 1:
|
|
11841
|
+
message.status = reader.readString();
|
|
11842
|
+
break;
|
|
11843
|
+
case 2:
|
|
11844
|
+
reader.readMessage(message.data, () => message.data = PayoutLogData.deserialize(reader));
|
|
11845
|
+
break;
|
|
11846
|
+
case 3:
|
|
11847
|
+
message.error = reader.readString();
|
|
11848
|
+
break;
|
|
11849
|
+
case 4:
|
|
11850
|
+
message.message = reader.readString();
|
|
11851
|
+
break;
|
|
11852
|
+
case 5:
|
|
11853
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
11854
|
+
break;
|
|
11855
|
+
case 6:
|
|
11856
|
+
message.success = reader.readBool();
|
|
11857
|
+
break;
|
|
11858
|
+
default: reader.skipField();
|
|
11859
|
+
}
|
|
11860
|
+
}
|
|
11861
|
+
return message;
|
|
11862
|
+
}
|
|
11863
|
+
serializeBinary() {
|
|
11864
|
+
return this.serialize();
|
|
11865
|
+
}
|
|
11866
|
+
static deserializeBinary(bytes) {
|
|
11867
|
+
return PayoutLogResponse.deserialize(bytes);
|
|
11868
|
+
}
|
|
11869
|
+
}
|
|
11870
|
+
account.PayoutLogResponse = PayoutLogResponse;
|
|
11871
|
+
class MultiPayoutLogResponse extends pb_1.Message {
|
|
11872
|
+
#one_of_decls = [];
|
|
11873
|
+
constructor(data) {
|
|
11874
|
+
super();
|
|
11875
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 5], this.#one_of_decls);
|
|
11876
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
11877
|
+
if ("status" in data && data.status != undefined) {
|
|
11878
|
+
this.status = data.status;
|
|
11879
|
+
}
|
|
11880
|
+
if ("data" in data && data.data != undefined) {
|
|
11881
|
+
this.data = data.data;
|
|
11882
|
+
}
|
|
11883
|
+
if ("error" in data && data.error != undefined) {
|
|
11884
|
+
this.error = data.error;
|
|
11885
|
+
}
|
|
11886
|
+
if ("message" in data && data.message != undefined) {
|
|
11887
|
+
this.message = data.message;
|
|
11888
|
+
}
|
|
11889
|
+
if ("errors" in data && data.errors != undefined) {
|
|
11890
|
+
this.errors = data.errors;
|
|
11891
|
+
}
|
|
11892
|
+
if ("success" in data && data.success != undefined) {
|
|
11893
|
+
this.success = data.success;
|
|
11894
|
+
}
|
|
11895
|
+
if ("pagination" in data && data.pagination != undefined) {
|
|
11896
|
+
this.pagination = data.pagination;
|
|
11897
|
+
}
|
|
11898
|
+
}
|
|
11899
|
+
}
|
|
11900
|
+
get status() {
|
|
11901
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
11902
|
+
}
|
|
11903
|
+
set status(value) {
|
|
11904
|
+
pb_1.Message.setField(this, 1, value);
|
|
11905
|
+
}
|
|
11906
|
+
get data() {
|
|
11907
|
+
return pb_1.Message.getRepeatedWrapperField(this, PayoutLogData, 2);
|
|
11908
|
+
}
|
|
11909
|
+
set data(value) {
|
|
11910
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
11911
|
+
}
|
|
11912
|
+
get error() {
|
|
11913
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
11914
|
+
}
|
|
11915
|
+
set error(value) {
|
|
11916
|
+
pb_1.Message.setField(this, 3, value);
|
|
11917
|
+
}
|
|
11918
|
+
get message() {
|
|
11919
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
11920
|
+
}
|
|
11921
|
+
set message(value) {
|
|
11922
|
+
pb_1.Message.setField(this, 4, value);
|
|
11923
|
+
}
|
|
11924
|
+
get errors() {
|
|
11925
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
11926
|
+
}
|
|
11927
|
+
set errors(value) {
|
|
11928
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
11929
|
+
}
|
|
11930
|
+
get success() {
|
|
11931
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
11932
|
+
}
|
|
11933
|
+
set success(value) {
|
|
11934
|
+
pb_1.Message.setField(this, 6, value);
|
|
11935
|
+
}
|
|
11936
|
+
get pagination() {
|
|
11937
|
+
return pb_1.Message.getWrapperField(this, Pagination, 7);
|
|
11938
|
+
}
|
|
11939
|
+
set pagination(value) {
|
|
11940
|
+
pb_1.Message.setWrapperField(this, 7, value);
|
|
11941
|
+
}
|
|
11942
|
+
get hasPagination() {
|
|
11943
|
+
return pb_1.Message.getField(this, 7) != null;
|
|
11944
|
+
}
|
|
11945
|
+
static fromObject(data) {
|
|
11946
|
+
const message = new MultiPayoutLogResponse({});
|
|
11947
|
+
if (data.status != null) {
|
|
11948
|
+
message.status = data.status;
|
|
11949
|
+
}
|
|
11950
|
+
if (data.data != null) {
|
|
11951
|
+
message.data = data.data.map(item => PayoutLogData.fromObject(item));
|
|
11952
|
+
}
|
|
11953
|
+
if (data.error != null) {
|
|
11954
|
+
message.error = data.error;
|
|
11955
|
+
}
|
|
11956
|
+
if (data.message != null) {
|
|
11957
|
+
message.message = data.message;
|
|
11958
|
+
}
|
|
11959
|
+
if (data.errors != null) {
|
|
11960
|
+
message.errors = data.errors.map(item => ValidationErrors.fromObject(item));
|
|
11961
|
+
}
|
|
11962
|
+
if (data.success != null) {
|
|
11963
|
+
message.success = data.success;
|
|
11964
|
+
}
|
|
11965
|
+
if (data.pagination != null) {
|
|
11966
|
+
message.pagination = Pagination.fromObject(data.pagination);
|
|
11967
|
+
}
|
|
11968
|
+
return message;
|
|
11969
|
+
}
|
|
11970
|
+
toObject() {
|
|
11971
|
+
const data = {};
|
|
11972
|
+
if (this.status != null) {
|
|
11973
|
+
data.status = this.status;
|
|
11974
|
+
}
|
|
11975
|
+
if (this.data != null) {
|
|
11976
|
+
data.data = this.data.map((item) => item.toObject());
|
|
11977
|
+
}
|
|
11978
|
+
if (this.error != null) {
|
|
11979
|
+
data.error = this.error;
|
|
11980
|
+
}
|
|
11981
|
+
if (this.message != null) {
|
|
11982
|
+
data.message = this.message;
|
|
11983
|
+
}
|
|
11984
|
+
if (this.errors != null) {
|
|
11985
|
+
data.errors = this.errors.map((item) => item.toObject());
|
|
11986
|
+
}
|
|
11987
|
+
if (this.success != null) {
|
|
11988
|
+
data.success = this.success;
|
|
11989
|
+
}
|
|
11990
|
+
if (this.pagination != null) {
|
|
11991
|
+
data.pagination = this.pagination.toObject();
|
|
11992
|
+
}
|
|
11993
|
+
return data;
|
|
11994
|
+
}
|
|
11995
|
+
serialize(w) {
|
|
11996
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
11997
|
+
if (this.status.length)
|
|
11998
|
+
writer.writeString(1, this.status);
|
|
11999
|
+
if (this.data.length)
|
|
12000
|
+
writer.writeRepeatedMessage(2, this.data, (item) => item.serialize(writer));
|
|
12001
|
+
if (this.error.length)
|
|
12002
|
+
writer.writeString(3, this.error);
|
|
12003
|
+
if (this.message.length)
|
|
12004
|
+
writer.writeString(4, this.message);
|
|
12005
|
+
if (this.errors.length)
|
|
12006
|
+
writer.writeRepeatedMessage(5, this.errors, (item) => item.serialize(writer));
|
|
12007
|
+
if (this.success != false)
|
|
12008
|
+
writer.writeBool(6, this.success);
|
|
12009
|
+
if (this.hasPagination)
|
|
12010
|
+
writer.writeMessage(7, this.pagination, () => this.pagination.serialize(writer));
|
|
12011
|
+
if (!w)
|
|
12012
|
+
return writer.getResultBuffer();
|
|
12013
|
+
}
|
|
12014
|
+
static deserialize(bytes) {
|
|
12015
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MultiPayoutLogResponse();
|
|
12016
|
+
while (reader.nextField()) {
|
|
12017
|
+
if (reader.isEndGroup())
|
|
12018
|
+
break;
|
|
12019
|
+
switch (reader.getFieldNumber()) {
|
|
12020
|
+
case 1:
|
|
12021
|
+
message.status = reader.readString();
|
|
12022
|
+
break;
|
|
12023
|
+
case 2:
|
|
12024
|
+
reader.readMessage(message.data, () => pb_1.Message.addToRepeatedWrapperField(message, 2, PayoutLogData.deserialize(reader), PayoutLogData));
|
|
12025
|
+
break;
|
|
12026
|
+
case 3:
|
|
12027
|
+
message.error = reader.readString();
|
|
12028
|
+
break;
|
|
12029
|
+
case 4:
|
|
12030
|
+
message.message = reader.readString();
|
|
12031
|
+
break;
|
|
12032
|
+
case 5:
|
|
12033
|
+
reader.readMessage(message.errors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
12034
|
+
break;
|
|
12035
|
+
case 6:
|
|
12036
|
+
message.success = reader.readBool();
|
|
12037
|
+
break;
|
|
12038
|
+
case 7:
|
|
12039
|
+
reader.readMessage(message.pagination, () => message.pagination = Pagination.deserialize(reader));
|
|
12040
|
+
break;
|
|
12041
|
+
default: reader.skipField();
|
|
12042
|
+
}
|
|
12043
|
+
}
|
|
12044
|
+
return message;
|
|
12045
|
+
}
|
|
12046
|
+
serializeBinary() {
|
|
12047
|
+
return this.serialize();
|
|
12048
|
+
}
|
|
12049
|
+
static deserializeBinary(bytes) {
|
|
12050
|
+
return MultiPayoutLogResponse.deserialize(bytes);
|
|
12051
|
+
}
|
|
12052
|
+
}
|
|
12053
|
+
account.MultiPayoutLogResponse = MultiPayoutLogResponse;
|
|
10888
12054
|
class UnimplementedAccountsService {
|
|
10889
12055
|
static definition = {
|
|
10890
12056
|
IssueAccount: {
|
|
@@ -11246,6 +12412,33 @@ var com;
|
|
|
11246
12412
|
requestDeserialize: (bytes) => ChargesData.deserialize(new Uint8Array(bytes)),
|
|
11247
12413
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
11248
12414
|
responseDeserialize: (bytes) => ChargesResponse.deserialize(new Uint8Array(bytes))
|
|
12415
|
+
},
|
|
12416
|
+
GetPayoutLogs: {
|
|
12417
|
+
path: "/com.pkg.account.Accounts/GetPayoutLogs",
|
|
12418
|
+
requestStream: false,
|
|
12419
|
+
responseStream: false,
|
|
12420
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12421
|
+
requestDeserialize: (bytes) => FetchPayoutLogsRequest.deserialize(new Uint8Array(bytes)),
|
|
12422
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12423
|
+
responseDeserialize: (bytes) => MultiPayoutLogResponse.deserialize(new Uint8Array(bytes))
|
|
12424
|
+
},
|
|
12425
|
+
GetPayoutLog: {
|
|
12426
|
+
path: "/com.pkg.account.Accounts/GetPayoutLog",
|
|
12427
|
+
requestStream: false,
|
|
12428
|
+
responseStream: false,
|
|
12429
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12430
|
+
requestDeserialize: (bytes) => IdRequest.deserialize(new Uint8Array(bytes)),
|
|
12431
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12432
|
+
responseDeserialize: (bytes) => PayoutLogResponse.deserialize(new Uint8Array(bytes))
|
|
12433
|
+
},
|
|
12434
|
+
UpdatePayoutLog: {
|
|
12435
|
+
path: "/com.pkg.account.Accounts/UpdatePayoutLog",
|
|
12436
|
+
requestStream: false,
|
|
12437
|
+
responseStream: false,
|
|
12438
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
12439
|
+
requestDeserialize: (bytes) => UpdatePayoutLogRequest.deserialize(new Uint8Array(bytes)),
|
|
12440
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
12441
|
+
responseDeserialize: (bytes) => PayoutLogResponse.deserialize(new Uint8Array(bytes))
|
|
11249
12442
|
}
|
|
11250
12443
|
};
|
|
11251
12444
|
}
|
|
@@ -11894,6 +13087,54 @@ var com;
|
|
|
11894
13087
|
}
|
|
11895
13088
|
}));
|
|
11896
13089
|
};
|
|
13090
|
+
GetPayoutLogs = (message, metadata, options) => {
|
|
13091
|
+
if (!metadata) {
|
|
13092
|
+
metadata = new grpc_1.Metadata;
|
|
13093
|
+
}
|
|
13094
|
+
if (!options) {
|
|
13095
|
+
options = {};
|
|
13096
|
+
}
|
|
13097
|
+
return new Promise((resolve, reject) => super.GetPayoutLogs(message, metadata, options, (error, response) => {
|
|
13098
|
+
if (error) {
|
|
13099
|
+
reject(error);
|
|
13100
|
+
}
|
|
13101
|
+
else {
|
|
13102
|
+
resolve(response);
|
|
13103
|
+
}
|
|
13104
|
+
}));
|
|
13105
|
+
};
|
|
13106
|
+
GetPayoutLog = (message, metadata, options) => {
|
|
13107
|
+
if (!metadata) {
|
|
13108
|
+
metadata = new grpc_1.Metadata;
|
|
13109
|
+
}
|
|
13110
|
+
if (!options) {
|
|
13111
|
+
options = {};
|
|
13112
|
+
}
|
|
13113
|
+
return new Promise((resolve, reject) => super.GetPayoutLog(message, metadata, options, (error, response) => {
|
|
13114
|
+
if (error) {
|
|
13115
|
+
reject(error);
|
|
13116
|
+
}
|
|
13117
|
+
else {
|
|
13118
|
+
resolve(response);
|
|
13119
|
+
}
|
|
13120
|
+
}));
|
|
13121
|
+
};
|
|
13122
|
+
UpdatePayoutLog = (message, metadata, options) => {
|
|
13123
|
+
if (!metadata) {
|
|
13124
|
+
metadata = new grpc_1.Metadata;
|
|
13125
|
+
}
|
|
13126
|
+
if (!options) {
|
|
13127
|
+
options = {};
|
|
13128
|
+
}
|
|
13129
|
+
return new Promise((resolve, reject) => super.UpdatePayoutLog(message, metadata, options, (error, response) => {
|
|
13130
|
+
if (error) {
|
|
13131
|
+
reject(error);
|
|
13132
|
+
}
|
|
13133
|
+
else {
|
|
13134
|
+
resolve(response);
|
|
13135
|
+
}
|
|
13136
|
+
}));
|
|
13137
|
+
};
|
|
11897
13138
|
}
|
|
11898
13139
|
account.AccountsClient = AccountsClient;
|
|
11899
13140
|
})(account = pkg.account || (pkg.account = {}));
|