2023-12-16 20:25:12 +03:30
|
|
|
|
namespace NetinaShop.Domain.Entities.Warehouses;
|
2023-12-20 10:37:44 +03:30
|
|
|
|
[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
|
|
|
|
{
|
2023-12-20 10:37:44 +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)
|
2023-12-20 10:37:44 +03:30
|
|
|
|
{
|
2024-02-09 21:43:14 +03:30
|
|
|
|
Name = name;
|
2023-12-20 10:37:44 +03:30
|
|
|
|
WarehouseName = warehouseName;
|
2024-01-22 17:31:35 +03:30
|
|
|
|
IsExpressShipping = isExpressShipping;
|
2023-12-20 10:37:44 +03:30
|
|
|
|
IsShipBySeller = isShipBySeller;
|
|
|
|
|
|
IsOriginalWarehouse = isOriginalWarehouse;
|
2023-12-31 19:55:22 +03:30
|
|
|
|
DeliveryCost = deliveryCost;
|
2024-02-12 22:01:15 +03:30
|
|
|
|
WorkingDays = workingDays;
|
2023-12-20 10:37:44 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2024-02-09 21:43:14 +03:30
|
|
|
|
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; }
|
2023-12-31 19:55:22 +03:30
|
|
|
|
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
|
|
|
|
}
|