Rev 182 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 179 | 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:simpleType name="TNSU"> |
||
| 4 | <xs:annotation> |
||
| 5 | <xs:documentation>Tipo número sequencial único</xs:documentation> |
||
| 6 | </xs:annotation> |
||
| 7 | <xs:restriction base="xs:token"> |
||
| 8 | <xs:pattern value="[0-9]{15}"/> |
||
| 9 | </xs:restriction> |
||
| 10 | </xs:simpleType> |
||
| 11 | <xs:simpleType name="TQNSU"> |
||
| 12 | <xs:annotation> |
||
| 13 | <xs:documentation>Tipo quantidade de NSU</xs:documentation> |
||
| 14 | </xs:annotation> |
||
| 15 | <xs:restriction base="xs:unsignedShort"> |
||
| 16 | <xs:minInclusive value="1"/> |
||
| 17 | <xs:maxInclusive value="50"/> |
||
| 18 | </xs:restriction> |
||
| 19 | </xs:simpleType> |
||
| 20 | <xs:simpleType name="TVerDistDFe"> |
||
| 21 | <xs:annotation> |
||
| 22 | <xs:documentation>Tipo Versão dos leiautes do Web Service NFeDistribuicaoDFe</xs:documentation> |
||
| 23 | </xs:annotation> |
||
| 24 | <xs:restriction base="xs:string"> |
||
| 25 | <xs:whiteSpace value="preserve"/> |
||
| 26 | <xs:enumeration value="1.01"/> |
||
| 27 | </xs:restriction> |
||
| 28 | </xs:simpleType> |
||
| 29 | <xs:simpleType name="TAmb"> |
||
| 30 | <xs:annotation> |
||
| 31 | <xs:documentation>Tipo Ambiente</xs:documentation> |
||
| 32 | </xs:annotation> |
||
| 33 | <xs:restriction base="xs:string"> |
||
| 34 | <xs:whiteSpace value="preserve"/> |
||
| 35 | <xs:enumeration value="1"/> |
||
| 36 | <xs:enumeration value="2"/> |
||
| 37 | </xs:restriction> |
||
| 38 | </xs:simpleType> |
||
| 39 | <xs:simpleType name="TCodUfIBGE"> |
||
| 40 | <xs:annotation> |
||
| 41 | <xs:documentation>Tipo Código da UF da tabela do IBGE</xs:documentation> |
||
| 42 | </xs:annotation> |
||
| 43 | <xs:restriction base="xs:string"> |
||
| 44 | <xs:whiteSpace value="preserve"/> |
||
| 45 | <xs:enumeration value="11"/> |
||
| 46 | <xs:enumeration value="12"/> |
||
| 47 | <xs:enumeration value="13"/> |
||
| 48 | <xs:enumeration value="14"/> |
||
| 49 | <xs:enumeration value="15"/> |
||
| 50 | <xs:enumeration value="16"/> |
||
| 51 | <xs:enumeration value="17"/> |
||
| 52 | <xs:enumeration value="21"/> |
||
| 53 | <xs:enumeration value="22"/> |
||
| 54 | <xs:enumeration value="23"/> |
||
| 55 | <xs:enumeration value="24"/> |
||
| 56 | <xs:enumeration value="25"/> |
||
| 57 | <xs:enumeration value="26"/> |
||
| 58 | <xs:enumeration value="27"/> |
||
| 59 | <xs:enumeration value="28"/> |
||
| 60 | <xs:enumeration value="29"/> |
||
| 61 | <xs:enumeration value="31"/> |
||
| 62 | <xs:enumeration value="32"/> |
||
| 63 | <xs:enumeration value="33"/> |
||
| 64 | <xs:enumeration value="35"/> |
||
| 65 | <xs:enumeration value="41"/> |
||
| 66 | <xs:enumeration value="42"/> |
||
| 67 | <xs:enumeration value="43"/> |
||
| 68 | <xs:enumeration value="50"/> |
||
| 69 | <xs:enumeration value="51"/> |
||
| 70 | <xs:enumeration value="52"/> |
||
| 71 | <xs:enumeration value="53"/> |
||
| 72 | </xs:restriction> |
||
| 73 | </xs:simpleType> |
||
| 74 | <xs:simpleType name="TCOrgaoIBGE"> |
||
| 75 | <xs:annotation> |
||
| 76 | <xs:documentation>Tipo Código de orgão (UF da tabela do IBGE + 90 RFB)</xs:documentation> |
||
| 77 | </xs:annotation> |
||
| 78 | <xs:restriction base="xs:string"> |
||
| 79 | <xs:whiteSpace value="preserve"/> |
||
| 80 | <xs:enumeration value="11"/> |
||
| 81 | <xs:enumeration value="12"/> |
||
| 82 | <xs:enumeration value="13"/> |
||
| 83 | <xs:enumeration value="14"/> |
||
| 84 | <xs:enumeration value="15"/> |
||
| 85 | <xs:enumeration value="16"/> |
||
| 86 | <xs:enumeration value="17"/> |
||
| 87 | <xs:enumeration value="21"/> |
||
| 88 | <xs:enumeration value="22"/> |
||
| 89 | <xs:enumeration value="23"/> |
||
| 90 | <xs:enumeration value="24"/> |
||
| 91 | <xs:enumeration value="25"/> |
||
| 92 | <xs:enumeration value="26"/> |
||
| 93 | <xs:enumeration value="27"/> |
||
| 94 | <xs:enumeration value="28"/> |
||
| 95 | <xs:enumeration value="29"/> |
||
| 96 | <xs:enumeration value="31"/> |
||
| 97 | <xs:enumeration value="32"/> |
||
| 98 | <xs:enumeration value="33"/> |
||
| 99 | <xs:enumeration value="35"/> |
||
| 100 | <xs:enumeration value="41"/> |
||
| 101 | <xs:enumeration value="42"/> |
||
| 102 | <xs:enumeration value="43"/> |
||
| 103 | <xs:enumeration value="50"/> |
||
| 104 | <xs:enumeration value="51"/> |
||
| 105 | <xs:enumeration value="52"/> |
||
| 106 | <xs:enumeration value="53"/> |
||
| 107 | <xs:enumeration value="90"/> |
||
| 108 | <xs:enumeration value="91"/> |
||
| 109 | <xs:enumeration value="92"/> |
||
| 110 | </xs:restriction> |
||
| 111 | </xs:simpleType> |
||
| 112 | <xs:simpleType name="TCnpj"> |
||
| 113 | <xs:annotation> |
||
| 114 | <xs:documentation>Tipo Número do CNPJ</xs:documentation> |
||
| 115 | </xs:annotation> |
||
| 116 | <xs:restriction base="xs:string"> |
||
| 117 | <xs:whiteSpace value="preserve"/> |
||
| 118 | <xs:maxLength value="14"/> |
||
| 119 | <xs:pattern value="[0-9]{14}"/> |
||
| 120 | </xs:restriction> |
||
| 121 | </xs:simpleType> |
||
| 122 | <xs:simpleType name="TCpf"> |
||
| 123 | <xs:annotation> |
||
| 124 | <xs:documentation>Tipo Número do CPF</xs:documentation> |
||
| 125 | </xs:annotation> |
||
| 126 | <xs:restriction base="xs:string"> |
||
| 127 | <xs:whiteSpace value="preserve"/> |
||
| 128 | <xs:maxLength value="11"/> |
||
| 129 | <xs:pattern value="[0-9]{11}"/> |
||
| 130 | </xs:restriction> |
||
| 131 | </xs:simpleType> |
||
| 132 | <xs:simpleType name="TVerAplic"> |
||
| 133 | <xs:annotation> |
||
| 134 | <xs:documentation>Tipo Versão do Aplicativo</xs:documentation> |
||
| 135 | </xs:annotation> |
||
| 136 | <xs:restriction base="TString"> |
||
| 137 | <xs:minLength value="1"/> |
||
| 138 | <xs:maxLength value="20"/> |
||
| 139 | </xs:restriction> |
||
| 140 | </xs:simpleType> |
||
| 141 | <xs:simpleType name="TStat"> |
||
| 142 | <xs:annotation> |
||
| 143 | <xs:documentation>Tipo Código da Mensagem enviada</xs:documentation> |
||
| 144 | </xs:annotation> |
||
| 145 | <xs:restriction base="xs:string"> |
||
| 146 | <xs:whiteSpace value="preserve"/> |
||
| 147 | <xs:maxLength value="3"/> |
||
| 148 | <xs:pattern value="[0-9]{3}"/> |
||
| 149 | </xs:restriction> |
||
| 150 | </xs:simpleType> |
||
| 151 | <xs:simpleType name="TMotivo"> |
||
| 152 | <xs:annotation> |
||
| 153 | <xs:documentation>Tipo Motivo</xs:documentation> |
||
| 154 | </xs:annotation> |
||
| 155 | <xs:restriction base="TString"> |
||
| 156 | <xs:maxLength value="255"/> |
||
| 157 | <xs:minLength value="1"/> |
||
| 158 | </xs:restriction> |
||
| 159 | </xs:simpleType> |
||
| 160 | <xs:simpleType name="TString"> |
||
| 161 | <xs:annotation> |
||
| 162 | <xs:documentation> Tipo string genérico</xs:documentation> |
||
| 163 | </xs:annotation> |
||
| 164 | <xs:restriction base="xs:string"> |
||
| 165 | <xs:whiteSpace value="preserve"/> |
||
| 166 | <xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}"/> |
||
| 167 | </xs:restriction> |
||
| 168 | </xs:simpleType> |
||
| 169 | <xs:simpleType name="TChNFe"> |
||
| 170 | <xs:annotation> |
||
| 171 | <xs:documentation>Tipo Chave da Nota Fiscal Eletrônica</xs:documentation> |
||
| 172 | </xs:annotation> |
||
| 173 | <xs:restriction base="xs:string"> |
||
| 174 | <xs:whiteSpace value="preserve"/> |
||
| 175 | <xs:maxLength value="44"/> |
||
| 176 | <xs:pattern value="[0-9]{44}"/> |
||
| 177 | </xs:restriction> |
||
| 178 | </xs:simpleType> |
||
| 179 | <xs:simpleType name="TProt"> |
||
| 180 | <xs:annotation> |
||
| 181 | <xs:documentation>Tipo Número do Protocolo de Status</xs:documentation> |
||
| 182 | </xs:annotation> |
||
| 183 | <xs:restriction base="xs:string"> |
||
| 184 | <xs:whiteSpace value="preserve"/> |
||
| 185 | <xs:maxLength value="15"/> |
||
| 186 | <xs:pattern value="[0-9]{15}"/> |
||
| 187 | </xs:restriction> |
||
| 188 | </xs:simpleType> |
||
| 189 | <xs:simpleType name="TDateTimeUTC"> |
||
| 190 | <xs:annotation> |
||
| 191 | <xs:documentation>Data e Hora, formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation> |
||
| 192 | </xs:annotation> |
||
| 193 | <xs:restriction base="xs:string"> |
||
| 194 | <xs:whiteSpace value="preserve"/> |
||
| 195 | <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[0-9]|10|11):00|([\+](12):00))"/> |
||
| 196 | </xs:restriction> |
||
| 197 | </xs:simpleType> |
||
| 198 | <xs:simpleType name="TIe"> |
||
| 199 | <xs:annotation> |
||
| 200 | <xs:documentation>Tipo Inscrição Estadual do Emitente // alterado EM 24/10/08 para aceitar ISENTO</xs:documentation> |
||
| 201 | </xs:annotation> |
||
| 202 | <xs:restriction base="xs:string"> |
||
| 203 | <xs:whiteSpace value="preserve"/> |
||
| 204 | <xs:maxLength value="14"/> |
||
| 205 | <xs:pattern value="[0-9]{2,14}|ISENTO"/> |
||
| 206 | </xs:restriction> |
||
| 207 | </xs:simpleType> |
||
| 208 | <xs:simpleType name="TDec_1302"> |
||
| 209 | <xs:annotation> |
||
| 210 | <xs:documentation>Tipo Decimal com 15 dígitos, sendo 13 de corpo e 2 decimais</xs:documentation> |
||
| 211 | </xs:annotation> |
||
| 212 | <xs:restriction base="xs:string"> |
||
| 213 | <xs:whiteSpace value="preserve"/> |
||
| 214 | <xs:pattern value="0|0\.[0-9]{2}|[1-9]{1}[0-9]{0,12}(\.[0-9]{2})?"/> |
||
| 215 | </xs:restriction> |
||
| 216 | </xs:simpleType> |
||
| 217 | </xs:schema> |
||
| 218 |