Implementação da consulta de CTe pela Chave#401
Merged
juniortada merged 2 commits intoTadaSoftware:mainfrom Apr 8, 2025
Merged
Implementação da consulta de CTe pela Chave#401juniortada merged 2 commits intoTadaSoftware:mainfrom
juniortada merged 2 commits intoTadaSoftware:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
pynfe/processamento/comunicacao.py:1253
- The XML root element 'consSitCTe' does not clearly match the SOAP operation name 'cteConsultaCT'. Verify that this structure aligns with the web service documentation.
raiz = etree.Element("consSitCTe", versao=self._versao, xmlns=NAMESPACE_CTE)
pynfe/utils/webservices.py:555
- Confirm that the 'CONSULTA' URL value is correctly specified without the protocol, assuming it is concatenated with the 'HTTPS' prefix elsewhere. If a full URL is expected by the service, consider including 'https://'.
"CONSULTA": "sefaz.mt.gov.br/ctews2/services/CTeConsultaV4?wsdl",
felps-dev
reviewed
Apr 7, 2025
Collaborator
felps-dev
left a comment
There was a problem hiding this comment.
Muito obrigado pela contribuição!
Consegue colocar um teste unitário para a nova função?
Contributor
Author
|
@felps-dev acabei esquecendo deste detalhe, fiz a inclusão dos testes. |
felps-dev
approved these changes
Apr 7, 2025
juniortada
approved these changes
Apr 8, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementação da consulta de CTe pela Chave com base na documentação fornecida no Portal do Conhecimento de Transporte Eletronico.
Não consegui fazer a validação da chamada, pois estou sem certificado para realizar o teste.
Manual de Orientação do Contribuinte:
https://www.cte.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=0eu1YksSGXM=
Lista de webservices:
https://www.cte.fazenda.gov.br/portal/webServices.aspx?tipoConteudo=wpdBtfbTMrw=