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