@nfewizard/shared 1.0.0 → 1.0.1

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 (83) hide show
  1. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js +6 -0
  2. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js.map +1 -1
  3. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js +16 -0
  4. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js.map +1 -1
  5. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFSe.d.ts +42 -0
  6. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFSe.js +176 -0
  7. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFSe.js.map +1 -0
  8. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js +37 -10
  9. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js.map +1 -1
  10. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js +7 -1
  11. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js.map +1 -1
  12. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.d.ts +1 -0
  13. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js +17 -0
  14. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js.map +1 -1
  15. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/NFSeServicosUrl.json +22 -0
  16. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/soapMethod.json +20 -0
  17. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js +16 -0
  18. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js.map +1 -1
  19. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js +16 -0
  20. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js.map +1 -1
  21. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js +16 -0
  22. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js.map +1 -1
  23. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js +16 -0
  24. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js.map +1 -1
  25. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js +16 -0
  26. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js.map +1 -1
  27. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js +16 -0
  28. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js.map +1 -1
  29. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js +16 -0
  30. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js.map +1 -1
  31. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js +15 -4
  32. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js.map +1 -1
  33. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js +16 -0
  34. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js.map +1 -1
  35. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js +16 -0
  36. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js.map +1 -1
  37. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.d.ts +29 -2
  38. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js +92 -1
  39. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js.map +1 -1
  40. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js +16 -0
  41. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js.map +1 -1
  42. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/tsconfig.tsbuildinfo +1 -1
  43. package/README.md +3 -3
  44. package/dist/index.cjs +462 -13
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.mjs +462 -14
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/src/base/BaseNFSe.d.ts +42 -0
  49. package/dist/src/base/index.d.ts +1 -0
  50. package/dist/src/utils/Utility.d.ts +29 -2
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +2 -2
  53. package/resources/schemas/CNC_v1.00.xsd +14 -0
  54. package/resources/schemas/DPS_v1.01.xsd +14 -0
  55. package/resources/schemas/NFSe_v1.01.xsd +15 -0
  56. package/resources/schemas/evento_v1.01.xsd +15 -0
  57. package/resources/schemas/nfse/CNC_v1.00.xsd +14 -0
  58. package/resources/schemas/nfse/DPS_v1.01.xsd +14 -0
  59. package/resources/schemas/nfse/NFSe_v1.01.xsd +15 -0
  60. package/resources/schemas/nfse/eventoAtorInteressado_v1.00.xsd +9 -0
  61. package/resources/schemas/nfse/eventoCancNFe_v1.00.xsd +9 -0
  62. package/resources/schemas/nfse/eventoCancSubst_v1.00.xsd +9 -0
  63. package/resources/schemas/nfse/eventoEPEC_v0.01.xsd +267 -0
  64. package/resources/schemas/nfse/eventoRemIndus_v1.00.xsd +9 -0
  65. package/resources/schemas/nfse/evento_v1.01.xsd +15 -0
  66. package/resources/schemas/nfse/pedRegEvento_v1.01.xsd +15 -0
  67. package/resources/schemas/nfse/tiposBasico_v1.03.xsd +834 -0
  68. package/resources/schemas/nfse/tiposBasico_v3.10.xsd +833 -0
  69. package/resources/schemas/nfse/tiposBasico_v4.00.xsd +598 -0
  70. package/resources/schemas/nfse/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
  71. package/resources/schemas/nfse/tiposCnc_v1.00.xsd +166 -0
  72. package/resources/schemas/nfse/tiposComplexos_v1.01.xsd +2677 -0
  73. package/resources/schemas/nfse/tiposDistDFe_v1.01.xsd +1 -0
  74. package/resources/schemas/nfse/tiposEventos_v1.01.xsd +780 -0
  75. package/resources/schemas/nfse/tiposSimples_v1.01.xsd +1774 -0
  76. package/resources/schemas/nfse/xmldsig-core-schema.xsd +318 -0
  77. package/resources/schemas/nfse/xmldsig-core-schema_v1.01.xsd +98 -0
  78. package/resources/schemas/pedRegEvento_v1.01.xsd +15 -0
  79. package/resources/schemas/tiposCnc_v1.00.xsd +166 -0
  80. package/resources/schemas/tiposComplexos_v1.01.xsd +2677 -0
  81. package/resources/schemas/tiposEventos_v1.01.xsd +780 -0
  82. package/resources/schemas/tiposSimples_v1.01.xsd +1774 -0
  83. package/resources/schemas/xmldsig-core-schema.xsd +318 -0
@@ -0,0 +1,780 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
4
+ targetNamespace="http://www.sped.fazenda.gov.br/nfse"
5
+ xmlns="http://www.sped.fazenda.gov.br/nfse"
6
+ attributeFormDefault="unqualified"
7
+ elementFormDefault="qualified">
8
+ <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
9
+ <xs:include schemaLocation="tiposComplexos_v1.01.xsd"/>
10
+ <!--TIPO COMPLEXO PARA EVENTO -->
11
+ <xs:complexType name="TCEvento">
12
+ <xs:sequence>
13
+ <xs:element name="infEvento" type="TCInfEvento"/>
14
+ <xs:element ref="ds:Signature"/>
15
+ </xs:sequence>
16
+ <xs:attribute name="versao" type="TVerNFSe" use="required"/>
17
+ </xs:complexType>
18
+
19
+ <!--TIPO COMPLEXO PARA INFORMAÇÕES DO EVENTO-->
20
+ <xs:complexType name="TCInfEvento">
21
+ <xs:sequence>
22
+ <xs:element name="verAplic" type="TSVerAplic">
23
+ <xs:annotation>
24
+ <xs:documentation>Versão do aplicativo que gerou o evento</xs:documentation>
25
+ </xs:annotation>
26
+ </xs:element>
27
+ <xs:element name="ambGer" type="TSAmbGeradorEvt">
28
+ <xs:annotation>
29
+ <xs:documentation>
30
+ Ambiente gerador do evento:
31
+ 1 - Sistema próprio do município;
32
+ 2 - Sefin Nacional NFS-e;
33
+ 3 - ADN NFS-e;
34
+ </xs:documentation>
35
+ </xs:annotation>
36
+ </xs:element>
37
+ <xs:element name="nSeqEvento" type="TSNum3Dig">
38
+ <xs:annotation>
39
+ <xs:documentation>
40
+ Número sequencial do evento para o mesmo tipo de evento.
41
+ Para os eventos que ocorrem somente uma vez, como é o caso do cancelamento, o nSeqEvento = 001.
42
+ Para os eventos que possam existir mais de um evento do mesmo tipo o ambiente gerador deverá numerar de forma sequencial.
43
+ </xs:documentation>
44
+ </xs:annotation>
45
+ </xs:element>
46
+ <xs:element name="dhProc" type="TSDateTimeUTC">
47
+ <xs:annotation>
48
+ <xs:documentation>
49
+ Data/Hora do registro do evento.
50
+ Data e hora no formato UTC (Universal Coordinated Time): AAAA-MM-DDThh:mm:ssTZD
51
+ </xs:documentation>
52
+ </xs:annotation>
53
+ </xs:element>
54
+ <xs:element name="nDFSe" type="TSNumDFe">
55
+ <xs:annotation>
56
+ <xs:documentation>Número sequencial do documento gerado por ambiente gerador de DFSe do município</xs:documentation>
57
+ </xs:annotation>
58
+ </xs:element>
59
+ <xs:element name="pedRegEvento" type="TCPedRegEvt">
60
+ <xs:annotation>
61
+ <xs:documentation>Leiaute do pedido de registro do evento gerado pelo autor do evento</xs:documentation>
62
+ </xs:annotation>
63
+ </xs:element>
64
+ </xs:sequence>
65
+ <xs:attribute name="Id" type="TSIdEvento" use="required"/>
66
+ </xs:complexType>
67
+
68
+ <!--TIPO COMPLEXO PEDIDO DE REGISTRO DE EVENTO -->
69
+ <xs:complexType name="TCPedRegEvt">
70
+ <xs:sequence>
71
+ <xs:element name="infPedReg" type="TCInfPedReg"/>
72
+ <xs:element ref="ds:Signature" minOccurs="0"/>
73
+ </xs:sequence>
74
+ <xs:attribute name="versao" type="TVerNFSe" use="required"/>
75
+ </xs:complexType>
76
+
77
+ <!--TIPO COMPLEXO PARA AS INFORMAÇÕES DO PEDIDO DE REGISTRO DE EVENTO -->
78
+ <xs:complexType name="TCInfPedReg">
79
+ <xs:sequence>
80
+ <xs:element name="tpAmb" type="TSTipoAmbiente">
81
+ <xs:annotation>
82
+ <xs:documentation>
83
+ Tipo de ambiente:
84
+ 1 - Produção;
85
+ 2 - Homologação;
86
+ </xs:documentation>
87
+ </xs:annotation>
88
+ </xs:element>
89
+ <xs:element name="verAplic" type="TSVerAplic">
90
+ <xs:annotation>
91
+ <xs:documentation>Versão do aplicativo que gerou o pedido de registro de evento</xs:documentation>
92
+ </xs:annotation>
93
+ </xs:element>
94
+ <xs:element name="dhEvento" type="TSDateTimeUTC">
95
+ <xs:annotation>
96
+ <xs:documentation>
97
+ Data e hora do evento no formato AAAA-MM-DDThh:mm:ssTZD (UTC - Universal Coordinated Time, onde TZD pode ser -02:00 (Fernando de Noronha), -03:00 (Brasília) ou -04:00 (Manaus), no horário de verão serão -01:00, -02:00 e -03:00. Ex.: 2010-08-19T13:00:15-03:00.
98
+ </xs:documentation>
99
+ </xs:annotation>
100
+ </xs:element>
101
+ <xs:choice>
102
+ <xs:annotation>
103
+ <xs:documentation>Identificação do Autor do Pedido de Evento</xs:documentation>
104
+ </xs:annotation>
105
+ <xs:element name="CNPJAutor" type="TSCNPJ">
106
+ <xs:annotation>
107
+ <xs:documentation>
108
+ Número de inscrição federal (CNPJ) do autor do evento.
109
+ CNPJ do autor do evento (parte interessada ou pessoa que figure na NFS-e.
110
+ O autor do evento não é o procurador)
111
+ </xs:documentation>
112
+ </xs:annotation>
113
+ </xs:element>
114
+ <xs:element name="CPFAutor" type="TSCPF">
115
+ <xs:annotation>
116
+ <xs:documentation>
117
+ Número de inscrição federal (CPF) do autor do evento.
118
+ CPF do autor do evento (parte interessada ou pessoa que figure na NFS-e como prestador, tomador, intermediário.
119
+ O autor do evento poderá ser o procurador)
120
+ </xs:documentation>
121
+ </xs:annotation>
122
+ </xs:element>
123
+ </xs:choice>
124
+ <xs:element name="chNFSe" type="TSChaveNFSe">
125
+ <xs:annotation>
126
+ <xs:documentation>Identificador da NFS-e à qual o evento será vinculado</xs:documentation>
127
+ </xs:annotation>
128
+ </xs:element>
129
+ <xs:choice>
130
+ <xs:element name="e101101" type="TE101101">
131
+ <xs:annotation>
132
+ <xs:documentation>Evento de cancelamento</xs:documentation>
133
+ </xs:annotation>
134
+ </xs:element>
135
+ <xs:element name="e105102" type="TE105102">
136
+ <xs:annotation>
137
+ <xs:documentation>Evento de cancelamento por substituição</xs:documentation>
138
+ </xs:annotation>
139
+ </xs:element>
140
+ <xs:element name="e101103" type="TE101103">
141
+ <xs:annotation>
142
+ <xs:documentation>Solicitação de Análise Fiscal para Cancelamento de NFS-e</xs:documentation>
143
+ </xs:annotation>
144
+ </xs:element>
145
+ <xs:element name="e105104" type="TE105104">
146
+ <xs:annotation>
147
+ <xs:documentation>Cancelamento de NFS-e Deferido por Análise Fiscal</xs:documentation>
148
+ </xs:annotation>
149
+ </xs:element>
150
+ <xs:element name="e105105" type="TE105105">
151
+ <xs:annotation>
152
+ <xs:documentation>Cancelamento de NFS-e Indeferido por Análise Fiscal</xs:documentation>
153
+ </xs:annotation>
154
+ </xs:element>
155
+
156
+ <xs:element name="e202201" type="TE202201">
157
+ <xs:annotation>
158
+ <xs:documentation>Confirmação do Prestador</xs:documentation>
159
+ </xs:annotation>
160
+ </xs:element>
161
+ <xs:element name="e203202" type="TE203202">
162
+ <xs:annotation>
163
+ <xs:documentation>Confirmação do Tomador</xs:documentation>
164
+ </xs:annotation>
165
+ </xs:element>
166
+ <xs:element name="e204203" type="TE204203">
167
+ <xs:annotation>
168
+ <xs:documentation>Confirmação do Intermediário</xs:documentation>
169
+ </xs:annotation>
170
+ </xs:element>
171
+ <xs:element name="e205204" type="TE205204">
172
+ <xs:annotation>
173
+ <xs:documentation>Confirmação Tácita</xs:documentation>
174
+ </xs:annotation>
175
+ </xs:element>
176
+ <xs:element name="e202205" type="TE202205">
177
+ <xs:annotation>
178
+ <xs:documentation>Rejeição do Prestador</xs:documentation>
179
+ </xs:annotation>
180
+ </xs:element>
181
+ <xs:element name="e203206" type="TE203206">
182
+ <xs:annotation>
183
+ <xs:documentation>Rejeição do Tomador</xs:documentation>
184
+ </xs:annotation>
185
+ </xs:element>
186
+ <xs:element name="e204207" type="TE204207">
187
+ <xs:annotation>
188
+ <xs:documentation>Rejeição do Intermediário</xs:documentation>
189
+ </xs:annotation>
190
+ </xs:element>
191
+ <xs:element name="e205208" type="TE205208">
192
+ <xs:annotation>
193
+ <xs:documentation>Anulação da Rejeição</xs:documentation>
194
+ </xs:annotation>
195
+ </xs:element>
196
+
197
+ <xs:element name="e305101" type="TE305101">
198
+ <xs:annotation>
199
+ <xs:documentation>Cancelamento de NFS-e por Ofício</xs:documentation>
200
+ </xs:annotation>
201
+ </xs:element>
202
+ <xs:element name="e305102" type="TE305102">
203
+ <xs:annotation>
204
+ <xs:documentation>Bloqueio de NFS-e por Ofício</xs:documentation>
205
+ </xs:annotation>
206
+ </xs:element>
207
+ <xs:element name="e305103" type="TE305103">
208
+ <xs:annotation>
209
+ <xs:documentation>Desbloqueio de NFS-e por Ofício</xs:documentation>
210
+ </xs:annotation>
211
+ </xs:element>
212
+ </xs:choice>
213
+ </xs:sequence>
214
+ <xs:attribute name="Id" type="TSIdPedRegEvt" use="required"/>
215
+ </xs:complexType>
216
+
217
+ <!--TIPO COMPLEXO PARA O EVENTO DE CANCELAMENTO-->
218
+ <xs:complexType name="TE101101">
219
+ <xs:sequence>
220
+ <xs:element name="xDesc">
221
+ <xs:annotation>
222
+ <xs:documentation>
223
+ Descrição do Evento: Descrição do evento: "Cancelamento de NFS-e".
224
+ </xs:documentation>
225
+ </xs:annotation>
226
+ <xs:simpleType>
227
+ <xs:restriction base="xs:string">
228
+ <xs:whiteSpace value="preserve"/>
229
+ <xs:enumeration value="Cancelamento de NFS-e"/>
230
+ </xs:restriction>
231
+ </xs:simpleType>
232
+ </xs:element>
233
+ <xs:element name="cMotivo" type="TSCodJustCanc">
234
+ <xs:annotation>
235
+ <xs:documentation>
236
+ Código de justificativa de cancelamento:
237
+ 1 - Erro na Emissão;
238
+ 2 - Serviço não Prestado;
239
+ 9 - Outros;
240
+ </xs:documentation>
241
+ </xs:annotation>
242
+ </xs:element>
243
+ <xs:element name="xMotivo" type="TSMotivo">
244
+ <xs:annotation>
245
+ <xs:documentation>Descrição para explicitar o motivo indicado neste evento</xs:documentation>
246
+ </xs:annotation>
247
+ </xs:element>
248
+ </xs:sequence>
249
+ </xs:complexType>
250
+
251
+ <!--TIPO COMPLEXO PARA O EVENTO DE CANCELAMENTO POR SUBSTITUIÇÃO-->
252
+ <xs:complexType name="TE105102">
253
+ <xs:sequence>
254
+ <xs:element name="xDesc">
255
+ <xs:annotation>
256
+ <xs:documentation>
257
+ Descrição do Evento: Descrição do evento: "Cancelamento de NFS-e por Substituição".
258
+ </xs:documentation>
259
+ </xs:annotation>
260
+ <xs:simpleType>
261
+ <xs:restriction base="xs:string">
262
+ <xs:whiteSpace value="preserve"/>
263
+ <xs:enumeration value="Cancelamento de NFS-e por Substituição"/>
264
+ </xs:restriction>
265
+ </xs:simpleType>
266
+ </xs:element>
267
+ <xs:element name="cMotivo" type="TSCodJustSubst">
268
+ <xs:annotation>
269
+ <xs:documentation>
270
+ Código de justificativa de cancelamento substituição:
271
+ 01 - Desenquadramento de NFS-e do Simples Nacional;
272
+ 02 - Enquadramento de NFS-e no Simples Nacional;
273
+ 03 - Inclusão Retroativa de Imunidade/Isenção para NFS-e;
274
+ 04 - Exclusão Retroativa de Imunidade/Isenção para NFS-e;
275
+ 05 - Rejeição de NFS-e pelo tomador ou pelo intermediário se responsável pelo recolhimento do tributo;
276
+ 99 - Outros;
277
+ Obtido do campo da DPS "DPS/infDPS/subst/cMotivo"
278
+ </xs:documentation>
279
+ </xs:annotation>
280
+ </xs:element>
281
+ <xs:element name="xMotivo" type="TSMotivo" minOccurs="0">
282
+ <xs:annotation>
283
+ <xs:documentation>
284
+ Descrição para explicitar o motivo indicado neste evento.
285
+ Obtido do campo da DPS "DPS/infDPS/subst/xMotivo".
286
+ </xs:documentation>
287
+ </xs:annotation>
288
+ </xs:element>
289
+ <xs:element name="chSubstituta" type="TSChaveNFSe">
290
+ <xs:annotation>
291
+ <xs:documentation>Chave de Acesso da NFS-e substituta</xs:documentation>
292
+ </xs:annotation>
293
+ </xs:element>
294
+ </xs:sequence>
295
+ </xs:complexType>
296
+
297
+ <!--TIPO COMPLEXO PARA O EVENTO DE SOLICITAÇÃO DE ANÁLISE FISCAL PARA CANCELAMENTO DE NFS-E-->
298
+ <xs:complexType name="TE101103">
299
+ <xs:sequence>
300
+ <xs:element name="xDesc">
301
+ <xs:annotation>
302
+ <xs:documentation>
303
+ Descrição do evento: "Solicitação de Análise Fiscal para Cancelamento de NFS-e"
304
+ </xs:documentation>
305
+ </xs:annotation>
306
+ <xs:simpleType>
307
+ <xs:restriction base="xs:string">
308
+ <xs:whiteSpace value="preserve"/>
309
+ <xs:enumeration value="Solicitação de Análise Fiscal para Cancelamento de NFS-e"/>
310
+ </xs:restriction>
311
+ </xs:simpleType>
312
+ </xs:element>
313
+ <xs:element name="cMotivo" type="TSCodJustAnaliseFiscalCanc">
314
+ <xs:annotation>
315
+ <xs:documentation>
316
+ Código do motivo da solicitação de análise fiscal para cancelamento de NFS-e:
317
+ 1 - Erro na Emissão;
318
+ 2 - Serviço não Prestado;
319
+ 9 - Outros;
320
+ </xs:documentation>
321
+ </xs:annotation>
322
+ </xs:element>
323
+ <xs:element name="xMotivo" type="TSMotivo">
324
+ <xs:annotation>
325
+ <xs:documentation>
326
+ Descrição para explicitar o motivo indicado neste evento
327
+ </xs:documentation>
328
+ </xs:annotation>
329
+ </xs:element>
330
+ </xs:sequence>
331
+ </xs:complexType>
332
+
333
+ <!--TIPO COMPLEXO PARA O EVENTO DE CANCELAMENTO DE NFS-E DEFERIDO POR ANÁLISE FISCAL-->
334
+ <xs:complexType name="TE105104">
335
+ <xs:sequence>
336
+ <xs:element name="xDesc">
337
+ <xs:annotation>
338
+ <xs:documentation>
339
+ Descrição do evento: "Cancelamento de NFS-e Deferido por Análise Fiscal"
340
+ </xs:documentation>
341
+ </xs:annotation>
342
+ <xs:simpleType>
343
+ <xs:restriction base="xs:string">
344
+ <xs:whiteSpace value="preserve"/>
345
+ <xs:enumeration value="Cancelamento de NFS-e Deferido por Análise Fiscal"/>
346
+ </xs:restriction>
347
+ </xs:simpleType>
348
+ </xs:element>
349
+ <xs:element name="CPFAgTrib" type="TSCPF">
350
+ <xs:annotation>
351
+ <xs:documentation>
352
+ CPF do agente da administração tributária municipal que efetuou o deferimento da solicitação de análise fiscal para cancelamento de NFS-e.
353
+ </xs:documentation>
354
+ </xs:annotation>
355
+ </xs:element>
356
+ <xs:element name="nProcAdm" type="TSNumProcAdmAnaliseFiscalCanc" minOccurs="0">
357
+ <xs:annotation>
358
+ <xs:documentation>
359
+ Número do processo administrativo municipal vinculado à solicitação de análise fiscal para cancelamento de NFS-e.
360
+ </xs:documentation>
361
+ </xs:annotation>
362
+ </xs:element>
363
+ <xs:element name="cMotivo" type="TSCodJustAnaliseFiscalCancDef">
364
+ <xs:annotation>
365
+ <xs:documentation>
366
+ Resposta da solicitação de análise fiscal para cancelamento de NFS-e:
367
+ 1 - Cancelamento de NFS-e Deferido.
368
+ </xs:documentation>
369
+ </xs:annotation>
370
+ </xs:element>
371
+ <xs:element name="xMotivo" type="TSMotivo">
372
+ <xs:annotation>
373
+ <xs:documentation>
374
+ Descrição para explicitar o motivo indicado neste evento
375
+ </xs:documentation>
376
+ </xs:annotation>
377
+ </xs:element>
378
+ </xs:sequence>
379
+ </xs:complexType>
380
+
381
+ <!--TIPO COMPLEXO PARA O EVENTO DE CANCELAMENTO DE NFS-E INDEFERIDO POR ANÁLISE FISCAL-->
382
+ <xs:complexType name="TE105105">
383
+ <xs:sequence>
384
+ <xs:element name="xDesc">
385
+ <xs:annotation>
386
+ <xs:documentation>
387
+ Descrição do evento: "Cancelamento de NFS-e Indeferido por Análise Fiscal".
388
+ </xs:documentation>
389
+ </xs:annotation>
390
+ <xs:simpleType>
391
+ <xs:restriction base="xs:string">
392
+ <xs:whiteSpace value="preserve"/>
393
+ <xs:enumeration value="Cancelamento de NFS-e Indeferido por Análise Fiscal"/>
394
+ </xs:restriction>
395
+ </xs:simpleType>
396
+ </xs:element>
397
+ <xs:element name="CPFAgTrib" type="TSCPF">
398
+ <xs:annotation>
399
+ <xs:documentation>
400
+ CPF do agente da administração tributária municipal que efetuou o indeferimento da solicitação de análise fiscal para cancelamento de NFS-e.
401
+ </xs:documentation>
402
+ </xs:annotation>
403
+ </xs:element>
404
+ <xs:element name="nProcAdm" type="TSNumProcAdmAnaliseFiscalCanc" minOccurs="0">
405
+ <xs:annotation>
406
+ <xs:documentation>
407
+ Número do processo administrativo municipal vinculado à solicitação de análise fiscal para cancelamento de NFS-e.
408
+ </xs:documentation>
409
+ </xs:annotation>
410
+ </xs:element>
411
+ <xs:element name="cMotivo" type="TSCodJustAnaliseFiscalCancIndef">
412
+ <xs:annotation>
413
+ <xs:documentation>
414
+ Resposta da solicitação de análise fiscal para cancelamento de NFS-e:
415
+ 1 - Cancelamento de NFS-e Indeferido;
416
+ 2 - Cancelamento de NFS-e Indeferido Sem Análise de Mérito.
417
+ </xs:documentation>
418
+ </xs:annotation>
419
+ </xs:element>
420
+ <xs:element name="xMotivo" type="TSMotivo">
421
+ <xs:annotation>
422
+ <xs:documentation>
423
+ Descrição para explicitar o motivo indicado neste evento
424
+ </xs:documentation>
425
+ </xs:annotation>
426
+ </xs:element>
427
+ </xs:sequence>
428
+ </xs:complexType>
429
+
430
+ <!--TIPO COMPLEXO PARA O EVENTO DE CONFIRMAÇÃO DO PRESTADOR-->
431
+ <xs:complexType name="TE202201">
432
+ <xs:sequence>
433
+ <xs:element name="xDesc">
434
+ <xs:annotation>
435
+ <xs:documentation>
436
+ Descrição do evento: "Manifestação de NFS-e - Confirmação do Prestador".
437
+ </xs:documentation>
438
+ </xs:annotation>
439
+ <xs:simpleType>
440
+ <xs:restriction base="xs:string">
441
+ <xs:whiteSpace value="preserve"/>
442
+ <xs:enumeration value="Manifestação de NFS-e - Confirmação do Prestador"/>
443
+ </xs:restriction>
444
+ </xs:simpleType>
445
+ </xs:element>
446
+ </xs:sequence>
447
+ </xs:complexType>
448
+
449
+ <!--TIPO COMPLEXO PARA O EVENTO DE CONFIRMAÇÃO DO TOMADOR-->
450
+ <xs:complexType name="TE203202">
451
+ <xs:sequence>
452
+ <xs:element name="xDesc">
453
+ <xs:annotation>
454
+ <xs:documentation>
455
+ Descrição do evento: "Manifestação de NFS-e - Confirmação do Tomador".
456
+ </xs:documentation>
457
+ </xs:annotation>
458
+ <xs:simpleType>
459
+ <xs:restriction base="xs:string">
460
+ <xs:whiteSpace value="preserve"/>
461
+ <xs:enumeration value="Manifestação de NFS-e - Confirmação do Tomador"/>
462
+ </xs:restriction>
463
+ </xs:simpleType>
464
+ </xs:element>
465
+ </xs:sequence>
466
+ </xs:complexType>
467
+
468
+ <!--TIPO COMPLEXO PARA O EVENTO DE CONFIRMAÇÃO DO INTERMEDIÁRIO-->
469
+ <xs:complexType name="TE204203">
470
+ <xs:sequence>
471
+ <xs:element name="xDesc">
472
+ <xs:annotation>
473
+ <xs:documentation>
474
+ Descrição do evento: "Manifestação de NFS-e - Confirmação do Intermediário".
475
+ </xs:documentation>
476
+ </xs:annotation>
477
+ <xs:simpleType>
478
+ <xs:restriction base="xs:string">
479
+ <xs:whiteSpace value="preserve"/>
480
+ <xs:enumeration value="Manifestação de NFS-e - Confirmação do Intermediário"/>
481
+ </xs:restriction>
482
+ </xs:simpleType>
483
+ </xs:element>
484
+ </xs:sequence>
485
+ </xs:complexType>
486
+
487
+ <!--TIPO COMPLEXO PARA O EVENTO DE CONFIRMAÇÃO TÁCITA-->
488
+ <xs:complexType name="TE205204">
489
+ <xs:sequence>
490
+ <xs:element name="xDesc">
491
+ <xs:annotation>
492
+ <xs:documentation>
493
+ Descrição do evento: "Manifestação de NFS-e - Confirmação Tácita".
494
+ </xs:documentation>
495
+ </xs:annotation>
496
+ <xs:simpleType>
497
+ <xs:restriction base="xs:string">
498
+ <xs:whiteSpace value="preserve"/>
499
+ <xs:enumeration value="Manifestação de NFS-e - Confirmação Tácita"/>
500
+ </xs:restriction>
501
+ </xs:simpleType>
502
+ </xs:element>
503
+ </xs:sequence>
504
+ </xs:complexType>
505
+
506
+ <!--TIPO COMPLEXO PARA O EVENTO DE REJEIÇÃO DO PRESTADOR-->
507
+ <xs:complexType name="TE202205">
508
+ <xs:sequence>
509
+ <xs:element name="xDesc">
510
+ <xs:annotation>
511
+ <xs:documentation>
512
+ Descrição do evento: "Manifestação de NFS-e - Rejeição do Prestador".
513
+ </xs:documentation>
514
+ </xs:annotation>
515
+ <xs:simpleType>
516
+ <xs:restriction base="xs:string">
517
+ <xs:whiteSpace value="preserve"/>
518
+ <xs:enumeration value="Manifestação de NFS-e - Rejeição do Prestador"/>
519
+ </xs:restriction>
520
+ </xs:simpleType>
521
+ </xs:element>
522
+ <xs:element name="cMotivo" type="TSCodMotivoRejeicao">
523
+ <xs:annotation>
524
+ <xs:documentation>
525
+ Motivo da Rejeição da NFS-e:
526
+ 1 - NFS-e em duplicidade;
527
+ 2 - NFS-e já emitida pelo tomador;
528
+ 3 - Não ocorrência do fato gerador;
529
+ 4 - Erro quanto a responsabilidade tributária;
530
+ 5 - Erro quanto ao valor do serviço, valor das deduções ou serviço prestado ou data do fato gerador;
531
+ 9 - Outros;
532
+ </xs:documentation>
533
+ </xs:annotation>
534
+ </xs:element>
535
+ <xs:element name="xMotivo" type="TSMotivo" minOccurs="0">
536
+ <xs:annotation>
537
+ <xs:documentation>
538
+ Descrição para explicitar o motivo indicado neste evento
539
+ </xs:documentation>
540
+ </xs:annotation>
541
+ </xs:element>
542
+ </xs:sequence>
543
+ </xs:complexType>
544
+
545
+ <!--TIPO COMPLEXO PARA O EVENTO DE REJEIÇÃO DO TOMADOR-->
546
+ <xs:complexType name="TE203206">
547
+ <xs:sequence>
548
+ <xs:element name="xDesc">
549
+ <xs:annotation>
550
+ <xs:documentation>
551
+ Descrição do evento: "Manifestação de NFS-e - Rejeição do Tomador".
552
+ </xs:documentation>
553
+ </xs:annotation>
554
+ <xs:simpleType>
555
+ <xs:restriction base="xs:string">
556
+ <xs:whiteSpace value="preserve"/>
557
+ <xs:enumeration value="Manifestação de NFS-e - Rejeição do Tomador"/>
558
+ </xs:restriction>
559
+ </xs:simpleType>
560
+ </xs:element>
561
+ <xs:element name="cMotivo" type="TSCodMotivoRejeicao">
562
+ <xs:annotation>
563
+ <xs:documentation>
564
+ Motivo da Rejeição da NFS-e:
565
+ 1 - NFS-e em duplicidade;
566
+ 2 - NFS-e já emitida pelo tomador;
567
+ 3 - Não ocorrência do fato gerador;
568
+ 4 - Erro quanto a responsabilidade tributária;
569
+ 5 - Erro quanto ao valor do serviço, valor das deduções ou serviço prestado ou data do fato gerador;
570
+ 9 - Outros;
571
+ </xs:documentation>
572
+ </xs:annotation>
573
+ </xs:element>
574
+ <xs:element name="xMotivo" type="TSMotivo" minOccurs="0">
575
+ <xs:annotation>
576
+ <xs:documentation>
577
+ Descrição para explicitar o motivo indicado neste evento
578
+ </xs:documentation>
579
+ </xs:annotation>
580
+ </xs:element>
581
+ </xs:sequence>
582
+ </xs:complexType>
583
+
584
+ <!--TIPO COMPLEXO PARA O EVENTO DE REJEIÇÃO DO INTERMEDIÁRIO-->
585
+ <xs:complexType name="TE204207">
586
+ <xs:sequence>
587
+ <xs:element name="xDesc">
588
+ <xs:annotation>
589
+ <xs:documentation>
590
+ Descrição do evento: "Manifestação de NFS-e - Rejeição do Intermediário".
591
+ </xs:documentation>
592
+ </xs:annotation>
593
+ <xs:simpleType>
594
+ <xs:restriction base="xs:string">
595
+ <xs:whiteSpace value="preserve"/>
596
+ <xs:enumeration value="Manifestação de NFS-e - Rejeição do Intermediário"/>
597
+ </xs:restriction>
598
+ </xs:simpleType>
599
+ </xs:element>
600
+ <xs:element name="cMotivo" type="TSCodMotivoRejeicao">
601
+ <xs:annotation>
602
+ <xs:documentation>
603
+ Motivo da Rejeição da NFS-e:
604
+ 1 - NFS-e em duplicidade;
605
+ 2 - NFS-e já emitida pelo tomador;
606
+ 3 - Não ocorrência do fato gerador;
607
+ 4 - Erro quanto a responsabilidade tributária;
608
+ 5 - Erro quanto ao valor do serviço, valor das deduções ou serviço prestado ou data do fato gerador;
609
+ 9 - Outros;
610
+ </xs:documentation>
611
+ </xs:annotation>
612
+ </xs:element>
613
+ <xs:element name="xMotivo" type="TSMotivo" minOccurs="0">
614
+ <xs:annotation>
615
+ <xs:documentation>
616
+ Descrição para explicitar o motivo indicado neste evento
617
+ </xs:documentation>
618
+ </xs:annotation>
619
+ </xs:element>
620
+ </xs:sequence>
621
+ </xs:complexType>
622
+
623
+ <!--TIPO COMPLEXO PARA O EVENTO DE ANULAÇÃO DE REJEIÇÃO-->
624
+ <xs:complexType name="TE205208">
625
+ <xs:sequence>
626
+ <xs:element name="xDesc">
627
+ <xs:annotation>
628
+ <xs:documentation>
629
+ Descrição do evento: "Manifestação de NFS-e - Anulação da Rejeição".
630
+ </xs:documentation>
631
+ </xs:annotation>
632
+ <xs:simpleType>
633
+ <xs:restriction base="xs:string">
634
+ <xs:whiteSpace value="preserve"/>
635
+ <xs:enumeration value="Manifestação de NFS-e - Anulação da Rejeição"/>
636
+ </xs:restriction>
637
+ </xs:simpleType>
638
+ </xs:element>
639
+ <xs:element name="CPFAgTrib" type="TSCPF">
640
+ <xs:annotation>
641
+ <xs:documentation>
642
+ CPF do agente da administração tributária municipal que efetuou o anulação da manifestação de rejeição da NFS-e
643
+ </xs:documentation>
644
+ </xs:annotation>
645
+ </xs:element>
646
+ <xs:element name="idEvManifRej" type="TSIdNumEvento">
647
+ <xs:annotation>
648
+ <xs:documentation>
649
+ Referência ao "id" do Evento de Manifestação de NFS-e - Rejeição, que originou o presente evento de anulação
650
+ </xs:documentation>
651
+ </xs:annotation>
652
+ </xs:element>
653
+ <xs:element name="xMotivo" type="TSMotivo">
654
+ <xs:annotation>
655
+ <xs:documentation>
656
+ Descrição para explicitar o motivo indicado neste evento
657
+ </xs:documentation>
658
+ </xs:annotation>
659
+ </xs:element>
660
+ </xs:sequence>
661
+ </xs:complexType>
662
+
663
+ <!--TIPO COMPLEXO PARA O EVENTO DE CANCELAMENTO POR OFÍCIO DA NFS-E-->
664
+ <xs:complexType name="TE305101">
665
+ <xs:sequence>
666
+ <xs:element name="xDesc">
667
+ <xs:annotation>
668
+ <xs:documentation>
669
+ Descrição do evento: "Cancelamento de NFS-e por Ofício"
670
+ </xs:documentation>
671
+ </xs:annotation>
672
+ <xs:simpleType>
673
+ <xs:restriction base="xs:string">
674
+ <xs:whiteSpace value="preserve"/>
675
+ <xs:enumeration value="Cancelamento de NFS-e por Ofício"/>
676
+ </xs:restriction>
677
+ </xs:simpleType>
678
+ </xs:element>
679
+ <xs:element name="CPFAgTrib" type="TSCPF">
680
+ <xs:annotation>
681
+ <xs:documentation>
682
+ CPF do agente da administração tributária municipal que efetuou o cancelamento por ofício de NFS-e
683
+ </xs:documentation>
684
+ </xs:annotation>
685
+ </xs:element>
686
+ <xs:element name="nProcAdm" type="TSNumProcAdmAnaliseFiscalCanc">
687
+ <xs:annotation>
688
+ <xs:documentation>
689
+ Número do processo administrativo municipal vinculado ao cancelamento de NFS-e por ofício
690
+ </xs:documentation>
691
+ </xs:annotation>
692
+ </xs:element>
693
+ <xs:element name="xProcAdm" type="TSMotivo">
694
+ <xs:annotation>
695
+ <xs:documentation>
696
+ Descrição para explicitar o motivo do processo administrativo municipal indicado neste evento
697
+ </xs:documentation>
698
+ </xs:annotation>
699
+ </xs:element>
700
+ </xs:sequence>
701
+ </xs:complexType>
702
+
703
+ <!--TIPO COMPLEXO PARA O EVENTO DE BLOQUEIO POR OFÍCIO DA NFS-E-->
704
+ <xs:complexType name="TE305102">
705
+ <xs:sequence>
706
+ <xs:element name="xDesc">
707
+ <xs:annotation>
708
+ <xs:documentation>
709
+ Descrição do evento: "Bloqueio de NFS-e por Ofício".
710
+ </xs:documentation>
711
+ </xs:annotation>
712
+ <xs:simpleType>
713
+ <xs:restriction base="xs:string">
714
+ <xs:whiteSpace value="preserve"/>
715
+ <xs:enumeration value="Bloqueio de NFS-e por Ofício"/>
716
+ </xs:restriction>
717
+ </xs:simpleType>
718
+ </xs:element>
719
+ <xs:element name="CPFAgTrib" type="TSCPF">
720
+ <xs:annotation>
721
+ <xs:documentation>
722
+ CPF do agente da administração tributária municipal que efetuou o bloqueio de NFS-e por ofício
723
+ </xs:documentation>
724
+ </xs:annotation>
725
+ </xs:element>
726
+ <xs:element name="codEvento" type="TSCodigoEventoNFSe">
727
+ <xs:annotation>
728
+ <xs:documentation>
729
+ Eventos que podem ser escolhidos pelo município emissor para serem rejeitados após emissão e vinculação do evento de bloqueio por ofício em uma NFS-e:
730
+ e101101 - Cancelamento de NFS-e;
731
+ e105102 - Cancelamento de NFS-e por Substituição;
732
+ e105104 - Cancelamento de NFS-e Deferido por Análise Fiscal;
733
+ e105105 - Cancelamento de NFS-e Indeferido por Análise Fiscal;
734
+ e305101 - Cancelamento de NFS-e por Ofício;
735
+ </xs:documentation>
736
+ </xs:annotation>
737
+ </xs:element>
738
+ <xs:element name="xMotivo" type="TSMotivo">
739
+ <xs:annotation>
740
+ <xs:documentation>
741
+ Descrição para explicitar o motivo indicado neste evento
742
+ </xs:documentation>
743
+ </xs:annotation>
744
+ </xs:element>
745
+ </xs:sequence>
746
+ </xs:complexType>
747
+
748
+ <!--TIPO COMPLEXO PARA O EVENTO DE DESBLOQUEIO POR OFÍCIO DA NFS-E-->
749
+ <xs:complexType name="TE305103">
750
+ <xs:sequence>
751
+ <xs:element name="xDesc">
752
+ <xs:annotation>
753
+ <xs:documentation>
754
+ Descrição do evento: "Desbloqueio de NFS-e por Ofício".
755
+ </xs:documentation>
756
+ </xs:annotation>
757
+ <xs:simpleType>
758
+ <xs:restriction base="xs:string">
759
+ <xs:whiteSpace value="preserve"/>
760
+ <xs:enumeration value="Desbloqueio de NFS-e por Ofício"/>
761
+ </xs:restriction>
762
+ </xs:simpleType>
763
+ </xs:element>
764
+ <xs:element name="CPFAgTrib" type="TSCPF">
765
+ <xs:annotation>
766
+ <xs:documentation>
767
+ CPF do agente da administração tributária municipal que efetuou o desbloqueio de NFS-e por ofício
768
+ </xs:documentation>
769
+ </xs:annotation>
770
+ </xs:element>
771
+ <xs:element name="idBloqOfic" type="TSIdNumEvento">
772
+ <xs:annotation>
773
+ <xs:documentation>
774
+ Referência ao "id" do "Bloqueio de ofício" que originou o presente evento de desbloqueio
775
+ </xs:documentation>
776
+ </xs:annotation>
777
+ </xs:element>
778
+ </xs:sequence>
779
+ </xs:complexType>
780
+ </xs:schema>