Skip to content

Commit 059a861

Browse files
rhfranzoniclaude
andcommitted
feat(rtc): adicionar 10 schemas XSD restantes da NT 2025.002-RTC
Completa os schemas dos eventos RTC NT 2025.002 v1.40 introduzidos pelo PR #76 — os 10 abaixo estavam ausentes em NFe.AppTeste/Schemas e ja eram referenciados pelo Validador.cs / ServicosNFe.cs: - e211110_v1.00.xsd (Solicitacao de Apropriacao de credito presumido) - e211124_v1.00.xsd (Perecimento, perda, roubo ou furto durante o transporte contratado pelo adquirente) - e211128_v1.00.xsd (Aceite de debito na apuracao por emissao de nota de credito) - e211130_v1.00.xsd (Imobilizacao de Item) - e211140_v1.00.xsd (Solicitacao de Apropriacao de Credito de Combustivel) - e211150_v1.00.xsd (Solicitacao de Apropriacao de Credito para bens e servicos que dependem de atividade do adquirente) - e212110_v1.00.xsd (Manifestacao sobre Pedido de Transferencia de Credito de IBS em Operacoes de Sucessao) - e212120_v1.00.xsd (Manifestacao sobre Pedido de Transferencia de Credito de CBS em Operacoes de Sucessao) - e412120_v1.00.xsd (Manifestacao do Fisco sobre Pedido de Transferencia de Credito de IBS em Operacoes de Sucessao) - e412130_v1.00.xsd (Manifestacao do Fisco sobre Pedido de Transferencia de Credito de CBS em Operacoes de Sucessao) Atualiza tiposBasico_v1.03.xsd para a versao da NT 2025.002 v1.40, que acrescenta TnItem, TDec_0302_04, TDec_1104Neg, TDec1302 e TCOrgaoIBGE - necessarios para os XSDs RTC referenciarem corretamente. As mudancas nos patterns existentes apenas relaxam restricoes (CFOP/NCM 15 ou 17 digitos, placa Mercosul, [ -y]* equiv. [ -y]{0,}) - backward-compatible com os schemas legados que ja consomem tiposBasico_v1.03.xsd. Adiciona entries <None Include> no NFe.AppTeste.csproj para os 10 novos schemas, com CopyToOutputDirectory=Always seguindo o padrao dos demais XSDs do projeto. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ee2ccaa commit 059a861

12 files changed

Lines changed: 1058 additions & 4 deletions

NFe.AppTeste/NFe.AppTeste.csproj

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,42 @@
284284
<SubType>Designer</SubType>
285285
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
286286
</None>
287+
<None Include="Schemas\e211110_v1.00.xsd">
288+
<SubType>Designer</SubType>
289+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
290+
</None>
287291
<None Include="Schemas\e211120_v1.00.xsd">
288292
<SubType>Designer</SubType>
289293
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
290294
</None>
295+
<None Include="Schemas\e211124_v1.00.xsd">
296+
<SubType>Designer</SubType>
297+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
298+
</None>
299+
<None Include="Schemas\e211128_v1.00.xsd">
300+
<SubType>Designer</SubType>
301+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
302+
</None>
303+
<None Include="Schemas\e211130_v1.00.xsd">
304+
<SubType>Designer</SubType>
305+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
306+
</None>
307+
<None Include="Schemas\e211140_v1.00.xsd">
308+
<SubType>Designer</SubType>
309+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
310+
</None>
311+
<None Include="Schemas\e211150_v1.00.xsd">
312+
<SubType>Designer</SubType>
313+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
314+
</None>
315+
<None Include="Schemas\e212110_v1.00.xsd">
316+
<SubType>Designer</SubType>
317+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
318+
</None>
319+
<None Include="Schemas\e212120_v1.00.xsd">
320+
<SubType>Designer</SubType>
321+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
322+
</None>
291323
<None Include="Schemas\e411500_v1.00.xsd">
292324
<SubType>Designer</SubType>
293325
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -304,6 +336,14 @@
304336
<SubType>Designer</SubType>
305337
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
306338
</None>
339+
<None Include="Schemas\e412120_v1.00.xsd">
340+
<SubType>Designer</SubType>
341+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
342+
</None>
343+
<None Include="Schemas\e412130_v1.00.xsd">
344+
<SubType>Designer</SubType>
345+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
346+
</None>
307347
<None Include="Schemas\e790700_v1.00.xsd">
308348
<SubType>Designer</SubType>
309349
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-software@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>Informações do Evento de Solicitação de Apropriação de crédito presumido</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do Evento de Solicitação de Apropriação de crédito presumido</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:enumeration value="Solicitação de Apropriação de crédito presumido"/>
18+
</xs:restriction>
19+
</xs:simpleType>
20+
</xs:element>
21+
<xs:element name="cOrgaoAutor" type="TCodUfIBGE">
22+
<xs:annotation>
23+
<xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation>
24+
</xs:annotation>
25+
</xs:element>
26+
<xs:element name="tpAutor">
27+
<xs:annotation>
28+
<xs:documentation>Informar 2=Empresa destinatario
29+
Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos;
30+
</xs:documentation>
31+
</xs:annotation>
32+
<xs:simpleType>
33+
<xs:restriction base="xs:string">
34+
<xs:enumeration value="2"/>
35+
</xs:restriction>
36+
</xs:simpleType>
37+
</xs:element>
38+
<xs:element name="verAplic" type="TVerAplic">
39+
<xs:annotation>
40+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
<xs:element name="gCredPres" maxOccurs="990">
44+
<xs:annotation>
45+
<xs:documentation>Informações de crédito presumido por item</xs:documentation>
46+
</xs:annotation>
47+
<xs:complexType>
48+
<xs:sequence>
49+
<xs:element name="vBC" type="TDec_1302">
50+
<xs:annotation>
51+
<xs:documentation>Valor do base de cálculo do item</xs:documentation>
52+
</xs:annotation>
53+
</xs:element>
54+
<xs:element name="gIBS" minOccurs="0">
55+
<xs:complexType>
56+
<xs:sequence>
57+
<xs:element name="cCredPres">
58+
<xs:annotation>
59+
<xs:documentation>Usar tabela Cred Presumido, para o emitente da nota.</xs:documentation>
60+
</xs:annotation>
61+
<xs:simpleType>
62+
<xs:restriction base="xs:string">
63+
<xs:whiteSpace value="preserve"/>
64+
<xs:pattern value="[0-9]{2}"/>
65+
</xs:restriction>
66+
</xs:simpleType>
67+
</xs:element>
68+
<xs:element name="pCredPres" type="TDec_0302_04">
69+
<xs:annotation>
70+
<xs:documentation>Percentual do Crédito Presumido</xs:documentation>
71+
</xs:annotation>
72+
</xs:element>
73+
<xs:element name="vCredPres" type="TDec1302">
74+
<xs:annotation>
75+
<xs:documentation>Valor do Crédito Presumido</xs:documentation>
76+
</xs:annotation>
77+
</xs:element>
78+
</xs:sequence>
79+
</xs:complexType>
80+
</xs:element>
81+
<xs:element name="gCBS" minOccurs="0">
82+
<xs:complexType>
83+
<xs:sequence>
84+
<xs:element name="cCredPres">
85+
<xs:annotation>
86+
<xs:documentation>Usar tabela Cred Presumido, para o emitente da nota.</xs:documentation>
87+
</xs:annotation>
88+
<xs:simpleType>
89+
<xs:restriction base="xs:string">
90+
<xs:whiteSpace value="preserve"/>
91+
<xs:pattern value="[0-9]{2}"/>
92+
</xs:restriction>
93+
</xs:simpleType>
94+
</xs:element>
95+
<xs:element name="pCredPres" type="TDec_0302_04">
96+
<xs:annotation>
97+
<xs:documentation>Percentual do Crédito Presumido</xs:documentation>
98+
</xs:annotation>
99+
</xs:element>
100+
<xs:element name="vCredPres" type="TDec1302">
101+
<xs:annotation>
102+
<xs:documentation>Valor do Crédito Presumido</xs:documentation>
103+
</xs:annotation>
104+
</xs:element>
105+
</xs:sequence>
106+
</xs:complexType>
107+
</xs:element>
108+
</xs:sequence>
109+
<xs:attribute name="nItem" type="TnItem" use="required">
110+
<xs:annotation>
111+
<xs:documentation>Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação </xs:documentation>
112+
</xs:annotation>
113+
</xs:attribute>
114+
</xs:complexType>
115+
</xs:element>
116+
</xs:sequence>
117+
<xs:attribute name="versao">
118+
<xs:annotation>
119+
<xs:documentation>Versão do evento de Irregularidade Fiscal</xs:documentation>
120+
</xs:annotation>
121+
<xs:simpleType>
122+
<xs:restriction base="xs:string">
123+
<xs:whiteSpace value="preserve"/>
124+
<xs:enumeration value="1.00"/>
125+
</xs:restriction>
126+
</xs:simpleType>
127+
</xs:attribute>
128+
</xs:complexType>
129+
<xs:unique name="pk_nItem">
130+
<xs:selector xpath="./*"/>
131+
<xs:field xpath="@nItem"/>
132+
</xs:unique>
133+
</xs:element>
134+
</xs:schema>
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-software@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>Informações do Evento de Perecimento, perda, roubo ou furto durante o transporte contratado pelo adquirente</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do evento: “Perecimento, perda, roubo ou furto durante o transporte contratado pelo adquirente"</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:enumeration value="Perecimento, perda, roubo ou furto durante o transporte contratado pelo adquirente"/>
18+
</xs:restriction>
19+
</xs:simpleType>
20+
</xs:element>
21+
<xs:element name="cOrgaoAutor" type="TCodUfIBGE">
22+
<xs:annotation>
23+
<xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation>
24+
</xs:annotation>
25+
</xs:element>
26+
<xs:element name="tpAutor">
27+
<xs:annotation>
28+
<xs:documentation>Informar 2=Empresa destinataria
29+
Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos;
30+
</xs:documentation>
31+
</xs:annotation>
32+
<xs:simpleType>
33+
<xs:restriction base="xs:string">
34+
<xs:enumeration value="2"/>
35+
</xs:restriction>
36+
</xs:simpleType>
37+
</xs:element>
38+
<xs:element name="verAplic" type="TVerAplic">
39+
<xs:annotation>
40+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
<xs:element name="gPerecimento" maxOccurs="990">
44+
<xs:annotation>
45+
<xs:documentation>Informações por item da Nota de Aquisição</xs:documentation>
46+
</xs:annotation>
47+
<xs:complexType>
48+
<xs:sequence>
49+
<xs:element name="vIBS" type="TDec_1302">
50+
<xs:annotation>
51+
<xs:documentation>Valor do IBS na nota de aquisição correspondente à quantidade destinada a uso e consumo pessoal</xs:documentation>
52+
</xs:annotation>
53+
</xs:element>
54+
<xs:element name="vCBS" type="TDec_1302">
55+
<xs:annotation>
56+
<xs:documentation>Valor da CBS na nota de aquisição correspondente à quantidade destinada a uso e consumo pessoal</xs:documentation>
57+
</xs:annotation>
58+
</xs:element>
59+
<xs:element name="gControleEstoque">
60+
<xs:complexType>
61+
<xs:sequence>
62+
<xs:element name="qPerecimento" type="TDec_1104">
63+
<xs:annotation>
64+
<xs:documentation>Informar a quantidade que foi objeto de roubo, perda, furto ou perecimento</xs:documentation>
65+
</xs:annotation>
66+
</xs:element>
67+
<xs:element name="uPerecimento">
68+
<xs:annotation>
69+
<xs:documentation>Informar a unidade relativa ao campo qPerecimento</xs:documentation>
70+
</xs:annotation>
71+
<xs:simpleType>
72+
<xs:restriction base="TString">
73+
<xs:maxLength value="6"/>
74+
<xs:minLength value="1"/>
75+
</xs:restriction>
76+
</xs:simpleType>
77+
</xs:element>
78+
</xs:sequence>
79+
</xs:complexType>
80+
</xs:element>
81+
</xs:sequence>
82+
<xs:attribute name="nItem" type="TnItem" use="required">
83+
<xs:annotation>
84+
<xs:documentation>Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação </xs:documentation>
85+
</xs:annotation>
86+
</xs:attribute>
87+
</xs:complexType>
88+
</xs:element>
89+
</xs:sequence>
90+
<xs:attribute name="versao">
91+
<xs:annotation>
92+
<xs:documentation>Versão do leiaute do evento</xs:documentation>
93+
</xs:annotation>
94+
<xs:simpleType>
95+
<xs:restriction base="xs:string">
96+
<xs:whiteSpace value="preserve"/>
97+
<xs:enumeration value="1.00"/>
98+
</xs:restriction>
99+
</xs:simpleType>
100+
</xs:attribute>
101+
</xs:complexType>
102+
<xs:unique name="pk_nItem">
103+
<xs:selector xpath="./*"/>
104+
<xs:field xpath="@nItem"/>
105+
</xs:unique>
106+
</xs:element>
107+
</xs:schema>
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-software@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>Informações do Evento de Aceite de débito na apuração por emissão de nota de crédito</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do evento: "Aceite de débito na apuração por emissão de nota de crédito"</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:enumeration value="Aceite de débito na apuração por emissão de nota de crédito"/>
18+
</xs:restriction>
19+
</xs:simpleType>
20+
</xs:element>
21+
<xs:element name="cOrgaoAutor" type="TCodUfIBGE">
22+
<xs:annotation>
23+
<xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation>
24+
</xs:annotation>
25+
</xs:element>
26+
<xs:element name="tpAutor">
27+
<xs:annotation>
28+
<xs:documentation>Informar 2=Empresa destinataria
29+
Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos;
30+
</xs:documentation>
31+
</xs:annotation>
32+
<xs:simpleType>
33+
<xs:restriction base="xs:string">
34+
<xs:enumeration value="2"/>
35+
</xs:restriction>
36+
</xs:simpleType>
37+
</xs:element>
38+
<xs:element name="verAplic" type="TVerAplic">
39+
<xs:annotation>
40+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
<xs:element name="indAceitacao">
44+
<xs:annotation>
45+
<xs:documentation>Indicador de concordância com o valor da nota de crédito que lançaram IBS e CBS na apuração assistida. Valores: 0 = não aceite; 1 = aceite.
46+
</xs:documentation>
47+
</xs:annotation>
48+
<xs:simpleType>
49+
<xs:restriction base="xs:string">
50+
<xs:enumeration value="0"/>
51+
<xs:enumeration value="1"/>
52+
</xs:restriction>
53+
</xs:simpleType>
54+
</xs:element>
55+
</xs:sequence>
56+
<xs:attribute name="versao">
57+
<xs:annotation>
58+
<xs:documentation>Versão do leiaute do evento</xs:documentation>
59+
</xs:annotation>
60+
<xs:simpleType>
61+
<xs:restriction base="xs:string">
62+
<xs:whiteSpace value="preserve"/>
63+
<xs:enumeration value="1.00"/>
64+
</xs:restriction>
65+
</xs:simpleType>
66+
</xs:attribute>
67+
</xs:complexType>
68+
</xs:element>
69+
</xs:schema>

0 commit comments

Comments
 (0)