Ejemplo n.º 1
0
        public TemplateService(IKenticoResourceService resources, IKenticoLogger logger, ITemplatedClient templateClient,
                               IKenticoUserProvider users, IKenticoDocumentProvider documents, IKenticoProductsProvider products)
        {
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (templateClient == null)
            {
                throw new ArgumentNullException(nameof(templateClient));
            }
            if (users == null)
            {
                throw new ArgumentNullException(nameof(users));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (products == null)
            {
                throw new ArgumentNullException(nameof(products));
            }

            this._resources      = resources;
            this._logger         = logger;
            this._templateClient = templateClient;
            this._users          = users;
            this._documents      = documents;
            this._products       = products;
        }
Ejemplo n.º 2
0
 public OrderCreationService(IShoppingCartProvider shoppingCartProvider,
                             IKenticoAddressBookProvider kenticoAddressBookService, IKenticoUserProvider KenticoUserProvider,
                             IKenticoResourceService kenticoresourceService, IFailedOrderStatusProvider failedOrderStatusProvider)
 {
     if (shoppingCartProvider == null)
     {
         throw new ArgumentNullException(nameof(shoppingCartProvider));
     }
     if (kenticoAddressBookService == null)
     {
         throw new ArgumentNullException(nameof(kenticoAddressBookService));
     }
     if (KenticoUserProvider == null)
     {
         throw new ArgumentNullException(nameof(KenticoUserProvider));
     }
     if (kenticoresourceService == null)
     {
         throw new ArgumentNullException(nameof(kenticoresourceService));
     }
     if (failedOrderStatusProvider == null)
     {
         throw new ArgumentNullException(nameof(failedOrderStatusProvider));
     }
     this.shoppingCartProvider      = shoppingCartProvider;
     this.kenticoAddressBookService = kenticoAddressBookService;
     this.KenticoUserProvider       = KenticoUserProvider;
     this.kenticoresourceService    = kenticoresourceService;
     this.failedOrderStatusProvider = failedOrderStatusProvider;
 }
Ejemplo n.º 3
0
        public SubmissionService(ISubmissionIdProvider submissionProvider, IUserDataServiceClient userClient, IKenticoUserProvider kenticoUsers, IKenticoSiteProvider kenticoSite, IKenticoLogger kenticoLog)
        {
            if (submissionProvider == null)
            {
                throw new ArgumentNullException(nameof(submissionProvider));
            }
            if (userClient == null)
            {
                throw new ArgumentNullException(nameof(userClient));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (kenticoSite == null)
            {
                throw new ArgumentNullException(nameof(kenticoSite));
            }
            if (kenticoLog == null)
            {
                throw new ArgumentNullException(nameof(kenticoLog));
            }


            this.submissionProvider = submissionProvider;
            this.userClient         = userClient;
            this.kenticoUsers       = kenticoUsers;
            this.kenticoSite        = kenticoSite;
            this.kenticoLog         = kenticoLog;
        }
Ejemplo n.º 4
0
        public CreditCard3dsi(ISubmissionService submissionService, IUserDataServiceClient userClient, IKenticoUserProvider kenticoUsers, IKenticoLogger logger, IKenticoResourceService resources, IKenticoDocumentProvider documents, IKenticoSiteProvider kenticoSite, ISendSubmitOrder sendOrder, IShoppingCartProvider shoppingCart, IGetOrderDataService orderDataProvider, IOrderResultPageUrlFactory resultUrlFactory)
        {
            if (submissionService == null)
            {
                throw new ArgumentNullException(nameof(submissionService));
            }
            if (userClient == null)
            {
                throw new ArgumentNullException(nameof(userClient));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (kenticoSite == null)
            {
                throw new ArgumentNullException(nameof(kenticoSite));
            }
            if (sendOrder == null)
            {
                throw new ArgumentNullException(nameof(sendOrder));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (orderDataProvider == null)
            {
                throw new ArgumentNullException(nameof(orderDataProvider));
            }
            if (resultUrlFactory == null)
            {
                throw new ArgumentNullException(nameof(resultUrlFactory));
            }

            this.submissionService = submissionService;
            this.userClient        = userClient;
            this.kenticoUsers      = kenticoUsers;
            this.logger            = logger;
            this.resources         = resources;
            this.documents         = documents;
            this.kenticoSite       = kenticoSite;
            this.sendOrder         = sendOrder;
            this.shoppingCart      = shoppingCart;
            this.orderDataProvider = orderDataProvider;
            this.resultUrlFactory  = resultUrlFactory;
        }
Ejemplo n.º 5
0
        public OrderListService(IMapper mapper, IOrderViewClient orderClient, IKenticoUserProvider kenticoUsers,
                                IKenticoResourceService kenticoResources, IKenticoSiteProvider site, IKenticoOrderProvider order,
                                IKenticoDocumentProvider documents, IKenticoPermissionsProvider permissions, IKenticoLogger logger, IKenticoAddressBookProvider kenticoAddressBook)
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (orderClient == null)
            {
                throw new ArgumentNullException(nameof(orderClient));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (kenticoResources == null)
            {
                throw new ArgumentNullException(nameof(kenticoResources));
            }
            if (site == null)
            {
                throw new ArgumentNullException(nameof(site));
            }
            if (order == null)
            {
                throw new ArgumentNullException(nameof(order));
            }
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (kenticoAddressBook == null)
            {
                throw new ArgumentNullException(nameof(kenticoAddressBook));
            }

            _mapper             = mapper;
            _orderClient        = orderClient;
            _kenticoUsers       = kenticoUsers;
            _kenticoResources   = kenticoResources;
            _site               = site;
            _order              = order;
            _permissions        = permissions;
            _logger             = logger;
            _kenticoAddressBook = kenticoAddressBook;

            _orderDetailUrl = documents.GetDocumentUrl(kenticoResources.GetSettingsKey("KDA_OrderDetailUrl"));
        }
Ejemplo n.º 6
0
        public ShoppingCartService(IKenticoSiteProvider kenticoSite,
                                   IKenticoLocalizationProvider localization,
                                   IKenticoPermissionsProvider permissions,
                                   IKenticoUserProvider kenticoUsers,
                                   IKenticoResourceService resources,
                                   ITaxEstimationService taxCalculator,
                                   IKListService mailingService,
                                   IShoppingCartProvider shoppingCart,
                                   ICheckoutPageFactory checkoutfactory)
        {
            if (kenticoSite == null)
            {
                throw new ArgumentNullException(nameof(kenticoSite));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (taxCalculator == null)
            {
                throw new ArgumentNullException(nameof(taxCalculator));
            }
            if (mailingService == null)
            {
                throw new ArgumentNullException(nameof(mailingService));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (checkoutfactory == null)
            {
                throw new ArgumentNullException(nameof(checkoutfactory));
            }

            this.kenticoSite     = kenticoSite;
            this.localization    = localization;
            this.permissions     = permissions;
            this.kenticoUsers    = kenticoUsers;
            this.resources       = resources;
            this.taxCalculator   = taxCalculator;
            this.mailingService  = mailingService;
            this.shoppingCart    = shoppingCart;
            this.checkoutfactory = checkoutfactory;
        }
Ejemplo n.º 7
0
        public CustomerDataService(IKenticoUserProvider kenticoUsers, IKenticoPermissionsProvider kenticoPermissions, IKenticoLocalizationProvider kenticoLocalization)
        {
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (kenticoPermissions == null)
            {
                throw new ArgumentNullException(nameof(kenticoPermissions));
            }
            if (kenticoLocalization == null)
            {
                throw new ArgumentNullException(nameof(kenticoLocalization));
            }

            this.kenticoUsers        = kenticoUsers;
            this.kenticoPermissions  = kenticoPermissions;
            this.kenticoLocalization = kenticoLocalization;
        }
Ejemplo n.º 8
0
        public SettingsService(IKenticoPermissionsProvider permissions,
                               IKenticoLocalizationProvider localization,
                               IKenticoSiteProvider site,
                               IKenticoUserProvider kenticoUsers,
                               IKenticoResourceService resources,
                               IShoppingCartProvider shoppingCart)
        {
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (site == null)
            {
                throw new ArgumentNullException(nameof(site));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }

            _permissions  = permissions;
            _localization = localization;
            _site         = site;
            _kenticoUsers = kenticoUsers;
            _resources    = resources;
            _shoppingCart = shoppingCart;
        }
Ejemplo n.º 9
0
        public LoginService(IKenticoUserProvider kenticoUsers, IKenticoResourceService resources, IKenticoDocumentProvider documents, IKenticoLoginProvider login)
        {
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (documents == null)
            {
                throw new ArgumentNullException(nameof(documents));
            }
            if (login == null)
            {
                throw new ArgumentNullException(nameof(login));
            }

            this.kenticoUsers = kenticoUsers;
            this.resources    = resources;
            this.documents    = documents;
            this.login        = login;
        }
Ejemplo n.º 10
0
        public GetOrderDataService(IMapper mapper,
                                   IKenticoOrderProvider kenticoOrder,
                                   IShoppingCartProvider shoppingCart,
                                   IKenticoUserProvider kenticoUsers,
                                   IKenticoLogger kenticoLog,
                                   ITaxEstimationService taxService,
                                   ITemplatedClient templateService,
                                   IKenticoLocalizationProvider localization,
                                   IKenticoSiteProvider site,
                                   IKadenaSettings settings,
                                   IOrderDataFactory orderDataFactory
                                   )
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (kenticoOrder == null)
            {
                throw new ArgumentNullException(nameof(kenticoOrder));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (kenticoLog == null)
            {
                throw new ArgumentNullException(nameof(kenticoLog));
            }
            if (taxService == null)
            {
                throw new ArgumentNullException(nameof(taxService));
            }
            if (templateService == null)
            {
                throw new ArgumentNullException(nameof(templateService));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (site == null)
            {
                throw new ArgumentNullException(nameof(site));
            }
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }
            if (orderDataFactory == null)
            {
                throw new ArgumentNullException(nameof(orderDataFactory));
            }

            this.mapper           = mapper;
            this.kenticoOrder     = kenticoOrder;
            this.shoppingCart     = shoppingCart;
            this.kenticoUsers     = kenticoUsers;
            this.kenticoLog       = kenticoLog;
            this.taxService       = taxService;
            this.templateService  = templateService;
            this.localization     = localization;
            this.siteProvider     = site;
            this.settings         = settings;
            this.orderDataFactory = orderDataFactory;
        }
Ejemplo n.º 11
0
        public OrderDetailService(IMapper mapper,
                                  IOrderViewClient orderViewClient,
                                  IMailingListClient mailingClient,
                                  IKenticoOrderProvider kenticoOrder,
                                  IShoppingCartProvider shoppingCart,
                                  IKenticoProductsProvider products,
                                  IKenticoUserProvider kenticoUsers,
                                  IKenticoResourceService resources,
                                  IKenticoLogger kenticoLog,
                                  IKenticoLocalizationProvider localization,
                                  IKenticoPermissionsProvider permissions,
                                  IKenticoBusinessUnitsProvider businessUnits
                                  )
        {
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (orderViewClient == null)
            {
                throw new ArgumentNullException(nameof(orderViewClient));
            }
            if (mailingClient == null)
            {
                throw new ArgumentNullException(nameof(mailingClient));
            }
            if (kenticoOrder == null)
            {
                throw new ArgumentNullException(nameof(kenticoOrder));
            }
            if (shoppingCart == null)
            {
                throw new ArgumentNullException(nameof(shoppingCart));
            }
            if (products == null)
            {
                throw new ArgumentNullException(nameof(products));
            }
            if (kenticoUsers == null)
            {
                throw new ArgumentNullException(nameof(kenticoUsers));
            }
            if (resources == null)
            {
                throw new ArgumentNullException(nameof(resources));
            }
            if (kenticoLog == null)
            {
                throw new ArgumentNullException(nameof(kenticoLog));
            }
            if (localization == null)
            {
                throw new ArgumentNullException(nameof(localization));
            }
            if (permissions == null)
            {
                throw new ArgumentNullException(nameof(permissions));
            }
            if (businessUnits == null)
            {
                throw new ArgumentNullException(nameof(businessUnits));
            }

            this.mapper          = mapper;
            this.orderViewClient = orderViewClient;
            this.kenticoOrder    = kenticoOrder;
            this.shoppingCart    = shoppingCart;
            this.products        = products;
            this.kenticoUsers    = kenticoUsers;
            this.resources       = resources;
            this.mailingClient   = mailingClient;
            this.kenticoLog      = kenticoLog;
            this.localization    = localization;
            this.permissions     = permissions;
            this.businessUnits   = businessUnits;
        }