Skip to content

Commit 5e9f58a

Browse files
committed
MDFe Schemas NT 2025.001 v 1.01 - 19/05/2025
1 parent d6f617b commit 5e9f58a

File tree

53 files changed

+1492
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1492
-172
lines changed

nfelib/mdfe/bindings/v3_0/__init__.py

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/
@@ -30,13 +30,26 @@
3030
)
3131
from nfelib.mdfe.bindings.v3_0.dist_mdfe_v3_00 import DistMdfe
3232
from nfelib.mdfe.bindings.v3_0.envi_mdfe_v3_00 import EnviMdfe
33+
from nfelib.mdfe.bindings.v3_0.ev_alteracao_pagto_serv_mdfe_v3_00 import (
34+
CompTpComp,
35+
EvAlteracaoPagtoServMdfe,
36+
EvAlteracaoPagtoServMdfeDescEvento,
37+
InfPagIndAntecipaAdiant,
38+
InfPagIndPag,
39+
InfPagTpAntecip,
40+
)
3341
from nfelib.mdfe.bindings.v3_0.ev_canc_mdfe_v3_00 import (
3442
EvCancMdfe,
3543
EvCancMdfeDescEvento,
3644
)
45+
from nfelib.mdfe.bindings.v3_0.ev_confirma_serv_mdfe_v3_00 import (
46+
EvConfirmaServMdfe,
47+
EvConfirmaServMdfeDescEvento,
48+
)
3749
from nfelib.mdfe.bindings.v3_0.ev_enc_mdfe_v3_00 import (
3850
EvEncMdfe,
3951
EvEncMdfeDescEvento,
52+
EvEncMdfeIndEncPorTerceiro,
4053
)
4154
from nfelib.mdfe.bindings.v3_0.ev_inc_condutor_mdfe_v3_00 import (
4255
EvIncCondutorMdfe,
@@ -47,10 +60,8 @@
4760
EvIncDfeMdfeDescEvento,
4861
)
4962
from nfelib.mdfe.bindings.v3_0.ev_pagto_oper_mdfe_v3_00 import (
50-
CompTpComp,
5163
EvPagtoOperMdfe,
5264
EvPagtoOperMdfeDescEvento,
53-
InfPagIndPag,
5465
)
5566
from nfelib.mdfe.bindings.v3_0.evento_mdfe_tipos_basico_v3_00 import (
5667
Tevento,
@@ -93,6 +104,7 @@
93104
IdeIndCanalVerde,
94105
IdeIndCarregaPosterior,
95106
IdeTpEmis,
107+
InfCteIndPrestacaoParcial,
96108
InfCteIndReentrega,
97109
InfMdfeTranspIndReentrega,
98110
InfNfeIndReentrega,
@@ -143,6 +155,7 @@
143155
TcorgaoIbge,
144156
Temit,
145157
TmodMd,
158+
TrsakeyValueType,
146159
TtipoUnidCarga,
147160
TtipoUnidTransp,
148161
Ttransp,
@@ -178,18 +191,25 @@
178191
"TretConsStatServ",
179192
"DistMdfe",
180193
"EnviMdfe",
194+
"CompTpComp",
195+
"EvAlteracaoPagtoServMdfe",
196+
"EvAlteracaoPagtoServMdfeDescEvento",
197+
"InfPagIndAntecipaAdiant",
198+
"InfPagIndPag",
199+
"InfPagTpAntecip",
181200
"EvCancMdfe",
182201
"EvCancMdfeDescEvento",
202+
"EvConfirmaServMdfe",
203+
"EvConfirmaServMdfeDescEvento",
183204
"EvEncMdfe",
184205
"EvEncMdfeDescEvento",
206+
"EvEncMdfeIndEncPorTerceiro",
185207
"EvIncCondutorMdfe",
186208
"EvIncCondutorMdfeDescEvento",
187209
"EvIncDfeMdfe",
188210
"EvIncDfeMdfeDescEvento",
189-
"CompTpComp",
190211
"EvPagtoOperMdfe",
191212
"EvPagtoOperMdfeDescEvento",
192-
"InfPagIndPag",
193213
"Tevento",
194214
"TprocEvento",
195215
"TretEvento",
@@ -238,6 +258,7 @@
238258
"IdeIndCanalVerde",
239259
"IdeIndCarregaPosterior",
240260
"IdeTpEmis",
261+
"InfCteIndPrestacaoParcial",
241262
"InfCteIndReentrega",
242263
"InfMdfeTranspIndReentrega",
243264
"InfNfeIndReentrega",
@@ -262,6 +283,7 @@
262283
"TcodUfIbgeEx",
263284
"Temit",
264285
"TmodMd",
286+
"TrsakeyValueType",
265287
"Ttransp",
266288
"Tuf",
267289
"TtipoUnidCarga",

nfelib/mdfe/bindings/v3_0/cons_mdfe_nao_enc_tipos_basico_v3_00.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/
@@ -59,7 +59,7 @@ class Meta:
5959
"type": "Element",
6060
"namespace": "http://www.portalfiscal.inf.br/mdfe",
6161
"white_space": "preserve",
62-
"pattern": r"[0-9]{14}",
62+
"pattern": r"[A-Z0-9]{12}[0-9]{2}",
6363
},
6464
)
6565
CPF: Optional[str] = field(
@@ -125,7 +125,7 @@ class Meta:
125125
"namespace": "http://www.portalfiscal.inf.br/mdfe",
126126
"required": True,
127127
"white_space": "preserve",
128-
"pattern": r"[0-9]{3}",
128+
"pattern": r"[0-9]{3,4}",
129129
},
130130
)
131131
xMotivo: Optional[str] = field(
@@ -180,7 +180,7 @@ class InfMdfe(CommonMixin):
180180
"required": True,
181181
"max_length": 44,
182182
"white_space": "preserve",
183-
"pattern": r"[0-9]{44}",
183+
"pattern": r"[0-9]{6}[A-Z0-9]{12}[0-9]{26}",
184184
},
185185
)
186186
nProt: Optional[str] = field(

nfelib/mdfe/bindings/v3_0/cons_mdfe_nao_enc_v3_00.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/

nfelib/mdfe/bindings/v3_0/cons_reci_mdfe_tipos_basico_v3_00.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/
@@ -115,7 +115,7 @@ class Meta:
115115
"namespace": "http://www.portalfiscal.inf.br/mdfe",
116116
"required": True,
117117
"white_space": "preserve",
118-
"pattern": r"[0-9]{3}",
118+
"pattern": r"[0-9]{3,4}",
119119
},
120120
)
121121
xMotivo: Optional[str] = field(

nfelib/mdfe/bindings/v3_0/cons_reci_mdfe_v3_00.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/

nfelib/mdfe/bindings/v3_0/cons_sit_mdfe_tipos_basico_v3_00.py

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/
@@ -70,7 +70,7 @@ class Meta:
7070
"required": True,
7171
"max_length": 44,
7272
"white_space": "preserve",
73-
"pattern": r"[0-9]{44}",
73+
"pattern": r"[0-9]{6}[A-Z0-9]{12}[0-9]{26}",
7474
},
7575
)
7676
versao: Optional[str] = field(
@@ -95,6 +95,8 @@ class TretConsSitMdfe(CommonMixin):
9595
:ivar cUF: código da UF de atendimento
9696
:ivar protMDFe:
9797
:ivar procEventoMDFe:
98+
:ivar procInfraSA: Grupo de informações do compartilhamento do MDFe
99+
com InfraSA para geração do DTe
98100
:ivar versao:
99101
"""
100102

@@ -128,7 +130,7 @@ class Meta:
128130
"namespace": "http://www.portalfiscal.inf.br/mdfe",
129131
"required": True,
130132
"white_space": "preserve",
131-
"pattern": r"[0-9]{3}",
133+
"pattern": r"[0-9]{3,4}",
132134
},
133135
)
134136
xMotivo: Optional[str] = field(
@@ -165,6 +167,13 @@ class Meta:
165167
"namespace": "http://www.portalfiscal.inf.br/mdfe",
166168
},
167169
)
170+
procInfraSA: Optional["TretConsSitMdfe.ProcInfraSa"] = field(
171+
default=None,
172+
metadata={
173+
"type": "Element",
174+
"namespace": "http://www.portalfiscal.inf.br/mdfe",
175+
},
176+
)
168177
versao: Optional[str] = field(
169178
default=None,
170179
metadata={
@@ -223,3 +232,32 @@ class ProcEventoMdfe(CommonMixin):
223232
"white_space": "preserve",
224233
},
225234
)
235+
236+
@dataclass
237+
class ProcInfraSa(CommonMixin):
238+
"""
239+
:ivar nProtDTe: Número do Protocolo de geração do DTe
240+
:ivar dhProt: Data e hora de geração do protocolo, no formato
241+
AAAA-MM-DDTHH:MM:SS TZD.
242+
"""
243+
244+
nProtDTe: Optional[str] = field(
245+
default=None,
246+
metadata={
247+
"type": "Element",
248+
"namespace": "http://www.portalfiscal.inf.br/mdfe",
249+
"required": True,
250+
"white_space": "preserve",
251+
"pattern": r"[0-9]{15}",
252+
},
253+
)
254+
dhProt: Optional[str] = field(
255+
default=None,
256+
metadata={
257+
"type": "Element",
258+
"namespace": "http://www.portalfiscal.inf.br/mdfe",
259+
"required": True,
260+
"white_space": "preserve",
261+
"pattern": r"(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d([\-,\+](0[0-9]|10|11):00|([\+](12):00))",
262+
},
263+
)

nfelib/mdfe/bindings/v3_0/cons_sit_mdfe_v3_00.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/

nfelib/mdfe/bindings/v3_0/cons_stat_serv_mdfe_v3_00.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/

nfelib/mdfe/bindings/v3_0/cons_stat_serv_tipos_basico_v3_00.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/
@@ -108,7 +108,7 @@ class Meta:
108108
"namespace": "http://www.portalfiscal.inf.br/mdfe",
109109
"required": True,
110110
"white_space": "preserve",
111-
"pattern": r"[0-9]{3}",
111+
"pattern": r"[0-9]{3,4}",
112112
},
113113
)
114114
xMotivo: Optional[str] = field(

nfelib/mdfe/bindings/v3_0/dist_mdfe_v3_00.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:26:21
1+
"""This file was generated by xsdata, v24.11, on 2025-07-14 04:38:46
22
33
Generator: DataclassGenerator
44
See: https://xsdata.readthedocs.io/

0 commit comments

Comments
 (0)