formatos-febraban 0.3.35 → 0.3.36

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: df97542969f2e9c4f5e5e6491463f0ba0d7c5f65
4
- data.tar.gz: 7aa6ebf8fe438849a3bd603293f2018f44ecee49
3
+ metadata.gz: ea51dadf130ad3aa2f242e60965d4176f00de607
4
+ data.tar.gz: 481a8d1c645cae181a6cb4251f5089b89ce0332d
5
5
  SHA512:
6
- metadata.gz: 381293fb83e72f1f9a3271b8a4cf4d30a4ad918e8d524bd032a283b3f2cf217a26d1216f0c53578ad4bc1f9ac036ae5c718627f4bb0b0ee4f123bf47fa618b57
7
- data.tar.gz: 65cfbf0ba31c7d87805ab9621acfd38a18c693c314a3267cdff443a9441af5522db286a14de08d9a9f624f29068c523275b2ffb41ec15567b63bc616ca67f4cd
6
+ metadata.gz: 233b4f9eaf6075e1f7432daffe67f95c3150b8352ee0dc187ee7c08c83da6df41b99065d51acff4a301ed1746ab42da3ad049fe3924275f239eb432c6e80be48
7
+ data.tar.gz: 03f780c24b198b01ed2959978713f29792c4a239d6101e47a7fcb87bb05fccf4363660c02872091b4f21a1a659b9ea3d287cfef31b1a70fe6b7dbcab2d0bcc06
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = '0.3.35'
3
+ VERSION = '0.3.36'
4
4
  end
5
5
  end
@@ -276,7 +276,7 @@ class Febraban150E < FormatSection
276
276
  id_cliente = id_cliente.to_s
277
277
  id_cliente.to_i
278
278
 
279
- if id_cliente.length == 15 or id_cliente.length == 0
279
+ if id_cliente.length >= 13 or id_cliente.length == 0
280
280
  self.set_section_value(9, id_cliente)
281
281
  else
282
282
  raise "#{self.get_id}: Identificação do Cliente deve ser CPF ou CNPJ:
@@ -323,7 +323,7 @@ class Febraban150F < FormatSection
323
323
  id_cliente = id_cliente.to_s
324
324
  id_cliente.to_i
325
325
 
326
- if id_cliente.length == 15
326
+ if id_cliente.length >= 13 or id_cliente.length == 0
327
327
  self.set_section_value(9, id_cliente)
328
328
  else
329
329
  raise "#{self.get_id}: Identificação do Cliente deve ser CPF ou CNPJ:
@@ -101,7 +101,7 @@ class Febraban150I < FormatSection
101
101
  id_cliente = id_cliente.to_s
102
102
  id_cliente.to_i
103
103
 
104
- if id_cliente.length == 15
104
+ if id_cliente.length >= 13 or id_cliente.length == 0
105
105
  self.set_section_value(9, id_cliente)
106
106
  else
107
107
  raise "#{self.get_id}: Identificação do Cliente deve ser CPF ou CNPJ:
@@ -171,7 +171,7 @@ class Febraban150K < FormatSection
171
171
  id_cliente = id_cliente.to_s
172
172
  id_cliente.to_i
173
173
 
174
- if id_cliente.length == 15
174
+ if id_cliente.length >= 13 or id_cliente.length == 0
175
175
  self.set_section_value(9, id_cliente)
176
176
  else
177
177
  raise "#{self.get_id}: Identificação do Cliente deve ser CPF ou CNPJ:
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.35
4
+ version: 0.3.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Ricardo Almeida