Files
CMS/src/CMSMicroservice.Application/WalletCQ/Queries/GetManualCreditCharges/GetManualCreditChargesQuery.cs
T
masoodafar-web d232399f43
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
feat(wallet): add manual credit wallet charge functionality and update Protobuf definitions
- Introduced ManualCreditWalletCharge enum value to TransactionType for clarity.
- Added AdminManualCreditCharge and GetManualCreditCharges RPC methods in UserWalletService for handling manual credit charges by admin.
- Created corresponding request and response messages for manual credit charge operations in Protobuf.
- Updated Protobuf project version to reflect the addition of new features.
2026-07-25 23:55:08 +03:30

40 lines
1.3 KiB
C#

using CMSMicroservice.Application.Common.Models;
using MediatR;
namespace CMSMicroservice.Application.WalletCQ.Queries.GetManualCreditCharges;
public class GetManualCreditChargesQuery : IRequest<GetManualCreditChargesResponseDto>
{
public PaginationState? PaginationState { get; set; }
public string? SortBy { get; set; }
public GetManualCreditChargesFilter? Filter { get; set; }
}
public class GetManualCreditChargesFilter
{
public long? UserId { get; set; }
public long? TransactionId { get; set; }
public string? RefId { get; set; }
public DateTime? CreatedFrom { get; set; }
public DateTime? CreatedTo { get; set; }
}
public class GetManualCreditChargesResponseDto
{
public MetaData MetaData { get; set; } = new();
public List<ManualCreditChargeModelDto> Models { get; set; } = new();
}
public class ManualCreditChargeModelDto
{
public long TransactionId { get; set; }
public long UserId { get; set; }
public string UserName { get; set; } = string.Empty;
public long Amount { get; set; }
public string Description { get; set; } = string.Empty;
public string? RefId { get; set; }
public long NewBalance { get; set; }
public DateTime Created { get; set; }
public DateTime? PaymentDate { get; set; }
}