Skip to content

Commit bc69a36

Browse files
committed
Atualiza schemas da NF-e
1 parent 037a499 commit bc69a36

43 files changed

Lines changed: 2281 additions & 425 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteEventoCancEConf_v1.00.xsd"/>
4+
<xs:element name="evento" type="TEvento">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NFe</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteEventoCancInsucessoNFe_v1.00.xsd"/>
4+
<xs:element name="evento" type="TEvento">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NFe</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteEventoEConf_v1.00.xsd"/>
4+
<xs:element name="evento" type="TEvento">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação do evento de Conciliação Financeira</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteEventoInsucessoNFe_v1.00.xsd"/>
4+
<xs:element name="evento" type="TEvento">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação do evento de Insucesso na entrega da NF-e</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3-
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
4-
<xs:element name="consReciNFe" type="TConsReciNFe">
5-
<xs:annotation>
6-
<xs:documentation>Schema XML de validação do Pedido de Consulta do Recido do Lote de Notas Fiscais Eletrônicas</xs:documentation>
7-
</xs:annotation>
8-
</xs:element>
9-
</xs:schema>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
4+
<xs:element name="consReciNFe" type="TConsReciNFe">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação do Pedido de Consulta do Recido do Lote de Notas Fiscais Eletrônicas</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3-
<xs:include schemaLocation="leiauteConsSitNFe_v4.00.xsd"/>
4-
<xs:element name="consSitNFe" type="TConsSitNFe">
5-
<xs:annotation>
6-
<xs:documentation>Schema de validação XML dp Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica</xs:documentation>
7-
</xs:annotation>
8-
</xs:element>
9-
</xs:schema>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteConsSitNFe_v4.00.xsd"/>
4+
<xs:element name="consSitNFe" type="TConsSitNFe">
5+
<xs:annotation>
6+
<xs:documentation>Schema de validação XML dp Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3-
<xs:include schemaLocation="leiauteConsStatServ_v4.00.xsd"/>
4-
<xs:element name="consStatServ" type="TConsStatServ">
5-
<xs:annotation>
6-
<xs:documentation>Schema XML de validação do Pedido de Consulta do Status do Serviço</xs:documentation>
7-
</xs:annotation>
8-
</xs:element>
9-
</xs:schema>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteConsStatServ_v4.00.xsd"/>
4+
<xs:element name="consStatServ" type="TConsStatServ">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação do Pedido de Consulta do Status do Serviço</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do evento de Comprovante de Entrega da NF-e</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:simpleType>
13+
<xs:restriction base="xs:string">
14+
<xs:enumeration value="Insucesso na Entrega da NF-e"/>
15+
</xs:restriction>
16+
</xs:simpleType>
17+
</xs:element>
18+
<xs:element name="cOrgaoAutor" type="TCOrgaoIBGE"/>
19+
<xs:element name="verAplic" type="TVerAplic">
20+
<xs:annotation>
21+
<xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
22+
</xs:annotation>
23+
</xs:element>
24+
<xs:element name="dhTentativaEntrega" type="TDateTimeUTC">
25+
<xs:annotation>
26+
<xs:documentation>Data e hora do final da tentativa entrega. Formato AAAA-MMDDThh:mm:ssTZD
27+
</xs:documentation>
28+
</xs:annotation>
29+
</xs:element>
30+
<xs:element name="nTentativa" minOccurs="0">
31+
<xs:simpleType>
32+
<xs:annotation>
33+
<xs:documentation>Número da tentativa de entrega que não teve sucesso</xs:documentation>
34+
</xs:annotation>
35+
<xs:restriction base="xs:string">
36+
<xs:pattern value="[0-9]{1,3}"/>
37+
</xs:restriction>
38+
</xs:simpleType>
39+
</xs:element>
40+
<xs:element name="tpMotivo">
41+
<xs:simpleType>
42+
<xs:annotation>
43+
<xs:documentation>Motivo do insucesso - 1 – Recebedor não encontrado
44+
2 – Recusa do recebedor
45+
3 – Endereço inexistente
46+
4 – Outros (exige informar justificativa) </xs:documentation>
47+
</xs:annotation>
48+
<xs:restriction base="xs:string">
49+
<xs:whiteSpace value="preserve"/>
50+
<xs:enumeration value="1"/>
51+
<xs:enumeration value="2"/>
52+
<xs:enumeration value="3"/>
53+
<xs:enumeration value="4"/>
54+
</xs:restriction>
55+
</xs:simpleType>
56+
</xs:element>
57+
<xs:element name="xJustMotivo" minOccurs="0">
58+
<xs:annotation>
59+
<xs:documentation>Justificativa do motivo do insucesso. Informar apenas para tpMotivo=4 </xs:documentation>
60+
</xs:annotation>
61+
<xs:simpleType>
62+
<xs:restriction base="TString">
63+
<xs:maxLength value="250"/>
64+
<xs:minLength value="25"/>
65+
</xs:restriction>
66+
</xs:simpleType>
67+
</xs:element>
68+
<xs:element name="latGPS" type="TLatitude" minOccurs="0">
69+
<xs:annotation>
70+
<xs:documentation>Latitude do ponto de entrega</xs:documentation>
71+
</xs:annotation>
72+
</xs:element>
73+
<xs:element name="longGPS" type="TLongitude" minOccurs="0">
74+
<xs:annotation>
75+
<xs:documentation>Longitude do ponto de entrega</xs:documentation>
76+
</xs:annotation>
77+
</xs:element>
78+
<xs:element name="hashTentativaEntrega">
79+
<xs:annotation>
80+
<xs:documentation>Hash (SHA1) no formato Base64 resultante da concatenação: Chave de acesso da NFe + Base64 da imagem capturada da entrega (Exemplo: imagem capturada da assinatura eletrônica, digital do recebedor, foto, etc)
81+
Observação: 28 caracteres são representados no schema como 20 bytes do tipo base64Binary</xs:documentation>
82+
</xs:annotation>
83+
<xs:simpleType>
84+
<xs:restriction base="xs:base64Binary">
85+
<xs:length value="20"/>
86+
</xs:restriction>
87+
</xs:simpleType>
88+
</xs:element>
89+
<xs:element name="dhHashTentativaEntrega" type="TDateTimeUTC" minOccurs="0">
90+
<xs:annotation>
91+
<xs:documentation>Data e hora da geração do hash da tentativa de entrega. Formato AAAA-MMDDThh:mm:ssTZD.
92+
</xs:documentation>
93+
</xs:annotation>
94+
</xs:element>
95+
</xs:sequence>
96+
<xs:attribute name="versao" use="required">
97+
<xs:simpleType>
98+
<xs:restriction base="xs:string">
99+
<xs:whiteSpace value="preserve"/>
100+
<xs:enumeration value="1.00"/>
101+
</xs:restriction>
102+
</xs:simpleType>
103+
</xs:attribute>
104+
</xs:complexType>
105+
</xs:element>
106+
</xs:schema>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NF-e</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:simpleType>
13+
<xs:restriction base="xs:string">
14+
<xs:enumeration value="Cancelamento Insucesso na Entrega da NF-e"/>
15+
</xs:restriction>
16+
</xs:simpleType>
17+
</xs:element>
18+
<xs:element name="cOrgaoAutor" type="TCOrgaoIBGE"/>
19+
<xs:element name="verAplic" type="TVerAplic">
20+
<xs:annotation>
21+
<xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
22+
</xs:annotation>
23+
</xs:element>
24+
<xs:element name="nProtEvento" type="TProt">
25+
<xs:annotation>
26+
<xs:documentation>Número do Protocolo de Autorização do Evento da NF-e a que se refere este cancelamento.</xs:documentation>
27+
</xs:annotation>
28+
</xs:element>
29+
</xs:sequence>
30+
<xs:attribute name="versao" use="required">
31+
<xs:simpleType>
32+
<xs:restriction base="xs:string">
33+
<xs:whiteSpace value="preserve"/>
34+
<xs:enumeration value="1.00"/>
35+
</xs:restriction>
36+
</xs:simpleType>
37+
</xs:attribute>
38+
</xs:complexType>
39+
</xs:element>
40+
</xs:schema>
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do evento de Conciliação Financeira – ECONF</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:simpleType>
13+
<xs:restriction base="xs:string">
14+
<xs:enumeration value="ECONF"/>
15+
</xs:restriction>
16+
</xs:simpleType>
17+
</xs:element>
18+
<xs:element name="verAplic" type="TVerAplic">
19+
<xs:annotation>
20+
<xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
21+
</xs:annotation>
22+
</xs:element>
23+
<xs:element name="detPag" maxOccurs="100">
24+
<xs:annotation>
25+
<xs:documentation>Grupo de detalhamento da forma de pagamento.</xs:documentation>
26+
</xs:annotation>
27+
<xs:complexType>
28+
<xs:sequence>
29+
<xs:element name="indPag" minOccurs="0">
30+
<xs:annotation>
31+
<xs:documentation>Indicador da Forma de Pagamento:0-Pagamento à Vista;1-Pagamento à Prazo;</xs:documentation>
32+
</xs:annotation>
33+
<xs:simpleType>
34+
<xs:restriction base="xs:string">
35+
<xs:whiteSpace value="preserve"/>
36+
<xs:enumeration value="0"/>
37+
<xs:enumeration value="1"/>
38+
</xs:restriction>
39+
</xs:simpleType>
40+
</xs:element>
41+
<xs:element name="tPag">
42+
<xs:annotation>
43+
<xs:documentation>Forma de Pagamento:</xs:documentation>
44+
</xs:annotation>
45+
<xs:simpleType>
46+
<xs:restriction base="xs:string">
47+
<xs:whiteSpace value="preserve"/>
48+
<xs:pattern value="[0-9]{2}"/>
49+
</xs:restriction>
50+
</xs:simpleType>
51+
</xs:element>
52+
<xs:element name="xPag" minOccurs="0">
53+
<xs:annotation>
54+
<xs:documentation>Descrição do Meio de Pagamento</xs:documentation>
55+
</xs:annotation>
56+
<xs:simpleType>
57+
<xs:restriction base="TString">
58+
<xs:minLength value="2"/>
59+
<xs:maxLength value="60"/>
60+
</xs:restriction>
61+
</xs:simpleType>
62+
</xs:element>
63+
<xs:element name="vPag" type="TDec_1302">
64+
<xs:annotation>
65+
<xs:documentation>Valor do Pagamento. Esta tag poderá ser omitida quando a tag tPag=90 (Sem Pagamento), caso contrário deverá ser preenchida.</xs:documentation>
66+
</xs:annotation>
67+
</xs:element>
68+
<xs:element name="dPag" type="TData">
69+
<xs:annotation>
70+
<xs:documentation>Data do Pagamento</xs:documentation>
71+
</xs:annotation>
72+
</xs:element>
73+
<xs:sequence minOccurs="0">
74+
<xs:element name="CNPJPag" type="TCnpj">
75+
<xs:annotation>
76+
<xs:documentation>CNPJ transacional do pagamento - Preencher informando o CNPJ do estabelecimento onde o pagamento foi processado/transacionado/recebido quando a emissão do documento fiscal ocorrer em estabelecimento distinto</xs:documentation>
77+
</xs:annotation>
78+
</xs:element>
79+
<xs:element name="UFPag" type="TUfEmi">
80+
<xs:annotation>
81+
<xs:documentation>UF do CNPJ do estabelecimento onde o pagamento foi processado/transacionado/recebido.</xs:documentation>
82+
</xs:annotation>
83+
</xs:element>
84+
<xs:element name="CNPJIF" type="TCnpj" minOccurs="0">
85+
<xs:annotation>
86+
<xs:documentation>CNPJ da instituição financeira, de pagamento, adquirente ou subadquirente.</xs:documentation>
87+
</xs:annotation>
88+
</xs:element>
89+
<xs:element name="tBand" minOccurs="0">
90+
<xs:annotation>
91+
<xs:documentation>Bandeira da operadora de cartão</xs:documentation>
92+
</xs:annotation>
93+
<xs:simpleType>
94+
<xs:restriction base="xs:string">
95+
<xs:whiteSpace value="preserve"/>
96+
<xs:pattern value="[0-9]{2}"/>
97+
</xs:restriction>
98+
</xs:simpleType>
99+
</xs:element>
100+
<xs:element name="cAut" minOccurs="0">
101+
<xs:annotation>
102+
<xs:documentation>Número de autorização da operação com cartões, PIX, boletos e outros pagamentos eletrônicos</xs:documentation>
103+
</xs:annotation>
104+
<xs:simpleType>
105+
<xs:restriction base="TString">
106+
<xs:minLength value="1"/>
107+
<xs:maxLength value="128"/>
108+
</xs:restriction>
109+
</xs:simpleType>
110+
</xs:element>
111+
</xs:sequence>
112+
<xs:sequence minOccurs="0">
113+
<xs:element name="CNPJReceb" type="TCnpj">
114+
<xs:annotation>
115+
<xs:documentation>Informar o CNPJ do estabelecimento beneficiário do pagamento</xs:documentation>
116+
</xs:annotation>
117+
</xs:element>
118+
<xs:element name="UFReceb" type="TUfEmi">
119+
<xs:annotation>
120+
<xs:documentation>UF do CNPJ do estabelecimento beneficiário do pagamento..</xs:documentation>
121+
</xs:annotation>
122+
</xs:element>
123+
</xs:sequence>
124+
</xs:sequence>
125+
</xs:complexType>
126+
</xs:element>
127+
</xs:sequence>
128+
<xs:attribute name="versao" use="required">
129+
<xs:simpleType>
130+
<xs:restriction base="xs:string">
131+
<xs:whiteSpace value="preserve"/>
132+
<xs:enumeration value="1.00"/>
133+
</xs:restriction>
134+
</xs:simpleType>
135+
</xs:attribute>
136+
</xs:complexType>
137+
</xs:element>
138+
</xs:schema>

0 commit comments

Comments
 (0)