public CheckoutController(
     ICurrencyService currencyService,
     ControllerExceptionHandler controllerExceptionHandler,
     IOrderRepository orderRepository,
     CheckoutViewModelFactory checkoutViewModelFactory,
     ICartService cartService,
     OrderSummaryViewModelFactory orderSummaryViewModelFactory,
     IRecommendationService recommendationService,
     CheckoutService checkoutService,
     OrderValidationService orderValidationService,
     IDatabaseMode databaseMode,
     ISwedbankPayCheckoutService swedbankPayCheckoutService,
     IContentLoader contentLoader,
     IMarketService marketService,
     IAddressBookService addressBookService)
 {
     _currencyService            = currencyService;
     _controllerExceptionHandler = controllerExceptionHandler;
     _orderRepository            = orderRepository;
     _checkoutViewModelFactory   = checkoutViewModelFactory;
     _cartService = cartService;
     _orderSummaryViewModelFactory = orderSummaryViewModelFactory;
     _recommendationService        = recommendationService;
     _checkoutService            = checkoutService;
     _orderValidationService     = orderValidationService;
     _databaseMode               = databaseMode;
     _swedbankPayCheckoutService = swedbankPayCheckoutService;
     _contentLoader              = contentLoader;
     _marketService              = marketService;
     _addressBookService         = addressBookService;
 }
        public CheckoutService(
            IAddressBookService addressBookService,
            IOrderGroupFactory orderGroupFactory,
            IOrderGroupCalculator orderGroupCalculator,
            IPaymentProcessor paymentProcessor,
            IOrderRepository orderRepository,
            IContentRepository contentRepository,
            CustomerContextFacade customerContext,
            LocalizationService localizationService,
            IMailService mailService,
            ICartService cartService,
            IDatabaseMode databaseMode,
            ISwedbankPayCheckoutService swedbankPayCheckoutService)
        {
            _addressBookService         = addressBookService;
            _orderGroupFactory          = orderGroupFactory;
            _orderGroupCalculator       = orderGroupCalculator;
            _paymentProcessor           = paymentProcessor;
            _orderRepository            = orderRepository;
            _contentRepository          = contentRepository;
            _customerContext            = customerContext;
            _localizationService        = localizationService;
            _mailService                = mailService;
            _cartService                = cartService;
            _databaseMode               = databaseMode;
            _swedbankPayCheckoutService = swedbankPayCheckoutService;

            AuthenticatedPurchaseValidation = new AuthenticatedPurchaseValidation(_localizationService);
            AnonymousPurchaseValidation     = new AnonymousPurchaseValidation(_localizationService);
            CheckoutAddressHandling         = new CheckoutAddressHandling(_addressBookService, databaseMode);
        }
 public SwedbankPayCallbackController(
     CheckoutService checkoutService,
     IOrderGroupFactory orderGroupFactory,
     IOrderRepository orderRepository,
     IPaymentManagerFacade paymentManager,
     ISwedbankPayCheckoutService swedbankPayCheckoutService)
 {
     _checkoutService            = checkoutService;
     _orderGroupFactory          = orderGroupFactory;
     _orderRepository            = orderRepository;
     _paymentManager             = paymentManager;
     _swedbankPayCheckoutService = swedbankPayCheckoutService;
 }
 public SwedbankPayCheckoutPaymentMethod(
     LocalizationService localizationService,
     IOrderGroupFactory orderGroupFactory,
     LanguageService languageService,
     IPaymentManagerFacade paymentManager,
     ICartService cartService,
     IMarketService marketService,
     ISwedbankPayCheckoutService swedbankPayCheckoutService)
     : base(localizationService, orderGroupFactory, languageService, paymentManager)
 {
     _orderGroupFactory          = orderGroupFactory;
     _languageService            = languageService;
     _cartService                = cartService;
     _marketService              = marketService;
     _swedbankPayCheckoutService = swedbankPayCheckoutService;
 }
Example #5
0
 public OrderConfirmationController(
     ConfirmationService confirmationService,
     AddressBookService addressBookService,
     CustomerContextFacade customerContextFacade,
     CheckoutService checkoutService,
     ICartService cartService,
     IOrderGroupCalculator orderGroupCalculator,
     IOrderRepository orderRepository,
     IMarketService marketService,
     IRecommendationService recommendationService,
     ISwedbankPayCheckoutService swedbankPayCheckoutService)
     : base(confirmationService, addressBookService, customerContextFacade, orderGroupCalculator, marketService)
 {
     _checkoutService            = checkoutService;
     _cartService                = cartService;
     _orderRepository            = orderRepository;
     _recommendationService      = recommendationService;
     _swedbankPayCheckoutService = swedbankPayCheckoutService;
 }