| 12345678910111213141516171819202122232425262728293031 |
- namespace Application.Features.Api.MyPage.ChargeLogs;
- public sealed record Response(
- List<ChargeLogItem> List,
- int Total,
- int Page,
- int PerPage
- );
- /// <summary>
- /// 카테고리별로 사용되는 필드가 다름.
- /// - charge: OrderID/PointAmount/VatAmount/PaymentMethod/Status/PaidAt 채워짐, TxType/BalanceType/Reason/RefID/BalanceAfter는 null
- /// - all/earn/spend/refund: TxType/BalanceType/Reason/RefID/BalanceAfter 채워짐, charge 전용 필드는 null
- /// </summary>
- public sealed record ChargeLogItem(
- int ID,
- string Category,
- string? OrderID,
- long Amount,
- int? PointAmount,
- int? VatAmount,
- string? PaymentMethod,
- string? Status,
- string? TxType,
- string? BalanceType,
- string? Reason,
- string? RefID,
- long? BalanceAfter,
- DateTime CreatedAt,
- DateTime? PaidAt
- );
|