Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
200 espaco 1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--  13-05-2011 - correcao do pattern da data para aceitar -4:00 -->
3
<!--  03-03-2011 - alteracoes na enumeracao das versoes e no detalhamento do evento -->
4
<!--  PL_006eventos versao alterada para consultar eventos 30/08/2010 -->
5
<!--  PL_006f versao com correcoes no xServ para tornar a literal CONSULTAR obrigatoria 21/05/2010 -->
6
<!--  PL_006c versao com correcoes 24/12/2009 -->
7
<!--  PL_009  versão 4.00 NT2018.005 v1.00-->
8
<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">
9
        <xs:include schemaLocation="tiposBasico_v4.00.xsd"/>
10
        <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
11
        <xs:complexType name="TConsSitNFe">
12
                <xs:annotation>
13
                        <xs:documentation>Tipo Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica</xs:documentation>
14
                </xs:annotation>
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">
24
                                <xs:annotation>
25
                                        <xs:documentation>Serviço Solicitado</xs:documentation>
26
                                </xs:annotation>
27
                                <xs:simpleType>
28
                                        <xs:restriction base="TServ">
29
                                                <xs:enumeration value="CONSULTAR"/>
30
                                        </xs:restriction>
31
                                </xs:simpleType>
32
                        </xs:element>
33
                        <xs:element name="chNFe" type="TChNFe">
34
                                <xs:annotation>
35
                                        <xs:documentation>Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico + DV.</xs:documentation>
36
                                </xs:annotation>
37
                        </xs:element>
38
                </xs:sequence>
39
                <xs:attribute name="versao" type="TVerConsSitNFe" use="required"/>
40
        </xs:complexType>
41
        <xs:complexType name="TRetConsSitNFe">
42
                <xs:annotation>
43
                        <xs:documentation>Tipo Retorno de Pedido de Consulta da Situação Atual da Nota Fiscal Eletrônica </xs:documentation>
44
                </xs:annotation>
45
                <xs:sequence>
46
                        <xs:element name="tpAmb" type="TAmb">
47
                                <xs:annotation>
48
                                        <xs:documentation>Identificação do Ambiente:
49
1 - Produção
50
2 - Homologação</xs:documentation>
51
                                </xs:annotation>
52
                        </xs:element>
53
                        <xs:element name="verAplic" type="TVerAplic">
54
                                <xs:annotation>
55
                                        <xs:documentation>Versão do Aplicativo que processou a NF-e</xs:documentation>
56
                                </xs:annotation>
57
                        </xs:element>
58
                        <xs:element name="cStat" type="TStat">
59
                                <xs:annotation>
60
                                        <xs:documentation>Código do status da mensagem enviada.</xs:documentation>
61
                                </xs:annotation>
62
                        </xs:element>
63
                        <xs:element name="xMotivo" type="TMotivo">
64
                                <xs:annotation>
65
                                        <xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
66
                                </xs:annotation>
67
                        </xs:element>
68
                        <xs:element name="cUF" type="TCodUfIBGE">
69
                                <xs:annotation>
70
                                        <xs:documentation>código da UF de atendimento</xs:documentation>
71
                                </xs:annotation>
72
                        </xs:element>
73
                        <xs:element name="dhRecbto" type="TDateTimeUTC">
74
                                <xs:annotation>
75
                                        <xs:documentation>AAAA-MM-DDTHH:MM:SSTZD</xs:documentation>
76
                                </xs:annotation>
77
                        </xs:element>
78
                        <xs:element name="chNFe" type="TChNFe">
79
                                <xs:annotation>
80
                                        <xs:documentation>Chaves de acesso da NF-e consultada</xs:documentation>
81
                                </xs:annotation>
82
                        </xs:element>
83
                        <xs:element name="protNFe" type="TProtNFe" minOccurs="0">
84
                                <xs:annotation>
85
                                        <xs:documentation>Protocolo de autorização de uso da NF-e</xs:documentation>
86
                                </xs:annotation>
87
                        </xs:element>
88
                        <xs:element name="retCancNFe" type="TRetCancNFe" minOccurs="0">
89
                                <xs:annotation>
90
                                        <xs:documentation>Protocolo de homologação de cancelamento de uso da NF-e</xs:documentation>
91
                                </xs:annotation>
92
                        </xs:element>
93
                        <xs:element name="procEventoNFe" type="TProcEvento" minOccurs="0" maxOccurs="unbounded">
94
                                <xs:annotation>
95
                                        <xs:documentation>Protocolo de registro de evento da NF-e</xs:documentation>
96
                                </xs:annotation>
97
                        </xs:element>
98
                </xs:sequence>
99
                <xs:attribute name="versao" type="TVerConsSitNFe" use="required"/>
100
        </xs:complexType>
101
        <xs:complexType name="TProtNFe">
102
                <xs:annotation>
103
                        <xs:documentation>Tipo Protocolo de status resultado do processamento da NF-e</xs:documentation>
104
                </xs:annotation>
105
                <xs:sequence>
106
                        <xs:element name="infProt">
107
                                <xs:annotation>
108
                                        <xs:documentation>Dados do protocolo de status</xs:documentation>
109
                                </xs:annotation>
110
                                <xs:complexType>
111
                                        <xs:sequence>
112
                                                <xs:element name="tpAmb" type="TAmb">
113
                                                        <xs:annotation>
114
                                                                <xs:documentation>Identificação do Ambiente:
115
1 - Produção
116
2 - Homologação</xs:documentation>
117
                                                        </xs:annotation>
118
                                                </xs:element>
119
                                                <xs:element name="verAplic" type="TVerAplic">
120
                                                        <xs:annotation>
121
                                                                <xs:documentation>Versão do Aplicativo que processou a NF-e</xs:documentation>
122
                                                        </xs:annotation>
123
                                                </xs:element>
124
                                                <xs:element name="chNFe" type="TChNFe">
125
                                                        <xs:annotation>
126
                                                                <xs:documentation>Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico+DV.</xs:documentation>
127
                                                        </xs:annotation>
128
                                                </xs:element>
129
                                                <xs:element name="dhRecbto" type="xs:dateTime">
130
                                                        <xs:annotation>
131
                                                                <xs:documentation>Data e hora de processamento, no formato AAAA-MM-DDTHH:MM:SS (ou AAAA-MM-DDTHH:MM:SSTZD, de acordo com versão). Deve ser preenchida com data e hora da gravação no Banco em caso de Confirmação. Em caso de Rejeição, com data e hora do recebimento do Lote de NF-e enviado.</xs:documentation>
132
                                                        </xs:annotation>
133
                                                </xs:element>
134
                                                <xs:element name="nProt" type="TProt" minOccurs="0">
135
                                                        <xs:annotation>
136
                                                                <xs:documentation>Número do Protocolo de Status da NF-e. 1 posição (1 – Secretaria de Fazenda Estadual 2 – Receita Federal); 2 - códiga da UF - 2 posições ano; 10 seqüencial no ano.</xs:documentation>
137
                                                        </xs:annotation>
138
                                                </xs:element>
139
                                                <xs:element name="digVal" type="ds:DigestValueType" minOccurs="0">
140
                                                        <xs:annotation>
141
                                                                <xs:documentation>Digest Value da NF-e processada. Utilizado para conferir a integridade da NF-e original.</xs:documentation>
142
                                                        </xs:annotation>
143
                                                </xs:element>
144
                                                <xs:element name="cStat" type="TStat">
145
                                                        <xs:annotation>
146
                                                                <xs:documentation>Código do status da mensagem enviada.</xs:documentation>
147
                                                        </xs:annotation>
148
                                                </xs:element>
149
                                                <xs:element name="xMotivo" type="TMotivo">
150
                                                        <xs:annotation>
151
                                                                <xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
152
                                                        </xs:annotation>
153
                                                </xs:element>
154
                                        </xs:sequence>
155
                                        <xs:attribute name="Id" type="xs:ID" use="optional"/>
156
                                </xs:complexType>
157
                        </xs:element>
158
                        <xs:element ref="ds:Signature" minOccurs="0"/>
159
                </xs:sequence>
160
                <xs:attribute name="versao" type="TVerNFe" use="required"/>
161
        </xs:complexType>
162
        <xs:complexType name="TRetCancNFe">
163
                <xs:annotation>
164
                        <xs:documentation>Tipo retorno Pedido de Cancelamento da Nota Fiscal Eletrônica</xs:documentation>
165
                </xs:annotation>
166
                <xs:sequence>
167
                        <xs:element name="infCanc">
168
                                <xs:annotation>
169
                                        <xs:documentation>Dados do Resultado do Pedido de Cancelamento da Nota Fiscal Eletrônica</xs:documentation>
170
                                </xs:annotation>
171
                                <xs:complexType>
172
                                        <xs:sequence>
173
                                                <xs:element name="tpAmb" type="TAmb">
174
                                                        <xs:annotation>
175
                                                                <xs:documentation>Identificação do Ambiente:
176
1 - Produção
177
2 - Homologação</xs:documentation>
178
                                                        </xs:annotation>
179
                                                </xs:element>
180
                                                <xs:element name="verAplic" type="TVerAplic">
181
                                                        <xs:annotation>
182
                                                                <xs:documentation>Versão do Aplicativo que processou o pedido de cancelamento</xs:documentation>
183
                                                        </xs:annotation>
184
                                                </xs:element>
185
                                                <xs:element name="cStat" type="TStat">
186
                                                        <xs:annotation>
187
                                                                <xs:documentation>Código do status da mensagem enviada.</xs:documentation>
188
                                                        </xs:annotation>
189
                                                </xs:element>
190
                                                <xs:element name="xMotivo" type="TMotivo">
191
                                                        <xs:annotation>
192
                                                                <xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation>
193
                                                        </xs:annotation>
194
                                                </xs:element>
195
                                                <xs:element name="cUF" type="TCodUfIBGE">
196
                                                        <xs:annotation>
197
                                                                <xs:documentation>código da UF de atendimento</xs:documentation>
198
                                                        </xs:annotation>
199
                                                </xs:element>
200
                                                <xs:element name="chNFe" type="TChNFe" minOccurs="0">
201
                                                        <xs:annotation>
202
                                                                <xs:documentation>Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão da NFe, CNPJ do emitente, modelo, série e número da NF-e e código numérico + DV.</xs:documentation>
203
                                                        </xs:annotation>
204
                                                </xs:element>
205
                                                <xs:element name="dhRecbto" type="xs:dateTime" minOccurs="0">
206
                                                        <xs:annotation>
207
                                                                <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>
208
                                                        </xs:annotation>
209
                                                </xs:element>
210
                                                <xs:element name="nProt" type="TProt" minOccurs="0">
211
                                                        <xs:annotation>
212
                                                                <xs:documentation>Número do Protocolo de Status da NF-e. 1 posição (1 – Secretaria de Fazenda Estadual 2 – Receita Federal); 2 - código da UF - 2 posições ano; 10 seqüencial no ano.</xs:documentation>
213
                                                        </xs:annotation>
214
                                                </xs:element>
215
                                        </xs:sequence>
216
                                        <xs:attribute name="Id" type="xs:ID" use="optional"/>
217
                                </xs:complexType>
218
                        </xs:element>
219
                        <xs:element ref="ds:Signature" minOccurs="0"/>
220
                </xs:sequence>
221
                <xs:attribute name="versao" type="TVerCancNFe" use="required"/>
222
        </xs:complexType>
223
        <xs:complexType name="TEvento">
224
                <xs:annotation>
225
                        <xs:documentation>Tipo Evento</xs:documentation>
226
                </xs:annotation>
227
                <xs:sequence>
228
                        <xs:element name="infEvento">
229
                                <xs:complexType>
230
                                        <xs:sequence>
231
                                                <xs:element name="cOrgao" type="TCOrgaoIBGE">
232
                                                        <xs:annotation>
233
                                                                <xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional</xs:documentation>
234
                                                        </xs:annotation>
235
                                                </xs:element>
236
                                                <xs:element name="tpAmb" type="TAmb">
237
                                                        <xs:annotation>
238
                                                                <xs:documentation>Identificação do Ambiente:
239
1 - Produção
240
2 - Homologação</xs:documentation>
241
                                                        </xs:annotation>
242
                                                </xs:element>
243
                                                <xs:choice>
244
                                                        <xs:annotation>
245
                                                                <xs:documentation>Identificação do  autor do evento</xs:documentation>
246
                                                        </xs:annotation>
247
                                                        <xs:element name="CNPJ" type="TCnpjOpc">
248
                                                                <xs:annotation>
249
                                                                        <xs:documentation>CNPJ</xs:documentation>
250
                                                                </xs:annotation>
251
                                                        </xs:element>
252
                                                        <xs:element name="CPF" type="TCpf">
253
                                                                <xs:annotation>
254
                                                                        <xs:documentation>CPF</xs:documentation>
255
                                                                </xs:annotation>
256
                                                        </xs:element>
257
                                                </xs:choice>
258
                                                <xs:element name="chNFe" type="TChNFe">
259
                                                        <xs:annotation>
260
                                                                <xs:documentation>Chave de Acesso da NF-e vinculada ao evento</xs:documentation>
261
                                                        </xs:annotation>
262
                                                </xs:element>
263
                                                <xs:element name="dhEvento" type="TDateTimeUTC">
264
                                                        <xs:annotation>
265
                                                                <xs:documentation>Data e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation>
266
                                                        </xs:annotation>
267
                                                </xs:element>
268
                                                <xs:element name="tpEvento">
269
                                                        <xs:annotation>
270
                                                                <xs:documentation>Tipo do Evento</xs:documentation>
271
                                                        </xs:annotation>
272
                                                        <xs:simpleType>
273
                                                                <xs:restriction base="xs:string">
274
                                                                        <xs:whiteSpace value="preserve"/>
275
                                                                        <xs:pattern value="[0-9]{6}"/>
276
                                                                </xs:restriction>
277
                                                        </xs:simpleType>
278
                                                </xs:element>
279
                                                <xs:element name="nSeqEvento">
280
                                                        <xs:annotation>
281
                                                                <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, como é o caso da carta de correção, o autor do evento deve numerar de forma seqüencial.</xs:documentation>
282
                                                        </xs:annotation>
283
                                                        <xs:simpleType>
284
                                                                <xs:restriction base="xs:string">
285
                                                                        <xs:whiteSpace value="preserve"/>
286
                                                                        <xs:pattern value="[1-9][0-9]{0,1}"/>
287
                                                                </xs:restriction>
288
                                                        </xs:simpleType>
289
                                                </xs:element>
290
                                                <xs:element name="verEvento">
291
                                                        <xs:annotation>
292
                                                                <xs:documentation>Versão do Tipo do Evento</xs:documentation>
293
                                                        </xs:annotation>
294
                                                        <xs:simpleType>
295
                                                                <xs:restriction base="xs:string">
296
                                                                        <xs:whiteSpace value="preserve"/>
297
                                                                </xs:restriction>
298
                                                        </xs:simpleType>
299
                                                </xs:element>
300
                                                <xs:element name="detEvento">
301
                                                        <xs:annotation>
302
                                                                <xs:documentation>Detalhe Específico do Evento</xs:documentation>
303
                                                        </xs:annotation>
304
                                                        <xs:complexType>
305
                                                                <xs:sequence>
306
                                                                        <xs:any processContents="skip" maxOccurs="unbounded"/>
307
                                                                </xs:sequence>
308
                                                                <xs:anyAttribute processContents="skip"/>
309
                                                        </xs:complexType>
310
                                                </xs:element>
311
                                        </xs:sequence>
312
                                        <xs:attribute name="Id" use="required">
313
                                                <xs:annotation>
314
                                                        <xs:documentation>Identificador da TAG a ser assinada, a regra de formação do Id é:
315
“ID” + tpEvento +  chave da NF-e + nSeqEvento</xs:documentation>
316
                                                </xs:annotation>
317
                                                <xs:simpleType>
318
                                                        <xs:restriction base="xs:ID">
319
                                                                <xs:pattern value="ID[0-9]{52}"/>
320
                                                        </xs:restriction>
321
                                                </xs:simpleType>
322
                                        </xs:attribute>
323
                                </xs:complexType>
324
                        </xs:element>
325
                        <xs:element ref="ds:Signature"/>
326
                </xs:sequence>
327
                <xs:attribute name="versao" type="TVerEvento" use="required"/>
328
        </xs:complexType>
329
        <xs:complexType name="TRetEvento">
330
                <xs:annotation>
331
                        <xs:documentation>Tipo retorno do Evento</xs:documentation>
332
                </xs:annotation>
333
                <xs:sequence>
334
                        <xs:element name="infEvento">
335
                                <xs:complexType>
336
                                        <xs:sequence>
337
                                                <xs:element name="tpAmb" type="TAmb">
338
                                                        <xs:annotation>
339
                                                                <xs:documentation>Identificação do Ambiente:
340
1 - Produção
341
2 - Homologação</xs:documentation>
342
                                                        </xs:annotation>
343
                                                </xs:element>
344
                                                <xs:element name="verAplic" type="TVerAplic">
345
                                                        <xs:annotation>
346
                                                                <xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
347
                                                        </xs:annotation>
348
                                                </xs:element>
349
                                                <xs:element name="cOrgao" type="TCOrgaoIBGE">
350
                                                        <xs:annotation>
351
                                                                <xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar o Ambiente Nacional</xs:documentation>
352
                                                        </xs:annotation>
353
                                                </xs:element>
354
                                                <xs:element name="cStat" type="TStat">
355
                                                        <xs:annotation>
356
                                                                <xs:documentation>Código do status da registro do Evento</xs:documentation>
357
                                                        </xs:annotation>
358
                                                </xs:element>
359
                                                <xs:element name="xMotivo" type="TMotivo">
360
                                                        <xs:annotation>
361
                                                                <xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
362
                                                        </xs:annotation>
363
                                                </xs:element>
364
                                                <xs:element name="chNFe" type="TChNFe" minOccurs="0">
365
                                                        <xs:annotation>
366
                                                                <xs:documentation>Chave de Acesso NF-e vinculada</xs:documentation>
367
                                                        </xs:annotation>
368
                                                </xs:element>
369
                                                <xs:element name="tpEvento" minOccurs="0">
370
                                                        <xs:annotation>
371
                                                                <xs:documentation>Tipo do Evento vinculado</xs:documentation>
372
                                                        </xs:annotation>
373
                                                        <xs:simpleType>
374
                                                                <xs:restriction base="xs:string">
375
                                                                        <xs:whiteSpace value="preserve"/>
376
                                                                        <xs:pattern value="[0-9]{6}"/>
377
                                                                </xs:restriction>
378
                                                        </xs:simpleType>
379
                                                </xs:element>
380
                                                <xs:element name="xEvento" minOccurs="0">
381
                                                        <xs:annotation>
382
                                                                <xs:documentation>Descrição do Evento</xs:documentation>
383
                                                        </xs:annotation>
384
                                                        <xs:simpleType>
385
                                                                <xs:restriction base="TString">
386
                                                                        <xs:minLength value="5"/>
387
                                                                        <xs:maxLength value="60"/>
388
                                                                </xs:restriction>
389
                                                        </xs:simpleType>
390
                                                </xs:element>
391
                                                <xs:element name="nSeqEvento" minOccurs="0">
392
                                                        <xs:annotation>
393
                                                                <xs:documentation>Seqüencial do evento</xs:documentation>
394
                                                        </xs:annotation>
395
                                                        <xs:simpleType>
396
                                                                <xs:restriction base="xs:string">
397
                                                                        <xs:whiteSpace value="preserve"/>
398
                                                                        <xs:pattern value="[1-9][0-9]{0,1}"/>
399
                                                                </xs:restriction>
400
                                                        </xs:simpleType>
401
                                                </xs:element>
402
                                                <xs:choice minOccurs="0">
403
                                                        <xs:annotation>
404
                                                                <xs:documentation>Identificação do  destinatpario da NF-e</xs:documentation>
405
                                                        </xs:annotation>
406
                                                        <xs:element name="CNPJDest" type="TCnpjOpc">
407
                                                                <xs:annotation>
408
                                                                        <xs:documentation>CNPJ Destinatário</xs:documentation>
409
                                                                </xs:annotation>
410
                                                        </xs:element>
411
                                                        <xs:element name="CPFDest" type="TCpf">
412
                                                                <xs:annotation>
413
                                                                        <xs:documentation>CPF Destiantário</xs:documentation>
414
                                                                </xs:annotation>
415
                                                        </xs:element>
416
                                                </xs:choice>
417
                                                <xs:element name="emailDest" minOccurs="0">
418
                                                        <xs:annotation>
419
                                                                <xs:documentation>email do destinatário</xs:documentation>
420
                                                        </xs:annotation>
421
                                                        <xs:simpleType>
422
                                                                <xs:restriction base="TString">
423
                                                                        <xs:minLength value="1"/>
424
                                                                        <xs:maxLength value="60"/>
425
                                                                </xs:restriction>
426
                                                        </xs:simpleType>
427
                                                </xs:element>
428
                                                <xs:element name="dhRegEvento" type="TDateTimeUTC">
429
                                                        <xs:annotation>
430
                                                                <xs:documentation>Data e Hora de registro do evento formato UTC AAAA-MM-DDTHH:MM:SSTZD</xs:documentation>
431
                                                        </xs:annotation>
432
                                                </xs:element>
433
                                                <xs:element name="nProt" type="TProt" minOccurs="0">
434
                                                        <xs:annotation>
435
                                                                <xs:documentation>Número do protocolo de registro do evento</xs:documentation>
436
                                                        </xs:annotation>
437
                                                </xs:element>
438
                                        </xs:sequence>
439
                                        <xs:attribute name="Id" use="optional">
440
                                                <xs:simpleType>
441
                                                        <xs:restriction base="xs:ID">
442
                                                                <xs:pattern value="ID[0-9]{15}"/>
443
                                                        </xs:restriction>
444
                                                </xs:simpleType>
445
                                        </xs:attribute>
446
                                </xs:complexType>
447
                        </xs:element>
448
                        <xs:element ref="ds:Signature" minOccurs="0"/>
449
                </xs:sequence>
450
                <xs:attribute name="versao" type="TRetVerEvento" use="required"/>
451
        </xs:complexType>
452
        <xs:complexType name="TProcEvento">
453
                <xs:annotation>
454
                        <xs:documentation>Tipo procEvento</xs:documentation>
455
                </xs:annotation>
456
                <xs:sequence>
457
                        <xs:element name="evento" type="TEvento"/>
458
                        <xs:element name="retEvento" type="TRetEvento"/>
459
                </xs:sequence>
460
                <xs:attribute name="versao" type="TVerEvento" use="required"/>
461
        </xs:complexType>
462
        <xs:simpleType name="TVerNFe">
463
                <xs:annotation>
464
                        <xs:documentation> Tipo Versão da NF-e</xs:documentation>
465
                </xs:annotation>
466
                <xs:restriction base="TString">
467
                        <xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
468
                </xs:restriction>
469
        </xs:simpleType>
470
        <xs:simpleType name="TVerCancNFe">
471
                <xs:annotation>
472
                        <xs:documentation>Tipo Versão do leiaute de Cancelamento de NF-e - 2.00/1.07</xs:documentation>
473
                </xs:annotation>
474
                <xs:restriction base="TString">
475
                        <xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
476
                </xs:restriction>
477
        </xs:simpleType>
478
        <xs:simpleType name="TVerEvento">
479
                <xs:annotation>
480
                        <xs:documentation>Tipo Versão do Evento 1.00</xs:documentation>
481
                </xs:annotation>
482
                <xs:restriction base="TString">
483
                        <xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
484
                </xs:restriction>
485
        </xs:simpleType>
486
        <xs:simpleType name="TRetVerEvento">
487
                <xs:annotation>
488
                        <xs:documentation>Tipo Versão do Evento</xs:documentation>
489
                </xs:annotation>
490
                <xs:restriction base="TString">
491
                        <xs:pattern value="[1-9]{1}\.[0-9]{2}"/>
492
                </xs:restriction>
493
        </xs:simpleType>
494
        <xs:simpleType name="TVerConsSitNFe">
495
                <xs:annotation>
496
                        <xs:documentation>Tipo Versão do Leiaute da Cosulta situação NF-e - 4.00</xs:documentation>
497
                </xs:annotation>
498
                <xs:restriction base="xs:string">
499
                        <xs:whiteSpace value="preserve"/>
500
                        <xs:enumeration value="4.00"/>
501
                </xs:restriction>
502
        </xs:simpleType>
503
</xs:schema>