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
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
add nf3e 1.00 - NT2024001
rvalyi committed Apr 5, 2024
commit bd2db5aebe2902b0d192d56fff91d83b33bf0455
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",
},
)
23 changes: 23 additions & 0 deletions nfelib/nf3e/bindings/v1_0/cons_reci_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""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

from nfelib.nf3e.bindings.v1_0.cons_reci_nf3e_tipos_basico_v1_00 import (
TconsReciNf3E,
)

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


@dataclass
class ConsReciNf3E(TconsReciNf3E):
"""
Schema XML de validação do Pedido de Consulta de NF-3e.
"""

class Meta:
name = "consReciNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
221 changes: 221 additions & 0 deletions nfelib/nf3e/bindings/v1_0/cons_sit_nf3e_tipos_basico_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
"""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 enum import Enum
from typing import List, Optional

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

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


class ProcEventoNf3EVersao(Enum):
VALUE_1_00 = "1.00"


class ProtNf3EVersao(Enum):
VALUE_1_00 = "1.00"


@dataclass
class TconsSitNf3E(CommonMixin):
"""
Tipo Pedido de Consulta da Situação Atual da NF-3e.
:ivar tpAmb: Identificação do Ambiente: 1 - Produção; 2 -
Homologação;
:ivar xServ: Serviço Solicitado
:ivar chNF3e: Chaves de acesso do NF-3
:ivar versao:
"""

class Meta:
name = "TConsSitNF3e"

tpAmb: Optional[Tamb] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
},
)
xServ: str = field(
init=False,
default="CONSULTAR",
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"white_space": "preserve",
"pattern": r"[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}",
},
)
chNF3e: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"max_length": 44,
"white_space": "preserve",
"pattern": r"[0-9]{44}",
},
)
versao: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"pattern": r"1\.00",
},
)


@dataclass
class TretConsSitNf3E(CommonMixin):
"""
Tipo Retorno de Pedido de Consulta da Situação Atual de NF-3e.
:ivar tpAmb: Identificação do Ambiente: 1 - Produção 2 - Homologação
:ivar verAplic: Versão do Aplicativo que processou o NF-3e
:ivar cStat: Código do status da mensagem enviada.
:ivar xMotivo: Descrição literal do status do serviço solicitado.
:ivar cUF: código da UF de atendimento
:ivar protNF3e:
:ivar procEventoNF3e:
:ivar versao:
"""

class Meta:
name = "TRetConsSitNF3e"

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}",
},
)
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: Optional["TretConsSitNf3E.ProtNf3E"] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
},
)
procEventoNF3e: List["TretConsSitNf3E.ProcEventoNf3E"] = field(
default_factory=list,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
},
)
versao: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"pattern": r"1\.00",
},
)

@dataclass
class ProtNf3E(CommonMixin):
"""
:ivar any_element: Retornar protNF3e da versão correspondente da
NF-3e autorizada
:ivar versao:
"""

any_element: Optional[object] = field(
default=None,
metadata={
"type": "Wildcard",
"namespace": "##any",
"process_contents": "skip",
},
)
versao: Optional[ProtNf3EVersao] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"white_space": "preserve",
},
)

@dataclass
class ProcEventoNf3E(CommonMixin):
"""
:ivar any_element: Retornar procEventoNF3e da versão
correspondente do evento NF-3e autorizado
:ivar versao:
"""

any_element: Optional[object] = field(
default=None,
metadata={
"type": "Wildcard",
"namespace": "##any",
"process_contents": "skip",
},
)
versao: Optional[ProcEventoNf3EVersao] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"white_space": "preserve",
},
)
23 changes: 23 additions & 0 deletions nfelib/nf3e/bindings/v1_0/cons_sit_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""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

from nfelib.nf3e.bindings.v1_0.cons_sit_nf3e_tipos_basico_v1_00 import (
TconsSitNf3E,
)

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


@dataclass
class ConsSitNf3E(TconsSitNf3E):
"""
Schema de validação XML dp Pedido de Consulta da Situação Atual da NF-3e.
"""

class Meta:
name = "consSitNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
177 changes: 177 additions & 0 deletions nfelib/nf3e/bindings/v1_0/cons_stat_serv_nf3e_tipos_basico_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
"""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 Optional

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

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


@dataclass
class TconsStatServ(CommonMixin):
"""
Tipo Pedido de Consulta do Status do Serviço NF-3e.
:ivar tpAmb: Identificação do Ambiente: 1 - Produção 2 - Homologação
:ivar xServ: Serviço Solicitado
:ivar versao:
"""

class Meta:
name = "TConsStatServ"

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


@dataclass
class TretConsStatServ(CommonMixin):
"""
Tipo Resultado da Consulta do Status do Serviço 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 cStat: Código do status da mensagem enviada.
:ivar xMotivo: Descrição literal do status do serviço solicitado.
:ivar cUF: Código da UF responsável pelo serviço
:ivar dhRecbto: AAAA-MM-DDTHH:MM:SS TZD
:ivar tMed: Tempo médio de resposta do serviço (em segundos) dos
últimos 5 minutos
:ivar dhRetorno: AAAA-MM-DDTHH:MM:SS TZD. Deve ser preenchida com
data e hora previstas para o retorno dos serviços prestados.
:ivar xObs: Campo observação utilizado para incluir informações ao
contribuinte
:ivar versao:
"""

class Meta:
name = "TRetConsStatServ"

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": "collapse",
"pattern": r"[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}",
},
)
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,
},
)
dhRecbto: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"required": True,
"white_space": "preserve",
"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))",
},
)
tMed: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"pattern": r"[0-9]{1,4}",
},
)
dhRetorno: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"white_space": "preserve",
"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))",
},
)
xObs: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nf3e",
"min_length": 1,
"max_length": 255,
"white_space": "collapse",
},
)
versao: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"pattern": r"1\.00",
},
)
23 changes: 23 additions & 0 deletions nfelib/nf3e/bindings/v1_0/cons_stat_serv_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""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

from nfelib.nf3e.bindings.v1_0.cons_stat_serv_nf3e_tipos_basico_v1_00 import (
TconsStatServ,
)

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


@dataclass
class ConsStatServNf3E(TconsStatServ):
"""
Schema XML de validação do Pedido de Consulta do Status do Serviço NF-3e.
"""

class Meta:
name = "consStatServNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
21 changes: 21 additions & 0 deletions nfelib/nf3e/bindings/v1_0/envi_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""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

from nfelib.nf3e.bindings.v1_0.nf3e_tipos_basico_v1_00 import TenviNf3E

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


@dataclass
class EnviNf3E(TenviNf3E):
"""
Schema XML de validação do Envio de Lote NF-3e para concessão de autorização.
"""

class Meta:
name = "enviNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
60 changes: 60 additions & 0 deletions nfelib/nf3e/bindings/v1_0/ev_canc_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
"""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 enum import Enum
from typing import Optional

from nfelib import CommonMixin

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


class EvCancNf3EDescEvento(Enum):
CANCELAMENTO = "Cancelamento"


@dataclass
class EvCancNf3E(CommonMixin):
"""
Schema XML de validação do evento do cancelamento 110111.
:ivar descEvento: Descrição do Evento - “Cancelamento”
:ivar nProt: Número do Protocolo de Status da NF-3e.
:ivar xJust: Justificativa do Cancelamento
"""

class Meta:
name = "evCancNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"

descEvento: Optional[EvCancNf3EDescEvento] = field(
default=None,
metadata={
"type": "Element",
"required": True,
"white_space": "preserve",
},
)
nProt: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"required": True,
"white_space": "preserve",
"pattern": r"[0-9]{16}",
},
)
xJust: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"required": True,
"min_length": 15,
"max_length": 255,
"white_space": "preserve",
"pattern": r"[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}",
},
)
424 changes: 424 additions & 0 deletions nfelib/nf3e/bindings/v1_0/evento_nf3e_tipos_basico_v1_00.py

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions nfelib/nf3e/bindings/v1_0/evento_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""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

from nfelib.nf3e.bindings.v1_0.evento_nf3e_tipos_basico_v1_00 import Tevento

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


@dataclass
class EventoNf3E(Tevento):
"""
Schema XML de validação do Pedido de Registro de Evento da NF-3e.
"""

class Meta:
name = "eventoNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
5,579 changes: 5,579 additions & 0 deletions nfelib/nf3e/bindings/v1_0/nf3e_tipos_basico_v1_00.py

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions nfelib/nf3e/bindings/v1_0/nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""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

from nfelib.nf3e.bindings.v1_0.nf3e_tipos_basico_v1_00 import Tnf3E

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


@dataclass
class Nf3E(Tnf3E):
"""
Nota Fiscal Eletrônica de Energia Elétrica.
"""

class Meta:
name = "NF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
23 changes: 23 additions & 0 deletions nfelib/nf3e/bindings/v1_0/proc_evento_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""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

from nfelib.nf3e.bindings.v1_0.evento_nf3e_tipos_basico_v1_00 import (
TprocEvento,
)

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


@dataclass
class ProcEventoNf3E(TprocEvento):
"""
Pedido de Registro de Evento de NF-3e processado.
"""

class Meta:
name = "procEventoNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
81 changes: 81 additions & 0 deletions nfelib/nf3e/bindings/v1_0/proc_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
"""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 Optional

from nfelib import CommonMixin
from nfelib.nf3e.bindings.v1_0.nf3e_tipos_basico_v1_00 import (
Tnf3E,
TprotNf3E,
)

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


@dataclass
class Nf3EProc(CommonMixin):
"""
NF-3e processada.
:ivar NF3e:
:ivar protNF3e:
:ivar versao:
:ivar ipTransmissor: IP do transmissor do documento fiscal para o
ambiente autorizador
:ivar nPortaCon: Porta de origem utilizada na conexão (De 0 a 65535)
:ivar dhConexao: Data e Hora da Conexão de Origem
"""

class Meta:
name = "nf3eProc"
namespace = "http://www.portalfiscal.inf.br/nf3e"

NF3e: Optional[Tnf3E] = field(
default=None,
metadata={
"type": "Element",
"required": True,
},
)
protNF3e: Optional[TprotNf3E] = field(
default=None,
metadata={
"type": "Element",
"required": True,
},
)
versao: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"white_space": "preserve",
"pattern": r"1\.00",
},
)
ipTransmissor: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"white_space": "preserve",
"pattern": r"(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])",
},
)
nPortaCon: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"pattern": r"[0-9]{1,5}",
},
)
dhConexao: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"white_space": "preserve",
"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))",
},
)
23 changes: 23 additions & 0 deletions nfelib/nf3e/bindings/v1_0/ret_cons_reci_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""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

from nfelib.nf3e.bindings.v1_0.cons_reci_nf3e_tipos_basico_v1_00 import (
TretConsReciNf3E,
)

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


@dataclass
class RetConsReciNf3E(TretConsReciNf3E):
"""
Schema XML de validação do retorno do Pedido de Consulta da NF-3e.
"""

class Meta:
name = "retConsReciNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
23 changes: 23 additions & 0 deletions nfelib/nf3e/bindings/v1_0/ret_cons_sit_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""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

from nfelib.nf3e.bindings.v1_0.cons_sit_nf3e_tipos_basico_v1_00 import (
TretConsSitNf3E,
)

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


@dataclass
class RetConsSitNf3E(TretConsSitNf3E):
"""
Schema XML de validação do retorno da consulta da situação atual da NF-3e.
"""

class Meta:
name = "retConsSitNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
23 changes: 23 additions & 0 deletions nfelib/nf3e/bindings/v1_0/ret_cons_stat_serv_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""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

from nfelib.nf3e.bindings.v1_0.cons_stat_serv_nf3e_tipos_basico_v1_00 import (
TretConsStatServ,
)

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


@dataclass
class RetConsStatServNf3E(TretConsStatServ):
"""
Schema XML de validação do Resultado da Consulta do Status do Serviço de NF-3e.
"""

class Meta:
name = "retConsStatServNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
21 changes: 21 additions & 0 deletions nfelib/nf3e/bindings/v1_0/ret_envi_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""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

from nfelib.nf3e.bindings.v1_0.nf3e_tipos_basico_v1_00 import TretEnviNf3E

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


@dataclass
class RetEnviNf3E(TretEnviNf3E):
"""
Schema XML de validação do retorno do recibo de envio do lote de NF-3e.
"""

class Meta:
name = "retEnviNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
21 changes: 21 additions & 0 deletions nfelib/nf3e/bindings/v1_0/ret_evento_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""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

from nfelib.nf3e.bindings.v1_0.evento_nf3e_tipos_basico_v1_00 import TretEvento

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


@dataclass
class RetEventoNf3E(TretEvento):
"""
Schema XML de validação do retorno Pedido de Evento da NF-3e.
"""

class Meta:
name = "retEventoNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
21 changes: 21 additions & 0 deletions nfelib/nf3e/bindings/v1_0/ret_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""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

from nfelib.nf3e.bindings.v1_0.nf3e_tipos_basico_v1_00 import TretNf3E

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


@dataclass
class RetNf3E(TretNf3E):
"""
Schema XML de validação do retorno do BP-e.
"""

class Meta:
name = "retNF3e"
namespace = "http://www.portalfiscal.inf.br/nf3e"
164 changes: 164 additions & 0 deletions nfelib/nf3e/bindings/v1_0/tipos_geral_nf3e_v1_00.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
"""This file was generated by xsdata, v24.3.1, on 2024-04-05 08:30:20
Generator: DataclassGenerator
See: https://xsdata.readthedocs.io/
"""
from enum import Enum

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


class Tamb(Enum):
"""
Tipo Ambiente.
"""

VALUE_1 = "1"
VALUE_2 = "2"


class TcorgaoIbge(Enum):
"""
Tipo Código de orgão (UF da tabela do IBGE + 90 SUFRAMA + 91 RFB + 92 BRId)
"""

VALUE_11 = "11"
VALUE_12 = "12"
VALUE_13 = "13"
VALUE_14 = "14"
VALUE_15 = "15"
VALUE_16 = "16"
VALUE_17 = "17"
VALUE_21 = "21"
VALUE_22 = "22"
VALUE_23 = "23"
VALUE_24 = "24"
VALUE_25 = "25"
VALUE_26 = "26"
VALUE_27 = "27"
VALUE_28 = "28"
VALUE_29 = "29"
VALUE_31 = "31"
VALUE_32 = "32"
VALUE_33 = "33"
VALUE_35 = "35"
VALUE_41 = "41"
VALUE_42 = "42"
VALUE_43 = "43"
VALUE_50 = "50"
VALUE_51 = "51"
VALUE_52 = "52"
VALUE_53 = "53"
VALUE_90 = "90"
VALUE_91 = "91"
VALUE_92 = "92"
VALUE_93 = "93"


class TcodUfIbge(Enum):
"""
Tipo Código da UF da tabela do IBGE.
"""

VALUE_11 = "11"
VALUE_12 = "12"
VALUE_13 = "13"
VALUE_14 = "14"
VALUE_15 = "15"
VALUE_16 = "16"
VALUE_17 = "17"
VALUE_21 = "21"
VALUE_22 = "22"
VALUE_23 = "23"
VALUE_24 = "24"
VALUE_25 = "25"
VALUE_26 = "26"
VALUE_27 = "27"
VALUE_28 = "28"
VALUE_29 = "29"
VALUE_31 = "31"
VALUE_32 = "32"
VALUE_33 = "33"
VALUE_35 = "35"
VALUE_41 = "41"
VALUE_42 = "42"
VALUE_43 = "43"
VALUE_50 = "50"
VALUE_51 = "51"
VALUE_52 = "52"
VALUE_53 = "53"


class TmodNf3E(Enum):
"""
Tipo Modelo NF-3e.
"""

VALUE_66 = "66"


class Tuf(Enum):
"""
Tipo Sigla da UF.
"""

AC = "AC"
AL = "AL"
AM = "AM"
AP = "AP"
BA = "BA"
CE = "CE"
DF = "DF"
ES = "ES"
GO = "GO"
MA = "MA"
MG = "MG"
MS = "MS"
MT = "MT"
PA = "PA"
PB = "PB"
PE = "PE"
PI = "PI"
PR = "PR"
RJ = "RJ"
RN = "RN"
RO = "RO"
RR = "RR"
RS = "RS"
SC = "SC"
SE = "SE"
SP = "SP"
TO = "TO"
EX = "EX"


class TufSemEx(Enum):
"""Tipo Sigla da UF - Sem Exterior"""

AC = "AC"
AL = "AL"
AM = "AM"
AP = "AP"
BA = "BA"
CE = "CE"
DF = "DF"
ES = "ES"
GO = "GO"
MA = "MA"
MG = "MG"
MS = "MS"
MT = "MT"
PA = "PA"
PB = "PB"
PE = "PE"
PI = "PI"
PR = "PR"
RJ = "RJ"
RN = "RN"
RO = "RO"
RR = "RR"
RS = "RS"
SC = "SC"
SE = "SE"
SP = "SP"
TO = "TO"
269 changes: 269 additions & 0 deletions nfelib/nf3e/bindings/v1_0/xmldsig_core_schema_v1_01.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
"""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 enum import Enum
from typing import List, Optional

from nfelib import CommonMixin

__NAMESPACE__ = "http://www.w3.org/2000/09/xmldsig#"


@dataclass
class SignatureValueType(CommonMixin):
value: Optional[bytes] = field(
default=None,
metadata={
"required": True,
"format": "base64",
},
)
Id: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
},
)


class TtransformUri(Enum):
HTTP_WWW_W3_ORG_2000_09_XMLDSIG_ENVELOPED_SIGNATURE = (
"http://www.w3.org/2000/09/xmldsig#enveloped-signature"
)
HTTP_WWW_W3_ORG_TR_2001_REC_XML_C14N_20010315 = (
"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
)


@dataclass
class X509DataType(CommonMixin):
X509Certificate: Optional[bytes] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
"format": "base64",
},
)


@dataclass
class KeyInfoType(CommonMixin):
X509Data: Optional[X509DataType] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
Id: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
},
)


@dataclass
class TransformType(CommonMixin):
XPath: List[str] = field(
default_factory=list,
metadata={
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
},
)
Algorithm: Optional[TtransformUri] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
},
)


@dataclass
class TransformsType(CommonMixin):
transform: List[TransformType] = field(
default_factory=list,
metadata={
"name": "Transform",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"min_occurs": 2,
"max_occurs": 2,
},
)


@dataclass
class ReferenceType(CommonMixin):
transforms: Optional[TransformsType] = field(
default=None,
metadata={
"name": "Transforms",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
digestMethod: Optional["ReferenceType.DigestMethod"] = field(
default=None,
metadata={
"name": "DigestMethod",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
digestValue: Optional[bytes] = field(
default=None,
metadata={
"name": "DigestValue",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
"format": "base64",
},
)
Id: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
},
)
URI: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
"required": True,
"min_length": 2,
},
)
Type_value: Optional[str] = field(
default=None,
metadata={
"name": "Type",
"type": "Attribute",
},
)

@dataclass
class DigestMethod(CommonMixin):
Algorithm: str = field(
init=False,
default="http://www.w3.org/2000/09/xmldsig#sha1",
metadata={
"type": "Attribute",
"required": True,
},
)


@dataclass
class SignedInfoType(CommonMixin):
canonicalizationMethod: Optional[
"SignedInfoType.CanonicalizationMethod"
] = field(
default=None,
metadata={
"name": "CanonicalizationMethod",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
signatureMethod: Optional["SignedInfoType.SignatureMethod"] = field(
default=None,
metadata={
"name": "SignatureMethod",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
reference: Optional[ReferenceType] = field(
default=None,
metadata={
"name": "Reference",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
Id: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
},
)

@dataclass
class CanonicalizationMethod(CommonMixin):
Algorithm: str = field(
init=False,
default="http://www.w3.org/TR/2001/REC-xml-c14n-20010315",
metadata={
"type": "Attribute",
"required": True,
},
)

@dataclass
class SignatureMethod(CommonMixin):
Algorithm: str = field(
init=False,
default="http://www.w3.org/2000/09/xmldsig#rsa-sha1",
metadata={
"type": "Attribute",
"required": True,
},
)


@dataclass
class SignatureType(CommonMixin):
signedInfo: Optional[SignedInfoType] = field(
default=None,
metadata={
"name": "SignedInfo",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
signatureValue: Optional[SignatureValueType] = field(
default=None,
metadata={
"name": "SignatureValue",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
keyInfo: Optional[KeyInfoType] = field(
default=None,
metadata={
"name": "KeyInfo",
"type": "Element",
"namespace": "http://www.w3.org/2000/09/xmldsig#",
"required": True,
},
)
Id: Optional[str] = field(
default=None,
metadata={
"type": "Attribute",
},
)


@dataclass
class Signature(SignatureType):
class Meta:
namespace = "http://www.w3.org/2000/09/xmldsig#"
169 changes: 169 additions & 0 deletions nfelib/nf3e/schemas/v1_0/consReciNF3eTiposBasico_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
<xs:include schemaLocation="tiposGeralNF3e_v1.00.xsd"/>
<xs:complexType name="TProtNF3e">
<xs:annotation>
<xs:documentation>Tipo Protocolo de status resultado do processamento da NF-3e</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="infProt">
<xs:annotation>
<xs:documentation>Dados do protocolo de status</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="verAplic" type="TVerAplic">
<xs:annotation>
<xs:documentation>Versão do Aplicativo que processou a NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="chNF3e" type="TChDFe">
<xs:annotation>
<xs:documentation>Chaves de acesso da NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dhRecbto">
<xs:annotation>
<xs:documentation>Data e hora de processamento, no formato AAAA-MM-DDTHH:MM:SS TZD. </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TDateTimeUTC"/>
</xs:simpleType>
</xs:element>
<xs:element name="nProt" type="TProt" minOccurs="0">
<xs:annotation>
<xs:documentation>Número do Protocolo de Status da NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="digVal" type="ds:DigestValueType" minOccurs="0">
<xs:annotation>
<xs:documentation>Digest Value da NF-3e processado. Utilizado para conferir a integridade da NF-3e original.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cStat">
<xs:annotation>
<xs:documentation>Código do status da NF-3e.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TStat"/>
</xs:simpleType>
</xs:element>
<xs:element name="xMotivo" type="TMotivo">
<xs:annotation>
<xs:documentation>Descrição literal do status da NF-3e.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="Id" type="xs:ID" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="infFisco" minOccurs="0">
<xs:annotation>
<xs:documentation>Mensagem do Fisco</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="cMsg">
<xs:annotation>
<xs:documentation>Código do status da mensagem do fisco</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TStat"/>
</xs:simpleType>
</xs:element>
<xs:element name="xMsg" type="TMotivo">
<xs:annotation>
<xs:documentation>Mensagem do Fisco</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="ds:Signature" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsReciNF3e" use="required"/>
</xs:complexType>
<xs:complexType name="TConsReciNF3e">
<xs:annotation>
<xs:documentation>Tipo Pedido de Consulta do Recibo da NF-3e</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nRec" type="TRec">
<xs:annotation>
<xs:documentation>Número do Recibo do arquivo a ser consultado</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsReciNF3e" use="required"/>
</xs:complexType>
<xs:complexType name="TRetConsReciNF3e">
<xs:annotation>
<xs:documentation>Tipo Retorno do Pedido de Consulta do Recibo da NF-3e</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="verAplic" type="TVerAplic">
<xs:annotation>
<xs:documentation>Versão do Aplicativo que processou a NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nRec" type="TRec">
<xs:annotation>
<xs:documentation>Número do Recibo Consultado</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cStat" type="TStat">
<xs:annotation>
<xs:documentation>código do status do retorno da consulta.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xMotivo" type="TMotivo">
<xs:annotation>
<xs:documentation>Descrição literal do status do do retorno da consulta.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cUF" type="TCodUfIBGE">
<xs:annotation>
<xs:documentation>Idntificação da UF</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="protNF3e" type="TProtNF3e" minOccurs="0" maxOccurs="50">
<xs:annotation>
<xs:documentation>Resultado do processamento do NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsReciNF3e" use="required"/>
</xs:complexType>
<xs:simpleType name="TVerConsReciNF3e">
<xs:annotation>
<xs:documentation> Tipo Versão do Consulta do Recibo de NF-3e - 1.00</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="1\.00"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/consReciNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="consReciNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="consReciNF3e" type="TConsReciNF3e">
<xs:annotation>
<xs:documentation>Schema XML de validação do Pedido de Consulta de NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
112 changes: 112 additions & 0 deletions nfelib/nf3e/schemas/v1_0/consSitNF3eTiposBasico_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="tiposGeralNF3e_v1.00.xsd"/>
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
<xs:complexType name="TConsSitNF3e">
<xs:annotation>
<xs:documentation>Tipo Pedido de Consulta da Situação Atual da NF-3e</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção;
2 - Homologação;</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xServ" type="TServ" fixed="CONSULTAR">
<xs:annotation>
<xs:documentation>Serviço Solicitado</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="chNF3e" type="TChDFe">
<xs:annotation>
<xs:documentation>Chaves de acesso do NF-3</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsSitNF3e" use="required"/>
</xs:complexType>
<xs:complexType name="TRetConsSitNF3e">
<xs:annotation>
<xs:documentation>Tipo Retorno de Pedido de Consulta da Situação Atual de NF-3e</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="verAplic" type="TVerAplic">
<xs:annotation>
<xs:documentation>Versão do Aplicativo que processou o NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cStat" type="TStat">
<xs:annotation>
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xMotivo" type="TMotivo">
<xs:annotation>
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cUF" type="TCodUfIBGE">
<xs:annotation>
<xs:documentation>código da UF de atendimento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="protNF3e" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:any processContents="skip">
<xs:annotation>
<xs:documentation>Retornar protNF3e da versão correspondente da NF-3e autorizada</xs:documentation>
</xs:annotation>
</xs:any>
</xs:sequence>
<xs:attribute name="versao" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="1.00"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="procEventoNF3e" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:any processContents="skip">
<xs:annotation>
<xs:documentation>Retornar procEventoNF3e da versão correspondente do evento NF-3e autorizado</xs:documentation>
</xs:annotation>
</xs:any>
</xs:sequence>
<xs:attribute name="versao" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="1.00"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsSitNF3e" use="required"/>
</xs:complexType>
<xs:simpleType name="TVerConsSitNF3e">
<xs:annotation>
<xs:documentation> Tipo Versão do Consulta situação de NF-3e - 1.00</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="1\.00"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/consSitNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="consSitNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="consSitNF3e" type="TConsSitNF3e">
<xs:annotation>
<xs:documentation>Schema de validação XML dp Pedido de Consulta da Situação Atual da NF-3e.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
105 changes: 105 additions & 0 deletions nfelib/nf3e/schemas/v1_0/consStatServNF3eTiposBasico_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="tiposGeralNF3e_v1.00.xsd"/>
<xs:complexType name="TConsStatServ">
<xs:annotation>
<xs:documentation>Tipo Pedido de Consulta do Status do Serviço NF-3e</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xServ" type="TServ" fixed="STATUS">
<xs:annotation>
<xs:documentation>Serviço Solicitado</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsStat" use="required"/>
</xs:complexType>
<xs:complexType name="TRetConsStatServ">
<xs:annotation>
<xs:documentation>Tipo Resultado da Consulta do Status do Serviço NF-3e</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="verAplic">
<xs:annotation>
<xs:documentation>Versão do Aplicativo que processou a NF-3e</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TVerAplic">
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cStat" type="TStat">
<xs:annotation>
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xMotivo" type="TMotivo">
<xs:annotation>
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cUF" type="TCodUfIBGE">
<xs:annotation>
<xs:documentation>Código da UF responsável pelo serviço</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dhRecbto" type="TDateTimeUTC">
<xs:annotation>
<xs:documentation>AAAA-MM-DDTHH:MM:SS TZD</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tMed" minOccurs="0">
<xs:annotation>
<xs:documentation>Tempo médio de resposta do serviço (em segundos) dos últimos 5 minutos</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:pattern value="[0-9]{1,4}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dhRetorno" type="TDateTimeUTC" minOccurs="0">
<xs:annotation>
<xs:documentation>AAAA-MM-DDTHH:MM:SS TZD. Deve ser preenchida com data e hora previstas para o retorno dos serviços prestados.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xObs" minOccurs="0">
<xs:annotation>
<xs:documentation>Campo observação utilizado para incluir informações ao contribuinte</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="255"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" type="TVerConsStat" use="required"/>
</xs:complexType>
<xs:simpleType name="TVerConsStat">
<xs:annotation>
<xs:documentation> Tipo Versão do Consulta do Status do Serviço NF-3e</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="1\.00"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/consStatServNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="consStatServNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="consStatServNF3e" type="TConsStatServ">
<xs:annotation>
<xs:documentation>Schema XML de validação do Pedido de Consulta do Status do Serviço NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
9 changes: 9 additions & 0 deletions nfelib/nf3e/schemas/v1_0/enviNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="nf3eTiposBasico_v1.00.xsd"/>
<xs:element name="enviNF3e" type="TEnviNF3e">
<xs:annotation>
<xs:documentation>Schema XML de validação do Envio de Lote NF-3e para concessão de autorização</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
36 changes: 36 additions & 0 deletions nfelib/nf3e/schemas/v1_0/evCancNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="eventoNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="evCancNF3e">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento do cancelamento
110111</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="descEvento">
<xs:annotation>
<xs:documentation>Descrição do Evento - “Cancelamento”</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="Cancelamento"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nProt" type="TProt">
<xs:annotation>
<xs:documentation>Número do Protocolo de Status da NF-3e.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xJust" type="TJust">
<xs:annotation>
<xs:documentation>Justificativa do Cancelamento</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
244 changes: 244 additions & 0 deletions nfelib/nf3e/schemas/v1_0/eventoNF3eTiposBasico_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas.softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
<xs:include schemaLocation="tiposGeralNF3e_v1.00.xsd"/>
<xs:complexType name="TEvento">
<xs:annotation>
<xs:documentation>Tipo Evento</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="infEvento">
<xs:complexType>
<xs:sequence>
<xs:element name="cOrgao" type="TCOrgaoIBGE">
<xs:annotation>
<xs:documentation>Código do órgão de recepção do Evento.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CNPJ" type="TCnpj">
<xs:annotation>
<xs:documentation>CNPJ do emissor do evento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="chNF3e" type="TChDFe">
<xs:annotation>
<xs:documentation>Chave de Acesso da NF-3e vinculada ao evento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dhEvento" type="TDateTimeUTC">
<xs:annotation>
<xs:documentation>Data e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tpEvento">
<xs:annotation>
<xs:documentation>Tipo do Evento</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="[0-9]{6}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nSeqEvento">
<xs:annotation>
<xs:documentation>Seqüencial do evento para o mesmo tipo de evento. Para maioria dos eventos será 1, nos casos em que possa existir mais de um evento o autor do evento deve numerar de forma seqüencial.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="[0-9]{1,3}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="detEvento">
<xs:annotation>
<xs:documentation>Detalhamento do evento específico</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any processContents="skip">
<xs:annotation>
<xs:documentation>XML do evento
Insira neste local o XML específico do tipo de evento (cancelamento, encerramento, registro de passagem). </xs:documentation>
</xs:annotation>
</xs:any>
</xs:sequence>
<xs:attribute name="versaoEvento" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="1\.(0[0-9]|[1-9][0-9])"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Id" use="required">
<xs:annotation>
<xs:documentation>Identificador da TAG a ser assinada, a regra de formação do Id é:
“ID” + tpEvento + chave da NF-3e + nSeqEvento </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:ID">
<xs:pattern value="ID[0-9]{52}|ID[0-9]{53}"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element ref="ds:Signature"/>
</xs:sequence>
<xs:attribute name="versao" type="TVerEvento" use="required"/>
</xs:complexType>
<xs:complexType name="TRetEvento">
<xs:annotation>
<xs:documentation>Tipo retorno do Evento</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="infEvento">
<xs:complexType>
<xs:sequence>
<xs:element name="tpAmb" type="TAmb">
<xs:annotation>
<xs:documentation>Identificação do Ambiente:
1 - Produção
2 - Homologação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="verAplic" type="TVerAplic">
<xs:annotation>
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cOrgao" type="TCOrgaoIBGE">
<xs:annotation>
<xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar SUFRAMA</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cStat" type="TStat">
<xs:annotation>
<xs:documentation>Código do status da registro do Evento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xMotivo" type="TMotivo">
<xs:annotation>
<xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="chNF3e" type="TChDFe" minOccurs="0">
<xs:annotation>
<xs:documentation>Chave de Acesso NF-3e vinculada</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tpEvento" minOccurs="0">
<xs:annotation>
<xs:documentation>Tipo do Evento vinculado</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="[0-9]{6}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="xEvento" minOccurs="0">
<xs:annotation>
<xs:documentation>Descrição do Evento</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="4"/>
<xs:maxLength value="60"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="nSeqEvento" minOccurs="0">
<xs:annotation>
<xs:documentation>Seqüencial do evento</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="[0-9]{1,3}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dhRegEvento" type="TDateTimeUTC" minOccurs="0">
<xs:annotation>
<xs:documentation>Data e Hora de do recebimento do evento ou do registro do evento formato AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nProt" type="TProt" minOccurs="0">
<xs:annotation>
<xs:documentation>Número do protocolo de registro do evento</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="Id" use="optional">
<xs:simpleType>
<xs:restriction base="xs:ID">
<xs:pattern value="ID[0-9]{16}"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element ref="ds:Signature" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="versao" use="required">
<xs:simpleType>
<xs:restriction base="TVerEvento"/>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TProcEvento">
<xs:annotation>
<xs:documentation>Tipo procEvento</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="eventoNF3e" type="TEvento"/>
<xs:element name="retEventoNF3e" type="TRetEvento"/>
</xs:sequence>
<xs:attribute name="versao" type="TVerEvento" use="required"/>
<xs:attribute name="ipTransmissor" type="TIPv4" use="optional">
<xs:annotation>
<xs:documentation>IP do transmissor do documento fiscal para o ambiente autorizador</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="nPortaCon" use="optional">
<xs:annotation>
<xs:documentation>Porta de origem utilizada na conexão (De 0 a 65535)</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{1,5}"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="dhConexao" type="TDateTimeUTC" use="optional">
<xs:annotation>
<xs:documentation>Data e Hora da Conexão de Origem</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="TVerEvento">
<xs:annotation>
<xs:documentation>Tipo Versão do Evento</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="1\.00"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
9 changes: 9 additions & 0 deletions nfelib/nf3e/schemas/v1_0/eventoNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="eventoNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="eventoNF3e" type="TEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do Pedido de Registro de Evento da NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
4,005 changes: 4,005 additions & 0 deletions nfelib/nf3e/schemas/v1_0/nf3eTiposBasico_v1.00.xsd

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/nf3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="nf3eTiposBasico_v1.00.xsd"/>
<xs:element name="NF3e" type="TNF3e">
<xs:annotation>
<xs:documentation>Nota Fiscal Eletrônica de Energia Elétrica </xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/procEventoNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="eventoNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="procEventoNF3e" type="TProcEvento">
<xs:annotation>
<xs:documentation>Pedido de Registro de Evento de NF-3e processado</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
37 changes: 37 additions & 0 deletions nfelib/nf3e/schemas/v1_0/procNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas.softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nf3e" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="nf3eTiposBasico_v1.00.xsd"/>
<xs:element name="nf3eProc">
<xs:annotation>
<xs:documentation>NF-3e processada</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="NF3e" type="TNF3e"/>
<xs:element name="protNF3e" type="TProtNF3e"/>
</xs:sequence>
<xs:attribute name="versao" type="TVerNF3e" use="required"/>
<xs:attribute name="ipTransmissor" type="TIPv4" use="optional">
<xs:annotation>
<xs:documentation>IP do transmissor do documento fiscal para o ambiente autorizador</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="nPortaCon" use="optional">
<xs:annotation>
<xs:documentation>Porta de origem utilizada na conexão (De 0 a 65535)</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{1,5}"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="dhConexao" type="TDateTimeUTC" use="optional">
<xs:annotation>
<xs:documentation>Data e Hora da Conexão de Origem</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/retConsReciNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="consReciNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="retConsReciNF3e" type="TRetConsReciNF3e">
<xs:annotation>
<xs:documentation>Schema XML de validação do retorno do Pedido de Consulta da NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
9 changes: 9 additions & 0 deletions nfelib/nf3e/schemas/v1_0/retConsSitNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="consSitNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="retConsSitNF3e" type="TRetConsSitNF3e">
<xs:annotation>
<xs:documentation>Schema XML de validação do retorno da consulta da situação atual da NF-3e.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/retConsStatServNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="consStatServNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="retConsStatServNF3e" type="TRetConsStatServ">
<xs:annotation>
<xs:documentation>Schema XML de validação do Resultado da Consulta do Status do Serviço de NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/retEnviNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="nf3eTiposBasico_v1.00.xsd"/>
<xs:element name="retEnviNF3e" type="TRetEnviNF3e">
<xs:annotation>
<xs:documentation>Schema XML de validação do retorno do recibo de envio do lote de NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/retEventoNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="eventoNF3eTiposBasico_v1.00.xsd"/>
<xs:element name="retEventoNF3e" type="TRetEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do retorno Pedido de Evento da NF-3e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
10 changes: 10 additions & 0 deletions nfelib/nf3e/schemas/v1_0/retNF3e_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nf3e" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nf3e" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="nf3eTiposBasico_v1.00.xsd"/>
<xs:element name="retNF3e" type="TRetNF3e">
<xs:annotation>
<xs:documentation>Schema XML de validação do retorno do BP-e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
729 changes: 729 additions & 0 deletions nfelib/nf3e/schemas/v1_0/tiposGeralNF3e_v1.00.xsd

Large diffs are not rendered by default.

98 changes: 98 additions & 0 deletions nfelib/nf3e/schemas/v1_0/xmldsig-core-schema_v1.01.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- ***************************************************-->
<!-- *** Schema específico para assinaturas XML ***-->
<!-- *** a partir de certificados do padrão (X509) ***-->
<!-- *** ICP-Brasil - Projeto Nota Fiscal Eletrônica ***-->
<!-- ***************************************************-->
<!-- Schema for XML Signatures-->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
<element name="Signature" type="ds:SignatureType"/>
<complexType name="SignatureType">
<sequence>
<element name="SignedInfo" type="ds:SignedInfoType"/>
<element name="SignatureValue" type="ds:SignatureValueType"/>
<element name="KeyInfo" type="ds:KeyInfoType"/>
</sequence>
<attribute name="Id" type="ID" use="optional"/>
</complexType>
<complexType name="SignatureValueType">
<simpleContent>
<extension base="base64Binary">
<attribute name="Id" type="ID" use="optional"/>
</extension>
</simpleContent>
</complexType>
<complexType name="SignedInfoType">
<sequence>
<element name="CanonicalizationMethod">
<complexType>
<attribute name="Algorithm" type="anyURI" use="required" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
</complexType>
</element>
<element name="SignatureMethod">
<complexType>
<attribute name="Algorithm" type="anyURI" use="required" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
</complexType>
</element>
<element name="Reference" type="ds:ReferenceType"/>
</sequence>
<attribute name="Id" type="ID" use="optional"/>
</complexType>
<complexType name="ReferenceType">
<sequence>
<element name="Transforms" type="ds:TransformsType">
<!-- Garante a unicidade do atributo -->
<unique name="unique_Transf_Alg">
<selector xpath="./*"/>
<field xpath="@Algorithm"/>
</unique>
</element>
<element name="DigestMethod">
<complexType>
<attribute name="Algorithm" type="anyURI" use="required" fixed="http://www.w3.org/2000/09/xmldsig#sha1"/>
</complexType>
</element>
<element name="DigestValue" type="ds:DigestValueType"/>
</sequence>
<attribute name="Id" type="ID" use="optional"/>
<attribute name="URI" use="required">
<simpleType>
<restriction base="anyURI">
<minLength value="2"/>
</restriction>
</simpleType>
</attribute>
<attribute name="Type" type="anyURI" use="optional"/>
</complexType>
<complexType name="TransformsType">
<sequence>
<element name="Transform" type="ds:TransformType" minOccurs="2" maxOccurs="2"/>
</sequence>
</complexType>
<complexType name="TransformType">
<sequence minOccurs="0" maxOccurs="unbounded">
<element name="XPath" type="string"/>
</sequence>
<attribute name="Algorithm" type="ds:TTransformURI" use="required"/>
</complexType>
<complexType name="KeyInfoType">
<sequence>
<element name="X509Data" type="ds:X509DataType"/>
</sequence>
<attribute name="Id" type="ID" use="optional"/>
</complexType>
<complexType name="X509DataType">
<sequence>
<element name="X509Certificate" type="base64Binary"/>
</sequence>
</complexType>
<simpleType name="DigestValueType">
<restriction base="base64Binary"/>
</simpleType>
<simpleType name="TTransformURI">
<restriction base="anyURI">
<enumeration value="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<enumeration value="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
</restriction>
</simpleType>
</schema>