formatos-febraban 0.3.59 → 0.3.60

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a56a4b00054bcf6de88c2eea7758307827b059e
4
- data.tar.gz: c179969d586349c1880c02a1fdff47a5ca91d0a4
3
+ metadata.gz: 074dff54a3a05b5471a4b492b10ede367a9a3f8b
4
+ data.tar.gz: d1c425a3b723559e1bf99d2d84143d518d5345a7
5
5
  SHA512:
6
- metadata.gz: d188b9a26f8526a11c677b654e851a728a20a019816dd08e83e73ccbd9bcb457ff6d0bba183965717e111197fbb4983c79f13dc7bab5b83b50062d992b7e0d6a
7
- data.tar.gz: 1ef19a2664794199276f634d990f8b4dd21c372ae745f41a568b6d8bc0e07b41e60c217f2d9f7428044ff6e00b4db93548fa4be216b81f3852aa78d9d6b4bd0e
6
+ metadata.gz: 0204641ca3c432c52aea428749adc84b26d9ced32d1c05ebe52651de099fb811adb5c46ed3baac092ef6468efa4186ecb38a39016299b7735348c0d5845afa5e
7
+ data.tar.gz: 4595aebaafd618fa6a95a1f6202c6866b84c7cb3123b12f40722b2dd8c158258459ebf0ea3fdd3c07ff60109730c8ad34dd5a93176a024572d3ec76894a20cba
@@ -119,14 +119,14 @@ class CieloDetalhe < FormatSection
119
119
  end
120
120
 
121
121
  def success?
122
- self.get_codigo_retorno == '00'
122
+ self.get_status_venda() == '00'
123
123
  end
124
124
 
125
125
  def soft_bounce?
126
126
  codes = ["04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "20", "21",
127
127
  "22", "23", "54", "77", "81", "88", "95", "99"]
128
128
 
129
- !self.success? && codes.include?(self.get_codigo_retorno)
129
+ !self.success? && codes.include?(self.get_status_venda())
130
130
  end
131
131
 
132
132
  def hard_bounce?
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = '0.3.59'
3
+ VERSION = '0.3.60'
4
4
  end
5
5
  end
@@ -183,12 +183,12 @@ class Febraban150F < FormatSection
183
183
  end
184
184
 
185
185
  def success?
186
- self.get_codigo_retorno == 0
186
+ self.get_codigo_retorno() == 0
187
187
  end
188
188
 
189
189
  def soft_bounce?
190
190
  codes = [1, 5, 18, 31]
191
- !self.success? && codes.include?(self.get_codigo_retorno)
191
+ !self.success? && codes.include?(self.get_codigo_retorno())
192
192
  end
193
193
 
194
194
  def hard_bounce?
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.59
4
+ version: 0.3.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Ricardo Almeida