-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathevCTeRegPassagem_v3.00.xsd
More file actions
145 lines (145 loc) · 5.43 KB
/
evCTeRegPassagem_v3.00.xsd
File metadata and controls
145 lines (145 loc) · 5.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/cte" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://www.portalfiscal.inf.br/cte" targetNamespace="http://www.portalfiscal.inf.br/cte" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="eventoCTeTiposBasico_v3.00.xsd"/>
<xs:element name="evCTeRegPassagem">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de Registro de Passagem do CT-e 310620 </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="descEvento">
<xs:annotation>
<xs:documentation>Descrição do Evento - “Registro de Passagem”</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="Registro de Passagem"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cUFTransito" type="TCodUfIBGE">
<xs:annotation>
<xs:documentation>Informar o código da UF onde foi registrada a passagem. Deverá ser utilizada a tabela do IBGE.</xs:documentation>
<xs:documentation>Informar 'EX' para operações com o exterior.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="cUnidFiscal">
<xs:annotation>
<xs:documentation>Código da Unidade Fiscal</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{4}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="xUnidFiscal">
<xs:annotation>
<xs:documentation>Nome da Unidade Fiscal</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="60"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dhPass" type="TDateTimeUTC">
<xs:annotation>
<xs:documentation>Data e hora do Registro de Passagem</xs:documentation>
<xs:documentation>Formato AAAA-MM-DDTHH:MM:DD</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CPFFunc" type="TCpf">
<xs:annotation>
<xs:documentation>Identificação do funcionário responsável pelo registro de passagem</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xFunc">
<xs:annotation>
<xs:documentation>Nome do funcionário responsável pelo registro de passagem</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:minLength value="1"/>
<xs:maxLength value="60"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="tpTransm">
<xs:annotation>
<xs:documentation>Tipo de Transmissão: N – Normal; A – Atrasada</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="N"/>
<xs:enumeration value="A"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="tpSentido">
<xs:annotation>
<xs:documentation>Sentido da Passagem:
E – Entrada; S – Saída; I - Indeterminado
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="E"/>
<xs:enumeration value="S"/>
<xs:enumeration value="I"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="latitude" type="TLatitude" minOccurs="0">
<xs:annotation>
<xs:documentation>Latitude do ponto geográfico onde foi registrada a passagem</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="longitude" type="TLongitude" minOccurs="0">
<xs:annotation>
<xs:documentation>Latitude do ponto geográfico onde foi registrada a passagem</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="placa" minOccurs="0">
<xs:annotation>
<xs:documentation>Placa do Veiculo de Tracao</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TPlaca"/>
</xs:simpleType>
</xs:element>
<xs:element name="SegCodBarras" minOccurs="0">
<xs:annotation>
<xs:documentation>Segundo código de barras do CT-e em contingência</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{36}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="chMDFe" type="TChNFe" minOccurs="0">
<xs:annotation>
<xs:documentation>Chave de Acesso do MDF-e que originou o registro</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="xObs" minOccurs="0">
<xs:annotation>
<xs:documentation>Informações complementares do Fisco de Registro de Passagem</xs:documentation>
<xs:documentation>Norma referenciada, informações complementares, etc</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:maxLength value="2000"/>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>