Rev 182 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 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/nfe" targetNamespace="http://www.portalfiscal.inf.br/nfe" 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="tiposDistDFe_v1.00.xsd"/> |
||
| 5 | <xs:element name="resNFe"> |
||
| 6 | <xs:annotation> |
||
| 7 | <xs:documentation>Schema da estrutura XML gerada pelo Ambiente Nacional com o conjunto de informações resumidas de uma NF-e</xs:documentation> |
||
| 8 | </xs:annotation> |
||
| 9 | <xs:complexType> |
||
| 10 | <xs:sequence> |
||
| 11 | <xs:element name="chNFe" type="TChNFe"> |
||
| 12 | <xs:annotation> |
||
| 13 | <xs:documentation>Chave de acesso da NF-e</xs:documentation> |
||
| 14 | </xs:annotation> |
||
| 15 | </xs:element> |
||
| 16 | <xs:choice> |
||
| 17 | <xs:element name="CNPJ" type="TCnpj"> |
||
| 18 | <xs:annotation> |
||
| 19 | <xs:documentation>CNPJ do Emitente</xs:documentation> |
||
| 20 | </xs:annotation> |
||
| 21 | </xs:element> |
||
| 22 | <xs:element name="CPF" type="TCpf"> |
||
| 23 | <xs:annotation> |
||
| 24 | <xs:documentation>CPF do Emitente</xs:documentation> |
||
| 25 | </xs:annotation> |
||
| 26 | </xs:element> |
||
| 27 | </xs:choice> |
||
| 28 | <xs:element name="xNome"> |
||
| 29 | <xs:annotation> |
||
| 30 | <xs:documentation>Razão Social ou Nome do emitente</xs:documentation> |
||
| 31 | </xs:annotation> |
||
| 32 | <xs:simpleType> |
||
| 33 | <xs:restriction base="TString"> |
||
| 34 | <xs:maxLength value="60"/> |
||
| 35 | <xs:minLength value="2"/> |
||
| 36 | </xs:restriction> |
||
| 37 | </xs:simpleType> |
||
| 38 | </xs:element> |
||
| 39 | <xs:element name="IE" type="TIe"> |
||
| 40 | <xs:annotation> |
||
| 41 | <xs:documentation>Inscrição Estadual do Emitente</xs:documentation> |
||
| 42 | </xs:annotation> |
||
| 43 | </xs:element> |
||
| 44 | <xs:element name="dhEmi" type="TDateTimeUTC"> |
||
| 45 | <xs:annotation> |
||
| 46 | <xs:documentation>Data e Hora de emissão do Documento Fiscal (AAAA-MM-DDThh:mm:ssTZD) ex.: 2012-09-01T13:00:00-03:00</xs:documentation> |
||
| 47 | </xs:annotation> |
||
| 48 | </xs:element> |
||
| 49 | <xs:element name="tpNF"> |
||
| 50 | <xs:annotation> |
||
| 51 | <xs:documentation>Tipo do Documento Fiscal (0 - entrada; 1 - saída)</xs:documentation> |
||
| 52 | </xs:annotation> |
||
| 53 | <xs:simpleType> |
||
| 54 | <xs:restriction base="xs:string"> |
||
| 55 | <xs:whiteSpace value="preserve"/> |
||
| 56 | <xs:enumeration value="0"/> |
||
| 57 | <xs:enumeration value="1"/> |
||
| 58 | </xs:restriction> |
||
| 59 | </xs:simpleType> |
||
| 60 | </xs:element> |
||
| 61 | <xs:element name="vNF" type="TDec_1302"> |
||
| 62 | <xs:annotation> |
||
| 63 | <xs:documentation>Valor Total da NF-e</xs:documentation> |
||
| 64 | </xs:annotation> |
||
| 65 | </xs:element> |
||
| 66 | <xs:element name="digVal" type="ds:DigestValueType" minOccurs="0"> |
||
| 67 | <xs:annotation> |
||
| 68 | <xs:documentation>Digest Value da NF-e processada. Utilizado para conferir a integridade da NF-e original</xs:documentation> |
||
| 69 | </xs:annotation> |
||
| 70 | </xs:element> |
||
| 71 | <xs:element name="dhRecbto" type="TDateTimeUTC"> |
||
| 72 | <xs:annotation> |
||
| 73 | <xs:documentation>Data e hora de autorização da NF-e, no formato AAAA-MM-DDTHH:MM:SSTZD</xs:documentation> |
||
| 74 | </xs:annotation> |
||
| 75 | </xs:element> |
||
| 76 | <xs:element name="nProt" type="TProt"> |
||
| 77 | <xs:annotation> |
||
| 78 | <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> |
||
| 79 | </xs:annotation> |
||
| 80 | </xs:element> |
||
| 81 | <xs:element name="cSitNFe"> |
||
| 82 | <xs:annotation> |
||
| 83 | <xs:documentation> |
||
| 84 | Situação da NF-e |
||
| 85 | 1-Uso autorizado no momento da consulta; |
||
| 86 | 2-Uso denegado; |
||
| 87 | </xs:documentation> |
||
| 88 | </xs:annotation> |
||
| 89 | <xs:simpleType> |
||
| 90 | <xs:restriction base="xs:string"> |
||
| 91 | <xs:whiteSpace value="preserve"/> |
||
| 92 | <xs:enumeration value="1"/> |
||
| 93 | <xs:enumeration value="2"/> |
||
| 94 | </xs:restriction> |
||
| 95 | </xs:simpleType> |
||
| 96 | </xs:element> |
||
| 97 | </xs:sequence> |
||
| 98 | <xs:attribute name="versao" type="TVerResNFe" use="required"/> |
||
| 99 | </xs:complexType> |
||
| 100 | </xs:element> |
||
| 101 | <xs:simpleType name="TVerResNFe"> |
||
| 102 | <xs:annotation> |
||
| 103 | <xs:documentation>Tipo Versão do leiate resNFe</xs:documentation> |
||
| 104 | </xs:annotation> |
||
| 105 | <xs:restriction base="xs:string"> |
||
| 106 | <xs:whiteSpace value="preserve"/> |
||
| 107 | <xs:enumeration value="1.00"/> |
||
| 108 | </xs:restriction> |
||
| 109 | </xs:simpleType> |
||
| 110 | </xs:schema> |