mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-15 00:00:44 -04:00
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.
21 lines
364 B
Ruby
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
|