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
<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">
3
        <xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
4
        <xs:element name="detEvento">
5
                <xs:complexType>
6
                        <xs:sequence>
7
                                <xs:element ref="descEvento"/>
8
                                <xs:element ref="cOrgaoAutor"/>
9
                                <xs:element ref="tpAutor"/>
10
                                <xs:element ref="verAplic"/>
11
                                <xs:element ref="dhEmi"/>
12
                                <xs:element ref="tpNF"/>
13
                                <xs:element ref="IE"/>
14
                                <xs:element name="dest">
15
                                        <xs:complexType>
16
                                                <xs:sequence>
17
                                                        <xs:element ref="UF"/>
18
                                                        <xs:choice>
19
                                                                <xs:element name="CNPJ" type="TCnpj"/>
20
                                                                <xs:element name="CPF" type="TCpf"/>
21
                                                                <xs:element name="idEstrangeiro">
22
                                                                        <xs:annotation>
23
                                                                                <xs:documentation>Identificador do destinatário, em caso de comprador estrangeiro</xs:documentation>
24
                                                                        </xs:annotation>
25
                                                                        <xs:simpleType>
26
                                                                                <xs:restriction base="xs:string">
27
                                                                                        <xs:whiteSpace value="preserve"/>
28
                                                                                        <xs:pattern value="([!-ÿ]{0}|[!-ÿ]{5,20})?"/>
29
                                                                                </xs:restriction>
30
                                                                        </xs:simpleType>
31
                                                                </xs:element>
32
                                                        </xs:choice>
33
                                                        <xs:element ref="IE" minOccurs="0"/>
34
                                                        <xs:element ref="vNF"/>
35
                                                        <xs:element ref="vICMS"/>
36
                                                        <xs:element ref="vST"/>
37
                                                </xs:sequence>
38
                                        </xs:complexType>
39
                                </xs:element>
40
                        </xs:sequence>
41
                        <xs:attribute name="versao" use="required">
42
                                <xs:simpleType>
43
                                        <xs:restriction base="xs:string">
44
                                                <xs:whiteSpace value="preserve"/>
45
                                                <xs:enumeration value="1.00"/>
46
                                        </xs:restriction>
47
                                </xs:simpleType>
48
                        </xs:attribute>
49
                </xs:complexType>
50
        </xs:element>
51
        <xs:element name="descEvento">
52
                <xs:simpleType>
53
                        <xs:restriction base="xs:string">
54
                                <xs:whiteSpace value="preserve"/>
55
                                <xs:enumeration value="EPEC"/>
56
                        </xs:restriction>
57
                </xs:simpleType>
58
        </xs:element>
59
        <xs:element name="tpAutor">
60
                <xs:annotation>
61
                        <xs:documentation>Neste evento, aceitar apenas 1. 1=Empresa Emitente; 2=Empresa Destinatária; 3=Empresa; 5=Fisco; 6=RFB; 9=Outros Órgãos</xs:documentation>
62
                </xs:annotation>
63
                <xs:simpleType>
64
                        <xs:restriction base="xs:string">
65
                                <xs:whiteSpace value="preserve"/>
66
                                <xs:enumeration value="1"/>
67
                        </xs:restriction>
68
                </xs:simpleType>
69
        </xs:element>
70
        <xs:element name="verAplic" type="TVerAplic">
71
                <xs:annotation>
72
                        <xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
73
                </xs:annotation>
74
        </xs:element>
75
        <xs:element name="dhEmi" type="TDateTimeUTC">
76
                <xs:annotation>
77
                        <xs:documentation>Data de emissão no formato UTC.  AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
78
                </xs:annotation>
79
        </xs:element>
80
        <xs:element name="tpNF">
81
                <xs:annotation>
82
                        <xs:documentation>Tipo do Documento Fiscal (0 - entrada; 1 - saída)</xs:documentation>
83
                </xs:annotation>
84
                <xs:simpleType>
85
                        <xs:restriction base="xs:string">
86
                                <xs:whiteSpace value="preserve"/>
87
                                <xs:enumeration value="0"/>
88
                                <xs:enumeration value="1"/>
89
                        </xs:restriction>
90
                </xs:simpleType>
91
        </xs:element>
92
        <xs:element name="cOrgaoAutor" type="TCodUfIBGE"/>
93
        <xs:element name="IE">
94
                <xs:annotation>
95
                        <xs:documentation>Informar a IE. Para IE do destinatário somente quando o contribuinte possuir uma inscrição estadual</xs:documentation>
96
                </xs:annotation>
97
                <xs:simpleType>
98
                        <xs:restriction base="xs:string">
99
                                <xs:whiteSpace value="preserve"/>
100
                                <xs:pattern value="[0-9]{2,14}"/>
101
                        </xs:restriction>
102
                </xs:simpleType>
103
        </xs:element>
104
        <xs:element name="UF" type="TUf">
105
                <xs:annotation>
106
                        <xs:documentation>Sigla UF do destinatário. Informar "EX" no caso de operação com o exterior</xs:documentation>
107
                </xs:annotation>
108
        </xs:element>
109
        <xs:element name="vNF" type="TDec_1302">
110
                <xs:annotation>
111
                        <xs:documentation>Valor total da NF-e</xs:documentation>
112
                </xs:annotation>
113
        </xs:element>
114
        <xs:element name="vICMS" type="TDec_1302">
115
                <xs:annotation>
116
                        <xs:documentation>Valor total do ICMS</xs:documentation>
117
                </xs:annotation>
118
        </xs:element>
119
        <xs:element name="vST" type="TDec_1302">
120
                <xs:annotation>
121
                        <xs:documentation>Valor total do ICMS de Substituição Tributária</xs:documentation>
122
                </xs:annotation>
123
        </xs:element>
124
</xs:schema>