using Connected.Annotations;
using Connected.ServiceModel;
namespace Connected.Logistics.Stock;
///
/// Represents the arguments when updating the stock items.
///
public sealed class UpdateStockArgs : Dto
{
///
/// The serial number of the item.
///
[MinValue(1)]
public long Serial { get; set; }
///
/// The warehouse location where the items are stored.
///
[MinValue(1)]
public int Location { get; set; }
///
/// The changed quantity. Can be a positive or negative
/// value.
///
public float Quantity { get; set; }
}
public sealed class QueryStockItemsArgs : PrimaryKeyArgs
{
[MinValue(1)]
public int Location { get; set; }
///
/// The optional serial number.
///
public long? Serial { get; set; }
}