@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/package.json
CHANGED
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>;
|