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

namespace Baya.Application.Features.Reviews.Commands.SubmitReview;

/// <summary>A customer leaves the one allowed review for a completed booking: a 1–5 rating, optional free-text
/// body, and optional standardized tag codes. The booking id comes from the route, not the body.</summary>
public record SubmitReviewCommand(
    long BookingId,
    int Rating,
    string? Body,
    IReadOnlyList<string>? TagCodes) : IRequest<OperationResult<SubmitReviewResult>>;
