using System; using System.Globalization; namespace Nop.Plugin.Shipping.NopCliGeneric { public class ShippingNopCliGenericServiceRate { /// /// Service name /// public string ServiceName { get; set; } /// /// Service code /// public string ServiceCode { get; set; } /// /// Service code /// public string ShipmentCost { get; set; } /// /// Other cost /// public string OtherCost { get; set; } /// /// Total cost /// public decimal TotalCost => Convert.ToDecimal(ShipmentCost, new CultureInfo("en-US")) + Convert.ToDecimal(OtherCost, new CultureInfo("en-US")); } }