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.
Files changed (110) hide show
  1. package/.env.example +24 -15
  2. package/LICENSE +21 -21
  3. package/README.md +491 -413
  4. package/docs/developer-guide.html +421 -421
  5. package/docs/openapi.yaml +428 -428
  6. package/examples/dce-homologacao.js +141 -0
  7. package/examples/emitir-nfce.js +51 -51
  8. package/examples/emitir-nfe.js +83 -83
  9. package/examples/emitir-nfse.js +46 -46
  10. package/examples/endpoints-sefaz.js +14 -14
  11. package/examples/eventos-nfe.js +49 -49
  12. package/examples/gerar-chave.js +25 -25
  13. package/examples/gerar-dace.js +59 -0
  14. package/examples/gerar-danfe.js +75 -75
  15. package/examples/gerar-dce.js +58 -0
  16. package/examples/layouts-nfse.js +51 -51
  17. package/examples/mock-sefaz.js +52 -52
  18. package/examples/nfse-eventos.js +57 -57
  19. package/examples/reforma-ibscbs.js +27 -27
  20. package/examples/reforma-nfe-xml.js +52 -52
  21. package/examples/status-sefaz.js +12 -12
  22. package/examples/validar-xsd.js +48 -48
  23. package/package.json +59 -68
  24. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consSitDCeTiposBasico_v1.00.xsd +123 -0
  25. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consSitDCe_v1.00.xsd +10 -0
  26. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consStatServDCeTiposBasico_v1.00.xsd +110 -0
  27. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/consStatServDCe_v1.00.xsd +10 -0
  28. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/dceTiposBasico_v1.00.xsd +1388 -0
  29. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/retConsSitDCe_v1.00.xsd +10 -0
  30. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/retConsStatServDCe_v1.00.xsd +10 -0
  31. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/tiposGeralDCe_v1.00.xsd +712 -0
  32. package/schemas/dce/PL_DCe_100a_NT2024.001/consulta/xmldsig-core-schema_v1.01.xsd +98 -0
  33. package/schemas/dce/PL_DCe_100a_NT2024.001/dceTiposBasico_v1.00.xsd +1410 -0
  34. package/schemas/dce/PL_DCe_100a_NT2024.001/dce_v1.00.xsd +10 -0
  35. package/schemas/dce/PL_DCe_100a_NT2024.001/evento/evCancDCe_v1.00.xsd +36 -0
  36. package/schemas/dce/PL_DCe_100a_NT2024.001/evento/eventoDCeTiposBasico_v1.00.xsd +283 -0
  37. package/schemas/dce/PL_DCe_100a_NT2024.001/evento/eventoDCe_v1.00.xsd +9 -0
  38. package/schemas/dce/PL_DCe_100a_NT2024.001/evento/procEventoDCe_v1.00.xsd +10 -0
  39. package/schemas/dce/PL_DCe_100a_NT2024.001/evento/retEventoDCe_v1.00.xsd +9 -0
  40. package/schemas/dce/PL_DCe_100a_NT2024.001/evento/tiposGeralDCe_v1.00.xsd +712 -0
  41. package/schemas/dce/PL_DCe_100a_NT2024.001/evento/xmldsig-core-schema_v1.01.xsd +98 -0
  42. package/schemas/dce/PL_DCe_100a_NT2024.001/procDCe_v1.00.xsd +37 -0
  43. package/schemas/dce/PL_DCe_100a_NT2024.001/retDCe_v1.00.xsd +9 -0
  44. package/schemas/dce/PL_DCe_100a_NT2024.001/tiposGeralDCe_v1.00.xsd +712 -0
  45. package/schemas/dce/PL_DCe_100a_NT2024.001/xmldsig-core-schema_v1.01.xsd +98 -0
  46. package/schemas/nfe/PL_009_V4/enviNFe_v3.10.xsd +8 -8
  47. package/schemas/nfe/PL_009_V4/xmldsig-core-schema_v1.01.xsd +97 -97
  48. package/scripts/download-schemas.js +39 -39
  49. package/scripts/test-xsd.js +34 -34
  50. package/src/api/server.js +316 -316
  51. package/src/constants/sefaz.js +69 -69
  52. package/src/danfe/DanfeService.js +205 -205
  53. package/src/danfe/xml-extract.js +69 -69
  54. package/src/dce/builders/DCeEventoXmlBuilder.js +86 -0
  55. package/src/dce/builders/DCeXmlBuilder.js +345 -0
  56. package/src/dce/constants/dce.js +87 -0
  57. package/src/dce/dace/DaceService.js +356 -0
  58. package/src/dce/dace/dace-extract.js +114 -0
  59. package/src/dce/services/DCeService.js +263 -0
  60. package/src/dce/services/DCeSoapService.js +235 -0
  61. package/src/dce/services/DCeXmlService.js +67 -0
  62. package/src/dce/types/DCeDocument.js +106 -0
  63. package/src/dce/utils/qrcode.utils.js +59 -0
  64. package/src/errors/GhinfeError.js +13 -13
  65. package/src/errors/SefazError.js +25 -25
  66. package/src/errors/XsdValidationError.js +15 -15
  67. package/src/index.js +84 -60
  68. package/src/nfce/builders/NFCeXmlBuilder.js +178 -178
  69. package/src/nfce/constants/qrcode.js +26 -26
  70. package/src/nfce/services/NFCeService.js +188 -188
  71. package/src/nfce/services/NFCeXmlService.js +38 -38
  72. package/src/nfce/types/NFCeDocument.js +42 -42
  73. package/src/nfce/utils/qrcode.utils.js +92 -92
  74. package/src/nfe/builders/NFeEventoXmlBuilder.js +110 -110
  75. package/src/nfe/builders/NFeXmlBuilder.js +215 -215
  76. package/src/nfe/mocks/sefaz-responses.js +195 -195
  77. package/src/nfe/services/NFeEventoService.js +95 -95
  78. package/src/nfe/services/NFeService.js +196 -196
  79. package/src/nfe/services/NFeSignService.js +127 -111
  80. package/src/nfe/services/NFeSoapService.js +437 -437
  81. package/src/nfe/services/NFeXmlService.js +41 -41
  82. package/src/nfe/services/NFeXsdService.js +56 -56
  83. package/src/nfe/types/NFeDocument.js +92 -92
  84. package/src/nfe/types/NFeEvento.js +44 -44
  85. package/src/nfse/NFSeMunicipioResolver.js +42 -42
  86. package/src/nfse/builders/NFSeEventoXmlBuilder.js +92 -92
  87. package/src/nfse/builders/NFSeXmlBuilder.js +16 -16
  88. package/src/nfse/constants/municipios.js +82 -82
  89. package/src/nfse/layouts/adapters.js +202 -202
  90. package/src/nfse/mocks/nfse-responses.js +142 -142
  91. package/src/nfse/services/NFSeService.js +191 -191
  92. package/src/nfse/services/NFSeSoapService.js +232 -232
  93. package/src/nfse/services/NFSeXmlService.js +12 -12
  94. package/src/nfse/types/NFSeDocument.js +54 -54
  95. package/src/queue/NFCeQueue.js +63 -63
  96. package/src/queue/NFSeQueue.js +59 -59
  97. package/src/queue/NFeQueue.js +76 -76
  98. package/src/reforma/ibscbs.js +175 -175
  99. package/src/sefaz/SefazEndpointResolver.js +95 -95
  100. package/src/sefaz/ca/icp-brasil-raiz-v10.pem +38 -0
  101. package/src/sefaz/endpoints.registry.js +205 -205
  102. package/src/sefaz/httpsAgent.js +33 -0
  103. package/src/shared/fiscal.helpers.js +53 -53
  104. package/src/utils/certificate.utils.js +69 -47
  105. package/src/utils/chave.utils.js +205 -117
  106. package/src/utils/code128.utils.js +67 -0
  107. package/src/utils/date.utils.js +26 -26
  108. package/src/utils/xml.utils.js +44 -44
  109. package/src/validation/XsdValidator.js +133 -114
  110. package/src/validation/schemas.js +18 -14
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2014 rel. 2 (http://www.altova.com) by private (private) -->
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:include schemaLocation="dceTiposBasico_v1.00.xsd"/>
5
+ <xs:element name="DCe" type="TDCe">
6
+ <xs:annotation>
7
+ <xs:documentation>Declaração de Conteúdo Eletrônica</xs:documentation>
8
+ </xs:annotation>
9
+ </xs:element>
10
+ </xs:schema>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2014 rel. 2 (http://www.altova.com) by private (private) -->
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/dce" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/dce" elementFormDefault="qualified" attributeFormDefault="unqualified">
4
+ <xs:include schemaLocation="eventoDCeTiposBasico_v1.00.xsd"/>
5
+ <xs:element name="evCancDCe">
6
+ <xs:annotation>
7
+ <xs:documentation>Schema XML de validação do evento do cancelamento
8
+ 110111</xs:documentation>
9
+ </xs:annotation>
10
+ <xs:complexType>
11
+ <xs:sequence>
12
+ <xs:element name="descEvento">
13
+ <xs:annotation>
14
+ <xs:documentation>Descrição do Evento - “Cancelamento”</xs:documentation>
15
+ </xs:annotation>
16
+ <xs:simpleType>
17
+ <xs:restriction base="xs:string">
18
+ <xs:whiteSpace value="preserve"/>
19
+ <xs:enumeration value="Cancelamento"/>
20
+ </xs:restriction>
21
+ </xs:simpleType>
22
+ </xs:element>
23
+ <xs:element name="nProt" type="TProt">
24
+ <xs:annotation>
25
+ <xs:documentation>Número do Protocolo de Status da DCe</xs:documentation>
26
+ </xs:annotation>
27
+ </xs:element>
28
+ <xs:element name="xJust" type="TJust">
29
+ <xs:annotation>
30
+ <xs:documentation>Justificativa do Cancelamento</xs:documentation>
31
+ </xs:annotation>
32
+ </xs:element>
33
+ </xs:sequence>
34
+ </xs:complexType>
35
+ </xs:element>
36
+ </xs:schema>
@@ -0,0 +1,283 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2024 (http://www.altova.com) by sefa (REPR - RECEITA ESTADUAL DO PARANA) -->
3
+ <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/dce" xmlns:xs="http://www.w3.org/2001/XMLSchema" 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="TEvento">
7
+ <xs:annotation>
8
+ <xs:documentation>Tipo Evento</xs:documentation>
9
+ </xs:annotation>
10
+ <xs:sequence>
11
+ <xs:element name="infEvento">
12
+ <xs:complexType>
13
+ <xs:sequence>
14
+ <xs:element name="cOrgao" type="TCOrgaoIBGE">
15
+ <xs:annotation>
16
+ <xs:documentation>Código do órgão de recepção do Evento</xs:documentation>
17
+ </xs:annotation>
18
+ </xs:element>
19
+ <xs:element name="tpAmb" type="TAmb">
20
+ <xs:annotation>
21
+ <xs:documentation>Identificação do Ambiente:
22
+ 1 - Produção
23
+ 2 - Homologação</xs:documentation>
24
+ </xs:annotation>
25
+ </xs:element>
26
+ <xs:element name="tpEmit">
27
+ <xs:annotation>
28
+ <xs:documentation>Tipo do Emitente da DCe</xs:documentation>
29
+ <xs:documentation>0=App Fisco / 1=Marketplace / 2=Emissor próprio / 3=Transportadora ou ECT</xs:documentation>
30
+ </xs:annotation>
31
+ <xs:simpleType>
32
+ <xs:restriction base="xs:string">
33
+ <xs:whiteSpace value="preserve"/>
34
+ <xs:minLength value="1"/>
35
+ <xs:maxLength value="1"/>
36
+ <xs:pattern value="[0-3]{1}"/>
37
+ </xs:restriction>
38
+ </xs:simpleType>
39
+ </xs:element>
40
+ <xs:element name="CNPJAutor" type="TCnpj">
41
+ <xs:annotation>
42
+ <xs:documentation>CNPJ da empresa, Fisco, Marketplace ou Transportadora emitente do evento deve ser o mesmo CNPJ informado do Grupo D. Identificação da Empresa, Fisco, Marketplace ou Transportador emitente da DCe</xs:documentation>
43
+ </xs:annotation>
44
+ </xs:element>
45
+ <xs:choice>
46
+ <xs:element name="CNPJUsEmit" type="TCnpj">
47
+ <xs:annotation>
48
+ <xs:documentation>CNPJ do Usuário Emitente da DCe que o evento estará
49
+ vinculado
50
+ Deve ser o mesmo informado no campo C02 da DCe
51
+ </xs:documentation>
52
+ </xs:annotation>
53
+ </xs:element>
54
+ <xs:element name="CPFUsEmit" type="TCpf">
55
+ <xs:annotation>
56
+ <xs:documentation>CPF do Usuário Emitente da DCe que o evento estará
57
+ vinculado
58
+ Deve ser o mesmo informao no campo C02a da DCe</xs:documentation>
59
+ </xs:annotation>
60
+ </xs:element>
61
+ <xs:element name="IdOutrosUsEmit" type="xs:string">
62
+ <xs:annotation>
63
+ <xs:documentation>Identificação do usuário emitente não obrigado a CPF
64
+ ou CNPJ que o evento estará vinculado
65
+ Deve ser o mesmo informado no campo C02b da DCe
66
+ </xs:documentation>
67
+ </xs:annotation>
68
+ </xs:element>
69
+ </xs:choice>
70
+ <xs:element name="chDCe" type="TChDFe">
71
+ <xs:annotation>
72
+ <xs:documentation>Chave de Acesso da DCe vinculada ao evento</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:element>
75
+ <xs:element name="dhEvento" type="TDateTimeUTC">
76
+ <xs:annotation>
77
+ <xs:documentation>Data e Hora do Evento, formato UTC (AAAA-MM-DDThh:mm:ssTZD)</xs:documentation>
78
+ </xs:annotation>
79
+ </xs:element>
80
+ <xs:element name="tpEvento">
81
+ <xs:annotation>
82
+ <xs:documentation>Tipo do Evento</xs:documentation>
83
+ </xs:annotation>
84
+ <xs:simpleType>
85
+ <xs:restriction base="xs:string">
86
+ <xs:whiteSpace value="preserve"/>
87
+ <xs:pattern value="[0-9]{6}"/>
88
+ </xs:restriction>
89
+ </xs:simpleType>
90
+ </xs:element>
91
+ <xs:element name="nSeqEvento">
92
+ <xs:annotation>
93
+ <xs:documentation>Seqüencial do evento para o mesmo tipo de evento. Para maioria dos eventos será 1, nos casos em que possa existir mais de um evento o autor do evento deve numerar de forma seqüencial</xs:documentation>
94
+ </xs:annotation>
95
+ <xs:simpleType>
96
+ <xs:restriction base="xs:string">
97
+ <xs:whiteSpace value="preserve"/>
98
+ <xs:pattern value="[0-9]{1,3}"/>
99
+ </xs:restriction>
100
+ </xs:simpleType>
101
+ </xs:element>
102
+ <xs:element name="detEvento">
103
+ <xs:annotation>
104
+ <xs:documentation>Detalhamento do evento específico</xs:documentation>
105
+ </xs:annotation>
106
+ <xs:complexType>
107
+ <xs:sequence>
108
+ <xs:any processContents="skip">
109
+ <xs:annotation>
110
+ <xs:documentation>XML do evento
111
+ Insira neste local o XML específico do tipo de evento (cancelamento)</xs:documentation>
112
+ </xs:annotation>
113
+ </xs:any>
114
+ </xs:sequence>
115
+ <xs:attribute name="versaoEvento" use="required">
116
+ <xs:simpleType>
117
+ <xs:restriction base="xs:string">
118
+ <xs:whiteSpace value="preserve"/>
119
+ <xs:pattern value="1\.(0[0-9]|[1-9][0-9])"/>
120
+ </xs:restriction>
121
+ </xs:simpleType>
122
+ </xs:attribute>
123
+ </xs:complexType>
124
+ </xs:element>
125
+ </xs:sequence>
126
+ <xs:attribute name="Id" use="required">
127
+ <xs:annotation>
128
+ <xs:documentation>Identificador da TAG a ser assinada, a regra de formação do Id é:
129
+ “ID” + tpEvento[6] + ChaveAcesso da DCe[44] + nSeqEvento[3] (preencher com zeros a esquerda para compor 3 digitos)</xs:documentation>
130
+ </xs:annotation>
131
+ <xs:simpleType>
132
+ <xs:restriction base="xs:ID">
133
+ <xs:pattern value="ID[0-9]{53}"/>
134
+ </xs:restriction>
135
+ </xs:simpleType>
136
+ </xs:attribute>
137
+ </xs:complexType>
138
+ </xs:element>
139
+ <xs:element ref="ds:Signature"/>
140
+ </xs:sequence>
141
+ <xs:attribute name="versao" type="TVerEvento" use="required"/>
142
+ </xs:complexType>
143
+ <xs:complexType name="TRetEvento">
144
+ <xs:annotation>
145
+ <xs:documentation>Tipo retorno do Evento</xs:documentation>
146
+ </xs:annotation>
147
+ <xs:sequence>
148
+ <xs:element name="infEvento">
149
+ <xs:complexType>
150
+ <xs:sequence>
151
+ <xs:element name="tpAmb" type="TAmb">
152
+ <xs:annotation>
153
+ <xs:documentation>Identificação do Ambiente:
154
+ 1 - Produção
155
+ 2 - Homologação</xs:documentation>
156
+ </xs:annotation>
157
+ </xs:element>
158
+ <xs:element name="verAplic" type="TVerAplic">
159
+ <xs:annotation>
160
+ <xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
161
+ </xs:annotation>
162
+ </xs:element>
163
+ <xs:element name="cOrgao" type="TCOrgaoIBGE">
164
+ <xs:annotation>
165
+ <xs:documentation>Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE extendida, utilizar 90 para identificar SUFRAMA</xs:documentation>
166
+ </xs:annotation>
167
+ </xs:element>
168
+ <xs:element name="cStat" type="TStat">
169
+ <xs:annotation>
170
+ <xs:documentation>Código do status da registro do Evento</xs:documentation>
171
+ </xs:annotation>
172
+ </xs:element>
173
+ <xs:element name="xMotivo" type="TMotivo">
174
+ <xs:annotation>
175
+ <xs:documentation>Descrição literal do status do registro do Evento</xs:documentation>
176
+ </xs:annotation>
177
+ </xs:element>
178
+ <xs:element name="chDCe" type="TChDFe" minOccurs="0">
179
+ <xs:annotation>
180
+ <xs:documentation>Chave de Acesso DCe vinculada</xs:documentation>
181
+ </xs:annotation>
182
+ </xs:element>
183
+ <xs:element name="tpEvento" minOccurs="0">
184
+ <xs:annotation>
185
+ <xs:documentation>Tipo do Evento vinculado</xs:documentation>
186
+ </xs:annotation>
187
+ <xs:simpleType>
188
+ <xs:restriction base="xs:string">
189
+ <xs:whiteSpace value="preserve"/>
190
+ <xs:pattern value="[0-9]{6}"/>
191
+ </xs:restriction>
192
+ </xs:simpleType>
193
+ </xs:element>
194
+ <xs:element name="xEvento" minOccurs="0">
195
+ <xs:annotation>
196
+ <xs:documentation>Descrição do Evento</xs:documentation>
197
+ </xs:annotation>
198
+ <xs:simpleType>
199
+ <xs:restriction base="TString">
200
+ <xs:minLength value="4"/>
201
+ <xs:maxLength value="60"/>
202
+ </xs:restriction>
203
+ </xs:simpleType>
204
+ </xs:element>
205
+ <xs:element name="nSeqEvento" minOccurs="0">
206
+ <xs:annotation>
207
+ <xs:documentation>Seqüencial do evento</xs:documentation>
208
+ </xs:annotation>
209
+ <xs:simpleType>
210
+ <xs:restriction base="xs:string">
211
+ <xs:whiteSpace value="preserve"/>
212
+ <xs:pattern value="[0-9]{1,3}"/>
213
+ </xs:restriction>
214
+ </xs:simpleType>
215
+ </xs:element>
216
+ <xs:element name="dhRegEvento" type="TDateTimeUTC" minOccurs="0">
217
+ <xs:annotation>
218
+ <xs:documentation>Data e Hora de do recebimento do evento ou do registro do evento formato AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
219
+ </xs:annotation>
220
+ </xs:element>
221
+ <xs:element name="nProt" type="TProt" minOccurs="0">
222
+ <xs:annotation>
223
+ <xs:documentation>Número do protocolo de registro do evento</xs:documentation>
224
+ </xs:annotation>
225
+ </xs:element>
226
+ </xs:sequence>
227
+ <xs:attribute name="Id" use="optional">
228
+ <xs:simpleType>
229
+ <xs:restriction base="xs:ID">
230
+ <xs:pattern value="ID[0-9]{16}"/>
231
+ </xs:restriction>
232
+ </xs:simpleType>
233
+ </xs:attribute>
234
+ </xs:complexType>
235
+ </xs:element>
236
+ <xs:element ref="ds:Signature" minOccurs="0"/>
237
+ </xs:sequence>
238
+ <xs:attribute name="versao" use="required">
239
+ <xs:simpleType>
240
+ <xs:restriction base="TVerEvento"/>
241
+ </xs:simpleType>
242
+ </xs:attribute>
243
+ </xs:complexType>
244
+ <xs:complexType name="TProcEvento">
245
+ <xs:annotation>
246
+ <xs:documentation>Tipo procEvento</xs:documentation>
247
+ </xs:annotation>
248
+ <xs:sequence>
249
+ <xs:element name="eventoDCe" type="TEvento"/>
250
+ <xs:element name="retEventoDCe" type="TRetEvento"/>
251
+ </xs:sequence>
252
+ <xs:attribute name="versao" type="TVerEvento" use="required"/>
253
+ <xs:attribute name="ipTransmissor" type="TIPv4" use="optional">
254
+ <xs:annotation>
255
+ <xs:documentation>IP do transmissor do documento fiscal para o ambiente autorizador</xs:documentation>
256
+ </xs:annotation>
257
+ </xs:attribute>
258
+ <xs:attribute name="nPortaCon" use="optional">
259
+ <xs:annotation>
260
+ <xs:documentation>Porta de origem utilizada na conexão (De 0 a 65535)</xs:documentation>
261
+ </xs:annotation>
262
+ <xs:simpleType>
263
+ <xs:restriction base="xs:string">
264
+ <xs:pattern value="[0-9]{1,5}"/>
265
+ </xs:restriction>
266
+ </xs:simpleType>
267
+ </xs:attribute>
268
+ <xs:attribute name="dhConexao" type="TDateTimeUTC" use="optional">
269
+ <xs:annotation>
270
+ <xs:documentation>Data e Hora da Conexão de Origem</xs:documentation>
271
+ </xs:annotation>
272
+ </xs:attribute>
273
+ </xs:complexType>
274
+ <xs:simpleType name="TVerEvento">
275
+ <xs:annotation>
276
+ <xs:documentation>Tipo Versão do Evento</xs:documentation>
277
+ </xs:annotation>
278
+ <xs:restriction base="xs:string">
279
+ <xs:whiteSpace value="preserve"/>
280
+ <xs:pattern value="1\.00"/>
281
+ </xs:restriction>
282
+ </xs:simpleType>
283
+ </xs:schema>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/dce" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/dce" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="eventoDCeTiposBasico_v1.00.xsd"/>
4
+ <xs:element name="eventoDCe" type="TEvento">
5
+ <xs:annotation>
6
+ <xs:documentation>Schema XML de validação do Pedido de Registro de Evento da DCe</xs:documentation>
7
+ </xs:annotation>
8
+ </xs:element>
9
+ </xs:schema>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2014 rel. 2 (http://www.altova.com) by private (private) -->
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:include schemaLocation="eventoDCeTiposBasico_v1.00.xsd"/>
5
+ <xs:element name="procEventoDCe" type="TProcEvento">
6
+ <xs:annotation>
7
+ <xs:documentation>Pedido de Registro de Evento de DCe processado</xs:documentation>
8
+ </xs:annotation>
9
+ </xs:element>
10
+ </xs:schema>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/dce" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/dce" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
+ <xs:include schemaLocation="eventoDCeTiposBasico_v1.00.xsd"/>
4
+ <xs:element name="retEventoDCe" type="TRetEvento">
5
+ <xs:annotation>
6
+ <xs:documentation>Schema XML de validação do retorno Pedido de Evento da DCe</xs:documentation>
7
+ </xs:annotation>
8
+ </xs:element>
9
+ </xs:schema>