formatos-febraban 0.2.5 → 0.2.6

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: 8c4dd0b405497522aa1bc40e082e70cd5ab758d3
4
- data.tar.gz: af696b142621cd5f6f6b7e7688e57412d63cbde7
3
+ metadata.gz: 2fed384d3ac06c00b3d2063d1b8257b2ac067da6
4
+ data.tar.gz: 81ecd08a7e894602ac4d6509f44f6e662ce806e5
5
5
  SHA512:
6
- metadata.gz: 0730f650cbce8bea3b705155f881d070f0287ed70ecb7d58c9c3aa75d49a1b70639497539ce0776178422f55b3091ca85ee2f4cacb5cbd0a9acbbb4047057b50
7
- data.tar.gz: 1ec6a94476aad737ee02e6443589f4f14a0c2cbcd4c842ebd82a0426e70d32df3c083d08a07ccf57d1313fa0a1e139efe2709eff1652e3c58421dd671d9c9cb6
6
+ metadata.gz: bb6042fe20045334640b5d02ecca8d925bb1f7cfb893a414f10af8422bc01d418ef3baa234598ad0f6cdf6c3de314bfdbe13f055e0e48013305b0d9cbd39af5f
7
+ data.tar.gz: 1c121caa3e2b45a7ee586ff009502a36253edae04bb5a2d76d3627bdc56af8dd67a8bfad978ce39511670247bc17e77e03394e9b4e6bba25fa7e37f2577e57f3
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
  end
5
5
  end
@@ -84,7 +84,7 @@ class Febraban150
84
84
  section.set_data_geracao data.strftime("%Y%m%d")
85
85
  section.set_numero_sequencial numero_sequencial
86
86
  section.set_versao_layout Febraban150::VERSAO
87
- section.set_identificacao_servico self.identificacao_servico
87
+ section.set_identificacao_servico Febraban150A::ID_SERVICO
88
88
  section.set_reservado ""
89
89
 
90
90
  self.add_section_from_business section
@@ -5,21 +5,23 @@
5
5
  class Febraban150A < FormatSection
6
6
  require 'date'
7
7
 
8
+ ID_SERVICO = "DÉBITO AUTOMÁTICO"
9
+
8
10
  def initialize master
9
11
  super(master, true, true, false)
10
12
 
11
13
  @section = Section.new({
12
- 0 => Position.new(1, 1, false, "A", true), # Código do Registro
13
- 1 => Position.new(2, 1, true), # Código Remessa (1-Remessa, 2-Retorno)
14
- 2 => Position.new(3, 20, false), # Código de ID enviado pelo Banco
15
- 3 => Position.new(4, 20, false), # Nome da Empresa
16
- 4 => Position.new(5, 3, true), # Código do Banco
17
- 5 => Position.new(6, 20, false), # Nome do Banco
18
- 6 => Position.new(7, 8, true), # Data de Geração de Arquivo
19
- 7 => Position.new(8, 6, true), # Número Sequencial do Arquivo
20
- 8 => Position.new(9, 2, true, 5), # Versão do Layout (5, desde 05.05.2008)
21
- 9 => Position.new(10, 17, false, "DÉBITO AUTOMÁTICO"), # Identificação ("DÉBITO AUTOMÁTICO")
22
- 10 => Position.new(11, 52, false), # Reservado pelo Sistema
14
+ 0 => Position.new(1, 1, false, "A", true), # Código do Registro
15
+ 1 => Position.new(2, 1, true), # Código Remessa (1-Remessa, 2-Retorno)
16
+ 2 => Position.new(3, 20, false), # Código de ID enviado pelo Banco
17
+ 3 => Position.new(4, 20, false), # Nome da Empresa
18
+ 4 => Position.new(5, 3, true), # Código do Banco
19
+ 5 => Position.new(6, 20, false), # Nome do Banco
20
+ 6 => Position.new(7, 8, true), # Data de Geração de Arquivo
21
+ 7 => Position.new(8, 6, true), # Número Sequencial do Arquivo
22
+ 8 => Position.new(9, 2, true, 5), # Versão do Layout (5, desde 05.05.2008)
23
+ 9 => Position.new(10, 17, false, Febraban150A::ID_SERVICO), # Identificação ("DÉBITO AUTOMÁTICO")
24
+ 10 => Position.new(11, 52, false), # Reservado pelo Sistema
23
25
  })
24
26
  end
25
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatos-febraban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - josé Ricardo Almeida