/// <summary> /// Install plugin /// </summary> public override void Install() { var settings = new CorreiosSettings() { Url = "http://ws.correios.com.br/calculador/CalcPrecoPrazo.asmx", CodigoEmpresa = String.Empty, Senha = String.Empty }; _settingService.SaveSetting(settings); base.Install(); }
public CorreiosComputationMethod(IMeasureService measureService, IShippingService shippingService, ISettingService settingService, CorreiosSettings correiosSettings, IOrderTotalCalculationService orderTotalCalculationService, ICurrencyService currencyService, CurrencySettings currencySettings, ShippingSettings shippingSettings, IAddressService addressService, ILogger logger) { this._measureService = measureService; this._shippingService = shippingService; this._settingService = settingService; this._correiosSettings = correiosSettings; this._orderTotalCalculationService = orderTotalCalculationService; this._currencyService = currencyService; this._currencySettings = currencySettings; this._shippingSettings = shippingSettings; this._addressService = addressService; this._logger = logger; }
public CorreiosShipmentTracker(ILogger logger, CorreiosSettings correiosSettings) { this._logger = logger; this._correiosSettings = correiosSettings; }