lib/pin_payment/charge.rb
def refunds
      response = Charge.get(URI.parse(PinPayment.api_url).tap{|uri| uri.path = "/1/charges/#{token}/refunds" })
      response.map{|x| Refund.new(x.delete('token'), x) }
    end
def refunds
      response = Charge.get(URI.parse(PinPayment.api_url).tap{|uri| uri.path = "/1/charges/#{token}/refunds" })
      response.map{|x| Refund.new(x.delete('token'), x) }
    end
def refunds response = Charge . get ( URI . parse ( PinPayment . api_url ) . tap { | uri | uri . path = "/1/charges/#{token}/refunds" } ) response . map { | x | Refund . new ( x . delete ( 'token' ) , x ) } end
Fetches all refunds of your charge using the pin API.

 @return [Array<PinPayment::Refund>]
 TODO: pagination
Fetches all refunds of your charge using the pin API .