module Simpal::Payment::Refund

@see Simpal::API::Payments::Refunds

Public Class Methods

retrieve(id, headers: {}, client: nil) click to toggle source

Retrieve a refund for a payment.

@see Simpal::API::Payments::Refunds.retrieve @param id [String] The ID of a refuned 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 [Simpal::PayPalObject] An object representing the refunded payment.

# File lib/simpal/payment/refund.rb, line 18
def self.retrieve(id, headers: {}, client: nil)
  resource = API::Payments::Refunds.retrieve(id, headers: headers, client: client)
  PayPalObject.new(resource)
end