stripe-ruby/lib/stripe/application_fee.rb
Felix Kenton 81e46f4d6c Added ApplicationFee class.
- Currently supports listing, retrieving and refunding.
2013-11-14 14:04:55 -08:00

22 lines
381 B
Ruby

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