Skip to content

Commit cf543d8

Browse files
authored
Merge pull request #1605 from obogoni/feature/alteracao-servico-ceara
feat(nfe): atualização de endereços dos web services de NFCe do Ceará
2 parents 6d02324 + cfb2984 commit cf543d8

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

NFe.Utils/Enderecos/Enderecador.cs

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private static List<EnderecoServico> CarregarEnderecosServicos()
125125
Estado.AL,
126126
Estado.AP,
127127
Estado.BA, //Somente NFCe. BA tem endereços próprios para NFe. Rev: 09/09/2015
128+
Estado.CE, //Somente NFCe. CE tem endereços próprios para NFe.
128129
Estado.DF,
129130
Estado.ES,
130131
Estado.MA, //Somente NFCe. MA usa o SVAN para NFe. Rev: 09/09/2015
@@ -360,6 +361,8 @@ private static List<EnderecoServico> CarregarEnderecosServicos()
360361

361362
#region CE
362363

364+
//CE usa a NFCe da SVRS
365+
363366
#region Homologação
364367

365368
foreach (var emissao in emissaoComum)
@@ -385,19 +388,6 @@ private static List<EnderecoServico> CarregarEnderecosServicos()
385388
addServico(new[] { ServicoNFe.NFeAutorizacao }, versao4, hom, emissao, Estado.CE, nfe, ConfiguracaoUrls.FactoryUrl.Ceara.NFeAutorizacaoHomologacao_VersaoQuatro);
386389
addServico(new[] { ServicoNFe.NFeRetAutorizacao }, versao4, hom, emissao, Estado.CE, nfe, ConfiguracaoUrls.FactoryUrl.Ceara.NFeRetAutorizacaoHomologacao_VersaoQuatro);
387390
#endregion
388-
389-
#region NFCe
390-
391-
addServico(new[] { ServicoNFe.NFeAutorizacao }, versao4, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeAutorizacao4?WSDL");
392-
addServico(new[] { ServicoNFe.NFeRetAutorizacao }, versao4, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL");
393-
addServico(new[] { ServicoNFe.NfeInutilizacao }, versao4, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeInutilizacao4?WSDL");
394-
addServico(new[] { ServicoNFe.NfeConsultaProtocolo }, versao4, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeConsultaProtocolo4?WSDL");
395-
addServico(new[] { ServicoNFe.NfeStatusServico }, versao4, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeStatusServico4?WSDL");
396-
addServico(new[] { ServicoNFe.RecepcaoEventoCancelmento }, versao4, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL");
397-
addServico(new[] { ServicoNFe.NfeConsultaCadastro }, versao4, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/CadConsultaCadastro4?WSDL");
398-
addServico(new[] { ServicoNFe.RecepcaoEventoConciliacaoFinanceiraNFe, ServicoNFe.RecepcaoEventoCancConciliacaoFinanceiraNFe }, versao1, hom, emissao, Estado.CE, nfce, "https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL");
399-
400-
#endregion
401391
}
402392

403393
#endregion
@@ -430,19 +420,6 @@ private static List<EnderecoServico> CarregarEnderecosServicos()
430420
addServico(new[] { ServicoNFe.NFeRetAutorizacao }, versao4, prod, emissao, Estado.CE, nfe, ConfiguracaoUrls.FactoryUrl.Ceara.NFeRetAutorizacaoProducao_VersaoQuatro);
431421

432422
#endregion
433-
434-
#region NFCe
435-
436-
addServico(new[] { ServicoNFe.NfeStatusServico }, versao4, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeStatusServico4?WSDL");
437-
addServico(new[] { ServicoNFe.NFeAutorizacao }, versao4, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeAutorizacao4?WSDL");
438-
addServico(new[] { ServicoNFe.NFeRetAutorizacao }, versao4, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL");
439-
addServico(new[] { ServicoNFe.NfeInutilizacao }, versao4, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeInutilizacao4?WSDL");
440-
addServico(new[] { ServicoNFe.NfeConsultaProtocolo }, versao4, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeConsultaProtocolo4?WSDL");
441-
addServico(new[] { ServicoNFe.NfeStatusServico }, versao4, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeStatusServico4?WSDL");
442-
addServico(new[] { ServicoNFe.RecepcaoEventoCancelmento }, versao4, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL");
443-
addServico(new[] { ServicoNFe.RecepcaoEventoConciliacaoFinanceiraNFe, ServicoNFe.RecepcaoEventoCancConciliacaoFinanceiraNFe }, versao1, prod, emissao, Estado.CE, nfce, "https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL");
444-
445-
#endregion
446423
}
447424

448425
#endregion
@@ -1353,7 +1330,7 @@ private static List<EnderecoServico> CarregarEnderecosServicos()
13531330
{
13541331
#region NFe
13551332

1356-
if (estado != Estado.BA & estado != Estado.MA & estado != Estado.PE) //Esses estados usam SVRS somente para NFCe, possuindo endereços próprios para NFe.
1333+
if (estado != Estado.BA & estado != Estado.MA & estado != Estado.PE & estado != Estado.CE) //Esses estados usam SVRS somente para NFCe, possuindo endereços próprios para NFe.
13571334
{
13581335
if (emissao != TipoEmissao.teEPEC)
13591336
addServico(eventoCceCanc, versao1, hom, emissao, estado, nfe, "https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx");
@@ -1416,7 +1393,7 @@ private static List<EnderecoServico> CarregarEnderecosServicos()
14161393
#region NFe
14171394

14181395
//Rev: 02/09/2019
1419-
if (estado != Estado.BA & estado != Estado.MA & estado != Estado.PE) //Esses estados usam SVRS somente para NFCe, possuindo endereços próprios para NFe.
1396+
if (estado != Estado.BA & estado != Estado.MA & estado != Estado.PE & estado != Estado.CE) //Esses estados usam SVRS somente para NFCe, possuindo endereços próprios para NFe.
14201397
{
14211398
if (emissao != TipoEmissao.teEPEC)
14221399
addServico(eventoCceCanc, versao1, prod, emissao, estado, nfe, "https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx");

0 commit comments

Comments
 (0)