From 0eb196fe14e6ba15d47b757b7eb3d3380738ded4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Neto?= Date: Fri, 4 Dec 2026 17:08:13 -0300 Subject: [PATCH 1/3] feat(nfe): update schemas to PL_010h v1.03 (NT 2026.005 v1.01) Source: zip PL_010h_v1.03 from the NF-e national portal (https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=YhWikFoTxUo=, sha256 bcbf6b277f79a6983d69016dfe0430f09b8a191997a4706a24938acddc18dc81). Changed XSDs: DFeTiposBasicos_v1.00.xsd and leiauteNFe_v4.00.xsd; the other three files of the package are byte-identical to the committed ones. Bindings regenerated with xsdata 25.7. --- CHANGELOG_SCHEMAS.md | 12 +- nfelib/nfe/bindings/v4_0/__init__.py | 22 ++- .../nfe/bindings/v4_0/cons_reci_nfe_v4_00.py | 2 +- .../nfe/bindings/v4_0/cons_sit_nfe_v4_00.py | 2 +- .../nfe/bindings/v4_0/cons_stat_serv_v4_00.py | 2 +- .../bindings/v4_0/dfe_tipos_basicos_v1_00.py | 158 +++++++++++++++++- nfelib/nfe/bindings/v4_0/envi_nfe_v4_00.py | 2 +- nfelib/nfe/bindings/v4_0/inut_nfe_v4_00.py | 2 +- .../v4_0/leiaute_cons_sit_nfe_v4_00.py | 2 +- .../v4_0/leiaute_cons_stat_serv_v4_00.py | 2 +- .../bindings/v4_0/leiaute_inut_nfe_v4_00.py | 2 +- nfelib/nfe/bindings/v4_0/leiaute_nfe_v4_00.py | 85 ++++++++-- nfelib/nfe/bindings/v4_0/nfe_v4_00.py | 2 +- .../nfe/bindings/v4_0/proc_inut_nfe_v4_00.py | 2 +- nfelib/nfe/bindings/v4_0/proc_nfe_v4_00.py | 2 +- .../bindings/v4_0/ret_cons_reci_nfe_v4_00.py | 2 +- .../bindings/v4_0/ret_cons_sit_nfe_v4_00.py | 2 +- .../bindings/v4_0/ret_cons_stat_serv_v4_00.py | 2 +- .../nfe/bindings/v4_0/ret_envi_nfe_v4_00.py | 2 +- .../nfe/bindings/v4_0/ret_inut_nfe_v4_00.py | 2 +- .../nfe/bindings/v4_0/tipos_basico_v4_00.py | 2 +- .../v4_0/xmldsig_core_schema_v1_01.py | 2 +- .../schemas/v4_0/DFeTiposBasicos_v1.00.xsd | 74 ++++++++ nfelib/nfe/schemas/v4_0/leiauteNFe_v4.00.xsd | 69 ++++++-- 24 files changed, 393 insertions(+), 63 deletions(-) diff --git a/CHANGELOG_SCHEMAS.md b/CHANGELOG_SCHEMAS.md index 082a0331..288526e3 100644 --- a/CHANGELOG_SCHEMAS.md +++ b/CHANGELOG_SCHEMAS.md @@ -37,16 +37,16 @@ OCA/l10n-brazil CI and every emitter of the live layout that upgraded. ## nfe (v4_0) - binding_dir: `nfe/bindings/v4_0` -- version: `PL_010g_v1.03` -- package: `Pacote de Liberação 010g v1.03 (zip PL_010g_v1.03)` -- nota_tecnica: `NT 2026.006 v1.00, NT 2026.008 v1.00` -- published_at: `2026-10-26` +- version: `PL_010h` +- package: `Pacote de Liberação 010h (zip PL_010h_v1.03)` +- nota_tecnica: `NT 2026.005 v1.01, NT 2026.006 v1.00, NT 2026.008 v1.00` +- published_at: `2026-11-12 (zip build date)` - production_live_from: `2026-12-14` - additive: `true` - notes: - `RTC production moved from 16/11/2026 to 14/12/2026 (SVRS notice of 12/11/2026, NT 2026.005 v1.01); homologation since 26/10/2026. Additive: the only drops are the unused TRBSN simple type and the gIBSCBSMono alternative of TTribNFCe, a type the NF-e layout does not reference (it uses TTribNFe), so XML valid under PL_010f stays valid. Adds the optional vUnComLiq/vProdLiq, ICMSPrevistoPagtoAntecip, vProdLiqTot and gPgtoVinc groups.` + `NT 2026.005 v1.01 moved production from 16/11/2026 to 14/12/2026; homologation since 26/10/2026. Cumulative over PL_010g. Adds emit/tpRegimeIBSCBS, det/prod/cAtivSN and the gTribSN group (gIBSSN/gCBSSN) of the Simples Nacional, besides the PL_010g additions (vUnComLiq/vProdLiq, ICMSPrevistoPagtoAntecip, vProdLiqTot, gPgtoVinc), all optional. The only drops are the TRBSN simple type, which no element used, and gIBSCBSMono of TTribNFCe, a type the NF-e layout does not reference (it uses TTribNFe), so XML valid under PL_010f stays valid.` - source_url: - `https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=EQhOQMgipXY=` + `https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=YhWikFoTxUo=` ## nfe_dist_dfe (v1_0) diff --git a/nfelib/nfe/bindings/v4_0/__init__.py b/nfelib/nfe/bindings/v4_0/__init__.py index c0c06ecf..2d395a3d 100644 --- a/nfelib/nfe/bindings/v4_0/__init__.py +++ b/nfelib/nfe/bindings/v4_0/__init__.py @@ -5,17 +5,17 @@ """ # Source schema package information (from CHANGELOG_SCHEMAS.md) -SCHEMA_VERSION: str = 'PL_010g_v1.03' -SCHEMA_PACKAGE: str = 'Pacote de Liberação 010g v1.03 (zip PL_010g_v1.03)' -NOTA_TECNICA: str = 'NT 2026.006 v1.00, NT 2026.008 v1.00' -PUBLISHED_AT: str = '2026-10-26' +SCHEMA_VERSION: str = 'PL_010h' +SCHEMA_PACKAGE: str = 'Pacote de Liberação 010h (zip PL_010h_v1.03)' +NOTA_TECNICA: str = 'NT 2026.005 v1.01, NT 2026.006 v1.00, NT 2026.008 v1.00' +PUBLISHED_AT: str = '2026-11-12 (zip build date)' PRODUCTION_LIVE_FROM: str = '2026-12-14' ADDITIVE: str = 'true' -NOTES: str = 'RTC production moved from 16/11/2026 to 14/12/2026 (SVRS notice of 12/11/2026, NT 2026.005 v1.01); homologation since 26/10/2026. Additive: the only drops are the unused TRBSN simple type and the gIBSCBSMono alternative of TTribNFCe, a type the NF-e layout does not reference (it uses TTribNFe), so XML valid under PL_010f stays valid. Adds the optional vUnComLiq/vProdLiq, ICMSPrevistoPagtoAntecip, vProdLiqTot and gPgtoVinc groups.' -SOURCE_URL: str = 'https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=EQhOQMgipXY=' -GENERATED_AT: str = '2026-12-05T15:03:37Z' +NOTES: str = 'NT 2026.005 v1.01 moved production from 16/11/2026 to 14/12/2026; homologation since 26/10/2026. Cumulative over PL_010g. Adds emit/tpRegimeIBSCBS, det/prod/cAtivSN and the gTribSN group (gIBSSN/gCBSSN) of the Simples Nacional, besides the PL_010g additions (vUnComLiq/vProdLiq, ICMSPrevistoPagtoAntecip, vProdLiqTot, gPgtoVinc), all optional. The only drops are the TRBSN simple type, which no element used, and gIBSCBSMono of TTribNFCe, a type the NF-e layout does not reference (it uses TTribNFe), so XML valid under PL_010f stays valid.' +SOURCE_URL: str = 'https://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=YhWikFoTxUo=' +GENERATED_AT: str = '2026-12-05T01:52:42Z' -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ @@ -62,6 +62,7 @@ TtribNfe, TtribNfgas, TtribRegular, + TtribSn, ) from nfelib.nfe.bindings.v4_0.envi_nfe_v4_00 import EnviNfe from nfelib.nfe.bindings.v4_0.inut_nfe_v4_00 import InutNfe @@ -100,6 +101,7 @@ DiTpIntermedio, DiTpViaTransp, EmitCrt, + EmitTpRegimeIbscbs, GuiaTransitoTpGuia, Icms00Cst, Icms00ModBc, @@ -175,6 +177,7 @@ PisstIndSomaPisst, ProcRefIndProc, ProcRefTpAto, + ProdCAtivSn, ProdIndBemMovelUsado, ProdIndEscala, ProdIndTot, @@ -278,6 +281,7 @@ "TtribNfgas", "TtribNfe", "TtribRegular", + "TtribSn", "EnviNfe", "InutNfe", "TconsSitNfe", @@ -392,6 +396,7 @@ "DestIndIedest", "DetPagIndPag", "EmitCrt", + "EmitTpRegimeIbscbs", "GuiaTransitoTpGuia", "IdeIdDest", "IdeIndFinal", @@ -403,6 +408,7 @@ "OrigCombIndImport", "ProcRefIndProc", "ProcRefTpAto", + "ProdCAtivSn", "ProdIndBemMovelUsado", "ProdIndEscala", "ProdIndTot", diff --git a/nfelib/nfe/bindings/v4_0/cons_reci_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/cons_reci_nfe_v4_00.py index cfe23868..4df69320 100644 --- a/nfelib/nfe/bindings/v4_0/cons_reci_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/cons_reci_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/cons_sit_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/cons_sit_nfe_v4_00.py index 4a3cc73e..4002e9ba 100644 --- a/nfelib/nfe/bindings/v4_0/cons_sit_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/cons_sit_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/cons_stat_serv_v4_00.py b/nfelib/nfe/bindings/v4_0/cons_stat_serv_v4_00.py index 40a606ff..b8f953b8 100644 --- a/nfelib/nfe/bindings/v4_0/cons_stat_serv_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/cons_stat_serv_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/dfe_tipos_basicos_v1_00.py b/nfelib/nfe/bindings/v4_0/dfe_tipos_basicos_v1_00.py index a782dba8..b60d7003 100644 --- a/nfelib/nfe/bindings/v4_0/dfe_tipos_basicos_v1_00.py +++ b/nfelib/nfe/bindings/v4_0/dfe_tipos_basicos_v1_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ @@ -281,6 +281,8 @@ class TibscbsmonoTot: :ivar gMono: Totais da Monofasia Só deverá ser utilizado para DFe modelos 55 e 65 :ivar gEstornoCred: Totalização do estorno de crédito + :ivar gTribSN: Grupo de totais da composição do valor do IBS e da + CBS para o Simples Nacional """ class Meta: @@ -324,6 +326,13 @@ class Meta: "namespace": "http://www.portalfiscal.inf.br/nfe", }, ) + gTribSN: Optional[TibscbsmonoTot.GTribSn] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + }, + ) @dataclass class GIbs: @@ -643,6 +652,39 @@ class GEstornoCred: }, ) + @dataclass + class GTribSn: + """ + + " + + :ivar vIBSSN: Valor Total do IBS para os Optantes do Simples + Nacional + :ivar vCBSSN: Valor Total da CBS para os Optantes do Simples + Nacional + """ + + vIBSSN: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "required": True, + "white_space": "preserve", + "pattern": r"0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?", + }, + ) + vCBSSN: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "required": True, + "white_space": "preserve", + "pattern": r"0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?", + }, + ) + @dataclass class Tibscbstot: @@ -2266,6 +2308,102 @@ class Meta: ) +@dataclass +class TtribSn: + """ + Tipo Detalhamento dos Tributos por Item. + " + + :ivar gIBSSN: Grupo de informações da composição do valor do IBS + para o Simples Nacional + :ivar gCBSSN: Grupo de informações da composição do valor da CBS + para o Simples Nacional + """ + + class Meta: + name = "TTribSN" + + gIBSSN: Optional[TtribSn.GIbssn] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + }, + ) + gCBSSN: Optional[TtribSn.GCbssn] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "required": True, + }, + ) + + @dataclass + class GIbssn: + """ + + " + + :ivar pIBSSN: Alíquota efetiva do IBS para os Optantes do + Simples + :ivar vIBSSN: Valor do IBS para os Optantes do Simples Nacional + """ + + pIBSSN: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "required": True, + "white_space": "preserve", + "pattern": r"0|0\.[0-9]{2,4}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2,4})?", + }, + ) + vIBSSN: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "required": True, + "white_space": "preserve", + "pattern": r"0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?", + }, + ) + + @dataclass + class GCbssn: + """ + + " + + :ivar pCBSSN: Alíquota efetiva da CBS para os Optantes do + Simples + :ivar vCBSSN: Valor da CBS para os Optantes do Simples Nacional + """ + + pCBSSN: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "required": True, + "white_space": "preserve", + "pattern": r"0|0\.[0-9]{2,4}|[1-9]{1}[0-9]{0,2}(\.[0-9]{2,4})?", + }, + ) + vCBSSN: Optional[str] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "required": True, + "white_space": "preserve", + "pattern": r"0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?", + }, + ) + + @dataclass class TalczfmcbsNfe: """Tipo Operações em áreas incentivadas (ALC/ZFM) - CBS (alíquota zero)" @@ -3452,6 +3590,8 @@ class TtribNfce: :ivar cClassTrib: :ivar indDoacao: Indica se a operação é de doação :ivar gIBSCBS: + :ivar gTribSN: Grupo de informações da composição do valor do IBS e + da CBS para o Simples Nacional """ class Meta: @@ -3491,6 +3631,13 @@ class Meta: "namespace": "http://www.portalfiscal.inf.br/nfe", }, ) + gTribSN: Optional[TtribSn] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + }, + ) @dataclass @@ -3507,6 +3654,8 @@ class TtribNfe: com imposto monofásico (CST 620) :ivar gTransfCred: Informar essa opção da Choice para o CST 800 :ivar gAjusteCompet: Informar essa opção da Choice para o CST 811 + :ivar gTribSN: Grupo de informações da composição do valor do IBS e + da CBS para o Simples Nacional :ivar gEstornoCred: Informado conforme indicador no cClassTrib :ivar gCredPresOper: Crédito Presumido da Operação. Informado conforme indicador no cClassTrib. @@ -3573,6 +3722,13 @@ class Meta: "namespace": "http://www.portalfiscal.inf.br/nfe", }, ) + gTribSN: Optional[TtribSn] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + }, + ) gEstornoCred: Optional[TestornoCred] = field( default=None, metadata={ diff --git a/nfelib/nfe/bindings/v4_0/envi_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/envi_nfe_v4_00.py index 437c7758..13495b88 100644 --- a/nfelib/nfe/bindings/v4_0/envi_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/envi_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/inut_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/inut_nfe_v4_00.py index b64ce81d..97e430b4 100644 --- a/nfelib/nfe/bindings/v4_0/inut_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/inut_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/leiaute_cons_sit_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/leiaute_cons_sit_nfe_v4_00.py index f4a227b1..69558d69 100644 --- a/nfelib/nfe/bindings/v4_0/leiaute_cons_sit_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/leiaute_cons_sit_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/leiaute_cons_stat_serv_v4_00.py b/nfelib/nfe/bindings/v4_0/leiaute_cons_stat_serv_v4_00.py index 8e362d61..35127af1 100644 --- a/nfelib/nfe/bindings/v4_0/leiaute_cons_stat_serv_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/leiaute_cons_stat_serv_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/leiaute_inut_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/leiaute_inut_nfe_v4_00.py index c7812c6b..56919bdd 100644 --- a/nfelib/nfe/bindings/v4_0/leiaute_inut_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/leiaute_inut_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/leiaute_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/leiaute_nfe_v4_00.py index e28d4745..0e942709 100644 --- a/nfelib/nfe/bindings/v4_0/leiaute_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/leiaute_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ @@ -745,6 +745,13 @@ class EmitCrt(Enum): VALUE_4 = "4" +class EmitTpRegimeIbscbs(Enum): + VALUE_1 = "1" + VALUE_2 = "2" + VALUE_3 = "3" + VALUE_4 = "4" + + class GuiaTransitoTpGuia(Enum): VALUE_1 = "1" VALUE_2 = "2" @@ -829,6 +836,14 @@ class ProcRefTpAto(Enum): VALUE_15 = "15" +class ProdCAtivSn(Enum): + VALUE_01 = "01" + VALUE_02 = "02" + VALUE_03 = "03" + VALUE_04 = "04" + VALUE_90 = "90" + + class ProdIndBemMovelUsado(Enum): VALUE_1 = "1" @@ -2882,6 +2897,17 @@ class Emit: – Simples Nacional – excesso de sublimite de receita bruta; 3 – Regime Normal. 4 - Simples Nacional - Microempreendedor individual - MEI + :ivar tpRegimeIBSCBS: Tipo de Regime de Apuração do IBS e da + CBS: 1 - Contribuinte do Simples Nacional (CRT=1 ou 2) + com opção pelo regime regular do IBS e da CBS; 2 - + Contribuinte do Regime Normal (CRT=3) com opção pendente + pelo CRT="1-Simples Nacional" sem regime regular do IBS + e da CBS; 3 - Contribuinte do Regime Normal (CRT=3) com + opção pendente pelo CRT="2-Simples Nacional, excesso + sublimite de receita bruta" sem regime regular do IBS e + da CBS; 4 - Contribuinte do Regime Normal (CRT=3) com + opção pendente pelo Simples Nacional (CRT=1 ou 2), com + regime regular do IBS e da CBS. :ivar ISUFEmit: Inscrição do emitente na Suframa """ @@ -2985,6 +3011,14 @@ class Emit: "white_space": "preserve", }, ) + tpRegimeIBSCBS: Optional[EmitTpRegimeIbscbs] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "white_space": "preserve", + }, + ) ISUFEmit: Optional[str] = field( default=None, metadata={ @@ -3441,6 +3475,19 @@ class Prod: valor total da NF-e (vProd) :ivar indBemMovelUsado: Indicador de fornecimento de bem móvel usado: 1-Bem Móvel Usado + :ivar cAtivSN: Código de atividade do Simples Nacional: + 01 - Revenda de mercadorias, venda de mercadorias + industrializadas pelo contribuinte - Anexo I. 02 - + Operações com os demais bens materiais, sem + incidência de ICMS – Anexo I. 03 - Venda de + mercadorias industrializadas pelo contribuinte, com + industrialização incentivada na Zona Franca de + Manaus - Anexo II. 04 - Operações com os demais bens + materiais, com industrialização incentivada na Zona + Franca de Manaus, sem incidência de ICMS - Anexo II. + 90 - Operações não Tributáveis. Observação: informar + somente quando o emitente for optante do Simples + Nacional ou estiver com opção pendente. :ivar DI: Declaração de Importação (NT 2011/004) :ivar detExport: Detalhe da exportação :ivar xPed: pedido de compra - Informação de interesse @@ -3763,6 +3810,14 @@ class Prod: "white_space": "preserve", }, ) + cAtivSN: Optional[ProdCAtivSn] = field( + default=None, + metadata={ + "type": "Element", + "namespace": "http://www.portalfiscal.inf.br/nfe", + "white_space": "preserve", + }, + ) DI: list[Tnfe.InfNfe.Det.Prod.Di] = field( default_factory=list, metadata={ @@ -6150,14 +6205,14 @@ class Icms: :ivar ICMS15: Tributação monofásica própria e com responsabilidade pela retenção sobre combustíveis - :ivar ICMS20: Tributção pelo ICMS 20 - Com redução + :ivar ICMS20: Tributação pelo ICMS 20 - Com redução de base de cálculo :ivar ICMS30: Tributação pelo ICMS 30 - Isenta ou não tributada e com cobrança do ICMS por substituição tributária :ivar ICMS40: Tributação pelo ICMS 40 - Isenta 41 - Não tributada 50 - Suspensão - :ivar ICMS51: Tributção pelo ICMS 51 - Diferimento. + :ivar ICMS51: Tributação pelo ICMS 51 - Diferimento. A exigência do preenchimento das informações do ICMS diferido fica à critério de cada UF. :ivar ICMS53: Tributação monofásica sobre @@ -6409,7 +6464,7 @@ class Icms00: :ivar orig: origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta 2 - Estrangeira - Adquirida no mercado interno - :ivar CST: Tributção pelo ICMS 00 - Tributada + :ivar CST: Tributação pelo ICMS 00 - Tributada integralmente :ivar modBC: Modalidade de determinação da BC do ICMS: 0 - Margem Valor Agregado (%); 1 - @@ -6506,7 +6561,7 @@ class Icms02: " :ivar orig: origem da mercadoria - :ivar CST: Tributção pelo ICMS 02= Tributação + :ivar CST: Tributação pelo ICMS 02= Tributação monofásica própria sobre combustíveis; :ivar qBCMono: Quantidade tributada. :ivar adRemICMS: Alíquota ad rem do imposto. @@ -6800,7 +6855,7 @@ class Icms15: " :ivar orig: origem da mercadoria - :ivar CST: Tributção pelo ICMS 15= Tributação + :ivar CST: Tributação pelo ICMS 15= Tributação monofásica própria e com responsabilidade pela retenção sobre combustíveis; :ivar qBCMono: Quantidade tributada. @@ -6920,7 +6975,7 @@ class Icms20: :ivar orig: origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta 2 - Estrangeira - Adquirida no mercado interno - :ivar CST: Tributção pelo ICMS 20 - Com redução + :ivar CST: Tributação pelo ICMS 20 - Com redução de base de cálculo :ivar modBC: Modalidade de determinação da BC do ICMS: 0 - Margem Valor Agregado (%); 1 - @@ -7078,7 +7133,7 @@ class Icms30: :ivar orig: origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta 2 - Estrangeira - Adquirida no mercado interno - :ivar CST: Tributção pelo ICMS 30 - Isenta ou + :ivar CST: Tributação pelo ICMS 30 - Isenta ou não tributada e com cobrança do ICMS por substituição tributária :ivar modBCST: Modalidade de determinação da BC @@ -7516,7 +7571,7 @@ class Icms53: " :ivar orig: origem da mercadoria - :ivar CST: Tributção pelo ICMS 53= Tributação + :ivar CST: Tributação pelo ICMS 53= Tributação monofásica sobre combustíveis com recolhimento diferido; :ivar qBCMono: Quantidade tributada. @@ -7777,7 +7832,7 @@ class Icms61: " :ivar orig: origem da mercadoria - :ivar CST: Tributção pelo ICMS 61= Tributação + :ivar CST: Tributação pelo ICMS 61= Tributação monofásica sobre combustíveis cobrada anteriormente :ivar qBCMonoRet: Quantidade tributada retida @@ -7844,7 +7899,7 @@ class Icms70: :ivar orig: origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta 2 - Estrangeira - Adquirida no mercado interno - :ivar CST: Tributção pelo ICMS 70 - Com redução + :ivar CST: Tributação pelo ICMS 70 - Com redução de base de cálculo e cobrança do ICMS por substituição tributária :ivar modBC: Modalidade de determinação da BC do @@ -8126,7 +8181,7 @@ class Icms90: :ivar orig: origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta 2 - Estrangeira - Adquirida no mercado interno - :ivar CST: Tributção pelo ICMS 90 - Outras + :ivar CST: Tributação pelo ICMS 90 - Outras :ivar modBC: Modalidade de determinação da BC do ICMS: 0 - Margem Valor Agregado (%); 1 - Pauta (valor); 2 - Preço Tabelado Máximo @@ -8723,9 +8778,9 @@ class Icmsst: :ivar orig: origem da mercadoria: 0 - Nacional 1 - Estrangeira - Importação direta 2 - Estrangeira - Adquirida no mercado interno - :ivar CST: Tributção pelo ICMS 41-Não Tributado. - 60-Cobrado anteriormente por substituição - tributária. + :ivar CST: Tributação pelo ICMS 41-Não + Tributado. 60-Cobrado anteriormente por + substituição tributária. :ivar vBCSTRet: Informar o valor da BC do ICMS ST retido na UF remetente :ivar pST: Aliquota suportada pelo consumidor diff --git a/nfelib/nfe/bindings/v4_0/nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/nfe_v4_00.py index d9ab3cb0..4bcafdf3 100644 --- a/nfelib/nfe/bindings/v4_0/nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/proc_inut_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/proc_inut_nfe_v4_00.py index 36fe62c8..2dd739d6 100644 --- a/nfelib/nfe/bindings/v4_0/proc_inut_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/proc_inut_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/proc_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/proc_nfe_v4_00.py index d9cb1ab4..14ed1877 100644 --- a/nfelib/nfe/bindings/v4_0/proc_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/proc_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/ret_cons_reci_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/ret_cons_reci_nfe_v4_00.py index 7fa7cbea..c3e52e11 100644 --- a/nfelib/nfe/bindings/v4_0/ret_cons_reci_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/ret_cons_reci_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/ret_cons_sit_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/ret_cons_sit_nfe_v4_00.py index 74cc7de5..f71cfedf 100644 --- a/nfelib/nfe/bindings/v4_0/ret_cons_sit_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/ret_cons_sit_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/ret_cons_stat_serv_v4_00.py b/nfelib/nfe/bindings/v4_0/ret_cons_stat_serv_v4_00.py index 337be9aa..f3b102af 100644 --- a/nfelib/nfe/bindings/v4_0/ret_cons_stat_serv_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/ret_cons_stat_serv_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/ret_envi_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/ret_envi_nfe_v4_00.py index 06dc3eab..54346b7a 100644 --- a/nfelib/nfe/bindings/v4_0/ret_envi_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/ret_envi_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/ret_inut_nfe_v4_00.py b/nfelib/nfe/bindings/v4_0/ret_inut_nfe_v4_00.py index b5632c2d..efacf44d 100644 --- a/nfelib/nfe/bindings/v4_0/ret_inut_nfe_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/ret_inut_nfe_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/tipos_basico_v4_00.py b/nfelib/nfe/bindings/v4_0/tipos_basico_v4_00.py index 743b1cf0..875e2258 100644 --- a/nfelib/nfe/bindings/v4_0/tipos_basico_v4_00.py +++ b/nfelib/nfe/bindings/v4_0/tipos_basico_v4_00.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/bindings/v4_0/xmldsig_core_schema_v1_01.py b/nfelib/nfe/bindings/v4_0/xmldsig_core_schema_v1_01.py index 252a5ae5..02d797b9 100644 --- a/nfelib/nfe/bindings/v4_0/xmldsig_core_schema_v1_01.py +++ b/nfelib/nfe/bindings/v4_0/xmldsig_core_schema_v1_01.py @@ -1,4 +1,4 @@ -"""This file was generated by xsdata, v25.7, on 2026-11-03 21:12:02 +"""This file was generated by xsdata, v25.7, on 2026-12-05 01:52:41 Generator: DataclassGenerator See: https://xsdata.readthedocs.io/ diff --git a/nfelib/nfe/schemas/v4_0/DFeTiposBasicos_v1.00.xsd b/nfelib/nfe/schemas/v4_0/DFeTiposBasicos_v1.00.xsd index 45d0e20f..c045f180 100644 --- a/nfelib/nfe/schemas/v4_0/DFeTiposBasicos_v1.00.xsd +++ b/nfelib/nfe/schemas/v4_0/DFeTiposBasicos_v1.00.xsd @@ -300,6 +300,11 @@ + + + Grupo de informações da composição do valor do IBS e da CBS para o Simples Nacional + + @@ -336,6 +341,11 @@ + + + Grupo de informações da composição do valor do IBS e da CBS para o Simples Nacional + + Informado conforme indicador no cClassTrib @@ -712,6 +722,25 @@ + + + Grupo de totais da composição do valor do IBS e da CBS para o Simples Nacional + + + + + + Valor Total do IBS para os Optantes do Simples Nacional + + + + + Valor Total da CBS para os Optantes do Simples Nacional + + + + + @@ -1877,4 +1906,49 @@ OBS: Percentuais definidos no art. 450, § 1º, da LC 214/25 para o cálculo do + + + Tipo Detalhamento dos Tributos por Item + + + + + Grupo de informações da composição do valor do IBS para o Simples Nacional + + + + + + Alíquota efetiva do IBS para os Optantes do Simples + + + + + Valor do IBS para os Optantes do Simples Nacional + + + + + + + + Grupo de informações da composição do valor da CBS para o Simples Nacional + + + + + + Alíquota efetiva da CBS para os Optantes do Simples + + + + + Valor da CBS para os Optantes do Simples Nacional + + + + + + + \ No newline at end of file diff --git a/nfelib/nfe/schemas/v4_0/leiauteNFe_v4.00.xsd b/nfelib/nfe/schemas/v4_0/leiauteNFe_v4.00.xsd index 4f1ad97f..5ec2da2c 100644 --- a/nfelib/nfe/schemas/v4_0/leiauteNFe_v4.00.xsd +++ b/nfelib/nfe/schemas/v4_0/leiauteNFe_v4.00.xsd @@ -617,6 +617,24 @@ Este campo será obrigatoriamente preenchido com: + + + Tipo de Regime de Apuração do IBS e da CBS: +1 - Contribuinte do Simples Nacional (CRT=1 ou 2) com opção pelo regime regular do IBS e da CBS; +2 - Contribuinte do Regime Normal (CRT=3) com opção pendente pelo CRT="1-Simples Nacional" sem regime regular do IBS e da CBS; +3 - Contribuinte do Regime Normal (CRT=3) com opção pendente pelo CRT="2-Simples Nacional, excesso sublimite de receita bruta" sem regime regular do IBS e da CBS; +4 - Contribuinte do Regime Normal (CRT=3) com opção pendente pelo Simples Nacional (CRT=1 ou 2), com regime regular do IBS e da CBS. + + + + + + + + + + + Inscrição do emitente na Suframa @@ -1160,6 +1178,27 @@ Formato ”CFOP9999”. + + + Código de atividade do Simples Nacional: +01 - Revenda de mercadorias, venda de mercadorias industrializadas pelo contribuinte - Anexo I. +02 - Operações com os demais bens materiais, sem incidência de ICMS – Anexo I. +03 - Venda de mercadorias industrializadas pelo contribuinte, com industrialização incentivada na Zona Franca de Manaus - Anexo II. +04 - Operações com os demais bens materiais, com industrialização incentivada na Zona Franca de Manaus, sem incidência de ICMS - Anexo II. +90 - Operações não Tributáveis. +Observação: informar somente quando o emitente for optante do Simples Nacional ou estiver com opção pendente. + + + + + + + + + + + + Declaração de Importação (NT 2011/004) @@ -2150,7 +2189,7 @@ ambiente. - Tributção pelo ICMS + Tributação pelo ICMS 00 - Tributada integralmente @@ -2221,7 +2260,7 @@ ambiente. - Tributção pelo ICMS + Tributação pelo ICMS 02= Tributação monofásica própria sobre combustíveis; @@ -2426,7 +2465,7 @@ ambiente. - Tributção pelo ICMS + Tributação pelo ICMS 15= Tributação monofásica própria e com responsabilidade pela retenção sobre combustíveis; @@ -2492,7 +2531,7 @@ ambiente. - Tributção pelo ICMS + Tributação pelo ICMS 20 - Com redução de base de cálculo @@ -2506,7 +2545,7 @@ ambiente. - Tributção pelo ICMS + Tributação pelo ICMS 20 - Com redução de base de cálculo @@ -2629,7 +2668,7 @@ ambiente. - Tributção pelo ICMS + Tributação pelo ICMS 30 - Isenta ou não tributada e com cobrança do ICMS por substituição tributária @@ -2839,7 +2878,7 @@ Informar o motivo da desoneração: - Tributção pelo ICMS 51 - Diferimento. A exigência do preenchimento das informações do ICMS diferido fica à critério de cada UF. + Tributação pelo ICMS 51 - Diferimento. A exigência do preenchimento das informações do ICMS diferido fica à critério de cada UF. @@ -2975,7 +3014,7 @@ Informar o motivo da desoneração: - Tributção pelo ICMS + Tributação pelo ICMS 53= Tributação monofásica sobre combustíveis com recolhimento diferido; @@ -3134,7 +3173,7 @@ Informar o motivo da desoneração: - Tributção pelo ICMS + Tributação pelo ICMS 61= Tributação monofásica sobre combustíveis cobrada anteriormente @@ -3178,7 +3217,7 @@ Informar o motivo da desoneração: - Tributção pelo ICMS + Tributação pelo ICMS 70 - Com redução de base de cálculo e cobrança do ICMS por substituição tributária @@ -3385,7 +3424,7 @@ Informar o motivo da desoneração: - Tributção pelo ICMS + Tributação pelo ICMS 90 - Outras @@ -3824,7 +3863,7 @@ Operação interestadual para consumidor final com partilha do ICMS devido na o - Tributção pelo ICMS + Tributação pelo ICMS 41-Não Tributado. 60-Cobrado anteriormente por substituição tributária. @@ -6165,16 +6204,16 @@ Substituição Tributaria; - Informações da Vinculação com a Transação de Pagamento + Informações da Vinculação com a Transação de Pagamento - + - + From 92eaef6ca9114ac48257719f82d5dce35223b763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Neto?= Date: Fri, 4 Dec 2026 22:31:43 -0300 Subject: [PATCH 2/3] test: update the NF-e portal fingerprint From d8ae08e51a7039358897f488a8b56c629da2e28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Neto?= Date: Fri, 4 Dec 2026 22:31:43 -0300 Subject: [PATCH 3/3] style: reflow CHANGELOG_SCHEMAS.md with prettier