Exemplo n.º 1
0
 public DefaultOmniumOrderFactory(
     IShippingCalculator shippingCalculator,
     IMarketService marketService,
     CultureResolver cultureResolver,
     ITaxUtility taxUtility,
     ReferenceConverter referenceConverter,
     IContentRepository contentRepository,
     IPaymentManagerFacade paymentManagerFacade,
     ILineItemCalculator lineItemCalculator,
     IOrderFormCalculator orderFormCalculator,
     IOrderGroupCalculator orderGroupCalculator,
     IShipmentManagerFacade shipmentManagerFacade,
     IPromotionEngine promotionEngine)
 {
     _shippingCalculator    = shippingCalculator;
     _marketService         = marketService;
     _cultureResolver       = cultureResolver;
     _taxUtility            = taxUtility;
     _referenceConverter    = referenceConverter;
     _contentRepository     = contentRepository;
     _paymentManagerFacade  = paymentManagerFacade;
     _lineItemCalculator    = lineItemCalculator;
     _orderFormCalculator   = orderFormCalculator;
     _orderGroupCalculator  = orderGroupCalculator;
     _shipmentManagerFacade = shipmentManagerFacade;
     _promotionEngine       = promotionEngine;
 }
Exemplo n.º 2
0
 public CheckoutController(IContentRepository contentRepository,
                           IMailService mailService,
                           LocalizationService localizationService,
                           ICurrencyService currencyService,
                           ControllerExceptionHandler controllerExceptionHandler,
                           CustomerContextFacade customerContextFacade,
                           IOrderRepository orderRepository,
                           CheckoutViewModelFactory checkoutViewModelFactory,
                           IOrderGroupCalculator orderGroupCalculator,
                           IPaymentProcessor paymentProcessor,
                           IPromotionEngine promotionEngine,
                           ICartService cartService,
                           IAddressBookService addressBookService,
                           OrderSummaryViewModelFactory orderSummaryViewModelFactory,
                           IOrderGroupFactory orderGroupFactory)
 {
     _contentRepository            = contentRepository;
     _mailService                  = mailService;
     _localizationService          = localizationService;
     _currencyService              = currencyService;
     _controllerExceptionHandler   = controllerExceptionHandler;
     _customerContext              = customerContextFacade;
     _orderRepository              = orderRepository;
     _checkoutViewModelFactory     = checkoutViewModelFactory;
     _orderGroupCalculator         = orderGroupCalculator;
     _paymentProcessor             = paymentProcessor;
     _promotionEngine              = promotionEngine;
     _cartService                  = cartService;
     _addressBookService           = addressBookService;
     _orderSummaryViewModelFactory = orderSummaryViewModelFactory;
     _orderGroupFactory            = orderGroupFactory;
 }
 public OrderControllerBase(
     IOrderRepository orderRepository
     , IOrderGroupFactory orderGroupFactory
     , IOrderGroupCalculator orderGroupCalculator
     , IContentLoader contentLoader
     , ILineItemCalculator lineItemCalculator
     , IPlacedPriceProcessor placedPriceProcessor
     , IInventoryProcessor inventoryProcessor
     , ILineItemValidator lineItemValidator
     , IPromotionEngine promotionEngine
     , ICurrentMarket currentMarket
     , IPaymentProcessor paymentProcessor)
 {
     _orderRepository      = orderRepository;
     _orderGroupFactory    = orderGroupFactory;
     _orderGroupCalculator = orderGroupCalculator;
     _contentLoader        = contentLoader;
     _promotionEngine      = promotionEngine;
     _lineItemCalculator   = lineItemCalculator;
     _inventoryProcessor   = inventoryProcessor;
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _currentMarket        = currentMarket;
     _paymentProcessor     = paymentProcessor;
 }
Exemplo n.º 4
0
        public CheckoutService(
            IAddressBookService addressBookService,
            IOrderGroupFactory orderGroupFactory,
            IOrderGroupCalculator orderGroupCalculator,
            IPaymentProcessor paymentProcessor,
            IOrderRepository orderRepository,
            IContentRepository contentRepository,
            LocalizationService localizationService,
            IMailService mailService,
            IPromotionEngine promotionEngine,
            ILoyaltyService loyaltyService)
        {
            _addressBookService   = addressBookService;
            _orderGroupFactory    = orderGroupFactory;
            _orderGroupCalculator = orderGroupCalculator;
            _paymentProcessor     = paymentProcessor;
            _orderRepository      = orderRepository;
            _contentRepository    = contentRepository;
            _customerContext      = CustomerContext.Current;
            _localizationService  = localizationService;
            _mailService          = mailService;
            _promotionEngine      = promotionEngine;
            _loyaltyService       = loyaltyService;

            AuthenticatedPurchaseValidation = new AuthenticatedPurchaseValidation(_localizationService);
            AnonymousPurchaseValidation     = new AnonymousPurchaseValidation(_localizationService);
            CheckoutAddressHandling         = new CheckoutAddressHandling(_addressBookService);
        }
        public RequestDocumentCreation(IOrderGroupCalculator orderGroupCalculator, ILineItemCalculator lineItemCalculator, DataCashConfiguration dataCashConfiguration)
        {
            _orderGroupCalculator = orderGroupCalculator;
            _lineItemCalculator   = lineItemCalculator;

            _dataCashConfiguration = dataCashConfiguration;
        }
        public CheckoutService(
            IAddressBookService addressBookService,
            IOrderGroupFactory orderGroupFactory,
            IOrderGroupCalculator orderGroupCalculator,
            IPaymentProcessor paymentProcessor,
            IOrderRepository orderRepository,
            IContentRepository contentRepository,
            CustomerContextFacade customerContext,
            LocalizationService localizationService,
            IMailService mailService,
            ICartService cartService)
        {
            _addressBookService   = addressBookService;
            _orderGroupFactory    = orderGroupFactory;
            _orderGroupCalculator = orderGroupCalculator;
            _paymentProcessor     = paymentProcessor;
            _orderRepository      = orderRepository;
            _contentRepository    = contentRepository;
            _customerContext      = customerContext;
            _localizationService  = localizationService;
            _mailService          = mailService;
            _cartService          = cartService;

            AuthenticatedPurchaseValidation = new AuthenticatedPurchaseValidation(_localizationService);
            AnonymousPurchaseValidation     = new AnonymousPurchaseValidation(_localizationService);
            CheckoutAddressHandling         = new CheckoutAddressHandling(_addressBookService);
        }
 public CheckoutControllerForTest(
     IContentRepository contentRepository,
     IMailService mailService,
     LocalizationService localizationService,
     ICurrencyService currencyService,
     ControllerExceptionHandler controllerExceptionHandler,
     CustomerContextFacade customerContextFacade,
     IOrderRepository orderRepository,
     CheckoutViewModelFactory checkoutViewModelFactory,
     IOrderGroupCalculator orderGroupCalculator,
     IPaymentProcessor paymentProcessor,
     IPromotionEngine promotionEngine,
     ICartService cartService,
     IAddressBookService addressBookService,
     OrderSummaryViewModelFactory orderSummaryViewModelFactory,
     IOrderFactory orderFactory
     )
     : base(contentRepository,
            mailService,
            localizationService,
            currencyService,
            controllerExceptionHandler,
            customerContextFacade,
            orderRepository,
            checkoutViewModelFactory,
            orderGroupCalculator,
            paymentProcessor,
            promotionEngine,
            cartService,
            addressBookService,
            orderSummaryViewModelFactory,
            orderFactory)
 {
 }
Exemplo n.º 8
0
        public DefaultCartController(
            ICartService cartService,
            IOrderRepository orderRepository,
            ICommerceTrackingService recommendationService,
            CartViewModelFactory cartViewModelFactory,
            IContentLoader contentLoader,
            IContentRouteHelper contentRouteHelper,
            ReferenceConverter referenceConverter,
            IQuickOrderService quickOrderService,
            ICustomerService customerService,
            ShipmentViewModelFactory shipmentViewModelFactory,
            CheckoutService checkoutService,
            IOrderGroupCalculator orderGroupCalculator,
            CartItemViewModelFactory cartItemViewModelFactory,
            IProductService productService,
            LanguageResolver languageResolver)

        {
            _cartService              = cartService;
            _orderRepository          = orderRepository;
            _recommendationService    = recommendationService;
            _cartViewModelFactory     = cartViewModelFactory;
            _contentLoader            = contentLoader;
            _contentRouteHelper       = contentRouteHelper;
            _referenceConverter       = referenceConverter;
            _quickOrderService        = quickOrderService;
            _customerService          = customerService;
            _shipmentViewModelFactory = shipmentViewModelFactory;
            _checkoutService          = checkoutService;
            _orderGroupCalculator     = orderGroupCalculator;
            _cartItemViewModelFactory = cartItemViewModelFactory;
            _productService           = productService;
            _languageResolver         = languageResolver;
        }
Exemplo n.º 9
0
 public OrderSummaryViewModelFactory(
     IOrderGroupCalculator orderGroupCalculator,
     ICurrencyService currencyService)
 {
     _orderGroupCalculator = orderGroupCalculator;
     _currencyService      = currencyService;
 }
 public OrderConfirmationMailPageController(
     ConfirmationService confirmationService,
     AddressBookService addressBookService,
     CustomerContextFacade customerContextFacade,
     IOrderGroupCalculator orderGroupTotalsCalculator)
     : base(confirmationService, addressBookService, customerContextFacade, orderGroupTotalsCalculator)
 {
 }
Exemplo n.º 11
0
 public CartHandler(ICartFactory cartFactory, IOrderGroupFactory orderGroupFactory, IContentLoader contentLoader, ReferenceConverter referenceConverter, ICustomerPriceService customerPriceService, IOrderGroupCalculator orderGroupCalculator)
 {
     _cartFactory          = cartFactory;
     _orderGroupFactory    = orderGroupFactory;
     _contentLoader        = contentLoader;
     _referenceConverter   = referenceConverter;
     _customerPriceService = customerPriceService;
     _orderGroupCalculator = orderGroupCalculator;
 }
 public PayPalAPIHelper(
     IOrderGroupCalculator orderGroupCalculator,
     LocalizationService localizationService,
     PayPalCurrencies paypalCurrencies)
 {
     _orderGroupCalculator = orderGroupCalculator;
     _localizationService  = localizationService;
     _paypalCurrencies     = paypalCurrencies;
 }
 public OrderConfirmationController(
     //ICampaignService campaignService,
     IConfirmationService confirmationService,
     IAddressBookService addressBookService,
     IOrderGroupCalculator orderGroupCalculator,
     UrlResolver urlResolver, ICustomerService customerService) :
     base(confirmationService, addressBookService, orderGroupCalculator, urlResolver, customerService)
 {
     //_campaignService = campaignService;
 }
Exemplo n.º 14
0
 public OrderConfirmationMailController(ConfirmationService confirmationService,
                                        AddressBookService addressBookService,
                                        CustomerService customerService,
                                        IOrderGroupCalculator orderGroupCalculator)
 {
     _confirmationService  = confirmationService;
     _addressBookService   = addressBookService;
     _customerService      = customerService;
     _orderGroupCalculator = orderGroupCalculator;
 }
 public OrderSummaryViewModelFactory(
     IOrderGroupTotalsCalculator orderGroupTotalsCalculator, 
     IOrderGroupCalculator orderGroupCalculator, 
     IShippingCalculator shippingCalculator, 
     ICurrencyService currencyService)
 {
     _orderGroupTotalsCalculator = orderGroupTotalsCalculator;
     _orderGroupCalculator = orderGroupCalculator;
     _shippingCalculator = shippingCalculator;
     _currencyService = currencyService;
 }
 public OrderSummaryViewModelFactory(
     IOrderGroupTotalsCalculator orderGroupTotalsCalculator,
     IOrderGroupCalculator orderGroupCalculator,
     IShippingCalculator shippingCalculator,
     ICurrencyService currencyService)
 {
     _orderGroupTotalsCalculator = orderGroupTotalsCalculator;
     _orderGroupCalculator       = orderGroupCalculator;
     _shippingCalculator         = shippingCalculator;
     _currencyService            = currencyService;
 }
Exemplo n.º 17
0
 protected KlarnaService(
     IOrderRepository orderRepository,
     IPaymentProcessor paymentProcessor,
     IOrderGroupCalculator orderGroupCalculator,
     IMarketService marketService)
 {
     _orderRepository      = orderRepository;
     _paymentProcessor     = paymentProcessor;
     _orderGroupCalculator = orderGroupCalculator;
     _marketService        = marketService;
 }
 public OrderConfirmationController(
     ConfirmationService confirmationService,
     AddressBookService addressBookService,
     CustomerContextFacade customerContextFacade,
     IOrderGroupCalculator orderGroupCalculator,
     IMarketService marketService,
     IRecommendationService recommendationService)
     : base(confirmationService, addressBookService, customerContextFacade, orderGroupCalculator, marketService)
 {
     _recommendationService = recommendationService;
 }
 protected OrderConfirmationControllerBase(
     ConfirmationService confirmationService,
     AddressBookService addressBookService,
     CustomerContextFacade customerContextFacade,
     IOrderGroupCalculator orderGroupTotalsCalculator)
 {
     _confirmationService        = confirmationService;
     _addressBookService         = addressBookService;
     _customerContext            = customerContextFacade;
     _orderGroupTotalsCalculator = orderGroupTotalsCalculator;
 }
Exemplo n.º 20
0
 public CartViewModelFactory(
     IContentLoader contentLoader,
     ICurrencyService currencyService,
     IOrderGroupCalculator orderGroupCalculator,
     ShipmentViewModelFactory shipmentViewModelFactory)
 {
     _contentLoader            = contentLoader;
     _currencyService          = currencyService;
     _orderGroupCalculator     = orderGroupCalculator;
     _shipmentViewModelFactory = shipmentViewModelFactory;
 }
Exemplo n.º 21
0
 protected OrderConfirmationControllerBase(ConfirmationService confirmationService,
                                           IAddressBookService addressBookService,
                                           IOrderGroupCalculator orderGroupTotalsCalculator,
                                           UrlResolver urlResolver,
                                           ICustomerService customerService)
 {
     _confirmationService  = confirmationService;
     _addressBookService   = addressBookService;
     _orderGroupCalculator = orderGroupTotalsCalculator;
     _urlResolver          = urlResolver;
     _customerService      = customerService;
 }
Exemplo n.º 22
0
 public CreateOrdersStep(ICartService cartService,
                         IOrderGroupCalculator orderGroupCalculator,
                         IOrderGroupFactory orderGroupFactory,
                         IOrderRepository orderRepository,
                         OrderValidationService orderValidationService)
 {
     _cartService            = cartService;
     _orderGroupCalculator   = orderGroupCalculator;
     _orderGroupFactory      = orderGroupFactory;
     _orderRepository        = orderRepository;
     _orderValidationService = orderValidationService;
 }
Exemplo n.º 23
0
 public OrderConfirmationMailController(IConfirmationService confirmationService,
                                        IAddressBookService addressBookService,
                                        ICustomerService customerService,
                                        IOrderGroupCalculator orderGroupCalculator,
                                        IContextModeResolver contextModeResolver)
 {
     _confirmationService  = confirmationService;
     _addressBookService   = addressBookService;
     _customerService      = customerService;
     _orderGroupCalculator = orderGroupCalculator;
     _contextModeResolver  = contextModeResolver;
 }
Exemplo n.º 24
0
 public CartViewModelFactory(
     IContentLoader contentLoader, 
     ICurrencyService currencyService, 
     IOrderGroupTotalsCalculator orderGroupTotalsCalculator, 
     IOrderGroupCalculator orderGroupCalculator, 
     ShipmentViewModelFactory shipmentViewModelFactory)
 {
     _contentLoader = contentLoader;
     _currencyService = currencyService;
     _orderGroupTotalsCalculator = orderGroupTotalsCalculator;
     _orderGroupCalculator = orderGroupCalculator;
     _shipmentViewModelFactory = shipmentViewModelFactory;
 }
 public AuthorizeTokenExCimBasedManager(
     AuthorizeTokenExService authorizeNetService,
     IOrderGroupCalculator orderGroupCalculator,
     IShippingCalculator shippingCalculator,
     ILineItemCalculator lineItemCalculator,
     IMarketService marketService)
 {
     _authorizeTokenExService = authorizeNetService;
     _orderGroupCalculator    = orderGroupCalculator;
     _shippingCalculator      = shippingCalculator;
     _lineItemCalculator      = lineItemCalculator;
     _marketService           = marketService;
 }
 protected OrderConfirmationControllerBase(
     ConfirmationService confirmationService,
     AddressBookService addressBookService,
     CustomerContextFacade customerContextFacade,
     IOrderGroupCalculator orderGroupCalculator,
     IMarketService marketService)
 {
     ConfirmationService   = confirmationService;
     _addressBookService   = addressBookService;
     CustomerContext       = customerContextFacade;
     _orderGroupCalculator = orderGroupCalculator;
     _marketService        = marketService;
 }
Exemplo n.º 27
0
 public CartViewModelFactory(
     IContentLoader contentLoader,
     IPricingService pricingService,
     IOrderGroupCalculator orderGroupCalculator,
     ShipmentViewModelFactory shipmentViewModelFactory,
     ReferenceConverter referenceConverter)
 {
     _contentLoader            = contentLoader;
     _pricingService           = pricingService;
     _orderGroupCalculator     = orderGroupCalculator;
     _shipmentViewModelFactory = shipmentViewModelFactory;
     _referenceConverter       = referenceConverter;
 }
Exemplo n.º 28
0
 public RequestFactory(
     ICheckoutConfigurationLoader checkoutConfigurationLoader,
     IOrderGroupCalculator orderGroupCalculator,
     IShippingCalculator shippingCalculator,
     SwedbankPayTaxCalculator swedbankPayTaxCalculator, IReturnLineItemCalculator returnLineItemCalculator)
 {
     _checkoutConfigurationLoader = checkoutConfigurationLoader ??
                                    throw new ArgumentNullException(nameof(checkoutConfigurationLoader));
     _orderGroupCalculator     = orderGroupCalculator;
     _shippingCalculator       = shippingCalculator;
     _swedbankPayTaxCalculator = swedbankPayTaxCalculator;
     _returnLineItemCalculator = returnLineItemCalculator;
 }
Exemplo n.º 29
0
 public PaymentDemoController(ReferenceConverter referenceConverter, IContentLoader contentLoader,
                              AssetUrlResolver assetUrlResolver, ICurrentMarket currentMarket, IPaymentProcessor paymentProcessor,
                              IOrderRepository orderRepository, IOrderGroupFactory orderGroupFactory, IOrderGroupCalculator orderGroupCalculator)
 {
     _referenceConverter   = referenceConverter;
     _contentLoader        = contentLoader;
     _assetUrlResolver     = assetUrlResolver;
     _currentMarket        = currentMarket;
     _paymentProcessor     = paymentProcessor;
     _orderRepository      = orderRepository;
     _orderGroupFactory    = orderGroupFactory;
     _orderGroupCalculator = orderGroupCalculator;
 }
Exemplo n.º 30
0
 public DefaultVippsResponseFactory(
     IPromotionEngine promotionEngine,
     IOrderGroupFactory orderGroupFactory,
     IOrderGroupCalculator orderGroupCalculator,
     IVippsOrderProcessor vippsOrderCreator,
     IVippsService vippsService)
 {
     _promotionEngine      = promotionEngine;
     _orderGroupFactory    = orderGroupFactory;
     _orderGroupCalculator = orderGroupCalculator;
     _vippsOrderCreator    = vippsOrderCreator;
     _vippsService         = vippsService;
 }
Exemplo n.º 31
0
 public OrderSearchBlockController(IAddressBookService addressBookService,
                                   ICustomerService customerService,
                                   IOrderGroupCalculator orderGroupCalculator,
                                   IContentLoader contentLoader,
                                   PaymentMethodViewModelFactory paymentMethodViewModelFactory,
                                   CookieService cookieService)
 {
     _addressBookService            = addressBookService;
     _customerService               = customerService;
     _orderGroupCalculator          = orderGroupCalculator;
     _contentLoader                 = contentLoader;
     _paymentMethodViewModelFactory = paymentMethodViewModelFactory;
     _cookieService                 = cookieService;
 }
Exemplo n.º 32
0
 public KlarnaCheckoutService(
     IOrderGroupTotalsCalculator orderGroupTotalsCalculator,
     IOrderRepository orderRepository,
     IPaymentProcessor paymentProcessor,
     IOrderGroupCalculator orderGroupCalculator,
     IKlarnaOrderValidator klarnaOrderValidator,
     KlarnaOrderServiceFactory klarnaOrderServiceFactory)
     : base(orderRepository, paymentProcessor, orderGroupCalculator)
 {
     _orderGroupTotalsCalculator = orderGroupTotalsCalculator;
     _orderRepository            = orderRepository;
     _klarnaOrderValidator       = klarnaOrderValidator;
     _klarnaOrderServiceFactory  = klarnaOrderServiceFactory;
 }
 public CheckoutControllerForTest(
     IContentRepository contentRepository,
     IMailService mailService,
     LocalizationService localizationService,
     ICurrencyService currencyService,
     ControllerExceptionHandler controllerExceptionHandler,
     CustomerContextFacade customerContextFacade,
     IOrderRepository orderRepository,
     CheckoutViewModelFactory checkoutViewModelFactory,
     IOrderGroupCalculator orderGroupCalculator,
     IPaymentProcessor paymentProcessor,
     IPromotionEngine promotionEngine,
     ICartService cartService,
     IAddressBookService addressBookService,
     OrderSummaryViewModelFactory orderSummaryViewModelFactory,
     IOrderFactory orderFactory
     )
     : base(contentRepository,
           mailService,
           localizationService,
           currencyService,
           controllerExceptionHandler,
           customerContextFacade,
           orderRepository,
           checkoutViewModelFactory,
           orderGroupCalculator,
           paymentProcessor,
           promotionEngine,
           cartService,
           addressBookService,
           orderSummaryViewModelFactory,
           orderFactory)
 {
 }