Query.cs 537 B

123456789101112131415161718
  1. using Application.Abstractions.Messaging;
  2. using SharedKernel.Results;
  3. namespace Application.Features.Api.V1.Purchases.List;
  4. /// <summary>
  5. /// 결제 보고 목록 (파트너 대사용). OAuth2 토큰이면 ApplicationID, PAT 이면 OwnerMemberID 로 범위 제한.
  6. /// Status: pending / confirmed / canceled (생략 시 전체).
  7. /// </summary>
  8. public sealed record Query(
  9. int? ApplicationID,
  10. int? OwnerMemberID,
  11. string? Status,
  12. DateTime? From,
  13. DateTime? To,
  14. int Page,
  15. int Size
  16. ) : IQuery<Result<Response>>;