cieloloja 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/cieloloja.gemspec +1 -1
- data/lib/cieloloja/transaction.rb +6 -3
- data/lib/cieloloja/version.rb +1 -1
- metadata +2 -2
data/cieloloja.gemspec
CHANGED
@@ -7,9 +7,12 @@ module Cieloloja
|
|
7
7
|
def create!(parameters={})
|
8
8
|
analysis_parameters(parameters)
|
9
9
|
message = xml_builder("requisicao-transacao") do |xml|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
|
11
|
+
if parameters[:"numero-cartao"] != nil
|
12
|
+
xml.tag!("dados-portador") do
|
13
|
+
[:"numero-cartao", :validade, :indicador, :"codigo-seguranca"].each do |key|
|
14
|
+
xml.tag!(if key == :"numero-cartao" then "numero" else key.to_s end, parameters[key].to_s)
|
15
|
+
end
|
13
16
|
end
|
14
17
|
end
|
15
18
|
xml.tag!("dados-pedido") do
|
data/lib/cieloloja/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cieloloja
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
segments:
|
187
187
|
- 0
|
188
|
-
hash:
|
188
|
+
hash: 2510095806651102081
|
189
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
190
|
none: false
|
191
191
|
requirements:
|