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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -9
  3. data/br_nfe.gemspec +5 -5
  4. data/lib/br_nfe.rb +0 -0
  5. data/lib/br_nfe/base.rb +0 -0
  6. data/lib/br_nfe/constants.rb +0 -0
  7. data/lib/br_nfe/endereco.rb +0 -0
  8. data/lib/br_nfe/person.rb +0 -0
  9. data/lib/br_nfe/product/destinatario.rb +0 -0
  10. data/lib/br_nfe/product/nf_xml_value.rb +0 -0
  11. data/lib/br_nfe/product/nfe/cobranca/pagamento.rb +0 -0
  12. data/lib/br_nfe/product/nota_fiscal.rb +15 -0
  13. data/lib/br_nfe/product/operation/base.rb +0 -0
  14. data/lib/br_nfe/product/operation/nfe_autorizacao.rb +0 -0
  15. data/lib/br_nfe/product/operation/nfe_consulta_protocolo.rb +0 -0
  16. data/lib/br_nfe/product/operation/nfe_download_nf.rb +0 -0
  17. data/lib/br_nfe/product/operation/nfe_inutilizacao.rb +0 -0
  18. data/lib/br_nfe/product/operation/nfe_recepcao_evento.rb +0 -0
  19. data/lib/br_nfe/product/operation/nfe_ret_autorizacao.rb +0 -0
  20. data/lib/br_nfe/product/operation/nfe_status_servico.rb +0 -0
  21. data/lib/br_nfe/product/reader/destinatario.rb +0 -0
  22. data/lib/br_nfe/product/reader/emitente.rb +0 -0
  23. data/lib/br_nfe/product/reader/endereco_retirada_entrega.rb +0 -0
  24. data/lib/br_nfe/product/reader/fatura.rb +0 -0
  25. data/lib/br_nfe/product/reader/item.rb +0 -0
  26. data/lib/br_nfe/product/reader/nfe.rb +0 -0
  27. data/lib/br_nfe/product/reader/transporte.rb +0 -0
  28. data/lib/br_nfe/product/response/base.rb +0 -0
  29. data/lib/br_nfe/product/response/build/base.rb +0 -0
  30. data/lib/br_nfe/product/response/build/nfe_autorizacao.rb +0 -0
  31. data/lib/br_nfe/product/response/build/nfe_consulta_protocolo.rb +0 -0
  32. data/lib/br_nfe/product/response/build/nfe_inutilizacao.rb +0 -0
  33. data/lib/br_nfe/product/response/build/nfe_recepcao_evento.rb +0 -0
  34. data/lib/br_nfe/product/response/build/nfe_ret_autorizacao.rb +0 -0
  35. data/lib/br_nfe/product/response/build/nfe_status_servico.rb +0 -0
  36. data/lib/br_nfe/product/response/event.rb +0 -0
  37. data/lib/br_nfe/product/response/nfe_autorizacao.rb +0 -0
  38. data/lib/br_nfe/product/response/nfe_consulta_protocolo.rb +0 -0
  39. data/lib/br_nfe/product/response/nfe_recepcao_evento.rb +0 -0
  40. data/lib/br_nfe/product/xml/soap_env.xml.slim +0 -0
  41. data/lib/br_nfe/product/xml/v2_00/infNFe/NFe.xml.slim +0 -0
  42. data/lib/br_nfe/product/xml/v3_10/infNFe/_tc_ide.xml.slim +6 -1
  43. data/lib/br_nfe/service/betha/v1/cancela_nfse.rb +0 -0
  44. data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +0 -0
  45. data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +0 -0
  46. data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +0 -0
  47. data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +0 -0
  48. data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +0 -0
  49. data/lib/br_nfe/service/response/build/invoice_build.rb +0 -0
  50. data/lib/br_nfe/service/response/nota_fiscal.rb +0 -0
  51. data/lib/br_nfe/service/rps.rb +0 -0
  52. data/lib/br_nfe/service/simpliss/v1/base.rb +0 -0
  53. data/lib/br_nfe/service/simpliss/v1/xml/_tc_dados_servico.xml.slim +0 -0
  54. data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +0 -0
  55. data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +0 -0
  56. data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +0 -0
  57. data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +0 -0
  58. data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +0 -0
  59. data/lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim +0 -0
  60. data/lib/br_nfe/version.rb +2 -2
  61. data/lib/config/settings/nfe/reader_xml_paths.yml +0 -0
  62. data/lib/config/settings/nfe/v3_10/operation.yml +0 -0
  63. data/lib/config/settings/nfe/v3_10/xml_paths.yml +0 -0
  64. data/lib/config/settings/nfse.yml +0 -0
  65. data/test/br_nfe/base_test.rb +0 -0
  66. data/test/br_nfe/product/operation/base_test.rb +0 -0
  67. data/test/br_nfe/product/operation/nfe_consulta_protocolo_test.rb +0 -0
  68. data/test/br_nfe/product/operation/nfe_download_nf_test.rb +0 -0
  69. data/test/br_nfe/product/operation/nfe_inutilizacao_test.rb +0 -0
  70. data/test/br_nfe/product/operation/nfe_ret_autorizacao_test.rb +0 -0
  71. data/test/br_nfe/product/operation/nfe_status_servico_test.rb +0 -0
  72. data/test/br_nfe/product/reader/nfe_test.rb +0 -0
  73. data/test/br_nfe/service/base_test.rb +0 -0
  74. data/test/br_nfe/service/betha/v1/cancela_nfse_test.rb +0 -0
  75. data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +0 -0
  76. data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +0 -0
  77. data/test/br_nfe/service/simpliss/v1/base_test.rb +0 -0
  78. data/test/br_nfe/service/simpliss/v1/cancela_nfse_test.rb +0 -0
  79. data/test/br_nfe/service/simpliss/v1/consulta_situacao_lote_rps_test.rb +0 -0
  80. data/test/br_nfe/service/simpliss/v1/recepcao_lote_rps_test.rb +0 -0
  81. data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +0 -0
  82. data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +0 -0
  83. data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +0 -0
  84. data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +0 -0
  85. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_limitado_test.rb +0 -0
  86. data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +0 -0
  87. data/test/factories/service/rps.rb +0 -0
  88. data/test/fixtures/product/nfe/v3_10/cancelada.xml +0 -0
  89. data/test/fixtures/product/nfe/v3_10/completa.xml +0 -0
  90. data/test/fixtures/product/nfe/v3_10/without_proc.xml +0 -0
  91. data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/fail.xml +0 -0
  92. data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/xml_result_fail_formatted.xml +0 -0
  93. data/test/fixtures/product/response/v3.10/nfe_recepcao_evento/cancelamento/xml_result_success_formatted.xml +0 -0
  94. data/test/fixtures/product/wsdl/RecepcaoEvento.xml +0 -0
  95. metadata +7 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecb37b783880ee4dca0729df8c6ef2202691ed9a
4
- data.tar.gz: 3300b9040e1c731b77493a9858bdd510126ae9cf
3
+ metadata.gz: d534d0464b7d4c1506c464e2674f2b37c6795c21
4
+ data.tar.gz: e1c948e5ed5e2770b5c5f9d5b3401e7bffbeb091
5
5
  SHA512:
6
- metadata.gz: 45cf266202c458e4676336b0ea6ab8c501b2ed3493e54cc63b5318281f90910d6189997fe071ce46b31c5a68d6668819406481578051ac05c3169300c9c4732b
7
- data.tar.gz: 38ed413b426bb5291596874060a7bb0e51805924b0579e4bb5eb330689f3e02b79ae405ec384e26f1f4a5f2f7f4ba664a5279bedc2fa85dc8addcb4669d51853
6
+ metadata.gz: 5b25d11716afeac88c6afc85f8e21712c437ea3b16b756eae3e246f36da608fa57c265a2279e426af3f1f5116ef0976aaba59ca467f7e6fa65b3212d826ced2f
7
+ data.tar.gz: 1d082261be80b158cbc63855cabea10829f68e232f920fa2dec49d6ad71323ad0dc46c99fdc526e9f668c5f4d64a21db6cc9582baa863f8f39efb8f28a94cd82
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- br_nfe (2.3.1)
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.1)
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.5.0)
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.7)
160
- temple (~> 0.7.6)
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.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.7.7)
174
+ temple (0.8.0)
175
175
  thor (0.19.1)
176
176
  thread_safe (0.3.5)
177
- tilt (2.0.5)
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.15.1
206
+ 1.16.1
@@ -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 = ['~> 2.1', '~> 2.2', '~> 2.3']
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
File without changes
File without changes
File without changes
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
@@ -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
@@ -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 = 1 #corrige bugs ou traz melhorias em implementações já existentes
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
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.1
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: 2017-10-18 00:00:00.000000000 Z
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: '2.2'
885
- - - "~>"
881
+ version: 2.1.0
882
+ - - "<"
886
883
  - !ruby/object:Gem::Version
887
- version: '2.3'
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.6.10
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