using MediatR;
using TakeoutSaaS.Application.App.QuotaPackages.Dto;

namespace TakeoutSaaS.Application.App.QuotaPackages.Commands;

/// <summary>
/// 为租户购买配额包命令。
/// </summary>
public sealed record PurchaseQuotaPackageCommand : IRequest<TenantQuotaPurchaseDto>
{
    /// <summary>
    /// 租户 ID。
    /// </summary>
    public long TenantId { get; init; }

    /// <summary>
    /// 配额包 ID。
    /// </summary>
    public long QuotaPackageId { get; init; }

    /// <summary>
    /// 过期时间（可选）。
    /// </summary>
    public DateTime? ExpiredAt { get; init; }

    /// <summary>
    /// 备注。
    /// </summary>
    public string? Notes { get; init; }
}
