Compare commits

..

1 Commits

Author SHA1 Message Date
mapoofano 33474ccaba chore: update identity status type to UserStatus 2025-08-30 11:42:19 +03:30
5 changed files with 4 additions and 50 deletions
+1 -5
View File
@@ -43,7 +43,6 @@ message PermissionList {
message UserSendOtpReq {
string mobile = 1;
string referral_code = 2;
}
message UserSendOtpRes {
int64 expired_at = 1;
@@ -56,7 +55,6 @@ message UserSendOtpRes {
message UserLoginReq {
string mobile = 1;
string otp_code = 2;
string referral_code = 3;
}
message UserRefreshTokenReq {
string refresh_token = 1;
@@ -130,7 +128,6 @@ message User {
string email = 4;
UserStatus status = 5;
repeated int64 roles = 6;
int64 referrer_user_id = 7;
}
message UserAddress {
@@ -164,7 +161,7 @@ message Identity {
string shenasname_number = 14;
string shenasname_seri = 15;
string shenasname_serial = 16;
int32 status = 17;
UserStatus status = 17;
string updated_at = 18;
string created_at = 19;
string email = 20;
@@ -188,7 +185,6 @@ message UserIdentityBasic {
string first_name = 4;
string last_name = 5;
string wallet_address = 6;
bool is_identity_verified = 7;
}
message UserUpdateIdentityReq {
-1
View File
@@ -51,7 +51,6 @@ enum ErrCode {
BANK_INFO_NOT_FOUND = 3007;
RECIPIENT_NOT_FOUND = 3008;
USER_NOT_FOUND = 3009;
INVALID_REFERRAL_CODE = 3011;
MARKET_AGREEMENT_ALREADY_ACCEPTED = 3010;
// Resource state errors
-3
View File
@@ -17,7 +17,4 @@ service InternalWalletSrv {
// Calculate stellar pub-priv key based on national id
rpc GetPublicKeyByNationalID(NationalIDReq) returns (PubKeyRes);
// Commission Logs
rpc InitReferrerCommissionLog(InitReferrerCommissionLogIn) returns (base.v1.Empty);
}
+3 -36
View File
@@ -6,7 +6,7 @@ import "auth/v1/msg.proto";
import "base/v1/msg.proto";
/*
INTERNAL DATA;
INTERNAL DATA
*/
message InternalTransactionData {
@@ -355,7 +355,6 @@ enum TransactionType {
IRT_DEPOSIT = 13;
IRT_WITHDRAWAL = 14;
COMMISSION = 15;
REFERRAL_COMMISSION = 16;
}
enum TransactionStatus {
@@ -443,7 +442,7 @@ message TransferAssetRes {
}
/*
Redeem Token;
Redeem Token
*/
message RedeemTokenReq {
auth.v1.InternalIAM iam = 1;
@@ -498,7 +497,7 @@ message PubKeyRes {
}
/*
Network Details;
Network Details
*/
enum NetworkType {
UNKNOWN_NETWORK_TYPE = 0;
@@ -582,38 +581,6 @@ message CommissionRes {
uint64 commission_log_id = 1;
}
message InitReferrerCommissionLogIn {
int64 referrer_id = 1;
int64 user_id = 2;
double amount = 3;
}
message ReferrerCommissionLogOut {
double amount = 1;
string mobile = 2;
bool is_identity_verified = 3;
double commission_percentage = 4;
}
message ReferrerCommissionLogsList {
repeated ReferrerCommissionLogOut list = 1;
uint32 page_no = 2;
uint32 page_size = 3;
uint32 total_count = 4;
}
message TotalReferralCommissionIn {
int64 referrer_id = 1;
}
message TotalReferralCommissionOut {
double claimed = 1;
double unclaimed = 2;
}
message ClaimReferralCommissionIn {
auth.v1.User user = 1;
}
/*
* IPG - Internet Payment Gateway
* 1. Get Token
-5
View File
@@ -24,11 +24,6 @@ service WalletService {
rpc UserGetTransactionList(TransactionListFilter) returns (TransactionList);
// 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);
// IPG Confirm is a public api