Files
FrontOffice.BFF/src/Protobufs/FrontOffice.BFF.UserWallet.Protobuf/Protos/userwallet.proto

139 lines
3.4 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package userwallet;
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "FrontOffice.BFF.UserWallet.Protobuf.Protos.UserWallet";
service UserWalletContract
{
2025-12-02 03:32:50 +03:30
rpc GetAllUserWalletChangeLog(GetAllUserWalletChangeLogRequest) returns (GetAllUserWalletChangeLogResponse){
option (google.api.http) = {
2025-12-02 03:32:50 +03:30
post: "/GetAllUserWalletChangeLog"
body: "*"
};
};
rpc GetUserWallet(google.protobuf.Empty) returns (GetUserWalletResponse){
option (google.api.http) = {
get: "/GetUserWallet"
};
};
rpc TransferUserWalletBallance(google.protobuf.Empty) returns (google.protobuf.Empty){
option (google.api.http) = {
post: "/TransferUserWalletBallance"
body: "*"
};
};
2025-12-02 03:32:50 +03:30
rpc WithdrawBalance(WithdrawBalanceRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
post: "/WithdrawBalance"
body: "*"
};
};
2025-12-02 03:32:50 +03:30
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
{
MetaData meta_data = 1;
repeated GetAllUserWalletChangeLogResponseModel models = 2;
}
message GetAllUserWalletChangeLogResponseModel
{
int64 current_balance = 1;
int64 change_value = 2;
int64 current_network_balance = 3;
int64 change_nerwork_value = 4;
bool is_increase = 5;
google.protobuf.Int64Value refrence_id = 6;
google.protobuf.Timestamp created_at = 7;
}
message GetUserWalletResponse
{
int64 balance = 1;
int64 network_balance = 2;
2025-12-02 03:32:50 +03:30
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
{
int32 page_number = 1;
int32 page_size = 2;
}
message MetaData
{
int64 current_page = 1;
int64 total_page = 2;
int64 page_size = 3;
int64 total_count = 4;
bool has_previous = 5;
bool has_next = 6;
}
message DecimalValue
{
int64 units = 1;
sfixed32 nanos = 2;
}
2025-12-02 03:32:50 +03:30