mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-22 00:05:58 -05:00
21 lines
736 B
Ruby
21 lines
736 B
Ruby
module Stripe
|
|
class ApplicationFeeRefund < APIResource
|
|
include Stripe::APIOperations::Save
|
|
extend Stripe::APIOperations::List
|
|
|
|
OBJECT_NAME = "fee_refund".freeze
|
|
|
|
def resource_url
|
|
"#{ApplicationFee.resource_url}/#{CGI.escape(fee)}/refunds/#{CGI.escape(id)}"
|
|
end
|
|
|
|
def self.update(_id, _params = nil, _opts = nil)
|
|
raise NotImplementedError, "Refunds cannot be updated without an application fee ID. Update a refund by using `a = appfee.refunds.retrieve('refund_id'); a.save`"
|
|
end
|
|
|
|
def self.retrieve(_id, _api_key = nil)
|
|
raise NotImplementedError, "Refunds cannot be retrieved without an application fee ID. Retrieve a refund using appfee.refunds.retrieve('refund_id')"
|
|
end
|
|
end
|
|
end
|