From 30da413efcae4e0e4e4681122b64fc5177451c79 Mon Sep 17 00:00:00 2001 From: Lachy Groom Date: Wed, 18 Sep 2013 15:43:05 -0700 Subject: [PATCH 1/3] ability to close disputes --- lib/stripe/charge.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/stripe/charge.rb b/lib/stripe/charge.rb index fe0f88ca..53217512 100644 --- a/lib/stripe/charge.rb +++ b/lib/stripe/charge.rb @@ -22,6 +22,12 @@ module Stripe dispute end + def close_dispute + response, api_key = Stripe.request(:post, close_dispute_url, @api_key) + refresh_from(response, api_key) + self + end + private def refund_url @@ -35,5 +41,9 @@ module Stripe def dispute_url url + '/dispute' end + + def close_dispute_url + url + '/dispute/close' + end end end From a5a6c1974229d4926bd8863ae96d58b9e55381d1 Mon Sep 17 00:00:00 2001 From: Lachy Groom Date: Wed, 18 Sep 2013 15:48:11 -0700 Subject: [PATCH 2/3] update version --- lib/stripe/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index 241d212d..c4596ed2 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,3 +1,3 @@ module Stripe - VERSION = '1.8.6' + VERSION = '1.8.7' end From 11efb1e19e1f838f347853a163db4f722c19ed91 Mon Sep 17 00:00:00 2001 From: Lachy Groom Date: Wed, 18 Sep 2013 15:53:13 -0700 Subject: [PATCH 3/3] update version to 1.8.7 --- History.txt | 4 ++++ VERSION | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/History.txt b/History.txt index 91f2a961..4a2ac522 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,7 @@ +=== 1.8.7 2013-08-18 + +* Add support for closing disputes. + === 1.8.6 2013-08-13 * Add Balance and BalanceTransaction API resources diff --git a/VERSION b/VERSION index f263cd11..88d3ee79 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.8.6 +1.8.7