br_nfe 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/br_nfe.gemspec +5 -5
- data/lib/br_nfe.rb +0 -0
- data/lib/br_nfe/base.rb +0 -0
- data/lib/br_nfe/constants.rb +0 -0
- data/lib/br_nfe/endereco.rb +0 -0
- data/lib/br_nfe/person.rb +0 -0
- data/lib/br_nfe/product/destinatario.rb +0 -0
- data/lib/br_nfe/product/nf_xml_value.rb +0 -0
- data/lib/br_nfe/product/nfe/cobranca/pagamento.rb +0 -0
- data/lib/br_nfe/product/nota_fiscal.rb +15 -0
- data/lib/br_nfe/product/operation/base.rb +0 -0
- data/lib/br_nfe/product/operation/nfe_autorizacao.rb +0 -0
- data/lib/br_nfe/product/operation/nfe_consulta_protocolo.rb +0 -0
- data/lib/br_nfe/product/operation/nfe_download_nf.rb +0 -0
- data/lib/br_nfe/product/operation/nfe_inutilizacao.rb +0 -0
- data/lib/br_nfe/product/operation/nfe_recepcao_evento.rb +0 -0
- data/lib/br_nfe/product/operation/nfe_ret_autorizacao.rb +0 -0
- data/lib/br_nfe/product/operation/nfe_status_servico.rb +0 -0
- data/lib/br_nfe/product/reader/destinatario.rb +0 -0
- data/lib/br_nfe/product/reader/emitente.rb +0 -0
- data/lib/br_nfe/product/reader/endereco_retirada_entrega.rb +0 -0
- data/lib/br_nfe/product/reader/fatura.rb +0 -0
- data/lib/br_nfe/product/reader/item.rb +0 -0
- data/lib/br_nfe/product/reader/nfe.rb +0 -0
- data/lib/br_nfe/product/reader/transporte.rb +0 -0
- data/lib/br_nfe/product/response/base.rb +0 -0
- data/lib/br_nfe/product/response/build/base.rb +0 -0
- data/lib/br_nfe/product/response/build/nfe_autorizacao.rb +0 -0
- data/lib/br_nfe/product/response/build/nfe_consulta_protocolo.rb +0 -0
- data/lib/br_nfe/product/response/build/nfe_inutilizacao.rb +0 -0
- data/lib/br_nfe/product/response/build/nfe_recepcao_evento.rb +0 -0
- data/lib/br_nfe/product/response/build/nfe_ret_autorizacao.rb +0 -0
- data/lib/br_nfe/product/response/build/nfe_status_servico.rb +0 -0
- data/lib/br_nfe/product/response/event.rb +0 -0
- data/lib/br_nfe/product/response/nfe_autorizacao.rb +0 -0
- data/lib/br_nfe/product/response/nfe_consulta_protocolo.rb +0 -0
- data/lib/br_nfe/product/response/nfe_recepcao_evento.rb +0 -0
- data/lib/br_nfe/product/xml/soap_env.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v2_00/infNFe/NFe.xml.slim +0 -0
- data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_ide.xml.slim +6 -1
- data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +0 -0
- data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +0 -0
- data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +0 -0
- data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +0 -0
- data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/response/build/invoice_build.rb +0 -0
- data/lib/br_nfe/service/response/nota_fiscal.rb +0 -0
- data/lib/br_nfe/service/rps.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/base.rb +0 -0
- data/lib/br_nfe/service/simpliss/v1/xml/_tc_dados_servico.xml.slim +0 -0
- data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +0 -0
- data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +0 -0
- data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +0 -0
- data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +0 -0
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +0 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim +0 -0
- data/lib/br_nfe/version.rb +2 -2
- data/lib/config/settings/nfe/reader_xml_paths.yml +0 -0
- data/lib/config/settings/nfe/v3_10/operation.yml +0 -0
- data/lib/config/settings/nfe/v3_10/xml_paths.yml +0 -0
- data/lib/config/settings/nfse.yml +0 -0
- data/test/br_nfe/base_test.rb +0 -0
- data/test/br_nfe/product/operation/base_test.rb +0 -0
- data/test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb +0 -0
- data/test/br_nfe/product/operation/nfe_download_nf_test.rb +0 -0
- data/test/br_nfe/product/operation/nfe_inutilizacao_test.rb +0 -0
- data/test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb +0 -0
- data/test/br_nfe/product/operation/nfe_status_servico_test.rb +0 -0
- data/test/br_nfe/product/reader/nfe_test.rb +0 -0
- data/test/br_nfe/service/base_test.rb +0 -0
- data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +0 -0
- data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +0 -0
- data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +0 -0
- data/test/br_nfe/service/simpliss/v1/base_test.rb +0 -0
- data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +0 -0
- data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +0 -0
- data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +0 -0
- data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +0 -0
- data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +0 -0
- data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +0 -0
- data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +0 -0
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +0 -0
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +0 -0
- data/test/factories/service/rps.rb +0 -0
- data/test/fixtures/product/nfe/v3_10/cancelada.xml +0 -0
- data/test/fixtures/product/nfe/v3_10/completa.xml +0 -0
- data/test/fixtures/product/nfe/v3_10/without_proc.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/xml_result_fail_formatted.xml +0 -0
- data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/xml_result_success_formatted.xml +0 -0
- data/test/fixtures/product/wsdl/RecepcaoEvento.xml +0 -0
- metadata +7 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d534d0464b7d4c1506c464e2674f2b37c6795c21
|
4
|
+
data.tar.gz: e1c948e5ed5e2770b5c5f9d5b3401e7bffbeb091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b25d11716afeac88c6afc85f8e21712c437ea3b16b756eae3e246f36da608fa57c265a2279e426af3f1f5116ef0976aaba59ca467f7e6fa65b3212d826ced2f
|
7
|
+
data.tar.gz: 1d082261be80b158cbc63855cabea10829f68e232f920fa2dec49d6ad71323ad0dc46c99fdc526e9f668c5f4d64a21db6cc9582baa863f8f39efb8f28a94cd82
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
br_nfe (2.3.
|
4
|
+
br_nfe (2.3.2)
|
5
5
|
activemodel (~> 4.2)
|
6
6
|
activesupport (~> 4.2)
|
7
7
|
nokogiri (~> 1.6)
|
@@ -139,7 +139,7 @@ GEM
|
|
139
139
|
rake (10.4.2)
|
140
140
|
ruby-progressbar (1.7.5)
|
141
141
|
safe_yaml (1.0.4)
|
142
|
-
savon (2.11.
|
142
|
+
savon (2.11.2)
|
143
143
|
akami (~> 1.2)
|
144
144
|
builder (>= 2.1.2)
|
145
145
|
gyoku (~> 1.2)
|
@@ -149,17 +149,17 @@ GEM
|
|
149
149
|
wasabi (~> 3.4)
|
150
150
|
shoulda-matchers (2.8.0)
|
151
151
|
activesupport (>= 3.0.0)
|
152
|
-
signer (1.
|
152
|
+
signer (1.6.0)
|
153
153
|
nokogiri (>= 1.5.1)
|
154
154
|
simplecov (0.10.0)
|
155
155
|
docile (~> 1.1.0)
|
156
156
|
json (~> 1.8)
|
157
157
|
simplecov-html (~> 0.10.0)
|
158
158
|
simplecov-html (0.10.0)
|
159
|
-
slim (3.0.
|
160
|
-
temple (
|
159
|
+
slim (3.0.9)
|
160
|
+
temple (>= 0.7.6, < 0.9)
|
161
161
|
tilt (>= 1.3.3, < 2.1)
|
162
|
-
slim-rails (3.1.
|
162
|
+
slim-rails (3.1.3)
|
163
163
|
actionpack (>= 3.1)
|
164
164
|
railties (>= 3.1)
|
165
165
|
slim (~> 3.0)
|
@@ -171,10 +171,10 @@ GEM
|
|
171
171
|
actionpack (>= 3.0)
|
172
172
|
activesupport (>= 3.0)
|
173
173
|
sprockets (>= 2.8, < 4.0)
|
174
|
-
temple (0.
|
174
|
+
temple (0.8.0)
|
175
175
|
thor (0.19.1)
|
176
176
|
thread_safe (0.3.5)
|
177
|
-
tilt (2.0.
|
177
|
+
tilt (2.0.8)
|
178
178
|
tzinfo (1.2.2)
|
179
179
|
thread_safe (~> 0.1)
|
180
180
|
wasabi (3.5.0)
|
@@ -203,4 +203,4 @@ DEPENDENCIES
|
|
203
203
|
webmock
|
204
204
|
|
205
205
|
BUNDLED WITH
|
206
|
-
1.
|
206
|
+
1.16.1
|
data/br_nfe.gemspec
CHANGED
@@ -10,16 +10,16 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.authors = ["Bruno M. Mergen"]
|
11
11
|
gem.email = ["brunomergen@gmail.com"]
|
12
12
|
gem.homepage = "https://github.com/Brunomm/br_nfe"
|
13
|
-
|
14
|
-
gem.files = `git ls-files`.split("\n").reject{|fil|
|
13
|
+
|
14
|
+
gem.files = `git ls-files`.split("\n").reject{|fil|
|
15
15
|
fil.include?('coverage/') ||
|
16
|
-
fil.include?('exemplos/')
|
16
|
+
fil.include?('exemplos/')
|
17
17
|
}
|
18
18
|
gem.test_files = `git ls-files -- test`.split("\n")
|
19
19
|
# gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
20
20
|
gem.require_paths = ["lib"]
|
21
21
|
|
22
|
-
gem.required_ruby_version = ['
|
22
|
+
gem.required_ruby_version = ['>= 2.1.0', '< 2.3.6']
|
23
23
|
|
24
24
|
gem.add_dependency "rake", '~> 10'
|
25
25
|
gem.add_dependency "activesupport", '~> 4.2'
|
@@ -29,6 +29,6 @@ Gem::Specification.new do |gem|
|
|
29
29
|
gem.add_dependency "signer", "~> 1.4"
|
30
30
|
gem.add_dependency "slim", "~> 3.0"
|
31
31
|
gem.add_dependency "slim-rails", "~> 3.1"
|
32
|
-
|
32
|
+
|
33
33
|
gem.add_development_dependency "pry", '~> 0.10'
|
34
34
|
end
|
data/lib/br_nfe.rb
CHANGED
File without changes
|
data/lib/br_nfe/base.rb
CHANGED
File without changes
|
data/lib/br_nfe/constants.rb
CHANGED
File without changes
|
data/lib/br_nfe/endereco.rb
CHANGED
File without changes
|
data/lib/br_nfe/person.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -269,6 +269,21 @@ module BrNfe
|
|
269
269
|
attr_accessor :versao_aplicativo
|
270
270
|
alias_attribute :verProc, :versao_aplicativo
|
271
271
|
|
272
|
+
# Chave de acesso de notas referenciadas. (por enquanto aceita apenas a chave de acesso)
|
273
|
+
#
|
274
|
+
# <b>Type: </b> _Array_
|
275
|
+
# <b>Required: </b> _No_
|
276
|
+
# <b>Default: </b> _[]_
|
277
|
+
# <b>tag: </b> NFref > refNFe
|
278
|
+
#
|
279
|
+
attr_accessor :notas_referenciadas
|
280
|
+
def notas_referenciadas
|
281
|
+
@notas_referenciadas = [@notas_referenciadas].flatten unless @notas_referenciadas.is_a?(Array)
|
282
|
+
@notas_referenciadas.compact!
|
283
|
+
@notas_referenciadas
|
284
|
+
end
|
285
|
+
alias_attribute :NFref, :notas_referenciadas
|
286
|
+
|
272
287
|
# Endereço da retirada da mercadoria
|
273
288
|
#
|
274
289
|
# <b>Type: </b> _BrNfe.endereco_class_
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,4 +23,9 @@ verProc = nfe.versao_aplicativo
|
|
23
23
|
|
24
24
|
- if contingencia?
|
25
25
|
dhCont = nf_xml_value_date_time(inicio_contingencia)
|
26
|
-
xJust = nf_xml_value_text( motivo_contingencia, 255 )
|
26
|
+
xJust = nf_xml_value_text( motivo_contingencia, 255 )
|
27
|
+
|
28
|
+
- if nfe.notas_referenciadas.size > 0
|
29
|
+
NFref
|
30
|
+
- nfe.notas_referenciadas.each do |ref|
|
31
|
+
refNFe = ref
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/br_nfe/service/rps.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/br_nfe/version.rb
CHANGED
@@ -2,7 +2,7 @@ module BrNfe
|
|
2
2
|
module Version
|
3
3
|
MAJOR = 2 #inclui alterações de API e pode quebrar compatibilidade com versões anteriores
|
4
4
|
MINOR = 3 #inclui novas funcionalidades, sem quebrar APIs existentes
|
5
|
-
PATCH =
|
5
|
+
PATCH = 2 #corrige bugs ou traz melhorias em implementações já existentes
|
6
6
|
CURRENT = "#{MAJOR}.#{MINOR}.#{PATCH}"
|
7
7
|
end
|
8
|
-
end
|
8
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/br_nfe/base_test.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: br_nfe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno M. Mergen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -876,15 +876,12 @@ require_paths:
|
|
876
876
|
- lib
|
877
877
|
required_ruby_version: !ruby/object:Gem::Requirement
|
878
878
|
requirements:
|
879
|
-
- - "
|
880
|
-
- !ruby/object:Gem::Version
|
881
|
-
version: '2.1'
|
882
|
-
- - "~>"
|
879
|
+
- - ">="
|
883
880
|
- !ruby/object:Gem::Version
|
884
|
-
version:
|
885
|
-
- - "
|
881
|
+
version: 2.1.0
|
882
|
+
- - "<"
|
886
883
|
- !ruby/object:Gem::Version
|
887
|
-
version:
|
884
|
+
version: 2.3.6
|
888
885
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
889
886
|
requirements:
|
890
887
|
- - ">="
|
@@ -892,7 +889,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
892
889
|
version: '0'
|
893
890
|
requirements: []
|
894
891
|
rubyforge_project:
|
895
|
-
rubygems_version: 2.
|
892
|
+
rubygems_version: 2.5.1
|
896
893
|
signing_key:
|
897
894
|
specification_version: 4
|
898
895
|
summary: Emissão de Notas Fiscais Eletrônicas em Ruby
|