Repository navigation
feat(bpe): update schemas to PL_BPe_100b_NT2026.004 RTC_1.00 - #177
Merged
Merged
Conversation
Update the BP-e schemas from the Fazenda package NT 2026.004 v.1.00 (zip contents PL_BPe_100b_NT2026.004 RTC_1.00), published 05/10/2026. The package is listed on the CT-e portal listing page (the one the fingerprint test watches for the cte modality). Source: https://www.cte.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=Sg8mFlS0NF4= Changed schemas: bpeTiposBasico_v1.00.xsd (the other 26 files of the package are byte-identical to the committed ones). Notable schema changes: - enderComp becomes optional (minOccurs=0) in the emitting/recipient groups; - the new optional vBPLiq field is added to the bilhete values (total value net of taxes), on the road, metropolitan and regular layouts; - the vBP/vBPTur documentation now states that from 2027 the IBS/CBS values are part of the bilhete total instead of being added to it; - the trip identifier restrictions get the [!-ÿ]{8}|[!-ÿ]{10} pattern. Regenerate the bindings with xsdata 25.7 and refresh the fingerprint baseline.
… package
CHANGELOG_SCHEMAS.md now carries, for the PL_BPe_100b_NT2026.004 RTC 1.00
package, the date from which production validates it (production_live_from
2026-12-14, moved from 16/11/2026 by the SVRS notice of 12/11/2026) and
whether XML valid under NT 2026.002 RTC 1.01 stays valid (additive: false).
Not additive for one reason: the package adds the [!-ÿ]{8}|[!-ÿ]{10}
pattern on cBenef, so a benefit code of another length that the previous
package accepted is now rejected. The rest is additive (optional vBPLiq in
every modal, enderComp becomes minOccurs=0, documentation only).
generate_bindings.py parses the two new fields and injects
PRODUCTION_LIVE_FROM, ADDITIVE and NOTES in the binding __init__.py
header, refreshed here with --metadata-only (no binding code changed).
rvalyi
force-pushed
the
bpe-pl_bpe_100b_nt2026.004
branch
from
December 5, 2026 16:08
766beb5 to
2d6d38f
Compare
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.
Update the BP-e schemas from the Fazenda package NT 2026.004 v.1.00 (zip contents
PL_BPe_100b_NT2026.004 RTC_1.00), published 05/10/2026. This package appears on the CT-e portal listing page, i.e. the page the fingerprint test watches for thectemodality — it is what moved that hash besides the page text.Source: https://www.cte.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=Sg8mFlS0NF4=
Changed XSDs:
bpeTiposBasico_v1.00.xsd(the other 26 files of the package are byte-identical to the committed ones).Schema changes:
enderCompbecomes optional (minOccurs=0);vBPLiq(total value net of taxes) in the bilhete values, on the road, metropolitan and regular layouts;vBP/vBPTurdocumentation now states that from 2027 the IBS/CBS values are part of the bilhete total instead of being added to it;[!-ÿ]{8}|[!-ÿ]{10}pattern.Bindings regenerated with xsdata 25.7,
CHANGELOG_SCHEMAS.mdrecords the new package, and thebpe/bindings/v1_0/__init__.pymetadata is refreshed.Local:
pytest tests→ 89 passed, 3 skipped; pre-commit hooks pass.Note: the CT-e schemas themselves need no change — all 47 XSDs of
PL_CTe_400_NT2026.004 RTC_1.00(republicado 16/10/2026) are byte-identical to the committed ones, so the rest of thectefingerprint delta is page text only.