mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
14 lines
383 B
Ruby
14 lines
383 B
Ruby
module Stripe
|
|
class Refund < APIResource
|
|
include Stripe::APIOperations::Update
|
|
|
|
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
|