Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 482 | blopes | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (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/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified"> |
||
| 4 | <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/> |
||
| 5 | <xs:include schemaLocation="tiposBasico_v1.03.xsd"/> |
||
| 6 | <xs:complexType name="TEvento"> |
||
| 7 | <xs:annotation> |
||
| 8 | <xs:documentation>Tipo Evento</xs:documentation> |
||
| 9 | </xs:annotation> |
||
| 10 | <xs:sequence> |
||
| 11 | <xs:element name="infEvento"> |
||
| 12 | <xs:complexType> |
||
| 13 | <xs:sequence> |
||
| 14 | <xs:element name="cOrgao" type="TCOrgaoIBGE"> |
||
| 15 | <xs:annotation> |
||
| 16 | <xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional</xs:documentation> |
||
| 17 | </xs:annotation> |
||
| 18 | </xs:element> |
||
| 19 | <xs:element name="tpAmb" type="TAmb"> |
||
| 20 | <xs:annotation> |
||
| 21 | <xs:documentation>Identificação do Ambiente: |
||
| 22 | 1 - Produção |
||
| 23 | 2 - Homologação</xs:documentation> |
||
| 24 | </xs:annotation> |
||
| 25 | </xs:element> |
||
| 26 | <xs:choice> |
||
| 27 | <xs:annotation> |
||
| 28 | <xs:documentation>Identificação do autor do evento</xs:documentation> |
||
| 29 | </xs:annotation> |
||
| 30 | <xs:element name="CNPJ" type="TCnpjOpc"> |
||
| 31 | <xs:annotation> |
||
| 32 | <xs:documentation>CNPJ</xs:documentation> |
||
| 33 | </xs:annotation> |
||
| 34 | </xs:element> |
||
| 35 | <xs:element name="CPF" type="TCpf"> |
||
| 36 | <xs:annotation> |
||
| 37 | <xs:documentation>CPF</xs:documentation> |
||
| 38 | </xs:annotation> |
||
| 39 | </xs:element> |
||
| 40 | </xs:choice> |
||
| 41 | <xs:element name="chNFe" type="TChNFe"> |
||
| 42 | <xs:annotation> |
||
| 43 | <xs:documentation>Chave de Acesso da NF-e vinculada ao evento</xs:documentation> |
||
| 44 | </xs:annotation> |
||
| 45 | </xs:element> |
||
| 46 | <xs:element name="dhEvento" type="TDateTimeUTC"> |
||
| 47 | <xs:annotation> |
||
| 48 | <xs:documentation>Data e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation> |
||
| 49 | </xs:annotation> |
||
| 50 | </xs:element> |
||
| 51 | <xs:element name="tpEvento"> |
||
| 52 | <xs:annotation> |
||
| 53 | <xs:documentation>Tipo do Evento</xs:documentation> |
||
| 54 | </xs:annotation> |
||
| 55 | <xs:simpleType> |
||
| 56 | <xs:restriction base="xs:string"> |
||
| 57 | <xs:whiteSpace value="preserve"/> |
||
| 58 | <xs:pattern value="[0-9]{6}"/> |
||
| 59 | <xs:enumeration value="110112"/> |
||
| 60 | </xs:restriction> |
||
| 61 | </xs:simpleType> |
||
| 62 | </xs:element> |
||
| 63 | <xs:element name="nSeqEvento"> |
||
| 64 | <xs:annotation> |
||
| 65 | <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> |
||
| 66 | </xs:annotation> |
||
| 67 | <xs:simpleType> |
||
| 68 | <xs:restriction base="xs:string"> |
||
| 69 | <xs:whiteSpace value="preserve"/> |
||
| 70 | <xs:pattern value="[1-9]|[1][0-9]{0,1}|20"/> |
||
| 71 | </xs:restriction> |
||
| 72 | </xs:simpleType> |
||
| 73 | </xs:element> |
||
| 74 | <xs:element name="verEvento"> |
||
| 75 | <xs:annotation> |
||
| 76 | <xs:documentation>Versão do Tipo do Evento</xs:documentation> |
||
| 77 | </xs:annotation> |
||
| 78 | <xs:simpleType> |
||
| 79 | <xs:restriction base="xs:string"> |
||
| 80 | <xs:whiteSpace value="preserve"/> |
||
| 81 | <xs:enumeration value="1.00"/> |
||
| 82 | </xs:restriction> |
||
| 83 | </xs:simpleType> |
||
| 84 | </xs:element> |
||
| 85 | <xs:element name="detEvento"> |
||
| 86 | <xs:annotation> |
||
| 87 | <xs:documentation>Schema XML de validação do evento do cancelamento por substituição 110112</xs:documentation> |
||
| 88 | </xs:annotation> |
||
| 89 | <xs:complexType> |
||
| 90 | <xs:sequence> |
||
| 91 | <xs:element name="descEvento"> |
||
| 92 | <xs:annotation> |
||
| 93 | <xs:documentation>Descrição do Evento - “Cancelamento por substituição”</xs:documentation> |
||
| 94 | </xs:annotation> |
||
| 95 | <xs:simpleType> |
||
| 96 | <xs:restriction base="xs:string"> |
||
| 97 | <xs:whiteSpace value="preserve"/> |
||
| 98 | <xs:enumeration value="Cancelamento por substituicao"/> |
||
| 99 | </xs:restriction> |
||
| 100 | </xs:simpleType> |
||
| 101 | </xs:element> |
||
| 102 | <xs:element name="cOrgaoAutor" type="TCodUfIBGE"> |
||
| 103 | <xs:annotation> |
||
| 104 | <xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation> |
||
| 105 | </xs:annotation> |
||
| 106 | </xs:element> |
||
| 107 | <xs:element name="tpAutor"> |
||
| 108 | <xs:annotation> |
||
| 109 | <xs:documentation>Autor do Evento de Irregularidade FiscalInformar 5=Fisco para este Evento. |
||
| 110 | Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos; |
||
| 111 | </xs:documentation> |
||
| 112 | </xs:annotation> |
||
| 113 | <xs:simpleType> |
||
| 114 | <xs:restriction base="xs:string"> |
||
| 115 | <xs:enumeration value="1"/> |
||
| 116 | </xs:restriction> |
||
| 117 | </xs:simpleType> |
||
| 118 | </xs:element> |
||
| 119 | <xs:element name="verAplic" type="TVerAplic"> |
||
| 120 | <xs:annotation> |
||
| 121 | <xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation> |
||
| 122 | </xs:annotation> |
||
| 123 | </xs:element> |
||
| 124 | <xs:element name="nProt" type="TProt"> |
||
| 125 | <xs:annotation> |
||
| 126 | <xs:documentation>Número do Protocolo de Status da NF-e. 1 posição (1 – Secretaria de Fazenda Estadual 2 – Receita Federal); 2 posições ano; 10 seqüencial no ano.</xs:documentation> |
||
| 127 | </xs:annotation> |
||
| 128 | </xs:element> |
||
| 129 | <xs:element name="xJust" type="TJust"> |
||
| 130 | <xs:annotation> |
||
| 131 | <xs:documentation>Justificativa do cancelamento</xs:documentation> |
||
| 132 | </xs:annotation> |
||
| 133 | </xs:element> |
||
| 134 | <xs:element name="chNFeRef" type="TChNFe"> |
||
| 135 | <xs:annotation> |
||
| 136 | <xs:documentation>Chave de Acesso NF-e vinculada</xs:documentation> |
||
| 137 | </xs:annotation> |
||
| 138 | </xs:element> |
||
| 139 | </xs:sequence> |
||
| 140 | <xs:attribute name="versao" use="required"> |
||
| 141 | <xs:simpleType> |
||
| 142 | <xs:restriction base="xs:string"> |
||
| 143 | <xs:whiteSpace value="preserve"/> |
||
| 144 | <xs:enumeration value="1.00"/> |
||
| 145 | </xs:restriction> |
||
| 146 | </xs:simpleType> |
||
| 147 | </xs:attribute> |
||
| 148 | </xs:complexType> |
||
| 149 | </xs:element> |
||
| 150 | </xs:sequence> |
||
| 151 | <xs:attribute name="Id" use="required"> |
||
| 152 | <xs:annotation> |
||
| 153 | <xs:documentation>Identificador da TAG a ser assinada, a regra de formação do Id é: |
||
| 154 | “ID” + tpEvento + chave da NF-e + nSeqEvento</xs:documentation> |
||
| 155 | </xs:annotation> |
||
| 156 | <xs:simpleType> |
||
| 157 | <xs:restriction base="xs:ID"> |
||
| 158 | <xs:pattern value="ID[0-9]{52}"/> |
||
| 159 | </xs:restriction> |
||
| 160 | </xs:simpleType> |
||
| 161 | </xs:attribute> |
||
| 162 | </xs:complexType> |
||
| 163 | </xs:element> |
||
| 164 | <xs:element ref="ds:Signature"/> |
||
| 165 | </xs:sequence> |
||
| 166 | <xs:attribute name="versao" type="TVerEvento" use="required"/> |
||
| 167 | </xs:complexType> |
||
| 168 | <xs:complexType name="TRetEvento"> |
||
| 169 | <xs:annotation> |
||
| 170 | <xs:documentation>Tipo retorno do Evento</xs:documentation> |
||
| 171 | </xs:annotation> |
||
| 172 | <xs:sequence> |
||
| 173 | <xs:element name="infEvento"> |
||
| 174 | <xs:complexType> |
||
| 175 | <xs:sequence> |
||
| 176 | <xs:element name="tpAmb" type="TAmb"> |
||
| 177 | <xs:annotation> |
||
| 178 | <xs:documentation>Identificação do Ambiente: |
||
| 179 | 1 - Produção |
||
| 180 | 2 - Homologação</xs:documentation> |
||
| 181 | </xs:annotation> |
||
| 182 | </xs:element> |
||
| 183 | <xs:element name="verAplic" type="TVerAplic"> |
||
| 184 | <xs:annotation> |
||
| 185 | <xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation> |
||
| 186 | </xs:annotation> |
||
| 187 | </xs:element> |
||
| 188 | <xs:element name="cOrgao" type="TCOrgaoIBGE"> |
||
| 189 | <xs:annotation> |
||
| 190 | <xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 91 para identificar o Ambiente Nacional</xs:documentation> |
||
| 191 | </xs:annotation> |
||
| 192 | </xs:element> |
||
| 193 | <xs:element name="cStat" type="TStat"> |
||
| 194 | <xs:annotation> |
||
| 195 | <xs:documentation>Código do status da registro do Evento</xs:documentation> |
||
| 196 | </xs:annotation> |
||
| 197 | </xs:element> |
||
| 198 | <xs:element name="xMotivo" type="TMotivo"> |
||
| 199 | <xs:annotation> |
||
| 200 | <xs:documentation>Descrição literal do status do registro do Evento</xs:documentation> |
||
| 201 | </xs:annotation> |
||
| 202 | </xs:element> |
||
| 203 | <xs:element name="chNFe" type="TChNFe" minOccurs="0"> |
||
| 204 | <xs:annotation> |
||
| 205 | <xs:documentation>Chave de Acesso NF-e vinculada</xs:documentation> |
||
| 206 | </xs:annotation> |
||
| 207 | </xs:element> |
||
| 208 | <xs:element name="tpEvento" minOccurs="0"> |
||
| 209 | <xs:annotation> |
||
| 210 | <xs:documentation>Tipo do Evento vinculado</xs:documentation> |
||
| 211 | </xs:annotation> |
||
| 212 | <xs:simpleType> |
||
| 213 | <xs:restriction base="xs:string"> |
||
| 214 | <xs:whiteSpace value="preserve"/> |
||
| 215 | <xs:pattern value="[0-9]{6}"/> |
||
| 216 | <xs:enumeration value="110112"/> |
||
| 217 | </xs:restriction> |
||
| 218 | </xs:simpleType> |
||
| 219 | </xs:element> |
||
| 220 | <xs:element name="xEvento" minOccurs="0"> |
||
| 221 | <xs:annotation> |
||
| 222 | <xs:documentation>Descrição do Evento</xs:documentation> |
||
| 223 | </xs:annotation> |
||
| 224 | <xs:simpleType> |
||
| 225 | <xs:restriction base="TString"> |
||
| 226 | <xs:minLength value="5"/> |
||
| 227 | <xs:maxLength value="60"/> |
||
| 228 | </xs:restriction> |
||
| 229 | </xs:simpleType> |
||
| 230 | </xs:element> |
||
| 231 | <xs:element name="nSeqEvento" minOccurs="0"> |
||
| 232 | <xs:annotation> |
||
| 233 | <xs:documentation>Seqüencial do evento</xs:documentation> |
||
| 234 | </xs:annotation> |
||
| 235 | <xs:simpleType> |
||
| 236 | <xs:restriction base="xs:string"> |
||
| 237 | <xs:whiteSpace value="preserve"/> |
||
| 238 | <xs:pattern value="[1-9][0-9]{0,1}"/> |
||
| 239 | </xs:restriction> |
||
| 240 | </xs:simpleType> |
||
| 241 | </xs:element> |
||
| 242 | <xs:element name="cOrgaoAutor" type="TCodUfIBGE" minOccurs="0"> |
||
| 243 | <xs:annotation> |
||
| 244 | <xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation> |
||
| 245 | </xs:annotation> |
||
| 246 | </xs:element> |
||
| 247 | <xs:element name="dhRegEvento"> |
||
| 248 | <xs:annotation> |
||
| 249 | <xs:documentation>Data e Hora de do recebimento do evento ou do registro do evento formato UTC AAAA-MM-DDThh:mm:ssTZD.</xs:documentation> |
||
| 250 | </xs:annotation> |
||
| 251 | <xs:simpleType> |
||
| 252 | <xs:restriction base="xs:string"> |
||
| 253 | <xs:whiteSpace value="preserve"/> |
||
| 254 | <xs:pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-4]:00"/> |
||
| 255 | </xs:restriction> |
||
| 256 | </xs:simpleType> |
||
| 257 | </xs:element> |
||
| 258 | <xs:element name="nProt" type="TProt" minOccurs="0"> |
||
| 259 | <xs:annotation> |
||
| 260 | <xs:documentation>Número do protocolo de registro do evento</xs:documentation> |
||
| 261 | </xs:annotation> |
||
| 262 | </xs:element> |
||
| 263 | </xs:sequence> |
||
| 264 | <xs:attribute name="Id" use="optional"> |
||
| 265 | <xs:simpleType> |
||
| 266 | <xs:restriction base="xs:ID"> |
||
| 267 | <xs:pattern value="ID[0-9]{15}"/> |
||
| 268 | </xs:restriction> |
||
| 269 | </xs:simpleType> |
||
| 270 | </xs:attribute> |
||
| 271 | </xs:complexType> |
||
| 272 | </xs:element> |
||
| 273 | <xs:element ref="ds:Signature" minOccurs="0"/> |
||
| 274 | </xs:sequence> |
||
| 275 | <xs:attribute name="versao" type="TVerEvento" use="required"/> |
||
| 276 | </xs:complexType> |
||
| 277 | <xs:complexType name="TEnvEvento"> |
||
| 278 | <xs:annotation> |
||
| 279 | <xs:documentation> Tipo Lote de Envio</xs:documentation> |
||
| 280 | </xs:annotation> |
||
| 281 | <xs:sequence> |
||
| 282 | <xs:element name="idLote"> |
||
| 283 | <xs:simpleType> |
||
| 284 | <xs:restriction base="xs:string"> |
||
| 285 | <xs:whiteSpace value="preserve"/> |
||
| 286 | <xs:pattern value="[0-9]{1,15}"/> |
||
| 287 | </xs:restriction> |
||
| 288 | </xs:simpleType> |
||
| 289 | </xs:element> |
||
| 290 | <xs:element name="evento" type="TEvento" maxOccurs="20"/> |
||
| 291 | </xs:sequence> |
||
| 292 | <xs:attribute name="versao" type="TVerEnvEvento" use="required"/> |
||
| 293 | </xs:complexType> |
||
| 294 | <xs:complexType name="TRetEnvEvento"> |
||
| 295 | <xs:annotation> |
||
| 296 | <xs:documentation> Tipo Retorno de Lote de Envio</xs:documentation> |
||
| 297 | </xs:annotation> |
||
| 298 | <xs:sequence> |
||
| 299 | <xs:element name="idLote"> |
||
| 300 | <xs:simpleType> |
||
| 301 | <xs:restriction base="xs:string"> |
||
| 302 | <xs:whiteSpace value="preserve"/> |
||
| 303 | <xs:pattern value="[0-9]{1,15}"/> |
||
| 304 | </xs:restriction> |
||
| 305 | </xs:simpleType> |
||
| 306 | </xs:element> |
||
| 307 | <xs:element name="tpAmb" type="TAmb"> |
||
| 308 | <xs:annotation> |
||
| 309 | <xs:documentation>Identificação do Ambiente: |
||
| 310 | 1 - Produção |
||
| 311 | 2 - Homologação</xs:documentation> |
||
| 312 | </xs:annotation> |
||
| 313 | </xs:element> |
||
| 314 | <xs:element name="verAplic" type="TVerAplic"> |
||
| 315 | <xs:annotation> |
||
| 316 | <xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation> |
||
| 317 | </xs:annotation> |
||
| 318 | </xs:element> |
||
| 319 | <xs:element name="cOrgao" type="TCOrgaoIBGE"> |
||
| 320 | <xs:annotation> |
||
| 321 | <xs:documentation>Código do òrgao que registrou o Evento</xs:documentation> |
||
| 322 | </xs:annotation> |
||
| 323 | </xs:element> |
||
| 324 | <xs:element name="cStat" type="TStat"> |
||
| 325 | <xs:annotation> |
||
| 326 | <xs:documentation>Código do status da registro do Evento</xs:documentation> |
||
| 327 | </xs:annotation> |
||
| 328 | </xs:element> |
||
| 329 | <xs:element name="xMotivo" type="TMotivo"> |
||
| 330 | <xs:annotation> |
||
| 331 | <xs:documentation>Descrição literal do status do registro do Evento</xs:documentation> |
||
| 332 | </xs:annotation> |
||
| 333 | </xs:element> |
||
| 334 | <xs:element name="retEvento" type="TRetEvento" minOccurs="0" maxOccurs="20"/> |
||
| 335 | </xs:sequence> |
||
| 336 | <xs:attribute name="versao" type="TVerEnvEvento" use="required"/> |
||
| 337 | </xs:complexType> |
||
| 338 | <xs:complexType name="TProcEvento"> |
||
| 339 | <xs:annotation> |
||
| 340 | <xs:documentation>Tipo procEvento</xs:documentation> |
||
| 341 | </xs:annotation> |
||
| 342 | <xs:sequence> |
||
| 343 | <xs:element name="evento" type="TEvento"/> |
||
| 344 | <xs:element name="retEvento" type="TRetEvento"/> |
||
| 345 | </xs:sequence> |
||
| 346 | <xs:attribute name="versao" type="TVerEvento" use="required"/> |
||
| 347 | </xs:complexType> |
||
| 348 | <xs:simpleType name="TVerEnvEvento"> |
||
| 349 | <xs:annotation> |
||
| 350 | <xs:documentation>Tipo Versão do EnvEvento</xs:documentation> |
||
| 351 | </xs:annotation> |
||
| 352 | <xs:restriction base="xs:string"> |
||
| 353 | <xs:whiteSpace value="preserve"/> |
||
| 354 | <xs:pattern value="1\.00"/> |
||
| 355 | </xs:restriction> |
||
| 356 | </xs:simpleType> |
||
| 357 | <xs:simpleType name="TVerEvento"> |
||
| 358 | <xs:annotation> |
||
| 359 | <xs:documentation>Tipo Versão do Evento</xs:documentation> |
||
| 360 | </xs:annotation> |
||
| 361 | <xs:restriction base="xs:string"> |
||
| 362 | <xs:whiteSpace value="preserve"/> |
||
| 363 | <xs:pattern value="1\.00"/> |
||
| 364 | </xs:restriction> |
||
| 365 | </xs:simpleType> |
||
| 366 | </xs:schema> |