Response.cs 850 B

12345678910111213141516171819202122232425262728293031
  1. namespace Application.Features.Api.MyPage.ChargeLogs;
  2. public sealed record Response(
  3. List<ChargeLogItem> List,
  4. int Total,
  5. int Page,
  6. int PerPage
  7. );
  8. /// <summary>
  9. /// 카테고리별로 사용되는 필드가 다름.
  10. /// - charge: OrderID/PointAmount/VatAmount/PaymentMethod/Status/PaidAt 채워짐, TxType/BalanceType/Reason/RefID/BalanceAfter는 null
  11. /// - all/earn/spend/refund: TxType/BalanceType/Reason/RefID/BalanceAfter 채워짐, charge 전용 필드는 null
  12. /// </summary>
  13. public sealed record ChargeLogItem(
  14. int ID,
  15. string Category,
  16. string? OrderID,
  17. long Amount,
  18. int? PointAmount,
  19. int? VatAmount,
  20. string? PaymentMethod,
  21. string? Status,
  22. string? TxType,
  23. string? BalanceType,
  24. string? Reason,
  25. string? RefID,
  26. long? BalanceAfter,
  27. DateTime CreatedAt,
  28. DateTime? PaidAt
  29. );