ghinfe 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +24 -15
- package/LICENSE +21 -21
- package/README.md +491 -413
- package/docs/developer-guide.html +421 -421
- package/docs/openapi.yaml +428 -428
- package/examples/dce-homologacao.js +141 -0
- package/examples/emitir-nfce.js +51 -51
- package/examples/emitir-nfe.js +83 -83
- package/examples/emitir-nfse.js +46 -46
- package/examples/endpoints-sefaz.js +14 -14
- package/examples/eventos-nfe.js +49 -49
- package/examples/gerar-chave.js +25 -25
- package/examples/gerar-dace.js +59 -0
- package/examples/gerar-danfe.js +75 -75
- package/examples/gerar-dce.js +58 -0
- package/examples/layouts-nfse.js +51 -51
- package/examples/mock-sefaz.js +52 -52
- package/examples/nfse-eventos.js +57 -57
- package/examples/reforma-ibscbs.js +27 -27
- package/examples/reforma-nfe-xml.js +52 -52
- package/examples/status-sefaz.js +12 -12
- package/examples/validar-xsd.js +48 -48
- package/package.json +59 -68
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consSitDCeTiposBasico_v1.00.xsd +123 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consSitDCe_v1.00.xsd +10 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consStatServDCeTiposBasico_v1.00.xsd +110 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consStatServDCe_v1.00.xsd +10 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/dceTiposBasico_v1.00.xsd +1388 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/retConsSitDCe_v1.00.xsd +10 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/retConsStatServDCe_v1.00.xsd +10 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/tiposGeralDCe_v1.00.xsd +712 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/xmldsig-core-schema_v1.01.xsd +98 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/dceTiposBasico_v1.00.xsd +1410 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/dce_v1.00.xsd +10 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/evento/evCancDCe_v1.00.xsd +36 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/evento/eventoDCeTiposBasico_v1.00.xsd +283 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/evento/eventoDCe_v1.00.xsd +9 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/evento/procEventoDCe_v1.00.xsd +10 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/evento/retEventoDCe_v1.00.xsd +9 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/evento/tiposGeralDCe_v1.00.xsd +712 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/evento/xmldsig-core-schema_v1.01.xsd +98 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/procDCe_v1.00.xsd +37 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/retDCe_v1.00.xsd +9 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/tiposGeralDCe_v1.00.xsd +712 -0
- package/schemas/dce/PL_DCe_100a_NT2024.001/xmldsig-core-schema_v1.01.xsd +98 -0
- package/schemas/nfe/PL_009_V4/enviNFe_v3.10.xsd +8 -8
- package/schemas/nfe/PL_009_V4/xmldsig-core-schema_v1.01.xsd +97 -97
- package/scripts/download-schemas.js +39 -39
- package/scripts/test-xsd.js +34 -34
- package/src/api/server.js +316 -316
- package/src/constants/sefaz.js +69 -69
- package/src/danfe/DanfeService.js +205 -205
- package/src/danfe/xml-extract.js +69 -69
- package/src/dce/builders/DCeEventoXmlBuilder.js +86 -0
- package/src/dce/builders/DCeXmlBuilder.js +345 -0
- package/src/dce/constants/dce.js +87 -0
- package/src/dce/dace/DaceService.js +356 -0
- package/src/dce/dace/dace-extract.js +114 -0
- package/src/dce/services/DCeService.js +263 -0
- package/src/dce/services/DCeSoapService.js +235 -0
- package/src/dce/services/DCeXmlService.js +67 -0
- package/src/dce/types/DCeDocument.js +106 -0
- package/src/dce/utils/qrcode.utils.js +59 -0
- package/src/errors/GhinfeError.js +13 -13
- package/src/errors/SefazError.js +25 -25
- package/src/errors/XsdValidationError.js +15 -15
- package/src/index.js +84 -60
- package/src/nfce/builders/NFCeXmlBuilder.js +178 -178
- package/src/nfce/constants/qrcode.js +26 -26
- package/src/nfce/services/NFCeService.js +188 -188
- package/src/nfce/services/NFCeXmlService.js +38 -38
- package/src/nfce/types/NFCeDocument.js +42 -42
- package/src/nfce/utils/qrcode.utils.js +92 -92
- package/src/nfe/builders/NFeEventoXmlBuilder.js +110 -110
- package/src/nfe/builders/NFeXmlBuilder.js +215 -215
- package/src/nfe/mocks/sefaz-responses.js +195 -195
- package/src/nfe/services/NFeEventoService.js +95 -95
- package/src/nfe/services/NFeService.js +196 -196
- package/src/nfe/services/NFeSignService.js +127 -111
- package/src/nfe/services/NFeSoapService.js +437 -437
- package/src/nfe/services/NFeXmlService.js +41 -41
- package/src/nfe/services/NFeXsdService.js +56 -56
- package/src/nfe/types/NFeDocument.js +92 -92
- package/src/nfe/types/NFeEvento.js +44 -44
- package/src/nfse/NFSeMunicipioResolver.js +42 -42
- package/src/nfse/builders/NFSeEventoXmlBuilder.js +92 -92
- package/src/nfse/builders/NFSeXmlBuilder.js +16 -16
- package/src/nfse/constants/municipios.js +82 -82
- package/src/nfse/layouts/adapters.js +202 -202
- package/src/nfse/mocks/nfse-responses.js +142 -142
- package/src/nfse/services/NFSeService.js +191 -191
- package/src/nfse/services/NFSeSoapService.js +232 -232
- package/src/nfse/services/NFSeXmlService.js +12 -12
- package/src/nfse/types/NFSeDocument.js +54 -54
- package/src/queue/NFCeQueue.js +63 -63
- package/src/queue/NFSeQueue.js +59 -59
- package/src/queue/NFeQueue.js +76 -76
- package/src/reforma/ibscbs.js +175 -175
- package/src/sefaz/SefazEndpointResolver.js +95 -95
- package/src/sefaz/ca/icp-brasil-raiz-v10.pem +38 -0
- package/src/sefaz/endpoints.registry.js +205 -205
- package/src/sefaz/httpsAgent.js +33 -0
- package/src/shared/fiscal.helpers.js +53 -53
- package/src/utils/certificate.utils.js +69 -47
- package/src/utils/chave.utils.js +205 -117
- package/src/utils/code128.utils.js +67 -0
- package/src/utils/date.utils.js +26 -26
- package/src/utils/xml.utils.js +44 -44
- package/src/validation/XsdValidator.js +133 -114
- package/src/validation/schemas.js +18 -14
|
@@ -0,0 +1,1410 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- edited with XMLSpy v2024 (x64) (http://www.altova.com) by sefa (REPR - RECEITA ESTADUAL DO PARANA) -->
|
|
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/dce" targetNamespace="http://www.portalfiscal.inf.br/dce" 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="tiposGeralDCe_v1.00.xsd"/>
|
|
6
|
+
<xs:complexType name="TDCe">
|
|
7
|
+
<xs:annotation>
|
|
8
|
+
<xs:documentation>Tipo Declaração de Conteúdo Eletrônica</xs:documentation>
|
|
9
|
+
</xs:annotation>
|
|
10
|
+
<xs:sequence>
|
|
11
|
+
<xs:element name="infDCe">
|
|
12
|
+
<xs:annotation>
|
|
13
|
+
<xs:documentation>Informações da DCe</xs:documentation>
|
|
14
|
+
</xs:annotation>
|
|
15
|
+
<xs:complexType>
|
|
16
|
+
<xs:sequence>
|
|
17
|
+
<xs:element name="ide">
|
|
18
|
+
<xs:annotation>
|
|
19
|
+
<xs:documentation>Identificação da DCe</xs:documentation>
|
|
20
|
+
</xs:annotation>
|
|
21
|
+
<xs:complexType>
|
|
22
|
+
<xs:sequence>
|
|
23
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
|
24
|
+
<xs:annotation>
|
|
25
|
+
<xs:documentation>Código da UF de emissão e autorização da DCe</xs:documentation>
|
|
26
|
+
<xs:documentation>Código da UF de emissão e autorização do Documento Fiscal. Utilizar a
|
|
27
|
+
Tabela do IBGE de código de unidades da federação</xs:documentation>
|
|
28
|
+
</xs:annotation>
|
|
29
|
+
</xs:element>
|
|
30
|
+
<xs:element name="cDC">
|
|
31
|
+
<xs:annotation>
|
|
32
|
+
<xs:documentation>Código numérico que compõe a Chave de Acesso.</xs:documentation>
|
|
33
|
+
<xs:documentation>Código aleatório gerado pelo emitente, com o objetivo de evitar acessos indevidos ao documento</xs:documentation>
|
|
34
|
+
</xs:annotation>
|
|
35
|
+
<xs:simpleType>
|
|
36
|
+
<xs:restriction base="xs:string">
|
|
37
|
+
<xs:whiteSpace value="preserve"/>
|
|
38
|
+
<xs:pattern value="[0-9]{6}"/>
|
|
39
|
+
</xs:restriction>
|
|
40
|
+
</xs:simpleType>
|
|
41
|
+
</xs:element>
|
|
42
|
+
<xs:element name="mod" type="TModDCe">
|
|
43
|
+
<xs:annotation>
|
|
44
|
+
<xs:documentation>Modelo da DCe</xs:documentation>
|
|
45
|
+
<xs:documentation>Utilizar o código 99 para identificação da DCe</xs:documentation>
|
|
46
|
+
</xs:annotation>
|
|
47
|
+
</xs:element>
|
|
48
|
+
<xs:element name="serie" type="TSerie">
|
|
49
|
+
<xs:annotation>
|
|
50
|
+
<xs:documentation>Série do documento fiscal</xs:documentation>
|
|
51
|
+
<xs:documentation>Informar a série do documento fiscal (informar zero para série única)</xs:documentation>
|
|
52
|
+
</xs:annotation>
|
|
53
|
+
</xs:element>
|
|
54
|
+
<xs:element name="nDC" type="TNF">
|
|
55
|
+
<xs:annotation>
|
|
56
|
+
<xs:documentation>Número do documento fiscal</xs:documentation>
|
|
57
|
+
<xs:documentation>Número que identifica o documento fiscal 1 a 999999999</xs:documentation>
|
|
58
|
+
</xs:annotation>
|
|
59
|
+
</xs:element>
|
|
60
|
+
<xs:element name="dhEmi" type="TDateTimeUTC">
|
|
61
|
+
<xs:annotation>
|
|
62
|
+
<xs:documentation>Data e hora de emissão do documento fiscal</xs:documentation>
|
|
63
|
+
<xs:documentation>Formato UTC (AAAA-MM-DDThh:mm:ssTZD, onde TZD = +hh:mm ou -hh:mm)</xs:documentation>
|
|
64
|
+
</xs:annotation>
|
|
65
|
+
</xs:element>
|
|
66
|
+
<xs:element name="tpEmis" type="TtpEmis">
|
|
67
|
+
<xs:annotation>
|
|
68
|
+
<xs:documentation>Forma de emissão do Documento Fiscal</xs:documentation>
|
|
69
|
+
<xs:documentation>1 - Normal (não contingência); 9 - Contingência off-line da DCe</xs:documentation>
|
|
70
|
+
</xs:annotation>
|
|
71
|
+
</xs:element>
|
|
72
|
+
<xs:element name="tpEmit">
|
|
73
|
+
<xs:annotation>
|
|
74
|
+
<xs:documentation>Tipo do Emitente da DCe</xs:documentation>
|
|
75
|
+
<xs:documentation>0 - App Fisco
|
|
76
|
+
1 - Marketplace
|
|
77
|
+
2 - Emissor próprio
|
|
78
|
+
3 - Transportadora
|
|
79
|
+
4 - ECT
|
|
80
|
+
</xs:documentation>
|
|
81
|
+
</xs:annotation>
|
|
82
|
+
<xs:simpleType>
|
|
83
|
+
<xs:restriction base="xs:string">
|
|
84
|
+
<xs:whiteSpace value="preserve"/>
|
|
85
|
+
<xs:minLength value="1"/>
|
|
86
|
+
<xs:maxLength value="1"/>
|
|
87
|
+
<xs:pattern value="[0-4]{1}"/>
|
|
88
|
+
</xs:restriction>
|
|
89
|
+
</xs:simpleType>
|
|
90
|
+
</xs:element>
|
|
91
|
+
<xs:element name="nSiteAutoriz">
|
|
92
|
+
<xs:annotation>
|
|
93
|
+
<xs:documentation>Identificação do número do Site do Autorizador de recepção da DCe</xs:documentation>
|
|
94
|
+
<xs:documentation>Se o autorizador da DCe possuir apenas um site deverá ser informado com Zero (0), em caso de Autorizador trabalhar com múltiplos sites indicar o número do site para qual foi endereçada a DCE (1 a 9).
|
|
95
|
+
|
|
96
|
+
Observação: o ambiente autorizador que trabalhar com mais de um Site deverá divulgar para cada endereço de site qual número correspondente de nSiteAutoriz o contribuinte pode usar</xs:documentation>
|
|
97
|
+
</xs:annotation>
|
|
98
|
+
<xs:simpleType>
|
|
99
|
+
<xs:restriction base="xs:string">
|
|
100
|
+
<xs:whiteSpace value="preserve"/>
|
|
101
|
+
<xs:pattern value="[0-9]{1}"/>
|
|
102
|
+
</xs:restriction>
|
|
103
|
+
</xs:simpleType>
|
|
104
|
+
</xs:element>
|
|
105
|
+
<xs:element name="cDV">
|
|
106
|
+
<xs:annotation>
|
|
107
|
+
<xs:documentation>Digito verificador da chave de acesso</xs:documentation>
|
|
108
|
+
<xs:documentation>Informar o dígito de controle da chave de acesso documento fiscal, que deve ser calculado com a aplicação do algoritmo módulo 11 (base 2,9) da chave de acesso</xs:documentation>
|
|
109
|
+
</xs:annotation>
|
|
110
|
+
<xs:simpleType>
|
|
111
|
+
<xs:restriction base="xs:string">
|
|
112
|
+
<xs:whiteSpace value="preserve"/>
|
|
113
|
+
<xs:pattern value="[0-9]{1}"/>
|
|
114
|
+
</xs:restriction>
|
|
115
|
+
</xs:simpleType>
|
|
116
|
+
</xs:element>
|
|
117
|
+
<xs:element name="tpAmb" type="TAmb">
|
|
118
|
+
<xs:annotation>
|
|
119
|
+
<xs:documentation>Tipo do Ambiente</xs:documentation>
|
|
120
|
+
<xs:documentation>1 - Produção
|
|
121
|
+
2 - Homologação</xs:documentation>
|
|
122
|
+
</xs:annotation>
|
|
123
|
+
</xs:element>
|
|
124
|
+
<xs:element name="verProc">
|
|
125
|
+
<xs:annotation>
|
|
126
|
+
<xs:documentation>Versão do processo de emissão</xs:documentation>
|
|
127
|
+
<xs:documentation>Informar a versão do aplicativo emissor de DCe</xs:documentation>
|
|
128
|
+
</xs:annotation>
|
|
129
|
+
<xs:simpleType>
|
|
130
|
+
<xs:restriction base="TString">
|
|
131
|
+
<xs:minLength value="1"/>
|
|
132
|
+
<xs:maxLength value="20"/>
|
|
133
|
+
</xs:restriction>
|
|
134
|
+
</xs:simpleType>
|
|
135
|
+
</xs:element>
|
|
136
|
+
</xs:sequence>
|
|
137
|
+
</xs:complexType>
|
|
138
|
+
</xs:element>
|
|
139
|
+
<xs:element name="emit">
|
|
140
|
+
<xs:annotation>
|
|
141
|
+
<xs:documentation>Identificação da DCe</xs:documentation>
|
|
142
|
+
</xs:annotation>
|
|
143
|
+
<xs:complexType>
|
|
144
|
+
<xs:sequence>
|
|
145
|
+
<xs:choice>
|
|
146
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
|
147
|
+
<xs:annotation>
|
|
148
|
+
<xs:documentation>Número do CNPJ do emitente</xs:documentation>
|
|
149
|
+
</xs:annotation>
|
|
150
|
+
</xs:element>
|
|
151
|
+
<xs:element name="CPF" type="TCpf">
|
|
152
|
+
<xs:annotation>
|
|
153
|
+
<xs:documentation>Número do CPF do emitente</xs:documentation>
|
|
154
|
+
<xs:documentation>Informar os zeros não significativos</xs:documentation>
|
|
155
|
+
</xs:annotation>
|
|
156
|
+
</xs:element>
|
|
157
|
+
<xs:element name="idOutros">
|
|
158
|
+
<xs:annotation>
|
|
159
|
+
<xs:documentation>Identificação do destinatário outros</xs:documentation>
|
|
160
|
+
<xs:documentation>Identificação do emitente não obrigado a inscrição do CPF ou CNPJ tais como estrangeiro, indígena e quilombola. Observação: Campo aceita algarismos, letras (maiúsculas e minúsculas) e os caracteres do conjunto que segue: [:.+-/()]</xs:documentation>
|
|
161
|
+
</xs:annotation>
|
|
162
|
+
<xs:simpleType>
|
|
163
|
+
<xs:restriction base="xs:string">
|
|
164
|
+
<xs:whiteSpace value="preserve"/>
|
|
165
|
+
<xs:minLength value="2"/>
|
|
166
|
+
<xs:maxLength value="20"/>
|
|
167
|
+
<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{2,20})?"/>
|
|
168
|
+
</xs:restriction>
|
|
169
|
+
</xs:simpleType>
|
|
170
|
+
</xs:element>
|
|
171
|
+
</xs:choice>
|
|
172
|
+
<xs:element name="xNome">
|
|
173
|
+
<xs:annotation>
|
|
174
|
+
<xs:documentation>Razão social ou Nome do emitente</xs:documentation>
|
|
175
|
+
</xs:annotation>
|
|
176
|
+
<xs:simpleType>
|
|
177
|
+
<xs:restriction base="TString">
|
|
178
|
+
<xs:maxLength value="60"/>
|
|
179
|
+
<xs:minLength value="2"/>
|
|
180
|
+
</xs:restriction>
|
|
181
|
+
</xs:simpleType>
|
|
182
|
+
</xs:element>
|
|
183
|
+
<xs:element name="enderEmit" type="TEndeEmi">
|
|
184
|
+
<xs:annotation>
|
|
185
|
+
<xs:documentation>Endereço do emitente</xs:documentation>
|
|
186
|
+
</xs:annotation>
|
|
187
|
+
</xs:element>
|
|
188
|
+
</xs:sequence>
|
|
189
|
+
</xs:complexType>
|
|
190
|
+
</xs:element>
|
|
191
|
+
<xs:choice minOccurs="0">
|
|
192
|
+
<xs:element name="Fisco">
|
|
193
|
+
<xs:annotation>
|
|
194
|
+
<xs:documentation>Identificação do Fisco (uso exclusivo fisco)</xs:documentation>
|
|
195
|
+
</xs:annotation>
|
|
196
|
+
<xs:complexType>
|
|
197
|
+
<xs:sequence>
|
|
198
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
|
199
|
+
<xs:annotation>
|
|
200
|
+
<xs:documentation>Número do CNPJ do órgão</xs:documentation>
|
|
201
|
+
</xs:annotation>
|
|
202
|
+
</xs:element>
|
|
203
|
+
<xs:element name="xOrgao">
|
|
204
|
+
<xs:annotation>
|
|
205
|
+
<xs:documentation>Nome do órgão</xs:documentation>
|
|
206
|
+
</xs:annotation>
|
|
207
|
+
<xs:simpleType>
|
|
208
|
+
<xs:restriction base="TString">
|
|
209
|
+
<xs:maxLength value="60"/>
|
|
210
|
+
<xs:minLength value="2"/>
|
|
211
|
+
</xs:restriction>
|
|
212
|
+
</xs:simpleType>
|
|
213
|
+
</xs:element>
|
|
214
|
+
<xs:element name="UF" type="TUf">
|
|
215
|
+
<xs:annotation>
|
|
216
|
+
<xs:documentation>Sigla da UF</xs:documentation>
|
|
217
|
+
</xs:annotation>
|
|
218
|
+
</xs:element>
|
|
219
|
+
</xs:sequence>
|
|
220
|
+
</xs:complexType>
|
|
221
|
+
</xs:element>
|
|
222
|
+
<xs:element name="Marketplace">
|
|
223
|
+
<xs:annotation>
|
|
224
|
+
<xs:documentation>Identificação do Marketplace (uso exclusivo Marketplace)</xs:documentation>
|
|
225
|
+
</xs:annotation>
|
|
226
|
+
<xs:complexType>
|
|
227
|
+
<xs:sequence>
|
|
228
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
|
229
|
+
<xs:annotation>
|
|
230
|
+
<xs:documentation>Número do CNPJ do Marketplace</xs:documentation>
|
|
231
|
+
</xs:annotation>
|
|
232
|
+
</xs:element>
|
|
233
|
+
<xs:element name="xNome">
|
|
234
|
+
<xs:annotation>
|
|
235
|
+
<xs:documentation>Razão Social ou Nome do Marketplace</xs:documentation>
|
|
236
|
+
</xs:annotation>
|
|
237
|
+
<xs:simpleType>
|
|
238
|
+
<xs:restriction base="TString">
|
|
239
|
+
<xs:maxLength value="60"/>
|
|
240
|
+
<xs:minLength value="2"/>
|
|
241
|
+
</xs:restriction>
|
|
242
|
+
</xs:simpleType>
|
|
243
|
+
</xs:element>
|
|
244
|
+
<xs:element name="Site">
|
|
245
|
+
<xs:annotation>
|
|
246
|
+
<xs:documentation>Endereço ou site do Marketplace</xs:documentation>
|
|
247
|
+
</xs:annotation>
|
|
248
|
+
<xs:simpleType>
|
|
249
|
+
<xs:restriction base="TString">
|
|
250
|
+
<xs:maxLength value="120"/>
|
|
251
|
+
<xs:minLength value="2"/>
|
|
252
|
+
</xs:restriction>
|
|
253
|
+
</xs:simpleType>
|
|
254
|
+
</xs:element>
|
|
255
|
+
</xs:sequence>
|
|
256
|
+
</xs:complexType>
|
|
257
|
+
</xs:element>
|
|
258
|
+
<xs:element name="Transportadora">
|
|
259
|
+
<xs:annotation>
|
|
260
|
+
<xs:documentation>Identificação da Transportadora (uso exclusivo Transportadora)</xs:documentation>
|
|
261
|
+
</xs:annotation>
|
|
262
|
+
<xs:complexType>
|
|
263
|
+
<xs:sequence>
|
|
264
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
|
265
|
+
<xs:annotation>
|
|
266
|
+
<xs:documentation>Número do CNPJ da Transportadora</xs:documentation>
|
|
267
|
+
</xs:annotation>
|
|
268
|
+
</xs:element>
|
|
269
|
+
<xs:element name="xNome">
|
|
270
|
+
<xs:annotation>
|
|
271
|
+
<xs:documentation>Razão Social ou Nome da Transportadora</xs:documentation>
|
|
272
|
+
</xs:annotation>
|
|
273
|
+
<xs:simpleType>
|
|
274
|
+
<xs:restriction base="TString">
|
|
275
|
+
<xs:maxLength value="60"/>
|
|
276
|
+
<xs:minLength value="2"/>
|
|
277
|
+
</xs:restriction>
|
|
278
|
+
</xs:simpleType>
|
|
279
|
+
</xs:element>
|
|
280
|
+
</xs:sequence>
|
|
281
|
+
</xs:complexType>
|
|
282
|
+
</xs:element>
|
|
283
|
+
<xs:element name="ECT">
|
|
284
|
+
<xs:annotation>
|
|
285
|
+
<xs:documentation>Identificação dos correios</xs:documentation>
|
|
286
|
+
</xs:annotation>
|
|
287
|
+
<xs:complexType>
|
|
288
|
+
<xs:sequence>
|
|
289
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
|
290
|
+
<xs:annotation>
|
|
291
|
+
<xs:documentation>Número do CNPJ dos correios</xs:documentation>
|
|
292
|
+
</xs:annotation>
|
|
293
|
+
</xs:element>
|
|
294
|
+
<xs:element name="xNome">
|
|
295
|
+
<xs:annotation>
|
|
296
|
+
<xs:documentation>Razão Social ou Nome dos correios</xs:documentation>
|
|
297
|
+
</xs:annotation>
|
|
298
|
+
<xs:simpleType>
|
|
299
|
+
<xs:restriction base="TString">
|
|
300
|
+
<xs:maxLength value="60"/>
|
|
301
|
+
<xs:minLength value="2"/>
|
|
302
|
+
</xs:restriction>
|
|
303
|
+
</xs:simpleType>
|
|
304
|
+
</xs:element>
|
|
305
|
+
</xs:sequence>
|
|
306
|
+
</xs:complexType>
|
|
307
|
+
</xs:element>
|
|
308
|
+
</xs:choice>
|
|
309
|
+
<xs:element name="dest">
|
|
310
|
+
<xs:annotation>
|
|
311
|
+
<xs:documentation>Identificação do destinatário da DCe</xs:documentation>
|
|
312
|
+
</xs:annotation>
|
|
313
|
+
<xs:complexType>
|
|
314
|
+
<xs:sequence>
|
|
315
|
+
<xs:choice>
|
|
316
|
+
<xs:element name="CNPJ" type="TCnpjOpc">
|
|
317
|
+
<xs:annotation>
|
|
318
|
+
<xs:documentation>Número do CNPJ</xs:documentation>
|
|
319
|
+
<xs:documentation>Em caso de empresa não estabelecida no Brasil, será informado o CNPJ com zeros.
|
|
320
|
+
Informar os zeros não significativos</xs:documentation>
|
|
321
|
+
</xs:annotation>
|
|
322
|
+
</xs:element>
|
|
323
|
+
<xs:element name="CPF" type="TCpf">
|
|
324
|
+
<xs:annotation>
|
|
325
|
+
<xs:documentation>Número do CPF</xs:documentation>
|
|
326
|
+
<xs:documentation>Informar os zeros não significativos</xs:documentation>
|
|
327
|
+
</xs:annotation>
|
|
328
|
+
</xs:element>
|
|
329
|
+
<xs:element name="idOutros">
|
|
330
|
+
<xs:annotation>
|
|
331
|
+
<xs:documentation>Identificação do destinatário outros</xs:documentation>
|
|
332
|
+
<xs:documentation>Identificação do destinatário não obrigado a inscrição do CPF tais como estrangeiro, indígena e quilombola;
|
|
333
|
+
Em caso de não contar CPF do assinante, informar o RG</xs:documentation>
|
|
334
|
+
</xs:annotation>
|
|
335
|
+
<xs:simpleType>
|
|
336
|
+
<xs:restriction base="xs:string">
|
|
337
|
+
<xs:whiteSpace value="preserve"/>
|
|
338
|
+
<xs:minLength value="2"/>
|
|
339
|
+
<xs:maxLength value="20"/>
|
|
340
|
+
<xs:pattern value="([!-ÿ]{0}|[!-ÿ]{2,20})?"/>
|
|
341
|
+
</xs:restriction>
|
|
342
|
+
</xs:simpleType>
|
|
343
|
+
</xs:element>
|
|
344
|
+
</xs:choice>
|
|
345
|
+
<xs:element name="xNome">
|
|
346
|
+
<xs:annotation>
|
|
347
|
+
<xs:documentation>Razão social ou Nome do destinatário</xs:documentation>
|
|
348
|
+
</xs:annotation>
|
|
349
|
+
<xs:simpleType>
|
|
350
|
+
<xs:restriction base="TString">
|
|
351
|
+
<xs:maxLength value="60"/>
|
|
352
|
+
<xs:minLength value="2"/>
|
|
353
|
+
</xs:restriction>
|
|
354
|
+
</xs:simpleType>
|
|
355
|
+
</xs:element>
|
|
356
|
+
<xs:element name="enderDest" type="TEndeDest">
|
|
357
|
+
<xs:annotation>
|
|
358
|
+
<xs:documentation>Endereço do destinatário / assinante</xs:documentation>
|
|
359
|
+
</xs:annotation>
|
|
360
|
+
</xs:element>
|
|
361
|
+
</xs:sequence>
|
|
362
|
+
</xs:complexType>
|
|
363
|
+
</xs:element>
|
|
364
|
+
<xs:element name="autXML" minOccurs="0" maxOccurs="10">
|
|
365
|
+
<xs:annotation>
|
|
366
|
+
<xs:documentation>Autorizados para acessar o XML da DCe</xs:documentation>
|
|
367
|
+
<xs:documentation>Informar CNPJ ou CPF. Preencher os zeros não significativos</xs:documentation>
|
|
368
|
+
</xs:annotation>
|
|
369
|
+
<xs:complexType>
|
|
370
|
+
<xs:sequence>
|
|
371
|
+
<xs:choice>
|
|
372
|
+
<xs:element name="CNPJ" type="TCnpj">
|
|
373
|
+
<xs:annotation>
|
|
374
|
+
<xs:documentation>CNPJ do autorizado</xs:documentation>
|
|
375
|
+
<xs:documentation>Informar zeros não significativos</xs:documentation>
|
|
376
|
+
</xs:annotation>
|
|
377
|
+
</xs:element>
|
|
378
|
+
<xs:element name="CPF" type="TCpf">
|
|
379
|
+
<xs:annotation>
|
|
380
|
+
<xs:documentation>CPF do autorizado</xs:documentation>
|
|
381
|
+
<xs:documentation>Informar zeros não significativos</xs:documentation>
|
|
382
|
+
</xs:annotation>
|
|
383
|
+
</xs:element>
|
|
384
|
+
</xs:choice>
|
|
385
|
+
</xs:sequence>
|
|
386
|
+
</xs:complexType>
|
|
387
|
+
</xs:element>
|
|
388
|
+
<xs:element name="det" maxOccurs="999">
|
|
389
|
+
<xs:annotation>
|
|
390
|
+
<xs:documentation>Detalhamento de itens da DCe</xs:documentation>
|
|
391
|
+
</xs:annotation>
|
|
392
|
+
<xs:complexType>
|
|
393
|
+
<xs:sequence>
|
|
394
|
+
<xs:element name="prod">
|
|
395
|
+
<xs:annotation>
|
|
396
|
+
<xs:documentation>Dados do Produto ou Serviço</xs:documentation>
|
|
397
|
+
</xs:annotation>
|
|
398
|
+
<xs:complexType>
|
|
399
|
+
<xs:sequence>
|
|
400
|
+
<xs:element name="xProd">
|
|
401
|
+
<xs:annotation>
|
|
402
|
+
<xs:documentation>Descrição do produto, bem ou mercadoria</xs:documentation>
|
|
403
|
+
</xs:annotation>
|
|
404
|
+
<xs:simpleType>
|
|
405
|
+
<xs:restriction base="TString">
|
|
406
|
+
<xs:maxLength value="120"/>
|
|
407
|
+
<xs:minLength value="1"/>
|
|
408
|
+
</xs:restriction>
|
|
409
|
+
</xs:simpleType>
|
|
410
|
+
</xs:element>
|
|
411
|
+
<xs:element name="NCM">
|
|
412
|
+
<xs:annotation>
|
|
413
|
+
<xs:documentation>Código NCM</xs:documentation>
|
|
414
|
+
<xs:documentation>Capítulo do Código NCM com 2 dígitos ou NCM completo</xs:documentation>
|
|
415
|
+
</xs:annotation>
|
|
416
|
+
<xs:simpleType>
|
|
417
|
+
<xs:restriction base="xs:string">
|
|
418
|
+
<xs:whiteSpace value="preserve"/>
|
|
419
|
+
<xs:pattern value="[0-9]{2}|[0-9]{8}"/>
|
|
420
|
+
</xs:restriction>
|
|
421
|
+
</xs:simpleType>
|
|
422
|
+
</xs:element>
|
|
423
|
+
<xs:element name="qCom" type="TDec_1104Opc">
|
|
424
|
+
<xs:annotation>
|
|
425
|
+
<xs:documentation>Quantidade</xs:documentation>
|
|
426
|
+
</xs:annotation>
|
|
427
|
+
</xs:element>
|
|
428
|
+
<xs:element name="vUnCom">
|
|
429
|
+
<xs:annotation>
|
|
430
|
+
<xs:documentation>Valor unitário do item</xs:documentation>
|
|
431
|
+
</xs:annotation>
|
|
432
|
+
<xs:simpleType>
|
|
433
|
+
<xs:restriction base="TDec_1302_1308"/>
|
|
434
|
+
</xs:simpleType>
|
|
435
|
+
</xs:element>
|
|
436
|
+
<xs:element name="vProd">
|
|
437
|
+
<xs:annotation>
|
|
438
|
+
<xs:documentation>Valor total brutp do item</xs:documentation>
|
|
439
|
+
</xs:annotation>
|
|
440
|
+
<xs:simpleType>
|
|
441
|
+
<xs:restriction base="TDec_1302_1308"/>
|
|
442
|
+
</xs:simpleType>
|
|
443
|
+
</xs:element>
|
|
444
|
+
</xs:sequence>
|
|
445
|
+
</xs:complexType>
|
|
446
|
+
</xs:element>
|
|
447
|
+
<xs:element name="infAdProd" minOccurs="0">
|
|
448
|
+
<xs:annotation>
|
|
449
|
+
<xs:documentation>Informações adicionais do item</xs:documentation>
|
|
450
|
+
</xs:annotation>
|
|
451
|
+
<xs:simpleType>
|
|
452
|
+
<xs:restriction base="TString">
|
|
453
|
+
<xs:minLength value="1"/>
|
|
454
|
+
<xs:maxLength value="500"/>
|
|
455
|
+
</xs:restriction>
|
|
456
|
+
</xs:simpleType>
|
|
457
|
+
</xs:element>
|
|
458
|
+
</xs:sequence>
|
|
459
|
+
<xs:attribute name="nItem" use="required">
|
|
460
|
+
<xs:annotation>
|
|
461
|
+
<xs:documentation>Número do item da DCe</xs:documentation>
|
|
462
|
+
</xs:annotation>
|
|
463
|
+
<xs:simpleType>
|
|
464
|
+
<xs:restriction base="xs:string">
|
|
465
|
+
<xs:whiteSpace value="preserve"/>
|
|
466
|
+
<xs:pattern value="[1-9]{1}[0-9]{0,3}"/>
|
|
467
|
+
</xs:restriction>
|
|
468
|
+
</xs:simpleType>
|
|
469
|
+
</xs:attribute>
|
|
470
|
+
</xs:complexType>
|
|
471
|
+
</xs:element>
|
|
472
|
+
<xs:element name="total">
|
|
473
|
+
<xs:annotation>
|
|
474
|
+
<xs:documentation>Dados dos totais da DCe</xs:documentation>
|
|
475
|
+
</xs:annotation>
|
|
476
|
+
<xs:complexType>
|
|
477
|
+
<xs:sequence>
|
|
478
|
+
<xs:element name="vDC" type="TDec_1302">
|
|
479
|
+
<xs:annotation>
|
|
480
|
+
<xs:documentation>Valor Total da DCe</xs:documentation>
|
|
481
|
+
</xs:annotation>
|
|
482
|
+
</xs:element>
|
|
483
|
+
</xs:sequence>
|
|
484
|
+
</xs:complexType>
|
|
485
|
+
</xs:element>
|
|
486
|
+
<xs:element name="transp">
|
|
487
|
+
<xs:annotation>
|
|
488
|
+
<xs:documentation>Dados dos transportes da DCe</xs:documentation>
|
|
489
|
+
</xs:annotation>
|
|
490
|
+
<xs:complexType>
|
|
491
|
+
<xs:sequence>
|
|
492
|
+
<xs:element name="modTrans">
|
|
493
|
+
<xs:annotation>
|
|
494
|
+
<xs:documentation>Modalidade do transporte</xs:documentation>
|
|
495
|
+
<xs:documentation>0 - Transporte pelos correios;
|
|
496
|
+
1 - Transporte por contra própria;
|
|
497
|
+
2 - Transporte por empresa transportadora
|
|
498
|
+
</xs:documentation>
|
|
499
|
+
</xs:annotation>
|
|
500
|
+
<xs:simpleType>
|
|
501
|
+
<xs:restriction base="xs:string">
|
|
502
|
+
<xs:whiteSpace value="preserve"/>
|
|
503
|
+
<xs:enumeration value="0"/>
|
|
504
|
+
<xs:enumeration value="1"/>
|
|
505
|
+
<xs:enumeration value="2"/>
|
|
506
|
+
</xs:restriction>
|
|
507
|
+
</xs:simpleType>
|
|
508
|
+
</xs:element>
|
|
509
|
+
<xs:element name="CNPJTransp" type="TCnpjOpc">
|
|
510
|
+
<xs:annotation>
|
|
511
|
+
<xs:documentation>Número do CNPJ da Transportadora</xs:documentation>
|
|
512
|
+
</xs:annotation>
|
|
513
|
+
</xs:element>
|
|
514
|
+
</xs:sequence>
|
|
515
|
+
</xs:complexType>
|
|
516
|
+
</xs:element>
|
|
517
|
+
<xs:element name="infAdic" minOccurs="0">
|
|
518
|
+
<xs:annotation>
|
|
519
|
+
<xs:documentation>Informações Adicionais</xs:documentation>
|
|
520
|
+
</xs:annotation>
|
|
521
|
+
<xs:complexType>
|
|
522
|
+
<xs:sequence>
|
|
523
|
+
<xs:annotation>
|
|
524
|
+
<xs:documentation>Sequencia XML</xs:documentation>
|
|
525
|
+
</xs:annotation>
|
|
526
|
+
<xs:element name="infAdFisco" minOccurs="0">
|
|
527
|
+
<xs:annotation>
|
|
528
|
+
<xs:documentation>Informações adicionais de interesse do Fisco</xs:documentation>
|
|
529
|
+
<xs:documentation>Norma referenciada, informações complementares, etc</xs:documentation>
|
|
530
|
+
</xs:annotation>
|
|
531
|
+
<xs:simpleType>
|
|
532
|
+
<xs:restriction base="TString">
|
|
533
|
+
<xs:maxLength value="2000"/>
|
|
534
|
+
<xs:minLength value="1"/>
|
|
535
|
+
</xs:restriction>
|
|
536
|
+
</xs:simpleType>
|
|
537
|
+
</xs:element>
|
|
538
|
+
<xs:element name="infCpl" minOccurs="0">
|
|
539
|
+
<xs:annotation>
|
|
540
|
+
<xs:documentation>Informações complementares de interesse do Emitente</xs:documentation>
|
|
541
|
+
</xs:annotation>
|
|
542
|
+
<xs:simpleType>
|
|
543
|
+
<xs:restriction base="TString">
|
|
544
|
+
<xs:minLength value="1"/>
|
|
545
|
+
<xs:maxLength value="5000"/>
|
|
546
|
+
</xs:restriction>
|
|
547
|
+
</xs:simpleType>
|
|
548
|
+
</xs:element>
|
|
549
|
+
<xs:element name="infAdMarketplace" minOccurs="0">
|
|
550
|
+
<xs:annotation>
|
|
551
|
+
<xs:documentation>Informações Adicionais do MarketPlace</xs:documentation>
|
|
552
|
+
</xs:annotation>
|
|
553
|
+
<xs:simpleType>
|
|
554
|
+
<xs:restriction base="TString">
|
|
555
|
+
<xs:minLength value="1"/>
|
|
556
|
+
<xs:maxLength value="5000"/>
|
|
557
|
+
</xs:restriction>
|
|
558
|
+
</xs:simpleType>
|
|
559
|
+
</xs:element>
|
|
560
|
+
<xs:element name="infAdECT" minOccurs="0">
|
|
561
|
+
<xs:annotation>
|
|
562
|
+
<xs:documentation>Informações Adicionais do Correio</xs:documentation>
|
|
563
|
+
</xs:annotation>
|
|
564
|
+
<xs:simpleType>
|
|
565
|
+
<xs:restriction base="TString">
|
|
566
|
+
<xs:minLength value="1"/>
|
|
567
|
+
<xs:maxLength value="5000"/>
|
|
568
|
+
</xs:restriction>
|
|
569
|
+
</xs:simpleType>
|
|
570
|
+
</xs:element>
|
|
571
|
+
<xs:element name="obsEmit" minOccurs="0" maxOccurs="10">
|
|
572
|
+
<xs:annotation>
|
|
573
|
+
<xs:documentation>Grupo Campo de uso livre do Emitente</xs:documentation>
|
|
574
|
+
<xs:documentation>Informar o nome do campo no atributo xCampo e o conteúdo do campo no xTexto</xs:documentation>
|
|
575
|
+
</xs:annotation>
|
|
576
|
+
<xs:complexType>
|
|
577
|
+
<xs:sequence>
|
|
578
|
+
<xs:annotation>
|
|
579
|
+
<xs:documentation>Sequencia XML</xs:documentation>
|
|
580
|
+
</xs:annotation>
|
|
581
|
+
<xs:element name="xTexto">
|
|
582
|
+
<xs:annotation>
|
|
583
|
+
<xs:documentation>Conteúdo do Campo</xs:documentation>
|
|
584
|
+
</xs:annotation>
|
|
585
|
+
<xs:simpleType>
|
|
586
|
+
<xs:restriction base="TString">
|
|
587
|
+
<xs:minLength value="1"/>
|
|
588
|
+
<xs:maxLength value="60"/>
|
|
589
|
+
</xs:restriction>
|
|
590
|
+
</xs:simpleType>
|
|
591
|
+
</xs:element>
|
|
592
|
+
</xs:sequence>
|
|
593
|
+
<xs:attribute name="xCampo"/>
|
|
594
|
+
</xs:complexType>
|
|
595
|
+
</xs:element>
|
|
596
|
+
<xs:element name="obsFisco" minOccurs="0" maxOccurs="10">
|
|
597
|
+
<xs:annotation>
|
|
598
|
+
<xs:documentation>Grupo Campo de uso livre do Fisco</xs:documentation>
|
|
599
|
+
<xs:documentation>Informar o nome do campo no atributo xCampo e o conteúdo do campo no xTexto</xs:documentation>
|
|
600
|
+
</xs:annotation>
|
|
601
|
+
<xs:complexType>
|
|
602
|
+
<xs:sequence>
|
|
603
|
+
<xs:annotation>
|
|
604
|
+
<xs:documentation>Sequencia XML</xs:documentation>
|
|
605
|
+
</xs:annotation>
|
|
606
|
+
<xs:element name="xTexto">
|
|
607
|
+
<xs:annotation>
|
|
608
|
+
<xs:documentation>Conteúdo do Campo</xs:documentation>
|
|
609
|
+
</xs:annotation>
|
|
610
|
+
<xs:simpleType>
|
|
611
|
+
<xs:restriction base="TString">
|
|
612
|
+
<xs:minLength value="1"/>
|
|
613
|
+
<xs:maxLength value="60"/>
|
|
614
|
+
</xs:restriction>
|
|
615
|
+
</xs:simpleType>
|
|
616
|
+
</xs:element>
|
|
617
|
+
</xs:sequence>
|
|
618
|
+
<xs:attribute name="xCampo"/>
|
|
619
|
+
</xs:complexType>
|
|
620
|
+
</xs:element>
|
|
621
|
+
<xs:element name="obsMarketplace" minOccurs="0" maxOccurs="10">
|
|
622
|
+
<xs:annotation>
|
|
623
|
+
<xs:documentation>Grupo Campo de uso livre do MarketPlace</xs:documentation>
|
|
624
|
+
<xs:documentation>Informar o nome do campo no atributo xCampo e o conteúdo do campo no xTexto</xs:documentation>
|
|
625
|
+
</xs:annotation>
|
|
626
|
+
<xs:complexType>
|
|
627
|
+
<xs:sequence>
|
|
628
|
+
<xs:annotation>
|
|
629
|
+
<xs:documentation>Sequencia XML</xs:documentation>
|
|
630
|
+
</xs:annotation>
|
|
631
|
+
<xs:element name="xTexto">
|
|
632
|
+
<xs:annotation>
|
|
633
|
+
<xs:documentation>Conteúdo do Campo</xs:documentation>
|
|
634
|
+
</xs:annotation>
|
|
635
|
+
<xs:simpleType>
|
|
636
|
+
<xs:restriction base="TString">
|
|
637
|
+
<xs:minLength value="1"/>
|
|
638
|
+
<xs:maxLength value="60"/>
|
|
639
|
+
</xs:restriction>
|
|
640
|
+
</xs:simpleType>
|
|
641
|
+
</xs:element>
|
|
642
|
+
</xs:sequence>
|
|
643
|
+
<xs:attribute name="xCampo"/>
|
|
644
|
+
</xs:complexType>
|
|
645
|
+
</xs:element>
|
|
646
|
+
<xs:element name="obsECT" minOccurs="0" maxOccurs="10">
|
|
647
|
+
<xs:annotation>
|
|
648
|
+
<xs:documentation>Grupo Campo de uso livre dos Correios</xs:documentation>
|
|
649
|
+
<xs:documentation>Informar o nome do campo no atributo xCampo e o conteúdo do campo no xTexto</xs:documentation>
|
|
650
|
+
</xs:annotation>
|
|
651
|
+
<xs:complexType>
|
|
652
|
+
<xs:sequence>
|
|
653
|
+
<xs:annotation>
|
|
654
|
+
<xs:documentation>Sequencia XML</xs:documentation>
|
|
655
|
+
</xs:annotation>
|
|
656
|
+
<xs:element name="xTexto">
|
|
657
|
+
<xs:annotation>
|
|
658
|
+
<xs:documentation>Conteúdo do Campo</xs:documentation>
|
|
659
|
+
</xs:annotation>
|
|
660
|
+
<xs:simpleType>
|
|
661
|
+
<xs:restriction base="TString">
|
|
662
|
+
<xs:minLength value="1"/>
|
|
663
|
+
<xs:maxLength value="60"/>
|
|
664
|
+
</xs:restriction>
|
|
665
|
+
</xs:simpleType>
|
|
666
|
+
</xs:element>
|
|
667
|
+
</xs:sequence>
|
|
668
|
+
<xs:attribute name="xCampo"/>
|
|
669
|
+
</xs:complexType>
|
|
670
|
+
</xs:element>
|
|
671
|
+
</xs:sequence>
|
|
672
|
+
</xs:complexType>
|
|
673
|
+
</xs:element>
|
|
674
|
+
<xs:element name="infDec">
|
|
675
|
+
<xs:annotation>
|
|
676
|
+
<xs:documentation>Grupo para Declaraçao do usuário emitente</xs:documentation>
|
|
677
|
+
</xs:annotation>
|
|
678
|
+
<xs:complexType>
|
|
679
|
+
<xs:sequence>
|
|
680
|
+
<xs:annotation>
|
|
681
|
+
<xs:documentation>Sequencia XML</xs:documentation>
|
|
682
|
+
</xs:annotation>
|
|
683
|
+
<xs:element name="xObs1">
|
|
684
|
+
<xs:annotation>
|
|
685
|
+
<xs:documentation>Observação 1 ao usuário emitente</xs:documentation>
|
|
686
|
+
<xs:documentation>Deverá conter o texto fixo “É contribuinte de ICMS qualquer pessoa física ou jurídica, que realize, com habitualidade ou em volume que caracterize intuito comercial, operações de circulação de mercadoria ou prestações de serviços de transportes interestadual e intermunicipal e de comunicação, ainda que as operações e prestações de iniciem no exterior (Lei Complementar nº 87/96, Art. 4º)”</xs:documentation>
|
|
687
|
+
</xs:annotation>
|
|
688
|
+
<xs:simpleType>
|
|
689
|
+
<xs:restriction base="TString">
|
|
690
|
+
<xs:maxLength value="2000"/>
|
|
691
|
+
<xs:minLength value="1"/>
|
|
692
|
+
</xs:restriction>
|
|
693
|
+
</xs:simpleType>
|
|
694
|
+
</xs:element>
|
|
695
|
+
<xs:element name="xObs2">
|
|
696
|
+
<xs:annotation>
|
|
697
|
+
<xs:documentation>Observação 2 ao usuário emitente</xs:documentation>
|
|
698
|
+
<xs:documentation>Deverá conter o texto fixo “Constitui crime contra a ordem tributária suprimir ou reduzir tributo, ou contribuição social e qualquer acessório: quando negar ou deixar de fornecer, quando obrigatório, nota fiscal ou documento equivalente, relativa a venda de mercadoria ou prestação de serviço, efetivamente realizada ou fornece-la em desacordo com a legislação. Sob pena de reclusão de 2 (dois) e 5 (cinco) anos, e multa (Lei 8.137/90, Art 1ª, V)”.</xs:documentation>
|
|
699
|
+
</xs:annotation>
|
|
700
|
+
<xs:simpleType>
|
|
701
|
+
<xs:restriction base="TString">
|
|
702
|
+
<xs:maxLength value="5000"/>
|
|
703
|
+
<xs:minLength value="1"/>
|
|
704
|
+
</xs:restriction>
|
|
705
|
+
</xs:simpleType>
|
|
706
|
+
</xs:element>
|
|
707
|
+
</xs:sequence>
|
|
708
|
+
</xs:complexType>
|
|
709
|
+
</xs:element>
|
|
710
|
+
</xs:sequence>
|
|
711
|
+
<xs:attribute name="versao" type="TVerDCe" use="required">
|
|
712
|
+
<xs:annotation>
|
|
713
|
+
<xs:documentation>Versão do leiaute</xs:documentation>
|
|
714
|
+
</xs:annotation>
|
|
715
|
+
</xs:attribute>
|
|
716
|
+
<xs:attribute name="Id" use="required">
|
|
717
|
+
<xs:annotation>
|
|
718
|
+
<xs:documentation>Identificador da tag a ser assinada</xs:documentation>
|
|
719
|
+
<xs:documentation>Informar a chave de acesso precedida do literal "DCe"</xs:documentation>
|
|
720
|
+
</xs:annotation>
|
|
721
|
+
<xs:simpleType>
|
|
722
|
+
<xs:restriction base="xs:ID">
|
|
723
|
+
<xs:pattern value="DCe(1[1-7]{1}|2[1-9]{1}|3[1-3]{1}|3[5]{1}|4[1-3]{1}|5[0-3]{1})[0-9]{42}"/>
|
|
724
|
+
</xs:restriction>
|
|
725
|
+
</xs:simpleType>
|
|
726
|
+
</xs:attribute>
|
|
727
|
+
</xs:complexType>
|
|
728
|
+
<xs:unique name="pk_nItem">
|
|
729
|
+
<xs:selector xpath="./*"/>
|
|
730
|
+
<xs:field xpath="@nItem"/>
|
|
731
|
+
</xs:unique>
|
|
732
|
+
</xs:element>
|
|
733
|
+
<xs:element name="infSolicDCe">
|
|
734
|
+
<xs:annotation>
|
|
735
|
+
<xs:documentation>Informações de solicitação da DCe pelo Fisco</xs:documentation>
|
|
736
|
+
</xs:annotation>
|
|
737
|
+
<xs:complexType>
|
|
738
|
+
<xs:sequence>
|
|
739
|
+
<xs:element name="xSolic">
|
|
740
|
+
<xs:annotation>
|
|
741
|
+
<xs:documentation>Solicitação do pedido de emissão da DCe </xs:documentation>
|
|
742
|
+
</xs:annotation>
|
|
743
|
+
<xs:simpleType>
|
|
744
|
+
<xs:restriction base="xs:string">
|
|
745
|
+
<xs:whiteSpace value="preserve"/>
|
|
746
|
+
<xs:minLength value="0"/>
|
|
747
|
+
<xs:maxLength value="2000"/>
|
|
748
|
+
</xs:restriction>
|
|
749
|
+
</xs:simpleType>
|
|
750
|
+
</xs:element>
|
|
751
|
+
</xs:sequence>
|
|
752
|
+
</xs:complexType>
|
|
753
|
+
</xs:element>
|
|
754
|
+
<xs:element name="infDCeSupl">
|
|
755
|
+
<xs:annotation>
|
|
756
|
+
<xs:documentation>Informações suplementares da DCe</xs:documentation>
|
|
757
|
+
</xs:annotation>
|
|
758
|
+
<xs:complexType>
|
|
759
|
+
<xs:sequence>
|
|
760
|
+
<xs:element name="qrCodDCe">
|
|
761
|
+
<xs:annotation>
|
|
762
|
+
<xs:documentation>Texto com o QR-Code impresso da DCe</xs:documentation>
|
|
763
|
+
</xs:annotation>
|
|
764
|
+
<xs:simpleType>
|
|
765
|
+
<xs:restriction base="xs:string">
|
|
766
|
+
<xs:whiteSpace value="preserve"/>
|
|
767
|
+
<xs:minLength value="94"/>
|
|
768
|
+
<xs:maxLength value="600"/>
|
|
769
|
+
<xs:pattern value="((HTTPS?|https?)://.*\?chDCe=(1[1-7]{1}|2[1-9]{1}|3[1-3]{1}|3[5]{1}|4[1-3]{1}|5[0-3]{1})[0-9]{42}&tpAmb=[1-2](&sign=[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1})?)"/>
|
|
770
|
+
</xs:restriction>
|
|
771
|
+
</xs:simpleType>
|
|
772
|
+
</xs:element>
|
|
773
|
+
<xs:element name="urlChave">
|
|
774
|
+
<xs:annotation>
|
|
775
|
+
<xs:documentation>URL para consulta chave de acesso</xs:documentation>
|
|
776
|
+
</xs:annotation>
|
|
777
|
+
<xs:simpleType>
|
|
778
|
+
<xs:restriction base="xs:string">
|
|
779
|
+
<xs:whiteSpace value="preserve"/>
|
|
780
|
+
<xs:minLength value="21"/>
|
|
781
|
+
<xs:maxLength value="85"/>
|
|
782
|
+
</xs:restriction>
|
|
783
|
+
</xs:simpleType>
|
|
784
|
+
</xs:element>
|
|
785
|
+
</xs:sequence>
|
|
786
|
+
</xs:complexType>
|
|
787
|
+
</xs:element>
|
|
788
|
+
<xs:element ref="ds:Signature"/>
|
|
789
|
+
</xs:sequence>
|
|
790
|
+
</xs:complexType>
|
|
791
|
+
<xs:complexType name="TEndeEmi">
|
|
792
|
+
<xs:annotation>
|
|
793
|
+
<xs:documentation>Tipo Dados do Endereço</xs:documentation>
|
|
794
|
+
</xs:annotation>
|
|
795
|
+
<xs:sequence>
|
|
796
|
+
<xs:element name="xLgr">
|
|
797
|
+
<xs:annotation>
|
|
798
|
+
<xs:documentation>Logradouro</xs:documentation>
|
|
799
|
+
</xs:annotation>
|
|
800
|
+
<xs:simpleType>
|
|
801
|
+
<xs:restriction base="TString">
|
|
802
|
+
<xs:maxLength value="60"/>
|
|
803
|
+
<xs:minLength value="2"/>
|
|
804
|
+
</xs:restriction>
|
|
805
|
+
</xs:simpleType>
|
|
806
|
+
</xs:element>
|
|
807
|
+
<xs:element name="nro">
|
|
808
|
+
<xs:annotation>
|
|
809
|
+
<xs:documentation>Número</xs:documentation>
|
|
810
|
+
</xs:annotation>
|
|
811
|
+
<xs:simpleType>
|
|
812
|
+
<xs:restriction base="TString">
|
|
813
|
+
<xs:maxLength value="60"/>
|
|
814
|
+
<xs:minLength value="1"/>
|
|
815
|
+
</xs:restriction>
|
|
816
|
+
</xs:simpleType>
|
|
817
|
+
</xs:element>
|
|
818
|
+
<xs:element name="xCpl" minOccurs="0">
|
|
819
|
+
<xs:annotation>
|
|
820
|
+
<xs:documentation>Complemento</xs:documentation>
|
|
821
|
+
</xs:annotation>
|
|
822
|
+
<xs:simpleType>
|
|
823
|
+
<xs:restriction base="TString">
|
|
824
|
+
<xs:maxLength value="60"/>
|
|
825
|
+
<xs:minLength value="1"/>
|
|
826
|
+
</xs:restriction>
|
|
827
|
+
</xs:simpleType>
|
|
828
|
+
</xs:element>
|
|
829
|
+
<xs:element name="xBairro">
|
|
830
|
+
<xs:annotation>
|
|
831
|
+
<xs:documentation>Bairro</xs:documentation>
|
|
832
|
+
</xs:annotation>
|
|
833
|
+
<xs:simpleType>
|
|
834
|
+
<xs:restriction base="TString">
|
|
835
|
+
<xs:maxLength value="60"/>
|
|
836
|
+
<xs:minLength value="2"/>
|
|
837
|
+
</xs:restriction>
|
|
838
|
+
</xs:simpleType>
|
|
839
|
+
</xs:element>
|
|
840
|
+
<xs:element name="cMun" type="TCodMunIBGE">
|
|
841
|
+
<xs:annotation>
|
|
842
|
+
<xs:documentation>Código do município (utilizar a tabela do IBGE)</xs:documentation>
|
|
843
|
+
</xs:annotation>
|
|
844
|
+
</xs:element>
|
|
845
|
+
<xs:element name="xMun">
|
|
846
|
+
<xs:annotation>
|
|
847
|
+
<xs:documentation>Nome do município</xs:documentation>
|
|
848
|
+
</xs:annotation>
|
|
849
|
+
<xs:simpleType>
|
|
850
|
+
<xs:restriction base="TString">
|
|
851
|
+
<xs:maxLength value="60"/>
|
|
852
|
+
<xs:minLength value="2"/>
|
|
853
|
+
</xs:restriction>
|
|
854
|
+
</xs:simpleType>
|
|
855
|
+
</xs:element>
|
|
856
|
+
<xs:element name="UF" type="TUf">
|
|
857
|
+
<xs:annotation>
|
|
858
|
+
<xs:documentation>Sigla da UF</xs:documentation>
|
|
859
|
+
</xs:annotation>
|
|
860
|
+
</xs:element>
|
|
861
|
+
<xs:element name="CEP">
|
|
862
|
+
<xs:annotation>
|
|
863
|
+
<xs:documentation>CEP</xs:documentation>
|
|
864
|
+
<xs:documentation>Informar zeros não significativos</xs:documentation>
|
|
865
|
+
</xs:annotation>
|
|
866
|
+
<xs:simpleType>
|
|
867
|
+
<xs:restriction base="xs:string">
|
|
868
|
+
<xs:whiteSpace value="preserve"/>
|
|
869
|
+
<xs:pattern value="[0-9]{8}"/>
|
|
870
|
+
</xs:restriction>
|
|
871
|
+
</xs:simpleType>
|
|
872
|
+
</xs:element>
|
|
873
|
+
<xs:element name="cPais">
|
|
874
|
+
<xs:annotation>
|
|
875
|
+
<xs:documentation>Código do País</xs:documentation>
|
|
876
|
+
<xs:documentation>1058=Brasil</xs:documentation>
|
|
877
|
+
</xs:annotation>
|
|
878
|
+
<xs:simpleType>
|
|
879
|
+
<xs:restriction base="TString">
|
|
880
|
+
<xs:enumeration value="1058"/>
|
|
881
|
+
</xs:restriction>
|
|
882
|
+
</xs:simpleType>
|
|
883
|
+
</xs:element>
|
|
884
|
+
<xs:element name="xPais">
|
|
885
|
+
<xs:annotation>
|
|
886
|
+
<xs:documentation>Nome do País exemplo: Brasil ou BRASIL</xs:documentation>
|
|
887
|
+
</xs:annotation>
|
|
888
|
+
<xs:simpleType>
|
|
889
|
+
<xs:restriction base="TString">
|
|
890
|
+
<xs:enumeration value="Brasil"/>
|
|
891
|
+
<xs:enumeration value="BRASIL"/>
|
|
892
|
+
</xs:restriction>
|
|
893
|
+
</xs:simpleType>
|
|
894
|
+
</xs:element>
|
|
895
|
+
<xs:element name="fone" minOccurs="0">
|
|
896
|
+
<xs:annotation>
|
|
897
|
+
<xs:documentation>Telefone</xs:documentation>
|
|
898
|
+
</xs:annotation>
|
|
899
|
+
<xs:simpleType>
|
|
900
|
+
<xs:restriction base="xs:string">
|
|
901
|
+
<xs:whiteSpace value="preserve"/>
|
|
902
|
+
<xs:pattern value="[0-9]{7,12}"/>
|
|
903
|
+
</xs:restriction>
|
|
904
|
+
</xs:simpleType>
|
|
905
|
+
</xs:element>
|
|
906
|
+
</xs:sequence>
|
|
907
|
+
</xs:complexType>
|
|
908
|
+
<xs:complexType name="TEndeDest">
|
|
909
|
+
<xs:annotation>
|
|
910
|
+
<xs:documentation>Tipo Dados do Endereço Destinatario</xs:documentation>
|
|
911
|
+
</xs:annotation>
|
|
912
|
+
<xs:sequence>
|
|
913
|
+
<xs:element name="xLgr">
|
|
914
|
+
<xs:annotation>
|
|
915
|
+
<xs:documentation>Logradouro</xs:documentation>
|
|
916
|
+
</xs:annotation>
|
|
917
|
+
<xs:simpleType>
|
|
918
|
+
<xs:restriction base="TString">
|
|
919
|
+
<xs:maxLength value="60"/>
|
|
920
|
+
<xs:minLength value="2"/>
|
|
921
|
+
</xs:restriction>
|
|
922
|
+
</xs:simpleType>
|
|
923
|
+
</xs:element>
|
|
924
|
+
<xs:element name="nro">
|
|
925
|
+
<xs:annotation>
|
|
926
|
+
<xs:documentation>Número</xs:documentation>
|
|
927
|
+
</xs:annotation>
|
|
928
|
+
<xs:simpleType>
|
|
929
|
+
<xs:restriction base="TString">
|
|
930
|
+
<xs:maxLength value="60"/>
|
|
931
|
+
<xs:minLength value="1"/>
|
|
932
|
+
</xs:restriction>
|
|
933
|
+
</xs:simpleType>
|
|
934
|
+
</xs:element>
|
|
935
|
+
<xs:element name="xCpl" minOccurs="0">
|
|
936
|
+
<xs:annotation>
|
|
937
|
+
<xs:documentation>Complemento</xs:documentation>
|
|
938
|
+
</xs:annotation>
|
|
939
|
+
<xs:simpleType>
|
|
940
|
+
<xs:restriction base="TString">
|
|
941
|
+
<xs:maxLength value="60"/>
|
|
942
|
+
<xs:minLength value="1"/>
|
|
943
|
+
</xs:restriction>
|
|
944
|
+
</xs:simpleType>
|
|
945
|
+
</xs:element>
|
|
946
|
+
<xs:element name="xBairro">
|
|
947
|
+
<xs:annotation>
|
|
948
|
+
<xs:documentation>Bairro</xs:documentation>
|
|
949
|
+
</xs:annotation>
|
|
950
|
+
<xs:simpleType>
|
|
951
|
+
<xs:restriction base="TString">
|
|
952
|
+
<xs:maxLength value="60"/>
|
|
953
|
+
<xs:minLength value="2"/>
|
|
954
|
+
</xs:restriction>
|
|
955
|
+
</xs:simpleType>
|
|
956
|
+
</xs:element>
|
|
957
|
+
<xs:element name="cMun" type="TCodMunIBGE">
|
|
958
|
+
<xs:annotation>
|
|
959
|
+
<xs:documentation>Código do município (utilizar a tabela do IBGE)</xs:documentation>
|
|
960
|
+
</xs:annotation>
|
|
961
|
+
</xs:element>
|
|
962
|
+
<xs:element name="xMun">
|
|
963
|
+
<xs:annotation>
|
|
964
|
+
<xs:documentation>Nome do município</xs:documentation>
|
|
965
|
+
</xs:annotation>
|
|
966
|
+
<xs:simpleType>
|
|
967
|
+
<xs:restriction base="TString">
|
|
968
|
+
<xs:maxLength value="60"/>
|
|
969
|
+
<xs:minLength value="2"/>
|
|
970
|
+
</xs:restriction>
|
|
971
|
+
</xs:simpleType>
|
|
972
|
+
</xs:element>
|
|
973
|
+
<xs:element name="UF" type="TUf">
|
|
974
|
+
<xs:annotation>
|
|
975
|
+
<xs:documentation>Sigla da UF</xs:documentation>
|
|
976
|
+
</xs:annotation>
|
|
977
|
+
</xs:element>
|
|
978
|
+
<xs:element name="CEP">
|
|
979
|
+
<xs:annotation>
|
|
980
|
+
<xs:documentation>CEP</xs:documentation>
|
|
981
|
+
<xs:documentation>Informar zeros não significativos</xs:documentation>
|
|
982
|
+
</xs:annotation>
|
|
983
|
+
<xs:simpleType>
|
|
984
|
+
<xs:restriction base="xs:string">
|
|
985
|
+
<xs:whiteSpace value="preserve"/>
|
|
986
|
+
<xs:pattern value="[0-9]{8}"/>
|
|
987
|
+
</xs:restriction>
|
|
988
|
+
</xs:simpleType>
|
|
989
|
+
</xs:element>
|
|
990
|
+
<xs:element name="cPais">
|
|
991
|
+
<xs:annotation>
|
|
992
|
+
<xs:documentation>Código do país</xs:documentation>
|
|
993
|
+
<xs:documentation>Utilizar a tabela do BACEN</xs:documentation>
|
|
994
|
+
</xs:annotation>
|
|
995
|
+
<xs:simpleType>
|
|
996
|
+
<xs:restriction base="xs:string">
|
|
997
|
+
<xs:whiteSpace value="preserve"/>
|
|
998
|
+
<xs:pattern value="[0-9]{1,4}"/>
|
|
999
|
+
</xs:restriction>
|
|
1000
|
+
</xs:simpleType>
|
|
1001
|
+
</xs:element>
|
|
1002
|
+
<xs:element name="xPais">
|
|
1003
|
+
<xs:annotation>
|
|
1004
|
+
<xs:documentation>Nome do país</xs:documentation>
|
|
1005
|
+
</xs:annotation>
|
|
1006
|
+
<xs:simpleType>
|
|
1007
|
+
<xs:restriction base="TString">
|
|
1008
|
+
<xs:maxLength value="60"/>
|
|
1009
|
+
<xs:minLength value="2"/>
|
|
1010
|
+
</xs:restriction>
|
|
1011
|
+
</xs:simpleType>
|
|
1012
|
+
</xs:element>
|
|
1013
|
+
<xs:element name="fone" minOccurs="0">
|
|
1014
|
+
<xs:annotation>
|
|
1015
|
+
<xs:documentation>Telefone</xs:documentation>
|
|
1016
|
+
</xs:annotation>
|
|
1017
|
+
<xs:simpleType>
|
|
1018
|
+
<xs:restriction base="xs:string">
|
|
1019
|
+
<xs:whiteSpace value="preserve"/>
|
|
1020
|
+
<xs:pattern value="[0-9]{7,12}"/>
|
|
1021
|
+
</xs:restriction>
|
|
1022
|
+
</xs:simpleType>
|
|
1023
|
+
</xs:element>
|
|
1024
|
+
<xs:element name="email" type="TEmail" minOccurs="0">
|
|
1025
|
+
<xs:annotation>
|
|
1026
|
+
<xs:documentation>Endereço de E-mail</xs:documentation>
|
|
1027
|
+
</xs:annotation>
|
|
1028
|
+
</xs:element>
|
|
1029
|
+
</xs:sequence>
|
|
1030
|
+
</xs:complexType>
|
|
1031
|
+
<xs:complexType name="TEndereco">
|
|
1032
|
+
<xs:annotation>
|
|
1033
|
+
<xs:documentation>Tipo Dados do Endereço</xs:documentation>
|
|
1034
|
+
</xs:annotation>
|
|
1035
|
+
<xs:sequence>
|
|
1036
|
+
<xs:element name="xLgr">
|
|
1037
|
+
<xs:annotation>
|
|
1038
|
+
<xs:documentation>Logradouro</xs:documentation>
|
|
1039
|
+
</xs:annotation>
|
|
1040
|
+
<xs:simpleType>
|
|
1041
|
+
<xs:restriction base="TString">
|
|
1042
|
+
<xs:maxLength value="255"/>
|
|
1043
|
+
<xs:minLength value="1"/>
|
|
1044
|
+
</xs:restriction>
|
|
1045
|
+
</xs:simpleType>
|
|
1046
|
+
</xs:element>
|
|
1047
|
+
<xs:element name="nro">
|
|
1048
|
+
<xs:annotation>
|
|
1049
|
+
<xs:documentation>Número</xs:documentation>
|
|
1050
|
+
</xs:annotation>
|
|
1051
|
+
<xs:simpleType>
|
|
1052
|
+
<xs:restriction base="TString">
|
|
1053
|
+
<xs:maxLength value="60"/>
|
|
1054
|
+
<xs:minLength value="1"/>
|
|
1055
|
+
</xs:restriction>
|
|
1056
|
+
</xs:simpleType>
|
|
1057
|
+
</xs:element>
|
|
1058
|
+
<xs:element name="xCpl" minOccurs="0">
|
|
1059
|
+
<xs:annotation>
|
|
1060
|
+
<xs:documentation>Complemento</xs:documentation>
|
|
1061
|
+
</xs:annotation>
|
|
1062
|
+
<xs:simpleType>
|
|
1063
|
+
<xs:restriction base="TString">
|
|
1064
|
+
<xs:maxLength value="60"/>
|
|
1065
|
+
<xs:minLength value="1"/>
|
|
1066
|
+
</xs:restriction>
|
|
1067
|
+
</xs:simpleType>
|
|
1068
|
+
</xs:element>
|
|
1069
|
+
<xs:element name="xBairro">
|
|
1070
|
+
<xs:annotation>
|
|
1071
|
+
<xs:documentation>Bairro</xs:documentation>
|
|
1072
|
+
</xs:annotation>
|
|
1073
|
+
<xs:simpleType>
|
|
1074
|
+
<xs:restriction base="TString">
|
|
1075
|
+
<xs:maxLength value="60"/>
|
|
1076
|
+
<xs:minLength value="1"/>
|
|
1077
|
+
</xs:restriction>
|
|
1078
|
+
</xs:simpleType>
|
|
1079
|
+
</xs:element>
|
|
1080
|
+
<xs:element name="cMun" type="TCodMunIBGE">
|
|
1081
|
+
<xs:annotation>
|
|
1082
|
+
<xs:documentation>Código do município (utilizar a tabela do IBGE), informar 9999999 para operações com o exterior</xs:documentation>
|
|
1083
|
+
</xs:annotation>
|
|
1084
|
+
</xs:element>
|
|
1085
|
+
<xs:element name="xMun">
|
|
1086
|
+
<xs:annotation>
|
|
1087
|
+
<xs:documentation>Nome do município, informar EXTERIOR para operações com o exterior</xs:documentation>
|
|
1088
|
+
</xs:annotation>
|
|
1089
|
+
<xs:simpleType>
|
|
1090
|
+
<xs:restriction base="TString">
|
|
1091
|
+
<xs:maxLength value="60"/>
|
|
1092
|
+
<xs:minLength value="1"/>
|
|
1093
|
+
</xs:restriction>
|
|
1094
|
+
</xs:simpleType>
|
|
1095
|
+
</xs:element>
|
|
1096
|
+
<xs:element name="CEP" minOccurs="0">
|
|
1097
|
+
<xs:annotation>
|
|
1098
|
+
<xs:documentation>CEP</xs:documentation>
|
|
1099
|
+
<xs:documentation>Informar os zeros não significativos</xs:documentation>
|
|
1100
|
+
</xs:annotation>
|
|
1101
|
+
<xs:simpleType>
|
|
1102
|
+
<xs:restriction base="xs:string">
|
|
1103
|
+
<xs:whiteSpace value="preserve"/>
|
|
1104
|
+
<xs:pattern value="[0-9]{8}"/>
|
|
1105
|
+
</xs:restriction>
|
|
1106
|
+
</xs:simpleType>
|
|
1107
|
+
</xs:element>
|
|
1108
|
+
<xs:element name="UF" type="TUf">
|
|
1109
|
+
<xs:annotation>
|
|
1110
|
+
<xs:documentation>Sigla da UF, informar EX para operações com o exterior</xs:documentation>
|
|
1111
|
+
</xs:annotation>
|
|
1112
|
+
</xs:element>
|
|
1113
|
+
<xs:element name="cPais" minOccurs="0">
|
|
1114
|
+
<xs:annotation>
|
|
1115
|
+
<xs:documentation>Código do país</xs:documentation>
|
|
1116
|
+
<xs:documentation>Utilizar a tabela do BACEN</xs:documentation>
|
|
1117
|
+
</xs:annotation>
|
|
1118
|
+
<xs:simpleType>
|
|
1119
|
+
<xs:restriction base="xs:string">
|
|
1120
|
+
<xs:whiteSpace value="preserve"/>
|
|
1121
|
+
<xs:pattern value="[0-9]{1,4}"/>
|
|
1122
|
+
</xs:restriction>
|
|
1123
|
+
</xs:simpleType>
|
|
1124
|
+
</xs:element>
|
|
1125
|
+
<xs:element name="xPais" minOccurs="0">
|
|
1126
|
+
<xs:annotation>
|
|
1127
|
+
<xs:documentation>Nome do país</xs:documentation>
|
|
1128
|
+
</xs:annotation>
|
|
1129
|
+
<xs:simpleType>
|
|
1130
|
+
<xs:restriction base="TString">
|
|
1131
|
+
<xs:maxLength value="60"/>
|
|
1132
|
+
<xs:minLength value="1"/>
|
|
1133
|
+
</xs:restriction>
|
|
1134
|
+
</xs:simpleType>
|
|
1135
|
+
</xs:element>
|
|
1136
|
+
<xs:element name="fone" minOccurs="0">
|
|
1137
|
+
<xs:annotation>
|
|
1138
|
+
<xs:documentation>Telefone</xs:documentation>
|
|
1139
|
+
</xs:annotation>
|
|
1140
|
+
<xs:simpleType>
|
|
1141
|
+
<xs:restriction base="xs:string">
|
|
1142
|
+
<xs:whiteSpace value="preserve"/>
|
|
1143
|
+
<xs:pattern value="[0-9]{7,12}"/>
|
|
1144
|
+
</xs:restriction>
|
|
1145
|
+
</xs:simpleType>
|
|
1146
|
+
</xs:element>
|
|
1147
|
+
<xs:element name="email" type="TEmail" minOccurs="0">
|
|
1148
|
+
<xs:annotation>
|
|
1149
|
+
<xs:documentation>Endereço de E-mail</xs:documentation>
|
|
1150
|
+
</xs:annotation>
|
|
1151
|
+
</xs:element>
|
|
1152
|
+
</xs:sequence>
|
|
1153
|
+
</xs:complexType>
|
|
1154
|
+
<xs:complexType name="TProtDCe">
|
|
1155
|
+
<xs:annotation>
|
|
1156
|
+
<xs:documentation>Tipo Protocolo de status resultado do processamento da DCe (Modelo 99)</xs:documentation>
|
|
1157
|
+
</xs:annotation>
|
|
1158
|
+
<xs:sequence>
|
|
1159
|
+
<xs:element name="infProt">
|
|
1160
|
+
<xs:annotation>
|
|
1161
|
+
<xs:documentation>Dados do protocolo de status</xs:documentation>
|
|
1162
|
+
</xs:annotation>
|
|
1163
|
+
<xs:complexType>
|
|
1164
|
+
<xs:sequence>
|
|
1165
|
+
<xs:element name="tpAmb" type="TAmb">
|
|
1166
|
+
<xs:annotation>
|
|
1167
|
+
<xs:documentation>Identificação do Ambiente:
|
|
1168
|
+
1 - Produção
|
|
1169
|
+
2 - Homologação</xs:documentation>
|
|
1170
|
+
</xs:annotation>
|
|
1171
|
+
</xs:element>
|
|
1172
|
+
<xs:element name="verAplic" type="TVerAplic">
|
|
1173
|
+
<xs:annotation>
|
|
1174
|
+
<xs:documentation>Versão do Aplicativo que processou a DCe</xs:documentation>
|
|
1175
|
+
</xs:annotation>
|
|
1176
|
+
</xs:element>
|
|
1177
|
+
<xs:element name="chDCe" type="TChDFe">
|
|
1178
|
+
<xs:annotation>
|
|
1179
|
+
<xs:documentation>Chave de acesso da DCe</xs:documentation>
|
|
1180
|
+
</xs:annotation>
|
|
1181
|
+
</xs:element>
|
|
1182
|
+
<xs:element name="dhRecbto" type="TDateTimeUTC">
|
|
1183
|
+
<xs:annotation>
|
|
1184
|
+
<xs:documentation>Data e hora de processamento, no formato AAAA-MM-DDTHH:MM:SS TZD</xs:documentation>
|
|
1185
|
+
</xs:annotation>
|
|
1186
|
+
</xs:element>
|
|
1187
|
+
<xs:element name="nProt" type="TProt" minOccurs="0">
|
|
1188
|
+
<xs:annotation>
|
|
1189
|
+
<xs:documentation>Número do Protocolo de Status da DCe</xs:documentation>
|
|
1190
|
+
</xs:annotation>
|
|
1191
|
+
</xs:element>
|
|
1192
|
+
<xs:element name="digVal" type="ds:DigestValueType" minOccurs="0">
|
|
1193
|
+
<xs:annotation>
|
|
1194
|
+
<xs:documentation>Digest Value da DCe processado. Utilizado para conferir a integridade da DCe original</xs:documentation>
|
|
1195
|
+
</xs:annotation>
|
|
1196
|
+
</xs:element>
|
|
1197
|
+
<xs:element name="cStat">
|
|
1198
|
+
<xs:annotation>
|
|
1199
|
+
<xs:documentation>Código do status da DCe</xs:documentation>
|
|
1200
|
+
</xs:annotation>
|
|
1201
|
+
<xs:simpleType>
|
|
1202
|
+
<xs:restriction base="TStat"/>
|
|
1203
|
+
</xs:simpleType>
|
|
1204
|
+
</xs:element>
|
|
1205
|
+
<xs:element name="xMotivo" type="TMotivo">
|
|
1206
|
+
<xs:annotation>
|
|
1207
|
+
<xs:documentation>Descrição literal do status da DCe</xs:documentation>
|
|
1208
|
+
</xs:annotation>
|
|
1209
|
+
</xs:element>
|
|
1210
|
+
</xs:sequence>
|
|
1211
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
|
1212
|
+
</xs:complexType>
|
|
1213
|
+
</xs:element>
|
|
1214
|
+
<xs:element name="infFisco" minOccurs="0">
|
|
1215
|
+
<xs:annotation>
|
|
1216
|
+
<xs:documentation>Mensagem do Fisco</xs:documentation>
|
|
1217
|
+
</xs:annotation>
|
|
1218
|
+
<xs:complexType>
|
|
1219
|
+
<xs:sequence>
|
|
1220
|
+
<xs:element name="cMsg">
|
|
1221
|
+
<xs:annotation>
|
|
1222
|
+
<xs:documentation>Código do status da mensagem do fisco</xs:documentation>
|
|
1223
|
+
</xs:annotation>
|
|
1224
|
+
<xs:simpleType>
|
|
1225
|
+
<xs:restriction base="TStat"/>
|
|
1226
|
+
</xs:simpleType>
|
|
1227
|
+
</xs:element>
|
|
1228
|
+
<xs:element name="xMsg" type="TMotivo">
|
|
1229
|
+
<xs:annotation>
|
|
1230
|
+
<xs:documentation>Mensagem do Fisco</xs:documentation>
|
|
1231
|
+
</xs:annotation>
|
|
1232
|
+
</xs:element>
|
|
1233
|
+
</xs:sequence>
|
|
1234
|
+
</xs:complexType>
|
|
1235
|
+
</xs:element>
|
|
1236
|
+
<xs:element ref="ds:Signature" minOccurs="0"/>
|
|
1237
|
+
</xs:sequence>
|
|
1238
|
+
<xs:attribute name="versao" type="TVerDCe" use="required"/>
|
|
1239
|
+
</xs:complexType>
|
|
1240
|
+
<xs:complexType name="TRetDCe">
|
|
1241
|
+
<xs:annotation>
|
|
1242
|
+
<xs:documentation>Tipo Retorno do Pedido de Autorização de DCe</xs:documentation>
|
|
1243
|
+
</xs:annotation>
|
|
1244
|
+
<xs:sequence>
|
|
1245
|
+
<xs:element name="tpAmb" type="TAmb">
|
|
1246
|
+
<xs:annotation>
|
|
1247
|
+
<xs:documentation>Identificação do Ambiente:
|
|
1248
|
+
1 - Produção
|
|
1249
|
+
2 - Homologação</xs:documentation>
|
|
1250
|
+
</xs:annotation>
|
|
1251
|
+
</xs:element>
|
|
1252
|
+
<xs:element name="verAplic" type="TVerAplic">
|
|
1253
|
+
<xs:annotation>
|
|
1254
|
+
<xs:documentation>Versão do Aplicativo que processou a DCe</xs:documentation>
|
|
1255
|
+
</xs:annotation>
|
|
1256
|
+
</xs:element>
|
|
1257
|
+
<xs:element name="cStat" type="TStat">
|
|
1258
|
+
<xs:annotation>
|
|
1259
|
+
<xs:documentation>código do status da resposta</xs:documentation>
|
|
1260
|
+
</xs:annotation>
|
|
1261
|
+
</xs:element>
|
|
1262
|
+
<xs:element name="xMotivo" type="TMotivo">
|
|
1263
|
+
<xs:annotation>
|
|
1264
|
+
<xs:documentation>Descrição literal do status do do retorno da consulta</xs:documentation>
|
|
1265
|
+
</xs:annotation>
|
|
1266
|
+
</xs:element>
|
|
1267
|
+
<xs:element name="cUF" type="TCodUfIBGE">
|
|
1268
|
+
<xs:annotation>
|
|
1269
|
+
<xs:documentation>Identificação da UF</xs:documentation>
|
|
1270
|
+
</xs:annotation>
|
|
1271
|
+
</xs:element>
|
|
1272
|
+
<xs:element name="dhRecbto" type="TDateTimeUTC">
|
|
1273
|
+
<xs:annotation>
|
|
1274
|
+
<xs:documentation>Preenchido com a data e hora do processamento (informado também no caso de rejeição).
|
|
1275
|
+
Formato: “AAAA-MM-DDThh:mm:ssTZD” (UTC – Universal Coordinated Time)</xs:documentation>
|
|
1276
|
+
</xs:annotation>
|
|
1277
|
+
</xs:element>
|
|
1278
|
+
<xs:element name="protDCe" type="TProtDCe" minOccurs="0">
|
|
1279
|
+
<xs:annotation>
|
|
1280
|
+
<xs:documentation>Resposta ao processamento da DCe</xs:documentation>
|
|
1281
|
+
</xs:annotation>
|
|
1282
|
+
</xs:element>
|
|
1283
|
+
</xs:sequence>
|
|
1284
|
+
<xs:attribute name="versao" type="TVerDCe" use="required"/>
|
|
1285
|
+
</xs:complexType>
|
|
1286
|
+
<xs:complexType name="TImp">
|
|
1287
|
+
<xs:annotation>
|
|
1288
|
+
<xs:documentation>Tipo Dados do Imposto DCe</xs:documentation>
|
|
1289
|
+
</xs:annotation>
|
|
1290
|
+
</xs:complexType>
|
|
1291
|
+
<xs:simpleType name="TProcEmi">
|
|
1292
|
+
<xs:annotation>
|
|
1293
|
+
<xs:documentation>Tipo processo de emissão do DCe</xs:documentation>
|
|
1294
|
+
</xs:annotation>
|
|
1295
|
+
<xs:restriction base="xs:string">
|
|
1296
|
+
<xs:whiteSpace value="preserve"/>
|
|
1297
|
+
<xs:enumeration value="0"/>
|
|
1298
|
+
<xs:enumeration value="3"/>
|
|
1299
|
+
</xs:restriction>
|
|
1300
|
+
</xs:simpleType>
|
|
1301
|
+
<xs:simpleType name="TVerDCe">
|
|
1302
|
+
<xs:annotation>
|
|
1303
|
+
<xs:documentation>Tipo Versão da DCe</xs:documentation>
|
|
1304
|
+
</xs:annotation>
|
|
1305
|
+
<xs:restriction base="xs:string">
|
|
1306
|
+
<xs:whiteSpace value="preserve"/>
|
|
1307
|
+
<xs:pattern value="1\.00"/>
|
|
1308
|
+
</xs:restriction>
|
|
1309
|
+
</xs:simpleType>
|
|
1310
|
+
<xs:simpleType name="TTime">
|
|
1311
|
+
<xs:annotation>
|
|
1312
|
+
<xs:documentation>Tipo hora</xs:documentation>
|
|
1313
|
+
</xs:annotation>
|
|
1314
|
+
<xs:restriction base="xs:string">
|
|
1315
|
+
<xs:whiteSpace value="preserve"/>
|
|
1316
|
+
<xs:pattern value="(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])"/>
|
|
1317
|
+
</xs:restriction>
|
|
1318
|
+
</xs:simpleType>
|
|
1319
|
+
<xs:simpleType name="TEmail">
|
|
1320
|
+
<xs:annotation>
|
|
1321
|
+
<xs:documentation>Tipo Email</xs:documentation>
|
|
1322
|
+
</xs:annotation>
|
|
1323
|
+
<xs:restriction base="xs:string">
|
|
1324
|
+
<xs:whiteSpace value="preserve"/>
|
|
1325
|
+
<xs:minLength value="1"/>
|
|
1326
|
+
<xs:maxLength value="60"/>
|
|
1327
|
+
<xs:pattern value="[^@]+@[^\.]+\..+"/>
|
|
1328
|
+
</xs:restriction>
|
|
1329
|
+
</xs:simpleType>
|
|
1330
|
+
<xs:simpleType name="TFinDCe">
|
|
1331
|
+
<xs:annotation>
|
|
1332
|
+
<xs:documentation>Finalidade da DCe</xs:documentation>
|
|
1333
|
+
<xs:documentation/>
|
|
1334
|
+
</xs:annotation>
|
|
1335
|
+
<xs:restriction base="xs:string">
|
|
1336
|
+
<xs:whiteSpace value="preserve"/>
|
|
1337
|
+
<xs:minLength value="1"/>
|
|
1338
|
+
<xs:maxLength value="1"/>
|
|
1339
|
+
<xs:enumeration value="0"/>
|
|
1340
|
+
<xs:enumeration value="3"/>
|
|
1341
|
+
<xs:enumeration value="4"/>
|
|
1342
|
+
</xs:restriction>
|
|
1343
|
+
</xs:simpleType>
|
|
1344
|
+
<xs:simpleType name="TDoc">
|
|
1345
|
+
<xs:annotation>
|
|
1346
|
+
<xs:documentation>Tipo de Documento de Identificação</xs:documentation>
|
|
1347
|
+
</xs:annotation>
|
|
1348
|
+
<xs:restriction base="xs:string">
|
|
1349
|
+
<xs:whiteSpace value="preserve"/>
|
|
1350
|
+
<xs:enumeration value="1"/>
|
|
1351
|
+
<xs:enumeration value="2"/>
|
|
1352
|
+
<xs:enumeration value="3"/>
|
|
1353
|
+
<xs:enumeration value="4"/>
|
|
1354
|
+
<xs:enumeration value="5"/>
|
|
1355
|
+
</xs:restriction>
|
|
1356
|
+
</xs:simpleType>
|
|
1357
|
+
<xs:simpleType name="TCRT">
|
|
1358
|
+
<xs:annotation>
|
|
1359
|
+
<xs:documentation>Tipo Código Regime Tributário</xs:documentation>
|
|
1360
|
+
</xs:annotation>
|
|
1361
|
+
<xs:restriction base="xs:string">
|
|
1362
|
+
<xs:whiteSpace value="preserve"/>
|
|
1363
|
+
<xs:minLength value="1"/>
|
|
1364
|
+
<xs:maxLength value="1"/>
|
|
1365
|
+
<xs:enumeration value="1"/>
|
|
1366
|
+
<xs:enumeration value="2"/>
|
|
1367
|
+
<xs:enumeration value="3"/>
|
|
1368
|
+
</xs:restriction>
|
|
1369
|
+
</xs:simpleType>
|
|
1370
|
+
<xs:simpleType name="TtpEmis">
|
|
1371
|
+
<xs:annotation>
|
|
1372
|
+
<xs:documentation>Tipo de emissão da DCe</xs:documentation>
|
|
1373
|
+
</xs:annotation>
|
|
1374
|
+
<xs:restriction base="xs:string">
|
|
1375
|
+
<xs:whiteSpace value="preserve"/>
|
|
1376
|
+
<xs:minLength value="1"/>
|
|
1377
|
+
<xs:maxLength value="1"/>
|
|
1378
|
+
<xs:enumeration value="1"/>
|
|
1379
|
+
<xs:enumeration value="2"/>
|
|
1380
|
+
</xs:restriction>
|
|
1381
|
+
</xs:simpleType>
|
|
1382
|
+
<xs:simpleType name="TUtilizacao">
|
|
1383
|
+
<xs:annotation>
|
|
1384
|
+
<xs:documentation>Tipo utilização</xs:documentation>
|
|
1385
|
+
</xs:annotation>
|
|
1386
|
+
<xs:restriction base="xs:string">
|
|
1387
|
+
<xs:minLength value="1"/>
|
|
1388
|
+
<xs:maxLength value="1"/>
|
|
1389
|
+
<xs:whiteSpace value="preserve"/>
|
|
1390
|
+
<xs:enumeration value="1"/>
|
|
1391
|
+
<xs:enumeration value="2"/>
|
|
1392
|
+
<xs:enumeration value="3"/>
|
|
1393
|
+
<xs:enumeration value="4"/>
|
|
1394
|
+
<xs:enumeration value="5"/>
|
|
1395
|
+
<xs:enumeration value="6"/>
|
|
1396
|
+
<xs:enumeration value="7"/>
|
|
1397
|
+
</xs:restriction>
|
|
1398
|
+
</xs:simpleType>
|
|
1399
|
+
<xs:simpleType name="TCompet">
|
|
1400
|
+
<xs:annotation>
|
|
1401
|
+
<xs:documentation>Tipo Competência</xs:documentation>
|
|
1402
|
+
</xs:annotation>
|
|
1403
|
+
<xs:restriction base="xs:string">
|
|
1404
|
+
<xs:minLength value="6"/>
|
|
1405
|
+
<xs:maxLength value="6"/>
|
|
1406
|
+
<xs:whiteSpace value="preserve"/>
|
|
1407
|
+
<xs:pattern value="[0-9]{1,6}"/>
|
|
1408
|
+
</xs:restriction>
|
|
1409
|
+
</xs:simpleType>
|
|
1410
|
+
</xs:schema>
|