stripe 1.8.6 → 1.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.8.7 2013-08-18
2
+
3
+ * Add support for closing disputes.
4
+
1
5
  === 1.8.6 2013-08-13
2
6
 
3
7
  * Add Balance and BalanceTransaction API resources
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.6
1
+ 1.8.7
data/lib/stripe/charge.rb CHANGED
@@ -22,6 +22,12 @@ module Stripe
22
22
  dispute
23
23
  end
24
24
 
25
+ def close_dispute
26
+ response, api_key = Stripe.request(:post, close_dispute_url, @api_key)
27
+ refresh_from(response, api_key)
28
+ self
29
+ end
30
+
25
31
  private
26
32
 
27
33
  def refund_url
@@ -35,5 +41,9 @@ module Stripe
35
41
  def dispute_url
36
42
  url + '/dispute'
37
43
  end
44
+
45
+ def close_dispute_url
46
+ url + '/dispute/close'
47
+ end
38
48
  end
39
49
  end
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.8.6'
2
+ VERSION = '1.8.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.6
4
+ version: 1.8.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-20 00:00:00.000000000 Z
13
+ date: 2013-09-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client