feat(transactions): enhance transaction filtering and summary capabilities
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
- Added new date range filters (CreatedFrom, CreatedTo, PaymentDateFrom, PaymentDateTo) to GetAllTransactionsByFilterQuery for improved transaction querying. - Updated GetAllTransactionsByFilterQueryHandler to apply new filters and return detailed transaction models. - Introduced GetTransactionSummary RPC method in Protobuf for summarizing transaction data. - Enhanced mapping configurations to accommodate new filter properties and response models. - Bumped Protobuf project version to reflect the addition of new features.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.0.202</Version>
|
||||
<Version>0.0.203</Version>
|
||||
<DebugType>None</DebugType>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||
|
||||
@@ -109,6 +109,13 @@ enum TransactionType
|
||||
DepositIpg = 1;
|
||||
DepositExternal1 = 2;
|
||||
Withdraw = 3;
|
||||
NetworkCommission = 10;
|
||||
ClubActivation = 11;
|
||||
DiscountWalletCharge = 12;
|
||||
DiscountShopPurchase = 13;
|
||||
MagicWalletDeposit = 14;
|
||||
MagicWalletBonus = 15;
|
||||
CreditWalletCharge = 16;
|
||||
}
|
||||
enum ContractType
|
||||
{
|
||||
|
||||
@@ -43,6 +43,11 @@ service TransactionsContract
|
||||
|
||||
};
|
||||
};
|
||||
rpc GetTransactionSummary(GetTransactionSummaryRequest) returns (GetTransactionSummaryResponse){
|
||||
option (google.api.http) = {
|
||||
get: "/GetTransactionSummary"
|
||||
};
|
||||
};
|
||||
rpc VerifyTransaction(VerifyTransactionRequest) returns (VerifyTransactionResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/VerifyTransaction"
|
||||
@@ -161,6 +166,10 @@ message GetAllTransactionsByFilterFilter
|
||||
{
|
||||
messages.TransactionType type = 7;
|
||||
}
|
||||
google.protobuf.Timestamp created_from = 8;
|
||||
google.protobuf.Timestamp created_to = 9;
|
||||
google.protobuf.Timestamp payment_date_from = 10;
|
||||
google.protobuf.Timestamp payment_date_to = 11;
|
||||
}
|
||||
message GetAllTransactionsByFilterResponse
|
||||
{
|
||||
@@ -182,6 +191,21 @@ message GetAllTransactionsByFilterResponseModel
|
||||
{
|
||||
messages.TransactionType type = 7;
|
||||
}
|
||||
google.protobuf.Timestamp created = 8;
|
||||
}
|
||||
|
||||
message GetTransactionSummaryRequest
|
||||
{
|
||||
GetAllTransactionsByFilterFilter filter = 1;
|
||||
}
|
||||
|
||||
message GetTransactionSummaryResponse
|
||||
{
|
||||
int64 total_count = 1;
|
||||
int64 total_amount = 2;
|
||||
int64 success_count = 3;
|
||||
int64 pending_count = 4;
|
||||
int64 reject_count = 5;
|
||||
}
|
||||
|
||||
// VerifyTransaction Messages
|
||||
|
||||
Reference in New Issue
Block a user