module Simpal::API::Payments::Refunds
Public Class Methods
retrieve(id, headers: {}, client: nil)
click to toggle source
Retrieve a refunded payment.
@param id [String] The ID of a refunded payment. @param headers [Hash] The custom headers to add to the request. @param client [Simpal::Client] The API
client to make the request with. @return [Hash] A Hash representing the refunded payment.
# File lib/simpal/api/payments/refunds.rb, line 18 def self.retrieve(id, headers: {}, client: nil) client = Simpal.client_for(client) response = client.connection.get("/v2/payments/refunds/#{id}", headers) response.body end