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

namespace Baya.Application.Features.Messaging.Commands.AutoCreateCoordinationTicket;

/// <summary>
/// On booking confirmation, auto-creates the <c>coordination</c> ticket linked to the booking and adds the nurse
/// + customer as participants. Idempotent — exactly one coordination ticket per booking (a re-confirmation must
/// not create a second). Invoked by the b9/b10/b12 confirmation flow, not by an end user. Returns <c>true</c>
/// when it created the ticket, <c>false</c> when one already existed.
/// </summary>
public record AutoCreateCoordinationTicketCommand(long BookingId) : IRequest<OperationResult<bool>>;
