mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-08 00:02:46 -04:00
For now, only two options are supported: `api_key` and `idempotency_key`. In the future, we'll be adding support for additional headers as needed.
22 lines
434 B
Ruby
22 lines
434 B
Ruby
module Stripe
|
|
class ApplicationFee < APIResource
|
|
include Stripe::APIOperations::List
|
|
|
|
def self.url
|
|
'/v1/application_fees'
|
|
end
|
|
|
|
def refund(params={}, opts={})
|
|
api_key, headers = Util.parse_opts(opts)
|
|
response, api_key = Stripe.request(:post, refund_url, api_key, params, headers)
|
|
refresh_from(response, api_key)
|
|
end
|
|
|
|
private
|
|
|
|
def refund_url
|
|
url + '/refund'
|
|
end
|
|
end
|
|
end
|