Beispiel #1
0
 public ProductShippingCostViewComponent(IWorkContext workContext,
                                         IGenericAttributeService genericAttributeService,
                                         IProductService productService,
                                         ICheckoutModelFactory checkoutModelFactory,
                                         IStoreContext storeContext)
 {
     this._productService          = productService;
     this._checkoutModelFactory    = checkoutModelFactory;
     this._workContext             = workContext;
     this._storeContext            = storeContext;
     this._genericAttributeService = genericAttributeService;
 }
Beispiel #2
0
 public FaraBotController(IFaraBotUserService BotService, IFaraBotConfigService BotConfigService, IOrderService orderService, ICustomerRegistrationService CustomerService,
                          IWorkContext workContext, OrderSettings orderSettings, IStoreContext storeContext, ICheckoutModelFactory checkoutModelFactory, IWebHelper webHelper, CustomerSettings customerSettings)
 {
     _BotUserService       = BotService;
     _BotConfigService     = BotConfigService;
     _orderService         = orderService;
     _workContext          = workContext;
     _orderSettings        = orderSettings;
     _storeContext         = storeContext;
     _checkoutModelFactory = checkoutModelFactory;
     _customerSettings     = customerSettings;
     _webHelper            = webHelper;
     _CustomerService      = CustomerService;
 }
Beispiel #3
0
 public OrderFullfillmentShipwireController(AddressSettings addressSettings,
                                            CustomerSettings customerSettings,
                                            IAddressAttributeParser addressAttributeParser,
                                            IAddressService addressService,
                                            ICheckoutModelFactory checkoutModelFactory,
                                            ICountryService countryService,
                                            ICustomerService customerService,
                                            IGenericAttributeService genericAttributeService,
                                            ILocalizationService localizationService,
                                            ILogger logger,
                                            IOrderProcessingService orderProcessingService,
                                            IOrderService orderService,
                                            IPaymentPluginManager paymentPluginManager,
                                            IPaymentService paymentService,
                                            IShippingService shippingService,
                                            IShoppingCartService shoppingCartService,
                                            IStateProvinceService stateProvinceService,
                                            IStoreContext storeContext,
                                            IWebHelper webHelper,
                                            IWorkContext workContext,
                                            OrderSettings orderSettings,
                                            PaymentSettings paymentSettings,
                                            RewardPointsSettings rewardPointsSettings,
                                            ShippingSettings shippingSettings) : base(addressSettings,
                                                                                      customerSettings,
                                                                                      addressAttributeParser,
                                                                                      addressService,
                                                                                      checkoutModelFactory,
                                                                                      countryService,
                                                                                      customerService,
                                                                                      genericAttributeService,
                                                                                      localizationService,
                                                                                      logger,
                                                                                      orderProcessingService,
                                                                                      orderService,
                                                                                      paymentPluginManager,
                                                                                      paymentService,
                                                                                      shippingService,
                                                                                      shoppingCartService,
                                                                                      stateProvinceService,
                                                                                      storeContext,
                                                                                      webHelper,
                                                                                      workContext,
                                                                                      orderSettings,
                                                                                      paymentSettings,
                                                                                      rewardPointsSettings,
                                                                                      shippingSettings)
 {
 }
Beispiel #4
0
        public async Task SetUp()
        {
            _settingService       = GetService <ISettingService>();
            _shippingSettings     = GetService <ShippingSettings>();
            _rewardPointsSettings = GetService <RewardPointsSettings>();
            _commonSettings       = GetService <CommonSettings>();

            _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod");
            await _settingService.SaveSettingAsync(_shippingSettings);

            _paymentSettings = GetService <PaymentSettings>();
            _paymentSettings.ActivePaymentMethodSystemNames.Add("Payments.TestMethod");
            await _settingService.SaveSettingAsync(_paymentSettings);

            _customer = await GetService <IWorkContext>().GetCurrentCustomerAsync();

            _rewardPointService = GetService <IRewardPointService>();
            await _rewardPointService.AddRewardPointsHistoryEntryAsync(_customer, 10000, 1);

            _shoppingCartService = GetService <IShoppingCartService>();
            _productService      = GetService <IProductService>();
            _addressService      = GetService <IAddressService>();

            _address = new Address();

            await _addressService.InsertAddressAsync(_address);

            await GetService <ICustomerService>().InsertCustomerAddressAsync(_customer, _address);

            _orderSettings = GetService <OrderSettings>();

            await _shoppingCartService.AddToCartAsync(_customer, await _productService.GetProductByIdAsync(1), ShoppingCartType.ShoppingCart, 1);

            await _shoppingCartService.AddToCartAsync(_customer, await _productService.GetProductByIdAsync(2), ShoppingCartType.ShoppingCart, 1);

            await _shoppingCartService.AddToCartAsync(_customer, await _productService.GetProductByIdAsync(3), ShoppingCartType.ShoppingCart, 1);

            _cart = await _shoppingCartService.GetShoppingCartAsync(_customer, ShoppingCartType.ShoppingCart);

            _paymentMethod = (await GetService <IPaymentPluginManager>().LoadActivePluginsAsync(new List <string> {
                "Payments.TestMethod"
            })).FirstOrDefault();
            _orderService  = GetService <IOrderService>();

            _checkoutModelFactory = GetService <ICheckoutModelFactory>();
        }
Beispiel #5
0
 public ProductController(CaptchaSettings captchaSettings,
                          CatalogSettings catalogSettings,
                          IAclService aclService,
                          ICompareProductsService compareProductsService,
                          ICustomerActivityService customerActivityService,
                          IEventPublisher eventPublisher,
                          ILocalizationService localizationService,
                          IOrderService orderService,
                          IPermissionService permissionService,
                          IProductModelFactory productModelFactory,
                          IProductService productService,
                          IRecentlyViewedProductsService recentlyViewedProductsService,
                          IStoreContext storeContext,
                          IStoreMappingService storeMappingService,
                          IUrlRecordService urlRecordService,
                          IWebHelper webHelper,
                          IWorkContext workContext,
                          IWorkflowMessageService workflowMessageService,
                          LocalizationSettings localizationSettings,
                          ShoppingCartSettings shoppingCartSettings,
                          ICheckoutModelFactory checkoutModelFactory)
 {
     this._captchaSettings               = captchaSettings;
     this._catalogSettings               = catalogSettings;
     this._aclService                    = aclService;
     this._compareProductsService        = compareProductsService;
     this._customerActivityService       = customerActivityService;
     this._eventPublisher                = eventPublisher;
     this._localizationService           = localizationService;
     this._orderService                  = orderService;
     this._permissionService             = permissionService;
     this._productModelFactory           = productModelFactory;
     this._productService                = productService;
     this._recentlyViewedProductsService = recentlyViewedProductsService;
     this._storeContext                  = storeContext;
     this._storeMappingService           = storeMappingService;
     this._urlRecordService              = urlRecordService;
     this._webHelper              = webHelper;
     this._workContext            = workContext;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings   = localizationSettings;
     this._shoppingCartSettings   = shoppingCartSettings;
     this._checkoutModelFactory   = checkoutModelFactory;
 }
Beispiel #6
0
 public CheckoutProgressViewComponent(ICheckoutModelFactory checkoutModelFactory)
 {
     this._checkoutModelFactory = checkoutModelFactory;
 }
 public SynchronyPaymentController(
     IWorkContext workContext,
     IStoreService storeService,
     ISettingService settingService,
     IPaymentService paymentService,
     IOrderService orderService,
     IOrderProcessingService orderProcessingService,
     ILocalizationService localizationService,
     IStoreContext storeContext,
     ILogger logger,
     IWebHelper webHelper,
     PaymentSettings paymentSettings,
     SynchronyPaymentSettings synchronyPaymentSettings,
     OrderSettings orderSettings,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     ITaxService taxService,
     IPriceCalculationService priceCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IProductAttributeParser productAttributeParser,
     IStaticCacheManager staticCacheManager,
     INotificationService notificationService,
     IShoppingCartService shoppingCartService,
     IProductService productService,
     IShoppingCartModelFactory shoppingCartModelFactory,
     IAddressService addressService,
     IStateProvinceService stateProvinceService,
     ICustomerService customerService,
     ICheckoutModelFactory checkoutModelFactory,
     IPaymentPluginManager paymentPluginManager,
     IGiftCardService giftCardService,
     IIsamGiftCardService isamGiftCardService,
     IHttpClientFactory httpClientFactory
     )
 {
     _workContext            = workContext;
     _storeService           = storeService;
     _settingService         = settingService;
     _paymentService         = paymentService;
     _orderService           = orderService;
     _orderProcessingService = orderProcessingService;
     _localizationService    = localizationService;
     _storeContext           = storeContext;
     _logger                    = logger;
     _webHelper                 = webHelper;
     _paymentSettings           = paymentSettings;
     _synchronyPaymentSettings  = synchronyPaymentSettings;
     _orderSettings             = orderSettings;
     _currencyService           = currencyService;
     _priceFormatter            = priceFormatter;
     _taxService                = taxService;
     _priceCalculationService   = priceCalculationService;
     _productAttributeFormatter = productAttributeFormatter;
     _productAttributeParser    = productAttributeParser;
     _staticCacheManager        = staticCacheManager;
     _notificationService       = notificationService;
     _shoppingCartService       = shoppingCartService;
     _productService            = productService;
     _shoppingCartModelFactory  = shoppingCartModelFactory;
     _addressService            = addressService;
     _stateProvinceService      = stateProvinceService;
     _customerService           = customerService;
     _checkoutModelFactory      = checkoutModelFactory;
     _paymentPluginManager      = paymentPluginManager;
     _giftCardService           = giftCardService;
     _isamGiftCardService       = isamGiftCardService;
     _httpClientFactory         = httpClientFactory;
 }
        public CustomCheckoutController(
            AddressSettings addressSettings,
            CustomerSettings customerSettings,
            IAddressAttributeParser addressAttributeParser,
            IAddressService addressService,
            ICheckoutModelFactory checkoutModelFactory,
            ICountryService countryService,
            ICustomerService customerService,
            IGenericAttributeService genericAttributeService,
            ILocalizationService localizationService,
            ILogger logger,
            IOrderProcessingService orderProcessingService,
            ICustomOrderService orderService,
            IPaymentPluginManager paymentPluginManager,
            IPaymentService paymentService,
            IProductService productService,
            IShippingService shippingService,
            IShoppingCartService shoppingCartService,
            IStoreContext storeContext,
            IWebHelper webHelper,
            IWorkContext workContext,
            OrderSettings orderSettings,
            PaymentSettings paymentSettings,
            RewardPointsSettings rewardPointsSettings,
            ShippingSettings shippingSettings,
            CoreSettings coreSettings,
            IProductAttributeService productAttributeService,
            IProductAttributeParser productAttributeParser,
            ISettingService settingService,
            IGiftCardService giftCardService,
            IIsamGiftCardService isamGiftCardService,
            IWarrantyService warrantyService,
            ITermLookupService termLookupService,
            ICardCheckService cardCheckService
            ) : base(addressSettings, customerSettings, addressAttributeParser,
                     addressService, checkoutModelFactory, countryService, customerService,
                     genericAttributeService, localizationService, logger, orderProcessingService,
                     orderService, paymentPluginManager, paymentService, productService,
                     shippingService, shoppingCartService, storeContext, webHelper,
                     workContext, orderSettings, paymentSettings, rewardPointsSettings,
                     shippingSettings)
        {
            _addressSettings         = addressSettings;
            _customerSettings        = customerSettings;
            _addressAttributeParser  = addressAttributeParser;
            _addressService          = addressService;
            _checkoutModelFactory    = checkoutModelFactory;
            _countryService          = countryService;
            _customerService         = customerService;
            _genericAttributeService = genericAttributeService;
            _localizationService     = localizationService;
            _logger = logger;
            _orderProcessingService = orderProcessingService;
            _orderService           = orderService;
            _paymentPluginManager   = paymentPluginManager;
            _paymentService         = paymentService;
            _productService         = productService;
            _shippingService        = shippingService;
            _shoppingCartService    = shoppingCartService;
            _storeContext           = storeContext;
            _webHelper            = webHelper;
            _workContext          = workContext;
            _orderSettings        = orderSettings;
            _paymentSettings      = paymentSettings;
            _rewardPointsSettings = rewardPointsSettings;
            _shippingSettings     = shippingSettings;
            _coreSettings         = coreSettings;

            _productAttributeService = productAttributeService;
            _productAttributeParser  = productAttributeParser;
            _settingService          = settingService;
            _giftCardService         = giftCardService;
            _isamGiftCardService     = isamGiftCardService;
            _warrantyService         = warrantyService;
            _termLookupService       = termLookupService;
            _cardCheckService        = cardCheckService;
        }