@technova-tech/olive-proto-lib 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -19
- package/package.json +1 -1
- package/pos.v1/terminals.js +445 -0
- package/types/pos.v1/terminals.d.ts +126 -0
- package/google/protobuf/any.js +0 -113
- package/google/protobuf/struct.js +0 -357
- package/types/google/protobuf/any.d.ts +0 -27
- package/types/google/protobuf/struct.d.ts +0 -175
package/index.js
CHANGED
|
@@ -22,25 +22,9 @@ const card_transactions_1 = require("./pos.v1/card-transactions");
|
|
|
22
22
|
const terminals_1 = require("./pos.v1/terminals");
|
|
23
23
|
const proto = {
|
|
24
24
|
import: {
|
|
25
|
-
admin: admin_1.com,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
user: users_1.com,
|
|
29
|
-
verification: verifications_1.com,
|
|
30
|
-
bills: bills_1.com,
|
|
31
|
-
image: recognition_1.com,
|
|
32
|
-
storage: storage_1.com,
|
|
33
|
-
transfer: transfer_1.com,
|
|
34
|
-
business: business_1.com,
|
|
35
|
-
pos_transactions: transactions_1.com,
|
|
36
|
-
pov1Transaction: transactions_2.com,
|
|
37
|
-
pov1Auth: auth_1.com,
|
|
38
|
-
pov1Merchants: merchants_1.com,
|
|
39
|
-
pov1Eod: eod_1.com,
|
|
40
|
-
pov1TerminalTypes: terminal_types_1.com,
|
|
41
|
-
pov1Terminals: terminals_1.com,
|
|
42
|
-
pov1TerminalTransactions: terminal_transactions_1.com,
|
|
43
|
-
pov1TerminalCardTransactions: card_transactions_1.com,
|
|
25
|
+
admin: admin_1.com, account: accounts_1.com, audit: audit_1.com, user: users_1.com, verification: verifications_1.com, bills: bills_1.com, image: recognition_1.com, storage: storage_1.com, transfer: transfer_1.com,
|
|
26
|
+
business: business_1.com, pos_transactions: transactions_1.com, pov1Transaction: transactions_2.com, pov1Auth: auth_1.com, pov1Merchants: merchants_1.com, pov1Eod: eod_1.com,
|
|
27
|
+
pov1TerminalTypes: terminal_types_1.com, pov1Terminals: terminals_1.com, pov1TerminalTransactions: terminal_transactions_1.com, pov1TerminalCardTransactions: card_transactions_1.com,
|
|
44
28
|
},
|
|
45
29
|
};
|
|
46
30
|
exports.proto = proto;
|
package/package.json
CHANGED
package/pos.v1/terminals.js
CHANGED
|
@@ -10195,6 +10195,12 @@ var com;
|
|
|
10195
10195
|
if ("sessionExpiresAt" in data && data.sessionExpiresAt != undefined) {
|
|
10196
10196
|
this.sessionExpiresAt = data.sessionExpiresAt;
|
|
10197
10197
|
}
|
|
10198
|
+
if ("ownerType" in data && data.ownerType != undefined) {
|
|
10199
|
+
this.ownerType = data.ownerType;
|
|
10200
|
+
}
|
|
10201
|
+
if ("ownerId" in data && data.ownerId != undefined) {
|
|
10202
|
+
this.ownerId = data.ownerId;
|
|
10203
|
+
}
|
|
10198
10204
|
}
|
|
10199
10205
|
}
|
|
10200
10206
|
get businessContextToken() {
|
|
@@ -10290,6 +10296,18 @@ var com;
|
|
|
10290
10296
|
set sessionExpiresAt(value) {
|
|
10291
10297
|
pb_1.Message.setField(this, 14, value);
|
|
10292
10298
|
}
|
|
10299
|
+
get ownerType() {
|
|
10300
|
+
return pb_1.Message.getFieldWithDefault(this, 15, "");
|
|
10301
|
+
}
|
|
10302
|
+
set ownerType(value) {
|
|
10303
|
+
pb_1.Message.setField(this, 15, value);
|
|
10304
|
+
}
|
|
10305
|
+
get ownerId() {
|
|
10306
|
+
return pb_1.Message.getFieldWithDefault(this, 16, "");
|
|
10307
|
+
}
|
|
10308
|
+
set ownerId(value) {
|
|
10309
|
+
pb_1.Message.setField(this, 16, value);
|
|
10310
|
+
}
|
|
10293
10311
|
static fromObject(data) {
|
|
10294
10312
|
const message = new BusinessContextData({});
|
|
10295
10313
|
if (data.businessContextToken != null) {
|
|
@@ -10334,6 +10352,12 @@ var com;
|
|
|
10334
10352
|
if (data.sessionExpiresAt != null) {
|
|
10335
10353
|
message.sessionExpiresAt = data.sessionExpiresAt;
|
|
10336
10354
|
}
|
|
10355
|
+
if (data.ownerType != null) {
|
|
10356
|
+
message.ownerType = data.ownerType;
|
|
10357
|
+
}
|
|
10358
|
+
if (data.ownerId != null) {
|
|
10359
|
+
message.ownerId = data.ownerId;
|
|
10360
|
+
}
|
|
10337
10361
|
return message;
|
|
10338
10362
|
}
|
|
10339
10363
|
toObject() {
|
|
@@ -10380,6 +10404,12 @@ var com;
|
|
|
10380
10404
|
if (this.sessionExpiresAt != null) {
|
|
10381
10405
|
data.sessionExpiresAt = this.sessionExpiresAt;
|
|
10382
10406
|
}
|
|
10407
|
+
if (this.ownerType != null) {
|
|
10408
|
+
data.ownerType = this.ownerType;
|
|
10409
|
+
}
|
|
10410
|
+
if (this.ownerId != null) {
|
|
10411
|
+
data.ownerId = this.ownerId;
|
|
10412
|
+
}
|
|
10383
10413
|
return data;
|
|
10384
10414
|
}
|
|
10385
10415
|
serialize(w) {
|
|
@@ -10412,6 +10442,10 @@ var com;
|
|
|
10412
10442
|
writer.writeString(13, this.tokenExpiresAt);
|
|
10413
10443
|
if (this.sessionExpiresAt.length)
|
|
10414
10444
|
writer.writeString(14, this.sessionExpiresAt);
|
|
10445
|
+
if (this.ownerType.length)
|
|
10446
|
+
writer.writeString(15, this.ownerType);
|
|
10447
|
+
if (this.ownerId.length)
|
|
10448
|
+
writer.writeString(16, this.ownerId);
|
|
10415
10449
|
if (!w)
|
|
10416
10450
|
return writer.getResultBuffer();
|
|
10417
10451
|
}
|
|
@@ -10463,6 +10497,12 @@ var com;
|
|
|
10463
10497
|
case 14:
|
|
10464
10498
|
message.sessionExpiresAt = reader.readString();
|
|
10465
10499
|
break;
|
|
10500
|
+
case 15:
|
|
10501
|
+
message.ownerType = reader.readString();
|
|
10502
|
+
break;
|
|
10503
|
+
case 16:
|
|
10504
|
+
message.ownerId = reader.readString();
|
|
10505
|
+
break;
|
|
10466
10506
|
default: reader.skipField();
|
|
10467
10507
|
}
|
|
10468
10508
|
}
|
|
@@ -30997,6 +31037,386 @@ var com;
|
|
|
30997
31037
|
}
|
|
30998
31038
|
}
|
|
30999
31039
|
terminals.GetMfbTerminalsResponse = GetMfbTerminalsResponse;
|
|
31040
|
+
class ProvisionMerchantBranchTerminalRequest extends pb_1.Message {
|
|
31041
|
+
#one_of_decls = [];
|
|
31042
|
+
constructor(data) {
|
|
31043
|
+
super();
|
|
31044
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
31045
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
31046
|
+
if ("serialNumber" in data && data.serialNumber != undefined) {
|
|
31047
|
+
this.serialNumber = data.serialNumber;
|
|
31048
|
+
}
|
|
31049
|
+
if ("merchantId" in data && data.merchantId != undefined) {
|
|
31050
|
+
this.merchantId = data.merchantId;
|
|
31051
|
+
}
|
|
31052
|
+
if ("branchId" in data && data.branchId != undefined) {
|
|
31053
|
+
this.branchId = data.branchId;
|
|
31054
|
+
}
|
|
31055
|
+
if ("merchantName" in data && data.merchantName != undefined) {
|
|
31056
|
+
this.merchantName = data.merchantName;
|
|
31057
|
+
}
|
|
31058
|
+
if ("merchantAccountNumber" in data && data.merchantAccountNumber != undefined) {
|
|
31059
|
+
this.merchantAccountNumber = data.merchantAccountNumber;
|
|
31060
|
+
}
|
|
31061
|
+
if ("bvn" in data && data.bvn != undefined) {
|
|
31062
|
+
this.bvn = data.bvn;
|
|
31063
|
+
}
|
|
31064
|
+
if ("assignedBy" in data && data.assignedBy != undefined) {
|
|
31065
|
+
this.assignedBy = data.assignedBy;
|
|
31066
|
+
}
|
|
31067
|
+
if ("phoneNumber" in data && data.phoneNumber != undefined) {
|
|
31068
|
+
this.phoneNumber = data.phoneNumber;
|
|
31069
|
+
}
|
|
31070
|
+
if ("assignmentReason" in data && data.assignmentReason != undefined) {
|
|
31071
|
+
this.assignmentReason = data.assignmentReason;
|
|
31072
|
+
}
|
|
31073
|
+
if ("auditContext" in data && data.auditContext != undefined) {
|
|
31074
|
+
this.auditContext = data.auditContext;
|
|
31075
|
+
}
|
|
31076
|
+
}
|
|
31077
|
+
}
|
|
31078
|
+
get serialNumber() {
|
|
31079
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
31080
|
+
}
|
|
31081
|
+
set serialNumber(value) {
|
|
31082
|
+
pb_1.Message.setField(this, 1, value);
|
|
31083
|
+
}
|
|
31084
|
+
get merchantId() {
|
|
31085
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
31086
|
+
}
|
|
31087
|
+
set merchantId(value) {
|
|
31088
|
+
pb_1.Message.setField(this, 2, value);
|
|
31089
|
+
}
|
|
31090
|
+
get branchId() {
|
|
31091
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
31092
|
+
}
|
|
31093
|
+
set branchId(value) {
|
|
31094
|
+
pb_1.Message.setField(this, 3, value);
|
|
31095
|
+
}
|
|
31096
|
+
get merchantName() {
|
|
31097
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
31098
|
+
}
|
|
31099
|
+
set merchantName(value) {
|
|
31100
|
+
pb_1.Message.setField(this, 4, value);
|
|
31101
|
+
}
|
|
31102
|
+
get merchantAccountNumber() {
|
|
31103
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
31104
|
+
}
|
|
31105
|
+
set merchantAccountNumber(value) {
|
|
31106
|
+
pb_1.Message.setField(this, 5, value);
|
|
31107
|
+
}
|
|
31108
|
+
get bvn() {
|
|
31109
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
31110
|
+
}
|
|
31111
|
+
set bvn(value) {
|
|
31112
|
+
pb_1.Message.setField(this, 6, value);
|
|
31113
|
+
}
|
|
31114
|
+
get assignedBy() {
|
|
31115
|
+
return pb_1.Message.getFieldWithDefault(this, 7, "");
|
|
31116
|
+
}
|
|
31117
|
+
set assignedBy(value) {
|
|
31118
|
+
pb_1.Message.setField(this, 7, value);
|
|
31119
|
+
}
|
|
31120
|
+
get phoneNumber() {
|
|
31121
|
+
return pb_1.Message.getFieldWithDefault(this, 8, "");
|
|
31122
|
+
}
|
|
31123
|
+
set phoneNumber(value) {
|
|
31124
|
+
pb_1.Message.setField(this, 8, value);
|
|
31125
|
+
}
|
|
31126
|
+
get assignmentReason() {
|
|
31127
|
+
return pb_1.Message.getFieldWithDefault(this, 9, "");
|
|
31128
|
+
}
|
|
31129
|
+
set assignmentReason(value) {
|
|
31130
|
+
pb_1.Message.setField(this, 9, value);
|
|
31131
|
+
}
|
|
31132
|
+
get auditContext() {
|
|
31133
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
31134
|
+
}
|
|
31135
|
+
set auditContext(value) {
|
|
31136
|
+
pb_1.Message.setField(this, 10, value);
|
|
31137
|
+
}
|
|
31138
|
+
static fromObject(data) {
|
|
31139
|
+
const message = new ProvisionMerchantBranchTerminalRequest({});
|
|
31140
|
+
if (data.serialNumber != null) {
|
|
31141
|
+
message.serialNumber = data.serialNumber;
|
|
31142
|
+
}
|
|
31143
|
+
if (data.merchantId != null) {
|
|
31144
|
+
message.merchantId = data.merchantId;
|
|
31145
|
+
}
|
|
31146
|
+
if (data.branchId != null) {
|
|
31147
|
+
message.branchId = data.branchId;
|
|
31148
|
+
}
|
|
31149
|
+
if (data.merchantName != null) {
|
|
31150
|
+
message.merchantName = data.merchantName;
|
|
31151
|
+
}
|
|
31152
|
+
if (data.merchantAccountNumber != null) {
|
|
31153
|
+
message.merchantAccountNumber = data.merchantAccountNumber;
|
|
31154
|
+
}
|
|
31155
|
+
if (data.bvn != null) {
|
|
31156
|
+
message.bvn = data.bvn;
|
|
31157
|
+
}
|
|
31158
|
+
if (data.assignedBy != null) {
|
|
31159
|
+
message.assignedBy = data.assignedBy;
|
|
31160
|
+
}
|
|
31161
|
+
if (data.phoneNumber != null) {
|
|
31162
|
+
message.phoneNumber = data.phoneNumber;
|
|
31163
|
+
}
|
|
31164
|
+
if (data.assignmentReason != null) {
|
|
31165
|
+
message.assignmentReason = data.assignmentReason;
|
|
31166
|
+
}
|
|
31167
|
+
if (data.auditContext != null) {
|
|
31168
|
+
message.auditContext = data.auditContext;
|
|
31169
|
+
}
|
|
31170
|
+
return message;
|
|
31171
|
+
}
|
|
31172
|
+
toObject() {
|
|
31173
|
+
const data = {};
|
|
31174
|
+
if (this.serialNumber != null) {
|
|
31175
|
+
data.serialNumber = this.serialNumber;
|
|
31176
|
+
}
|
|
31177
|
+
if (this.merchantId != null) {
|
|
31178
|
+
data.merchantId = this.merchantId;
|
|
31179
|
+
}
|
|
31180
|
+
if (this.branchId != null) {
|
|
31181
|
+
data.branchId = this.branchId;
|
|
31182
|
+
}
|
|
31183
|
+
if (this.merchantName != null) {
|
|
31184
|
+
data.merchantName = this.merchantName;
|
|
31185
|
+
}
|
|
31186
|
+
if (this.merchantAccountNumber != null) {
|
|
31187
|
+
data.merchantAccountNumber = this.merchantAccountNumber;
|
|
31188
|
+
}
|
|
31189
|
+
if (this.bvn != null) {
|
|
31190
|
+
data.bvn = this.bvn;
|
|
31191
|
+
}
|
|
31192
|
+
if (this.assignedBy != null) {
|
|
31193
|
+
data.assignedBy = this.assignedBy;
|
|
31194
|
+
}
|
|
31195
|
+
if (this.phoneNumber != null) {
|
|
31196
|
+
data.phoneNumber = this.phoneNumber;
|
|
31197
|
+
}
|
|
31198
|
+
if (this.assignmentReason != null) {
|
|
31199
|
+
data.assignmentReason = this.assignmentReason;
|
|
31200
|
+
}
|
|
31201
|
+
if (this.auditContext != null) {
|
|
31202
|
+
data.auditContext = this.auditContext;
|
|
31203
|
+
}
|
|
31204
|
+
return data;
|
|
31205
|
+
}
|
|
31206
|
+
serialize(w) {
|
|
31207
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
31208
|
+
if (this.serialNumber.length)
|
|
31209
|
+
writer.writeString(1, this.serialNumber);
|
|
31210
|
+
if (this.merchantId.length)
|
|
31211
|
+
writer.writeString(2, this.merchantId);
|
|
31212
|
+
if (this.branchId.length)
|
|
31213
|
+
writer.writeString(3, this.branchId);
|
|
31214
|
+
if (this.merchantName.length)
|
|
31215
|
+
writer.writeString(4, this.merchantName);
|
|
31216
|
+
if (this.merchantAccountNumber.length)
|
|
31217
|
+
writer.writeString(5, this.merchantAccountNumber);
|
|
31218
|
+
if (this.bvn.length)
|
|
31219
|
+
writer.writeString(6, this.bvn);
|
|
31220
|
+
if (this.assignedBy.length)
|
|
31221
|
+
writer.writeString(7, this.assignedBy);
|
|
31222
|
+
if (this.phoneNumber.length)
|
|
31223
|
+
writer.writeString(8, this.phoneNumber);
|
|
31224
|
+
if (this.assignmentReason.length)
|
|
31225
|
+
writer.writeString(9, this.assignmentReason);
|
|
31226
|
+
if (this.auditContext.length)
|
|
31227
|
+
writer.writeString(10, this.auditContext);
|
|
31228
|
+
if (!w)
|
|
31229
|
+
return writer.getResultBuffer();
|
|
31230
|
+
}
|
|
31231
|
+
static deserialize(bytes) {
|
|
31232
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ProvisionMerchantBranchTerminalRequest();
|
|
31233
|
+
while (reader.nextField()) {
|
|
31234
|
+
if (reader.isEndGroup())
|
|
31235
|
+
break;
|
|
31236
|
+
switch (reader.getFieldNumber()) {
|
|
31237
|
+
case 1:
|
|
31238
|
+
message.serialNumber = reader.readString();
|
|
31239
|
+
break;
|
|
31240
|
+
case 2:
|
|
31241
|
+
message.merchantId = reader.readString();
|
|
31242
|
+
break;
|
|
31243
|
+
case 3:
|
|
31244
|
+
message.branchId = reader.readString();
|
|
31245
|
+
break;
|
|
31246
|
+
case 4:
|
|
31247
|
+
message.merchantName = reader.readString();
|
|
31248
|
+
break;
|
|
31249
|
+
case 5:
|
|
31250
|
+
message.merchantAccountNumber = reader.readString();
|
|
31251
|
+
break;
|
|
31252
|
+
case 6:
|
|
31253
|
+
message.bvn = reader.readString();
|
|
31254
|
+
break;
|
|
31255
|
+
case 7:
|
|
31256
|
+
message.assignedBy = reader.readString();
|
|
31257
|
+
break;
|
|
31258
|
+
case 8:
|
|
31259
|
+
message.phoneNumber = reader.readString();
|
|
31260
|
+
break;
|
|
31261
|
+
case 9:
|
|
31262
|
+
message.assignmentReason = reader.readString();
|
|
31263
|
+
break;
|
|
31264
|
+
case 10:
|
|
31265
|
+
message.auditContext = reader.readString();
|
|
31266
|
+
break;
|
|
31267
|
+
default: reader.skipField();
|
|
31268
|
+
}
|
|
31269
|
+
}
|
|
31270
|
+
return message;
|
|
31271
|
+
}
|
|
31272
|
+
serializeBinary() {
|
|
31273
|
+
return this.serialize();
|
|
31274
|
+
}
|
|
31275
|
+
static deserializeBinary(bytes) {
|
|
31276
|
+
return ProvisionMerchantBranchTerminalRequest.deserialize(bytes);
|
|
31277
|
+
}
|
|
31278
|
+
}
|
|
31279
|
+
terminals.ProvisionMerchantBranchTerminalRequest = ProvisionMerchantBranchTerminalRequest;
|
|
31280
|
+
class ProvisionMerchantBranchTerminalResponse extends pb_1.Message {
|
|
31281
|
+
#one_of_decls = [];
|
|
31282
|
+
constructor(data) {
|
|
31283
|
+
super();
|
|
31284
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
31285
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
31286
|
+
if ("success" in data && data.success != undefined) {
|
|
31287
|
+
this.success = data.success;
|
|
31288
|
+
}
|
|
31289
|
+
if ("message" in data && data.message != undefined) {
|
|
31290
|
+
this.message = data.message;
|
|
31291
|
+
}
|
|
31292
|
+
if ("terminalInstanceId" in data && data.terminalInstanceId != undefined) {
|
|
31293
|
+
this.terminalInstanceId = data.terminalInstanceId;
|
|
31294
|
+
}
|
|
31295
|
+
if ("processorTid" in data && data.processorTid != undefined) {
|
|
31296
|
+
this.processorTid = data.processorTid;
|
|
31297
|
+
}
|
|
31298
|
+
if ("virtualAccountId" in data && data.virtualAccountId != undefined) {
|
|
31299
|
+
this.virtualAccountId = data.virtualAccountId;
|
|
31300
|
+
}
|
|
31301
|
+
}
|
|
31302
|
+
}
|
|
31303
|
+
get success() {
|
|
31304
|
+
return pb_1.Message.getFieldWithDefault(this, 1, false);
|
|
31305
|
+
}
|
|
31306
|
+
set success(value) {
|
|
31307
|
+
pb_1.Message.setField(this, 1, value);
|
|
31308
|
+
}
|
|
31309
|
+
get message() {
|
|
31310
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
31311
|
+
}
|
|
31312
|
+
set message(value) {
|
|
31313
|
+
pb_1.Message.setField(this, 2, value);
|
|
31314
|
+
}
|
|
31315
|
+
get terminalInstanceId() {
|
|
31316
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
31317
|
+
}
|
|
31318
|
+
set terminalInstanceId(value) {
|
|
31319
|
+
pb_1.Message.setField(this, 3, value);
|
|
31320
|
+
}
|
|
31321
|
+
get processorTid() {
|
|
31322
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
31323
|
+
}
|
|
31324
|
+
set processorTid(value) {
|
|
31325
|
+
pb_1.Message.setField(this, 4, value);
|
|
31326
|
+
}
|
|
31327
|
+
get virtualAccountId() {
|
|
31328
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
31329
|
+
}
|
|
31330
|
+
set virtualAccountId(value) {
|
|
31331
|
+
pb_1.Message.setField(this, 5, value);
|
|
31332
|
+
}
|
|
31333
|
+
static fromObject(data) {
|
|
31334
|
+
const message = new ProvisionMerchantBranchTerminalResponse({});
|
|
31335
|
+
if (data.success != null) {
|
|
31336
|
+
message.success = data.success;
|
|
31337
|
+
}
|
|
31338
|
+
if (data.message != null) {
|
|
31339
|
+
message.message = data.message;
|
|
31340
|
+
}
|
|
31341
|
+
if (data.terminalInstanceId != null) {
|
|
31342
|
+
message.terminalInstanceId = data.terminalInstanceId;
|
|
31343
|
+
}
|
|
31344
|
+
if (data.processorTid != null) {
|
|
31345
|
+
message.processorTid = data.processorTid;
|
|
31346
|
+
}
|
|
31347
|
+
if (data.virtualAccountId != null) {
|
|
31348
|
+
message.virtualAccountId = data.virtualAccountId;
|
|
31349
|
+
}
|
|
31350
|
+
return message;
|
|
31351
|
+
}
|
|
31352
|
+
toObject() {
|
|
31353
|
+
const data = {};
|
|
31354
|
+
if (this.success != null) {
|
|
31355
|
+
data.success = this.success;
|
|
31356
|
+
}
|
|
31357
|
+
if (this.message != null) {
|
|
31358
|
+
data.message = this.message;
|
|
31359
|
+
}
|
|
31360
|
+
if (this.terminalInstanceId != null) {
|
|
31361
|
+
data.terminalInstanceId = this.terminalInstanceId;
|
|
31362
|
+
}
|
|
31363
|
+
if (this.processorTid != null) {
|
|
31364
|
+
data.processorTid = this.processorTid;
|
|
31365
|
+
}
|
|
31366
|
+
if (this.virtualAccountId != null) {
|
|
31367
|
+
data.virtualAccountId = this.virtualAccountId;
|
|
31368
|
+
}
|
|
31369
|
+
return data;
|
|
31370
|
+
}
|
|
31371
|
+
serialize(w) {
|
|
31372
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
31373
|
+
if (this.success != false)
|
|
31374
|
+
writer.writeBool(1, this.success);
|
|
31375
|
+
if (this.message.length)
|
|
31376
|
+
writer.writeString(2, this.message);
|
|
31377
|
+
if (this.terminalInstanceId.length)
|
|
31378
|
+
writer.writeString(3, this.terminalInstanceId);
|
|
31379
|
+
if (this.processorTid.length)
|
|
31380
|
+
writer.writeString(4, this.processorTid);
|
|
31381
|
+
if (this.virtualAccountId.length)
|
|
31382
|
+
writer.writeString(5, this.virtualAccountId);
|
|
31383
|
+
if (!w)
|
|
31384
|
+
return writer.getResultBuffer();
|
|
31385
|
+
}
|
|
31386
|
+
static deserialize(bytes) {
|
|
31387
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ProvisionMerchantBranchTerminalResponse();
|
|
31388
|
+
while (reader.nextField()) {
|
|
31389
|
+
if (reader.isEndGroup())
|
|
31390
|
+
break;
|
|
31391
|
+
switch (reader.getFieldNumber()) {
|
|
31392
|
+
case 1:
|
|
31393
|
+
message.success = reader.readBool();
|
|
31394
|
+
break;
|
|
31395
|
+
case 2:
|
|
31396
|
+
message.message = reader.readString();
|
|
31397
|
+
break;
|
|
31398
|
+
case 3:
|
|
31399
|
+
message.terminalInstanceId = reader.readString();
|
|
31400
|
+
break;
|
|
31401
|
+
case 4:
|
|
31402
|
+
message.processorTid = reader.readString();
|
|
31403
|
+
break;
|
|
31404
|
+
case 5:
|
|
31405
|
+
message.virtualAccountId = reader.readString();
|
|
31406
|
+
break;
|
|
31407
|
+
default: reader.skipField();
|
|
31408
|
+
}
|
|
31409
|
+
}
|
|
31410
|
+
return message;
|
|
31411
|
+
}
|
|
31412
|
+
serializeBinary() {
|
|
31413
|
+
return this.serialize();
|
|
31414
|
+
}
|
|
31415
|
+
static deserializeBinary(bytes) {
|
|
31416
|
+
return ProvisionMerchantBranchTerminalResponse.deserialize(bytes);
|
|
31417
|
+
}
|
|
31418
|
+
}
|
|
31419
|
+
terminals.ProvisionMerchantBranchTerminalResponse = ProvisionMerchantBranchTerminalResponse;
|
|
31000
31420
|
class UnimplementedTerminalServiceService {
|
|
31001
31421
|
static definition = {
|
|
31002
31422
|
AddTerminalInstance: {
|
|
@@ -31592,6 +32012,15 @@ var com;
|
|
|
31592
32012
|
requestDeserialize: (bytes) => GetMfbTerminalsRequest.deserialize(new Uint8Array(bytes)),
|
|
31593
32013
|
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
31594
32014
|
responseDeserialize: (bytes) => GetMfbTerminalsResponse.deserialize(new Uint8Array(bytes))
|
|
32015
|
+
},
|
|
32016
|
+
ProvisionMerchantBranchTerminal: {
|
|
32017
|
+
path: "/com.pkg.posv1.terminals.TerminalService/ProvisionMerchantBranchTerminal",
|
|
32018
|
+
requestStream: false,
|
|
32019
|
+
responseStream: false,
|
|
32020
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
32021
|
+
requestDeserialize: (bytes) => ProvisionMerchantBranchTerminalRequest.deserialize(new Uint8Array(bytes)),
|
|
32022
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
32023
|
+
responseDeserialize: (bytes) => ProvisionMerchantBranchTerminalResponse.deserialize(new Uint8Array(bytes))
|
|
31595
32024
|
}
|
|
31596
32025
|
};
|
|
31597
32026
|
}
|
|
@@ -32656,6 +33085,22 @@ var com;
|
|
|
32656
33085
|
}
|
|
32657
33086
|
}));
|
|
32658
33087
|
};
|
|
33088
|
+
ProvisionMerchantBranchTerminal = (message, metadata, options) => {
|
|
33089
|
+
if (!metadata) {
|
|
33090
|
+
metadata = new grpc_1.Metadata;
|
|
33091
|
+
}
|
|
33092
|
+
if (!options) {
|
|
33093
|
+
options = {};
|
|
33094
|
+
}
|
|
33095
|
+
return new Promise((resolve, reject) => super.ProvisionMerchantBranchTerminal(message, metadata, options, (error, response) => {
|
|
33096
|
+
if (error) {
|
|
33097
|
+
reject(error);
|
|
33098
|
+
}
|
|
33099
|
+
else {
|
|
33100
|
+
resolve(response);
|
|
33101
|
+
}
|
|
33102
|
+
}));
|
|
33103
|
+
};
|
|
32659
33104
|
}
|
|
32660
33105
|
terminals.TerminalServiceClient = TerminalServiceClient;
|
|
32661
33106
|
class UnimplementedBusinessContextServiceService {
|