Merge pull request #87 from stripe/lg-dispute-close

Ability to close disputes
This commit is contained in:
Lachy Groom 2013-09-19 11:06:46 -07:00
commit 49724d755d
4 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -1 +1 @@
1.8.6
1.8.7

View File

@ -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

View File

@ -1,3 +1,3 @@
module Stripe
VERSION = '1.8.6'
VERSION = '1.8.7'
end