cobrato-client 0.23.0.beta7 → 0.23.0.beta8

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: 61ba88aaf79ade11f4efe1f0a17f1dd6bb597480
4
- data.tar.gz: 8e37bd4946e72095d55817d229aaa7c934cf98df
3
+ metadata.gz: d6526c1ae0eda93b38bbdbfde17e247092f0fe2f
4
+ data.tar.gz: 27f0fe8a2aa0fb663ef7c6a64c5a5a74a7eff509
5
5
  SHA512:
6
- metadata.gz: 7dcf3b7e88dbbe36fdb1cabe3c72b987cf46bf65467f3d2eaae14bcefca7d5ea14874a3c25c5f5a45e09e9e9695e0c8e1ea7656d54157b57d935825c13c147e8
7
- data.tar.gz: 897418b3e4c077dc5a42e89aa52fd4afc49ae6f2c8e8d3a38263e519c908e96c411c4c1995acedeac4ab0fc20f1b4345288963bf005bfe452ef41214ac668905
6
+ metadata.gz: bfb9b69b4e46e5cd949abff4a16f47b2313063431ad64023e0d48141234997fcd31d83dde56c9159061d5ee0077eeb3f61bf96831a24668c5223c6842600318f
7
+ data.tar.gz: b835673ee47e7091e585ce6eb8ee4dd6f7ab26bf4ad0b6e53b8d215a56721d72ca749112ba355a6aacdcac21eb3fa6771e9192993c18e084579e352a2204f537
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v0.23.0.beta8
6
+
7
+ - Add support to cancel payment
8
+
5
9
  ## v0.23.0.beta7
6
10
 
7
11
  - Add ICMS-SP payment Support
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.23.0.beta7)
4
+ cobrato-client (0.23.0.beta8)
5
5
  multi_json (~> 1.11.2)
6
6
  typhoeus (~> 0.8.0)
7
7
  virtus (~> 1.0.5)
@@ -2,6 +2,12 @@ module Cobrato
2
2
  module Resources
3
3
  class Payment < Base
4
4
  crud :all
5
+
6
+ def cancel(id)
7
+ http.post("#{resource_base_path}/#{id}/cancel") do |response|
8
+ respond_with_entity response
9
+ end
10
+ end
5
11
  end
6
12
  end
7
13
  end
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.23.0.beta7'
2
+ VERSION = '0.23.0.beta8'
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.beta7
4
+ version: 0.23.0.beta8
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-01-13 00:00:00.000000000 Z
13
+ date: 2018-01-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus