public CommerceService(IExtCommonDao commonDao, ICommerceDao dao, IPaymentProvider provider, IBasketRules rules, IOrderProcessorFactory processorFactory, ITemplateEngine templateEngine, IChargeService chargeService) { _commonDao = commonDao; _dao = dao; _provider = provider; _rules = rules; _chargeService = chargeService; _processorFactory = processorFactory; }
public ECommerceModule(ICommerceService commerceService, ICatalogueViewService catatalogueService, ICommerceDao dao, IExtCommonDao commonDao, IBasketRules rules, ICatalogueModificationService editService, IAccountService accountService, IOrderService orderService, IEmailSender emailSender, IDeliveryService deliveryService, ICultureService cultureService, IUserService userService) : base(catatalogueService, commerceService, editService, accountService, orderService, emailSender, deliveryService, cultureService, userService) { _dao = dao; _commonDao = commonDao; _rules = rules; //we now get payment providers from the DB to make it more user friendly //PaymentProviders = CommerceService.GetEnabledPaymentProviders(); }
public OrderService(ISessionManager sessionManager, ICommerceDao dao) { _sessionManager = sessionManager; _dao = dao; }
public void ConvertToOrder(ICommerceDao dao, Cuyahoga.Core.DataAccess.ICommonDao commonDao) { //Creates header and addresses IOrderHeader header = dao.CreateOrderHeader(_basket); header.Comment = ""; header.OrderedDate = DateTime.Now; header.PurchaseOrderNumber = ""; header.Status = OrderStatus.OrderedNotPaid; commonDao.SaveOrUpdateObject(header); _basket.OrderHeader = header; }
public PaymentHelper(ICommerceDao dao) { _dao = dao; }