cobrato-client 0.23.0.beta11 → 0.23.0.beta12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +5 -5
- data/cobrato-client-ruby.gemspec +1 -1
- data/lib/cobrato/resources/payment.rb +12 -0
- data/lib/cobrato/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bf4b2c4f2e9cc0d0b8061e366f5d3369ec7e079
|
4
|
+
data.tar.gz: 0c0447a9cd91d83161ae07bb99ed2cfb4191345e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e1fefa418a52798b470b2ab4d9a6e1fb645641de82c828f25efc09d788c61878bd3d490dec25ec8c4176d3a879c1d1c5de188d2dd20773446a1b588fea1bde
|
7
|
+
data.tar.gz: bce9d779fd21f9d80e8a3cdf1365713cad6759106b4626edbc869c51a657a3f6c7e8f2c899f0b1b89b8a2754c57b6348cfee369d12095657e38ad8c040ea84bc
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cobrato-client (0.23.0.
|
5
|
-
multi_json (~> 1.11
|
4
|
+
cobrato-client (0.23.0.beta12)
|
5
|
+
multi_json (~> 1.11)
|
6
6
|
typhoeus (~> 0.8.0)
|
7
7
|
virtus (~> 1.0.5)
|
8
8
|
wisper (~> 1.6.1)
|
@@ -25,13 +25,13 @@ GEM
|
|
25
25
|
diff-lcs (1.2.5)
|
26
26
|
docile (1.1.5)
|
27
27
|
equalizer (0.0.11)
|
28
|
-
ethon (0.
|
28
|
+
ethon (0.11.0)
|
29
29
|
ffi (>= 1.3.0)
|
30
|
-
ffi (1.9.
|
30
|
+
ffi (1.9.21)
|
31
31
|
ice_nine (0.11.2)
|
32
32
|
json (2.0.2)
|
33
33
|
method_source (0.8.2)
|
34
|
-
multi_json (1.
|
34
|
+
multi_json (1.13.1)
|
35
35
|
pry (0.10.4)
|
36
36
|
coderay (~> 1.1.0)
|
37
37
|
method_source (~> 0.8.1)
|
data/cobrato-client-ruby.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
29
|
spec.add_dependency "typhoeus", "~> 0.8.0"
|
30
|
-
spec.add_dependency "multi_json", "~> 1.11
|
30
|
+
spec.add_dependency "multi_json", "~> 1.11"
|
31
31
|
spec.add_dependency "virtus", "~> 1.0.5"
|
32
32
|
spec.add_dependency "wisper", "~> 1.6.1"
|
33
33
|
|
@@ -14,6 +14,18 @@ module Cobrato
|
|
14
14
|
parsed_body(response)
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
18
|
+
def unauthorize(id)
|
19
|
+
http.post("#{resource_base_path}/#{id}/unauthorize") do |response|
|
20
|
+
respond_with_entity response
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def register_error(id)
|
25
|
+
http.post("#{resource_base_path}/#{id}/register_error") do |response|
|
26
|
+
respond_with_entity response
|
27
|
+
end
|
28
|
+
end
|
17
29
|
end
|
18
30
|
end
|
19
31
|
end
|
data/lib/cobrato/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cobrato-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.0.
|
4
|
+
version: 0.23.0.beta12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcio Ricardo Santos
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-02-
|
13
|
+
date: 2018-02-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.11
|
35
|
+
version: '1.11'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.11
|
42
|
+
version: '1.11'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: virtus
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|