You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
842 B

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