br_nfe 2.3.2 → 3.0.0.beta.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.markdown +1 -1
- data/br_nfe.gemspec +0 -0
- data/lib/br_nfe/constants.rb +2 -2
- data/lib/br_nfe/product/nf_xml_value.rb +6 -11
- data/lib/br_nfe/product/nfe/cobranca/pagamento.rb +39 -12
- data/lib/br_nfe/product/nfe/item.rb +83 -36
- data/lib/br_nfe/product/nfe/item_tax/icms.rb +182 -46
- data/lib/br_nfe/product/nfe/item_tax/icms_uf_destino.rb +33 -22
- data/lib/br_nfe/product/nfe/item_tax/ipi.rb +18 -18
- data/lib/br_nfe/product/nfe/transporte/base.rb +17 -15
- data/lib/br_nfe/product/nota_fiscal.rb +72 -6
- data/lib/br_nfe/product/operation/base.rb +14 -13
- data/lib/br_nfe/product/reader/item.rb +19 -2
- data/lib/br_nfe/product/reader/nfe.rb +28 -9
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/_tc_prod.xml.slim +2 -2
- data/lib/br_nfe/product/xml/v3_10/infNFe/det/imposto/_tc_ICMSUFDest.xml.slim +1 -1
- data/lib/br_nfe/product/xml/v4_00/_tc_infNFe.xml.slim +45 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/_tc_ide.xml.slim +30 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/_tc_total.xml.slim +84 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/_tc_prod.xml.slim +62 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS00.xml.slim +11 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS10.xml.slim +28 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS20.xml.slim +18 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS201.xml.slim +21 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS202.xml.slim +20 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS30.xml.slim +23 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS500.xml.slim +13 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS51.xml.slim +25 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS60.xml.slim +12 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS70.xml.slim +35 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS90.xml.slim +38 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/ICMS/_tc_ICMS900.xml.slim +31 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/_tc_ICMSUFDest.xml.slim +15 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/det/imposto/_tc_IPI.xml.slim +27 -0
- data/lib/br_nfe/product/xml/v4_00/infNFe/pag/_tc_detPag.xml.slim +17 -0
- data/lib/br_nfe/version.rb +4 -4
- data/lib/config/settings/nfe/reader_xml_paths.yml +40 -9
- data/lib/config/settings/nfe/v4_00/operation.yml +843 -0
- data/lib/config/settings/nfe/v4_00/soap_client.yml +807 -0
- data/lib/config/settings/nfe/v4_00/xml_paths.yml +577 -0
- data/test/br_nfe/product/nfe/item_tax/icms_uf_destino_test.rb +9 -8
- data/test/br_nfe/product/nota_fiscal_test.rb +28 -36
- data/test/br_nfe/product/reader/nfe_test.rb +31 -31
- data/test/factories/product/nfe/item_tax/icms_uf_destino.rb +1 -1
- data/test/factories/product/operation/nfe_autorizacao.rb +3 -3
- metadata +26 -4
@@ -0,0 +1,577 @@
|
|
1
|
+
default_return: &default_return
|
2
|
+
header_xml:
|
3
|
+
path: '//soap:Envelope/soap:Header'
|
4
|
+
namespaces:
|
5
|
+
xmlns:soap: "http://www.w3.org/2003/05/soap-envelope"
|
6
|
+
body_xml:
|
7
|
+
path: '//soap:Envelope/soap:Body'
|
8
|
+
namespaces:
|
9
|
+
xmlns:soap: "http://www.w3.org/2003/05/soap-envelope"
|
10
|
+
|
11
|
+
nfe_url_default: &nfe_url_default 'http://www.portalfiscal.inf.br/nfe'
|
12
|
+
|
13
|
+
# Caminho para pegar os valores para cada requisição.
|
14
|
+
# Deve considerar que sempre estará dentro do body
|
15
|
+
default_return_status_servico: &default_return_status_servico
|
16
|
+
namespaces:
|
17
|
+
nf: *nfe_url_default
|
18
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2'
|
19
|
+
environment: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:tpAmb'
|
20
|
+
app_version: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:verAplic'
|
21
|
+
processed_at: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:dhRecbto'
|
22
|
+
processing_status_code: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:cStat'
|
23
|
+
processing_status_motive: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:xMotivo'
|
24
|
+
uf: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:cUF'
|
25
|
+
average_time: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:tMed'
|
26
|
+
observation: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:xObs'
|
27
|
+
return_prevision: '//ret:nfeStatusServicoNF2Result/nf:retConsStatServ/nf:dhRetorno'
|
28
|
+
|
29
|
+
default_return_autorizacao: &default_return_autorizacao
|
30
|
+
namespaces:
|
31
|
+
nf: *nfe_url_default
|
32
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao'
|
33
|
+
environment: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:tpAmb'
|
34
|
+
app_version: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:verAplic'
|
35
|
+
processed_at: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:dhRecbto'
|
36
|
+
processing_status_code: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:cStat'
|
37
|
+
processing_status_motive: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:xMotivo'
|
38
|
+
prot_nfe: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:protNFe' # Local onde é encontrado a tag <protNFe>
|
39
|
+
async_protocol: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:infRec/nf:nRec'
|
40
|
+
average_time: '//ret:nfeAutorizacaoLoteResult/nf:retEnviNFe/nf:infRec/nf:tMed'
|
41
|
+
|
42
|
+
default_return_ret_autorizacao: &default_return_ret_autorizacao
|
43
|
+
namespaces:
|
44
|
+
nf: *nfe_url_default
|
45
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao'
|
46
|
+
environment: '//ret:nfeRetAutorizacaoLoteResult/nf:retConsReciNFe/nf:tpAmb'
|
47
|
+
app_version: '//ret:nfeRetAutorizacaoLoteResult/nf:retConsReciNFe/nf:verAplic'
|
48
|
+
processed_at: '//ret:nfeRetAutorizacaoLoteResult/nf:retConsReciNFe/nf:dhRecbto'
|
49
|
+
protocol: '//ret:nfeRetAutorizacaoLoteResult/nf:retConsReciNFe/nf:nRec'
|
50
|
+
processing_status_code: '//ret:nfeRetAutorizacaoLoteResult/nf:retConsReciNFe/nf:cStat'
|
51
|
+
processing_status_motive: '//ret:nfeRetAutorizacaoLoteResult/nf:retConsReciNFe/nf:xMotivo'
|
52
|
+
prot_nfe: '//ret:nfeRetAutorizacaoLoteResult/nf:retConsReciNFe/nf:protNFe' # Local onde é encontrado a tag <protNFe>
|
53
|
+
|
54
|
+
default_return_consulta_protocolo: &default_return_consulta_protocolo
|
55
|
+
namespaces:
|
56
|
+
nf: *nfe_url_default
|
57
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2'
|
58
|
+
environment: '//ret:nfeConsultaNF2Result/nf:retConsSitNFe/nf:tpAmb'
|
59
|
+
app_version: '//ret:nfeConsultaNF2Result/nf:retConsSitNFe/nf:verAplic'
|
60
|
+
processed_at: '//ret:nfeConsultaNF2Result/nf:retConsSitNFe/nf:dhRecbto'
|
61
|
+
processing_status_code: '//ret:nfeConsultaNF2Result/nf:retConsSitNFe/nf:cStat'
|
62
|
+
processing_status_motive: '//ret:nfeConsultaNF2Result/nf:retConsSitNFe/nf:xMotivo'
|
63
|
+
prot_nfe: '//ret:nfeConsultaNF2Result/nf:retConsSitNFe/nf:protNFe' # Local onde é encontrado a tag <protNFe>
|
64
|
+
proc_evento_nfe: '//ret:nfeConsultaNF2Result/nf:retConsSitNFe/nf:procEventoNFe'
|
65
|
+
|
66
|
+
default_return_inutilizacao: &default_return_inutilizacao
|
67
|
+
namespaces:
|
68
|
+
nf: *nfe_url_default
|
69
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeInutilizacao2'
|
70
|
+
inf_inut: '//ret:nfeInutilizacaoNF2Result/nf:retInutNFe/nf:infInut'
|
71
|
+
environment: '//infInut/tpAmb'
|
72
|
+
app_version: '//infInut/verAplic'
|
73
|
+
processed_at: '//infInut/dhRecbto'
|
74
|
+
protocol: '//infInut/nProt'
|
75
|
+
processing_status_code: '//infInut/cStat'
|
76
|
+
processing_status_motive: '//infInut/xMotivo'
|
77
|
+
uf: '//infInut/cUF'
|
78
|
+
year: '//infInut/ano'
|
79
|
+
cnpj: '//infInut/CNPJ'
|
80
|
+
nf_model: '//infInut/mod'
|
81
|
+
nf_series: '//infInut/serie'
|
82
|
+
start_invoice_number: '//infInut/nNFIni'
|
83
|
+
end_invoice_number: '//infInut/nNFFin'
|
84
|
+
|
85
|
+
default_return_recepcao_evento: &default_return_recepcao_evento
|
86
|
+
namespaces:
|
87
|
+
nf: *nfe_url_default
|
88
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/RecepcaoEvento'
|
89
|
+
ret_env_evento: '//ret:nfeRecepcaoEventoResult/nf:retEnvEvento'
|
90
|
+
ret_evento_without_namespaces: '//retEnvEvento/retEvento'
|
91
|
+
environment: '//ret:nfeRecepcaoEventoResult/nf:retEnvEvento/nf:tpAmb'
|
92
|
+
app_version: '//ret:nfeRecepcaoEventoResult/nf:retEnvEvento/nf:verAplic'
|
93
|
+
processed_at: '//ret:nfeRecepcaoEventoResult/nf:retEnvEvento/nf:dhRecbto'
|
94
|
+
processing_status_code: '//ret:nfeRecepcaoEventoResult/nf:retEnvEvento/nf:cStat'
|
95
|
+
processing_status_motive: '//ret:nfeRecepcaoEventoResult/nf:retEnvEvento/nf:xMotivo'
|
96
|
+
codigo_orgao: '//ret:nfeRecepcaoEventoResult/nf:retEnvEvento/nf:cOrgao'
|
97
|
+
info_event_codigo_orgao: '//retEvento/infEvento/cOrgao'
|
98
|
+
info_event_status_code: '//retEvento/infEvento/cStat'
|
99
|
+
info_event_status_motive: '//retEvento/infEvento/xMotivo'
|
100
|
+
info_event_code: '//retEvento/infEvento/tpEvento'
|
101
|
+
info_event_sequence: '//retEvento/infEvento/nSeqEvento'
|
102
|
+
info_event_cnpj_destino: '//retEvento/infEvento/CNPJDest'
|
103
|
+
info_event_cpf_destino: '//retEvento/infEvento/CPFDest'
|
104
|
+
info_event_registred_at: '//retEvento/infEvento/dhRegEvento'
|
105
|
+
info_event_authorization_protocol: '//retEvento/infEvento/nProt'
|
106
|
+
|
107
|
+
nfe:
|
108
|
+
v4_10:
|
109
|
+
gateway:
|
110
|
+
am:
|
111
|
+
xml_paths:
|
112
|
+
status_servico:
|
113
|
+
return_paths:
|
114
|
+
<<: *default_return
|
115
|
+
<<: *default_return_status_servico
|
116
|
+
autorizacao:
|
117
|
+
return_paths:
|
118
|
+
<<: *default_return
|
119
|
+
<<: *default_return_autorizacao
|
120
|
+
retorno_autorizacao:
|
121
|
+
return_paths:
|
122
|
+
<<: *default_return
|
123
|
+
<<: *default_return_ret_autorizacao
|
124
|
+
consulta_protocolo:
|
125
|
+
return_paths:
|
126
|
+
<<: *default_return
|
127
|
+
<<: *default_return_consulta_protocolo
|
128
|
+
inutilizacao:
|
129
|
+
return_paths:
|
130
|
+
<<: *default_return
|
131
|
+
<<: *default_return_inutilizacao
|
132
|
+
recepcao_evento:
|
133
|
+
return_paths:
|
134
|
+
<<: *default_return
|
135
|
+
<<: *default_return_recepcao_evento
|
136
|
+
download_nf:
|
137
|
+
return_paths:
|
138
|
+
<<: *default_return
|
139
|
+
ba:
|
140
|
+
xml_paths:
|
141
|
+
status_servico:
|
142
|
+
return_paths:
|
143
|
+
<<: *default_return
|
144
|
+
<<: *default_return_status_servico
|
145
|
+
autorizacao:
|
146
|
+
return_paths:
|
147
|
+
<<: *default_return
|
148
|
+
<<: *default_return_autorizacao
|
149
|
+
retorno_autorizacao:
|
150
|
+
return_paths:
|
151
|
+
<<: *default_return
|
152
|
+
<<: *default_return_ret_autorizacao
|
153
|
+
consulta_protocolo:
|
154
|
+
return_paths:
|
155
|
+
<<: *default_return
|
156
|
+
<<: *default_return_consulta_protocolo
|
157
|
+
inutilizacao:
|
158
|
+
return_paths:
|
159
|
+
<<: *default_return
|
160
|
+
<<: *default_return_inutilizacao
|
161
|
+
recepcao_evento:
|
162
|
+
return_paths:
|
163
|
+
<<: *default_return
|
164
|
+
<<: *default_return_recepcao_evento
|
165
|
+
download_nf:
|
166
|
+
return_paths:
|
167
|
+
<<: *default_return
|
168
|
+
ce:
|
169
|
+
xml_paths:
|
170
|
+
status_servico:
|
171
|
+
return_paths:
|
172
|
+
<<: *default_return
|
173
|
+
<<: *default_return_status_servico
|
174
|
+
autorizacao:
|
175
|
+
return_paths:
|
176
|
+
<<: *default_return
|
177
|
+
<<: *default_return_autorizacao
|
178
|
+
retorno_autorizacao:
|
179
|
+
return_paths:
|
180
|
+
<<: *default_return
|
181
|
+
<<: *default_return_ret_autorizacao
|
182
|
+
consulta_protocolo:
|
183
|
+
return_paths:
|
184
|
+
<<: *default_return
|
185
|
+
<<: *default_return_consulta_protocolo
|
186
|
+
inutilizacao:
|
187
|
+
return_paths:
|
188
|
+
<<: *default_return
|
189
|
+
<<: *default_return_inutilizacao
|
190
|
+
recepcao_evento:
|
191
|
+
return_paths:
|
192
|
+
<<: *default_return
|
193
|
+
<<: *default_return_recepcao_evento
|
194
|
+
download_nf:
|
195
|
+
return_paths:
|
196
|
+
<<: *default_return
|
197
|
+
go:
|
198
|
+
xml_paths:
|
199
|
+
status_servico:
|
200
|
+
return_paths:
|
201
|
+
<<: *default_return
|
202
|
+
<<: *default_return_status_servico
|
203
|
+
autorizacao:
|
204
|
+
return_paths:
|
205
|
+
<<: *default_return
|
206
|
+
<<: *default_return_autorizacao
|
207
|
+
retorno_autorizacao:
|
208
|
+
return_paths:
|
209
|
+
<<: *default_return
|
210
|
+
<<: *default_return_ret_autorizacao
|
211
|
+
consulta_protocolo:
|
212
|
+
return_paths:
|
213
|
+
<<: *default_return
|
214
|
+
<<: *default_return_consulta_protocolo
|
215
|
+
inutilizacao:
|
216
|
+
return_paths:
|
217
|
+
<<: *default_return
|
218
|
+
<<: *default_return_inutilizacao
|
219
|
+
recepcao_evento:
|
220
|
+
return_paths:
|
221
|
+
<<: *default_return
|
222
|
+
<<: *default_return_recepcao_evento
|
223
|
+
download_nf:
|
224
|
+
return_paths:
|
225
|
+
<<: *default_return
|
226
|
+
mg:
|
227
|
+
xml_paths:
|
228
|
+
status_servico:
|
229
|
+
return_paths:
|
230
|
+
<<: *default_return
|
231
|
+
<<: *default_return_status_servico
|
232
|
+
autorizacao:
|
233
|
+
return_paths:
|
234
|
+
<<: *default_return
|
235
|
+
<<: *default_return_autorizacao
|
236
|
+
retorno_autorizacao:
|
237
|
+
return_paths:
|
238
|
+
<<: *default_return
|
239
|
+
<<: *default_return_ret_autorizacao
|
240
|
+
consulta_protocolo:
|
241
|
+
return_paths:
|
242
|
+
<<: *default_return
|
243
|
+
<<: *default_return_consulta_protocolo
|
244
|
+
inutilizacao:
|
245
|
+
return_paths:
|
246
|
+
<<: *default_return
|
247
|
+
<<: *default_return_inutilizacao
|
248
|
+
recepcao_evento:
|
249
|
+
return_paths:
|
250
|
+
<<: *default_return
|
251
|
+
<<: *default_return_recepcao_evento
|
252
|
+
download_nf:
|
253
|
+
return_paths:
|
254
|
+
<<: *default_return
|
255
|
+
ms:
|
256
|
+
xml_paths:
|
257
|
+
status_servico:
|
258
|
+
return_paths:
|
259
|
+
<<: *default_return
|
260
|
+
<<: *default_return_status_servico
|
261
|
+
autorizacao:
|
262
|
+
return_paths:
|
263
|
+
<<: *default_return
|
264
|
+
<<: *default_return_autorizacao
|
265
|
+
retorno_autorizacao:
|
266
|
+
return_paths:
|
267
|
+
<<: *default_return
|
268
|
+
<<: *default_return_ret_autorizacao
|
269
|
+
consulta_protocolo:
|
270
|
+
return_paths:
|
271
|
+
<<: *default_return
|
272
|
+
<<: *default_return_consulta_protocolo
|
273
|
+
inutilizacao:
|
274
|
+
return_paths:
|
275
|
+
<<: *default_return
|
276
|
+
<<: *default_return_inutilizacao
|
277
|
+
recepcao_evento:
|
278
|
+
return_paths:
|
279
|
+
<<: *default_return
|
280
|
+
<<: *default_return_recepcao_evento
|
281
|
+
download_nf:
|
282
|
+
return_paths:
|
283
|
+
<<: *default_return
|
284
|
+
mt:
|
285
|
+
xml_paths:
|
286
|
+
status_servico:
|
287
|
+
return_paths:
|
288
|
+
<<: *default_return
|
289
|
+
<<: *default_return_status_servico
|
290
|
+
body_xml:
|
291
|
+
path: '//soap:Envelope/soap:Body'
|
292
|
+
namespaces:
|
293
|
+
xmlns:soap: 'http://schemas.xmlsoap.org/soap/envelope/'
|
294
|
+
autorizacao:
|
295
|
+
return_paths:
|
296
|
+
<<: *default_return
|
297
|
+
<<: *default_return_autorizacao
|
298
|
+
retorno_autorizacao:
|
299
|
+
return_paths:
|
300
|
+
<<: *default_return
|
301
|
+
<<: *default_return_ret_autorizacao
|
302
|
+
consulta_protocolo:
|
303
|
+
return_paths:
|
304
|
+
<<: *default_return
|
305
|
+
<<: *default_return_consulta_protocolo
|
306
|
+
inutilizacao:
|
307
|
+
return_paths:
|
308
|
+
<<: *default_return
|
309
|
+
<<: *default_return_inutilizacao
|
310
|
+
recepcao_evento:
|
311
|
+
return_paths:
|
312
|
+
<<: *default_return
|
313
|
+
<<: *default_return_recepcao_evento
|
314
|
+
download_nf:
|
315
|
+
return_paths:
|
316
|
+
<<: *default_return
|
317
|
+
pe:
|
318
|
+
xml_paths:
|
319
|
+
status_servico:
|
320
|
+
return_paths:
|
321
|
+
<<: *default_return
|
322
|
+
<<: *default_return_status_servico
|
323
|
+
autorizacao:
|
324
|
+
return_paths:
|
325
|
+
<<: *default_return
|
326
|
+
<<: *default_return_autorizacao
|
327
|
+
retorno_autorizacao:
|
328
|
+
return_paths:
|
329
|
+
<<: *default_return
|
330
|
+
<<: *default_return_ret_autorizacao
|
331
|
+
consulta_protocolo:
|
332
|
+
return_paths:
|
333
|
+
<<: *default_return
|
334
|
+
<<: *default_return_consulta_protocolo
|
335
|
+
inutilizacao:
|
336
|
+
return_paths:
|
337
|
+
<<: *default_return
|
338
|
+
<<: *default_return_inutilizacao
|
339
|
+
recepcao_evento:
|
340
|
+
return_paths:
|
341
|
+
<<: *default_return
|
342
|
+
<<: *default_return_recepcao_evento
|
343
|
+
download_nf:
|
344
|
+
return_paths:
|
345
|
+
<<: *default_return
|
346
|
+
pr:
|
347
|
+
xml_paths:
|
348
|
+
status_servico:
|
349
|
+
return_paths:
|
350
|
+
<<: *default_return
|
351
|
+
<<: *default_return_status_servico
|
352
|
+
autorizacao:
|
353
|
+
return_paths:
|
354
|
+
<<: *default_return
|
355
|
+
<<: *default_return_autorizacao
|
356
|
+
namespaces:
|
357
|
+
nf: *nfe_url_default
|
358
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeAutorizacao3'
|
359
|
+
retorno_autorizacao:
|
360
|
+
return_paths:
|
361
|
+
<<: *default_return
|
362
|
+
<<: *default_return_ret_autorizacao
|
363
|
+
namespaces:
|
364
|
+
nf: *nfe_url_default
|
365
|
+
ret: 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao3'
|
366
|
+
consulta_protocolo:
|
367
|
+
return_paths:
|
368
|
+
<<: *default_return
|
369
|
+
<<: *default_return_consulta_protocolo
|
370
|
+
inutilizacao:
|
371
|
+
return_paths:
|
372
|
+
<<: *default_return
|
373
|
+
<<: *default_return_inutilizacao
|
374
|
+
recepcao_evento:
|
375
|
+
return_paths:
|
376
|
+
<<: *default_return
|
377
|
+
<<: *default_return_recepcao_evento
|
378
|
+
download_nf:
|
379
|
+
return_paths:
|
380
|
+
<<: *default_return
|
381
|
+
rs:
|
382
|
+
xml_paths:
|
383
|
+
status_servico:
|
384
|
+
return_paths:
|
385
|
+
<<: *default_return
|
386
|
+
<<: *default_return_status_servico
|
387
|
+
autorizacao:
|
388
|
+
return_paths:
|
389
|
+
<<: *default_return
|
390
|
+
<<: *default_return_autorizacao
|
391
|
+
retorno_autorizacao:
|
392
|
+
return_paths:
|
393
|
+
<<: *default_return
|
394
|
+
<<: *default_return_ret_autorizacao
|
395
|
+
consulta_protocolo:
|
396
|
+
return_paths:
|
397
|
+
<<: *default_return
|
398
|
+
<<: *default_return_consulta_protocolo
|
399
|
+
inutilizacao:
|
400
|
+
return_paths:
|
401
|
+
<<: *default_return
|
402
|
+
<<: *default_return_inutilizacao
|
403
|
+
recepcao_evento:
|
404
|
+
return_paths:
|
405
|
+
<<: *default_return
|
406
|
+
<<: *default_return_recepcao_evento
|
407
|
+
download_nf:
|
408
|
+
return_paths:
|
409
|
+
<<: *default_return
|
410
|
+
sp:
|
411
|
+
xml_paths:
|
412
|
+
status_servico:
|
413
|
+
return_paths:
|
414
|
+
<<: *default_return
|
415
|
+
<<: *default_return_status_servico
|
416
|
+
autorizacao:
|
417
|
+
return_paths:
|
418
|
+
<<: *default_return
|
419
|
+
<<: *default_return_autorizacao
|
420
|
+
retorno_autorizacao:
|
421
|
+
return_paths:
|
422
|
+
<<: *default_return
|
423
|
+
<<: *default_return_ret_autorizacao
|
424
|
+
consulta_protocolo:
|
425
|
+
return_paths:
|
426
|
+
<<: *default_return
|
427
|
+
<<: *default_return_consulta_protocolo
|
428
|
+
inutilizacao:
|
429
|
+
return_paths:
|
430
|
+
<<: *default_return
|
431
|
+
<<: *default_return_inutilizacao
|
432
|
+
recepcao_evento:
|
433
|
+
return_paths:
|
434
|
+
<<: *default_return
|
435
|
+
<<: *default_return_recepcao_evento
|
436
|
+
download_nf:
|
437
|
+
return_paths:
|
438
|
+
<<: *default_return
|
439
|
+
svan:
|
440
|
+
xml_paths:
|
441
|
+
status_servico:
|
442
|
+
return_paths:
|
443
|
+
<<: *default_return
|
444
|
+
<<: *default_return_status_servico
|
445
|
+
autorizacao:
|
446
|
+
return_paths:
|
447
|
+
<<: *default_return
|
448
|
+
<<: *default_return_autorizacao
|
449
|
+
retorno_autorizacao:
|
450
|
+
return_paths:
|
451
|
+
<<: *default_return
|
452
|
+
<<: *default_return_ret_autorizacao
|
453
|
+
consulta_protocolo:
|
454
|
+
return_paths:
|
455
|
+
<<: *default_return
|
456
|
+
<<: *default_return_consulta_protocolo
|
457
|
+
inutilizacao:
|
458
|
+
return_paths:
|
459
|
+
<<: *default_return
|
460
|
+
<<: *default_return_inutilizacao
|
461
|
+
recepcao_evento:
|
462
|
+
return_paths:
|
463
|
+
<<: *default_return
|
464
|
+
<<: *default_return_recepcao_evento
|
465
|
+
download_nf:
|
466
|
+
return_paths:
|
467
|
+
<<: *default_return
|
468
|
+
svc_an:
|
469
|
+
xml_paths:
|
470
|
+
status_servico:
|
471
|
+
return_paths:
|
472
|
+
<<: *default_return
|
473
|
+
<<: *default_return_status_servico
|
474
|
+
autorizacao:
|
475
|
+
return_paths:
|
476
|
+
<<: *default_return
|
477
|
+
<<: *default_return_autorizacao
|
478
|
+
retorno_autorizacao:
|
479
|
+
return_paths:
|
480
|
+
<<: *default_return
|
481
|
+
<<: *default_return_ret_autorizacao
|
482
|
+
consulta_protocolo:
|
483
|
+
return_paths:
|
484
|
+
<<: *default_return
|
485
|
+
<<: *default_return_consulta_protocolo
|
486
|
+
inutilizacao:
|
487
|
+
return_paths:
|
488
|
+
<<: *default_return
|
489
|
+
<<: *default_return_inutilizacao
|
490
|
+
recepcao_evento:
|
491
|
+
return_paths:
|
492
|
+
<<: *default_return
|
493
|
+
<<: *default_return_recepcao_evento
|
494
|
+
download_nf:
|
495
|
+
return_paths:
|
496
|
+
<<: *default_return
|
497
|
+
svc_rs:
|
498
|
+
xml_paths:
|
499
|
+
status_servico:
|
500
|
+
return_paths:
|
501
|
+
<<: *default_return
|
502
|
+
<<: *default_return_status_servico
|
503
|
+
autorizacao:
|
504
|
+
return_paths:
|
505
|
+
<<: *default_return
|
506
|
+
<<: *default_return_autorizacao
|
507
|
+
retorno_autorizacao:
|
508
|
+
return_paths:
|
509
|
+
<<: *default_return
|
510
|
+
<<: *default_return_ret_autorizacao
|
511
|
+
consulta_protocolo:
|
512
|
+
return_paths:
|
513
|
+
<<: *default_return
|
514
|
+
<<: *default_return_consulta_protocolo
|
515
|
+
inutilizacao:
|
516
|
+
return_paths:
|
517
|
+
<<: *default_return
|
518
|
+
<<: *default_return_inutilizacao
|
519
|
+
recepcao_evento:
|
520
|
+
return_paths:
|
521
|
+
<<: *default_return
|
522
|
+
<<: *default_return_recepcao_evento
|
523
|
+
download_nf:
|
524
|
+
return_paths:
|
525
|
+
<<: *default_return
|
526
|
+
svrs:
|
527
|
+
xml_paths:
|
528
|
+
status_servico:
|
529
|
+
return_paths:
|
530
|
+
<<: *default_return
|
531
|
+
<<: *default_return_status_servico
|
532
|
+
autorizacao:
|
533
|
+
return_paths:
|
534
|
+
<<: *default_return
|
535
|
+
<<: *default_return_autorizacao
|
536
|
+
retorno_autorizacao:
|
537
|
+
return_paths:
|
538
|
+
<<: *default_return
|
539
|
+
<<: *default_return_ret_autorizacao
|
540
|
+
consulta_protocolo:
|
541
|
+
return_paths:
|
542
|
+
<<: *default_return
|
543
|
+
<<: *default_return_consulta_protocolo
|
544
|
+
inutilizacao:
|
545
|
+
return_paths:
|
546
|
+
<<: *default_return
|
547
|
+
<<: *default_return_inutilizacao
|
548
|
+
recepcao_evento:
|
549
|
+
return_paths:
|
550
|
+
<<: *default_return
|
551
|
+
<<: *default_return_recepcao_evento
|
552
|
+
download_nf:
|
553
|
+
return_paths:
|
554
|
+
<<: *default_return
|
555
|
+
prot_nfe_paths:
|
556
|
+
processed_at: '//protNFe/infProt/dhRecbto'
|
557
|
+
protocol: '//protNFe/infProt/nProt'
|
558
|
+
digest_value: '//protNFe/infProt/digVal'
|
559
|
+
status_code: '//protNFe/infProt/cStat'
|
560
|
+
status_motive: '//protNFe/infProt/xMotivo'
|
561
|
+
access_key: '//protNFe/infProt/chNFe'
|
562
|
+
evento_request_paths:
|
563
|
+
sent_at: '//procEventoNFe/evento/infEvento/dhEvento'
|
564
|
+
event_protocol: '//procEventoNFe/evento/infEvento/detEvento/nProt'
|
565
|
+
description: '//procEventoNFe/evento/infEvento/detEvento/descEvento'
|
566
|
+
justification: '//procEventoNFe/evento/infEvento/detEvento/xJust'
|
567
|
+
correction_text: '//procEventoNFe/evento/infEvento/detEvento/xCorrecao'
|
568
|
+
evento_return_paths:
|
569
|
+
codigo_orgao: '//procEventoNFe/retEvento/infEvento/cOrgao'
|
570
|
+
status_code: '//procEventoNFe/retEvento/infEvento/cStat'
|
571
|
+
status_motive: '//procEventoNFe/retEvento/infEvento/xMotivo'
|
572
|
+
code: '//procEventoNFe/retEvento/infEvento/tpEvento'
|
573
|
+
sequence: '//procEventoNFe/retEvento/infEvento/nSeqEvento'
|
574
|
+
cnpj_destino: '//procEventoNFe/retEvento/infEvento/CNPJDest'
|
575
|
+
cpf_destino: '//procEventoNFe/retEvento/infEvento/CPFDest'
|
576
|
+
registred_at: '//procEventoNFe/retEvento/infEvento/dhRegEvento'
|
577
|
+
authorization_protocol: '//procEventoNFe/retEvento/infEvento/nProt'
|
@@ -5,7 +5,8 @@ describe BrNfe::Product::Nfe::ItemTax::IcmsUfDestino do
|
|
5
5
|
|
6
6
|
describe 'Alias attributes' do
|
7
7
|
it { must_have_alias_attribute :vBCUFDest, :total_base_calculo }
|
8
|
-
it { must_have_alias_attribute :
|
8
|
+
it { must_have_alias_attribute :vBCFCPUFDest, :bc_fcp_uf_destino }
|
9
|
+
it { must_have_alias_attribute :pFCPUFDest, :percentual_fcp_uf_destino }
|
9
10
|
it { must_have_alias_attribute :pICMSUFDest, :aliquota_interna_uf_destino }
|
10
11
|
it { must_have_alias_attribute :pICMSInter, :aliquota_interestadual }
|
11
12
|
it { must_have_alias_attribute :pICMSInterPart, :percentual_partilha_destino }
|
@@ -28,27 +29,27 @@ describe BrNfe::Product::Nfe::ItemTax::IcmsUfDestino do
|
|
28
29
|
it { must validate_numericality_of(:aliquota_interestadual).
|
29
30
|
is_greater_than_or_equal_to(0.0).
|
30
31
|
is_less_than_or_equal_to(99.99).
|
31
|
-
allow_nil
|
32
|
+
allow_nil
|
32
33
|
}
|
33
34
|
end
|
34
35
|
describe '#percentual_partilha_destino' do
|
35
36
|
it { must validate_numericality_of(:percentual_partilha_destino).
|
36
37
|
is_greater_than_or_equal_to(0.0).
|
37
38
|
is_less_than_or_equal_to(100.0).
|
38
|
-
allow_nil
|
39
|
+
allow_nil
|
39
40
|
}
|
40
41
|
end
|
41
|
-
describe '#
|
42
|
-
it { must validate_numericality_of(:
|
42
|
+
describe '#percentual_fcp_uf_destino' do
|
43
|
+
it { must validate_numericality_of(:percentual_fcp_uf_destino).
|
43
44
|
is_greater_than_or_equal_to(0.0).
|
44
|
-
is_less_than_or_equal_to(2.
|
45
|
-
allow_nil
|
45
|
+
is_less_than_or_equal_to(2.5).
|
46
|
+
allow_nil
|
46
47
|
}
|
47
48
|
end
|
48
49
|
describe '#total_fcp_destino' do
|
49
50
|
it { must validate_numericality_of(:total_fcp_destino).
|
50
51
|
is_greater_than_or_equal_to(0.0).
|
51
|
-
allow_nil
|
52
|
+
allow_nil
|
52
53
|
}
|
53
54
|
end
|
54
55
|
describe '#total_destino' do
|