Example #1
0
 public OrderController(IOrderService orderService, 
     IShipmentService shipmentService, 
     IWorkContext workContext,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     IOrderProcessingService orderProcessingService, 
     IDateTimeHelper dateTimeHelper,
     IPaymentService paymentService, 
     ILocalizationService localizationService,
     IPdfService pdfService, 
     IShippingService shippingService,
     ICountryService countryService, 
     IProductAttributeParser productAttributeParser,
     IWebHelper webHelper,
     IDownloadService downloadService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IStoreContext storeContext,
     IOrderTotalCalculationService orderTotalCalculationService,
     IRewardPointsService rewardPointsService,
     IGiftCardService giftCardService,
     CatalogSettings catalogSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     ShippingSettings shippingSettings, 
     AddressSettings addressSettings,
     RewardPointsSettings rewardPointsSettings,
     PdfSettings pdfSettings)
 {
     this._orderService = orderService;
     this._shipmentService = shipmentService;
     this._workContext = workContext;
     this._currencyService = currencyService;
     this._priceFormatter = priceFormatter;
     this._orderProcessingService = orderProcessingService;
     this._dateTimeHelper = dateTimeHelper;
     this._paymentService = paymentService;
     this._localizationService = localizationService;
     this._pdfService = pdfService;
     this._shippingService = shippingService;
     this._countryService = countryService;
     this._productAttributeParser = productAttributeParser;
     this._webHelper = webHelper;
     this._downloadService = downloadService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._storeContext = storeContext;
     this._rewardPointsService = rewardPointsService;
     this._giftCardService = giftCardService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._catalogSettings = catalogSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._shippingSettings = shippingSettings;
     this._addressSettings = addressSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._pdfSettings = pdfSettings;
 }
        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;
        }
Example #3
0
 public PdfService(ILocalizationService localizationService, 
     ILanguageService languageService,
     IWorkContext workContext,
     IOrderService orderService,
     IPaymentService paymentService,
     IDateTimeHelper dateTimeHelper,
     IPriceFormatter priceFormatter,
     ICurrencyService currencyService, 
     IMeasureService measureService,
     IPictureService pictureService,
     IProductService productService, 
     IProductAttributeParser productAttributeParser,
     IStoreService storeService,
     IStoreContext storeContext,
     ISettingService settingContext,
     IWebHelper webHelper,
     IAddressAttributeFormatter addressAttributeFormatter,
     CatalogSettings catalogSettings, 
     CurrencySettings currencySettings,
     MeasureSettings measureSettings,
     PdfSettings pdfSettings,
     TaxSettings taxSettings,
     AddressSettings addressSettings,
     IShippingService shippingService)
 {
     this._localizationService = localizationService;
     this._languageService = languageService;
     this._workContext = workContext;
     this._orderService = orderService;
     this._paymentService = paymentService;
     this._dateTimeHelper = dateTimeHelper;
     this._priceFormatter = priceFormatter;
     this._currencyService = currencyService;
     this._measureService = measureService;
     this._pictureService = pictureService;
     this._productService = productService;
     this._productAttributeParser = productAttributeParser;
     this._storeService = storeService;
     this._storeContext = storeContext;
     this._settingContext = settingContext;
     this._webHelper = webHelper;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._currencySettings = currencySettings;
     this._catalogSettings = catalogSettings;
     this._measureSettings = measureSettings;
     this._pdfSettings = pdfSettings;
     this._taxSettings = taxSettings;
     this._addressSettings = addressSettings;
     this._shippingService = shippingService;
 }
Example #4
0
 public CustomerModelFactory(AddressSettings addressSettings,
                             CustomerSettings customerSettings,
                             DateTimeSettings dateTimeSettings,
                             GdprSettings gdprSettings,
                             IAclSupportedModelFactory aclSupportedModelFactory,
                             IAddressAttributeFormatter addressAttributeFormatter,
                             IAddressAttributeModelFactory addressAttributeModelFactory,
                             IBaseAdminModelFactory baseAdminModelFactory,
                             ICustomerActivityService customerActivityService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             ICustomerService customerService,
                             IDateTimeHelper dateTimeHelper,
                             IExternalAuthenticationService externalAuthenticationService,
                             IGdprService gdprService,
                             IGenericAttributeService genericAttributeService,
                             IGeoLookupService geoLookupService,
                             ILocalizationService localizationService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IPictureService pictureService,
                             IStoreContext storeContext,
                             IStoreService storeService,
                             MediaSettings mediaSettings)
 {
     this._addressSettings               = addressSettings;
     this._customerSettings              = customerSettings;
     this._dateTimeSettings              = dateTimeSettings;
     this._gdprSettings                  = gdprSettings;
     this._aclSupportedModelFactory      = aclSupportedModelFactory;
     this._addressAttributeFormatter     = addressAttributeFormatter;
     this._addressAttributeModelFactory  = addressAttributeModelFactory;
     this._baseAdminModelFactory         = baseAdminModelFactory;
     this._customerActivityService       = customerActivityService;
     this._customerAttributeParser       = customerAttributeParser;
     this._customerAttributeService      = customerAttributeService;
     this._customerService               = customerService;
     this._dateTimeHelper                = dateTimeHelper;
     this._externalAuthenticationService = externalAuthenticationService;
     this._gdprService                   = gdprService;
     this._genericAttributeService       = genericAttributeService;
     this._geoLookupService              = geoLookupService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService                = pictureService;
     this._storeContext                  = storeContext;
     this._storeService                  = storeService;
     this._mediaSettings                 = mediaSettings;
 }
 public MessageTokenProvider(CatalogSettings catalogSettings,
                             CurrencySettings currencySettings,
                             IActionContextAccessor actionContextAccessor,
                             IAddressAttributeFormatter addressAttributeFormatter,
                             ICurrencyService currencyService,
                             ICustomerAttributeFormatter customerAttributeFormatter,
                             ICustomerService customerService,
                             IDateTimeHelper dateTimeHelper,
                             IDownloadService downloadService,
                             IEventPublisher eventPublisher,
                             IGenericAttributeService genericAttributeService,
                             ILanguageService languageService,
                             ILocalizationService localizationService,
                             IStoreContext storeContext,
                             IStoreService storeService,
                             IUrlHelperFactory urlHelperFactory,
                             IUrlRecordService urlRecordService,
                             IVendorAttributeFormatter vendorAttributeFormatter,
                             IWorkContext workContext,
                             MessageTemplatesSettings templatesSettings,
                             PaymentSettings paymentSettings,
                             StoreInformationSettings storeInformationSettings,
                             TaxSettings taxSettings)
 {
     this._catalogSettings            = catalogSettings;
     this._currencySettings           = currencySettings;
     this._actionContextAccessor      = actionContextAccessor;
     this._addressAttributeFormatter  = addressAttributeFormatter;
     this._currencyService            = currencyService;
     this._customerAttributeFormatter = customerAttributeFormatter;
     this._customerService            = customerService;
     this._dateTimeHelper             = dateTimeHelper;
     this._downloadService            = downloadService;
     this._eventPublisher             = eventPublisher;
     this._genericAttributeService    = genericAttributeService;
     this._languageService            = languageService;
     this._localizationService        = localizationService;
     this._storeContext             = storeContext;
     this._storeService             = storeService;
     this._urlHelperFactory         = urlHelperFactory;
     this._urlRecordService         = urlRecordService;
     this._vendorAttributeFormatter = vendorAttributeFormatter;
     this._workContext              = workContext;
     this._templatesSettings        = templatesSettings;
     this._paymentSettings          = paymentSettings;
     this._storeInformationSettings = storeInformationSettings;
     this._taxSettings              = taxSettings;
 }
 public AddressModelFactory(AddressSettings addressSettings,
                            IAddressAttributeFormatter addressAttributeFormatter,
                            IAddressAttributeParser addressAttributeParser,
                            IAddressAttributeService addressAttributeService,
                            IGenericAttributeService genericAttributeService,
                            ILocalizationService localizationService,
                            IStateProvinceService stateProvinceService)
 {
     this._addressSettings           = addressSettings;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._addressAttributeParser    = addressAttributeParser;
     this._addressAttributeService   = addressAttributeService;
     this._genericAttributeService   = genericAttributeService;
     this._localizationService       = localizationService;
     this._stateProvinceService      = stateProvinceService;
 }
Example #7
0
 public AddressModelFactory(IAddressAttributeService addressAttributeService,
                            IAddressAttributeParser addressAttributeParser,
                            ILocalizationService localizationService,
                            IStateProvinceService stateProvinceService,
                            IGenericAttributeService genericAttributeService,
                            IBaseService baseService,
                            IAddressAttributeFormatter addressAttributeFormatter)
 {
     this._addressAttributeService   = addressAttributeService;
     this._addressAttributeParser    = addressAttributeParser;
     this._localizationService       = localizationService;
     this._stateProvinceService      = stateProvinceService;
     this._genericAttributeService   = genericAttributeService;
     this._baseService               = baseService;
     this._addressAttributeFormatter = addressAttributeFormatter;
 }
Example #8
0
        public LiquidReturnRequest(ReturnRequest returnRequest, Order order)
        {
            this._localizationService       = EngineContext.Current.Resolve <ILocalizationService>();
            this._workContext               = EngineContext.Current.Resolve <IWorkContext>();
            this._orderService              = EngineContext.Current.Resolve <IOrderService>();
            this._currencyService           = EngineContext.Current.Resolve <ICurrencyService>();
            this._priceFormatter            = EngineContext.Current.Resolve <IPriceFormatter>();
            this._languageService           = EngineContext.Current.Resolve <ILanguageService>();
            this._addressAttributeFormatter = EngineContext.Current.Resolve <IAddressAttributeFormatter>();
            this._templatesSettings         = EngineContext.Current.Resolve <MessageTemplatesSettings>();

            this._returnRequest = returnRequest;
            this._order         = order;

            AdditionalTokens = new Dictionary <string, string>();
        }
Example #9
0
 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,
                             ICustomerAttributeFormatter customerAttributeFormatter,
                             MessageTemplatesSettings templatesSettings,
                             CatalogSettings catalogSettings,
                             TaxSettings taxSettings,
                             CurrencySettings currencySettings,
                             ShippingSettings shippingSettings,
                             StoreInformationSettings storeInformationSettings,
                             MediaSettings mediaSettings,
                             IEventPublisher 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._customerAttributeFormatter = customerAttributeFormatter;
     this._storeService               = storeService;
     this._storeContext               = storeContext;
     this._shippingSettings           = shippingSettings;
     this._templatesSettings          = templatesSettings;
     this._catalogSettings            = catalogSettings;
     this._taxSettings                = taxSettings;
     this._currencySettings           = currencySettings;
     this._storeInformationSettings   = storeInformationSettings;
     this._mediaSettings              = mediaSettings;
     this._eventPublisher             = eventPublisher;
 }
 public GetAddressModelHandler(
     IAddressAttributeFormatter addressAttributeFormatter,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ILocalizationService localizationService,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeParser addressAttributeParser,
     AddressSettings addressSettings)
 {
     _addressAttributeFormatter = addressAttributeFormatter;
     _countryService            = countryService;
     _stateProvinceService      = stateProvinceService;
     _localizationService       = localizationService;
     _addressAttributeService   = addressAttributeService;
     _addressAttributeParser    = addressAttributeParser;
     _addressSettings           = addressSettings;
 }
Example #11
0
 public PdfService(ILocalizationService localizationService,
                   ILanguageService languageService,
                   IWorkContext workContext,
                   IOrderService orderService,
                   IPaymentService paymentService,
                   IDateTimeHelper dateTimeHelper,
                   IPriceFormatter priceFormatter,
                   ICurrencyService currencyService,
                   IMeasureService measureService,
                   IPictureService pictureService,
                   IProductService productService,
                   IProductAttributeParser productAttributeParser,
                   IStoreService storeService,
                   IStoreContext storeContext,
                   ISettingService settingContext,
                   IAddressAttributeFormatter addressAttributeFormatter,
                   CatalogSettings catalogSettings,
                   CurrencySettings currencySettings,
                   MeasureSettings measureSettings,
                   PdfSettings pdfSettings,
                   TaxSettings taxSettings,
                   AddressSettings addressSettings)
 {
     this._localizationService       = localizationService;
     this._languageService           = languageService;
     this._workContext               = workContext;
     this._orderService              = orderService;
     this._paymentService            = paymentService;
     this._dateTimeHelper            = dateTimeHelper;
     this._priceFormatter            = priceFormatter;
     this._currencyService           = currencyService;
     this._measureService            = measureService;
     this._pictureService            = pictureService;
     this._productService            = productService;
     this._productAttributeParser    = productAttributeParser;
     this._storeService              = storeService;
     this._storeContext              = storeContext;
     this._settingContext            = settingContext;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._currencySettings          = currencySettings;
     this._catalogSettings           = catalogSettings;
     this._measureSettings           = measureSettings;
     this._pdfSettings               = pdfSettings;
     this._taxSettings               = taxSettings;
     this._addressSettings           = addressSettings;
 }
 public AddressModelFactory(AddressSettings addressSettings,
                            IAddressAttributeFormatter addressAttributeFormatter,
                            IAddressAttributeParser addressAttributeParser,
                            IAddressAttributeService addressAttributeService,
                            ICountryService countryService,
                            IGenericAttributeService genericAttributeService,
                            ILocalizationService localizationService,
                            IStateProvinceService stateProvinceService)
 {
     _addressSettings           = addressSettings;
     _addressAttributeFormatter = addressAttributeFormatter;
     _addressAttributeParser    = addressAttributeParser;
     _addressAttributeService   = addressAttributeService;
     _countryService            = countryService;
     _genericAttributeService   = genericAttributeService;
     _localizationService       = localizationService;
     _stateProvinceService      = stateProvinceService;
 }
Example #13
0
 public PdfService(AddressSettings addressSettings,
                   CatalogSettings catalogSettings,
                   CurrencySettings currencySettings,
                   IAddressAttributeFormatter addressAttributeFormatter,
                   ICurrencyService currencyService,
                   IDateTimeHelper dateTimeHelper,
                   ILanguageService languageService,
                   ILocalizationService localizationService,
                   IMeasureService measureService,
                   IGSFileProvider fileProvider,
                   IPictureService pictureService,
                   ISettingService settingService,
                   IStoreContext storeContext,
                   IStoreService storeService,
                   IVendorService vendorService,
                   IWorkContext workContext,
                   MeasureSettings measureSettings,
                   PdfSettings pdfSettings,
                   TaxSettings taxSettings,
                   VendorSettings vendorSettings)
 {
     this._addressSettings           = addressSettings;
     this._catalogSettings           = catalogSettings;
     this._currencySettings          = currencySettings;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._currencyService           = currencyService;
     this._dateTimeHelper            = dateTimeHelper;
     this._languageService           = languageService;
     this._localizationService       = localizationService;
     this._measureService            = measureService;
     this._fileProvider    = fileProvider;
     this._pictureService  = pictureService;
     this._settingService  = settingService;
     this._storeContext    = storeContext;
     this._storeService    = storeService;
     this._vendorService   = vendorService;
     this._workContext     = workContext;
     this._measureSettings = measureSettings;
     this._pdfSettings     = pdfSettings;
     this._taxSettings     = taxSettings;
     this._vendorSettings  = vendorSettings;
 }
Example #14
0
        public AddressViewModelService(ILocalizationService localizationService,
                                       IStateProvinceService stateProvinceService,
                                       ICountryService countryService,
                                       IAddressAttributeService addressAttributeService,
                                       IAddressAttributeParser addressAttributeParser,
                                       IAddressAttributeFormatter addressAttributeFormatter,
                                       IWorkContext workContext,
                                       AddressSettings addressSettings
                                       )
        {
            this._localizationService       = localizationService;
            this._stateProvinceService      = stateProvinceService;
            this._countryService            = countryService;
            this._addressAttributeService   = addressAttributeService;
            this._addressAttributeParser    = addressAttributeParser;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._workContext = workContext;

            this._addressSettings = addressSettings;
        }
 public UserModelFactory(AddressSettings addressSettings,
                         UserSettings userSettings,
                         DateTimeSettings dateTimeSettings,
                         IAclSupportedModelFactory aclSupportedModelFactory,
                         IAddressAttributeFormatter addressAttributeFormatter,
                         IAddressAttributeModelFactory addressAttributeModelFactory,
                         IBaseAdminModelFactory baseAdminModelFactory,
                         IUserActivityService userActivityService,
                         IUserAttributeParser userAttributeParser,
                         IUserAttributeService userAttributeService,
                         IUserService userService,
                         IDateTimeHelper dateTimeHelper,
                         IExternalAuthenticationService externalAuthenticationService,
                         IGenericAttributeService genericAttributeService,
                         IGeoLookupService geoLookupService,
                         ILocalizationService localizationService,
                         INewsLetterSubscriptionService newsLetterSubscriptionService,
                         IPictureService pictureService,
                         MediaSettings mediaSettings)
 {
     this._addressSettings              = addressSettings;
     this._userSettings                 = userSettings;
     this._dateTimeSettings             = dateTimeSettings;
     this._aclSupportedModelFactory     = aclSupportedModelFactory;
     this._addressAttributeFormatter    = addressAttributeFormatter;
     this._addressAttributeModelFactory = addressAttributeModelFactory;
     this._baseAdminModelFactory        = baseAdminModelFactory;
     this._userActivityService          = userActivityService;
     this._userAttributeParser          = userAttributeParser;
     this._userAttributeService         = userAttributeService;
     this._userService    = userService;
     this._dateTimeHelper = dateTimeHelper;
     this._externalAuthenticationService = externalAuthenticationService;
     this._genericAttributeService       = genericAttributeService;
     this._geoLookupService              = geoLookupService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService = pictureService;
     this._mediaSettings  = mediaSettings;
 }
Example #16
0
 public PdfService(AddressSettings addressSettings,
                   IAddressAttributeFormatter addressAttributeFormatter,
                   IDateTimeHelper dateTimeHelper,
                   ILanguageService languageService,
                   ILocalizationService localizationService,
                   INopFileProvider fileProvider,
                   IPictureService pictureService,
                   ISettingService settingService,
                   IWorkContext workContext,
                   PdfSettings pdfSettings)
 {
     this._addressSettings           = addressSettings;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._dateTimeHelper            = dateTimeHelper;
     this._languageService           = languageService;
     this._localizationService       = localizationService;
     this._fileProvider   = fileProvider;
     this._pictureService = pictureService;
     this._settingService = settingService;
     this._workContext    = workContext;
     this._pdfSettings    = pdfSettings;
 }
 public CompanyModelFactory(ICompanyService companyService,
                            ILocalizationService localizationService,
                            ILocalizedModelFactory localizedModelFactory,
                            ICustomerService customerService,
                            IWorkContext workContext,
                            AddressSettings addressSettings,
                            IAddressAttributeFormatter addressAttributeFormatter,
                            ICountryService countryService,
                            IStateProvinceService stateProvinceService,
                            IAddressModelFactory addressModelFactory)
 {
     _companyService            = companyService;
     _localizationService       = localizationService;
     _localizedModelFactory     = localizedModelFactory;
     _customerService           = customerService;
     _workContext               = workContext;
     _addressSettings           = addressSettings;
     _addressAttributeFormatter = addressAttributeFormatter;
     _countryService            = countryService;
     _stateProvinceService      = stateProvinceService;
     _addressModelFactory       = addressModelFactory;
 }
Example #18
0
        public LiquidOrder(Order order, string languageId = "", OrderNote orderNote = null, string vendorId = "", decimal refundedAmount = 0)
        {
            this._addressAttributeFormatter = EngineContext.Current.Resolve <IAddressAttributeFormatter>();
            this._paymentService            = EngineContext.Current.Resolve <IPaymentService>();
            this._localizationService       = EngineContext.Current.Resolve <ILocalizationService>();
            this._priceFormatter            = EngineContext.Current.Resolve <IPriceFormatter>();
            this._currencyService           = EngineContext.Current.Resolve <ICurrencyService>();
            this._downloadService           = EngineContext.Current.Resolve <IDownloadService>();
            this._productAttributeParser    = EngineContext.Current.Resolve <IProductAttributeParser>();
            this._storeService      = EngineContext.Current.Resolve <IStoreService>();
            this._languageService   = EngineContext.Current.Resolve <ILanguageService>();
            this._dateTimeHelper    = EngineContext.Current.Resolve <IDateTimeHelper>();
            this._templatesSettings = EngineContext.Current.Resolve <MessageTemplatesSettings>();
            this._catalogSettings   = EngineContext.Current.Resolve <CatalogSettings>();
            this._taxSettings       = EngineContext.Current.Resolve <TaxSettings>();

            this._order          = order;
            this._languageId     = languageId;
            this._orderNote      = orderNote;
            this._refundedAmount = refundedAmount;
            this._language       = _languageService.GetLanguageById(_languageId);
            this._currency       = _currencyService.GetCurrencyByCode(order.CustomerCurrencyCode);
            this._orderItems     = new List <LiquidOrderItem>();
            var tempItems = order.OrderItems.ToList();

            if (!string.IsNullOrEmpty(vendorId))
            {
                tempItems = tempItems.Where(x => x.VendorId == vendorId).ToList();
            }

            foreach (var orderItem in tempItems)
            {
                this._orderItems.Add(new LiquidOrderItem(orderItem, order, languageId));
            }

            CalculateSubTotals();

            AdditionalTokens = new Dictionary <string, string>();
        }
Example #19
0
 public PreparePdfShipmentCommandHandler(
     IOrderService orderService,
     ILanguageService languageService,
     IWorkContext workContext,
     IProductService productService,
     ILocalizationService localizationService,
     IProductAttributeParser productAttributeParser,
     IAddressAttributeFormatter addressAttributeFormatter,
     IServiceProvider serviceProvider,
     PdfSettings pdfSettings,
     AddressSettings addressSettings)
 {
     _orderService              = orderService;
     _languageService           = languageService;
     _workContext               = workContext;
     _productService            = productService;
     _localizationService       = localizationService;
     _productAttributeParser    = productAttributeParser;
     _addressAttributeFormatter = addressAttributeFormatter;
     _serviceProvider           = serviceProvider;
     _pdfSettings               = pdfSettings;
     _addressSettings           = addressSettings;
 }
 public AddressViewModelService(ILocalizationService localizationService,
                                IStateProvinceService stateProvinceService,
                                ICountryService countryService,
                                IAddressAttributeService addressAttributeService,
                                IAddressAttributeParser addressAttributeParser,
                                IAddressAttributeFormatter addressAttributeFormatter,
                                IWorkContext workContext,
                                IStoreContext storeContext,
                                IGenericAttributeService genericAttributeService,
                                AddressSettings addressSettings
                                )
 {
     _localizationService       = localizationService;
     _stateProvinceService      = stateProvinceService;
     _countryService            = countryService;
     _addressAttributeService   = addressAttributeService;
     _addressAttributeParser    = addressAttributeParser;
     _addressAttributeFormatter = addressAttributeFormatter;
     _workContext             = workContext;
     _storeContext            = storeContext;
     _genericAttributeService = genericAttributeService;
     _addressSettings         = addressSettings;
 }
Example #21
0
        public JobSchedulerOrderController(IOrderService orderService,
                                           IShoppingCartService shoppingCartService,
                                           IProductService productService,
                                           IShipmentService shipmentService,
                                           IWorkContext workContext,
                                           ICurrencyService currencyService,
                                           ICustomerService customerService,
                                           IPriceFormatter priceFormatter,
                                           IOrderProcessingService orderProcessingService,
                                           IDateTimeHelper dateTimeHelper,
                                           IPaymentService paymentService,
                                           ILocalizationService localizationService,
                                           IPdfService pdfService,
                                           IShippingService shippingService,
                                           ICountryService countryService,
                                           IProductAttributeParser productAttributeParser,
                                           IWebHelper webHelper,
                                           IDownloadService downloadService,
                                           IAddressAttributeFormatter addressAttributeFormatter,
                                           IStoreContext storeContext,
                                           IOrderTotalCalculationService orderTotalCalculationService,
                                           IRewardPointService rewardPointService,
                                           CatalogSettings catalogSettings,
                                           OrderSettings orderSettings,
                                           TaxSettings taxSettings,
                                           ShippingSettings shippingSettings,
                                           AddressSettings addressSettings,
                                           RewardPointsSettings rewardPointsSettings,
                                           PdfSettings pdfSettings)
        {
            this._shoppingCartService    = shoppingCartService;
            this._productService         = productService;
            this._orderService           = orderService;
            this._shipmentService        = shipmentService;
            this._workContext            = workContext;
            this._currencyService        = currencyService;
            this._priceFormatter         = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._dateTimeHelper         = dateTimeHelper;
            this._customerService        = customerService;
            this._paymentService         = paymentService;
            this._localizationService    = localizationService;
            this._pdfService             = pdfService;
            this._shippingService        = shippingService;
            this._countryService         = countryService;
            this._productAttributeParser = productAttributeParser;
            this._webHelper                    = webHelper;
            this._downloadService              = downloadService;
            this._addressAttributeFormatter    = addressAttributeFormatter;
            this._storeContext                 = storeContext;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._rewardPointService           = rewardPointService;

            this._catalogSettings      = catalogSettings;
            this._orderSettings        = orderSettings;
            this._taxSettings          = taxSettings;
            this._shippingSettings     = shippingSettings;
            this._addressSettings      = addressSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._pdfSettings          = pdfSettings;
        }
 public PostFilters(
     IShoppingCartModelFactory shoppingCartModelFactory,
     IPluginFinder pluginFinder,
     IProductService productService,
     IStoreContext storeContext,
     IWorkContext workContext,
     IShoppingCartService shoppingCartService,
     IPictureService pictureService,
     ILocalizationService localizationService,
     IProductAttributeService productAttributeService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     ITaxService taxService, ICurrencyService currencyService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     ICheckoutAttributeParser checkoutAttributeParser,
     ICheckoutAttributeFormatter checkoutAttributeFormatter,
     IOrderProcessingService orderProcessingService,
     IDiscountService discountService,
     ICustomerService customerService,
     IGiftCardService giftCardService,
     IDateRangeService dateRangeService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IShippingService shippingService,
     IOrderTotalCalculationService orderTotalCalculationService,
     ICheckoutAttributeService checkoutAttributeService,
     IPaymentService paymentService,
     IWorkflowMessageService workflowMessageService,
     IPermissionService permissionService,
     IDownloadService downloadService,
     ICacheManager cacheManager,
     IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     IGenericAttributeService genericAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     HttpContextBase httpContext,
     MediaSettings mediaSettings,
     ShoppingCartSettings shoppingCartSettings,
     CatalogSettings catalogSettings,
     OrderSettings orderSettings,
     ShippingSettings shippingSettings,
     TaxSettings taxSettings,
     CaptchaSettings captchaSettings,
     AddressSettings addressSettings,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings)
 {
     this._storeContext           = storeContext;
     this._pluginFinder           = pluginFinder;
     this._productAttributeParser = productAttributeParser;
     this._productService         = productService;
     this._workContext            = workContext;
     this._shoppingCartModel      = new ShoppingCartModelExtension(
         shoppingCartModelFactory,
         pluginFinder,
         productService,
         storeContext,
         workContext,
         shoppingCartService,
         pictureService,
         localizationService,
         productAttributeService,
         productAttributeFormatter,
         productAttributeParser,
         taxService,
         currencyService,
         priceCalculationService,
         priceFormatter,
         checkoutAttributeParser,
         checkoutAttributeFormatter,
         orderProcessingService,
         discountService,
         customerService,
         giftCardService,
         dateRangeService,
         countryService,
         stateProvinceService,
         shippingService,
         orderTotalCalculationService,
         checkoutAttributeService,
         paymentService,
         workflowMessageService,
         permissionService,
         downloadService,
         cacheManager,
         webHelper,
         customerActivityService,
         genericAttributeService,
         addressAttributeFormatter,
         httpContext,
         mediaSettings,
         shoppingCartSettings,
         catalogSettings,
         orderSettings,
         shippingSettings,
         taxSettings,
         captchaSettings,
         addressSettings,
         rewardPointsSettings,
         customerSettings);
 }
Example #23
0
        public VeXeKhachController(IStateProvinceService stateProvinceService,
                                   INhaXeService nhaxeService,
                                   ILocalizationService localizationService,
                                   IWorkContext workContext,
                                   IPictureService pictureService,
                                   ICustomerService customerService,
                                   IChonVeService chonveService,
                                   IDiaChiService diachiService,
                                   INhanVienService nhanvienService,
                                   IPermissionService permissionService,
                                   IDateTimeHelper dateTimeHelper,
                                   CustomerSettings customerSettings,
                                   DateTimeSettings dateTimeSettings,
                                   ICustomerRegistrationService customerRegistrationService,
                                   ICustomerActivityService customerActivityService,
                                   IGenericAttributeService genericAttributeService,
                                   IStoreService storeService,
                                   INewsLetterSubscriptionService newsLetterSubscriptionService,
                                   IXeInfoService xeinfoService,
                                   IHanhTrinhService hanhtrinhService,
                                   IPriceFormatter priceFormatter,
                                   IBenXeService benxeService,
                                   IVeXeService vexeService,
                                   AddressSettings addressSettings,
                                   IAddressAttributeFormatter addressAttributeFormatter,
                                   IAddressService addressService,
                                   ICountryService countryService,
                                   IAddressAttributeParser addressAttributeParser,
                                   IAddressAttributeService addressAttributeService,
                                   IPhoiVeService phoiveService,
                                   IOrderService orderService

                                   )
        {
            this._phoiveService                 = phoiveService;
            this._addressAttributeParser        = addressAttributeParser;
            this._addressAttributeService       = addressAttributeService;
            this._stateProvinceService          = stateProvinceService;
            this._nhaxeService                  = nhaxeService;
            this._localizationService           = localizationService;
            this._workContext                   = workContext;
            this._pictureService                = pictureService;
            this._customerService               = customerService;
            this._chonveService                 = chonveService;
            this._diachiService                 = diachiService;
            this._nhanvienService               = nhanvienService;
            this._permissionService             = permissionService;
            this._dateTimeHelper                = dateTimeHelper;
            this._customerSettings              = customerSettings;
            this._dateTimeSettings              = dateTimeSettings;
            this._customerRegistrationService   = customerRegistrationService;
            this._customerActivityService       = customerActivityService;
            this._genericAttributeService       = genericAttributeService;
            this._storeService                  = storeService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._xeinfoService                 = xeinfoService;
            this._hanhtrinhService              = hanhtrinhService;
            this._priceFormatter                = priceFormatter;
            this._benxeService                  = benxeService;
            this._vexeService                   = vexeService;
            this._addressSettings               = addressSettings;
            this._addressAttributeFormatter     = addressAttributeFormatter;
            this._addressService                = addressService;
            this._countryService                = countryService;
            this._orderService                  = orderService;
        }
Example #24
0
 public CustomerController(ICustomerService customerService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerReportService customerReportService, 
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService, 
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings, 
     RewardPointsSettings rewardPointsSettings,
     ICountryService countryService, 
     IStateProvinceService stateProvinceService, 
     IAddressService addressService,
     CustomerSettings customerSettings,
     ITaxService taxService, 
     IWorkContext workContext,
     IVendorService vendorService,
     IStoreContext storeContext,
     IPriceFormatter priceFormatter,
     IOrderService orderService, 
     IExportManager exportManager,
     ICustomerActivityService customerActivityService,
     IPriceCalculationService priceCalculationService,
     IPermissionService permissionService, 
     IQueuedEmailService queuedEmailService,
     EmailAccountSettings emailAccountSettings,
     IEmailAccountService emailAccountService, 
     ForumSettings forumSettings,
     IForumService forumService, 
     IOpenAuthenticationService openAuthenticationService,
     AddressSettings addressSettings,
     IStoreService storeService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter)
 {
     this._customerService = customerService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerReportService = customerReportService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationService = localizationService;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._customerSettings = customerSettings;
     this._taxService = taxService;
     this._workContext = workContext;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._priceFormatter = priceFormatter;
     this._orderService = orderService;
     this._exportManager = exportManager;
     this._customerActivityService = customerActivityService;
     this._priceCalculationService = priceCalculationService;
     this._permissionService = permissionService;
     this._queuedEmailService = queuedEmailService;
     this._emailAccountSettings = emailAccountSettings;
     this._emailAccountService = emailAccountService;
     this._forumSettings = forumSettings;
     this._forumService = forumService;
     this._openAuthenticationService = openAuthenticationService;
     this._addressSettings = addressSettings;
     this._storeService = storeService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
 }
        //address
        /// <summary>
        /// Prepare address model
        /// </summary>
        /// <param name="model">Model</param>
        /// <param name="address">Address</param>
        /// <param name="excludeProperties">A value indicating whether to exclude properties</param>
        /// <param name="addressSettings">Address settings</param>
        /// <param name="localizationService">Localization service (used to prepare a select list)</param>
        /// <param name="stateProvinceService">State service (used to prepare a select list). null to don't prepare the list.</param>
        /// <param name="addressAttributeService">Address attribute service. null to don't prepare the list.</param>
        /// <param name="addressAttributeParser">Address attribute parser. null to don't prepare the list.</param>
        /// <param name="addressAttributeFormatter">Address attribute formatter. null to don't prepare the formatted custom attributes.</param>
        /// <param name="loadCountries">A function to load countries  (used to prepare a select list). null to don't prepare the list.</param>
        /// <param name="prePopulateWithCustomerFields">A value indicating whether to pre-populate an address with customer fields entered during registration. It's used only when "address" parameter is set to "null"</param>
        /// <param name="customer">Customer record which will be used to pre-populate address. Used only when "prePopulateWithCustomerFields" is "true".</param>
        /// <param name="overrideAttributesXml">When specified we do not use attributes of an address; if null, then already saved ones are used</param>
        public static void PrepareModel(this AddressModel model,
            Address address, bool excludeProperties,
            AddressSettings addressSettings,
            ILocalizationService localizationService = null,
            IStateProvinceService stateProvinceService = null,
            IAddressAttributeService addressAttributeService = null,
            IAddressAttributeParser addressAttributeParser = null,
            IAddressAttributeFormatter addressAttributeFormatter = null,
            Func<IList<Country>> loadCountries = null,
            bool prePopulateWithCustomerFields = false,
            Customer customer = null,
            string overrideAttributesXml = "")
        {
            if (model == null)
                throw new ArgumentNullException("model");

            if (addressSettings == null)
                throw new ArgumentNullException("addressSettings");

            if (!excludeProperties && address != null)
            {
                model.Id = address.Id;
                model.FirstName = address.FirstName;
                model.LastName = address.LastName;
                model.Email = address.Email;
                model.Company = address.Company;
                model.CountryId = address.CountryId;
                model.CountryName = address.Country != null
                    ? address.Country.GetLocalized(x => x.Name)
                    : null;
                model.StateProvinceId = address.StateProvinceId;
                model.StateProvinceName = address.StateProvince != null
                    ? address.StateProvince.GetLocalized(x => x.Name)
                    : null;
                model.City = address.City;
                model.Address1 = address.Address1;
                model.Address2 = address.Address2;
                model.ZipPostalCode = address.ZipPostalCode;
                model.PhoneNumber = address.PhoneNumber;
                model.FaxNumber = address.FaxNumber;
            }

            if (address == null && prePopulateWithCustomerFields)
            {
                if (customer == null)
                    throw new Exception("Customer cannot be null when prepopulating an address");
                model.Email = customer.Email;
                model.FirstName = customer.GetAttribute<string>(SystemCustomerAttributeNames.FirstName);
                model.LastName = customer.GetAttribute<string>(SystemCustomerAttributeNames.LastName);
                model.Company = customer.GetAttribute<string>(SystemCustomerAttributeNames.Company);
                model.Address1 = customer.GetAttribute<string>(SystemCustomerAttributeNames.StreetAddress);
                model.Address2 = customer.GetAttribute<string>(SystemCustomerAttributeNames.StreetAddress2);
                model.ZipPostalCode = customer.GetAttribute<string>(SystemCustomerAttributeNames.ZipPostalCode);
                model.City = customer.GetAttribute<string>(SystemCustomerAttributeNames.City);
                //ignore country and state for prepopulation. it can cause some issues when posting pack with errors, etc
                //model.CountryId = customer.GetAttribute<int>(SystemCustomerAttributeNames.CountryId);
                //model.StateProvinceId = customer.GetAttribute<int>(SystemCustomerAttributeNames.StateProvinceId);
                model.PhoneNumber = customer.GetAttribute<string>(SystemCustomerAttributeNames.Phone);
                model.FaxNumber = customer.GetAttribute<string>(SystemCustomerAttributeNames.Fax);
            }

            //countries and states
            if (addressSettings.CountryEnabled && loadCountries != null)
            {
                if (localizationService == null)
                    throw new ArgumentNullException("localizationService");

                model.AvailableCountries.Add(new SelectListItem { Text = localizationService.GetResource("Address.SelectCountry"), Value = "0" });
                foreach (var c in loadCountries())
                {
                    model.AvailableCountries.Add(new SelectListItem
                    {
                        Text = c.GetLocalized(x => x.Name),
                        Value = c.Id.ToString(),
                        Selected = c.Id == model.CountryId
                    });
                }

                if (addressSettings.StateProvinceEnabled)
                {
                    //states
                    if (stateProvinceService == null)
                        throw new ArgumentNullException("stateProvinceService");

                    var languageId = EngineContext.Current.Resolve<IWorkContext>().WorkingLanguage.Id;
                    var states = stateProvinceService
                        .GetStateProvincesByCountryId(model.CountryId.HasValue ? model.CountryId.Value : 0, languageId)
                        .ToList();
                    if (states.Count > 0)
                    {
                        model.AvailableStates.Add(new SelectListItem { Text = localizationService.GetResource("Address.SelectState"), Value = "0" });

                        foreach (var s in states)
                        {
                            model.AvailableStates.Add(new SelectListItem
                            {
                                Text = s.GetLocalized(x => x.Name),
                                Value = s.Id.ToString(),
                                Selected = (s.Id == model.StateProvinceId)
                            });
                        }
                    }
                    else
                    {
                        bool anyCountrySelected = model.AvailableCountries.Any(x => x.Selected);
                        model.AvailableStates.Add(new SelectListItem
                        {
                            Text = localizationService.GetResource(anyCountrySelected ? "Address.OtherNonUS" : "Address.SelectState"),
                            Value = "0"
                        });
                    }
                }
            }

            //form fields
            model.CompanyEnabled = addressSettings.CompanyEnabled;
            model.CompanyRequired = addressSettings.CompanyRequired;
            model.StreetAddressEnabled = addressSettings.StreetAddressEnabled;
            model.StreetAddressRequired = addressSettings.StreetAddressRequired;
            model.StreetAddress2Enabled = addressSettings.StreetAddress2Enabled;
            model.StreetAddress2Required = addressSettings.StreetAddress2Required;
            model.ZipPostalCodeEnabled = addressSettings.ZipPostalCodeEnabled;
            model.ZipPostalCodeRequired = addressSettings.ZipPostalCodeRequired;
            model.CityEnabled = addressSettings.CityEnabled;
            model.CityRequired = addressSettings.CityRequired;
            model.CountryEnabled = addressSettings.CountryEnabled;
            model.StateProvinceEnabled = addressSettings.StateProvinceEnabled;
            model.PhoneEnabled = addressSettings.PhoneEnabled;
            model.PhoneRequired = addressSettings.PhoneRequired;
            model.FaxEnabled = addressSettings.FaxEnabled;
            model.FaxRequired = addressSettings.FaxRequired;

            //customer attribute services
            if (addressAttributeService != null && addressAttributeParser != null)
            {
                PrepareCustomAddressAttributes(model, address, addressAttributeService, addressAttributeParser, overrideAttributesXml);
            }
            if (addressAttributeFormatter != null && address != null)
            {
                model.FormattedCustomAddressAttributes = addressAttributeFormatter.FormatAttributes(address.CustomAttributes);
            }
        }
        public CheckoutController(IWorkContext workContext,
            IStoreContext storeContext,
            IStoreMappingService storeMappingService,
            IShoppingCartService shoppingCartService, 
            ILocalizationService localizationService, 
            ITaxService taxService, 
            ICurrencyService currencyService, 
            IPriceFormatter priceFormatter, 
            IOrderProcessingService orderProcessingService,
            ICustomerService customerService, 
            IGenericAttributeService genericAttributeService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IShippingService shippingService, 
            IPaymentService paymentService,
            IPluginFinder pluginFinder,
            IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger,
            IOrderService orderService,
            IWebHelper webHelper,
            HttpContextBase httpContext,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            OrderSettings orderSettings, 
            RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings,
            ShippingSettings shippingSettings,
            AddressSettings addressSettings)
        {
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._storeMappingService = storeMappingService;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._genericAttributeService = genericAttributeService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._pluginFinder = pluginFinder;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;
            this._httpContext = httpContext;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._addressSettings = addressSettings;
        }
 public CustomTokenProvider(
     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,
     ICustomerAttributeFormatter customerAttributeFormatter,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     MessageTemplatesSettings templatesSettings,
     CatalogSettings catalogSettings,
     TaxSettings taxSettings,
     CurrencySettings currencySettings,
     ShippingSettings shippingSettings,
     PaymentSettings paymentSettings,
     IEventPublisher eventPublisher,
     StoreInformationSettings storeInformationSettings,
     IPluginFinder pluginFinder)
     :
     base(languageService,
          localizationService,
          dateTimeHelper,
          priceFormatter,
          currencyService,
          workContext,
          downloadService,
          orderService,
          paymentService,
          storeService,
          storeContext,
          productAttributeParser,
          addressAttributeFormatter,
          customerAttributeFormatter,
          urlHelperFactory,
          actionContextAccessor,
          templatesSettings,
          catalogSettings,
          taxSettings,
          currencySettings,
          shippingSettings,
          paymentSettings,
          eventPublisher,
          storeInformationSettings)
 {
     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._customerAttributeFormatter = customerAttributeFormatter;
     this._storeService               = storeService;
     this._storeContext               = storeContext;
     this._templatesSettings          = templatesSettings;
     this._catalogSettings            = catalogSettings;
     this._taxSettings                = taxSettings;
     this._currencySettings           = currencySettings;
     this._shippingSettings           = shippingSettings;
     this._paymentSettings            = paymentSettings;
     this._eventPublisher             = eventPublisher;
     this._storeInformationSettings   = storeInformationSettings;
     this._pluginFinder               = pluginFinder;
 }
        public OrderController(IOrderService orderService, 
            IOrderReportService orderReportService, 
            IOrderProcessingService orderProcessingService,
            IReturnRequestService returnRequestService,
            IPriceCalculationService priceCalculationService,
            ITaxService taxService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            IDiscountService discountService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            ICurrencyService currencyService,
            IEncryptionService encryptionService,
            IPaymentService paymentService,
            IMeasureService measureService,
            IPdfService pdfService,
            IAddressService addressService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IProductService productService,
            IExportManager exportManager,
            IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService, 
            IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService, 
            IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter, 
            IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService, 
            IDownloadService downloadService,
            IShipmentService shipmentService, 
            IShippingService shippingService,
            IStoreService storeService,
            IVendorService vendorService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            IAffiliateService affiliateService,
            IPictureService pictureService,
            ICustomerActivityService customerActivityService,
            ICacheManager cacheManager,
            OrderSettings orderSettings,
            CurrencySettings currencySettings, 
            TaxSettings taxSettings,
            MeasureSettings measureSettings,
            AddressSettings addressSettings,
            ShippingSettings shippingSettings)
		{
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._returnRequestService = returnRequestService;
            this._priceCalculationService = priceCalculationService;
            this._taxService = taxService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._discountService = discountService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._shippingService = shippingService;
            this._storeService = storeService;
            this._vendorService = vendorService;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService = affiliateService;
            this._pictureService = pictureService;
            this._customerActivityService = customerActivityService;
            this._cacheManager = cacheManager;
            this._orderSettings = orderSettings;
            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._addressSettings = addressSettings;
            this._shippingSettings = shippingSettings;
		}
        public ShoppingCartController(IProductService productService, 
            IStoreContext storeContext,
            IWorkContext workContext,
            IShoppingCartService shoppingCartService, 
            IPictureService pictureService,
            ILocalizationService localizationService, 
            IProductAttributeService productAttributeService, 
            IProductAttributeFormatter productAttributeFormatter,
            IProductAttributeParser productAttributeParser,
            ITaxService taxService, ICurrencyService currencyService, 
            IPriceCalculationService priceCalculationService,
            IPriceFormatter priceFormatter,
            ICheckoutAttributeParser checkoutAttributeParser,
            ICheckoutAttributeFormatter checkoutAttributeFormatter, 
            IOrderProcessingService orderProcessingService,
            IDiscountService discountService,
            ICustomerService customerService, 
            IGiftCardService giftCardService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IShippingService shippingService, 
            IOrderTotalCalculationService orderTotalCalculationService,
            ICheckoutAttributeService checkoutAttributeService, 
            IPaymentService paymentService,
            IWorkflowMessageService workflowMessageService,
            IPermissionService permissionService, 
            IDownloadService downloadService,
            ICacheManager cacheManager,
            IWebHelper webHelper, 
            ICustomerActivityService customerActivityService,
            IGenericAttributeService genericAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            HttpContextBase httpContext,
            MediaSettings mediaSettings,
            ShoppingCartSettings shoppingCartSettings,
            CatalogSettings catalogSettings, 
            OrderSettings orderSettings,
            ShippingSettings shippingSettings, 
            TaxSettings taxSettings,
            CaptchaSettings captchaSettings, 
            AddressSettings addressSettings,
            RewardPointsSettings rewardPointsSettings)
        {
            this._productService = productService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._shoppingCartService = shoppingCartService;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._productAttributeService = productAttributeService;
            this._productAttributeFormatter = productAttributeFormatter;
            this._productAttributeParser = productAttributeParser;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._checkoutAttributeParser = checkoutAttributeParser;
            this._checkoutAttributeFormatter = checkoutAttributeFormatter;
            this._orderProcessingService = orderProcessingService;
            this._discountService = discountService;
            this._customerService = customerService;
            this._giftCardService = giftCardService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._checkoutAttributeService = checkoutAttributeService;
            this._paymentService = paymentService;
            this._workflowMessageService = workflowMessageService;
            this._permissionService = permissionService;
            this._downloadService = downloadService;
            this._cacheManager = cacheManager;
            this._webHelper = webHelper;
            this._customerActivityService = customerActivityService;
            this._genericAttributeService = genericAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._httpContext = httpContext;

            this._mediaSettings = mediaSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._orderSettings = orderSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._captchaSettings = captchaSettings;
            this._addressSettings = addressSettings;
            this._rewardPointsSettings = rewardPointsSettings;
        }
        public InvoicesController(IOrderService orderService,
            IOrderReportService orderReportService,
            IOrderProcessingService orderProcessingService,
            IPriceCalculationService priceCalculationService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            IDiscountService discountService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            ICurrencyService currencyService,
            IEncryptionService encryptionService,
            IPaymentService paymentService,
            IMeasureService measureService,
            IPdfService pdfService,
            IAddressService addressService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            Nop.Services.Catalog.IProductService productService,
            IExportManager exportManager,
            IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService,
            IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter,
            IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService,
            IDownloadService downloadService,
            IShipmentService shipmentService,
            IShippingService shippingService,
            IStoreService storeService,
            IVendorService vendorService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            IAffiliateService affiliateService,
            IPictureService pictureService,
            CurrencySettings currencySettings,
            TaxSettings taxSettings,
            MeasureSettings measureSettings,
            AddressSettings addressSettings,
            ShippingSettings shippingSettings,
            IInvoiceService invoiceService,
            IGenericAttributeService genericAttributeService,
            IProductTemplateService productTemplateService,
            IStoreContext storeContext,
            ISettingService settingService,
            IGroupDealService groupDealService)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._priceCalculationService = priceCalculationService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._discountService = discountService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._shippingService = shippingService;
            this._storeService = storeService;
            this._vendorService = vendorService;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService = affiliateService;
            this._pictureService = pictureService;

            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._addressSettings = addressSettings;
            this._shippingSettings = shippingSettings;
            this._invoiceService = invoiceService;
            this._genericAttributeService = genericAttributeService;
            this._productTemplateService = productTemplateService;
            this._storeContext = storeContext;
            this._settingService = settingService;
            this._groupDealService = groupDealService;
        }
Example #31
0
 public UserStateManagementController(
     IUserStateManagementService userStateManagement,
     ICustomerService customerService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerReportService customerReportService,
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     RewardPointsSettings rewardPointsSettings,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IAddressService addressService,
     CustomerSettings customerSettings,
     ITaxService taxService,
     IWorkContext workContext,
     IVendorService vendorService,
     IStoreContext storeContext,
     IPriceFormatter priceFormatter,
     IOrderService orderService,
     IExportManager exportManager,
     ICustomerActivityService customerActivityService,
     IPriceCalculationService priceCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPermissionService permissionService,
     IQueuedEmailService queuedEmailService,
     EmailAccountSettings emailAccountSettings,
     IEmailAccountService emailAccountService,
     ForumSettings forumSettings,
     IForumService forumService,
     IOpenAuthenticationService openAuthenticationService,
     AddressSettings addressSettings,
     IStoreService storeService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IAffiliateService affiliateService,
     IWorkflowMessageService workflowMessageService)
     : base(customerService, newsLetterSubscriptionService, genericAttributeService,
            customerRegistrationService, customerReportService, dateTimeHelper,
            localizationService, dateTimeSettings, taxSettings, rewardPointsSettings,
            countryService, stateProvinceService, addressService, customerSettings,
            taxService, workContext, vendorService, storeContext, priceFormatter,
            orderService, exportManager, customerActivityService, priceCalculationService,
            productAttributeFormatter, permissionService, queuedEmailService,
            emailAccountSettings, emailAccountService, forumSettings,
            forumService, openAuthenticationService, addressSettings,
            storeService, customerAttributeParser, customerAttributeService,
            addressAttributeParser, addressAttributeService, addressAttributeFormatter,
            affiliateService, workflowMessageService)
 {
     this._customerService = customerService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._genericAttributeService       = genericAttributeService;
     this._customerRegistrationService   = customerRegistrationService;
     this._customerReportService         = customerReportService;
     this._dateTimeHelper             = dateTimeHelper;
     this._localizationService        = localizationService;
     this._dateTimeSettings           = dateTimeSettings;
     this._taxSettings                = taxSettings;
     this._rewardPointsSettings       = rewardPointsSettings;
     this._countryService             = countryService;
     this._stateProvinceService       = stateProvinceService;
     this._addressService             = addressService;
     this._customerSettings           = customerSettings;
     this._taxService                 = taxService;
     this._workContext                = workContext;
     this._vendorService              = vendorService;
     this._storeContext               = storeContext;
     this._priceFormatter             = priceFormatter;
     this._orderService               = orderService;
     this._exportManager              = exportManager;
     this._customerActivityService    = customerActivityService;
     this._priceCalculationService    = priceCalculationService;
     this._productAttributeFormatter  = productAttributeFormatter;
     this._permissionService          = permissionService;
     this._queuedEmailService         = queuedEmailService;
     this._emailAccountSettings       = emailAccountSettings;
     this._emailAccountService        = emailAccountService;
     this._forumSettings              = forumSettings;
     this._forumService               = forumService;
     this._openAuthenticationService  = openAuthenticationService;
     this._addressSettings            = addressSettings;
     this._storeService               = storeService;
     this._customerAttributeParser    = customerAttributeParser;
     this._customerAttributeService   = customerAttributeService;
     this._addressAttributeParser     = addressAttributeParser;
     this._addressAttributeService    = addressAttributeService;
     this._addressAttributeFormatter  = addressAttributeFormatter;
     this._affiliateService           = affiliateService;
     this._workflowMessageService     = workflowMessageService;
     this._userStateManagementService = userStateManagement;
 }
 public AccountController(IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ICustomerService customerService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings,
     ForumSettings forumSettings,
     OrderSettings orderSettings,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IOrderService orderService,
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IShoppingCartService shoppingCartService,
     IOpenAuthenticationService openAuthenticationService,
     IDownloadService downloadService,
     IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     MediaSettings mediaSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings,
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IMultitenantService vendorService,
     IGroupDealService groupDealService,
     ICategoryService categoryService,
     IVendorAddressService vendorAddressService,
     IProductService productService,
     IStoreService storeService,
     StoreInformationSettings storeInformationSettings)
 {
     this._authenticationService = authenticationService;
     this._dateTimeHelper = dateTimeHelper;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._customerService = customerService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._taxService = taxService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
     this._addressSettings = addressSettings;
     this._forumSettings = forumSettings;
     this._orderSettings = orderSettings;
     this._addressService = addressService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderService = orderService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._openAuthenticationService = openAuthenticationService;
     this._downloadService = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService = customerActivityService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._mediaSettings = mediaSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._categories = new System.Collections.Generic.List<DTOs.Category>();
     this._vendorService = vendorService;
     this._groupDealService = groupDealService;
     this._categoryService = categoryService;
     this._vendorAddressService = vendorAddressService;
     this._productService = productService;
     this._storeService = storeService;
     this._storeInformationSettings = storeInformationSettings;
 }
Example #33
0
 public CustomerController(IAuthenticationService authenticationService,
                           IDateTimeHelper dateTimeHelper,
                           DateTimeSettings dateTimeSettings,
                           TaxSettings taxSettings,
                           ILocalizationService localizationService,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           IStoreMappingService storeMappingService,
                           ICustomerService customerService,
                           ICustomerAttributeParser customerAttributeParser,
                           ICustomerAttributeService customerAttributeService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ITaxService taxService,
                           RewardPointsSettings rewardPointsSettings,
                           CustomerSettings customerSettings,
                           AddressSettings addressSettings,
                           ForumSettings forumSettings,
                           OrderSettings orderSettings,
                           IAddressService addressService,
                           ICountryService countryService,
                           IStateProvinceService stateProvinceService,
                           IOrderService orderService,
                           IPictureService pictureService,
                           INewsLetterSubscriptionService newsLetterSubscriptionService,
                           IShoppingCartService shoppingCartService,
                           IOpenAuthenticationService openAuthenticationService,
                           IDownloadService downloadService,
                           IWebHelper webHelper,
                           ICustomerActivityService customerActivityService,
                           IAddressAttributeParser addressAttributeParser,
                           IAddressAttributeService addressAttributeService,
                           IAddressAttributeFormatter addressAttributeFormatter,
                           IReturnRequestService returnRequestService,
                           IEventPublisher eventPublisher,
                           MediaSettings mediaSettings,
                           IWorkflowMessageService workflowMessageService,
                           LocalizationSettings localizationSettings,
                           CaptchaSettings captchaSettings,
                           SecuritySettings securitySettings,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           StoreInformationSettings storeInformationSettings)
 {
     this._authenticationService       = authenticationService;
     this._dateTimeHelper              = dateTimeHelper;
     this._dateTimeSettings            = dateTimeSettings;
     this._taxSettings                 = taxSettings;
     this._localizationService         = localizationService;
     this._workContext                 = workContext;
     this._storeContext                = storeContext;
     this._storeMappingService         = storeMappingService;
     this._customerService             = customerService;
     this._customerAttributeParser     = customerAttributeParser;
     this._customerAttributeService    = customerAttributeService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._taxService                    = taxService;
     this._rewardPointsSettings          = rewardPointsSettings;
     this._customerSettings              = customerSettings;
     this._addressSettings               = addressSettings;
     this._forumSettings                 = forumSettings;
     this._orderSettings                 = orderSettings;
     this._addressService                = addressService;
     this._countryService                = countryService;
     this._stateProvinceService          = stateProvinceService;
     this._orderService                  = orderService;
     this._pictureService                = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService           = shoppingCartService;
     this._openAuthenticationService     = openAuthenticationService;
     this._downloadService               = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService        = customerActivityService;
     this._addressAttributeParser         = addressAttributeParser;
     this._addressAttributeService        = addressAttributeService;
     this._addressAttributeFormatter      = addressAttributeFormatter;
     this._returnRequestService           = returnRequestService;
     this._eventPublisher                 = eventPublisher;
     this._mediaSettings                  = mediaSettings;
     this._workflowMessageService         = workflowMessageService;
     this._localizationSettings           = localizationSettings;
     this._captchaSettings                = captchaSettings;
     this._securitySettings               = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._storeInformationSettings       = storeInformationSettings;
 }
Example #34
0
        //address
        /// <summary>
        /// Prepare address model
        /// </summary>
        /// <param name="model">Model</param>
        /// <param name="address">Address</param>
        /// <param name="excludeProperties">A value indicating whether to exclude properties</param>
        /// <param name="addressSettings">Address settings</param>
        /// <param name="localizationService">Localization service (used to prepare a select list)</param>
        /// <param name="stateProvinceService">State service (used to prepare a select list). null to don't prepare the list.</param>
        /// <param name="addressAttributeService">Address attribute service. null to don't prepare the list.</param>
        /// <param name="addressAttributeParser">Address attribute parser. null to don't prepare the list.</param>
        /// <param name="addressAttributeFormatter">Address attribute formatter. null to don't prepare the formatted custom attributes.</param>
        /// <param name="loadCountries">A function to load countries  (used to prepare a select list). null to don't prepare the list.</param>
        /// <param name="prePopulateWithCustomerFields">A value indicating whether to pre-populate an address with customer fields entered during registration. It's used only when "address" parameter is set to "null"</param>
        /// <param name="customer">Customer record which will be used to pre-populate address. Used only when "prePopulateWithCustomerFields" is "true".</param>
        /// <param name="overrideAttributesXml">When specified we do not use attributes of an address; if null, then already saved ones are used</param>
        public static void PrepareModel(this AddressModel model,
                                        Address address, bool excludeProperties,
                                        AddressSettings addressSettings,
                                        ILocalizationService localizationService             = null,
                                        IStateProvinceService stateProvinceService           = null,
                                        IAddressAttributeService addressAttributeService     = null,
                                        IAddressAttributeParser addressAttributeParser       = null,
                                        IAddressAttributeFormatter addressAttributeFormatter = null,
                                        Func <IList <Country> > loadCountries = null,
                                        bool prePopulateWithCustomerFields    = false,
                                        Customer customer            = null,
                                        string overrideAttributesXml = "")
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }

            if (addressSettings == null)
            {
                throw new ArgumentNullException("addressSettings");
            }

            if (!excludeProperties && address != null)
            {
                model.Id          = address.Id;
                model.FirstName   = address.FirstName;
                model.LastName    = address.LastName;
                model.Email       = address.Email;
                model.Company     = address.Company;
                model.CountryId   = address.CountryId;
                model.CountryName = address.Country != null
                    ? address.Country.GetLocalized(x => x.Name)
                    : null;

                model.StateProvinceId   = address.StateProvinceId;
                model.StateProvinceName = address.StateProvince != null
                    ? address.StateProvince.GetLocalized(x => x.Name)
                    : null;

                model.City          = address.City;
                model.Address1      = address.Address1;
                model.Address2      = address.Address2;
                model.ZipPostalCode = address.ZipPostalCode;
                model.PhoneNumber   = address.PhoneNumber;
                model.FaxNumber     = address.FaxNumber;
            }

            if (address == null && prePopulateWithCustomerFields)
            {
                if (customer == null)
                {
                    throw new Exception("Customer cannot be null when prepopulating an address");
                }
                model.Email         = customer.Email;
                model.FirstName     = customer.GetAttribute <string>(SystemCustomerAttributeNames.FirstName);
                model.LastName      = customer.GetAttribute <string>(SystemCustomerAttributeNames.LastName);
                model.Company       = customer.GetAttribute <string>(SystemCustomerAttributeNames.Company);
                model.Address1      = customer.GetAttribute <string>(SystemCustomerAttributeNames.StreetAddress);
                model.Address2      = customer.GetAttribute <string>(SystemCustomerAttributeNames.StreetAddress2);
                model.ZipPostalCode = customer.GetAttribute <string>(SystemCustomerAttributeNames.ZipPostalCode);
                model.City          = customer.GetAttribute <string>(SystemCustomerAttributeNames.City);
                //ignore country and state for prepopulation. it can cause some issues when posting pack with errors, etc
                //model.CountryId = customer.GetAttribute<int>(SystemCustomerAttributeNames.CountryId);
                //model.StateProvinceId = customer.GetAttribute<int>(SystemCustomerAttributeNames.StateProvinceId);
                model.PhoneNumber = customer.GetAttribute <string>(SystemCustomerAttributeNames.Phone);
                model.FaxNumber   = customer.GetAttribute <string>(SystemCustomerAttributeNames.Fax);
            }

            //countries and states
            if (addressSettings.CountryEnabled && loadCountries != null)
            {
                if (localizationService == null)
                {
                    throw new ArgumentNullException("localizationService");
                }

                model.AvailableCountries.Add(new SelectListItem {
                    Text = localizationService.GetResource("Address.SelectCountry"), Value = "0"
                });
                foreach (var c in loadCountries())
                {
                    model.AvailableCountries.Add(new SelectListItem
                    {
                        Text     = c.GetLocalized(x => x.Name),
                        Value    = c.Id.ToString(),
                        Selected = c.Id == model.CountryId
                    });
                }

                if (addressSettings.StateProvinceEnabled)
                {
                    //states
                    if (stateProvinceService == null)
                    {
                        throw new ArgumentNullException("stateProvinceService");
                    }

                    var languageId = EngineContext.Current.Resolve <IWorkContext>().WorkingLanguage.Id;
                    var states     = stateProvinceService
                                     .GetStateProvincesByCountryId(model.CountryId.HasValue ? model.CountryId.Value : 0, languageId)
                                     .ToList();
                    if (states.Any())
                    {
                        model.AvailableStates.Add(new SelectListItem {
                            Text = localizationService.GetResource("Address.SelectState"), Value = "0"
                        });

                        foreach (var s in states)
                        {
                            model.AvailableStates.Add(new SelectListItem
                            {
                                Text     = s.GetLocalized(x => x.Name),
                                Value    = s.Id.ToString(),
                                Selected = (s.Id == model.StateProvinceId)
                            });
                        }
                    }
                    else
                    {
                        bool anyCountrySelected = model.AvailableCountries.Any(x => x.Selected);
                        model.AvailableStates.Add(new SelectListItem
                        {
                            Text  = localizationService.GetResource(anyCountrySelected ? "Address.OtherNonUS" : "Address.SelectState"),
                            Value = "0"
                        });
                    }
                }
            }

            //form fields
            model.CompanyEnabled         = addressSettings.CompanyEnabled;
            model.CompanyRequired        = addressSettings.CompanyRequired;
            model.StreetAddressEnabled   = addressSettings.StreetAddressEnabled;
            model.StreetAddressRequired  = addressSettings.StreetAddressRequired;
            model.StreetAddress2Enabled  = addressSettings.StreetAddress2Enabled;
            model.StreetAddress2Required = addressSettings.StreetAddress2Required;
            model.ZipPostalCodeEnabled   = addressSettings.ZipPostalCodeEnabled;
            model.ZipPostalCodeRequired  = addressSettings.ZipPostalCodeRequired;
            model.CityEnabled            = addressSettings.CityEnabled;
            model.CityRequired           = addressSettings.CityRequired;
            model.CountryEnabled         = addressSettings.CountryEnabled;
            model.StateProvinceEnabled   = addressSettings.StateProvinceEnabled;
            model.PhoneEnabled           = addressSettings.PhoneEnabled;
            model.PhoneRequired          = addressSettings.PhoneRequired;
            model.FaxEnabled             = addressSettings.FaxEnabled;
            model.FaxRequired            = addressSettings.FaxRequired;

            //customer attribute services
            if (addressAttributeService != null && addressAttributeParser != null)
            {
                PrepareCustomAddressAttributes(model, address, addressAttributeService, addressAttributeParser, overrideAttributesXml);
            }
            if (addressAttributeFormatter != null && address != null)
            {
                model.FormattedCustomAddressAttributes = addressAttributeFormatter.FormatAttributes(address.CustomAttributes);
            }
        }
Example #35
0
        public OrderAmazonController(IWorkContext workContext,
            IStoreContext storeContext,
            IStoreService storeService,
            ISettingService settingService,
            ILocalizationService localizationService,
            IPermissionService permissionService,
            IDateTimeHelper dateTimeHelper,

            IOrderService orderService,
            IOrderReportService orderReportService,
            IVendorService vendorService,
            ICacheManager cacheManager,
            IShippingService shippingService,
            IPaymentService paymentService,
            ICountryService countryService,
            IProductService productService,
            IPriceFormatter priceFormatter,
            ICurrencyService currencyService,
            CurrencySettings currencySettings,
            TaxSettings taxSettings,
            IAffiliateService affiliateService,
            IDiscountService discountService,
            IAddressAttributeFormatter addressAttributeFormatter,
            AddressSettings addressSettings,

            IOrderAmazonService orderAmazonService,

            IRepository<OrderItem> orderItemRepository,
            IRepository<OrderAmazon> orderAmazonRepository,
            IRepository<ProductMapping> productMappingRepository,

            IProductAttributeParser productAttributeParser,
        IPluginFinder pluginFinder)
        {
            this._localizationService = localizationService;
            this._settingService = settingService;
            this._storeContext = storeContext;
            this._storeService = storeService;
            this._workContext = workContext;
            this._permissionService = permissionService;
            this._dateTimeHelper = dateTimeHelper;

            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderAmazonService = orderAmazonService;
            this._vendorService = vendorService;
            this._cacheManager = cacheManager;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._countryService = countryService;
            this._productService = productService;
            this._priceFormatter = priceFormatter;
            this._currencyService = currencyService;
            this._currencySettings = currencySettings;

            this._taxSettings = taxSettings;
            this._affiliateService = affiliateService;
            this._discountService = discountService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._addressSettings = addressSettings;

            this._orderItemRepository = orderItemRepository;
            this._orderAmazonRepository = orderAmazonRepository;
            this._productMappingRepository = productMappingRepository;

            this._productAttributeParser = productAttributeParser;
        }
 public ShipmentController(
     IShipmentViewModelService shipmentViewModelService,
     IOrderService orderService,
     IOrderProcessingService orderProcessingService,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IMeasureService measureService,
     IPdfService pdfService,
     IProductService productService,
     IExportManager exportManager,
     IWorkflowMessageService workflowMessageService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IProductAttributeService productAttributeService,
     IProductAttributeParser productAttributeParser,
     IProductAttributeFormatter productAttributeFormatter,
     IShoppingCartService shoppingCartService,
     IGiftCardService giftCardService,
     IDownloadService downloadService,
     IShipmentService shipmentService,
     IShippingService shippingService,
     IStoreService storeService,
     IVendorService vendorService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IAffiliateService affiliateService,
     IPictureService pictureService,
     ITaxService taxService,
     IReturnRequestService returnRequestService,
     ICustomerService customerService,
     ICustomerActivityService customerActivityService,
     CurrencySettings currencySettings,
     TaxSettings taxSettings,
     MeasureSettings measureSettings,
     AddressSettings addressSettings,
     ShippingSettings shippingSettings,
     MediaSettings mediaSettings)
 {
     this._shipmentViewModelService = shipmentViewModelService;
     this._orderService             = orderService;
     this._orderProcessingService   = orderProcessingService;
     this._localizationService      = localizationService;
     this._workContext               = workContext;
     this._measureService            = measureService;
     this._pdfService                = pdfService;
     this._productService            = productService;
     this._exportManager             = exportManager;
     this._workflowMessageService    = workflowMessageService;
     this._categoryService           = categoryService;
     this._manufacturerService       = manufacturerService;
     this._productAttributeService   = productAttributeService;
     this._productAttributeParser    = productAttributeParser;
     this._productAttributeFormatter = productAttributeFormatter;
     this._shoppingCartService       = shoppingCartService;
     this._giftCardService           = giftCardService;
     this._downloadService           = downloadService;
     this._shipmentService           = shipmentService;
     this._shippingService           = shippingService;
     this._storeService              = storeService;
     this._vendorService             = vendorService;
     this._addressAttributeParser    = addressAttributeParser;
     this._addressAttributeService   = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._affiliateService          = affiliateService;
     this._pictureService            = pictureService;
     this._taxService                = taxService;
     this._returnRequestService      = returnRequestService;
     this._customerActivityService   = customerActivityService;
     this._currencySettings          = currencySettings;
     this._taxSettings               = taxSettings;
     this._measureSettings           = measureSettings;
     this._addressSettings           = addressSettings;
     this._shippingSettings          = shippingSettings;
     this._customerService           = customerService;
     this._mediaSettings             = mediaSettings;
 }
        public ShoppingCartModelExtension(
            IShoppingCartModelFactory shoppingCartModelFactory,
            IPluginFinder pluginFinder,
            IProductService productService,
            IStoreContext storeContext,
            IWorkContext workContext,
            IShoppingCartService shoppingCartService,
            IPictureService pictureService,
            ILocalizationService localizationService,
            IProductAttributeService productAttributeService,
            IProductAttributeFormatter productAttributeFormatter,
            IProductAttributeParser productAttributeParser,
            ITaxService taxService, ICurrencyService currencyService,
            IPriceCalculationService priceCalculationService,
            IPriceFormatter priceFormatter,
            ICheckoutAttributeParser checkoutAttributeParser,
            ICheckoutAttributeFormatter checkoutAttributeFormatter,
            IOrderProcessingService orderProcessingService,
            IDiscountService discountService,
            ICustomerService customerService,
            IGiftCardService giftCardService,
            IDateRangeService dateRangeService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IShippingService shippingService,
            IOrderTotalCalculationService orderTotalCalculationService,
            ICheckoutAttributeService checkoutAttributeService,
            IPaymentService paymentService,
            IWorkflowMessageService workflowMessageService,
            IPermissionService permissionService,
            IDownloadService downloadService,
            IStaticCacheManager cacheManager,
            IWebHelper webHelper,
            ICustomerActivityService customerActivityService,
            IGenericAttributeService genericAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            MediaSettings mediaSettings,
            ShoppingCartSettings shoppingCartSettings,
            CatalogSettings catalogSettings,
            OrderSettings orderSettings,
            ShippingSettings shippingSettings,
            TaxSettings taxSettings,
            CaptchaSettings captchaSettings,
            AddressSettings addressSettings,
            RewardPointsSettings rewardPointsSettings,
            CustomerSettings customerSettings) : base(
                shoppingCartModelFactory,
                productService,
                storeContext,
                workContext,
                shoppingCartService,
                pictureService,
                localizationService,
                productAttributeService,
                productAttributeParser,
                taxService,
                currencyService,
                priceCalculationService,
                priceFormatter,
                checkoutAttributeParser,
                discountService,
                customerService,
                giftCardService,
                dateRangeService,
                checkoutAttributeService,
                workflowMessageService,
                permissionService,
                downloadService,
                cacheManager,
                webHelper,
                customerActivityService,
                genericAttributeService,
                mediaSettings,
                shoppingCartSettings,
                orderSettings,
                captchaSettings,
                customerSettings
                )
        {
            this._productService            = productService;
            this._workContext               = workContext;
            this._storeContext              = storeContext;
            this._shoppingCartService       = shoppingCartService;
            this._pictureService            = pictureService;
            this._localizationService       = localizationService;
            this._productAttributeService   = productAttributeService;
            this._productAttributeFormatter = productAttributeFormatter;
            this._productAttributeParser    = productAttributeParser;
            this._taxService                   = taxService;
            this._currencyService              = currencyService;
            this._priceCalculationService      = priceCalculationService;
            this._priceFormatter               = priceFormatter;
            this._checkoutAttributeParser      = checkoutAttributeParser;
            this._checkoutAttributeFormatter   = checkoutAttributeFormatter;
            this._orderProcessingService       = orderProcessingService;
            this._discountService              = discountService;
            this._customerService              = customerService;
            this._giftCardService              = giftCardService;
            this._countryService               = countryService;
            this._stateProvinceService         = stateProvinceService;
            this._shippingService              = shippingService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._checkoutAttributeService     = checkoutAttributeService;
            this._paymentService               = paymentService;
            this._workflowMessageService       = workflowMessageService;
            this._permissionService            = permissionService;
            this._downloadService              = downloadService;
            this._cacheManager                 = cacheManager;
            this._webHelper = webHelper;
            this._customerActivityService   = customerActivityService;
            this._genericAttributeService   = genericAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;

            this._mediaSettings            = mediaSettings;
            this._shoppingCartSettings     = shoppingCartSettings;
            this._catalogSettings          = catalogSettings;
            this._orderSettings            = orderSettings;
            this._shippingSettings         = shippingSettings;
            this._taxSettings              = taxSettings;
            this._captchaSettings          = captchaSettings;
            this._addressSettings          = addressSettings;
            this._rewardPointsSettings     = rewardPointsSettings;
            this._customerSettings         = customerSettings;
            this._shoppingCartModelFactory = shoppingCartModelFactory;
        }
 public CustomerController(IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ICustomerService customerService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings,
     ForumSettings forumSettings,
     OrderSettings orderSettings,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IOrderService orderService,
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IShoppingCartService shoppingCartService,
     IOpenAuthenticationService openAuthenticationService,
     IDownloadService downloadService,
     IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IReturnRequestService returnRequestService,
     IEventPublisher eventPublisher,
     MediaSettings mediaSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings,
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     StoreInformationSettings storeInformationSettings)
 {
     this._authenticationService = authenticationService;
     this._dateTimeHelper = dateTimeHelper;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._customerService = customerService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._taxService = taxService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
     this._addressSettings = addressSettings;
     this._forumSettings = forumSettings;
     this._orderSettings = orderSettings;
     this._addressService = addressService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderService = orderService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._openAuthenticationService = openAuthenticationService;
     this._downloadService = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService = customerActivityService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._returnRequestService = returnRequestService;
     this._eventPublisher = eventPublisher;
     this._mediaSettings = mediaSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._storeInformationSettings = storeInformationSettings;
 }
Example #39
0
        public InvoicesController(IOrderService orderService,
                                  IOrderReportService orderReportService,
                                  IOrderProcessingService orderProcessingService,
                                  IPriceCalculationService priceCalculationService,
                                  IDateTimeHelper dateTimeHelper,
                                  IPriceFormatter priceFormatter,
                                  IDiscountService discountService,
                                  ILocalizationService localizationService,
                                  IWorkContext workContext,
                                  ICurrencyService currencyService,
                                  IEncryptionService encryptionService,
                                  IPaymentService paymentService,
                                  IMeasureService measureService,
                                  IPdfService pdfService,
                                  IAddressService addressService,
                                  ICountryService countryService,
                                  IStateProvinceService stateProvinceService,
                                  Nop.Services.Catalog.IProductService productService,
                                  IExportManager exportManager,
                                  IPermissionService permissionService,
                                  IWorkflowMessageService workflowMessageService,
                                  ICategoryService categoryService,
                                  IManufacturerService manufacturerService,
                                  IProductAttributeService productAttributeService,
                                  IProductAttributeParser productAttributeParser,
                                  IProductAttributeFormatter productAttributeFormatter,
                                  IShoppingCartService shoppingCartService,
                                  IGiftCardService giftCardService,
                                  IDownloadService downloadService,
                                  IShipmentService shipmentService,
                                  IShippingService shippingService,
                                  IStoreService storeService,
                                  IVendorService vendorService,
                                  IAddressAttributeParser addressAttributeParser,
                                  IAddressAttributeService addressAttributeService,
                                  IAddressAttributeFormatter addressAttributeFormatter,
                                  IAffiliateService affiliateService,
                                  IPictureService pictureService,
                                  CurrencySettings currencySettings,
                                  TaxSettings taxSettings,
                                  MeasureSettings measureSettings,
                                  AddressSettings addressSettings,
                                  ShippingSettings shippingSettings,
                                  IInvoiceService invoiceService,
                                  IGenericAttributeService genericAttributeService,
                                  IProductTemplateService productTemplateService,
                                  IStoreContext storeContext,
                                  ISettingService settingService,
                                  IGroupDealService groupDealService)
        {
            this._orderService            = orderService;
            this._orderReportService      = orderReportService;
            this._orderProcessingService  = orderProcessingService;
            this._priceCalculationService = priceCalculationService;
            this._dateTimeHelper          = dateTimeHelper;
            this._priceFormatter          = priceFormatter;
            this._discountService         = discountService;
            this._localizationService     = localizationService;
            this._workContext             = workContext;
            this._currencyService         = currencyService;
            this._encryptionService       = encryptionService;
            this._paymentService          = paymentService;
            this._measureService          = measureService;
            this._pdfService                = pdfService;
            this._addressService            = addressService;
            this._countryService            = countryService;
            this._stateProvinceService      = stateProvinceService;
            this._productService            = productService;
            this._exportManager             = exportManager;
            this._permissionService         = permissionService;
            this._workflowMessageService    = workflowMessageService;
            this._categoryService           = categoryService;
            this._manufacturerService       = manufacturerService;
            this._productAttributeService   = productAttributeService;
            this._productAttributeParser    = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService       = shoppingCartService;
            this._giftCardService           = giftCardService;
            this._downloadService           = downloadService;
            this._shipmentService           = shipmentService;
            this._shippingService           = shippingService;
            this._storeService              = storeService;
            this._vendorService             = vendorService;
            this._addressAttributeParser    = addressAttributeParser;
            this._addressAttributeService   = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService          = affiliateService;
            this._pictureService            = pictureService;

            this._currencySettings        = currencySettings;
            this._taxSettings             = taxSettings;
            this._measureSettings         = measureSettings;
            this._addressSettings         = addressSettings;
            this._shippingSettings        = shippingSettings;
            this._invoiceService          = invoiceService;
            this._genericAttributeService = genericAttributeService;
            this._productTemplateService  = productTemplateService;
            this._storeContext            = storeContext;
            this._settingService          = settingService;
            this._groupDealService        = groupDealService;
        }