From 4b302ac0d71135dc877fd14a93d49f437ae0f7ca Mon Sep 17 00:00:00 2001 From: Leonardo Gregianin Date: Wed, 8 Jul 2020 16:18:47 -0400 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20da=20consulta=20do=20statu?= =?UTF-8?q?s=20da=20nfe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/processamento/nfe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pynfe/processamento/nfe.py b/pynfe/processamento/nfe.py index b15da6c..bbf31df 100644 --- a/pynfe/processamento/nfe.py +++ b/pynfe/processamento/nfe.py @@ -239,13 +239,13 @@ class ComunicacaoNFe(Comunicacao): xml = self._construir_xml_soap('NFeRecepcaoEvento4', raiz) return self._post(url, xml) - def status_servico(self): + def status_servico(self, modelo): """ Verifica status do servidor da receita. :param modelo: modelo é a string com tipo de serviço que deseja consultar, Ex: nfe ou nfce :return: """ - url = self._get_url('mdfe', 'STATUS') + url = self._get_url(modelo, 'STATUS') # Monta XML do corpo da requisição raiz = etree.Element('consStatServ', versao=VERSAO_PADRAO, xmlns=NAMESPACE_NFE) etree.SubElement(raiz, 'tpAmb').text = str(self._ambiente)