Example #1
0
 public DefaultPaymentAccountant(ILogger logger, IOrderService orderService, IPaymentTransactionService paymentTransactionService, ICartService cartService, IStoreCreditService storeCreditService, AffiliateSettings affiliateSettings)
 {
     _logger       = logger;
     _orderService = orderService;
     _paymentTransactionService = paymentTransactionService;
     _cartService        = cartService;
     _storeCreditService = storeCreditService;
     _affiliateSettings  = affiliateSettings;
 }
Example #2
0
 public UsersController(IUserService userService, IMediaAccountant mediaAccountant, UserSettings userSettings, IMediaService mediaService, IModelMapper modelMapper, AffiliateSettings affiliateSettings)
 {
     _userService       = userService;
     _mediaAccountant   = mediaAccountant;
     _userSettings      = userSettings;
     _mediaService      = mediaService;
     _modelMapper       = modelMapper;
     _affiliateSettings = affiliateSettings;
 }
 public AuthenticationController(IAppAuthenticationService appAuthenticationService, UserSettings userSettings, SecuritySettings securitySettings, IUserRegistrationService userRegistrationService, IRoleService roleService, IUserService userService, ICryptographyService cryptographyService, IUserCodeService userCodeService, IPreviousPasswordService previousPasswordService, IConsentService consentService, IGdprService gdprService, IGdprModelFactory gdprModelFactory, IInviteRequestService inviteRequestService, AffiliateSettings affiliateSettings)
 {
     _appAuthenticationService = appAuthenticationService;
     _userSettings             = userSettings;
     _securitySettings         = securitySettings;
     _userRegistrationService  = userRegistrationService;
     _roleService             = roleService;
     _userService             = userService;
     _cryptographyService     = cryptographyService;
     _userCodeService         = userCodeService;
     _previousPasswordService = previousPasswordService;
     _consentService          = consentService;
     _gdprService             = gdprService;
     _gdprModelFactory        = gdprModelFactory;
     _inviteRequestService    = inviteRequestService;
     _affiliateSettings       = affiliateSettings;
 }
Example #4
0
 public CheckoutController(IPaymentProcessor paymentProcessor, IPaymentAccountant paymentAccountant, IModelMapper modelMapper, IAddressService addressService, ICartService cartService, IDataSerializer dataSerializer, IPluginAccountant pluginAccountant, IOrderService orderService, OrderSettings orderSettings, IRoleService roleService, IUserService userService, IProductService productService, IOrderAccountant orderAccountant, IDownloadService downloadService, ILogger logger, AffiliateSettings affiliateSettings, IStoreCreditService storeCreditService, IPriceAccountant priceAccountant, ICryptographyService cryptographyService)
 {
     _paymentProcessor    = paymentProcessor;
     _paymentAccountant   = paymentAccountant;
     _modelMapper         = modelMapper;
     _addressService      = addressService;
     _cartService         = cartService;
     _dataSerializer      = dataSerializer;
     _pluginAccountant    = pluginAccountant;
     _orderService        = orderService;
     _orderSettings       = orderSettings;
     _roleService         = roleService;
     _userService         = userService;
     _productService      = productService;
     _orderAccountant     = orderAccountant;
     _downloadService     = downloadService;
     _logger              = logger;
     _affiliateSettings   = affiliateSettings;
     _storeCreditService  = storeCreditService;
     _priceAccountant     = priceAccountant;
     _cryptographyService = cryptographyService;
 }
Example #5
0
 public AffiliateEventsCapture(AffiliateSettings affiliateSettings, IStoreCreditService storeCreditService, OrderSettings orderSettings)
 {
     _affiliateSettings  = affiliateSettings;
     _storeCreditService = storeCreditService;
     _orderSettings      = orderSettings;
 }
Example #6
0
 public static decimal GetAffiliateAmount(this AffiliateSettings affiliateSettings, decimal amount)
 {
     return(affiliateSettings.UseCommissionPercentage
         ? (amount * affiliateSettings.CommissionValue) / 100
         : affiliateSettings.CommissionValue);
 }