stripe-ruby/lib/stripe/application_fee.rb
Brandur 8b255c7005 Deprecate StripeObject#refresh_from
As discussed in #325, this deprecates the public visibility of
`#refresh_from` (by renaming it). It also adds some deprecation
infrastructure to produce warnings when it's used.
2015-10-08 09:57:16 -07:00

21 lines
364 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 + '/refund'
end
end
end