Response.cs 627 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Application.Features.Api.Studio.Wallet.GetRevenue;
  2. public sealed record Response(
  3. int Total,
  4. RevenueSummary Summary,
  5. List<RevenueItem> List,
  6. List<ChartItem> ChartData
  7. );
  8. public sealed record RevenueSummary(
  9. int GrossAmount,
  10. int PlatformFee,
  11. int NetAmount
  12. );
  13. public sealed record RevenueItem(
  14. int Id,
  15. string DonorName,
  16. string? DonorSID,
  17. int GrossAmount,
  18. int PlatformFee,
  19. int NetAmount,
  20. string Type,
  21. string? CrewName,
  22. DateTime CreatedAt
  23. );
  24. public sealed record ChartItem(
  25. string Date,
  26. int GrossAmount,
  27. int PlatformFee,
  28. int NetAmount
  29. );