@technova-tech/olive-proto-lib 2.1.0 → 2.3.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 +125 -0
- package/business/business.js +1236 -0
- package/package.json +1 -1
- package/pos.v1/terminals.js +185 -0
- package/types/accounts/accounts.d.ts +40 -0
- package/types/business/business.d.ts +381 -0
- package/types/pos.v1/terminals.d.ts +59 -0
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;
|