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

28 lines
1.3 KiB
C#
Raw Normal View History

2023-12-16 20:25:12 +03:30
namespace NetinaShop.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-01-22 17:31:35 +03:30
public Shipping(string title, string warehouseName, bool isExpressShipping, bool isShipBySeller, bool isOriginalWarehouse, double deliveryCost)
{
Title = title;
WarehouseName = warehouseName;
2024-01-22 17:31:35 +03:30
IsExpressShipping = isExpressShipping;
IsShipBySeller = isShipBySeller;
IsOriginalWarehouse = isOriginalWarehouse;
DeliveryCost = deliveryCost;
}
2023-12-16 20:25:12 +03:30
public string Title { get; internal set; } = string.Empty;
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; }
2023-12-16 20:25:12 +03:30
}