namespace ItSystem.Simulator;

public class StockUpdateCriteria
{

    public StockUpdateCriteria() { }

    public string ArticleId { get; set; }
    public string BatchNumber { get; set; }
    public string ExternalId { get; set; }
    public ulong? PackId { get; set; }
    public string StockLocationId { get; set; }
    public string MachineLocation { get; set; }
    public string SerialNumber { get; set; }

    public bool IsValid()
    {
        return !string.IsNullOrWhiteSpace(ArticleId) || !string.IsNullOrWhiteSpace(BatchNumber) ||
               !string.IsNullOrWhiteSpace(ExternalId) || PackId.HasValue || !string.IsNullOrWhiteSpace(StockLocationId)
               || !string.IsNullOrWhiteSpace(MachineLocation) || !string.IsNullOrWhiteSpace(SerialNumber);
    }


}