public static webModel.LineItem ToWebModel(this coreModel.LineItem orderItem) { var retVal = new webModel.LineItem(); retVal.InjectFrom(orderItem); retVal.Currency = orderItem.Currency; retVal.TaxDetails = orderItem.TaxDetails; if (orderItem.DynamicProperties != null) retVal.DynamicProperties = orderItem.DynamicProperties; return retVal; }
public static webModel.LineItem ToWebModel(this coreModel.LineItem orderItem) { var retVal = new webModel.LineItem(); retVal.InjectFrom(orderItem); retVal.Currency = orderItem.Currency; if (orderItem.Discount != null) { retVal.Discount = orderItem.Discount.ToWebModel(); retVal.DiscountAmount = orderItem.Discount.DiscountAmount; } retVal.TaxDetails = orderItem.TaxDetails; return retVal; }
public static webModel.LineItem ToWebModel(this coreModel.LineItem orderItem) { var retVal = new webModel.LineItem(); retVal.InjectFrom(orderItem); retVal.Currency = orderItem.Currency; if (orderItem.Discount != null) { retVal.Discount = orderItem.Discount.ToWebModel(); retVal.DiscountAmount = orderItem.Discount.DiscountAmount; } retVal.TaxDetails = orderItem.TaxDetails; return(retVal); }
public static webModel.LineItem ToWebModel(this coreModel.LineItem orderItem) { var retVal = new webModel.LineItem(); retVal.InjectFrom(orderItem); retVal.Currency = orderItem.Currency; retVal.TaxDetails = orderItem.TaxDetails; if (orderItem.DynamicProperties != null) { retVal.DynamicProperties = orderItem.DynamicProperties; } return(retVal); }