コード例 #1
0
		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;
		}
コード例 #2
0
		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;
		}
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }