namespace Netina.Domain.Entities.Warehouses; [AdaptTwoWays("[name]LDto", IgnoreAttributes = [typeof(AdaptIgnoreAttribute)], MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)] [AdaptTwoWays("[name]SDto", IgnoreAttributes = [typeof(AdaptIgnoreAttribute)], MapType = MapType.Map | MapType.MapToTarget)] [AdaptTo("[name]SDto", IgnoreAttributes = [typeof(AdaptIgnoreAttribute)], MapType = MapType.Projection)] [GenerateMapper] public partial class Shipping : ApiEntity { public Shipping() { } public Shipping(string name, string warehouseName, bool isExpressShipping, bool isShipBySeller, bool isOriginalWarehouse, double deliveryCost, int workingDays) { Name = name; WarehouseName = warehouseName; IsExpressShipping = isExpressShipping; IsShipBySeller = isShipBySeller; IsOriginalWarehouse = isOriginalWarehouse; DeliveryCost = deliveryCost; WorkingDays = workingDays; } public string Name { get; internal set; } = string.Empty; public string WarehouseName { get; internal set; } = string.Empty; public bool IsExpressShipping { get; internal set; } public bool IsShipBySeller { get; internal set; } public bool IsOriginalWarehouse { get; internal set; } public double DeliveryCost { get; internal set; } public int WorkingDays { get; internal set; } }