Skip to content

feat(nfse): update schemas to the 2026-11-24 package (production 2026-12-07) - #186

Draft
rvalyi wants to merge 1 commit into
masterfrom
nfse-nt009-prodrest-20261124-v2
Draft

rvalyi wants to merge 1 commit into
masterfrom
nfse-nt009-prodrest-20261124-v2

Conversation

@rvalyi

@rvalyi rvalyi commented Dec 5, 2026

Copy link
Copy Markdown
Member

Draft: este layout só é aceito pela produção nacional a partir de 2026-12-07
(cronograma da NT SE/CGNFS-e 009, releases 1-3). Até lá fica fora da master, como
já tinha sido feito no revert da #182. Não mergear antes da data.

Recriação da #182 sobre a master atual, com a metainformação de cronograma e
aditividade que faltava no CHANGELOG_SCHEMAS.md (e no metadado do binding):
production_live_from: 2026-12-07 e additive: false. A autoria do commit
original é preservada (Ananias Filho).

O pacote de esquemas da produção restrita de 24/11/2026 (NT SE/CGNFS-e 009
v1.01, item 2.11) mudou o TCInfDPS: o indDest e o grupo dest saíram do
IBSCBS e foram para a raiz do infDPS, logo depois de toma, e o indDest
passou a ser obrigatório em toda DPS. O pacote também traz o grupo condominios,
os campos novos do comExt (nDUE, nDUIMP, nFatura, vFatura,
nContCambio, no lugar de nDI, nRE e vServMoeda), o verCalcIBSCBS e o
vAjusteBCIBSCBSComExt.

Sem essa mudança a homologação nacional recusa a DPS com E1235.

Aditividade: false, medido no diff de declarações: saem nDI, nRE e
vServMoeda, e o indDest/dest mudam de lugar e de obrigatoriedade — uma DPS
válida no pacote de 2026-10-20 é rejeitada a partir de 07/12/2026. Por isso o
pacote só entra na master com a release estável dessa data.

Troquei o tiposComplexos_v1.01.xsd e o tiposSimples_v1.01.xsd (os outros
arquivos do pacote não mudaram), atualizei o CHANGELOG_SCHEMAS.md, regerei os
bindings com o generate_bindings.py e ajustei a amostra nfse-ibscbs.xml e o
teste dela.

Local: pytest tests → 92 passed, 4 skipped; fingerprint (Python 3.13) e
prettier passam.

…ckage

Update the NFSe XSDs from esquemas-xsd-producao-restrita-20261124.zip
(NT SE/CGNFS-e 009 v1.01, item 2.11): indDest and the dest group leave
IBSCBS and become part of the infDPS root, right after toma, with indDest
required. The package also adds the condominios group, the new comExt
fields (nDUE, nDUIMP, nFatura, vFatura, nContCambio), verCalcIBSCBS and
vAjusteBCIBSCBSComExt. Only tiposComplexos and tiposSimples changed; the
other files of the package are identical to the 2026-10-20 ones.

The national restricted production environment rejects a DPS without the
root indDest with E1235 since this package. Regenerate the v1_0 bindings
and move indDest in the nfse-ibscbs sample to its new place.

CHANGELOG_SCHEMAS.md now records the package schedule and compatibility:
production_live_from 2026-12-07 (ADN cronograma, releases 1-3) and
additive: false, because indDest/dest move out of IBSCBS, indDest becomes
required and the comExt fields nDI/nRE/vServMoeda are replaced, so a DPS of
the 2026-10-20 package is rejected from then on. The binding __init__.py
metadata is refreshed with the same data.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants