formatos-febraban 0.3.47 → 0.3.48

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: e5e1d25d5e13fa8592863452305082b1400c29be
4
- data.tar.gz: ab52a53391c7d3191c6ca0fbd1938e8acbcae411
3
+ metadata.gz: 85d094dad8a67461bedee2b802f20fad26926f6c
4
+ data.tar.gz: 580aadc36eb900809ed0429c735fa54f1ed1039a
5
5
  SHA512:
6
- metadata.gz: accbc1fa02460e1f28dda23487526324bf63238794fdd9895f566016b89c09f4d2a5ae18592ad5909bc58caac57c31684a6713f38b1998abf26c684b4f1cab33
7
- data.tar.gz: 6de5dbf219fd232793654823d454d910fbfaf59cb327968d0bc98d4dae92a6e1bfc528683e4b068020706307cd320cdd19815d0118afcc0ab7ac7051c552a20b
6
+ metadata.gz: 1b2d8343477b03b1009b47cf37b729c3170d9dbaf27cdc55979da6f96195f5b559f343ec46c905fb803bc43e40c3960bbb243ad05973b25fffcc0ed0841ec74f
7
+ data.tar.gz: 4443ac5b52f55734396b603987fbe7753d705b4eb03637c31a97990f393c098b692e35aae2817dc5613ad02f00182d5762ff4c070be53d1776ff3a4886be96a2
@@ -22,7 +22,7 @@ class Cielo
22
22
  def initialize file = ""
23
23
  @sections = []
24
24
 
25
- if file.length > 0
25
+ if file.size > 0
26
26
  self.process_file file
27
27
  end
28
28
  end
@@ -76,34 +76,47 @@ class CieloDetalhe < FormatSection
76
76
  self.get_section_value(2)
77
77
  end
78
78
 
79
- def get_data_venda
80
- self.get_section_value(4)
79
+ def get_codigo_autorizacao
80
+ self.get_section_value(3)
81
81
  end
82
82
 
83
- def get_numero_lote
84
- self.get_section_value(12)
83
+ def get_data_venda
84
+ self.get_section_value(4)
85
85
  end
86
86
 
87
87
  def get_valor
88
88
  self.get_section_value(6).to_i
89
89
  end
90
90
 
91
+ def get_numero_lote
92
+ self.get_section_value(12)
93
+ end
94
+
91
95
  def get_numero_cielo
92
96
  self.get_section_value(14)
93
97
  end
94
98
 
95
- def get_validade_cartao
96
- self.get_section_value(18)
99
+ def get_reservado
100
+ self.get_section_value(15)
97
101
  end
98
102
 
99
103
  def get_status_venda
100
104
  self.get_section_value(16)
101
105
  end
102
106
 
103
- def get_reservado
104
- self.get_section_value(15)
107
+ def get_data_liquidacao
108
+ self.get_section_value(17)
105
109
  end
106
110
 
111
+ def get_validade_cartao
112
+ self.get_section_value(18)
113
+ end
114
+
115
+ def get_codigo_erro
116
+ self.get_section_value(22)
117
+ end
118
+
119
+
107
120
  def set_sequencial valor
108
121
  self.set_section_value(1, valor)
109
122
  end
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = '0.3.47'
3
+ VERSION = '0.3.48'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatos-febraban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.47
4
+ version: 0.3.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Ricardo Almeida
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler