This commit is contained in:
masoodafar-web
2025-12-02 03:32:50 +03:30
parent 27f59f0c30
commit bcf2bc2a52
23 changed files with 5712 additions and 31 deletions

View File

@@ -12,10 +12,10 @@ option csharp_namespace = "FrontOffice.BFF.UserWallet.Protobuf.Protos.UserWallet
service UserWalletContract
{
rpc GetAllUserWalletChangeLog(google.protobuf.Empty) returns (GetAllUserWalletChangeLogResponse){
rpc GetAllUserWalletChangeLog(GetAllUserWalletChangeLogRequest) returns (GetAllUserWalletChangeLogResponse){
option (google.api.http) = {
get: "/GetAllUserWalletChangeLog"
post: "/GetAllUserWalletChangeLog"
body: "*"
};
};
rpc GetUserWallet(google.protobuf.Empty) returns (GetUserWalletResponse){
@@ -30,12 +30,23 @@ service UserWalletContract
body: "*"
};
};
rpc WithdrawBalance(google.protobuf.Empty) returns (google.protobuf.Empty){
rpc WithdrawBalance(WithdrawBalanceRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
post: "/WithdrawBalance"
body: "*"
};
};
rpc GetUserWithdrawals(GetUserWithdrawalsRequest) returns (GetUserWithdrawalsResponse){
option (google.api.http) = {
post: "/GetUserWithdrawals"
body: "*"
};
};
rpc GetWithdrawalSettings(google.protobuf.Empty) returns (GetWithdrawalSettingsResponse){
option (google.api.http) = {
get: "/GetWithdrawalSettings"
};
};
}
message GetAllUserWalletChangeLogResponse
{
@@ -56,6 +67,45 @@ message GetUserWalletResponse
{
int64 balance = 1;
int64 network_balance = 2;
int64 discount_balance = 3;
}
message WithdrawBalanceRequest
{
int64 payout_id = 1;
int32 withdrawal_method = 2; // 0: Cash, 1: Diamond
google.protobuf.StringValue iban_number = 3;
}
message GetAllUserWalletChangeLogRequest
{
google.protobuf.Int64Value reference_id = 1;
google.protobuf.BoolValue is_increase = 2;
}
message GetUserWithdrawalsRequest
{
google.protobuf.Int32Value status = 1;
}
message GetUserWithdrawalsResponse
{
MetaData meta_data = 1;
repeated UserWithdrawalModel models = 2;
}
message UserWithdrawalModel
{
int64 id = 1;
string week_number = 2;
int64 total_amount = 3;
int32 status = 4;
google.protobuf.Int32Value withdrawal_method = 5;
string iban_number = 6;
google.protobuf.Timestamp created = 7;
}
message GetWithdrawalSettingsResponse
{
int64 min_withdrawal_amount = 1;
}
message PaginationState
@@ -85,4 +135,4 @@ message GetUserWalletResponse
sfixed32 nanos = 2;
}