Sha256: 8955613a2aa1abce15398c13a50fa381badb176c503760b0c4cb6618251e2a2c

Contents?: true

Size: 461 Bytes

Versions: 6

Compression:

Stored size: 461 Bytes

Contents

module Pingpp
  class Charge < APIResource
    extend Pingpp::APIOperations::Create
    extend Pingpp::APIOperations::List

    def self.reverse(id, opts={})
      id, reverse_params = Util.normalize_id(id)
      response, opts = request(:post, "#{resource_url(opts)}/#{CGI.escape(id)}/reverse", reverse_params, opts)
      Util.convert_to_pingpp_object(response, opts)
    end

    private

    def refund_url
      resource_url + '/refunds'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pingpp-2.2.4 lib/pingpp/charge.rb
pingpp-2.2.3 lib/pingpp/charge.rb
pingpp-2.2.2 lib/pingpp/charge.rb
pingpp-2.2.1 lib/pingpp/charge.rb
pingpp-2.2.0 lib/pingpp/charge.rb
pingpp-2.1.3 lib/pingpp/charge.rb