Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions CHANGELOG_SCHEMAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
22 changes: 14 additions & 8 deletions nfelib/nfe/bindings/v4_0/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -100,6 +101,7 @@
DiTpIntermedio,
DiTpViaTransp,
EmitCrt,
EmitTpRegimeIbscbs,
GuiaTransitoTpGuia,
Icms00Cst,
Icms00ModBc,
Expand Down Expand Up @@ -175,6 +177,7 @@
PisstIndSomaPisst,
ProcRefIndProc,
ProcRefTpAto,
ProdCAtivSn,
ProdIndBemMovelUsado,
ProdIndEscala,
ProdIndTot,
Expand Down Expand Up @@ -278,6 +281,7 @@
"TtribNfgas",
"TtribNfe",
"TtribRegular",
"TtribSn",
"EnviNfe",
"InutNfe",
"TconsSitNfe",
Expand Down Expand Up @@ -392,6 +396,7 @@
"DestIndIedest",
"DetPagIndPag",
"EmitCrt",
"EmitTpRegimeIbscbs",
"GuiaTransitoTpGuia",
"IdeIdDest",
"IdeIndFinal",
Expand All @@ -403,6 +408,7 @@
"OrigCombIndImport",
"ProcRefIndProc",
"ProcRefTpAto",
"ProdCAtivSn",
"ProdIndBemMovelUsado",
"ProdIndEscala",
"ProdIndTot",
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/cons_reci_nfe_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/cons_sit_nfe_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/cons_stat_serv_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
158 changes: 157 additions & 1 deletion nfelib/nfe/bindings/v4_0/dfe_tipos_basicos_v1_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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={
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/envi_nfe_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/inut_nfe_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/leiaute_cons_sit_nfe_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/leiaute_cons_stat_serv_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion nfelib/nfe/bindings/v4_0/leiaute_inut_nfe_v4_00.py
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
Loading
Loading