Files
components/LiteCharms.Features/Customers/Queries/GetCustomerRefundsQuery.cs
T
2026-05-03 16:10:27 +02:00

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);
}
}