using MediatR;

namespace IamService.API.Application.Commands.Verifications;

/// <summary>
/// EN: Command to confirm verification with OTP code.
/// VI: Command để xác nhận verification với mã OTP.
/// </summary>
public record ConfirmVerificationCommand(
    Guid VerificationId,
    string Code) : IRequest<ConfirmVerificationCommandResult>;

/// <summary>
/// EN: Result of confirm verification command.
/// VI: Kết quả của command xác nhận verification.
/// </summary>
public record ConfirmVerificationCommandResult(
    Guid VerificationId,
    bool IsVerified,
    string Status,
    DateTime? VerifiedAt);
