mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-30 00:00:47 -05:00
Merge pull request #87 from stripe/lg-dispute-close
Ability to close disputes
This commit is contained in:
commit
49724d755d
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
module Stripe
|
||||
VERSION = '1.8.6'
|
||||
VERSION = '1.8.7'
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user