public static dataModel.StorePaymentMethod ToDataModel(this coreModel.PaymentMethod paymentMethod)
		{
			if (paymentMethod == null)
				throw new ArgumentNullException("paymentMethod");

			var retVal = new dataModel.StorePaymentMethod();

			retVal.InjectFrom(paymentMethod);

			return retVal;
		}
        /// <summary>
        /// Patch changes
        /// </summary>
        /// <param name="source"></param>
        /// <param name="target"></param>
        public static void Patch(this dataModel.StorePaymentMethod source, dataModel.StorePaymentMethod target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }
            var patchInjectionPolicy = new PatchInjection <dataModel.StorePaymentMethod>(x => x.LogoUrl, x => x.Name,
                                                                                         x => x.Description, x => x.Priority,
                                                                                         x => x.IsActive, x => x.IsAvailableForPartial);

            target.InjectFrom(patchInjectionPolicy, source);
        }
        public static dataModel.StorePaymentMethod ToDataModel(this coreModel.PaymentMethod paymentMethod)
        {
            if (paymentMethod == null)
            {
                throw new ArgumentNullException("paymentMethod");
            }

            var retVal = new dataModel.StorePaymentMethod();

            retVal.InjectFrom(paymentMethod);

            return(retVal);
        }