using MediatR;
using TakeoutSaaS.Application.App.Subscriptions.Contracts;

namespace TakeoutSaaS.Application.App.Subscriptions.Commands;

/// <summary>
/// 更新订阅命令。
/// </summary>
public sealed record UpdateSubscriptionCommand : IRequest<SubscriptionListDto?>
{
    /// <summary>
    /// 订阅 ID。
    /// </summary>
    public long SubscriptionId { get; init; }

    /// <summary>
    /// 是否自动续费。
    /// </summary>
    public bool? AutoRenew { get; init; }

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