@technova-tech/olive-proto-lib 2.2.0 → 2.3.1
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
CHANGED
|
@@ -3234,6 +3234,106 @@ var com;
|
|
|
3234
3234
|
}
|
|
3235
3235
|
}
|
|
3236
3236
|
account.GetTerminalVirtualAccountRequest = GetTerminalVirtualAccountRequest;
|
|
3237
|
+
class DeactivateTerminalVirtualAccountRequest extends pb_1.Message {
|
|
3238
|
+
#one_of_decls = [];
|
|
3239
|
+
constructor(data) {
|
|
3240
|
+
super();
|
|
3241
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
3242
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
3243
|
+
if ("terminalId" in data && data.terminalId != undefined) {
|
|
3244
|
+
this.terminalId = data.terminalId;
|
|
3245
|
+
}
|
|
3246
|
+
if ("reason" in data && data.reason != undefined) {
|
|
3247
|
+
this.reason = data.reason;
|
|
3248
|
+
}
|
|
3249
|
+
if ("deactivatedBy" in data && data.deactivatedBy != undefined) {
|
|
3250
|
+
this.deactivatedBy = data.deactivatedBy;
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
get terminalId() {
|
|
3255
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
3256
|
+
}
|
|
3257
|
+
set terminalId(value) {
|
|
3258
|
+
pb_1.Message.setField(this, 1, value);
|
|
3259
|
+
}
|
|
3260
|
+
get reason() {
|
|
3261
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
3262
|
+
}
|
|
3263
|
+
set reason(value) {
|
|
3264
|
+
pb_1.Message.setField(this, 2, value);
|
|
3265
|
+
}
|
|
3266
|
+
get deactivatedBy() {
|
|
3267
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
3268
|
+
}
|
|
3269
|
+
set deactivatedBy(value) {
|
|
3270
|
+
pb_1.Message.setField(this, 3, value);
|
|
3271
|
+
}
|
|
3272
|
+
static fromObject(data) {
|
|
3273
|
+
const message = new DeactivateTerminalVirtualAccountRequest({});
|
|
3274
|
+
if (data.terminalId != null) {
|
|
3275
|
+
message.terminalId = data.terminalId;
|
|
3276
|
+
}
|
|
3277
|
+
if (data.reason != null) {
|
|
3278
|
+
message.reason = data.reason;
|
|
3279
|
+
}
|
|
3280
|
+
if (data.deactivatedBy != null) {
|
|
3281
|
+
message.deactivatedBy = data.deactivatedBy;
|
|
3282
|
+
}
|
|
3283
|
+
return message;
|
|
3284
|
+
}
|
|
3285
|
+
toObject() {
|
|
3286
|
+
const data = {};
|
|
3287
|
+
if (this.terminalId != null) {
|
|
3288
|
+
data.terminalId = this.terminalId;
|
|
3289
|
+
}
|
|
3290
|
+
if (this.reason != null) {
|
|
3291
|
+
data.reason = this.reason;
|
|
3292
|
+
}
|
|
3293
|
+
if (this.deactivatedBy != null) {
|
|
3294
|
+
data.deactivatedBy = this.deactivatedBy;
|
|
3295
|
+
}
|
|
3296
|
+
return data;
|
|
3297
|
+
}
|
|
3298
|
+
serialize(w) {
|
|
3299
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
3300
|
+
if (this.terminalId.length)
|
|
3301
|
+
writer.writeString(1, this.terminalId);
|
|
3302
|
+
if (this.reason.length)
|
|
3303
|
+
writer.writeString(2, this.reason);
|
|
3304
|
+
if (this.deactivatedBy.length)
|
|
3305
|
+
writer.writeString(3, this.deactivatedBy);
|
|
3306
|
+
if (!w)
|
|
3307
|
+
return writer.getResultBuffer();
|
|
3308
|
+
}
|
|
3309
|
+
static deserialize(bytes) {
|
|
3310
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DeactivateTerminalVirtualAccountRequest();
|
|
3311
|
+
while (reader.nextField()) {
|
|
3312
|
+
if (reader.isEndGroup())
|
|
3313
|
+
break;
|
|
3314
|
+
switch (reader.getFieldNumber()) {
|
|
3315
|
+
case 1:
|
|
3316
|
+
message.terminalId = reader.readString();
|
|
3317
|
+
break;
|
|
3318
|
+
case 2:
|
|
3319
|
+
message.reason = reader.readString();
|
|
3320
|
+
break;
|
|
3321
|
+
case 3:
|
|
3322
|
+
message.deactivatedBy = reader.readString();
|
|
3323
|
+
break;
|
|
3324
|
+
default: reader.skipField();
|
|
3325
|
+
}
|
|
3326
|
+
}
|
|
3327
|
+
return message;
|
|
3328
|
+
}
|
|
3329
|
+
serializeBinary() {
|
|
3330
|
+
return this.serialize();
|
|
3331
|
+
}
|
|
3332
|
+
static deserializeBinary(bytes) {
|
|
3333
|
+
return DeactivateTerminalVirtualAccountRequest.deserialize(bytes);
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
account.DeactivateTerminalVirtualAccountRequest = DeactivateTerminalVirtualAccountRequest;
|
|
3237
3337
|
class FetchAccountDetailsRequest extends pb_1.Message {
|
|
3238
3338
|
#one_of_decls = [];
|
|
3239
3339
|
constructor(data) {
|
|
@@ -10904,6 +11004,15 @@ var com;
|
|
|
10904
11004
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
10905
11005
|
responseDeserialize: (bytes) => TerminalVirtualAccountResponse.deserialize(new Uint8Array(bytes))
|
|
10906
11006
|
},
|
|
11007
|
+
DeactivateTerminalVirtualAccount: {
|
|
11008
|
+
path: "/com.pkg.account.Accounts/DeactivateTerminalVirtualAccount",
|
|
11009
|
+
requestStream: false,
|
|
11010
|
+
responseStream: false,
|
|
11011
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
11012
|
+
requestDeserialize: (bytes) => DeactivateTerminalVirtualAccountRequest.deserialize(new Uint8Array(bytes)),
|
|
11013
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
11014
|
+
responseDeserialize: (bytes) => TerminalVirtualAccountResponse.deserialize(new Uint8Array(bytes))
|
|
11015
|
+
},
|
|
10907
11016
|
CreditAccount: {
|
|
10908
11017
|
path: "/com.pkg.account.Accounts/CreditAccount",
|
|
10909
11018
|
requestStream: false,
|
|
@@ -11353,6 +11462,22 @@ var com;
|
|
|
11353
11462
|
}
|
|
11354
11463
|
}));
|
|
11355
11464
|
};
|
|
11465
|
+
DeactivateTerminalVirtualAccount = (message, metadata, options) => {
|
|
11466
|
+
if (!metadata) {
|
|
11467
|
+
metadata = new grpc_1.Metadata;
|
|
11468
|
+
}
|
|
11469
|
+
if (!options) {
|
|
11470
|
+
options = {};
|
|
11471
|
+
}
|
|
11472
|
+
return new Promise((resolve, reject) => super.DeactivateTerminalVirtualAccount(message, metadata, options, (error, response) => {
|
|
11473
|
+
if (error) {
|
|
11474
|
+
reject(error);
|
|
11475
|
+
}
|
|
11476
|
+
else {
|
|
11477
|
+
resolve(response);
|
|
11478
|
+
}
|
|
11479
|
+
}));
|
|
11480
|
+
};
|
|
11356
11481
|
CreditAccount = (message, metadata, options) => {
|
|
11357
11482
|
if (!metadata) {
|
|
11358
11483
|
metadata = new grpc_1.Metadata;
|
package/package.json
CHANGED
|
@@ -912,7 +912,7 @@ var com;
|
|
|
912
912
|
}
|
|
913
913
|
terminalTransactions.TerminalTransactionsFilter = TerminalTransactionsFilter;
|
|
914
914
|
class AllTransactionsFilter extends pb_1.Message {
|
|
915
|
-
#one_of_decls = [];
|
|
915
|
+
#one_of_decls = [[13]];
|
|
916
916
|
constructor(data) {
|
|
917
917
|
super();
|
|
918
918
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
@@ -953,6 +953,9 @@ var com;
|
|
|
953
953
|
if ("mfbId" in data && data.mfbId != undefined) {
|
|
954
954
|
this.mfbId = data.mfbId;
|
|
955
955
|
}
|
|
956
|
+
if ("returnAll" in data && data.returnAll != undefined) {
|
|
957
|
+
this.returnAll = data.returnAll;
|
|
958
|
+
}
|
|
956
959
|
}
|
|
957
960
|
}
|
|
958
961
|
get terminalId() {
|
|
@@ -1027,6 +1030,22 @@ var com;
|
|
|
1027
1030
|
set mfbId(value) {
|
|
1028
1031
|
pb_1.Message.setField(this, 12, value);
|
|
1029
1032
|
}
|
|
1033
|
+
get returnAll() {
|
|
1034
|
+
return pb_1.Message.getFieldWithDefault(this, 13, false);
|
|
1035
|
+
}
|
|
1036
|
+
set returnAll(value) {
|
|
1037
|
+
pb_1.Message.setOneofField(this, 13, this.#one_of_decls[0], value);
|
|
1038
|
+
}
|
|
1039
|
+
get hasReturnAll() {
|
|
1040
|
+
return pb_1.Message.getField(this, 13) != null;
|
|
1041
|
+
}
|
|
1042
|
+
get _return_all() {
|
|
1043
|
+
const cases = {
|
|
1044
|
+
0: "none",
|
|
1045
|
+
13: "returnAll"
|
|
1046
|
+
};
|
|
1047
|
+
return cases[pb_1.Message.computeOneofCase(this, [13])];
|
|
1048
|
+
}
|
|
1030
1049
|
static fromObject(data) {
|
|
1031
1050
|
const message = new AllTransactionsFilter({});
|
|
1032
1051
|
if (data.terminalId != null) {
|
|
@@ -1065,6 +1084,9 @@ var com;
|
|
|
1065
1084
|
if (data.mfbId != null) {
|
|
1066
1085
|
message.mfbId = data.mfbId;
|
|
1067
1086
|
}
|
|
1087
|
+
if (data.returnAll != null) {
|
|
1088
|
+
message.returnAll = data.returnAll;
|
|
1089
|
+
}
|
|
1068
1090
|
return message;
|
|
1069
1091
|
}
|
|
1070
1092
|
toObject() {
|
|
@@ -1105,6 +1127,9 @@ var com;
|
|
|
1105
1127
|
if (this.mfbId != null) {
|
|
1106
1128
|
data.mfbId = this.mfbId;
|
|
1107
1129
|
}
|
|
1130
|
+
if (this.returnAll != null) {
|
|
1131
|
+
data.returnAll = this.returnAll;
|
|
1132
|
+
}
|
|
1108
1133
|
return data;
|
|
1109
1134
|
}
|
|
1110
1135
|
serialize(w) {
|
|
@@ -1133,6 +1158,8 @@ var com;
|
|
|
1133
1158
|
writer.writeString(11, this.search);
|
|
1134
1159
|
if (this.mfbId.length)
|
|
1135
1160
|
writer.writeString(12, this.mfbId);
|
|
1161
|
+
if (this.hasReturnAll)
|
|
1162
|
+
writer.writeBool(13, this.returnAll);
|
|
1136
1163
|
if (!w)
|
|
1137
1164
|
return writer.getResultBuffer();
|
|
1138
1165
|
}
|
|
@@ -1178,6 +1205,9 @@ var com;
|
|
|
1178
1205
|
case 12:
|
|
1179
1206
|
message.mfbId = reader.readString();
|
|
1180
1207
|
break;
|
|
1208
|
+
case 13:
|
|
1209
|
+
message.returnAll = reader.readBool();
|
|
1210
|
+
break;
|
|
1181
1211
|
default: reader.skipField();
|
|
1182
1212
|
}
|
|
1183
1213
|
}
|
package/pos.v1/terminals.js
CHANGED
|
@@ -2951,6 +2951,9 @@ var com;
|
|
|
2951
2951
|
if ("errors" in data && data.errors != undefined) {
|
|
2952
2952
|
this.errors = data.errors;
|
|
2953
2953
|
}
|
|
2954
|
+
if ("data" in data && data.data != undefined) {
|
|
2955
|
+
this.data = data.data;
|
|
2956
|
+
}
|
|
2954
2957
|
}
|
|
2955
2958
|
}
|
|
2956
2959
|
get success() {
|
|
@@ -2977,6 +2980,15 @@ var com;
|
|
|
2977
2980
|
set errors(value) {
|
|
2978
2981
|
pb_1.Message.setField(this, 4, value);
|
|
2979
2982
|
}
|
|
2983
|
+
get data() {
|
|
2984
|
+
return pb_1.Message.getWrapperField(this, UnassignTerminalResponse.Data, 5);
|
|
2985
|
+
}
|
|
2986
|
+
set data(value) {
|
|
2987
|
+
pb_1.Message.setWrapperField(this, 5, value);
|
|
2988
|
+
}
|
|
2989
|
+
get hasData() {
|
|
2990
|
+
return pb_1.Message.getField(this, 5) != null;
|
|
2991
|
+
}
|
|
2980
2992
|
static fromObject(data) {
|
|
2981
2993
|
const message = new UnassignTerminalResponse({});
|
|
2982
2994
|
if (data.success != null) {
|
|
@@ -2991,6 +3003,9 @@ var com;
|
|
|
2991
3003
|
if (data.errors != null) {
|
|
2992
3004
|
message.errors = data.errors;
|
|
2993
3005
|
}
|
|
3006
|
+
if (data.data != null) {
|
|
3007
|
+
message.data = UnassignTerminalResponse.Data.fromObject(data.data);
|
|
3008
|
+
}
|
|
2994
3009
|
return message;
|
|
2995
3010
|
}
|
|
2996
3011
|
toObject() {
|
|
@@ -3007,6 +3022,9 @@ var com;
|
|
|
3007
3022
|
if (this.errors != null) {
|
|
3008
3023
|
data.errors = this.errors;
|
|
3009
3024
|
}
|
|
3025
|
+
if (this.data != null) {
|
|
3026
|
+
data.data = this.data.toObject();
|
|
3027
|
+
}
|
|
3010
3028
|
return data;
|
|
3011
3029
|
}
|
|
3012
3030
|
serialize(w) {
|
|
@@ -3019,6 +3037,8 @@ var com;
|
|
|
3019
3037
|
writer.writeString(3, this.returnDate);
|
|
3020
3038
|
if (this.errors.length)
|
|
3021
3039
|
writer.writeRepeatedString(4, this.errors);
|
|
3040
|
+
if (this.hasData)
|
|
3041
|
+
writer.writeMessage(5, this.data, () => this.data.serialize(writer));
|
|
3022
3042
|
if (!w)
|
|
3023
3043
|
return writer.getResultBuffer();
|
|
3024
3044
|
}
|
|
@@ -3040,6 +3060,9 @@ var com;
|
|
|
3040
3060
|
case 4:
|
|
3041
3061
|
pb_1.Message.addToRepeatedField(message, 4, reader.readString());
|
|
3042
3062
|
break;
|
|
3063
|
+
case 5:
|
|
3064
|
+
reader.readMessage(message.data, () => message.data = UnassignTerminalResponse.Data.deserialize(reader));
|
|
3065
|
+
break;
|
|
3043
3066
|
default: reader.skipField();
|
|
3044
3067
|
}
|
|
3045
3068
|
}
|
|
@@ -3053,6 +3076,168 @@ var com;
|
|
|
3053
3076
|
}
|
|
3054
3077
|
}
|
|
3055
3078
|
terminals.UnassignTerminalResponse = UnassignTerminalResponse;
|
|
3079
|
+
(function (UnassignTerminalResponse) {
|
|
3080
|
+
class Data extends pb_1.Message {
|
|
3081
|
+
#one_of_decls = [];
|
|
3082
|
+
constructor(data) {
|
|
3083
|
+
super();
|
|
3084
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
3085
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
3086
|
+
if ("ownerType" in data && data.ownerType != undefined) {
|
|
3087
|
+
this.ownerType = data.ownerType;
|
|
3088
|
+
}
|
|
3089
|
+
if ("ownerId" in data && data.ownerId != undefined) {
|
|
3090
|
+
this.ownerId = data.ownerId;
|
|
3091
|
+
}
|
|
3092
|
+
if ("assignmentId" in data && data.assignmentId != undefined) {
|
|
3093
|
+
this.assignmentId = data.assignmentId;
|
|
3094
|
+
}
|
|
3095
|
+
if ("terminalId" in data && data.terminalId != undefined) {
|
|
3096
|
+
this.terminalId = data.terminalId;
|
|
3097
|
+
}
|
|
3098
|
+
if ("terminalStatus" in data && data.terminalStatus != undefined) {
|
|
3099
|
+
this.terminalStatus = data.terminalStatus;
|
|
3100
|
+
}
|
|
3101
|
+
if ("virtualAccountDeactivated" in data && data.virtualAccountDeactivated != undefined) {
|
|
3102
|
+
this.virtualAccountDeactivated = data.virtualAccountDeactivated;
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
}
|
|
3106
|
+
get ownerType() {
|
|
3107
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
3108
|
+
}
|
|
3109
|
+
set ownerType(value) {
|
|
3110
|
+
pb_1.Message.setField(this, 1, value);
|
|
3111
|
+
}
|
|
3112
|
+
get ownerId() {
|
|
3113
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
3114
|
+
}
|
|
3115
|
+
set ownerId(value) {
|
|
3116
|
+
pb_1.Message.setField(this, 2, value);
|
|
3117
|
+
}
|
|
3118
|
+
get assignmentId() {
|
|
3119
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
3120
|
+
}
|
|
3121
|
+
set assignmentId(value) {
|
|
3122
|
+
pb_1.Message.setField(this, 3, value);
|
|
3123
|
+
}
|
|
3124
|
+
get terminalId() {
|
|
3125
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
3126
|
+
}
|
|
3127
|
+
set terminalId(value) {
|
|
3128
|
+
pb_1.Message.setField(this, 4, value);
|
|
3129
|
+
}
|
|
3130
|
+
get terminalStatus() {
|
|
3131
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
3132
|
+
}
|
|
3133
|
+
set terminalStatus(value) {
|
|
3134
|
+
pb_1.Message.setField(this, 5, value);
|
|
3135
|
+
}
|
|
3136
|
+
get virtualAccountDeactivated() {
|
|
3137
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
3138
|
+
}
|
|
3139
|
+
set virtualAccountDeactivated(value) {
|
|
3140
|
+
pb_1.Message.setField(this, 6, value);
|
|
3141
|
+
}
|
|
3142
|
+
static fromObject(data) {
|
|
3143
|
+
const message = new Data({});
|
|
3144
|
+
if (data.ownerType != null) {
|
|
3145
|
+
message.ownerType = data.ownerType;
|
|
3146
|
+
}
|
|
3147
|
+
if (data.ownerId != null) {
|
|
3148
|
+
message.ownerId = data.ownerId;
|
|
3149
|
+
}
|
|
3150
|
+
if (data.assignmentId != null) {
|
|
3151
|
+
message.assignmentId = data.assignmentId;
|
|
3152
|
+
}
|
|
3153
|
+
if (data.terminalId != null) {
|
|
3154
|
+
message.terminalId = data.terminalId;
|
|
3155
|
+
}
|
|
3156
|
+
if (data.terminalStatus != null) {
|
|
3157
|
+
message.terminalStatus = data.terminalStatus;
|
|
3158
|
+
}
|
|
3159
|
+
if (data.virtualAccountDeactivated != null) {
|
|
3160
|
+
message.virtualAccountDeactivated = data.virtualAccountDeactivated;
|
|
3161
|
+
}
|
|
3162
|
+
return message;
|
|
3163
|
+
}
|
|
3164
|
+
toObject() {
|
|
3165
|
+
const data = {};
|
|
3166
|
+
if (this.ownerType != null) {
|
|
3167
|
+
data.ownerType = this.ownerType;
|
|
3168
|
+
}
|
|
3169
|
+
if (this.ownerId != null) {
|
|
3170
|
+
data.ownerId = this.ownerId;
|
|
3171
|
+
}
|
|
3172
|
+
if (this.assignmentId != null) {
|
|
3173
|
+
data.assignmentId = this.assignmentId;
|
|
3174
|
+
}
|
|
3175
|
+
if (this.terminalId != null) {
|
|
3176
|
+
data.terminalId = this.terminalId;
|
|
3177
|
+
}
|
|
3178
|
+
if (this.terminalStatus != null) {
|
|
3179
|
+
data.terminalStatus = this.terminalStatus;
|
|
3180
|
+
}
|
|
3181
|
+
if (this.virtualAccountDeactivated != null) {
|
|
3182
|
+
data.virtualAccountDeactivated = this.virtualAccountDeactivated;
|
|
3183
|
+
}
|
|
3184
|
+
return data;
|
|
3185
|
+
}
|
|
3186
|
+
serialize(w) {
|
|
3187
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
3188
|
+
if (this.ownerType.length)
|
|
3189
|
+
writer.writeString(1, this.ownerType);
|
|
3190
|
+
if (this.ownerId.length)
|
|
3191
|
+
writer.writeString(2, this.ownerId);
|
|
3192
|
+
if (this.assignmentId.length)
|
|
3193
|
+
writer.writeString(3, this.assignmentId);
|
|
3194
|
+
if (this.terminalId.length)
|
|
3195
|
+
writer.writeString(4, this.terminalId);
|
|
3196
|
+
if (this.terminalStatus.length)
|
|
3197
|
+
writer.writeString(5, this.terminalStatus);
|
|
3198
|
+
if (this.virtualAccountDeactivated != false)
|
|
3199
|
+
writer.writeBool(6, this.virtualAccountDeactivated);
|
|
3200
|
+
if (!w)
|
|
3201
|
+
return writer.getResultBuffer();
|
|
3202
|
+
}
|
|
3203
|
+
static deserialize(bytes) {
|
|
3204
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Data();
|
|
3205
|
+
while (reader.nextField()) {
|
|
3206
|
+
if (reader.isEndGroup())
|
|
3207
|
+
break;
|
|
3208
|
+
switch (reader.getFieldNumber()) {
|
|
3209
|
+
case 1:
|
|
3210
|
+
message.ownerType = reader.readString();
|
|
3211
|
+
break;
|
|
3212
|
+
case 2:
|
|
3213
|
+
message.ownerId = reader.readString();
|
|
3214
|
+
break;
|
|
3215
|
+
case 3:
|
|
3216
|
+
message.assignmentId = reader.readString();
|
|
3217
|
+
break;
|
|
3218
|
+
case 4:
|
|
3219
|
+
message.terminalId = reader.readString();
|
|
3220
|
+
break;
|
|
3221
|
+
case 5:
|
|
3222
|
+
message.terminalStatus = reader.readString();
|
|
3223
|
+
break;
|
|
3224
|
+
case 6:
|
|
3225
|
+
message.virtualAccountDeactivated = reader.readBool();
|
|
3226
|
+
break;
|
|
3227
|
+
default: reader.skipField();
|
|
3228
|
+
}
|
|
3229
|
+
}
|
|
3230
|
+
return message;
|
|
3231
|
+
}
|
|
3232
|
+
serializeBinary() {
|
|
3233
|
+
return this.serialize();
|
|
3234
|
+
}
|
|
3235
|
+
static deserializeBinary(bytes) {
|
|
3236
|
+
return Data.deserialize(bytes);
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
UnassignTerminalResponse.Data = Data;
|
|
3240
|
+
})(UnassignTerminalResponse = terminals.UnassignTerminalResponse || (terminals.UnassignTerminalResponse = {}));
|
|
3056
3241
|
class GetTerminalAssignmentRequest extends pb_1.Message {
|
|
3057
3242
|
#one_of_decls = [];
|
|
3058
3243
|
constructor(data) {
|
|
@@ -983,6 +983,35 @@ export declare namespace com.pkg.account {
|
|
|
983
983
|
serializeBinary(): Uint8Array;
|
|
984
984
|
static deserializeBinary(bytes: Uint8Array): GetTerminalVirtualAccountRequest;
|
|
985
985
|
}
|
|
986
|
+
export class DeactivateTerminalVirtualAccountRequest extends pb_1.Message {
|
|
987
|
+
#private;
|
|
988
|
+
constructor(data?: any[] | {
|
|
989
|
+
terminalId?: string;
|
|
990
|
+
reason?: string;
|
|
991
|
+
deactivatedBy?: string;
|
|
992
|
+
});
|
|
993
|
+
get terminalId(): string;
|
|
994
|
+
set terminalId(value: string);
|
|
995
|
+
get reason(): string;
|
|
996
|
+
set reason(value: string);
|
|
997
|
+
get deactivatedBy(): string;
|
|
998
|
+
set deactivatedBy(value: string);
|
|
999
|
+
static fromObject(data: {
|
|
1000
|
+
terminalId?: string;
|
|
1001
|
+
reason?: string;
|
|
1002
|
+
deactivatedBy?: string;
|
|
1003
|
+
}): DeactivateTerminalVirtualAccountRequest;
|
|
1004
|
+
toObject(): {
|
|
1005
|
+
terminalId?: string | undefined;
|
|
1006
|
+
reason?: string | undefined;
|
|
1007
|
+
deactivatedBy?: string | undefined;
|
|
1008
|
+
};
|
|
1009
|
+
serialize(): Uint8Array;
|
|
1010
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1011
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DeactivateTerminalVirtualAccountRequest;
|
|
1012
|
+
serializeBinary(): Uint8Array;
|
|
1013
|
+
static deserializeBinary(bytes: Uint8Array): DeactivateTerminalVirtualAccountRequest;
|
|
1014
|
+
}
|
|
986
1015
|
export class FetchAccountDetailsRequest extends pb_1.Message {
|
|
987
1016
|
#private;
|
|
988
1017
|
constructor(data?: any[] | {
|
|
@@ -3637,6 +3666,15 @@ export declare namespace com.pkg.account {
|
|
|
3637
3666
|
responseSerialize: (message: TerminalVirtualAccountResponse) => Buffer;
|
|
3638
3667
|
responseDeserialize: (bytes: Buffer) => TerminalVirtualAccountResponse;
|
|
3639
3668
|
};
|
|
3669
|
+
DeactivateTerminalVirtualAccount: {
|
|
3670
|
+
path: string;
|
|
3671
|
+
requestStream: boolean;
|
|
3672
|
+
responseStream: boolean;
|
|
3673
|
+
requestSerialize: (message: DeactivateTerminalVirtualAccountRequest) => Buffer;
|
|
3674
|
+
requestDeserialize: (bytes: Buffer) => DeactivateTerminalVirtualAccountRequest;
|
|
3675
|
+
responseSerialize: (message: TerminalVirtualAccountResponse) => Buffer;
|
|
3676
|
+
responseDeserialize: (bytes: Buffer) => TerminalVirtualAccountResponse;
|
|
3677
|
+
};
|
|
3640
3678
|
CreditAccount: {
|
|
3641
3679
|
path: string;
|
|
3642
3680
|
requestStream: boolean;
|
|
@@ -3886,6 +3924,7 @@ export declare namespace com.pkg.account {
|
|
|
3886
3924
|
abstract AccountLookup(call: grpc_1.ServerUnaryCall<AccountLookupRequest, AccountLookupResponse>, callback: grpc_1.sendUnaryData<AccountLookupResponse>): void;
|
|
3887
3925
|
abstract AssignOrCreateTerminalVirtualAccount(call: grpc_1.ServerUnaryCall<AssignOrCreateTerminalVirtualAccountRequest, TerminalVirtualAccountResponse>, callback: grpc_1.sendUnaryData<TerminalVirtualAccountResponse>): void;
|
|
3888
3926
|
abstract GetTerminalVirtualAccount(call: grpc_1.ServerUnaryCall<GetTerminalVirtualAccountRequest, TerminalVirtualAccountResponse>, callback: grpc_1.sendUnaryData<TerminalVirtualAccountResponse>): void;
|
|
3927
|
+
abstract DeactivateTerminalVirtualAccount(call: grpc_1.ServerUnaryCall<DeactivateTerminalVirtualAccountRequest, TerminalVirtualAccountResponse>, callback: grpc_1.sendUnaryData<TerminalVirtualAccountResponse>): void;
|
|
3889
3928
|
abstract CreditAccount(call: grpc_1.ServerUnaryCall<AccountTransactionRequest, TransactionResponse>, callback: grpc_1.sendUnaryData<TransactionResponse>): void;
|
|
3890
3929
|
abstract DebitAccount(call: grpc_1.ServerUnaryCall<AccountTransactionRequest, TransactionResponse>, callback: grpc_1.sendUnaryData<TransactionResponse>): void;
|
|
3891
3930
|
abstract BulkTransactions(call: grpc_1.ServerUnaryCall<MultiTransactionRequest, MTransactionResponse>, callback: grpc_1.sendUnaryData<MTransactionResponse>): void;
|
|
@@ -3929,6 +3968,7 @@ export declare namespace com.pkg.account {
|
|
|
3929
3968
|
AccountLookup: GrpcPromiseServiceInterface<AccountLookupRequest, AccountLookupResponse>;
|
|
3930
3969
|
AssignOrCreateTerminalVirtualAccount: GrpcPromiseServiceInterface<AssignOrCreateTerminalVirtualAccountRequest, TerminalVirtualAccountResponse>;
|
|
3931
3970
|
GetTerminalVirtualAccount: GrpcPromiseServiceInterface<GetTerminalVirtualAccountRequest, TerminalVirtualAccountResponse>;
|
|
3971
|
+
DeactivateTerminalVirtualAccount: GrpcPromiseServiceInterface<DeactivateTerminalVirtualAccountRequest, TerminalVirtualAccountResponse>;
|
|
3932
3972
|
CreditAccount: GrpcPromiseServiceInterface<AccountTransactionRequest, TransactionResponse>;
|
|
3933
3973
|
DebitAccount: GrpcPromiseServiceInterface<AccountTransactionRequest, TransactionResponse>;
|
|
3934
3974
|
BulkTransactions: GrpcPromiseServiceInterface<MultiTransactionRequest, MTransactionResponse>;
|
|
@@ -319,7 +319,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
319
319
|
}
|
|
320
320
|
export class AllTransactionsFilter extends pb_1.Message {
|
|
321
321
|
#private;
|
|
322
|
-
constructor(data?: any[] | {
|
|
322
|
+
constructor(data?: any[] | ({
|
|
323
323
|
terminalId?: string;
|
|
324
324
|
businessId?: string;
|
|
325
325
|
transactionType?: string;
|
|
@@ -332,7 +332,9 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
332
332
|
sortOrder?: string;
|
|
333
333
|
search?: string;
|
|
334
334
|
mfbId?: string;
|
|
335
|
-
}
|
|
335
|
+
} & (({
|
|
336
|
+
returnAll?: boolean;
|
|
337
|
+
}))));
|
|
336
338
|
get terminalId(): string;
|
|
337
339
|
set terminalId(value: string);
|
|
338
340
|
get businessId(): string;
|
|
@@ -357,6 +359,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
357
359
|
set search(value: string);
|
|
358
360
|
get mfbId(): string;
|
|
359
361
|
set mfbId(value: string);
|
|
362
|
+
get returnAll(): boolean;
|
|
363
|
+
set returnAll(value: boolean);
|
|
364
|
+
get hasReturnAll(): boolean;
|
|
365
|
+
get _return_all(): "none" | "returnAll";
|
|
360
366
|
static fromObject(data: {
|
|
361
367
|
terminalId?: string;
|
|
362
368
|
businessId?: string;
|
|
@@ -370,6 +376,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
370
376
|
sortOrder?: string;
|
|
371
377
|
search?: string;
|
|
372
378
|
mfbId?: string;
|
|
379
|
+
returnAll?: boolean;
|
|
373
380
|
}): AllTransactionsFilter;
|
|
374
381
|
toObject(): {
|
|
375
382
|
terminalId?: string | undefined;
|
|
@@ -384,6 +391,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
|
|
|
384
391
|
sortOrder?: string | undefined;
|
|
385
392
|
search?: string | undefined;
|
|
386
393
|
mfbId?: string | undefined;
|
|
394
|
+
returnAll?: boolean | undefined;
|
|
387
395
|
};
|
|
388
396
|
serialize(): Uint8Array;
|
|
389
397
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -1026,6 +1026,7 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1026
1026
|
message?: string;
|
|
1027
1027
|
returnDate?: string;
|
|
1028
1028
|
errors?: string[];
|
|
1029
|
+
data?: UnassignTerminalResponse.Data;
|
|
1029
1030
|
});
|
|
1030
1031
|
get success(): boolean;
|
|
1031
1032
|
set success(value: boolean);
|
|
@@ -1035,17 +1036,29 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1035
1036
|
set returnDate(value: string);
|
|
1036
1037
|
get errors(): string[];
|
|
1037
1038
|
set errors(value: string[]);
|
|
1039
|
+
get data(): UnassignTerminalResponse.Data;
|
|
1040
|
+
set data(value: UnassignTerminalResponse.Data);
|
|
1041
|
+
get hasData(): boolean;
|
|
1038
1042
|
static fromObject(data: {
|
|
1039
1043
|
success?: boolean;
|
|
1040
1044
|
message?: string;
|
|
1041
1045
|
returnDate?: string;
|
|
1042
1046
|
errors?: string[];
|
|
1047
|
+
data?: ReturnType<typeof UnassignTerminalResponse.Data.prototype.toObject>;
|
|
1043
1048
|
}): UnassignTerminalResponse;
|
|
1044
1049
|
toObject(): {
|
|
1045
1050
|
success?: boolean | undefined;
|
|
1046
1051
|
message?: string | undefined;
|
|
1047
1052
|
returnDate?: string | undefined;
|
|
1048
1053
|
errors?: string[] | undefined;
|
|
1054
|
+
data?: {
|
|
1055
|
+
ownerType?: string | undefined;
|
|
1056
|
+
ownerId?: string | undefined;
|
|
1057
|
+
assignmentId?: string | undefined;
|
|
1058
|
+
terminalId?: string | undefined;
|
|
1059
|
+
terminalStatus?: string | undefined;
|
|
1060
|
+
virtualAccountDeactivated?: boolean | undefined;
|
|
1061
|
+
} | undefined;
|
|
1049
1062
|
};
|
|
1050
1063
|
serialize(): Uint8Array;
|
|
1051
1064
|
serialize(w: pb_1.BinaryWriter): void;
|
|
@@ -1053,6 +1066,52 @@ export declare namespace com.pkg.posv1.terminals {
|
|
|
1053
1066
|
serializeBinary(): Uint8Array;
|
|
1054
1067
|
static deserializeBinary(bytes: Uint8Array): UnassignTerminalResponse;
|
|
1055
1068
|
}
|
|
1069
|
+
export namespace UnassignTerminalResponse {
|
|
1070
|
+
class Data extends pb_1.Message {
|
|
1071
|
+
#private;
|
|
1072
|
+
constructor(data?: any[] | {
|
|
1073
|
+
ownerType?: string;
|
|
1074
|
+
ownerId?: string;
|
|
1075
|
+
assignmentId?: string;
|
|
1076
|
+
terminalId?: string;
|
|
1077
|
+
terminalStatus?: string;
|
|
1078
|
+
virtualAccountDeactivated?: boolean;
|
|
1079
|
+
});
|
|
1080
|
+
get ownerType(): string;
|
|
1081
|
+
set ownerType(value: string);
|
|
1082
|
+
get ownerId(): string;
|
|
1083
|
+
set ownerId(value: string);
|
|
1084
|
+
get assignmentId(): string;
|
|
1085
|
+
set assignmentId(value: string);
|
|
1086
|
+
get terminalId(): string;
|
|
1087
|
+
set terminalId(value: string);
|
|
1088
|
+
get terminalStatus(): string;
|
|
1089
|
+
set terminalStatus(value: string);
|
|
1090
|
+
get virtualAccountDeactivated(): boolean;
|
|
1091
|
+
set virtualAccountDeactivated(value: boolean);
|
|
1092
|
+
static fromObject(data: {
|
|
1093
|
+
ownerType?: string;
|
|
1094
|
+
ownerId?: string;
|
|
1095
|
+
assignmentId?: string;
|
|
1096
|
+
terminalId?: string;
|
|
1097
|
+
terminalStatus?: string;
|
|
1098
|
+
virtualAccountDeactivated?: boolean;
|
|
1099
|
+
}): Data;
|
|
1100
|
+
toObject(): {
|
|
1101
|
+
ownerType?: string | undefined;
|
|
1102
|
+
ownerId?: string | undefined;
|
|
1103
|
+
assignmentId?: string | undefined;
|
|
1104
|
+
terminalId?: string | undefined;
|
|
1105
|
+
terminalStatus?: string | undefined;
|
|
1106
|
+
virtualAccountDeactivated?: boolean | undefined;
|
|
1107
|
+
};
|
|
1108
|
+
serialize(): Uint8Array;
|
|
1109
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1110
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Data;
|
|
1111
|
+
serializeBinary(): Uint8Array;
|
|
1112
|
+
static deserializeBinary(bytes: Uint8Array): Data;
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1056
1115
|
export class GetTerminalAssignmentRequest extends pb_1.Message {
|
|
1057
1116
|
#private;
|
|
1058
1117
|
constructor(data?: any[] | {
|