public OrderValidatorService( ILogService log, IDbFactory dbFactory, IEmailService emailService, ISettingsService settings, IOrderHistoryService orderHistory, ISystemActionService actionService, IPriceService priceService, IHtmlScraperService htmlScraper, IAddressService addressService, AddressDTO returnAddress, IShipmentApi stampsRateApi, ITime time, CompanyDTO company) { _log = log; _dbFactory = dbFactory; _time = time; _emailService = emailService; _settings = settings; _orderHistory = orderHistory; _actionService = actionService; _priceService = priceService; _htmlScraper = htmlScraper; _addressService = addressService; _returnAddress = returnAddress; _stampsRateApi = stampsRateApi; _company = company; }
public WooCommerceOrdersSynchronizer(ILogService log, IMarketApi api, CompanyDTO company, ISettingsService settings, ISyncInformer syncInfo, IList <IShipmentApi> rateProviders, IQuantityManager quantityManager, IEmailService emailService, IOrderValidatorService validatorService, IOrderHistoryService orderHistoryService, ICacheService cacheService, ISystemActionService systemAction, ICompanyAddressService companyAddress, ITime time, IWeightService weightService, ISystemMessageService messageService) : base(log, api, company, settings, syncInfo, rateProviders, quantityManager, emailService, validatorService, orderHistoryService, cacheService, systemAction, companyAddress, time, weightService, messageService) { }
public CallSupplieroasisProcessing(ILogService log, ITime time, ICacheService cacheService, IEmailService emailService, IDbFactory dbFactory, CompanyDTO company) { _dbFactory = dbFactory; _cacheService = cacheService; _barcodeService = new BarcodeService(log, time, dbFactory); _trackingNumberService = new TrackingNumberService(log, time, dbFactory); _log = log; _time = time; _emailService = emailService; _company = company; _weightService = new WeightService(); _messageService = new SystemMessageService(_log, _time, dbFactory); _actionService = new SystemActionService(_log, _time); _htmlScraper = new HtmlScraperService(log, time, dbFactory); var itemHistoryService = new ItemHistoryService(log, time, dbFactory); _autoCreateListingService = new AutoCreateNonameListingService(_log, _time, dbFactory, cacheService, _barcodeService, _emailService, itemHistoryService, AppSettings.IsDebug); }
public CallEBayProcessing(ILogService log, ITime time, ICacheService cacheService, IDbFactory dbFactory, IStyleManager styleManager, eBayApi eBayApi, IEmailService emailService, CompanyDTO company) { _log = log; _time = time; _dbFactory = dbFactory; _cacheService = cacheService; _styleManager = styleManager; _descriptionTemplatePath = Path.Combine(AppSettings.TemplateDirectory, TemplateHelper.EBayDescriptionTemplateName); _descriptionMultiListingTemplatePath = Path.Combine(AppSettings.TemplateDirectory, TemplateHelper.EBayDescriptionMultiListingTemplateName); _eBayApi = eBayApi; _company = company; _emailService = emailService; _actionService = new SystemActionService(_log, _time); _htmlScraper = new HtmlScraperService(log, time, dbFactory); var itemHistoryService = new ItemHistoryService(_log, _time, _dbFactory); _barcodeService = new BarcodeService(log, time, dbFactory); _autoCreateListingService = new AutoCreateEBayListingService(_log, _time, dbFactory, cacheService, _barcodeService, _emailService, itemHistoryService, AppSettings.IsDebug); }
private bool IsPrintLabelsInProgress(IUnitOfWork db, ISystemActionService actionService, ITime time) { var after = time.GetUtcTime().AddHours(-1); var printInProgressList = actionService.GetInProgressByType(db, SystemActionType.PrintBatch, after); return(printInProgressList.Any()); }
public CallMessagesResult <bool> UpdateFeed(ILogService log, ITime time, IDbFactory dbFactory, ISystemActionService actionService, IItemHistoryService itemHistoryService, long companyId) { var sourceFeed = Path.Combine(UrlHelper.GetImportCatalogFeedPath(), FileName); var marketplaceManager = new MarketplaceKeeper(dbFactory, false); marketplaceManager.Init(); IWalmartApi api = (IWalmartApi) new MarketFactory(marketplaceManager.GetAll(), time, log, dbFactory, null) .GetApi(companyId, MarketType.WalmartCA, null); var service = new WalmartListingInfoReader(log, time, api, dbFactory, actionService, itemHistoryService, null, null); service.UpdateListingInfo(sourceFeed); return(new CallMessagesResult <bool>() { Data = true }); }
public CallWalmartProcessing(ILogService log, ITime time, ICacheService cacheService, IDbFactory dbFactory, IEmailService emailService, IItemHistoryService itemHistoryService, WalmartApi walmartApi, CompanyDTO company) { _log = log; _time = time; _dbFactory = dbFactory; _cacheService = cacheService; _walmartApi = walmartApi; _company = company; _emailService = emailService; _itemHistoryService = itemHistoryService; _actionService = new SystemActionService(_log, _time); _htmlScraper = new HtmlScraperService(log, time, dbFactory); _barcodeService = new BarcodeService(log, time, dbFactory); _openApi = new WalmartOpenApi(_log, "trn9fdghvb8p9gjj9j6bvjwx"); _autoCreateListingService = new AutoCreateWalmartListingService(log, time, dbFactory, _cacheService, _barcodeService, _emailService, _openApi, itemHistoryService, AppSettings.IsDebug); }
public MenuActionService(IMenuActionRepository menuActionRepository, ISystemActionService systemActionService, ISystemControllerService systemControllerService, IMenuService menuService, IMapper mapper) { _menuActionRepository = menuActionRepository; _systemActionService = systemActionService; _systemControllerService = systemControllerService; _menuService = menuService; _mapper = mapper; }
public HasCancellationChecker(ILogService log, ISystemActionService systemAction, ITime time) { _time = time; _systemAction = systemAction; _log = log; }
public AddCommentEmailRule(ILogService log, ISystemActionService actionService, ITime time) { _log = log; _time = time; _actionService = actionService; }
public ManageService(ILogService log, IDbFactory dbFactory, ISystemActionService actionService) { _log = log; _dbFactory = dbFactory; _actionService = actionService; }
public AcknowledgementDataUpdater(ISystemActionService actionService, ILogService log, ITime time, IDbFactory dbFactory) : base(log, time, dbFactory) { _actionService = actionService; }
public OrderDeliveryInquiryEmailRule(ILogService log, ITime time, IEmailService emailService, ISystemActionService actionService) { _log = log; _time = time; _emailService = emailService; _actionService = actionService; }
public GrouponOrderCancellation(GrouponApi api, ISystemActionService actionService, ILogService log, ITime time) { _api = api; _log = log; _time = time; _actionService = actionService; }
public AddressNotChangedEmailRule(ILogService log, ITime time, IEmailService emailService, ISystemActionService actionService) { _log = log; _time = time; _emailService = emailService; _actionService = actionService; }
public WalmartOrderCancellation(IWalmartApi api, ISystemActionService actionService, ILogService log, ITime time) { _api = api; _log = log; _time = time; _actionService = actionService; }
public RemoveSignatureEmailRule(ILogService log, ITime time, IEmailService emailService, ISystemActionService actionService) { _log = log; _time = time; _emailService = emailService; _actionService = actionService; }
public CallQuantityProcessing(IDbFactory dbFactory, ISystemActionService actionService, ILogService log, ITime time) { _dbFactory = dbFactory; _log = log; _time = time; _actionService = actionService; }
public OrderCommentService(IDbFactory dbFactory, ILogService log, ITime time, ISystemActionService actionService) { _dbFactory = dbFactory; _log = log; _time = time; _actionService = actionService; }
public NoticeLeftTrackingRule(ILogService log, ISystemActionService actionService, IAddressService addressService, ITime time) { _actionService = actionService; _addressService = addressService; _log = log; _time = time; }
public static CallMessagesResultVoid Apply(IUnitOfWork db, ISystemActionService actionService, InventoryGroupPriceViewModel model, long?by) { return(new CallMessagesResultVoid() { Status = CallStatus.Success }); }
public AdjustmentDataUpdater(ISystemActionService actionService, IEmailService emailService, ILogService log, ITime time, IDbFactory dbFactory) : base(log, time, dbFactory) { _actionService = actionService; _emailService = emailService; }
public BaseOrderCancellation(IMarketOrderCancellationApi api, ISystemActionService actionService, ILogService log, ITime time) { _api = api; _log = log; _time = time; _actionService = actionService; }
public CallSystemActionProcessing(ILogService log, IDbFactory dbFactory, ITime time, ISystemActionService actionService) { _log = log; _dbFactory = dbFactory; _time = time; _actionService = actionService; }
public void ProcessSystemAction(ISystemActionService actionService, string feedDirectory) { using (var db = _dbFactory.GetRWDb()) { var toProcessActions = actionService.GetUnprocessedByType(db, SystemActionType.ProcessUploadOrderFeed, null, null); foreach (var action in toProcessActions) { _log.Info("Find action: " + action.Id); var actionStatus = SystemActionStatus.None; var output = new PublishFeedOutput(); try { var inputData = SystemActionHelper.FromStr <PublishFeedInput>(action.InputData); var filepath = Path.Combine(feedDirectory, inputData.FileName); var uploadResult = UploadFeed(filepath, (MarketType)(inputData.Market ?? (int)MarketType.OfflineOrders), inputData.MarketplaceId, (PublishFeedModes)(inputData.Mode ?? (int)PublishFeedModes.Publish), inputData.IsPrime); output.ProgressPercent = 100; output.IsSuccess = true; if (uploadResult != null) { output.MatchedCount = uploadResult.MatchedCount; output.ParsedCount = uploadResult.ParsedCount; output.Processed1OperationCount = uploadResult.Processed1Count; output.Processed2OperationCount = uploadResult.Processed2Count; } actionStatus = SystemActionStatus.Done; _log.Info("Sale feed processed: " + filepath + ", actionId=" + action.Id); } catch (Exception ex) { actionStatus = SystemActionStatus.Fail; _log.Error("Fail quantity distributed, actionId=" + action.Id + ", status=" + actionStatus, ex); } actionService.SetResult(db, action.Id, actionStatus, output, null); } db.Commit(); } }
public JetOrderReturn(JetApi api, ISystemActionService actionService, IEmailService emailService, ILogService log, ITime time) { _api = api; _log = log; _time = time; _actionService = actionService; _emailService = emailService; }
public BaseOrderRefundService(IRefundApi api, ISystemActionService actionService, IEmailService emailService, ILogService log, ITime time) { _api = api; _log = log; _time = time; _actionService = actionService; _emailService = emailService; }
public CancellationEmailRule(ILogService log, ITime time, IEmailService emailService, ISystemActionService systemAction, CompanyDTO company) { _log = log; _time = time; _systemAction = systemAction; _emailService = emailService; _company = company; }
public UndeliverableAsAddressedTrackingRule(ILogService log, ISystemActionService actionService, IAddressService addressService, IEmailService emailService, ITime time) { _actionService = actionService; _addressService = addressService; _emailService = emailService; _log = log; _time = time; }
public PublicationRunnerActionBased(ILogService log, ITime time, IDbFactory dbFactory, ISystemActionService actionService, PublishingMode mode) { _log = log; _time = time; _dbFactory = dbFactory; _actionService = actionService; _mode = mode; }