@technova-tech/olive-proto-lib 2.3.3 → 2.4.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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "2.3.3",
14
+ "version": "2.4.1",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -3543,6 +3543,370 @@ export declare namespace com.pkg.account {
3543
3543
  serializeBinary(): Uint8Array;
3544
3544
  static deserializeBinary(bytes: Uint8Array): MultiChargesResponse;
3545
3545
  }
3546
+ export class PayoutLogData extends pb_1.Message {
3547
+ #private;
3548
+ constructor(data?: any[] | {
3549
+ id?: string;
3550
+ transactionId?: string;
3551
+ terminalId?: string;
3552
+ ownerType?: string;
3553
+ ownerId?: string;
3554
+ merchantId?: string;
3555
+ branchId?: string;
3556
+ amount?: number;
3557
+ netAmount?: number;
3558
+ destinationBankCode?: string;
3559
+ destinationAccountNumber?: string;
3560
+ status?: string;
3561
+ payoutReference?: string;
3562
+ responseCode?: string;
3563
+ responseMessage?: string;
3564
+ failureReason?: string;
3565
+ attempts?: number;
3566
+ createdAt?: string;
3567
+ updatedAt?: string;
3568
+ });
3569
+ get id(): string;
3570
+ set id(value: string);
3571
+ get transactionId(): string;
3572
+ set transactionId(value: string);
3573
+ get terminalId(): string;
3574
+ set terminalId(value: string);
3575
+ get ownerType(): string;
3576
+ set ownerType(value: string);
3577
+ get ownerId(): string;
3578
+ set ownerId(value: string);
3579
+ get merchantId(): string;
3580
+ set merchantId(value: string);
3581
+ get branchId(): string;
3582
+ set branchId(value: string);
3583
+ get amount(): number;
3584
+ set amount(value: number);
3585
+ get netAmount(): number;
3586
+ set netAmount(value: number);
3587
+ get destinationBankCode(): string;
3588
+ set destinationBankCode(value: string);
3589
+ get destinationAccountNumber(): string;
3590
+ set destinationAccountNumber(value: string);
3591
+ get status(): string;
3592
+ set status(value: string);
3593
+ get payoutReference(): string;
3594
+ set payoutReference(value: string);
3595
+ get responseCode(): string;
3596
+ set responseCode(value: string);
3597
+ get responseMessage(): string;
3598
+ set responseMessage(value: string);
3599
+ get failureReason(): string;
3600
+ set failureReason(value: string);
3601
+ get attempts(): number;
3602
+ set attempts(value: number);
3603
+ get createdAt(): string;
3604
+ set createdAt(value: string);
3605
+ get updatedAt(): string;
3606
+ set updatedAt(value: string);
3607
+ static fromObject(data: {
3608
+ id?: string;
3609
+ transactionId?: string;
3610
+ terminalId?: string;
3611
+ ownerType?: string;
3612
+ ownerId?: string;
3613
+ merchantId?: string;
3614
+ branchId?: string;
3615
+ amount?: number;
3616
+ netAmount?: number;
3617
+ destinationBankCode?: string;
3618
+ destinationAccountNumber?: string;
3619
+ status?: string;
3620
+ payoutReference?: string;
3621
+ responseCode?: string;
3622
+ responseMessage?: string;
3623
+ failureReason?: string;
3624
+ attempts?: number;
3625
+ createdAt?: string;
3626
+ updatedAt?: string;
3627
+ }): PayoutLogData;
3628
+ toObject(): {
3629
+ id?: string | undefined;
3630
+ transactionId?: string | undefined;
3631
+ terminalId?: string | undefined;
3632
+ ownerType?: string | undefined;
3633
+ ownerId?: string | undefined;
3634
+ merchantId?: string | undefined;
3635
+ branchId?: string | undefined;
3636
+ amount?: number | undefined;
3637
+ netAmount?: number | undefined;
3638
+ destinationBankCode?: string | undefined;
3639
+ destinationAccountNumber?: string | undefined;
3640
+ status?: string | undefined;
3641
+ payoutReference?: string | undefined;
3642
+ responseCode?: string | undefined;
3643
+ responseMessage?: string | undefined;
3644
+ failureReason?: string | undefined;
3645
+ attempts?: number | undefined;
3646
+ createdAt?: string | undefined;
3647
+ updatedAt?: string | undefined;
3648
+ };
3649
+ serialize(): Uint8Array;
3650
+ serialize(w: pb_1.BinaryWriter): void;
3651
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PayoutLogData;
3652
+ serializeBinary(): Uint8Array;
3653
+ static deserializeBinary(bytes: Uint8Array): PayoutLogData;
3654
+ }
3655
+ export class FetchPayoutLogsRequest extends pb_1.Message {
3656
+ #private;
3657
+ constructor(data?: any[] | {
3658
+ searchQuery?: string;
3659
+ status?: string[];
3660
+ terminalId?: string;
3661
+ ownerId?: string;
3662
+ merchantId?: string;
3663
+ from?: string;
3664
+ to?: string;
3665
+ limit?: number;
3666
+ page?: number;
3667
+ });
3668
+ get searchQuery(): string;
3669
+ set searchQuery(value: string);
3670
+ get status(): string[];
3671
+ set status(value: string[]);
3672
+ get terminalId(): string;
3673
+ set terminalId(value: string);
3674
+ get ownerId(): string;
3675
+ set ownerId(value: string);
3676
+ get merchantId(): string;
3677
+ set merchantId(value: string);
3678
+ get from(): string;
3679
+ set from(value: string);
3680
+ get to(): string;
3681
+ set to(value: string);
3682
+ get limit(): number;
3683
+ set limit(value: number);
3684
+ get page(): number;
3685
+ set page(value: number);
3686
+ static fromObject(data: {
3687
+ searchQuery?: string;
3688
+ status?: string[];
3689
+ terminalId?: string;
3690
+ ownerId?: string;
3691
+ merchantId?: string;
3692
+ from?: string;
3693
+ to?: string;
3694
+ limit?: number;
3695
+ page?: number;
3696
+ }): FetchPayoutLogsRequest;
3697
+ toObject(): {
3698
+ searchQuery?: string | undefined;
3699
+ status?: string[] | undefined;
3700
+ terminalId?: string | undefined;
3701
+ ownerId?: string | undefined;
3702
+ merchantId?: string | undefined;
3703
+ from?: string | undefined;
3704
+ to?: string | undefined;
3705
+ limit?: number | undefined;
3706
+ page?: number | undefined;
3707
+ };
3708
+ serialize(): Uint8Array;
3709
+ serialize(w: pb_1.BinaryWriter): void;
3710
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FetchPayoutLogsRequest;
3711
+ serializeBinary(): Uint8Array;
3712
+ static deserializeBinary(bytes: Uint8Array): FetchPayoutLogsRequest;
3713
+ }
3714
+ export class UpdatePayoutLogRequest extends pb_1.Message {
3715
+ #private;
3716
+ constructor(data?: any[] | {
3717
+ id?: string;
3718
+ status?: string;
3719
+ failureReason?: string;
3720
+ responseCode?: string;
3721
+ responseMessage?: string;
3722
+ destinationBankCode?: string;
3723
+ destinationAccountNumber?: string;
3724
+ });
3725
+ get id(): string;
3726
+ set id(value: string);
3727
+ get status(): string;
3728
+ set status(value: string);
3729
+ get failureReason(): string;
3730
+ set failureReason(value: string);
3731
+ get responseCode(): string;
3732
+ set responseCode(value: string);
3733
+ get responseMessage(): string;
3734
+ set responseMessage(value: string);
3735
+ get destinationBankCode(): string;
3736
+ set destinationBankCode(value: string);
3737
+ get destinationAccountNumber(): string;
3738
+ set destinationAccountNumber(value: string);
3739
+ static fromObject(data: {
3740
+ id?: string;
3741
+ status?: string;
3742
+ failureReason?: string;
3743
+ responseCode?: string;
3744
+ responseMessage?: string;
3745
+ destinationBankCode?: string;
3746
+ destinationAccountNumber?: string;
3747
+ }): UpdatePayoutLogRequest;
3748
+ toObject(): {
3749
+ id?: string | undefined;
3750
+ status?: string | undefined;
3751
+ failureReason?: string | undefined;
3752
+ responseCode?: string | undefined;
3753
+ responseMessage?: string | undefined;
3754
+ destinationBankCode?: string | undefined;
3755
+ destinationAccountNumber?: string | undefined;
3756
+ };
3757
+ serialize(): Uint8Array;
3758
+ serialize(w: pb_1.BinaryWriter): void;
3759
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UpdatePayoutLogRequest;
3760
+ serializeBinary(): Uint8Array;
3761
+ static deserializeBinary(bytes: Uint8Array): UpdatePayoutLogRequest;
3762
+ }
3763
+ export class PayoutLogResponse extends pb_1.Message {
3764
+ #private;
3765
+ constructor(data?: any[] | {
3766
+ status?: string;
3767
+ data?: PayoutLogData;
3768
+ error?: string;
3769
+ message?: string;
3770
+ errors?: ValidationErrors[];
3771
+ success?: boolean;
3772
+ });
3773
+ get status(): string;
3774
+ set status(value: string);
3775
+ get data(): PayoutLogData;
3776
+ set data(value: PayoutLogData);
3777
+ get hasData(): boolean;
3778
+ get error(): string;
3779
+ set error(value: string);
3780
+ get message(): string;
3781
+ set message(value: string);
3782
+ get errors(): ValidationErrors[];
3783
+ set errors(value: ValidationErrors[]);
3784
+ get success(): boolean;
3785
+ set success(value: boolean);
3786
+ static fromObject(data: {
3787
+ status?: string;
3788
+ data?: ReturnType<typeof PayoutLogData.prototype.toObject>;
3789
+ error?: string;
3790
+ message?: string;
3791
+ errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
3792
+ success?: boolean;
3793
+ }): PayoutLogResponse;
3794
+ toObject(): {
3795
+ status?: string | undefined;
3796
+ data?: {
3797
+ id?: string | undefined;
3798
+ transactionId?: string | undefined;
3799
+ terminalId?: string | undefined;
3800
+ ownerType?: string | undefined;
3801
+ ownerId?: string | undefined;
3802
+ merchantId?: string | undefined;
3803
+ branchId?: string | undefined;
3804
+ amount?: number | undefined;
3805
+ netAmount?: number | undefined;
3806
+ destinationBankCode?: string | undefined;
3807
+ destinationAccountNumber?: string | undefined;
3808
+ status?: string | undefined;
3809
+ payoutReference?: string | undefined;
3810
+ responseCode?: string | undefined;
3811
+ responseMessage?: string | undefined;
3812
+ failureReason?: string | undefined;
3813
+ attempts?: number | undefined;
3814
+ createdAt?: string | undefined;
3815
+ updatedAt?: string | undefined;
3816
+ } | undefined;
3817
+ error?: string | undefined;
3818
+ message?: string | undefined;
3819
+ errors?: {
3820
+ field?: string | undefined;
3821
+ message?: string | undefined;
3822
+ }[] | undefined;
3823
+ success?: boolean | undefined;
3824
+ };
3825
+ serialize(): Uint8Array;
3826
+ serialize(w: pb_1.BinaryWriter): void;
3827
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PayoutLogResponse;
3828
+ serializeBinary(): Uint8Array;
3829
+ static deserializeBinary(bytes: Uint8Array): PayoutLogResponse;
3830
+ }
3831
+ export class MultiPayoutLogResponse extends pb_1.Message {
3832
+ #private;
3833
+ constructor(data?: any[] | {
3834
+ status?: string;
3835
+ data?: PayoutLogData[];
3836
+ error?: string;
3837
+ message?: string;
3838
+ errors?: ValidationErrors[];
3839
+ success?: boolean;
3840
+ pagination?: Pagination;
3841
+ });
3842
+ get status(): string;
3843
+ set status(value: string);
3844
+ get data(): PayoutLogData[];
3845
+ set data(value: PayoutLogData[]);
3846
+ get error(): string;
3847
+ set error(value: string);
3848
+ get message(): string;
3849
+ set message(value: string);
3850
+ get errors(): ValidationErrors[];
3851
+ set errors(value: ValidationErrors[]);
3852
+ get success(): boolean;
3853
+ set success(value: boolean);
3854
+ get pagination(): Pagination;
3855
+ set pagination(value: Pagination);
3856
+ get hasPagination(): boolean;
3857
+ static fromObject(data: {
3858
+ status?: string;
3859
+ data?: ReturnType<typeof PayoutLogData.prototype.toObject>[];
3860
+ error?: string;
3861
+ message?: string;
3862
+ errors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
3863
+ success?: boolean;
3864
+ pagination?: ReturnType<typeof Pagination.prototype.toObject>;
3865
+ }): MultiPayoutLogResponse;
3866
+ toObject(): {
3867
+ status?: string | undefined;
3868
+ data?: {
3869
+ id?: string | undefined;
3870
+ transactionId?: string | undefined;
3871
+ terminalId?: string | undefined;
3872
+ ownerType?: string | undefined;
3873
+ ownerId?: string | undefined;
3874
+ merchantId?: string | undefined;
3875
+ branchId?: string | undefined;
3876
+ amount?: number | undefined;
3877
+ netAmount?: number | undefined;
3878
+ destinationBankCode?: string | undefined;
3879
+ destinationAccountNumber?: string | undefined;
3880
+ status?: string | undefined;
3881
+ payoutReference?: string | undefined;
3882
+ responseCode?: string | undefined;
3883
+ responseMessage?: string | undefined;
3884
+ failureReason?: string | undefined;
3885
+ attempts?: number | undefined;
3886
+ createdAt?: string | undefined;
3887
+ updatedAt?: string | undefined;
3888
+ }[] | undefined;
3889
+ error?: string | undefined;
3890
+ message?: string | undefined;
3891
+ errors?: {
3892
+ field?: string | undefined;
3893
+ message?: string | undefined;
3894
+ }[] | undefined;
3895
+ success?: boolean | undefined;
3896
+ pagination?: {
3897
+ total?: number | undefined;
3898
+ page?: number | undefined;
3899
+ limit?: number | undefined;
3900
+ hasNext?: boolean | undefined;
3901
+ hasPrev?: boolean | undefined;
3902
+ } | undefined;
3903
+ };
3904
+ serialize(): Uint8Array;
3905
+ serialize(w: pb_1.BinaryWriter): void;
3906
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MultiPayoutLogResponse;
3907
+ serializeBinary(): Uint8Array;
3908
+ static deserializeBinary(bytes: Uint8Array): MultiPayoutLogResponse;
3909
+ }
3546
3910
  interface GrpcPromiseServiceInterface<P, R> {
3547
3911
  (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
3548
3912
  (message: P, options?: grpc_1.CallOptions): Promise<R>;
@@ -3909,6 +4273,42 @@ export declare namespace com.pkg.account {
3909
4273
  responseSerialize: (message: ChargesResponse) => Buffer;
3910
4274
  responseDeserialize: (bytes: Buffer) => ChargesResponse;
3911
4275
  };
4276
+ GetPayoutLogs: {
4277
+ path: string;
4278
+ requestStream: boolean;
4279
+ responseStream: boolean;
4280
+ requestSerialize: (message: FetchPayoutLogsRequest) => Buffer;
4281
+ requestDeserialize: (bytes: Buffer) => FetchPayoutLogsRequest;
4282
+ responseSerialize: (message: MultiPayoutLogResponse) => Buffer;
4283
+ responseDeserialize: (bytes: Buffer) => MultiPayoutLogResponse;
4284
+ };
4285
+ GetPayoutLog: {
4286
+ path: string;
4287
+ requestStream: boolean;
4288
+ responseStream: boolean;
4289
+ requestSerialize: (message: IdRequest) => Buffer;
4290
+ requestDeserialize: (bytes: Buffer) => IdRequest;
4291
+ responseSerialize: (message: PayoutLogResponse) => Buffer;
4292
+ responseDeserialize: (bytes: Buffer) => PayoutLogResponse;
4293
+ };
4294
+ UpdatePayoutLog: {
4295
+ path: string;
4296
+ requestStream: boolean;
4297
+ responseStream: boolean;
4298
+ requestSerialize: (message: UpdatePayoutLogRequest) => Buffer;
4299
+ requestDeserialize: (bytes: Buffer) => UpdatePayoutLogRequest;
4300
+ responseSerialize: (message: PayoutLogResponse) => Buffer;
4301
+ responseDeserialize: (bytes: Buffer) => PayoutLogResponse;
4302
+ };
4303
+ RefreshPayoutLogStatus: {
4304
+ path: string;
4305
+ requestStream: boolean;
4306
+ responseStream: boolean;
4307
+ requestSerialize: (message: IdRequest) => Buffer;
4308
+ requestDeserialize: (bytes: Buffer) => IdRequest;
4309
+ responseSerialize: (message: PayoutLogResponse) => Buffer;
4310
+ responseDeserialize: (bytes: Buffer) => PayoutLogResponse;
4311
+ };
3912
4312
  };
3913
4313
  [method: string]: grpc_1.UntypedHandleCall;
3914
4314
  abstract IssueAccount(call: grpc_1.ServerUnaryCall<IssueAccountRequest, AccountResponse>, callback: grpc_1.sendUnaryData<AccountResponse>): void;
@@ -3951,6 +4351,10 @@ export declare namespace com.pkg.account {
3951
4351
  abstract GetCharge(call: grpc_1.ServerUnaryCall<IdRequest, ChargesResponse>, callback: grpc_1.sendUnaryData<ChargesResponse>): void;
3952
4352
  abstract AddCharge(call: grpc_1.ServerUnaryCall<ChargesData, ChargesResponse>, callback: grpc_1.sendUnaryData<ChargesResponse>): void;
3953
4353
  abstract UpdateCharge(call: grpc_1.ServerUnaryCall<ChargesData, ChargesResponse>, callback: grpc_1.sendUnaryData<ChargesResponse>): void;
4354
+ abstract GetPayoutLogs(call: grpc_1.ServerUnaryCall<FetchPayoutLogsRequest, MultiPayoutLogResponse>, callback: grpc_1.sendUnaryData<MultiPayoutLogResponse>): void;
4355
+ abstract GetPayoutLog(call: grpc_1.ServerUnaryCall<IdRequest, PayoutLogResponse>, callback: grpc_1.sendUnaryData<PayoutLogResponse>): void;
4356
+ abstract UpdatePayoutLog(call: grpc_1.ServerUnaryCall<UpdatePayoutLogRequest, PayoutLogResponse>, callback: grpc_1.sendUnaryData<PayoutLogResponse>): void;
4357
+ abstract RefreshPayoutLogStatus(call: grpc_1.ServerUnaryCall<IdRequest, PayoutLogResponse>, callback: grpc_1.sendUnaryData<PayoutLogResponse>): void;
3954
4358
  }
3955
4359
  const AccountsClient_base: grpc_1.ServiceClientConstructor;
3956
4360
  export class AccountsClient extends AccountsClient_base {
@@ -3995,6 +4399,10 @@ export declare namespace com.pkg.account {
3995
4399
  GetCharge: GrpcPromiseServiceInterface<IdRequest, ChargesResponse>;
3996
4400
  AddCharge: GrpcPromiseServiceInterface<ChargesData, ChargesResponse>;
3997
4401
  UpdateCharge: GrpcPromiseServiceInterface<ChargesData, ChargesResponse>;
4402
+ GetPayoutLogs: GrpcPromiseServiceInterface<FetchPayoutLogsRequest, MultiPayoutLogResponse>;
4403
+ GetPayoutLog: GrpcPromiseServiceInterface<IdRequest, PayoutLogResponse>;
4404
+ UpdatePayoutLog: GrpcPromiseServiceInterface<UpdatePayoutLogRequest, PayoutLogResponse>;
4405
+ RefreshPayoutLogStatus: GrpcPromiseServiceInterface<IdRequest, PayoutLogResponse>;
3998
4406
  }
3999
4407
  export {};
4000
4408
  }