public promoService(
     IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     ICurrencyService currencyService,
     ISettingService settingService,
     IWorkContext workContext,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     CurrencySettings currencySettings,
     IProductAttributeService productAttributeService,
     IPriceCalculationService priceCalculationService,
     ITaxService taxService,
     ILogger logger,
     IStoreService storeService,
     IPromoUtilities promoUtilities,
     PromoSettings promoSettings,
     IShippingService shippingService,
     IGenericAttributeService genericAttributeService,
     IStoreContext storeContext,
     IProductMappingService productMappingService,
     IShoppingCartService shoppingCartService,
     ICouponService qixolPromosCouponService,
     IAttributeValueService attributeValueService,
     IOrderService orderService,
     ICustomerService customerService,
     ILocalizationService localizationService)
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._currencyService = currencyService;
     this._settingService = settingService;
     this._workContext = workContext;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._currencySettings = currencySettings;
     this._productAttributeService = productAttributeService;
     this._priceCalculationService = priceCalculationService;
     this._taxService = taxService;
     this._logger = logger;
     this._promoUtilities = promoUtilities;
     this._storeService = storeService;
     this._shippingService = shippingService;
     this._genericAttributeService = genericAttributeService;
     this._storeContext = storeContext;
     this._productMappingService = productMappingService;
     this._shoppingCartService = shoppingCartService;
     this._couponService = qixolPromosCouponService;
     this._attributeValueService = attributeValueService;
     this._orderService = orderService;
     this._promoSettings = promoSettings;
     this._customerService = customerService;
     this._localizationService = localizationService;
 }
        public MessageTokenProvider(ILanguageService languageService,
            ILocalizationService localizationService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            ICurrencyService currencyService,
            IWorkContext workContext,
            IDownloadService downloadService,
            IOrderService orderService,
            IPaymentService paymentService,
            IStoreService storeService,
            IStoreContext storeContext,
            IProductAttributeParser productAttributeParser,
            IAddressAttributeFormatter addressAttributeFormatter,
            MessageTemplatesSettings templatesSettings,
            CatalogSettings catalogSettings,
            TaxSettings taxSettings,
            CurrencySettings currencySettings,
            ShippingSettings shippingSettings,
            IEventPublisher eventPublisher,
            PromoSettings promoSettings,
            IPromoOrderService promoOrderService
            )
            : base(languageService, localizationService,
            dateTimeHelper, priceFormatter, currencyService, workContext,
            downloadService, orderService, paymentService, storeService,
            storeContext, productAttributeParser,
            addressAttributeFormatter, templatesSettings, catalogSettings,
            taxSettings, currencySettings, shippingSettings, eventPublisher)
        {
            this._languageService = languageService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._currencyService = currencyService;
            this._workContext = workContext;
            this._downloadService = downloadService;
            this._orderService = orderService;
            this._paymentService = paymentService;
            this._productAttributeParser = productAttributeParser;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._storeService = storeService;
            this._storeContext = storeContext;

            this._templatesSettings = templatesSettings;
            this._catalogSettings = catalogSettings;
            this._taxSettings = taxSettings;
            this._currencySettings = currencySettings;
            this._shippingSettings = shippingSettings;
            this._eventPublisher = eventPublisher;

            this._promoSettings = promoSettings;
            this._promoOrderService = promoOrderService;
        }
 public GiftCardController(IGiftCardService giftCardService,
                           IPriceFormatter priceFormatter, IWorkflowMessageService workflowMessageService,
                           IDateTimeHelper dateTimeHelper, LocalizationSettings localizationSettings,
                           ICurrencyService currencyService, CurrencySettings currencySettings,
                           ILocalizationService localizationService, ICustomerActivityService customerActivityService,
                           IPermissionService permissionService)
 {
     this._giftCardService         = giftCardService;
     this._priceFormatter          = priceFormatter;
     this._workflowMessageService  = workflowMessageService;
     this._dateTimeHelper          = dateTimeHelper;
     this._localizationSettings    = localizationSettings;
     this._currencyService         = currencyService;
     this._currencySettings        = currencySettings;
     this._localizationService     = localizationService;
     this._customerActivityService = customerActivityService;
     this._permissionService       = permissionService;
 }
Exemple #4
0
        public ShippingByWeightController(IShippingService shippingService,
                                          IStoreService storeService, ICountryService countryService, ShippingByWeightSettings shippingByWeightSettings,
                                          IShippingByWeightService shippingByWeightService, ISettingService settingService,
                                          ICurrencyService currencyService, CurrencySettings currencySettings,
                                          IMeasureService measureService, MeasureSettings measureSettings)
        {
            this._shippingService          = shippingService;
            this._storeService             = storeService;
            this._countryService           = countryService;
            this._shippingByWeightSettings = shippingByWeightSettings;
            this._shippingByWeightService  = shippingByWeightService;
            this._settingService           = settingService;

            this._currencyService  = currencyService;
            this._currencySettings = currencySettings;
            this._measureService   = measureService;
            this._measureSettings  = measureSettings;
        }
Exemple #5
0
 public UPSComputationMethod(IMeasureService measureService,
                             IShippingService shippingService, ISettingService settingService,
                             UPSSettings upsSettings, ICountryService countryService,
                             ICurrencyService currencyService, CurrencySettings currencySettings,
                             IOrderTotalCalculationService orderTotalCalculationService, ILogger logger,
                             ILocalizationService localizationService)
 {
     this._measureService               = measureService;
     this._shippingService              = shippingService;
     this._settingService               = settingService;
     this._upsSettings                  = upsSettings;
     this._countryService               = countryService;
     this._currencyService              = currencyService;
     this._currencySettings             = currencySettings;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._logger = logger;
     this._localizationService = localizationService;
 }
Exemple #6
0
 public DiscountController(IDiscountService discountService,
                           ILocalizationService localizationService, ICurrencyService currencyService,
                           ICategoryService categoryService, IProductService productService,
                           IWebHelper webHelper, IDateTimeHelper dateTimeHelper,
                           ICustomerActivityService customerActivityService, CurrencySettings currencySettings,
                           IPermissionService permissionService)
 {
     this._discountService         = discountService;
     this._localizationService     = localizationService;
     this._currencyService         = currencyService;
     this._categoryService         = categoryService;
     this._productService          = productService;
     this._webHelper               = webHelper;
     this._dateTimeHelper          = dateTimeHelper;
     this._customerActivityService = customerActivityService;
     this._currencySettings        = currencySettings;
     this._permissionService       = permissionService;
 }
Exemple #7
0
 public AuthorizeNetPaymentProcessor(ISettingService settingService,
                                     ICurrencyService currencyService,
                                     ICustomerService customerService,
                                     IWebHelper webHelper,
                                     IOrderTotalCalculationService orderTotalCalculationService,
                                     IEncryptionService encryptionService,
                                     CurrencySettings currencySettings,
                                     AuthorizeNetPaymentSettings authorizeNetPaymentSettings)
 {
     this._authorizeNetPaymentSettings = authorizeNetPaymentSettings;
     this._settingService               = settingService;
     this._currencyService              = currencyService;
     this._customerService              = customerService;
     this._currencySettings             = currencySettings;
     this._webHelper                    = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._encryptionService            = encryptionService;
 }
 public InstamojoProcessor(InstamojoSettings instamojoSettings, ISettingService settingService,
                           ICurrencyService currencyService, ILocalizationService localizationService,
                           CurrencySettings currencySettings, IWebHelper webHelper, IEmailSender emailSender,
                           IEmailAccountService emailAccountService, EmailAccountSettings emailAccountSettings,
                           ICustomerService customerService, IHttpContextAccessor httpContextAccessor)
 {
     this._instamojoSettings    = instamojoSettings;
     this._settingService       = settingService;
     this._currencyService      = currencyService;
     this._currencySettings     = currencySettings;
     this._webHelper            = webHelper;
     this._localizationService  = localizationService;
     this._emailSender          = emailSender;
     this._emailAccountService  = emailAccountService;
     this._emailAccountSettings = emailAccountSettings;
     this._customerService      = customerService;
     this._httpContextAccessor  = httpContextAccessor;
 }
 public TwoCheckoutPaymentProcessor(CurrencySettings currencySettings,
                                    ICurrencyService currencyService,
                                    IHttpContextAccessor httpContextAccessor,
                                    ILocalizationService localizationService,
                                    IPaymentService paymentService,
                                    ISettingService settingService,
                                    IWebHelper webHelper,
                                    TwoCheckoutPaymentSettings twoCheckoutPaymentSettings)
 {
     _currencySettings           = currencySettings;
     _currencyService            = currencyService;
     _httpContextAccessor        = httpContextAccessor;
     _localizationService        = localizationService;
     _paymentService             = paymentService;
     _settingService             = settingService;
     _webHelper                  = webHelper;
     _twoCheckoutPaymentSettings = twoCheckoutPaymentSettings;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="currencyRepository">Currency repository</param>
 /// <param name="storeMappingRepository">Store mapping repository</param>
 /// <param name="currencySettings">Currency settings</param>
 /// <param name="pluginFinder">Plugin finder</param>
 /// <param name="eventPublisher">Event published</param>
 public CurrencyService(ICacheManager cacheManager,
                        IRepository <Currency> currencyRepository,
                        IStoreMappingService storeMappingService,
                        CurrencySettings currencySettings,
                        IPluginFinder pluginFinder,
                        IEventPublisher eventPublisher,
                        IProviderManager providerManager,
                        IStoreContext storeContext)
 {
     this._cacheManager        = cacheManager;
     this._currencyRepository  = currencyRepository;
     this._storeMappingService = storeMappingService;
     this._currencySettings    = currencySettings;
     this._pluginFinder        = pluginFinder;
     this._eventPublisher      = eventPublisher;
     this._providerManager     = providerManager;
     this._storeContext        = storeContext;
 }
Exemple #11
0
 public YapiKrediPaymentProcessor(YapiKrediPaymentSettings YapiKrediPaymentSettings,
                                  ISettingService settingService, ICurrencyService currencyService,
                                  CurrencySettings currencySettings, IWebHelper webHelper,
                                  StoreInformationSettings storeInformationSettings,
                                  ILocalizationService localizationService,
                                  ICustomerService customerService,
                                  IWorkContext workContext)
 {
     this._YapiKrediPaymentSettings = YapiKrediPaymentSettings;
     this._settingService           = settingService;
     this._currencyService          = currencyService;
     this._currencySettings         = currencySettings;
     this._webHelper = webHelper;
     this._storeInformationSettings = storeInformationSettings;
     this._localizationService      = localizationService;
     this._customerService          = customerService;
     this._workContext = workContext;
 }
Exemple #12
0
 public CurrencyController(ICurrencyService currencyService,
                           CurrencySettings currencySettings, ISettingService settingService,
                           IDateTimeHelper dateTimeHelper, ILocalizationService localizationService,
                           IPermissionService permissionService,
                           ILanguageService languageService,
                           IStoreService storeService,
                           IStoreMappingService storeMappingService)
 {
     this._currencyService     = currencyService;
     this._currencySettings    = currencySettings;
     this._settingService      = settingService;
     this._dateTimeHelper      = dateTimeHelper;
     this._localizationService = localizationService;
     this._permissionService   = permissionService;
     this._languageService     = languageService;
     this._storeService        = storeService;
     this._storeMappingService = storeMappingService;
 }
 public PluginConfig(ForteSettings forteSettings,
                     ISettingService settingService,
                     ICurrencyService currencyService,
                     ICustomerService customerService,
                     CurrencySettings currencySettings,
                     IWebHelper webHelper,
                     IOrderTotalCalculationService orderTotalCalculationService,
                     IEncryptionService encryptionService)
 {
     this._forteSettings                = forteSettings;
     this._settingService               = settingService;
     this._currencyService              = currencyService;
     this._customerService              = customerService;
     this._currencySettings             = currencySettings;
     this._webHelper                    = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._encryptionService            = encryptionService;
 }
 public FedexService(CurrencySettings currencySettings,
                     FedexSettings fedexSettings,
                     ICurrencyService currencyService,
                     ILogger logger,
                     IMeasureService measureService,
                     IOrderTotalCalculationService orderTotalCalculationService,
                     IShippingService shippingService,
                     IWorkContext workContext)
 {
     _currencySettings             = currencySettings;
     _fedexSettings                = fedexSettings;
     _currencyService              = currencyService;
     _logger                       = logger;
     _measureService               = measureService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _shippingService              = shippingService;
     _workContext                  = workContext;
 }
Exemple #15
0
 public CurrencyController(ICurrencyService currencyService,
                           CurrencySettings currencySettings,
                           IDateTimeHelper dateTimeHelper,
                           ILocalizedEntityService localizedEntityService,
                           ILanguageService languageService,
                           IStoreMappingService storeMappingService,
                           PluginMediator pluginMediator,
                           ICommonServices services)
 {
     this._currencyService        = currencyService;
     this._currencySettings       = currencySettings;
     this._dateTimeHelper         = dateTimeHelper;
     this._localizedEntityService = localizedEntityService;
     this._languageService        = languageService;
     this._storeMappingService    = storeMappingService;
     this._pluginMediator         = pluginMediator;
     this._services = services;
 }
Exemple #16
0
 public EasyPay2PaymentProcessor(EasyPay2PaymentSettings easyPay2PaymentSettings,
                                 ISettingService settingService, ICurrencyService currencyService,
                                 CurrencySettings currencySettings, IWebHelper webHelper,
                                 ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService,
                                 IOrderTotalCalculationService orderTotalCalculationService, HttpContextBase httpContext, IEncryptionService encryptionService, ILogger logger)
 {
     this._easyPay2PaymentSettings = easyPay2PaymentSettings;
     this._settingService          = settingService;
     this._currencyService         = currencyService;
     this._currencySettings        = currencySettings;
     this._webHelper = webHelper;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._taxService = taxService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._httpContext       = httpContext;
     this._encryptionService = encryptionService;
     this._logger            = logger;
 }
Exemple #17
0
 public EigenPaymentProcessor(EigenPaymentSettings eigenPaymentSettings,
                              ISettingService settingService,
                              ICurrencyService currencyService,
                              ICustomerService customerService,
                              CurrencySettings currencySettings, IWebHelper webHelper,
                              IOrderTotalCalculationService orderTotalCalculationService, IEncryptionService encryptionService,
                              IOrderService orderService)
 {
     this._eigenPaymentSettings         = eigenPaymentSettings;
     this._settingService               = settingService;
     this._currencyService              = currencyService;
     this._customerService              = customerService;
     this._currencySettings             = currencySettings;
     this._webHelper                    = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._encryptionService            = encryptionService;
     this._orderService                 = orderService;
 }
Exemple #18
0
        public static stripe.Charge CreateCharge(this ProcessPaymentRequest processPaymentRequest,
                                                 StripePaymentSettings stripePaymentSettings,
                                                 CurrencySettings currencySettings,
                                                 Store store,
                                                 ICustomerService customerService,
                                                 IStateProvinceService stateProvinceService,
                                                 ICountryService countryService,
                                                 ICurrencyService currencyService,
                                                 IGenericAttributeService genericAttributeService)
        {
            var customer = customerService.GetCustomerById(processPaymentRequest.CustomerId);

            if (customer == null)
            {
                throw new NopException("Customer cannot be loaded");
            }

            var currency = currencyService.GetCurrencyById(currencySettings.PrimaryStoreCurrencyId);

            if (currency == null)
            {
                throw new NopException("Primary store currency cannot be loaded");
            }

            if (!Enum.TryParse(currency.CurrencyCode, out StripeCurrency stripeCurrency))
            {
                throw new NopException($"The {currency.CurrencyCode} currency is not supported by Stripe");
            }


            var stripeCustomerService = new stripe.CustomerService(stripePaymentSettings.GetStripeClient());
            var chargeService         = new stripe.ChargeService(stripePaymentSettings.GetStripeClient());
            var tokenService          = new stripe.TokenService(stripePaymentSettings.GetStripeClient());

            var stripeCustomer = stripeCustomerService.GetOrCreateCustomer(customer, genericAttributeService, stripePaymentSettings);

            var tokenOptions  = processPaymentRequest.CreateTokenOptions(customerService, stateProvinceService, countryService, stripeCurrency);
            var token         = tokenService.Create(tokenOptions);
            var chargeOptions = processPaymentRequest.CreateChargeOptions(store, token, stripePaymentSettings.TransactionMode, stripeCurrency);

            var charge = chargeService.Create(chargeOptions);

            return(charge);
        }
Exemple #19
0
 public ServiceManager(CurrencySettings currencySettings,
                       IActionContextAccessor actionContextAccessor,
                       IAddressService addressService,
                       ICountryService countryService,
                       ICurrencyService currencyService,
                       ICustomerService customerService,
                       IGenericAttributeService genericAttributeService,
                       ILanguageService languageService,
                       ILocalizationService localizationService,
                       ILogger logger,
                       IProductService productService,
                       IOrderService orderService,
                       IOrderTotalCalculationService orderTotalCalculationService,
                       IStateProvinceService stateProvinceService,
                       IStoreContext storeContext,
                       IShoppingCartService shoppingCartService,
                       IUrlHelperFactory urlHelperFactory,
                       IWebHelper webHelper,
                       IWorkContext workContext,
                       ServiceHttpClient httpClient,
                       SkrillSettings settings)
 {
     _currencySettings        = currencySettings;
     _actionContextAccessor   = actionContextAccessor;
     _addressService          = addressService;
     _countryService          = countryService;
     _currencyService         = currencyService;
     _customerService         = customerService;
     _genericAttributeService = genericAttributeService;
     _languageService         = languageService;
     _localizationService     = localizationService;
     _logger         = logger;
     _productService = productService;
     _orderService   = orderService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _stateProvinceService         = stateProvinceService;
     _storeContext        = storeContext;
     _shoppingCartService = shoppingCartService;
     _urlHelperFactory    = urlHelperFactory;
     _webHelper           = webHelper;
     _workContext         = workContext;
     _httpClient          = httpClient;
     _settings            = settings;
 }
 public GoogleShoppingService(IGoogleService googleService,
                              IPriceCalculationService priceCalculationService,
                              ITaxService taxService,
                              IProductService productService,
                              ICategoryService categoryService,
                              IManufacturerService manufacturerService,
                              IPictureService pictureService,
                              ICurrencyService currencyService,
                              ILanguageService languageService,
                              ISettingService settingService,
                              IWorkContext workContext,
                              IMeasureService measureService,
                              IServiceProvider serviceProvider,
                              MeasureSettings measureSettings,
                              GoogleShoppingSettings googleShoppingSettings,
                              CurrencySettings currencySettings,
                              MediaSettings mediaSettings,
                              SecuritySettings securitySettings,
                              IWebHelper webHelper,
                              IUrlHelperFactory urlHelperFactory,
                              IActionContextAccessor actionContextAccessor)
 {
     this._googleService           = googleService;
     this._priceCalculationService = priceCalculationService;
     this._taxService             = taxService;
     this._productService         = productService;
     this._categoryService        = categoryService;
     this._manufacturerService    = manufacturerService;
     this._pictureService         = pictureService;
     this._currencyService        = currencyService;
     this._languageService        = languageService;
     this._settingService         = settingService;
     this._workContext            = workContext;
     this._measureService         = measureService;
     this._serviceProvider        = serviceProvider;
     this._measureSettings        = measureSettings;
     this._googleShoppingSettings = googleShoppingSettings;
     this._currencySettings       = currencySettings;
     this._mediaSettings          = mediaSettings;
     this._securitySettings       = securitySettings;
     this._webHelper             = webHelper;
     this._urlHelperFactory      = urlHelperFactory;
     this._actionContextAccessor = actionContextAccessor;
 }
        private readonly static object _lock = new object();                // codehint: sm-add

        #endregion

        #region Constructors

        public CommonController(IPaymentService paymentService,
                                IShippingService shippingService,
                                ICurrencyService currencyService,
                                IMeasureService measureService,
                                ICustomerService customerService,
                                IUrlRecordService urlRecordService,
                                IWebHelper webHelper,
                                CurrencySettings currencySettings,
                                MeasureSettings measureSettings,
                                IDateTimeHelper dateTimeHelper,
                                ILanguageService languageService,
                                IWorkContext workContext,
                                IStoreContext storeContext,
                                IPermissionService permissionService,
                                ILocalizationService localizationService,
                                IImageCache imageCache,
                                SecuritySettings securitySettings,
                                ITypeFinder typeFinder,
                                IPluginFinder pluginFinder,
                                IGenericAttributeService genericAttributeService,
                                IDbContext dbContext)
        {
            this._paymentService          = paymentService;
            this._shippingService         = shippingService;
            this._currencyService         = currencyService;
            this._measureService          = measureService;
            this._customerService         = customerService;
            this._urlRecordService        = urlRecordService;
            this._webHelper               = webHelper;
            this._currencySettings        = currencySettings;
            this._measureSettings         = measureSettings;
            this._dateTimeHelper          = dateTimeHelper;
            this._languageService         = languageService;
            this._workContext             = workContext;
            this._storeContext            = storeContext;
            this._permissionService       = permissionService;
            this._localizationService     = localizationService;
            this._imageCache              = imageCache;              // codehint: sm-add
            this._securitySettings        = securitySettings;        // codehint: sm-add
            this._typeFinder              = typeFinder;              // codehint: sm-add
            this._pluginFinder            = pluginFinder;            // codehint: sm-add
            this._genericAttributeService = genericAttributeService; // codehint: sm-add
            this._dbContext               = dbContext;               // codehint: sm-add
        }
 public ParatikaController(IWorkContext workContext,
                           IHttpContextAccessor httpContextAccessor,
                           IStoreService storeService,
                           ISettingService settingService,
                           IStoreContext storeContext,
                           ILocalizationService localizationService,
                           ILanguageService languageService,
                           IOrderProcessingService orderProcessingService,
                           IGenericAttributeService genericAttributeService,
                           ParatikaOrderPaymentSettings ParatikaOrderPaymentSettings,
                           ICurrencyService currencyService,
                           IPermissionService permissionService,
                           ICustomerService customerService,
                           CurrencySettings currencySettings,
                           IOrderService orderService,
                           IWebHelper webHelper,
                           IOrderTotalCalculationService orderTotalCalculationService,
                           ILogger logger,
                           IPaymentService paymentService,
                           OrderSettings orderSettings,
                           IPriceFormatter priceFormatter)
 {
     this._httpContextAccessor          = httpContextAccessor;
     this._orderService                 = orderService;
     this._workContext                  = workContext;
     this._storeService                 = storeService;
     this._settingService               = settingService;
     this._storeContext                 = storeContext;
     this._localizationService          = localizationService;
     this._languageService              = languageService;
     this._permissionService            = permissionService;
     this._webHelper                    = webHelper;
     this._orderProcessingService       = orderProcessingService;
     this._genericAttributeService      = genericAttributeService;
     this._paratikaOrderPaymentSettings = ParatikaOrderPaymentSettings;
     this._currencyService              = currencyService;
     this._customerService              = customerService;
     this._currencySettings             = currencySettings;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._logger         = logger;
     this._paymentService = paymentService;
     this._orderSettings  = orderSettings;
     this._priceFormatter = priceFormatter;
 }
 public CommonController(IPaymentService paymentService,
                         IShippingService shippingService,
                         IShoppingCartService shoppingCartService,
                         ICurrencyService currencyService,
                         IMeasureService measureService,
                         ICustomerService customerService,
                         IUrlRecordService urlRecordService,
                         IWebHelper webHelper,
                         CurrencySettings currencySettings,
                         MeasureSettings measureSettings,
                         IDateTimeHelper dateTimeHelper,
                         ILanguageService languageService,
                         IWorkContext workContext,
                         IStoreContext storeContext,
                         IPermissionService permissionService,
                         ILocalizationService localizationService,
                         ISearchTermService searchTermService,
                         ISettingService settingService,
                         IStoreService storeService,
                         CatalogSettings catalogSettings,
                         HttpContextBase httpContext)
 {
     this._paymentService      = paymentService;
     this._shippingService     = shippingService;
     this._shoppingCartService = shoppingCartService;
     this._currencyService     = currencyService;
     this._measureService      = measureService;
     this._customerService     = customerService;
     this._urlRecordService    = urlRecordService;
     this._webHelper           = webHelper;
     this._currencySettings    = currencySettings;
     this._measureSettings     = measureSettings;
     this._dateTimeHelper      = dateTimeHelper;
     this._languageService     = languageService;
     this._workContext         = workContext;
     this._storeContext        = storeContext;
     this._permissionService   = permissionService;
     this._localizationService = localizationService;
     this._searchTermService   = searchTermService;
     this._settingService      = settingService;
     this._storeService        = storeService;
     this._catalogSettings     = catalogSettings;
     this._httpContext         = httpContext;
 }
        public async Task SetUp()
        {
            _currencySettings = GetService <CurrencySettings>();
            _priceFormatter   = GetService <IPriceFormatter>();
            _settingService   = GetService <ISettingService>();

            var languageService = GetService <ILanguageService>();
            var currencyService = GetService <ICurrencyService>();

            var languages = await languageService.GetAllLanguagesAsync();

            _enLangId = languages.FirstOrDefault(p => p.Name == "EN")?.Id ?? 0;

            _euro = await currencyService.GetCurrencyByCodeAsync("EUR");

            _dollar = await currencyService.GetCurrencyByCodeAsync("USD");

            _pound = await currencyService.GetCurrencyByCodeAsync("GBP");
        }
Exemple #25
0
        public FreeShippingOrdersOverController(IShippingService shippingService,
                                                ICountryService countryService, IStateProvinceService stateProvinceService,
                                                IFreeShippingByOrderTotalService freeShippingByOrderTotalService, ISettingService settingService,
                                                ILocalizationService localizationService,
                                                ICurrencyService currencyService, CurrencySettings currencySettings,
                                                IMeasureService measureService, MeasureSettings measureSettings)
        {
            this._shippingService                 = shippingService;
            this._countryService                  = countryService;
            this._stateProvinceService            = stateProvinceService;
            this._freeShippingByOrderTotalService = freeShippingByOrderTotalService;
            this._settingService                  = settingService;
            this._localizationService             = localizationService;

            this._currencyService  = currencyService;
            this._currencySettings = currencySettings;
            this._measureService   = measureService;
            this._measureSettings  = measureSettings;
        }
 public PriceCalculationService(CatalogSettings catalogSettings,
                                CurrencySettings currencySettings,
                                ICategoryService categoryService,
                                ICurrencyService currencyService,
                                IManufacturerService manufacturerService,
                                IStaticCacheManager cacheManager,
                                IStoreContext storeContext,
                                IWorkContext workContext
                                )
 {
     this._catalogSettings     = catalogSettings;
     this._currencySettings    = currencySettings;
     this._categoryService     = categoryService;
     this._currencyService     = currencyService;
     this._manufacturerService = manufacturerService;
     this._cacheManager        = cacheManager;
     this._storeContext        = storeContext;
     this._workContext         = workContext;
 }
Exemple #27
0
 public ZarinPalPaymentProcessor
 (
     IWebHelper webHelper,
     ITaxService taxService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreService storeService,
     IAddressService addressService,
     ISettingService settingService,
     IPaymentService paymentService,
     ICustomerService customerService,
     ICurrencyService currencyService,
     ILanguageService languageService,
     IHttpContextAccessor httpContextAccessor,
     ILocalizationService localizationService,
     ICheckoutAttributeParser checkoutAttributeParser,
     IGenericAttributeService genericAttributeService,
     IOrderTotalCalculationService orderTotalCalculationService,
     CustomerSettings customerSettings,
     CurrencySettings currencySettings,
     ZarinpalPaymentSettings zarinPalPaymentSettings
 )
 {
     _webHelper                    = webHelper;
     _taxService                   = taxService;
     _workContext                  = workContext;
     _storeService                 = storeService;
     _storeContext                 = storeContext;
     _addressService               = addressService;
     _paymentService               = paymentService;
     _settingService               = settingService;
     _customerService              = customerService;
     _languageService              = languageService;
     _currencyService              = currencyService;
     _currencySettings             = currencySettings;
     _customerSettings             = customerSettings;
     _httpContextAccessor          = httpContextAccessor;
     _localizationService          = localizationService;
     _checkoutAttributeParser      = checkoutAttributeParser;
     _genericAttributeService      = genericAttributeService;
     _zarinPalPaymentSettings      = zarinPalPaymentSettings;
     _orderTotalCalculationService = orderTotalCalculationService;
 }
 public WebWorkContext(HttpContextBase httpContext,
                       ICustomerService customerService,
                       IAuthenticationService authenticationService,
                       ILanguageService languageService,
                       ICurrencyService currencyService,
                       TaxSettings taxSettings, CurrencySettings currencySettings,
                       LocalizationSettings localizationSettings,
                       IWebHelper webHelper)
 {
     this._httpContext           = httpContext;
     this._customerService       = customerService;
     this._authenticationService = authenticationService;
     this._languageService       = languageService;
     this._currencyService       = currencyService;
     this._taxSettings           = taxSettings;
     this._currencySettings      = currencySettings;
     this._localizationSettings  = localizationSettings;
     this._webHelper             = webHelper;
 }
Exemple #29
0
 public AmazonPayApi(
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IOrderService orderService,
     IAddressService addressService,
     IDateTimeHelper dateTimeHelper,
     CurrencySettings currencySettings,
     IOrderTotalCalculationService orderTotalCalculationService,
     ICommonServices services)
 {
     _countryService               = countryService;
     _stateProvinceService         = stateProvinceService;
     _orderService                 = orderService;
     _addressService               = addressService;
     _dateTimeHelper               = dateTimeHelper;
     _currencySettings             = currencySettings;
     _orderTotalCalculationService = orderTotalCalculationService;
     _services = services;
 }
Exemple #30
0
 public CurrencyService(
     SmartDbContext db,
     ILocalizationService localizationService,
     IProviderManager providerManager,
     IWorkContext workContext,
     IStoreContext storeContext,
     CurrencySettings currencySettings,
     TaxSettings taxSettings,
     ISettingFactory settingFactory)
 {
     _db = db;
     _localizationService = localizationService;
     _providerManager     = providerManager;
     _workContext         = workContext;
     _storeContext        = storeContext;
     _currencySettings    = currencySettings;
     _taxSettings         = taxSettings;
     _settingFactory      = settingFactory;
 }
Exemple #31
0
 public PaymentIpayAfricaController(IWorkContext workContext,
                                    IStoreService storeService,
                                    ISettingService settingService,
                                    IPaymentService paymentService,
                                    IOrderService orderService,
                                    IOrderProcessingService orderProcessingService,
                                    IPermissionService permissionService,
                                    IGenericAttributeService genericAttributeService,
                                    ILocalizationService localizationService,
                                    IStoreContext storeContext,
                                    ILogger logger,
                                    IWebHelper webHelper,
                                    PaymentSettings paymentSettings,
                                    IpayAfricaPaymentSettings IpayAfricaPaymentSettings,
                                    ShoppingCartSettings shoppingCartSettings,
                                    CurrencySettings currencySettings,
                                    ICheckoutAttributeParser checkoutAttributeParser,
                                    ICurrencyService currencyService,
                                    IHttpContextAccessor httpContextAccessor,
                                    ITaxService taxService)
 {
     this._workContext             = workContext;
     this._storeService            = storeService;
     this._settingService          = settingService;
     this._paymentService          = paymentService;
     this._orderService            = orderService;
     this._orderProcessingService  = orderProcessingService;
     this._permissionService       = permissionService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._storeContext            = storeContext;
     this._logger                    = logger;
     this._webHelper                 = webHelper;
     this._paymentSettings           = paymentSettings;
     this._IpayAfricaPaymentSettings = IpayAfricaPaymentSettings;
     this._shoppingCartSettings      = shoppingCartSettings;
     this._currencySettings          = currencySettings;
     this._checkoutAttributeParser   = checkoutAttributeParser;
     this._currencyService           = currencyService;
     this._genericAttributeService   = genericAttributeService;
     this._httpContextAccessor       = httpContextAccessor;
     this._taxService                = taxService;
 }
 public GiftCardViewModelService(
     IGiftCardService giftCardService, IOrderService orderService,
     IPriceFormatter priceFormatter, IWorkflowMessageService workflowMessageService,
     IDateTimeHelper dateTimeHelper,
     ICurrencyService currencyService, CurrencySettings currencySettings,
     ILocalizationService localizationService, ILanguageService languageService,
     ICustomerActivityService customerActivityService)
 {
     _giftCardService         = giftCardService;
     _orderService            = orderService;
     _priceFormatter          = priceFormatter;
     _workflowMessageService  = workflowMessageService;
     _dateTimeHelper          = dateTimeHelper;
     _currencyService         = currencyService;
     _currencySettings        = currencySettings;
     _localizationService     = localizationService;
     _languageService         = languageService;
     _customerActivityService = customerActivityService;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="orderService">Order service</param>
 /// <param name="webHelper">Web helper</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="languageService">Language service</param>
 /// <param name="productService">Product service</param>
 /// <param name="paymentService">Payment service</param>
 /// <param name="logger">Logger</param>
 /// <param name="orderTotalCalculationService">Order total calculationservice</param>
 /// <param name="priceCalculationService">Price calculation service</param>
 /// <param name="priceFormatter">Price formatter</param>
 /// <param name="productAttributeParser">Product attribute parser</param>
 /// <param name="productAttributeFormatter">Product attribute formatter</param>
 /// <param name="giftCardService">Gift card service</param>
 /// <param name="shoppingCartService">Shopping cart service</param>
 /// <param name="checkoutAttributeFormatter">Checkout attribute service</param>
 /// <param name="shippingService">Shipping service</param>
 /// <param name="shipmentService">Shipment service</param>
 /// <param name="taxService">Tax service</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="discountService">Discount service</param>
 /// <param name="encryptionService">Encryption service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="workflowMessageService">Workflow message service</param>
 /// <param name="vendorService">Vendor service</param>
 /// <param name="customerActivityService">Customer activity service</param>
 /// <param name="currencyService">Currency service</param>
 /// <param name="affiliateService">Affiliate service</param>
 /// <param name="eventPublisher">Event published</param>
 /// <param name="pdfService">PDF service</param>
 /// <param name="paymentSettings">Payment settings</param>
 /// <param name="shippingSettings">Shipping settings</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="orderSettings">Order settings</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="currencySettings">Currency settings</param>
 public OrderProcessingService(IOrderService orderService,
     IWebHelper webHelper,
     ILocalizationService localizationService,
     ILanguageService languageService,
     IProductService productService,
     IPaymentService paymentService,
     ILogger logger,
     IOrderTotalCalculationService orderTotalCalculationService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IProductAttributeParser productAttributeParser,
     IProductAttributeFormatter productAttributeFormatter,
     IGiftCardService giftCardService,
     IShoppingCartService shoppingCartService,
     ICheckoutAttributeFormatter checkoutAttributeFormatter,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ITaxService taxService,
     ICustomerService customerService,
     IDiscountService discountService,
     IEncryptionService encryptionService,
     IWorkContext workContext,
     IWorkflowMessageService workflowMessageService,
     IVendorService vendorService,
     ICustomerActivityService customerActivityService,
     ICurrencyService currencyService,
     IAffiliateService affiliateService,
     IEventPublisher eventPublisher,
     IPdfService pdfService,
     ShippingSettings shippingSettings,
     PaymentSettings paymentSettings,
     RewardPointsSettings rewardPointsSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     LocalizationSettings localizationSettings,
     CurrencySettings currencySettings,
     IGenericAttributeService genericAttributeService,
     PromoSettings promoSettings,
     IPromoUtilities promoUtilities,
     IPromoOrderService promoOrderService,
     IPromoService promoService,
     IStoreContext storeContext)
     : base(orderService, webHelper, localizationService, languageService, productService, paymentService,
                                                 logger, orderTotalCalculationService, priceCalculationService, priceFormatter, productAttributeParser,
                                                 productAttributeFormatter, giftCardService, shoppingCartService, checkoutAttributeFormatter, shippingService,
                                                 shipmentService, taxService, customerService, discountService, encryptionService, workContext, workflowMessageService,
                                                 vendorService, customerActivityService, currencyService, affiliateService, eventPublisher, pdfService,
                                                 shippingSettings, paymentSettings, rewardPointsSettings, orderSettings, taxSettings,
                                                 localizationSettings, currencySettings)
 {
     this._orderService = orderService;
     this._webHelper = webHelper;
     this._localizationService = localizationService;
     this._languageService = languageService;
     this._productService = productService;
     this._paymentService = paymentService;
     this._logger = logger;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter = priceFormatter;
     this._productAttributeParser = productAttributeParser;
     this._productAttributeFormatter = productAttributeFormatter;
     this._giftCardService = giftCardService;
     this._shoppingCartService = shoppingCartService;
     this._checkoutAttributeFormatter = checkoutAttributeFormatter;
     this._workContext = workContext;
     this._workflowMessageService = workflowMessageService;
     this._vendorService = vendorService;
     this._shippingService = shippingService;
     this._shipmentService = shipmentService;
     this._taxService = taxService;
     this._customerService = customerService;
     this._discountService = discountService;
     this._encryptionService = encryptionService;
     this._customerActivityService = customerActivityService;
     this._currencyService = currencyService;
     this._affiliateService = affiliateService;
     this._eventPublisher = eventPublisher;
     this._pdfService = pdfService;
     this._paymentSettings = paymentSettings;
     this._shippingSettings = shippingSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._localizationSettings = localizationSettings;
     this._currencySettings = currencySettings;
     this._genericAttributeService = genericAttributeService;
     this._promoSettings = promoSettings;
     this._promoUtilities = promoUtilities;
     this._promoOrderService = promoOrderService;
     this._promoService = promoService;
     this._storeContext = storeContext;
 }