namespace Baya.Domain.Entities.Booking;

/// <summary>
/// The closed code set for who initiated a cancellation — both the <c>cancellation_policies.applies_to</c>
/// dimension and the value frozen into <c>bookings.cancelled_by</c> at cancel time.
/// </summary>
public static class CancellationActor
{
    public const string Customer = "customer";
    public const string Nurse = "nurse";
    public const string Admin = "admin";

    public static bool IsValid(string value)
        => value is Customer or Nurse or Admin;
}
