public AddressValidationService(IStoreService storeService, Func <IAvaTaxSettings, AvaTaxClient> avaTaxClientFactory, ITaxProviderSearchService taxProviderSearchService, IOptions <AvaTaxSecureOptions> options)
 {
     _storeService             = storeService;
     _avaTaxClientFactory      = avaTaxClientFactory;
     _taxProviderSearchService = taxProviderSearchService;
     _options = options.Value;
 }
 public AvaTaxRateProvider(ILogger <AvaTaxRateProvider> log, Func <IAvaTaxSettings, AvaTaxClient> avaTaxClientFactory, IOptions <AvaTaxSecureOptions> options)
     : this()
 {
     _logger = new AvalaraLogger(log);
     _avaTaxClientFactory = avaTaxClientFactory;
     _options             = options.Value;
 }
Esempio n. 3
0
 public AvaTaxController(ILogger <AvaTaxController> log, Func <IAvaTaxSettings, AvaTaxClient> avaTaxClientFactory, IOrdersSynchronizationService ordersSynchronizationService,
                         IAddressValidationService addressValidationService, IPushNotificationManager pushNotificationManager, IUserNameResolver userNameResolver, IOptions <AvaTaxSecureOptions> options)
 {
     _logger = new AvalaraLogger(log);
     _avaTaxClientFactory          = avaTaxClientFactory;
     _ordersSynchronizationService = ordersSynchronizationService;
     _addressValidationService     = addressValidationService;
     _pushNotificationManager      = pushNotificationManager;
     _userNameResolver             = userNameResolver;
     _options = options.Value;
 }
 public OrdersSynchronizationService(ICustomerOrderService orderService, IStoreService storeService,
                                     IFulfillmentCenterService fulfillmentCenterService, IOrderTaxTypeResolver orderTaxTypeResolver,
                                     Func <IAvaTaxSettings, AvaTaxClient> avaTaxClientFactory, ITaxProviderSearchService taxProviderSearchService,
                                     IOptions <AvaTaxSecureOptions> options)
 {
     _orderService             = orderService;
     _storeService             = storeService;
     _fulfillmentCenterService = fulfillmentCenterService;
     _orderTaxTypeResolver     = orderTaxTypeResolver;
     _avaTaxClientFactory      = avaTaxClientFactory;
     _taxProviderSearchService = taxProviderSearchService;
     _options = options.Value;
 }
 public static AvaTaxSettings FromSettings(IEnumerable <ObjectSettingEntry> settings, AvaTaxSecureOptions options)
 {
     return(new AvaTaxSettings
     {
         AccountNumber = options.AccountNumber,
         LicenseKey = options.LicenseKey,
         CompanyCode = settings.GetSettingValue(ModuleConstants.Settings.Credentials.CompanyCode.Name, string.Empty),
         ServiceUrl = settings.GetSettingValue(ModuleConstants.Settings.Credentials.ServiceUrl.Name, string.Empty),
         AdminAreaUrl = settings.GetSettingValue(ModuleConstants.Settings.Credentials.AdminAreaUrl.Name, string.Empty),
     });
 }