mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-07 00:05:33 -04:00
15 lines
423 B
Ruby
15 lines
423 B
Ruby
module Stripe
|
|
class Refund < APIResource
|
|
include Stripe::APIOperations::Update
|
|
include Stripe::APIOperations::List
|
|
|
|
def url
|
|
"#{Charge.url}/#{CGI.escape(charge)}/refunds/#{CGI.escape(id)}"
|
|
end
|
|
|
|
def self.retrieve(id, api_key=nil)
|
|
raise NotImplementedError.new("Refunds cannot be retrieved without a charge ID. Retrieve a refund using charge.refunds.retrieve('refund_id')")
|
|
end
|
|
end
|
|
end
|