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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10bbadf9c404bd35a030b946bd14a5db90fb47d6
4
- data.tar.gz: 87f0128d62e6346016748301ca1e86358d248617
3
+ metadata.gz: 9bf4b2c4f2e9cc0d0b8061e366f5d3369ec7e079
4
+ data.tar.gz: 0c0447a9cd91d83161ae07bb99ed2cfb4191345e
5
5
  SHA512:
6
- metadata.gz: aad5b90dfa2fac74935c3a489c74dbb4eb67ea856c89917c9868ced5211dbff1d78733ac8170c555843e8254a1a9e21cd72eed085cd42e9ac94707fe347df4c2
7
- data.tar.gz: 581ed7faf4f190a42970068e4f62d0dcd1d566f41e68b4a7bbf4825915a5ec8104e03dbe6e93ea5a171541144483807301cbdfd51ae0fd1159fdfbe74616988d
6
+ metadata.gz: a9e1fefa418a52798b470b2ab4d9a6e1fb645641de82c828f25efc09d788c61878bd3d490dec25ec8c4176d3a879c1d1c5de188d2dd20773446a1b588fea1bde
7
+ data.tar.gz: bce9d779fd21f9d80e8a3cdf1365713cad6759106b4626edbc869c51a657a3f6c7e8f2c899f0b1b89b8a2754c57b6348cfee369d12095657e38ad8c040ea84bc
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v0.23.0.beta12
6
+
7
+ - Add support to unauthorize payment
8
+ - Add support for register error
9
+
5
10
  ## v0.23.0.beta11
6
11
 
7
12
  - Add `note` do payment
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.23.0.beta11)
5
- multi_json (~> 1.11.2)
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.10.1)
28
+ ethon (0.11.0)
29
29
  ffi (>= 1.3.0)
30
- ffi (1.9.18)
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.11.3)
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)
@@ -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.2"
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
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.23.0.beta11'
2
+ VERSION = '0.23.0.beta12'
3
3
  end
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.beta11
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-16 00:00:00.000000000 Z
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.2
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.2
42
+ version: '1.11'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: virtus
45
45
  requirement: !ruby/object:Gem::Requirement