19 lines
515 B
C#
19 lines
515 B
C#
using LiteCharms.Models;
|
|
|
|
namespace LiteCharms.Features.Customers.Queries;
|
|
|
|
public class GetCustomerRefundsQuery : IRequest<Result<OrderRefund[]>>
|
|
{
|
|
public Guid CustomerId { get; set; }
|
|
|
|
private GetCustomerRefundsQuery(Guid customerId) => CustomerId = customerId;
|
|
|
|
public static GetCustomerRefundsQuery Create(Guid customerId)
|
|
{
|
|
if (customerId == Guid.Empty)
|
|
throw new ArgumentException("CustomerId is required.", nameof(customerId));
|
|
|
|
return new(customerId);
|
|
}
|
|
}
|