public AdminController(ICurrencyService currencyService, ISystemMessageService systemMessageService)
        {
            _currencyService      = currencyService;
            _systemMessageService = systemMessageService;

            Logger = NullLogger.Instance;
        }
Exemple #2
0
 public WooCommerceOrdersSynchronizer(ILogService log,
                                      CompanyDTO company,
                                      ISyncInformer syncInfo,
                                      IList <IShipmentApi> rateProviders,
                                      ICompanyAddressService companyAddress,
                                      ITime time,
                                      IWeightService weightService,
                                      ISystemMessageService messageService) : base(log,
                                                                                   null,
                                                                                   company,
                                                                                   null,
                                                                                   syncInfo,
                                                                                   rateProviders,
                                                                                   null,
                                                                                   null,
                                                                                   null,
                                                                                   null,
                                                                                   null,
                                                                                   null,
                                                                                   companyAddress,
                                                                                   time,
                                                                                   weightService,
                                                                                   messageService)
 {
 }
Exemple #3
0
 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)
 {
 }
Exemple #4
0
        public BillController(IWalletService walletService, ISystemMessageService systemMessageService)
        {
            _walletService        = walletService;
            _systemMessageService = systemMessageService;

            Logger = NullLogger.Instance;
        }
Exemple #5
0
        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);
        }
Exemple #6
0
 public UpdateShopifyPaymentStatusThread(ShopifyApi api,
                                         long companyId,
                                         ISystemMessageService messageService,
                                         TimeSpan?callbackInterval = null)
     : base("UpdateShopifyPaymentStatus", companyId, messageService, callbackInterval)
 {
     _api = api;
 }
Exemple #7
0
 public UpdateOrdersFromOrderApiThread(string logTag,
                                       IMarketApi api,
                                       long companyId,
                                       ISystemMessageService messageService,
                                       TimeSpan?callbackInterval) : base(logTag, companyId, messageService, callbackInterval)
 {
     _api    = api;
     _market = api.Market;
 }
        public WeiXinWithdrawal(ICurrencyService currencyService, IWalletService walletService, ISystemMessageService systemMessageService, IConfigService configService)
        {
            _currencyService      = currencyService;
            _walletService        = walletService;
            _systemMessageService = systemMessageService;
            _configService        = configService;

            Logger = NullLogger.Instance;
        }
 public EBayRepublishThread(eBayApi api,
                            long companyId,
                            ISystemMessageService messageService,
                            IList <TimeSpan> callTimeStamps,
                            ITime time)
     : base(api.Market + api.MarketplaceId + "Republish", companyId, messageService, callTimeStamps, time)
 {
     _api = api;
 }
Exemple #10
0
 public UpdateJetListingQtyThread(JetApi api,
                                  long companyId,
                                  ISystemMessageService messageService,
                                  TimeSpan?callbackInterval,
                                  TimeSpan betweenProcessingInverval)
     : base("UpdateJetListingQty", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
 public UpdateMagentoOrderDataThread(Magento20MarketApi api,
                                     long companyId,
                                     ISystemMessageService messageService,
                                     TimeSpan?callbackInterval,
                                     TimeSpan betweenProcessingInverval)
     : base("UpdateMagento" + api.MarketplaceId + "OrderData", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
 public UpdateAmazonBuyBoxStatusThread(IList <AmazonApi> apiList,
                                       long userId,
                                       ISystemMessageService messageService,
                                       TimeSpan?callbackInterval,
                                       TimeSpan betweenProcessingInverval)
     : base("UpdateBuyBoxStatus", userId, messageService, callbackInterval)
 {
     _apiList = apiList;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
 public UpdateAdjustmentDataThread(AmazonApi api,
                                   long companyId,
                                   ISystemMessageService messageService,
                                   TimeSpan?callbackInterval,
                                   TimeSpan betweenProcessingInverval)
     : base("UpdateAdjustmentData", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #14
0
 public ReadListingOverstockInfoFromMarketThread(SupplieroasisApi api,
                                                 long companyId,
                                                 ISystemMessageService messageService,
                                                 TimeSpan?callbackInterval,
                                                 TimeSpan betweenProcessingInverval)
     : base("ReadListingOverstockInfoFromMarket", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #15
0
 public UpdateWalmartOrderDataThread(IWalmartApi api,
                                     long companyId,
                                     ISystemMessageService messageService,
                                     TimeSpan?callbackInterval,
                                     TimeSpan betweenProcessingInverval)
     : base("Update" + api.Market + "OrderData", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #16
0
 public UpdateDSListingQtyThread(DropShipperApi api,
                                 long userId,
                                 ISystemMessageService messageService,
                                 TimeSpan?callbackInterval,
                                 TimeSpan betweenProcessingInverval)
     : base("UpdateDSListingQty", userId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #17
0
 public ReadListingEBayInfoFromMarketThread(eBayApi api,
                                            long companyId,
                                            ISystemMessageService messageService,
                                            TimeSpan?callbackInterval,
                                            TimeSpan betweenProcessingInverval)
     : base("ReadListing" + api.Market + api.MarketplaceId + "InfoFromMarket", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #18
0
 public UpdateGrouponOrderCancellationThread(GrouponApi api,
                                             long companyId,
                                             ISystemMessageService messageService,
                                             TimeSpan?callbackInterval,
                                             TimeSpan betweenProcessingInverval)
     : base("Update" + api.Market + "OrderCancellation", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
 public ImportShopifyListingDataThread(ShopifyApi api,
                                       long companyId,
                                       ISystemMessageService messageService,
                                       TimeSpan?callbackInterval,
                                       TimeSpan betweenProcessingInverval)
     : base("ImportShopifyListingData", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #20
0
 public ReadWooCommerceListingInfoThread(ShopifyApi api,
                                         long companyId,
                                         ISystemMessageService messageService,
                                         TimeSpan?callbackInterval,
                                         TimeSpan betweenProcessingInverval)
     : base("ReadWooCommerceListingInfo", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #21
0
 public ReadReturnWalmartInfoFromMarketThread(IWalmartApi api,
                                              long userId,
                                              ISystemMessageService messageService,
                                              TimeSpan?callbackInterval,
                                              TimeSpan betweenProcessingInverval)
     : base("ReadReturn" + api.Market + "InfoFromMarket", userId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
 public UpdateOverstockOrderDataThread(SupplieroasisApi api,
                                       long companyId,
                                       ISystemMessageService messageService,
                                       TimeSpan?callbackInterval,
                                       TimeSpan betweenProcessingInverval)
     : base("UpdateOverstockOrderData", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #23
0
 public UpdateShopifyOrderRefundDataThread(ShopifyApi api,
                                           long companyId,
                                           ISystemMessageService messageService,
                                           TimeSpan?callbackInterval,
                                           TimeSpan betweenProcessingInverval)
     : base("UpdateShopifyOrderRefundData", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #24
0
 public UpdateEBayListingQtyThread(eBayApi api,
                                   long companyId,
                                   ISystemMessageService messageService,
                                   TimeSpan?callbackInterval,
                                   TimeSpan betweenProcessingInverval)
     : base("UpdateEBay" + api.MarketplaceId + "ListingQty", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #25
0
        public WeiXinPayment(IPaymentService paymentService, ICurrencyService currencyService, ISystemMessageService systemMessageService, IOrderService orderService, IConfigService configService)
        {
            _paymentService       = paymentService;
            _currencyService      = currencyService;
            _systemMessageService = systemMessageService;
            _orderService         = orderService;
            _configService        = configService;

            Logger = NullLogger.Instance;
        }
 public UpdateJetOrderAcknowledgmentDataThread(JetApi api,
                                               long companyId,
                                               ISystemMessageService messageService,
                                               TimeSpan?callbackInterval,
                                               TimeSpan betweenProcessingInverval)
     : base("UpdateJetOrderAcknowledgment", companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
        public AlipayWithdrawal(IPaymentService paymentService, ICurrencyService currencyService, IWalletService walletService, ISystemMessageService systemMessageService, IConfigService configService)
        {
            _paymentService       = paymentService;
            _currencyService      = currencyService;
            _walletService        = walletService;
            _systemMessageService = systemMessageService;
            _configService        = configService;

            Logger = NullLogger.Instance;
        }
 public UpdateListingsQtyOnAmazonThread(string tag,
                                        AmazonApi api,
                                        long companyId,
                                        ISystemMessageService messageService,
                                        TimeSpan?interval,
                                        TimeSpan betweenProcessingInverval)
     : base(tag, companyId, messageService, interval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #29
0
 public UpdateListingsPriceOnAmazonThread(string logTag,
                                          AmazonApi api,
                                          long companyId,
                                          ISystemMessageService messageService,
                                          TimeSpan?callbackInterval,
                                          TimeSpan betweenProcessingInverval)
     : base(logTag, companyId, messageService, callbackInterval)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }
Exemple #30
0
 public UpdateShopifyOrderDataThread(ShopifyApi api,
                                     long companyId,
                                     ISystemMessageService messageService,
                                     TimeSpan?callbackInterval,
                                     TimeSpan betweenProcessingInverval,
                                     ILogService overrideLogger = null)
     : base("UpdateShopifyOrderData", companyId, messageService, callbackInterval, overrideLogger)
 {
     _api = api;
     _betweenProcessingInverval = betweenProcessingInverval;
 }