public override void Install()
        {
            //settings
            var settings = new StrikeIronTaxSettings()
            {
                UserId   = "",
                Password = ""
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.UserId", "StrikeIron User ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.UserId.Hint", "Specify StrikeIron user identifier.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.Password", "StrikeIron Password");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.Password.Hint", "Specify StrikeIron password.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Button", "Test (USA)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Title", "Test Online Tax Service (USA)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Zip", "Zip Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Zip.Hint", "Specify zip code for testing.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.Button", "Test (Canada)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.Title", "Test Online Tax Service (Canada)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.ProvinceCode", "Two Letter Province Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.ProvinceCode.Hint", "Specify postal code for testing.");

            base.Install();
        }
Ejemplo n.º 2
0
 public StrikeIronTaxProvider(ISettingService settingService,
                              ICacheManager cacheManager,
                              StrikeIronTaxSettings strikeIronTaxSettings)
 {
     this._settingService        = settingService;
     this._cacheManager          = cacheManager;
     this._strikeIronTaxSettings = strikeIronTaxSettings;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new StrikeIronTaxSettings()
            {
                LicenseKey = ""
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.LicenseKey", "StrikeIron license key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.LicenseKey.Hint", "Specify StrikeIron license key.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Title", "Test Online Tax Service (USA)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Zip", "Zip Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Zip.Hint", "Specify zip code for testing. For example, type '10001'.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.Title", "Test Online Tax Service (Canada)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.ProvinceCode", "Two Letter Province Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.ProvinceCode.Hint", "Specify two letter province code for testing. For example, type 'ON'.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestService.Button", "Test service");

            base.Install();
        }
        public override void Install()
        {
            //settings
            var settings = new StrikeIronTaxSettings()
            {
                UserId = "",
                Password = ""
            };
            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.UserId", "StrikeIron User ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.UserId.Hint", "Specify StrikeIron user identifier.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.Password", "StrikeIron Password");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.Password.Hint", "Specify StrikeIron password.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Button", "Test (USA)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Title", "Test Online Tax Service (USA)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Zip", "Zip Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingUsa.Zip.Hint", "Specify zip code for testing.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.Button", "Test (Canada)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.Title", "Test Online Tax Service (Canada)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.ProvinceCode", "Two Letter Province Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Tax.StrikeIron.TestingCanada.ProvinceCode.Hint", "Specify postal code for testing.");
           
            base.Install();
        }
 public StrikeIronTaxProvider(ISettingService settingService,
     StrikeIronTaxSettings strikeIronTaxSettings)
 {
     this._settingService = settingService;
     this._strikeIronTaxSettings = strikeIronTaxSettings;
 }
 public StrikeIronTaxProvider(ISettingService settingService,
                              StrikeIronTaxSettings strikeIronTaxSettings)
 {
     this._settingService        = settingService;
     this._strikeIronTaxSettings = strikeIronTaxSettings;
 }
Ejemplo n.º 7
0
 public StrikeIronTaxProvider(StrikeIronTaxSettings strikeIronTaxSettings)
 {
     this._strikeIronTaxSettings = strikeIronTaxSettings;
 }
Ejemplo n.º 8
0
 public StrikeIronTaxProvider(StrikeIronTaxSettings strikeIronTaxSettings)
 {
     this._strikeIronTaxSettings = strikeIronTaxSettings;
 }