Skip to content

Commit

Permalink
Merge pull request #133 from leogregianin/patch-ce-svrs
Browse files Browse the repository at this point in the history
Alteração webservice da SEFAZ-CE para SVRS
  • Loading branch information
juniortada authored Jan 10, 2022
2 parents f5d260f + 3387db6 commit 5e54664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
8 changes: 6 additions & 2 deletions pynfe/processamento/comunicacao.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,12 @@ def _get_url(self, modelo, consulta, contingencia=False):
else:
ambiente = 'HOMOLOGACAO'
if modelo == 'nfe':
# nfe Ex: https://nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3
self.url = NFE[self.uf.upper()][ambiente] + NFE[self.uf.upper()][consulta]
# CE é a única UF que possuem NFE SVRS e NFCe próprio
if self.uf.upper() == 'CE':
self.url = NFE['SVRS'][ambiente] + NFE['SVRS'][consulta]
else:
# nfe Ex: https://nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3
self.url = NFE[self.uf.upper()][ambiente] + NFE[self.uf.upper()][consulta]
elif modelo == 'nfce':
# PE e BA são as únicas UF'sque possuem NFE proprio e SVRS para NFCe
if self.uf.upper() == 'PE' or self.uf.upper() == 'BA':
Expand Down
12 changes: 0 additions & 12 deletions pynfe/utils/webservices.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,18 +320,6 @@
'MA': {
'CADASTRO': 'https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl'
},
'CE': {
'STATUS': 'sefaz.ce.gov.br/nfe4/services/NFeStatusServico4?WSDL',
'AUTORIZACAO': 'sefaz.ce.gov.br/nfe4/services/NFeAutorizacao4?WSDL',
'RECIBO': 'sefaz.ce.gov.br/nfe4/services/NFeRetAutorizacao4?WSDL',
'CHAVE': 'sefaz.ce.gov.br/nfe4/services/NFeConsultaProtocolo4?WSDL',
'INUTILIZACAO': 'sefaz.ce.gov.br/nfe4/services/NFeInutilizacao4?WSDL',
'EVENTOS': 'sefaz.ce.gov.br/nfe4/services/NFeRecepcaoEvento4?WSDL',
'CADASTRO': 'sefaz.ce.gov.br/nfe4/services/CadConsultaCadastro4?wsdl',
'DOWNLOAD': 'sefaz.ce.gov.br/nfe2/services/NfeDownloadNF?wsdl',
'HTTPS': 'https://nfe.',
'HOMOLOGACAO': 'https://nfeh.'
},
'PE': {
'STATUS': 'sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4',
'AUTORIZACAO': 'sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4',
Expand Down

0 comments on commit 5e54664

Please sign in to comment.