formatos-febraban 0.3.44 → 0.3.45
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 +4 -4
- data/lib/formatos/cielo/cielo_detalhe.rb +8 -1
- data/lib/formatos/febraban/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10dc05ffecd855898d818a82595eae00355de820
|
|
4
|
+
data.tar.gz: cc8df21f1b29e5edc93d13f00fe32032c956ba53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efc479d863a4dc5f001f88baffdb3edd41bd3c26a2bc22d9822fa1762073cbeceb613e9c55a553ab0ae4aef1d82461f567e8717de26230a21af7f53f67e7a520
|
|
7
|
+
data.tar.gz: 89e1a5056060464eea5a144b7b49e8284ee2493f64e5b5db56bebbf60c67ee892b417c69a1f437d9ddf93dbe4ca84f305c3fa24864df545749410eaa93b07283
|
|
@@ -181,8 +181,15 @@ class CieloDetalhe < FormatSection
|
|
|
181
181
|
self.set_section_value(17, valor)
|
|
182
182
|
end
|
|
183
183
|
|
|
184
|
+
#format yymm
|
|
184
185
|
def set_validade_cartao valor
|
|
185
|
-
|
|
186
|
+
if valor.is_a? String
|
|
187
|
+
validade = valor[-2..-1] + valor[0..1]
|
|
188
|
+
else
|
|
189
|
+
validade = valor.strftime("%y%m")
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
self.set_section_value(18, validade)
|
|
186
193
|
end
|
|
187
194
|
|
|
188
195
|
def set_reservado_6 valor = "0"
|