Module: Simpal::Payment::Refund

Defined in:
lib/simpal/payment/refund.rb

Overview

Class Method Summary collapse

Class Method Details

.retrieve(id, headers: {}, client: nil) ⇒ Simpal::PayPalObject

Retrieve a refund for a payment.

Parameters:

  • id (String)

    The ID of a refuned payment.

  • headers (Hash) (defaults to: {})

    The custom headers to add to the request.

  • client (Simpal::Client) (defaults to: nil)

    The API client to make the request with.

Returns:

See Also:



18
19
20
21
# 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