Sha256: e05f111c52043f1d7e75e3cbdb69fb95e31b4a21057807c698fe10c68410ec49

Contents?: true

Size: 423 Bytes

Versions: 17

Compression:

Stored size: 423 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
stripe-1.24.0 lib/stripe/refund.rb
stripe-1.23.0 lib/stripe/refund.rb
stripe-1.22.0 lib/stripe/refund.rb
stripe-1.21.0 lib/stripe/refund.rb
stripe-1.20.4 lib/stripe/refund.rb
stripe-1.20.3 lib/stripe/refund.rb
stripe-1.20.2 lib/stripe/refund.rb
stripe-1.20.1 lib/stripe/refund.rb
stripe-1.20.0 lib/stripe/refund.rb
stripe-1.19.0 lib/stripe/refund.rb
stripe-1.18.0 lib/stripe/refund.rb
stripe-1.17.3 lib/stripe/refund.rb
stripe-1.17.2 lib/stripe/refund.rb
stripe-1.17.1 lib/stripe/refund.rb
stripe-1.16.1 lib/stripe/refund.rb
stripe-1.16.0 lib/stripe/refund.rb
stripe-1.15.0 lib/stripe/refund.rb