diff --git a/wallet/v1/msg.proto b/wallet/v1/msg.proto index e7a63de..5f0b030 100644 --- a/wallet/v1/msg.proto +++ b/wallet/v1/msg.proto @@ -355,6 +355,7 @@ enum TransactionType { IRT_DEPOSIT = 13; IRT_WITHDRAWAL = 14; COMMISSION = 15; + REFERRAL_COMMISSION = 16; } enum TransactionStatus { @@ -609,6 +610,10 @@ message TotalReferralCommissionOut { double unclaimed = 2; } +message ClaimReferralCommissionIn { + auth.v1.UserIdentityBasic user = 1; +} + /* * IPG - Internet Payment Gateway * 1. Get Token diff --git a/wallet/v1/srv.proto b/wallet/v1/srv.proto index 6db73b9..00475cc 100644 --- a/wallet/v1/srv.proto +++ b/wallet/v1/srv.proto @@ -27,6 +27,7 @@ service WalletService { // Commission Logs rpc GetReferrerCommissionLogsList(auth.v1.InternalIAM) returns (ReferrerCommissionLogsList); rpc GetTotalReferralCommission(TotalReferralCommissionIn) returns (TotalReferralCommissionOut); + rpc ClaimReferralCommission(ClaimReferralCommissionIn) returns (base.v1.StatusRes); // Get Token from IPG is and internal api rpc IPGGetToken(IPGGetTokenReq) returns (IPGGetTokenRes);