Sha256: a3eb845a61e0ec38383f68d217d1763c3bae81bd4a90c50c7cae3385f442fde1

Contents?: true

Size: 423 Bytes

Versions: 16

Compression:

Stored size: 423 Bytes

Contents

module Pingpp
  class Refund < APIResource
    include Pingpp::APIOperations::Update
    include Pingpp::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

16 entries across 16 versions & 1 rubygems

Version Path
pingpp-2.0.15 lib/pingpp/refund.rb
pingpp-2.0.14 lib/pingpp/refund.rb
pingpp-2.0.13 lib/pingpp/refund.rb
pingpp-2.0.12 lib/pingpp/refund.rb
pingpp-2.0.11 lib/pingpp/refund.rb
pingpp-2.0.8 lib/pingpp/refund.rb
pingpp-2.0.7 lib/pingpp/refund.rb
pingpp-2.0.6 lib/pingpp/refund.rb
pingpp-2.0.5 lib/pingpp/refund.rb
pingpp-2.0.4 lib/pingpp/refund.rb
pingpp-2.0.3 lib/pingpp/refund.rb
pingpp-2.0.2 lib/pingpp/refund.rb
pingpp-2.0.1 lib/pingpp/refund.rb
pingpp-2.0.0 lib/pingpp/refund.rb
pingpp-1.0.3 lib/pingpp/refund.rb
pingpp-1.0.2 lib/pingpp/refund.rb