lib/stripe/application_fee_refund.rb in stripe-1.36.1 vs lib/stripe/application_fee_refund.rb in stripe-1.36.2
- old
+ new
@@ -1,11 +1,11 @@
module Stripe
class ApplicationFeeRefund < APIResource
include Stripe::APIOperations::Update
extend Stripe::APIOperations::List
- def url
- "#{ApplicationFee.url}/#{CGI.escape(fee)}/refunds/#{CGI.escape(id)}"
+ 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