@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.
@@ -7096,6 +7096,365 @@ export declare namespace com.pkg.business {
7096
7096
  serializeBinary(): Uint8Array;
7097
7097
  static deserializeBinary(bytes: Uint8Array): BusinessIndustryDataResponse;
7098
7098
  }
7099
+ export class MerchantFilterRequest extends pb_1.Message {
7100
+ #private;
7101
+ constructor(data?: any[] | ({
7102
+ id?: string;
7103
+ email?: string;
7104
+ phoneNumber?: string;
7105
+ accountNumber?: string;
7106
+ bvn?: string;
7107
+ nin?: string;
7108
+ businessName?: string;
7109
+ search?: string;
7110
+ from?: string;
7111
+ to?: string;
7112
+ page?: number;
7113
+ limit?: number;
7114
+ sortBy?: string;
7115
+ sortOrder?: string;
7116
+ } & (({
7117
+ isVerified?: boolean;
7118
+ }) | ({
7119
+ isValidated?: boolean;
7120
+ }) | ({
7121
+ isActive?: boolean;
7122
+ }) | ({
7123
+ hasPin?: boolean;
7124
+ }))));
7125
+ get id(): string;
7126
+ set id(value: string);
7127
+ get email(): string;
7128
+ set email(value: string);
7129
+ get phoneNumber(): string;
7130
+ set phoneNumber(value: string);
7131
+ get accountNumber(): string;
7132
+ set accountNumber(value: string);
7133
+ get bvn(): string;
7134
+ set bvn(value: string);
7135
+ get nin(): string;
7136
+ set nin(value: string);
7137
+ get businessName(): string;
7138
+ set businessName(value: string);
7139
+ get isVerified(): boolean;
7140
+ set isVerified(value: boolean);
7141
+ get hasIsVerified(): boolean;
7142
+ get isValidated(): boolean;
7143
+ set isValidated(value: boolean);
7144
+ get hasIsValidated(): boolean;
7145
+ get isActive(): boolean;
7146
+ set isActive(value: boolean);
7147
+ get hasIsActive(): boolean;
7148
+ get hasPin(): boolean;
7149
+ set hasPin(value: boolean);
7150
+ get hasHasPin(): boolean;
7151
+ get search(): string;
7152
+ set search(value: string);
7153
+ get from(): string;
7154
+ set from(value: string);
7155
+ get to(): string;
7156
+ set to(value: string);
7157
+ get page(): number;
7158
+ set page(value: number);
7159
+ get limit(): number;
7160
+ set limit(value: number);
7161
+ get sortBy(): string;
7162
+ set sortBy(value: string);
7163
+ get sortOrder(): string;
7164
+ set sortOrder(value: string);
7165
+ get _is_verified(): "none" | "isVerified";
7166
+ get _is_validated(): "none" | "isValidated";
7167
+ get _is_active(): "none" | "isActive";
7168
+ get _has_pin(): "none" | "hasPin";
7169
+ static fromObject(data: {
7170
+ id?: string;
7171
+ email?: string;
7172
+ phoneNumber?: string;
7173
+ accountNumber?: string;
7174
+ bvn?: string;
7175
+ nin?: string;
7176
+ businessName?: string;
7177
+ isVerified?: boolean;
7178
+ isValidated?: boolean;
7179
+ isActive?: boolean;
7180
+ hasPin?: boolean;
7181
+ search?: string;
7182
+ from?: string;
7183
+ to?: string;
7184
+ page?: number;
7185
+ limit?: number;
7186
+ sortBy?: string;
7187
+ sortOrder?: string;
7188
+ }): MerchantFilterRequest;
7189
+ toObject(): {
7190
+ id?: string | undefined;
7191
+ email?: string | undefined;
7192
+ phoneNumber?: string | undefined;
7193
+ accountNumber?: string | undefined;
7194
+ bvn?: string | undefined;
7195
+ nin?: string | undefined;
7196
+ businessName?: string | undefined;
7197
+ isVerified?: boolean | undefined;
7198
+ isValidated?: boolean | undefined;
7199
+ isActive?: boolean | undefined;
7200
+ hasPin?: boolean | undefined;
7201
+ search?: string | undefined;
7202
+ from?: string | undefined;
7203
+ to?: string | undefined;
7204
+ page?: number | undefined;
7205
+ limit?: number | undefined;
7206
+ sortBy?: string | undefined;
7207
+ sortOrder?: string | undefined;
7208
+ };
7209
+ serialize(): Uint8Array;
7210
+ serialize(w: pb_1.BinaryWriter): void;
7211
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MerchantFilterRequest;
7212
+ serializeBinary(): Uint8Array;
7213
+ static deserializeBinary(bytes: Uint8Array): MerchantFilterRequest;
7214
+ }
7215
+ export class MerchantLookupRequest extends pb_1.Message {
7216
+ #private;
7217
+ constructor(data?: any[] | {
7218
+ id?: string;
7219
+ email?: string;
7220
+ accountNumber?: string;
7221
+ });
7222
+ get id(): string;
7223
+ set id(value: string);
7224
+ get email(): string;
7225
+ set email(value: string);
7226
+ get accountNumber(): string;
7227
+ set accountNumber(value: string);
7228
+ static fromObject(data: {
7229
+ id?: string;
7230
+ email?: string;
7231
+ accountNumber?: string;
7232
+ }): MerchantLookupRequest;
7233
+ toObject(): {
7234
+ id?: string | undefined;
7235
+ email?: string | undefined;
7236
+ accountNumber?: string | undefined;
7237
+ };
7238
+ serialize(): Uint8Array;
7239
+ serialize(w: pb_1.BinaryWriter): void;
7240
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MerchantLookupRequest;
7241
+ serializeBinary(): Uint8Array;
7242
+ static deserializeBinary(bytes: Uint8Array): MerchantLookupRequest;
7243
+ }
7244
+ export class MerchantData extends pb_1.Message {
7245
+ #private;
7246
+ constructor(data?: any[] | {
7247
+ id?: string;
7248
+ email?: string;
7249
+ phoneNumber?: string;
7250
+ businessName?: string;
7251
+ accountNumber?: string;
7252
+ bvn?: string;
7253
+ nin?: string;
7254
+ isVerified?: boolean;
7255
+ isValidated?: boolean;
7256
+ isActive?: boolean;
7257
+ hasPin?: boolean;
7258
+ createdAt?: string;
7259
+ updatedAt?: string;
7260
+ });
7261
+ get id(): string;
7262
+ set id(value: string);
7263
+ get email(): string;
7264
+ set email(value: string);
7265
+ get phoneNumber(): string;
7266
+ set phoneNumber(value: string);
7267
+ get businessName(): string;
7268
+ set businessName(value: string);
7269
+ get accountNumber(): string;
7270
+ set accountNumber(value: string);
7271
+ get bvn(): string;
7272
+ set bvn(value: string);
7273
+ get nin(): string;
7274
+ set nin(value: string);
7275
+ get isVerified(): boolean;
7276
+ set isVerified(value: boolean);
7277
+ get isValidated(): boolean;
7278
+ set isValidated(value: boolean);
7279
+ get isActive(): boolean;
7280
+ set isActive(value: boolean);
7281
+ get hasPin(): boolean;
7282
+ set hasPin(value: boolean);
7283
+ get createdAt(): string;
7284
+ set createdAt(value: string);
7285
+ get updatedAt(): string;
7286
+ set updatedAt(value: string);
7287
+ static fromObject(data: {
7288
+ id?: string;
7289
+ email?: string;
7290
+ phoneNumber?: string;
7291
+ businessName?: string;
7292
+ accountNumber?: string;
7293
+ bvn?: string;
7294
+ nin?: string;
7295
+ isVerified?: boolean;
7296
+ isValidated?: boolean;
7297
+ isActive?: boolean;
7298
+ hasPin?: boolean;
7299
+ createdAt?: string;
7300
+ updatedAt?: string;
7301
+ }): MerchantData;
7302
+ toObject(): {
7303
+ id?: string | undefined;
7304
+ email?: string | undefined;
7305
+ phoneNumber?: string | undefined;
7306
+ businessName?: string | undefined;
7307
+ accountNumber?: string | undefined;
7308
+ bvn?: string | undefined;
7309
+ nin?: string | undefined;
7310
+ isVerified?: boolean | undefined;
7311
+ isValidated?: boolean | undefined;
7312
+ isActive?: boolean | undefined;
7313
+ hasPin?: boolean | undefined;
7314
+ createdAt?: string | undefined;
7315
+ updatedAt?: string | undefined;
7316
+ };
7317
+ serialize(): Uint8Array;
7318
+ serialize(w: pb_1.BinaryWriter): void;
7319
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MerchantData;
7320
+ serializeBinary(): Uint8Array;
7321
+ static deserializeBinary(bytes: Uint8Array): MerchantData;
7322
+ }
7323
+ export class MerchantDataResponse extends pb_1.Message {
7324
+ #private;
7325
+ constructor(data?: any[] | {
7326
+ success?: boolean;
7327
+ status?: string;
7328
+ data?: MerchantData;
7329
+ error?: string;
7330
+ message?: string;
7331
+ errors?: ValidationErrors[];
7332
+ });
7333
+ get success(): boolean;
7334
+ set success(value: boolean);
7335
+ get status(): string;
7336
+ set status(value: string);
7337
+ get data(): MerchantData;
7338
+ set data(value: MerchantData);
7339
+ get hasData(): boolean;
7340
+ get error(): string;
7341
+ set error(value: string);
7342
+ get message(): string;
7343
+ set message(value: string);
7344
+ get errors(): ValidationErrors[];
7345
+ set errors(value: ValidationErrors[]);
7346
+ static fromObject(data: {
7347
+ success?: boolean;
7348
+ status?: string;
7349
+ data?: ReturnType<typeof MerchantData.prototype.toObject>;
7350
+ error?: string;
7351
+ message?: string;
7352
+ errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
7353
+ }): MerchantDataResponse;
7354
+ toObject(): {
7355
+ success?: boolean | undefined;
7356
+ status?: string | undefined;
7357
+ data?: {
7358
+ id?: string | undefined;
7359
+ email?: string | undefined;
7360
+ phoneNumber?: string | undefined;
7361
+ businessName?: string | undefined;
7362
+ accountNumber?: string | undefined;
7363
+ bvn?: string | undefined;
7364
+ nin?: string | undefined;
7365
+ isVerified?: boolean | undefined;
7366
+ isValidated?: boolean | undefined;
7367
+ isActive?: boolean | undefined;
7368
+ hasPin?: boolean | undefined;
7369
+ createdAt?: string | undefined;
7370
+ updatedAt?: string | undefined;
7371
+ } | undefined;
7372
+ error?: string | undefined;
7373
+ message?: string | undefined;
7374
+ errors?: {
7375
+ field?: string | undefined;
7376
+ message?: string | undefined;
7377
+ }[] | undefined;
7378
+ };
7379
+ serialize(): Uint8Array;
7380
+ serialize(w: pb_1.BinaryWriter): void;
7381
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MerchantDataResponse;
7382
+ serializeBinary(): Uint8Array;
7383
+ static deserializeBinary(bytes: Uint8Array): MerchantDataResponse;
7384
+ }
7385
+ export class MMerchantDataResponse extends pb_1.Message {
7386
+ #private;
7387
+ constructor(data?: any[] | {
7388
+ success?: boolean;
7389
+ status?: string;
7390
+ data?: MerchantData[];
7391
+ error?: string;
7392
+ message?: string;
7393
+ pagination?: Pagination;
7394
+ errors?: ValidationErrors[];
7395
+ });
7396
+ get success(): boolean;
7397
+ set success(value: boolean);
7398
+ get status(): string;
7399
+ set status(value: string);
7400
+ get data(): MerchantData[];
7401
+ set data(value: MerchantData[]);
7402
+ get error(): string;
7403
+ set error(value: string);
7404
+ get message(): string;
7405
+ set message(value: string);
7406
+ get pagination(): Pagination;
7407
+ set pagination(value: Pagination);
7408
+ get hasPagination(): boolean;
7409
+ get errors(): ValidationErrors[];
7410
+ set errors(value: ValidationErrors[]);
7411
+ static fromObject(data: {
7412
+ success?: boolean;
7413
+ status?: string;
7414
+ data?: ReturnType<typeof MerchantData.prototype.toObject>[];
7415
+ error?: string;
7416
+ message?: string;
7417
+ pagination?: ReturnType<typeof Pagination.prototype.toObject>;
7418
+ errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
7419
+ }): MMerchantDataResponse;
7420
+ toObject(): {
7421
+ success?: boolean | undefined;
7422
+ status?: string | undefined;
7423
+ data?: {
7424
+ id?: string | undefined;
7425
+ email?: string | undefined;
7426
+ phoneNumber?: string | undefined;
7427
+ businessName?: string | undefined;
7428
+ accountNumber?: string | undefined;
7429
+ bvn?: string | undefined;
7430
+ nin?: string | undefined;
7431
+ isVerified?: boolean | undefined;
7432
+ isValidated?: boolean | undefined;
7433
+ isActive?: boolean | undefined;
7434
+ hasPin?: boolean | undefined;
7435
+ createdAt?: string | undefined;
7436
+ updatedAt?: string | undefined;
7437
+ }[] | undefined;
7438
+ error?: string | undefined;
7439
+ message?: string | undefined;
7440
+ pagination?: {
7441
+ page?: number | undefined;
7442
+ limit?: number | undefined;
7443
+ total?: number | undefined;
7444
+ hasNext?: boolean | undefined;
7445
+ hasPrev?: boolean | undefined;
7446
+ } | undefined;
7447
+ errors?: {
7448
+ field?: string | undefined;
7449
+ message?: string | undefined;
7450
+ }[] | undefined;
7451
+ };
7452
+ serialize(): Uint8Array;
7453
+ serialize(w: pb_1.BinaryWriter): void;
7454
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MMerchantDataResponse;
7455
+ serializeBinary(): Uint8Array;
7456
+ static deserializeBinary(bytes: Uint8Array): MMerchantDataResponse;
7457
+ }
7099
7458
  interface GrpcPromiseServiceInterface<P, R> {
7100
7459
  (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
7101
7460
  (message: P, options?: grpc_1.CallOptions): Promise<R>;
@@ -7525,6 +7884,24 @@ export declare namespace com.pkg.business {
7525
7884
  responseSerialize: (message: BusinessIndustryDataResponse) => Buffer;
7526
7885
  responseDeserialize: (bytes: Buffer) => BusinessIndustryDataResponse;
7527
7886
  };
7887
+ GetMerchants: {
7888
+ path: string;
7889
+ requestStream: boolean;
7890
+ responseStream: boolean;
7891
+ requestSerialize: (message: MerchantFilterRequest) => Buffer;
7892
+ requestDeserialize: (bytes: Buffer) => MerchantFilterRequest;
7893
+ responseSerialize: (message: MMerchantDataResponse) => Buffer;
7894
+ responseDeserialize: (bytes: Buffer) => MMerchantDataResponse;
7895
+ };
7896
+ GetMerchant: {
7897
+ path: string;
7898
+ requestStream: boolean;
7899
+ responseStream: boolean;
7900
+ requestSerialize: (message: MerchantLookupRequest) => Buffer;
7901
+ requestDeserialize: (bytes: Buffer) => MerchantLookupRequest;
7902
+ responseSerialize: (message: MerchantDataResponse) => Buffer;
7903
+ responseDeserialize: (bytes: Buffer) => MerchantDataResponse;
7904
+ };
7528
7905
  };
7529
7906
  [method: string]: grpc_1.UntypedHandleCall;
7530
7907
  abstract CreateBusiness(call: grpc_1.ServerUnaryCall<CreateBusinessRequest, BusinessDataResponse>, callback: grpc_1.sendUnaryData<BusinessDataResponse>): void;
@@ -7574,6 +7951,8 @@ export declare namespace com.pkg.business {
7574
7951
  abstract UpdateTerminalType(call: grpc_1.ServerUnaryCall<AddTerminalTypeRequest, TerminalTypeDataResponse>, callback: grpc_1.sendUnaryData<TerminalTypeDataResponse>): void;
7575
7952
  abstract DeleteTerminalType(call: grpc_1.ServerUnaryCall<AddTerminalTypeRequest, TerminalTypeDataResponse>, callback: grpc_1.sendUnaryData<TerminalTypeDataResponse>): void;
7576
7953
  abstract GetBusinessIndustries(call: grpc_1.ServerUnaryCall<PaginatedRequest, BusinessIndustryDataResponse>, callback: grpc_1.sendUnaryData<BusinessIndustryDataResponse>): void;
7954
+ abstract GetMerchants(call: grpc_1.ServerUnaryCall<MerchantFilterRequest, MMerchantDataResponse>, callback: grpc_1.sendUnaryData<MMerchantDataResponse>): void;
7955
+ abstract GetMerchant(call: grpc_1.ServerUnaryCall<MerchantLookupRequest, MerchantDataResponse>, callback: grpc_1.sendUnaryData<MerchantDataResponse>): void;
7577
7956
  }
7578
7957
  const BusinessClient_base: grpc_1.ServiceClientConstructor;
7579
7958
  export class BusinessClient extends BusinessClient_base {
@@ -7625,6 +8004,8 @@ export declare namespace com.pkg.business {
7625
8004
  UpdateTerminalType: GrpcPromiseServiceInterface<AddTerminalTypeRequest, TerminalTypeDataResponse>;
7626
8005
  DeleteTerminalType: GrpcPromiseServiceInterface<AddTerminalTypeRequest, TerminalTypeDataResponse>;
7627
8006
  GetBusinessIndustries: GrpcPromiseServiceInterface<PaginatedRequest, BusinessIndustryDataResponse>;
8007
+ GetMerchants: GrpcPromiseServiceInterface<MerchantFilterRequest, MMerchantDataResponse>;
8008
+ GetMerchant: GrpcPromiseServiceInterface<MerchantLookupRequest, MerchantDataResponse>;
7628
8009
  }
7629
8010
  export {};
7630
8011
  }
@@ -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[] | {