#nullable enable
using Baya.Application.Models.Booking;
using Baya.Application.Models.Common;
using Mediator;

namespace Baya.Application.Features.Bookings.Commands.CheckOutVisit;

/// <summary>The assigned nurse clocks out — must follow an open check-in. Captures GPS + timestamp, completes
/// the session's EVV, sets the session's per-session payout-eligibility window, and — when every session of
/// the booking is terminal — completes the booking and sets its dispute window. The session id comes from the
/// route.</summary>
public record CheckOutVisitCommand(decimal? Latitude, decimal? Longitude, long SessionId = 0)
    : IRequest<OperationResult<VisitVerificationDto>>;
