Skip to content

Commit c96ce2b

Browse files
committed
Adiciona schemas do CT-e
1 parent bc69a36 commit c96ce2b

File tree

169 files changed

+33700
-0
lines changed

Some content is hidden

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

169 files changed

+33700
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<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/cte" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="cteTiposBasico_v3.00.xsd"/>
5+
<xs:element name="GTVe" type="TGTVe">
6+
<xs:annotation>
7+
<xs:documentation>Guia de Trasnsporte Eletrônica</xs:documentation>
8+
</xs:annotation>
9+
</xs:element>
10+
</xs:schema>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<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/cte" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="cteTiposBasico_v4.00.xsd"/>
5+
<xs:element name="GTVe" type="TGTVe">
6+
<xs:annotation>
7+
<xs:documentation>Guia de Trasnsporte Eletrônica</xs:documentation>
8+
</xs:annotation>
9+
</xs:element>
10+
</xs:schema>
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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/cte" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
4+
<xs:include schemaLocation="tiposGeralCTe_v2.00.xsd"/>
5+
<xs:complexType name="TCancCTe">
6+
<xs:annotation>
7+
<xs:documentation>Tipo Pedido de Cancelamento de CT-e</xs:documentation>
8+
</xs:annotation>
9+
<xs:sequence>
10+
<xs:element name="infCanc">
11+
<xs:annotation>
12+
<xs:documentation>Dados do Pedido de Cancelamentode Conhecimento de Transporte Eletrônico</xs:documentation>
13+
</xs:annotation>
14+
<xs:complexType>
15+
<xs:sequence>
16+
<xs:element name="tpAmb" type="TAmb">
17+
<xs:annotation>
18+
<xs:documentation>Identificação do Ambiente:
19+
1 - Produção
20+
2 - Homologação</xs:documentation>
21+
</xs:annotation>
22+
</xs:element>
23+
<xs:element name="xServ" type="TServ" fixed="CANCELAR">
24+
<xs:annotation>
25+
<xs:documentation>Serviço Solicitado</xs:documentation>
26+
</xs:annotation>
27+
</xs:element>
28+
<xs:element name="chCTe" type="TChNFe">
29+
<xs:annotation>
30+
<xs:documentation>Chaves de acesso compostas por Código da UF + AAMM da emissão + CNPJ do Emitente + Modelo, Série e Número do CT-e+ Código Numérico + DV.</xs:documentation>
31+
</xs:annotation>
32+
</xs:element>
33+
<xs:element name="nProt" type="TProt">
34+
<xs:annotation>
35+
<xs:documentation>Número do Protocolo de Status do CT-e. 1 posição tipo de autorizador (1 – Secretaria de Fazenda Estadual 2 – Receita Federal - SCAN, 3 - SEFAZ Virtual RFB ); 2 posições ano; 10 seqüencial no ano.</xs:documentation>
36+
</xs:annotation>
37+
</xs:element>
38+
<xs:element name="xJust" type="TJust">
39+
<xs:annotation>
40+
<xs:documentation>Justificativa do cancelamento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
</xs:sequence>
44+
<xs:attribute name="Id" use="required">
45+
<xs:simpleType>
46+
<xs:restriction base="xs:ID">
47+
<xs:pattern value="ID[0-9]{44}"/>
48+
</xs:restriction>
49+
</xs:simpleType>
50+
</xs:attribute>
51+
</xs:complexType>
52+
</xs:element>
53+
<xs:element ref="ds:Signature"/>
54+
</xs:sequence>
55+
<xs:attribute name="versao" type="TVerCancCTe" use="required"/>
56+
</xs:complexType>
57+
<xs:complexType name="TRetCancCTe">
58+
<xs:annotation>
59+
<xs:documentation>Tipo retorno Pedido de Cancelamento CT-e</xs:documentation>
60+
</xs:annotation>
61+
<xs:sequence>
62+
<xs:element name="infCanc">
63+
<xs:annotation>
64+
<xs:documentation>Dados do Resultado do Pedido de Cancelamento do Conhecimento de Transporte Eletrônico</xs:documentation>
65+
</xs:annotation>
66+
<xs:complexType>
67+
<xs:sequence>
68+
<xs:element name="tpAmb" type="TAmb">
69+
<xs:annotation>
70+
<xs:documentation>Identificação do Ambiente:
71+
1 - Produção
72+
2 - Homologação</xs:documentation>
73+
</xs:annotation>
74+
</xs:element>
75+
<xs:element name="cUF" type="TCodUfIBGE">
76+
<xs:annotation>
77+
<xs:documentation>Identificação da UF</xs:documentation>
78+
</xs:annotation>
79+
</xs:element>
80+
<xs:element name="verAplic" type="TVerAplic">
81+
<xs:annotation>
82+
<xs:documentation>Versão do Aplicativo que processou o pedido de cancelamento</xs:documentation>
83+
</xs:annotation>
84+
</xs:element>
85+
<xs:element name="cStat" type="TStat">
86+
<xs:annotation>
87+
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
88+
</xs:annotation>
89+
</xs:element>
90+
<xs:element name="xMotivo" type="TMotivo">
91+
<xs:annotation>
92+
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
93+
</xs:annotation>
94+
</xs:element>
95+
<xs:element name="chCTe" type="TChNFe" minOccurs="0">
96+
<xs:annotation>
97+
<xs:documentation>Chaves de acesso do CT-e, compostas por: UF do emitente, AAMM da emissão do CT-e, CNPJ do emitente, modelo, série e número do CT-e e código numérico + DV.</xs:documentation>
98+
</xs:annotation>
99+
</xs:element>
100+
<xs:element name="dhRecbto" type="xs:dateTime" minOccurs="0">
101+
<xs:annotation>
102+
<xs:documentation>Data e hora de recebimento, no formato AAAA-MM-DDTHH:MM:SS. Deve ser preenchida com data e hora da gravação no Banco em caso de Confirmação.</xs:documentation>
103+
</xs:annotation>
104+
</xs:element>
105+
<xs:element name="nProt" type="TProt" minOccurs="0">
106+
<xs:annotation>
107+
<xs:documentation>Número do Protocolo de homologação do cancelamento: 1 posição tipo de autorizador (1 – Secretaria de Fazenda Estadual, 3 - SEFAZ Virtual RS, 5 - SEFAZ Virtual SP ); 2 posições ano; 10 seqüencial no ano.</xs:documentation>
108+
</xs:annotation>
109+
</xs:element>
110+
</xs:sequence>
111+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
112+
</xs:complexType>
113+
</xs:element>
114+
<xs:element ref="ds:Signature" minOccurs="0"/>
115+
</xs:sequence>
116+
<xs:attribute name="versao" type="TVerCancCTe" use="required"/>
117+
</xs:complexType>
118+
<xs:complexType name="TProcCancCTe">
119+
<xs:annotation>
120+
<xs:documentation>Tipo Pedido de Cancelamento de CT-e processado</xs:documentation>
121+
</xs:annotation>
122+
<xs:sequence>
123+
<xs:element name="cancCTe" type="TCancCTe"/>
124+
<xs:element name="retCancCTe" type="TRetCancCTe"/>
125+
</xs:sequence>
126+
<xs:attribute name="versao" type="TVerCancCTe" use="required"/>
127+
</xs:complexType>
128+
<xs:simpleType name="TVerCancCTe">
129+
<xs:annotation>
130+
<xs:documentation> Tipo Versão de cancela CT-e - 1.04</xs:documentation>
131+
</xs:annotation>
132+
<xs:restriction base="xs:string">
133+
<xs:pattern value="1\.04"/>
134+
</xs:restriction>
135+
</xs:simpleType>
136+
</xs:schema>
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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/cte" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
4+
<xs:include schemaLocation="tiposGeralCTe_v3.00.xsd"/>
5+
<xs:complexType name="TCancCTe">
6+
<xs:annotation>
7+
<xs:documentation>Tipo Pedido de Cancelamento de CT-e</xs:documentation>
8+
</xs:annotation>
9+
<xs:sequence>
10+
<xs:element name="infCanc">
11+
<xs:annotation>
12+
<xs:documentation>Dados do Pedido de Cancelamentode Conhecimento de Transporte Eletrônico</xs:documentation>
13+
</xs:annotation>
14+
<xs:complexType>
15+
<xs:sequence>
16+
<xs:element name="tpAmb" type="TAmb">
17+
<xs:annotation>
18+
<xs:documentation>Identificação do Ambiente:
19+
1 - Produção
20+
2 - Homologação</xs:documentation>
21+
</xs:annotation>
22+
</xs:element>
23+
<xs:element name="xServ" type="TServ" fixed="CANCELAR">
24+
<xs:annotation>
25+
<xs:documentation>Serviço Solicitado</xs:documentation>
26+
</xs:annotation>
27+
</xs:element>
28+
<xs:element name="chCTe" type="TChNFe">
29+
<xs:annotation>
30+
<xs:documentation>Chaves de acesso compostas por Código da UF + AAMM da emissão + CNPJ do Emitente + Modelo, Série e Número do CT-e+ Código Numérico + DV.</xs:documentation>
31+
</xs:annotation>
32+
</xs:element>
33+
<xs:element name="nProt" type="TProt">
34+
<xs:annotation>
35+
<xs:documentation>Número do Protocolo de Status do CT-e. 1 posição tipo de autorizador (1 – Secretaria de Fazenda Estadual 2 – Receita Federal - SCAN, 3 - SEFAZ Virtual RFB ); 2 posições ano; 10 seqüencial no ano.</xs:documentation>
36+
</xs:annotation>
37+
</xs:element>
38+
<xs:element name="xJust" type="TJust">
39+
<xs:annotation>
40+
<xs:documentation>Justificativa do cancelamento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
</xs:sequence>
44+
<xs:attribute name="Id" use="required">
45+
<xs:simpleType>
46+
<xs:restriction base="xs:ID">
47+
<xs:pattern value="ID[0-9]{44}"/>
48+
</xs:restriction>
49+
</xs:simpleType>
50+
</xs:attribute>
51+
</xs:complexType>
52+
</xs:element>
53+
<xs:element ref="ds:Signature"/>
54+
</xs:sequence>
55+
<xs:attribute name="versao" type="TVerCancCTe" use="required"/>
56+
</xs:complexType>
57+
<xs:complexType name="TRetCancCTe">
58+
<xs:annotation>
59+
<xs:documentation>Tipo retorno Pedido de Cancelamento CT-e</xs:documentation>
60+
</xs:annotation>
61+
<xs:sequence>
62+
<xs:element name="infCanc">
63+
<xs:annotation>
64+
<xs:documentation>Dados do Resultado do Pedido de Cancelamento do Conhecimento de Transporte Eletrônico</xs:documentation>
65+
</xs:annotation>
66+
<xs:complexType>
67+
<xs:sequence>
68+
<xs:element name="tpAmb" type="TAmb">
69+
<xs:annotation>
70+
<xs:documentation>Identificação do Ambiente:
71+
1 - Produção
72+
2 - Homologação</xs:documentation>
73+
</xs:annotation>
74+
</xs:element>
75+
<xs:element name="cUF" type="TCodUfIBGE">
76+
<xs:annotation>
77+
<xs:documentation>Identificação da UF</xs:documentation>
78+
</xs:annotation>
79+
</xs:element>
80+
<xs:element name="verAplic" type="TVerAplic">
81+
<xs:annotation>
82+
<xs:documentation>Versão do Aplicativo que processou o pedido de cancelamento</xs:documentation>
83+
</xs:annotation>
84+
</xs:element>
85+
<xs:element name="cStat" type="TStat">
86+
<xs:annotation>
87+
<xs:documentation>Código do status da mensagem enviada.</xs:documentation>
88+
</xs:annotation>
89+
</xs:element>
90+
<xs:element name="xMotivo" type="TMotivo">
91+
<xs:annotation>
92+
<xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
93+
</xs:annotation>
94+
</xs:element>
95+
<xs:element name="chCTe" type="TChNFe" minOccurs="0">
96+
<xs:annotation>
97+
<xs:documentation>Chaves de acesso do CT-e, compostas por: UF do emitente, AAMM da emissão do CT-e, CNPJ do emitente, modelo, série e número do CT-e e código numérico + DV.</xs:documentation>
98+
</xs:annotation>
99+
</xs:element>
100+
<xs:element name="dhRecbto" type="xs:dateTime" minOccurs="0">
101+
<xs:annotation>
102+
<xs:documentation>Data e hora de recebimento, no formato AAAA-MM-DDTHH:MM:SS. Deve ser preenchida com data e hora da gravação no Banco em caso de Confirmação.</xs:documentation>
103+
</xs:annotation>
104+
</xs:element>
105+
<xs:element name="nProt" type="TProt" minOccurs="0">
106+
<xs:annotation>
107+
<xs:documentation>Número do Protocolo de homologação do cancelamento: 1 posição tipo de autorizador (1 – Secretaria de Fazenda Estadual, 3 - SEFAZ Virtual RS, 5 - SEFAZ Virtual SP ); 2 posições ano; 10 seqüencial no ano.</xs:documentation>
108+
</xs:annotation>
109+
</xs:element>
110+
</xs:sequence>
111+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
112+
</xs:complexType>
113+
</xs:element>
114+
<xs:element ref="ds:Signature" minOccurs="0"/>
115+
</xs:sequence>
116+
<xs:attribute name="versao" type="TVerCancCTe" use="required"/>
117+
</xs:complexType>
118+
<xs:complexType name="TProcCancCTe">
119+
<xs:annotation>
120+
<xs:documentation>Tipo Pedido de Cancelamento de CT-e processado</xs:documentation>
121+
</xs:annotation>
122+
<xs:sequence>
123+
<xs:element name="cancCTe" type="TCancCTe"/>
124+
<xs:element name="retCancCTe" type="TRetCancCTe"/>
125+
</xs:sequence>
126+
<xs:attribute name="versao" type="TVerCancCTe" use="required"/>
127+
</xs:complexType>
128+
<xs:simpleType name="TVerCancCTe">
129+
<xs:annotation>
130+
<xs:documentation> Tipo Versão de cancela CT-e</xs:documentation>
131+
</xs:annotation>
132+
<xs:restriction base="xs:string">
133+
<xs:pattern value="1\.04"/>
134+
</xs:restriction>
135+
</xs:simpleType>
136+
</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: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="leiauteConsultaCadastro_v2.00.xsd"/>
4+
<xs:element name="ConsCad" type="TConsCad">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação do retorno da consulta cadastro contribuintes</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:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/cte" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteLoteRFBCTe_v3.00.xsd"/>
4+
<xs:element name="consNSUFaltCTe" type="TConsNUFaltDFe">
5+
<xs:annotation>
6+
<xs:documentation>Schema XML de validação da área de dados da mensagem da consulta NSU Faltantes</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:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/cte" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
3+
<xs:include schemaLocation="leiauteLoteRFBCTe_v3.00.xsd"/>
4+
<xs:element name="consProtFaltCTe" type="TConsProtFalDFe">
5+
<xs:annotation>
6+
<xs:documentation>Pedido de consulta de Protocolos Faltantes de CT-e</xs:documentation>
7+
</xs:annotation>
8+
</xs:element>
9+
</xs:schema>

0 commit comments

Comments
 (0)