stripe-ruby/lib/stripe/application_fee.rb
Brandur c7fd5b6baa Correct URL used for refunding application fees
This uses the new endpoint instead of the deprecated one.

Related to stripe/stripe-php#208.
2015-11-16 11:07:32 -08:00

21 lines
365 B
Ruby

module Stripe
class ApplicationFee < APIResource
extend Stripe::APIOperations::List
def self.url
'/v1/application_fees'
end
def refund(params={}, opts={})
response, opts = request(:post, refund_url, params, opts)
initialize_from(response, opts)
end
private
def refund_url
url + '/refunds'
end
end
end