/// <summary> /// Establece el Tipo de Servicio que se utilizara para la conexion con el WebService de Sunat. /// </summary> /// <param name="service">Tipo de Servicio (Validos <see cref="ServiceSunatType.Beta"/> y <see cref="ServiceSunatType.Produccion"/>)</param> /// <exception cref="ArgumentException">Servicio Invalido</exception> /// <returns>url of service</returns> private static string GetUrlService(ServiceSunatType service) { string url; switch (service) { case ServiceSunatType.Beta: url = Resources.UrlRetPercBeta; break; case ServiceSunatType.Produccion: url = Resources.UrlRetPerc; break; default: throw new ArgumentException(@"Servicio Invalido, solo se acepta BETA y Produccion", nameof(service)); } return(url); }
/// <summary> /// /// Establece el Tipo de Servicio que se utilizara para la conexion con el WebService de Sunat. /// </summary> /// <param name="service">Tipo de Servicio al que se conectara</param> private static string GetUrlService(ServiceSunatType service) { string url; switch (service) { case ServiceSunatType.Produccion: url = Resources.UrlProduccion; break; case ServiceSunatType.Homologacion: url = Resources.UrlHomologacion; break; default: url = Resources.UrlBeta; break; } return(url); }