-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathevGTV_v3.00.xsd
More file actions
255 lines (255 loc) · 10.1 KB
/
evGTV_v3.00.xsd
File metadata and controls
255 lines (255 loc) · 10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<?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/cte" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="eventoCTeTiposBasico_v3.00.xsd"/>
<xs:element name="evGTV">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento informações da GTV 110170</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="descEvento">
<xs:annotation>
<xs:documentation>Descrição do Evento - “Informações da GTV”</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="Informações da GTV"/>
<xs:enumeration value="Informacoes da GTV"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="infGTV" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Grupo de Informações das GTV</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="nDoc">
<xs:annotation>
<xs:documentation>Número da GTV</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="id">
<xs:annotation>
<xs:documentation>Identificador para diferenciar GTV de mesmo número (Usar número do AIDF ou identificador interno da empresa),</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="serie" minOccurs="0">
<xs:annotation>
<xs:documentation>Série</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="subserie" minOccurs="0">
<xs:annotation>
<xs:documentation>Subsérie</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dEmi" type="TData">
<xs:annotation>
<xs:documentation>Data de Emissão</xs:documentation>
<xs:documentation>Formato AAAA-MM-DD</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nDV">
<xs:annotation>
<xs:documentation>Número Dígito Verificador </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="qCarga" type="TDec_1104">
<xs:annotation>
<xs:documentation>Quantidade de volumes/malotes</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="infEspecie" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Informações das Espécies transportadas</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="tpEspecie">
<xs:annotation>
<xs:documentation>Tipo da Espécie</xs:documentation>
<xs:documentation>1 - Numerário
2 - Cheque
3 - Moeda
4 - Outros</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
<xs:enumeration value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="vEspecie" type="TDec_1302" minOccurs="0">
<xs:annotation>
<xs:documentation>Valor Transportada em Espécie indicada</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="rem">
<xs:annotation>
<xs:documentation>Informações do Remetente da GTV</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element name="CNPJ" type="TCnpjOpc">
<xs:annotation>
<xs:documentation>Número do CNPJ</xs:documentation>
<xs:documentation>Em caso de empresa não estabelecida no Brasil, será informado o CNPJ com zeros.
Informar os zeros não significativos.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CPF" type="TCpf">
<xs:annotation>
<xs:documentation>Número do CPF</xs:documentation>
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="IE" minOccurs="0">
<xs:annotation>
<xs:documentation>Inscrição Estadual</xs:documentation>
<xs:documentation>Informar a IE do remetente ou ISENTO se remetente é contribuinte do ICMS isento de inscrição no cadastro de contribuintes do ICMS. Caso o remetente não seja contribuinte do ICMS não informar o conteúdo.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TIeDest"/>
</xs:simpleType>
</xs:element>
<xs:element name="UF" type="TUf">
<xs:annotation>
<xs:documentation>Sigla da UF</xs:documentation>
<xs:documentation>Informar EX para operações com o exterior.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xNome">
<xs:annotation>
<xs:documentation>Razão social ou nome do remetente</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:maxLength value="60"/>
<xs:minLength value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="dest">
<xs:annotation>
<xs:documentation>Informações do Destinatário da GTV</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element name="CNPJ" type="TCnpjOpc">
<xs:annotation>
<xs:documentation>Número do CNPJ</xs:documentation>
<xs:documentation>Em caso de empresa não estabelecida no Brasil, será informado o CNPJ com zeros.
Informar os zeros não significativos.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CPF" type="TCpf">
<xs:annotation>
<xs:documentation>Número do CPF</xs:documentation>
<xs:documentation>Informar os zeros não significativos.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="IE" minOccurs="0">
<xs:annotation>
<xs:documentation>Inscrição Estadual</xs:documentation>
<xs:documentation>Informar a IE do destinatário ou ISENTO se remetente é contribuinte do ICMS isento de inscrição no cadastro de contribuintes do ICMS. Caso o remetente não seja contribuinte do ICMS não informar o conteúdo.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TIeDest"/>
</xs:simpleType>
</xs:element>
<xs:element name="UF" type="TUf">
<xs:annotation>
<xs:documentation>Sigla da UF</xs:documentation>
<xs:documentation>Informar EX para operações com o exterior.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xNome">
<xs:annotation>
<xs:documentation>Razão social ou nome do destinatário</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:maxLength value="60"/>
<xs:minLength value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="placa" type="TPlaca" minOccurs="0">
<xs:annotation>
<xs:documentation>Placa do veículo </xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="UF" type="TUf" minOccurs="0">
<xs:annotation>
<xs:documentation>UF em que veículo está licenciado</xs:documentation>
<xs:documentation>Sigla da UF de licenciamento do veículo.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RNTRC" minOccurs="0">
<xs:annotation>
<xs:documentation>RNTRC do transportador</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="[0-9]{8}|ISENTO"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>