Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add nf3e 1.00 - NT2024001 #98

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
6 changes: 6 additions & 0 deletions nfelib/nf3e/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""This file was generated by xsdata, v24.3.1, on 2024-04-05 08:30:20

Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
"""
# nothing here
6 changes: 6 additions & 0 deletions nfelib/nf3e/bindings/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""This file was generated by xsdata, v24.3.1, on 2024-04-05 08:30:20

Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
"""
# nothing here
226 changes: 226 additions & 0 deletions nfelib/nf3e/bindings/v1_0/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
"""This file was generated by xsdata, v24.3.1, on 2024-04-05 08:30:20

Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
"""
from nfelib.nf3e.bindings.v1_0.cons_reci_nf3e_tipos_basico_v1_00 import (
TconsReciNf3E,
TretConsReciNf3E,
)
from nfelib.nf3e.bindings.v1_0.cons_reci_nf3e_v1_00 import ConsReciNf3E
from nfelib.nf3e.bindings.v1_0.cons_sit_nf3e_tipos_basico_v1_00 import (
ProcEventoNf3EVersao,
ProtNf3EVersao,
TconsSitNf3E,
TretConsSitNf3E,
)
from nfelib.nf3e.bindings.v1_0.cons_sit_nf3e_v1_00 import ConsSitNf3E
from nfelib.nf3e.bindings.v1_0.cons_stat_serv_nf3e_tipos_basico_v1_00 import (
TconsStatServ,
TretConsStatServ,
)
from nfelib.nf3e.bindings.v1_0.cons_stat_serv_nf3e_v1_00 import (
ConsStatServNf3E,
)
from nfelib.nf3e.bindings.v1_0.envi_nf3e_v1_00 import EnviNf3E
from nfelib.nf3e.bindings.v1_0.ev_canc_nf3e_v1_00 import (
EvCancNf3E,
EvCancNf3EDescEvento,
)
from nfelib.nf3e.bindings.v1_0.evento_nf3e_tipos_basico_v1_00 import (
Tevento,
TprocEvento,
TretEvento,
)
from nfelib.nf3e.bindings.v1_0.evento_nf3e_v1_00 import EventoNf3E
from nfelib.nf3e.bindings.v1_0.nf3e_tipos_basico_v1_00 import (
CofinsCst,
DetItemAntIndDevolucao,
GAdBandMotDifBand,
GContabTpLanc,
GProcRefIndDevolucao,
GTarifMotDifTarif,
GTarifUMed,
Icms00Cst,
Icms10Cst,
Icms20Cst,
Icms40Cst,
Icms51Cst,
Icms60Cst,
Icms90Cst,
ImpostoIndSemCst,
PisCst,
ProdIndDevolucao,
ProdIndPrecoAcl,
Tacessante,
TajusteNf3EAnt,
Taneel,
TatoAneel,
Tband,
Tclasse,
TempresaSoft,
TendeEmi,
Tendereco,
TenviNf3E,
Tfase,
TfinNf3E,
TfonteEnergia,
TgrContrat,
TgrMed,
TgrpTensao,
Timp,
TindIedest,
Tmedida,
TmodTar,
TmotAjuste,
TmotNaoLeitura,
TmotSub,
Tnf3E,
TorigemQtd,
TpartComp,
TposTarifCompleto,
TposTarSimples,
Tprocesso,
TprotNf3E,
TrespTec,
TretEnviNf3E,
TretNf3E,
TsubClasse,
Ttarifa,
TtpEmis,
Tumed,
TumedItem,
)
from nfelib.nf3e.bindings.v1_0.nf3e_v1_00 import Nf3E
from nfelib.nf3e.bindings.v1_0.proc_evento_nf3e_v1_00 import ProcEventoNf3E
from nfelib.nf3e.bindings.v1_0.proc_nf3e_v1_00 import Nf3EProc
from nfelib.nf3e.bindings.v1_0.ret_cons_reci_nf3e_v1_00 import RetConsReciNf3E
from nfelib.nf3e.bindings.v1_0.ret_cons_sit_nf3e_v1_00 import RetConsSitNf3E
from nfelib.nf3e.bindings.v1_0.ret_cons_stat_serv_nf3e_v1_00 import (
RetConsStatServNf3E,
)
from nfelib.nf3e.bindings.v1_0.ret_envi_nf3e_v1_00 import RetEnviNf3E
from nfelib.nf3e.bindings.v1_0.ret_evento_nf3e_v1_00 import RetEventoNf3E
from nfelib.nf3e.bindings.v1_0.ret_nf3e_v1_00 import RetNf3E
from nfelib.nf3e.bindings.v1_0.tipos_geral_nf3e_v1_00 import (
Tamb,
TcodUfIbge,
TcorgaoIbge,
TmodNf3E,
Tuf,
TufSemEx,
)
from nfelib.nf3e.bindings.v1_0.xmldsig_core_schema_v1_01 import (
KeyInfoType,
ReferenceType,
Signature,
SignatureType,
SignatureValueType,
SignedInfoType,
TransformsType,
TransformType,
TtransformUri,
X509DataType,
)

__all__ = [
"TconsReciNf3E",
"TretConsReciNf3E",
"ConsReciNf3E",
"TconsSitNf3E",
"TretConsSitNf3E",
"ProcEventoNf3EVersao",
"ProtNf3EVersao",
"ConsSitNf3E",
"TconsStatServ",
"TretConsStatServ",
"ConsStatServNf3E",
"EnviNf3E",
"EvCancNf3E",
"EvCancNf3EDescEvento",
"Tevento",
"TprocEvento",
"TretEvento",
"EventoNf3E",
"CofinsCst",
"Icms00Cst",
"Icms10Cst",
"Icms20Cst",
"Icms40Cst",
"Icms51Cst",
"Icms60Cst",
"Icms90Cst",
"PisCst",
"Taneel",
"Tacessante",
"TajusteNf3EAnt",
"TatoAneel",
"Tband",
"Tclasse",
"TempresaSoft",
"TendeEmi",
"Tendereco",
"TenviNf3E",
"Tfase",
"TfinNf3E",
"TfonteEnergia",
"TgrContrat",
"TgrMed",
"TgrpTensao",
"Timp",
"TindIedest",
"Tmedida",
"TmodTar",
"TmotAjuste",
"TmotNaoLeitura",
"TmotSub",
"Tnf3E",
"TorigemQtd",
"TpartComp",
"TposTarSimples",
"TposTarifCompleto",
"Tprocesso",
"TprotNf3E",
"TrespTec",
"TretEnviNf3E",
"TretNf3E",
"TsubClasse",
"Ttarifa",
"Tumed",
"TumedItem",
"TtpEmis",
"DetItemAntIndDevolucao",
"GAdBandMotDifBand",
"GContabTpLanc",
"GProcRefIndDevolucao",
"GTarifMotDifTarif",
"GTarifUMed",
"ImpostoIndSemCst",
"ProdIndDevolucao",
"ProdIndPrecoAcl",
"Nf3E",
"ProcEventoNf3E",
"Nf3EProc",
"RetConsReciNf3E",
"RetConsSitNf3E",
"RetConsStatServNf3E",
"RetEnviNf3E",
"RetEventoNf3E",
"RetNf3E",
"Tamb",
"TcorgaoIbge",
"TcodUfIbge",
"TmodNf3E",
"Tuf",
"TufSemEx",
"KeyInfoType",
"ReferenceType",
"Signature",
"SignatureType",
"SignatureValueType",
"SignedInfoType",
"TtransformUri",
"TransformType",
"TransformsType",
"X509DataType",
]
156 changes: 156 additions & 0 deletions nfelib/nf3e/bindings/v1_0/cons_reci_nf3e_tipos_basico_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
"""This file was generated by xsdata, v24.3.1, on 2024-04-05 08:30:20

Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
"""
from dataclasses import dataclass, field
from typing import List, Optional

from nfelib import CommonMixin
from nfelib.nf3e.bindings.v1_0.nf3e_tipos_basico_v1_00 import TprotNf3E
from nfelib.nf3e.bindings.v1_0.tipos_geral_nf3e_v1_00 import (
Tamb,
TcodUfIbge,
)

__NAMESPACE__ = "http://www.portalfiscal.inf.br/nf3e"


@dataclass
class TconsReciNf3E(CommonMixin):
"""
Tipo Pedido de Consulta do Recibo da NF-3e.

:ivar tpAmb: Identificação do Ambiente: 1 - Produção 2 - Homologação
:ivar nRec: Número do Recibo do arquivo a ser consultado
:ivar versao:
"""

class Meta:
name = "TConsReciNF3e"

tpAmb: Optional[Tamb] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
},
)
nRec: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"white_space": "preserve",
"pattern": r"[0-9]{16}",
},
)
versao: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"white_space": "preserve",
"pattern": r"1\.00",
},
)


@dataclass
class TretConsReciNf3E(CommonMixin):
"""
Tipo Retorno do Pedido de Consulta do Recibo da NF-3e.

:ivar tpAmb: Identificação do Ambiente: 1 - Produção 2 - Homologação
:ivar verAplic: Versão do Aplicativo que processou a NF-3e
:ivar nRec: Número do Recibo Consultado
:ivar cStat: código do status do retorno da consulta.
:ivar xMotivo: Descrição literal do status do do retorno da
consulta.
:ivar cUF: Idntificação da UF
:ivar protNF3e: Resultado do processamento do NF-3e
:ivar versao:
"""

class Meta:
name = "TRetConsReciNF3e"

tpAmb: Optional[Tamb] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
},
)
verAplic: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"min_length": 1,
"max_length": 20,
"white_space": "preserve",
"pattern": r"[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}",
},
)
nRec: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"white_space": "preserve",
"pattern": r"[0-9]{16}",
},
)
cStat: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"white_space": "preserve",
"pattern": r"[0-9]{3}",
},
)
xMotivo: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"min_length": 1,
"max_length": 255,
"white_space": "preserve",
"pattern": r"[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}",
},
)
cUF: Optional[TcodUfIbge] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
},
)
protNF3e: List[TprotNf3E] = field(
default_factory=list,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"max_occurs": 50,
},
)
versao: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"white_space": "preserve",
"pattern": r"1\.00",
},
)
Loading
Loading