Api/Netina.Domain/Entities/Warehouses/Shipping.cs

30 lines
1.4 KiB
C#
Raw Normal View History

namespace Netina.Domain.Entities.Warehouses;
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
[GenerateMapper]
public partial class Shipping : ApiEntity
2023-12-16 20:25:12 +03:30
{
public Shipping()
{
}
2024-02-12 22:01:15 +03:30
public Shipping(string name, string warehouseName, bool isExpressShipping, bool isShipBySeller, bool isOriginalWarehouse, double deliveryCost, int workingDays)
{
Name = name;
WarehouseName = warehouseName;
2024-01-22 17:31:35 +03:30
IsExpressShipping = isExpressShipping;
IsShipBySeller = isShipBySeller;
IsOriginalWarehouse = isOriginalWarehouse;
DeliveryCost = deliveryCost;
2024-02-12 22:01:15 +03:30
WorkingDays = workingDays;
}
public string Name { get; internal set; } = string.Empty;
2023-12-16 20:25:12 +03:30
public string WarehouseName { get; internal set; } = string.Empty;
2024-01-22 17:31:35 +03:30
public bool IsExpressShipping { get; internal set; }
2023-12-16 20:25:12 +03:30
public bool IsShipBySeller { get; internal set; }
public bool IsOriginalWarehouse { get; internal set; }
public double DeliveryCost { get; internal set; }
2024-02-12 22:01:15 +03:30
public int WorkingDays { get; internal set; }
2023-12-16 20:25:12 +03:30
}