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, CatalogSettings catalogSettings, OrderSettings orderSettings, TaxSettings taxSettings, PdfSettings pdfSettings, ShippingSettings shippingSettings, AddressSettings addressSettings) { 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._catalogSettings = catalogSettings; this._orderSettings = orderSettings; this._taxSettings = taxSettings; this._pdfSettings = pdfSettings; this._shippingSettings = shippingSettings; this._addressSettings = addressSettings; }
/// <summary> /// Ctor /// </summary> /// <param name="cacheManager">Cache manager</param> /// <param name="addressRepository">Address repository</param> /// <param name="countryService">Country service</param> /// <param name="stateProvinceService">State/province service</param> /// <param name="eventPublisher">Event publisher</param> /// <param name="addressSettings">Address settings</param> public AddressService(ICacheManager cacheManager, IRepository<Address> addressRepository, ICountryService countryService, IStateProvinceService stateProvinceService, IEventPublisher eventPublisher, AddressSettings addressSettings) { this._cacheManager = cacheManager; this._addressRepository = addressRepository; this._countryService = countryService; this._stateProvinceService = stateProvinceService; this._eventPublisher = eventPublisher; this._addressSettings = addressSettings; }
public CheckoutController(IWorkContext workContext, IStoreContext storeContext, IShoppingCartService shoppingCartService, ILocalizationService localizationService, ITaxService taxService, ICurrencyService currencyService, IPriceFormatter priceFormatter, IOrderProcessingService orderProcessingService, ICustomerService customerService, IGenericAttributeService genericAttributeService, ICountryService countryService, IStateProvinceService stateProvinceService, IShippingService shippingService, IPaymentService paymentService, IOrderTotalCalculationService orderTotalCalculationService, ILogger logger, IOrderService orderService, IWebHelper webHelper, HttpContextBase httpContext, IMobileDeviceHelper mobileDeviceHelper, OrderSettings orderSettings, RewardPointsSettings rewardPointsSettings, PaymentSettings paymentSettings, AddressSettings addressSettings) { this._workContext = workContext; this._storeContext = storeContext; 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._orderTotalCalculationService = orderTotalCalculationService; this._logger = logger; this._orderService = orderService; this._webHelper = webHelper; this._httpContext = httpContext; this._mobileDeviceHelper = mobileDeviceHelper; this._orderSettings = orderSettings; this._rewardPointsSettings = rewardPointsSettings; this._paymentSettings = paymentSettings; this._addressSettings = addressSettings; }
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, IWebHelper webHelper, 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._webHelper = webHelper; this._currencySettings = currencySettings; this._catalogSettings = catalogSettings; this._measureSettings = measureSettings; this._pdfSettings = pdfSettings; this._taxSettings = taxSettings; this._addressSettings = addressSettings; }
public CustomerController(IAuthenticationService authenticationService, IDateTimeHelper dateTimeHelper, DateTimeSettings dateTimeSettings, TaxSettings taxSettings, ILocalizationService localizationService, IWorkContext workContext, IStoreContext storeContext, ICustomerService customerService, IGenericAttributeService genericAttributeService, ICustomerRegistrationService customerRegistrationService, ITaxService taxService, RewardPointsSettings rewardPointsSettings, CustomerSettings customerSettings,AddressSettings addressSettings, ForumSettings forumSettings, OrderSettings orderSettings, IAddressService addressService, ICountryService countryService, IStateProvinceService stateProvinceService, IOrderTotalCalculationService orderTotalCalculationService, IOrderProcessingService orderProcessingService, IOrderService orderService, ICurrencyService currencyService, IPriceFormatter priceFormatter, IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService, IForumService forumService, IShoppingCartService shoppingCartService, IOpenAuthenticationService openAuthenticationService, IBackInStockSubscriptionService backInStockSubscriptionService, IDownloadService downloadService, IWebHelper webHelper, ICustomerActivityService customerActivityService, MediaSettings mediaSettings, IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings, CaptchaSettings captchaSettings, ExternalAuthenticationSettings externalAuthenticationSettings) { this._authenticationService = authenticationService; this._dateTimeHelper = dateTimeHelper; this._dateTimeSettings = dateTimeSettings; this._taxSettings = taxSettings; this._localizationService = localizationService; this._workContext = workContext; this._storeContext = storeContext; this._customerService = customerService; 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._orderProcessingService = orderProcessingService; this._orderTotalCalculationService = orderTotalCalculationService; this._orderService = orderService; this._currencyService = currencyService; this._priceFormatter = priceFormatter; this._pictureService = pictureService; this._newsLetterSubscriptionService = newsLetterSubscriptionService; this._forumService = forumService; this._shoppingCartService = shoppingCartService; this._openAuthenticationService = openAuthenticationService; this._backInStockSubscriptionService = backInStockSubscriptionService; this._downloadService = downloadService; this._webHelper = webHelper; this._customerActivityService = customerActivityService; this._mediaSettings = mediaSettings; this._workflowMessageService = workflowMessageService; this._localizationSettings = localizationSettings; this._captchaSettings = captchaSettings; this._externalAuthenticationSettings = externalAuthenticationSettings; }
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, MediaSettings mediaSettings, ShoppingCartSettings shoppingCartSettings, CatalogSettings catalogSettings, OrderSettings orderSettings, ShippingSettings shippingSettings, TaxSettings taxSettings, CaptchaSettings captchaSettings, AddressSettings addressSettings) { 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._mediaSettings = mediaSettings; this._shoppingCartSettings = shoppingCartSettings; this._catalogSettings = catalogSettings; this._orderSettings = orderSettings; this._shippingSettings = shippingSettings; this._taxSettings = taxSettings; this._captchaSettings = captchaSettings; this._addressSettings = addressSettings; }
public CustomerController(ICustomerService customerService, 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, AdminAreaSettings adminAreaSettings, IQueuedEmailService queuedEmailService, EmailAccountSettings emailAccountSettings, IEmailAccountService emailAccountService, ForumSettings forumSettings, IForumService forumService, IOpenAuthenticationService openAuthenticationService, AddressSettings addressSettings, IStoreService storeService) { this._customerService = customerService; 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._adminAreaSettings = adminAreaSettings; this._queuedEmailService = queuedEmailService; this._emailAccountSettings = emailAccountSettings; this._emailAccountService = emailAccountService; this._forumSettings = forumSettings; this._forumService = forumService; this._openAuthenticationService = openAuthenticationService; this._addressSettings = addressSettings; this._storeService = storeService; }
public static AddressSettings ToEntity(this CustomerUserSettingsModel.AddressSettingsModel model, AddressSettings destination) { return Mapper.Map(model, destination); }
/// <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="loadCountries">A function to load countries (used to prepare a select list). null to don't prepare the list.</param> public static void PrepareModel(this AddressModel model, Address address, bool excludeProperties, AddressSettings addressSettings, ILocalizationService localizationService = null, IStateProvinceService stateProvinceService = null, Func<IList<Country>> loadCountries = null) { 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; } //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 states = stateProvinceService .GetStateProvincesByCountryId(model.CountryId.HasValue ? model.CountryId.Value : 0) .ToList(); if (states.Count > 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 { model.AvailableStates.Add(new SelectListItem() { Text = localizationService.GetResource("Address.OtherNonUS"), 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; }
public OrderController(IOrderService orderService, IOrderReportService orderReportService, IOrderProcessingService orderProcessingService, 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, IStoreService storeService, IVendorService vendorService, CatalogSettings catalogSettings, CurrencySettings currencySettings, TaxSettings taxSettings, MeasureSettings measureSettings, PdfSettings pdfSettings, AddressSettings addressSettings) { this._orderService = orderService; this._orderReportService = orderReportService; this._orderProcessingService = orderProcessingService; 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._storeService = storeService; this._vendorService = vendorService; this._catalogSettings = catalogSettings; this._currencySettings = currencySettings; this._taxSettings = taxSettings; this._measureSettings = measureSettings; this._pdfSettings = pdfSettings; this._addressSettings = addressSettings; }