biro 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 135d5ac51a23bb35aca3360514eddf2e521c0e51
4
- data.tar.gz: 21c7baa69660e28d4dcd9517ae053d1b2477943a
3
+ metadata.gz: 25ed9cb317e35b3d1b4449096c3a1a8fbcc1cd70
4
+ data.tar.gz: ff5c2959c620f23d9d10e241973bd557188bbdbb
5
5
  SHA512:
6
- metadata.gz: 7f5663620edd64e7966c6e6d90f76b931c403f2d653d75bdd450d3bd4b9c4f62becfe5b10b986eab7c775b93ac3e0896e541cb497ede07b3e74aa68341b0df7f
7
- data.tar.gz: 19132771a0be56c500cd6cd1991f6df3dcbb2a64a3580b50bec40c694ede1f2e271bfbd549878623c0a6bcf8f85ee5ad984339ab7bebb49e533105fb882db64a
6
+ metadata.gz: ea53b932c6a55bc74a32b4de3cafc1545d5681dbfd3bc99d5c362d419677efab4aa22e5cef5bb5a1b2b011d6c25aa3ca65b7b5ddba50c1507220d29dad04dd29
7
+ data.tar.gz: da9ee4ad133385f986e13609ce35ff0b88f530139e6e13174ead501c6d1233f75f3d64f78c9dcc89bb3d667b206116354659953195b400ee7c2f44dbab1a1b13
@@ -34,19 +34,15 @@ module Biro
34
34
  def invoice_list
35
35
  return if operation_list.blank?
36
36
 
37
- result.dig(:lista_de_resumo_das_operacoes).each do |item|
37
+ Array.wrap(result.dig(:lista_de_resumo_das_operacoes)).map do |item|
38
38
  {
39
39
  :variacao_cambial => item[:variacao_cambial],
40
40
  :modalidade => item[:modalidade],
41
- :lista_de_vencimentos => item[:lista_de_vencimentos] #TODO: Translate the invoice codes
41
+ :lista_de_vencimentos => item[:lista_de_vencimentos]
42
42
  }
43
43
  end
44
44
  end
45
45
 
46
- def exchange_rate_variation
47
- operation_list&.dig(:variacao_cambial)
48
- end
49
-
50
46
  def processed_documents_percentage
51
47
  result.dig(:percentual_documentos_processados)&.to_f&.round(2)
52
48
  end
data/lib/biro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Biro
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noverde Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2017-06-27 00:00:00.000000000 Z
14
+ date: 2017-06-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: savon