cobrato-client 0.17.0 → 0.18.0

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: 0f84bdf0969a7b9b9cf364be61fe23d688240b46
4
- data.tar.gz: 9a981969965bde75d4a39655c754e67e2ab116e8
3
+ metadata.gz: 81b548e336a99c23dc58b09e7e7d271be9b9ee88
4
+ data.tar.gz: ba75d109743591bfee93a543279560a63180a040
5
5
  SHA512:
6
- metadata.gz: c404ef3792b30877143917682d8a461234a167bced2eb249b75c153ce451cf030597870f8eb6409239c1068ca33747d707be2061bca311640d1878364667c5d2
7
- data.tar.gz: 23ef5dd02b49444be95eac9cb01b5bbf896ab1724950334bc0559fcef7d2d61f08356f273f34ebf9df43049ee3a5c92fe3f852ee9528a14d59a8aee2f04a8d90
6
+ metadata.gz: 3c0b3435ce6f2af5322f79cd3886515345e3f28f135741f12836a50819654af684d23877daf30c03c7a3593920e0645eed95d7cbfdf5444379fe2f9f6cd29c0d
7
+ data.tar.gz: 4289bbada76d368e6f5411ca03154edb8a381c420b1a07c3a1eea12b95be954eee010c34f3c6d18fe61a87b14355f8eec986f8db77ffc95070c4855b5d24ee63
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v0.18.0
6
+
7
+ - Add `charges#revoke` endpoint
8
+ - Change the `charges#cancel` endpoint to return a `Charge` entity intead of a boolean
9
+
5
10
  ## v0.17.0
6
11
 
7
12
  - Add `paid_discount`, `paid_addition`, `paid_rebate` to Charge entity
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.17.0)
4
+ cobrato-client (0.18.0)
5
5
  multi_json (~> 1.11.2)
6
6
  typhoeus (~> 0.8.0)
7
7
  virtus (~> 1.0.5)
@@ -30,7 +30,17 @@ module Cobrato
30
30
 
31
31
  def cancel(id)
32
32
  http.post("#{resource_base_path}/#{id}/cancel") do |response|
33
- response.code == 204
33
+ respond_with_entity response
34
+ end
35
+ end
36
+
37
+ def revoke(id)
38
+ http.post("#{resource_base_path}/#{id}/revoke") do |response|
39
+ if response.code == 200
40
+ respond_with_entity response
41
+ else
42
+ response.code == 204
43
+ end
34
44
  end
35
45
  end
36
46
 
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.17.0'
2
+ VERSION = '0.18.0'
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.17.0
4
+ version: 0.18.0
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: 2017-01-25 00:00:00.000000000 Z
13
+ date: 2017-02-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus