Repository navigation
feat(nfe): split payment da NT 2026.006 — grupo gPgtoVinc e evento 110300 (PL_010g) - #91
Open
rhfranzoni wants to merge 2 commits into
Open
rhfranzoni wants to merge 2 commits into
rhfranzoni wants to merge 2 commits into
Conversation
…300 Vinculação Pagamento) NT 2026.006 v1.01, conforme o XSD do PL_010g v1.03: - infNFe: grupo YC gPgtoVinc (tipo TPgtoVinc) logo depois de infIntermed e antes de infAdic. gPgto (1-99) com atributos nPag e idTransacao e elementos tpMeioPgto, CNPJReceb e CNPJBasePSP. Nulo não é serializado: a nota sem o grupo sai igual à de hoje. - Evento 110300 "Vinculação Pagamento" (autor emitente, NF-e e NFC-e): NFeTipoEvento.TeNfeVinculacaoPagamento, ServicoNFe.RecepcaoEventoVinculacaoPagamento, endereço SVRS de RecepcaoEvento4 (o mesmo dos eventos RTC) para os modelos 55 e 65, versão 1.00, schema e110300_v1.00.xsd no Validador. - detEvento.gPgto (gPgtoEvento, tipo TEventoPgto: só o atributo idTransacao, sem nPag), com ShouldSerialize para não afetar os demais eventos. - ServicosNFe.RecepcaoEventoVinculacaoPagamento(idLote, sequenciaEvento, cpfCnpj, chaveNFe, nProt, pagamento, dataHoraEvento, ufAutor, versaoAplicativo), no molde do 110001 (cOrgao 92). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…epção A recepção de eventos reserializava o retEnvEvento desserializado da resposta. Quando a SEFAZ responde sem cOrgao (vira 0) ou com valor que o enum Estado não conhece, o XmlSerializer lançava "Instance validation error: '0' is not a valid value for Estado" e a resposta real se perdia; o chamador tratava como falha transitória e reenviava o evento (visto no 110300 contra a SVRS de homologação). Agora ObterXmlStringOuRecebido devolve o XML recebido quando o objeto não pode ser serializado, e a falta de retEvento na resposta não lança na montagem dos procEventoNFe. Vale para RecepcaoEventoAsync e RecepcaoEventoEAssinaAsync. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
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.
Suporte à NT 2026.006 v1.01 (Vinculação com a Transação de Pagamento — split payment), conforme o XSD oficial do PL_010g v1.03.
infNFe.gPgtoVinc(gPgtoVinc/gPgto), serializado depois deinfIntermed; nulo = grupo ausente.NFeTipoEvento.TeNfeVinculacaoPagamento,ServicoNFe.RecepcaoEventoVinculacaoPagamento,detEvento.gPgto(gPgtoEvento) eServicosNFe.RecepcaoEventoVinculacaoPagamento(...), no molde do 110001 (SVRS, cOrgao 92, tpAutor 1).Validação: serialização conferida contra
leiauteNFe_v4.00.xsd,DFeTiposBasicos_v1.00.xsdee110300_v1.00.xsddo PL_010g (ordempag→infIntermed→gPgtoVinc→infAdic; 110001 semgPgtocontinua válido).Usado por nfe/dfetech-product-invoice-api#902.
🤖 Generated with Claude Code