Пример #1
0
        private string GetSelectecServices(CorreiosSettings correioSettings)
        {
            StringBuilder sb = new StringBuilder();

            correioSettings.ServicesOffered.RemoveLastIfEndsWith(":").Split(':').ToList().ForEach(service => sb.Append(service?.Remove(0, 1).Replace(']', ',')));
            return(sb.ToString().Remove(sb.ToString().Length - 1, 1));
        }
Пример #2
0
 public ShippingCorreiosController(CorreiosSettings correiosSettings, ISettingService settingService, IWebHelper webHelper, ILocalizationService localizationService)
 {
     this._correiosSettings    = correiosSettings;
     this._settingService      = settingService;
     this._webHelper           = webHelper;
     this._localizationService = localizationService;
 }
Пример #3
0
 public CorreiosService(IMeasureService measureService, IShippingService shippingService, CorreiosSettings correiosSettings,
                        ICurrencyService currencyService, CurrencySettings currencySettings, IAddressService addressService)
 {
     this._measureService   = measureService;
     this._shippingService  = shippingService;
     this._correiosSettings = correiosSettings;
     this._currencyService  = currencyService;
     this._currencySettings = currencySettings;
     this._addressService   = addressService;
 }
 public CorreiosService(IMeasureService measureService, IShippingService shippingService, CorreiosSettings correiosSettings,
                        ICurrencyService currencyService, CurrencySettings currencySettings, IProductService productService)
 {
     this._measureService   = measureService;
     this._shippingService  = shippingService;
     this._correiosSettings = correiosSettings;
     this._currencyService  = currencyService;
     this._currencySettings = currencySettings;
     this._productService   = productService;
 }
 public ShippingCorreiosController(CorreiosSettings correiosSettings, ISettingService settingService, IWebHelper webHelper)
 {
     this._correiosSettings = correiosSettings;
     this._settingService   = settingService;
     this._webHelper        = webHelper;
 }
 public ShippingCorreiosController(CorreiosSettings correiosSettings, ISettingService settingService, ILocalizationService localizationService)
 {
     this._correiosSettings = correiosSettings;
     this._settingService = settingService;
     this._localizationService = localizationService;
 }