public CustomerRegisteredCommandHandler(
     IUserFieldService userFieldService,
     IVatService checkVatService,
     IMessageProviderService messageProviderService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IAddressAttributeService addressAttributeService,
     ICountryService countryService,
     ICustomerService customerService,
     ICustomerActionEventService customerActionEventService,
     TaxSettings taxSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings,
     LanguageSettings languageSettings)
 {
     _userFieldService              = userFieldService;
     _checkVatService               = checkVatService;
     _messageProviderService        = messageProviderService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _addressAttributeService       = addressAttributeService;
     _countryService             = countryService;
     _customerService            = customerService;
     _customerActionEventService = customerActionEventService;
     _taxSettings      = taxSettings;
     _customerSettings = customerSettings;
     _addressSettings  = addressSettings;
     _languageSettings = languageSettings;
 }
 public SendQuantityBelowStoreOwnerNotificationCommandHandler(
     IMessageProviderService messageProviderService,
     LanguageSettings languageSettings)
 {
     _messageProviderService = messageProviderService;
     _languageSettings       = languageSettings;
 }
示例#3
0
 public VendorController(
     IWorkContext workContext,
     ITranslationService translationService,
     ICustomerService customerService,
     IGroupService groupService,
     IMessageProviderService messageProviderService,
     IVendorService vendorService,
     ISlugService slugService,
     IPictureService pictureService,
     ICountryService countryService,
     IMediator mediator,
     LanguageSettings languageSettings,
     VendorSettings vendorSettings,
     CaptchaSettings captchaSettings,
     CommonSettings commonSettings)
 {
     _workContext            = workContext;
     _translationService     = translationService;
     _customerService        = customerService;
     _groupService           = groupService;
     _messageProviderService = messageProviderService;
     _vendorService          = vendorService;
     _slugService            = slugService;
     _pictureService         = pictureService;
     _countryService         = countryService;
     _mediator         = mediator;
     _languageSettings = languageSettings;
     _vendorSettings   = vendorSettings;
     _captchaSettings  = captchaSettings;
     _commonSettings   = commonSettings;
 }
 public PasswordRecoverySendCommandHandler(
     IUserFieldService userFieldService,
     IMessageProviderService messageProviderService)
 {
     _userFieldService       = userFieldService;
     _messageProviderService = messageProviderService;
 }
示例#5
0
 public KnowledgebaseController(
     KnowledgebaseSettings knowledgebaseSettings,
     IKnowledgebaseService knowledgebaseService,
     IWorkContext workContext,
     ICacheBase cacheBase,
     IAclService aclService,
     ITranslationService translationService,
     IMessageProviderService messageProviderService,
     ICustomerActivityService customerActivityService,
     IDateTimeService dateTimeService,
     IPermissionService permissionService,
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings,
     LanguageSettings languageSettings)
 {
     _knowledgebaseSettings   = knowledgebaseSettings;
     _knowledgebaseService    = knowledgebaseService;
     _workContext             = workContext;
     _cacheBase               = cacheBase;
     _aclService              = aclService;
     _translationService      = translationService;
     _captchaSettings         = captchaSettings;
     _languageSettings        = languageSettings;
     _messageProviderService  = messageProviderService;
     _customerActivityService = customerActivityService;
     _dateTimeService         = dateTimeService;
     _customerSettings        = customerSettings;
     _permissionService       = permissionService;
 }
示例#6
0
 public ContactVendorCommandHandler(IMessageProviderService messageProviderService, IWorkContext workContext,
                                    ITranslationService translationService, CommonSettings commonSettings)
 {
     _messageProviderService = messageProviderService;
     _workContext            = workContext;
     _translationService     = translationService;
     _commonSettings         = commonSettings;
 }
示例#7
0
 public SubscribeNewsletterHandler(INewsLetterSubscriptionService newsLetterSubscriptionService, ITranslationService translationService,
                                   IMessageProviderService messageProviderService, IWorkContext workContext, INewsletterCategoryService newsletterCategoryService)
 {
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _translationService            = translationService;
     _messageProviderService        = messageProviderService;
     _workContext = workContext;
     _newsletterCategoryService = newsletterCategoryService;
 }
 public GetTwoFactorAuthenticationHandler(
     ITwoFactorAuthenticationService twoFactorAuthenticationService,
     IMessageProviderService messageProviderService,
     CustomerSettings customerSetting)
 {
     _twoFactorAuthenticationService = twoFactorAuthenticationService;
     _messageProviderService         = messageProviderService;
     _customerSetting = customerSetting;
 }
示例#9
0
 public SendNotificationsToSubscribersCommandHandler(
     ICustomerService customerService,
     IMessageProviderService messageProviderService,
     IRepository <OutOfStockSubscription> outOfStockSubscriptionRepository)
 {
     _customerService                  = customerService;
     _messageProviderService           = messageProviderService;
     _outOfStockSubscriptionRepository = outOfStockSubscriptionRepository;
 }
 public ActivatedValueForPurchasedGiftVouchersCommandHandler(
     IGiftVoucherService giftVoucherService,
     ILanguageService languageService,
     IMessageProviderService messageProviderService)
 {
     _giftVoucherService     = giftVoucherService;
     _languageService        = languageService;
     _messageProviderService = messageProviderService;
 }
 public InsertVendorReviewCommandHandler(IVendorService vendorService, IWorkContext workContext,
                                         ICustomerService customerService, IMessageProviderService messageProviderService,
                                         LanguageSettings languageSettings, VendorSettings vendorSettings)
 {
     _vendorService          = vendorService;
     _workContext            = workContext;
     _customerService        = customerService;
     _messageProviderService = messageProviderService;
     _languageSettings       = languageSettings;
     _vendorSettings         = vendorSettings;
 }
示例#12
0
 public DeliveryCommandHandler(
     IMediator mediator,
     IOrderService orderService,
     IShipmentService shipmentService,
     IMessageProviderService messageProviderService)
 {
     _mediator               = mediator;
     _orderService           = orderService;
     _shipmentService        = shipmentService;
     _messageProviderService = messageProviderService;
 }
示例#13
0
 public FacebookAuthenticationEventConsumer(
     IUserFieldService userFieldService,
     IMessageProviderService messageProviderService,
     IWorkContext workContext,
     CustomerSettings customerSettings)
 {
     _userFieldService       = userFieldService;
     _messageProviderService = messageProviderService;
     _workContext            = workContext;
     _customerSettings       = customerSettings;
 }
示例#14
0
 public EndAuctionsTask(IAuctionService auctionService,
                        IMessageProviderService messageProviderService, LanguageSettings translationService, IShoppingCartService shoppingCartService,
                        ICustomerService customerService, ILogger logger)
 {
     _auctionService         = auctionService;
     _messageProviderService = messageProviderService;
     _languageSettings       = translationService;
     _shoppingCartService    = shoppingCartService;
     _customerService        = customerService;
     _logger = logger;
 }
        public InsertNewsCommentCommandHandler(IWorkContext workContext, INewsService newsService,
                                               ICustomerService customerService, IMessageProviderService messageProviderService, NewsSettings newsSettings,
                                               LanguageSettings languageSettings)
        {
            _workContext            = workContext;
            _newsService            = newsService;
            _customerService        = customerService;
            _messageProviderService = messageProviderService;

            _newsSettings     = newsSettings;
            _languageSettings = languageSettings;
        }
示例#16
0
 public RefundOfflineCommandHandler(
     IMediator mediator,
     IOrderService orderService,
     IPaymentTransactionService paymentTransactionService,
     IMessageProviderService messageProviderService,
     LanguageSettings languageSettings)
 {
     _mediator     = mediator;
     _orderService = orderService;
     _paymentTransactionService = paymentTransactionService;
     _messageProviderService    = messageProviderService;
     _languageSettings          = languageSettings;
 }
示例#17
0
        public InsertBlogCommentCommandHandler(IBlogService blogService, IWorkContext workContext,
                                               ICustomerService customerService, ICustomerActivityService customerActivityService, IMessageProviderService messageProviderService,
                                               ITranslationService translationService, LanguageSettings languageSettings, BlogSettings blogSettings)
        {
            _blogService             = blogService;
            _workContext             = workContext;
            _customerService         = customerService;
            _customerActivityService = customerActivityService;
            _messageProviderService  = messageProviderService;
            _translationService      = translationService;

            _languageSettings = languageSettings;
            _blogSettings     = blogSettings;
        }
 public InsertProductReviewCommandHandler(
     IProductReviewService productReviewService,
     ICustomerService customerService,
     IMessageProviderService messageProviderService,
     IMediator mediator,
     CatalogSettings catalogSettings,
     LanguageSettings languageSettings)
 {
     _productReviewService   = productReviewService;
     _customerService        = customerService;
     _messageProviderService = messageProviderService;
     _mediator         = mediator;
     _catalogSettings  = catalogSettings;
     _languageSettings = languageSettings;
 }
 public ProcessOrderPaidCommandHandler(
     IMessageProviderService messageProviderService,
     ICustomerService customerService,
     IMediator mediator,
     IPdfService pdfService,
     OrderSettings orderSettings,
     LanguageSettings languageSettings)
 {
     _messageProviderService = messageProviderService;
     _customerService        = customerService;
     _mediator         = mediator;
     _pdfService       = pdfService;
     _orderSettings    = orderSettings;
     _languageSettings = languageSettings;
 }
示例#20
0
 public ShipCommandHandler(
     IMediator mediator,
     IOrderService orderService,
     IShipmentService shipmentService,
     IProductService productService,
     IInventoryManageService inventoryManageService,
     IMessageProviderService messageProviderService)
 {
     _mediator               = mediator;
     _orderService           = orderService;
     _shipmentService        = shipmentService;
     _productService         = productService;
     _inventoryManageService = inventoryManageService;
     _messageProviderService = messageProviderService;
 }
 public DeleteAccountCommandHandler(
     ICustomerService customerService,
     IMessageProviderService messageProviderService,
     IQueuedEmailService queuedEmailService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICustomerActivityService customerActivityService,
     ITranslationService translationService,
     LanguageSettings languageSettings)
 {
     _customerService               = customerService;
     _messageProviderService        = messageProviderService;
     _queuedEmailService            = queuedEmailService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _customerActivityService       = customerActivityService;
     _translationService            = translationService;
     _languageSettings              = languageSettings;
 }
 public PartiallyRefundCommandHandler(
     IPaymentService paymentService,
     IPaymentTransactionService paymentTransactionService,
     IMediator mediator,
     IMessageProviderService messageProviderService,
     ILogger logger,
     IOrderService orderService,
     LanguageSettings languageSettings)
 {
     _paymentService            = paymentService;
     _paymentTransactionService = paymentTransactionService;
     _orderService           = orderService;
     _mediator               = mediator;
     _messageProviderService = messageProviderService;
     _logger           = logger;
     _languageSettings = languageSettings;
 }
示例#23
0
        public virtual async Task <IActionResult> EmailWishlist(WishlistEmailAFriendModel model, bool captchaValid,
                                                                [FromServices] IMessageProviderService messageProviderService,
                                                                [FromServices] CaptchaSettings captchaSettings)
        {
            if (!await _permissionService.Authorize(StandardPermission.EnableWishlist) || !_shoppingCartSettings.EmailWishlistEnabled)
            {
                return(RedirectToRoute("HomePage"));
            }

            var cart = _shoppingCartService.GetShoppingCart(_workContext.CurrentStore.Id, ShoppingCartType.Wishlist);

            if (!cart.Any())
            {
                return(RedirectToRoute("HomePage"));
            }

            //validate CAPTCHA
            if (captchaSettings.Enabled && captchaSettings.ShowOnEmailWishlistToFriendPage && !captchaValid)
            {
                ModelState.AddModelError("", captchaSettings.GetWrongCaptchaMessage(_translationService));
            }

            //check whether the current customer is guest and ia allowed to email wishlist
            if (await _groupService.IsGuest(_workContext.CurrentCustomer) && !_shoppingCartSettings.AllowAnonymousUsersToEmailWishlist)
            {
                ModelState.AddModelError("", _translationService.GetResource("Wishlist.EmailAFriend.OnlyRegisteredUsers"));
            }

            if (ModelState.IsValid)
            {
                //email
                await messageProviderService.SendWishlistEmailAFriendMessage(_workContext.CurrentCustomer, _workContext.CurrentStore,
                                                                             _workContext.WorkingLanguage.Id, model.YourEmailAddress,
                                                                             model.FriendEmail, FormatText.ConvertText(model.PersonalMessage));

                model.SuccessfullySent = true;
                model.Result           = _translationService.GetResource("Wishlist.EmailAFriend.SuccessfullySent");

                return(View(model));
            }

            //If we got this far, something failed, redisplay form
            model.DisplayCaptcha = captchaSettings.Enabled && captchaSettings.ShowOnEmailWishlistToFriendPage;
            return(View(model));
        }
示例#24
0
 public OrderStatusCommandHandler(
     IOrderService orderService,
     ICustomerService customerService,
     IPdfService pdfService,
     IMessageProviderService messageProviderService,
     IVendorService vendorService,
     IMediator mediator,
     OrderSettings orderSettings,
     LoyaltyPointsSettings loyaltyPointsSettings)
 {
     _orderService           = orderService;
     _customerService        = customerService;
     _pdfService             = pdfService;
     _messageProviderService = messageProviderService;
     _vendorService          = vendorService;
     _mediator              = mediator;
     _orderSettings         = orderSettings;
     _loyaltyPointsSettings = loyaltyPointsSettings;
 }
示例#25
0
 public LoginController(
     CustomerSettings customerSettings,
     CaptchaSettings captchaSettings,
     ITranslationService translationService,
     ICustomerManagerService customerManagerService,
     ICustomerService customerService,
     IGrandAuthenticationService authenticationService,
     IMessageProviderService messageProviderService,
     IWorkContext workContext,
     IMediator mediator)
 {
     _customerSettings       = customerSettings;
     _captchaSettings        = captchaSettings;
     _translationService     = translationService;
     _customerManagerService = customerManagerService;
     _customerService        = customerService;
     _authenticationService  = authenticationService;
     _messageProviderService = messageProviderService;
     _workContext            = workContext;
     _mediator = mediator;
 }
 public GiftVoucherViewModelService(
     IGiftVoucherService giftVoucherService, IOrderService orderService,
     IPriceFormatter priceFormatter, IMessageProviderService messageProviderService,
     IDateTimeService dateTimeService,
     ICurrencyService currencyService,
     LanguageSettings languageSettings,
     ITranslationService translationService, ILanguageService languageService,
     ICustomerActivityService customerActivityService, IWorkContext workContext)
 {
     _giftVoucherService      = giftVoucherService;
     _orderService            = orderService;
     _priceFormatter          = priceFormatter;
     _messageProviderService  = messageProviderService;
     _dateTimeService         = dateTimeService;
     _currencyService         = currencyService;
     _languageSettings        = languageSettings;
     _translationService      = translationService;
     _languageService         = languageService;
     _customerActivityService = customerActivityService;
     _workContext             = workContext;
 }
示例#27
0
 public MerchandiseReturnViewModelService(IOrderService orderService,
                                          IWorkContext workContext,
                                          IProductService productService,
                                          ICustomerService customerService, IDateTimeService dateTimeService,
                                          ITranslationService translationService,
                                          IMessageProviderService messageProviderService, LanguageSettings languageSettings,
                                          ICustomerActivityService customerActivityService,
                                          IMerchandiseReturnService merchandiseReturnService,
                                          IPriceFormatter priceFormatter,
                                          ICurrencyService currencyService,
                                          AddressSettings addressSettings,
                                          ICountryService countryService,
                                          IAddressAttributeService addressAttributeService,
                                          IAddressAttributeParser addressAttributeParser,
                                          IDownloadService downloadService,
                                          OrderSettings orderSettings)
 {
     _orderService             = orderService;
     _workContext              = workContext;
     _productService           = productService;
     _customerService          = customerService;
     _dateTimeService          = dateTimeService;
     _translationService       = translationService;
     _messageProviderService   = messageProviderService;
     _languageSettings         = languageSettings;
     _customerActivityService  = customerActivityService;
     _merchandiseReturnService = merchandiseReturnService;
     _priceFormatter           = priceFormatter;
     _currencyService          = currencyService;
     _addressSettings          = addressSettings;
     _countryService           = countryService;
     _addressAttributeService  = addressAttributeService;
     _addressAttributeParser   = addressAttributeParser;
     _downloadService          = downloadService;
     _orderSettings            = orderSettings;
 }
示例#28
0
 public SendProductEmailAFriendMessageCommandHandler(IMessageProviderService messageProviderService)
 {
     _messageProviderService = messageProviderService;
 }
 public InsertOrderNoteCommandHandler(IMessageProviderService messageProviderService, IOrderService orderService)
 {
     _messageProviderService = messageProviderService;
     _orderService           = orderService;
 }
示例#30
0
 public SendProductAskQuestionMessageCommandHandler(IMessageProviderService messageProviderService)
 {
     _messageProviderService = messageProviderService;
 }