stripe-ruby/lib/stripe/application_fee_refund.rb
2016-03-11 02:53:50 -05:00

15 lines
469 B
Ruby

module Stripe
class ApplicationFeeRefund < APIResource
include Stripe::APIOperations::Update
extend Stripe::APIOperations::List
def resource_url
"#{ApplicationFee.resource_url}/#{CGI.escape(fee)}/refunds/#{CGI.escape(id)}"
end
def self.retrieve(id, api_key=nil)
raise NotImplementedError.new("Refunds cannot be retrieved without an application fee ID. Retrieve a refund using appfee.refunds.retrieve('refund_id')")
end
end
end