using MediatR;
using TakeoutSaaS.Application.App.Finance.Invoice.Dto;

namespace TakeoutSaaS.Application.App.Finance.Invoice.Commands;

/// <summary>
/// 开票命令。
/// </summary>
public sealed class IssueFinanceInvoiceRecordCommand : IRequest<FinanceInvoiceIssueResultDto>
{
    /// <summary>
    /// 发票记录 ID。
    /// </summary>
    public long RecordId { get; init; }

    /// <summary>
    /// 接收邮箱（可选，传入会覆盖原值）。
    /// </summary>
    public string? ContactEmail { get; init; }

    /// <summary>
    /// 开票备注。
    /// </summary>
    public string? IssueRemark { get; init; }
}
