Module: PaypalAPI::Refunds::APIs

Included in:
PaypalAPI::Refunds, PaypalAPI::Refunds
Defined in:
lib/paypal-api/api_collections/refunds.rb

Overview

Common methods for PaypalAPI::Refunds class and client.refunds instance

Instance Method Summary collapse

Instance Method Details

#show(refund_id, query: nil, body: nil, headers: nil) ⇒ Response

Show refund details

Parameters:

  • refund_id (String)
  • query (Hash, nil) (defaults to: nil)

    Request query parameters

  • body (Hash, nil) (defaults to: nil)

    Request body parameters

  • headers (Hash, nil) (defaults to: nil)

    Request headers

Returns:

See Also:



22
23
24
# File 'lib/paypal-api/api_collections/refunds.rb', line 22

def show(refund_id, query: nil, body: nil, headers: nil)
  client.get("/v2/payments/refunds/#{encode(refund_id)}", query: query, body: body, headers: headers)
end