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

namespace TakeoutSaaS.Application.App.Subscriptions.Commands;

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

    /// <summary>
    /// 目标套餐 ID。
    /// </summary>
    public long TargetPackageId { get; init; }

    /// <summary>
    /// 是否立即生效。
    /// </summary>
    public bool Immediate { get; init; }

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