formatos-febraban 0.3.20 → 0.3.21

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: 5306d2858a15660acd257cb6bed66f6210b98348
4
- data.tar.gz: 4c2a9ed96bc1f6e51ab6f05f5aaae5cdf2b84d97
3
+ metadata.gz: 2e988b0e2d7cd2f23fc4703febc9a3fbf5220e32
4
+ data.tar.gz: 83cae00c5860c5a6048269be2adb9669c0a269ad
5
5
  SHA512:
6
- metadata.gz: 66b16186a4a8dc8a1ad8961e6905d60e6ebabdbe8d05f5f3dd3ed80f3e5b53d2fdf0e2cad42d709d503b0fa2db530944dc8d8d39b5c630a450b108c6628ca741
7
- data.tar.gz: 148585aa7b168fad1f900885b5a37eea89564cad73bfabd40cf7902e0bea09325e8e1aa63b8ba5299fc4d70fb3ade137c5eca6a905a4cc3f7f36f0784382089c
6
+ metadata.gz: 53246885577d6c208b600afc4ce3837740e6d8d109b7fdb0c2e1181fb22cf21614e4b8fdfbc4905bd8c9d9e341d3454c2c1761fcda61973d2e6da7ddd8f01c29
7
+ data.tar.gz: ef8e0c22727621a8c716bd86296b4ed2977c92b218ba6fbca7e78a0c914c5da56edf3be3641cf15e4fd32dc6637abe33a3c4aa30d4ff1313803a6ec045b6c4f7
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = '0.3.20'
3
+ VERSION = '0.3.21'
4
4
  end
5
5
  end
@@ -108,9 +108,12 @@ class Febraban150F < FormatSection
108
108
  def is_valid_04?
109
109
  result = (self.get_id_cliente_empresa.length > 0 and
110
110
  self.get_id_cliente_banco.length > 0 and
111
- !self.get_data_vencimento.nil? and
112
- self.get_valor_debito > 0 and
113
- self.get_codigo_moeda.length > 0 and
111
+ self.get_agencia_debito.length > 0 and
112
+ !self.get_data_vencimento_debito.nil? and
113
+ self.get_valor > 0 and
114
+ (self.get_codigo_retorno >= 0 or
115
+ self.get_codigo_retorno <= 99) and
116
+ self.get_obs_empresa.length > 0 and
114
117
  (self.get_cod_movimento == 0 or
115
118
  self.get_cod_movimento == 1))
116
119
  end
@@ -118,12 +121,15 @@ class Febraban150F < FormatSection
118
121
  def is_valid_05?
119
122
  result = (self.get_id_cliente_empresa.length > 0 and
120
123
  self.get_id_cliente_banco.length > 0 and
121
- !self.get_data_vencimento.nil? and
122
- self.get_valor_debito > 0 and
123
- self.get_codigo_moeda.length > 0 and
124
+ self.get_agencia_debito.length > 0 and
125
+ !self.get_data_vencimento_debito.nil? and
126
+ self.get_valor > 0 and
127
+ (self.get_codigo_retorno >= 0 or
128
+ self.get_codigo_retorno <= 99) and
129
+ self.get_obs_empresa.length > 0 and
124
130
  (self.get_tipo_id_cliente == 1 or
125
131
  self.get_tipo_id_cliente == 2) and
126
- self.get_id_cliente.length == 15 and
132
+ self.get_id_cliente.to_s.length > 0 and
127
133
  (self.get_cod_movimento == 0 or
128
134
  self.get_cod_movimento == 1))
129
135
  end
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.3.20
4
+ version: 0.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Ricardo Almeida